/* CoreFast website. System fonts only (nothing loaded from other sites). Colours from src/theme.tsx. */
:root {
  --bg: #EEF4EF; --surface: #FFFFFF; --ink: #132A29; --muted: #4E5F5C; --line: #D5E2D9;
  --mint: #95D6AD; --mint-soft: #DCEFE2; --accent: #2E6B59; --coral: #B04E2C; --night: #0C1118;
  --radius: 22px; --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #05080A; --surface: #10171C; --ink: #F2F5F2; --muted: #A7B4AF; --line: #22302E; --mint-soft: #142A20; --accent: #95D6AD; }
  /* Night panels and phone frames would melt into the near-black page: give them a visible surface and edge. */
  .privacy-band { background: var(--surface); border: 1px solid var(--line); }
  .phone { border-color: #22302E; }
  .phone { background: #22302E; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible, .shots:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 9; }

header.site { padding: 18px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -0.4px; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 700; }
.brand span { color: var(--muted); font-weight: 500; }
nav.site a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--ink); text-decoration: none; margin-left: 12px; font-weight: 600; font-size: 15px; }
nav.site a:hover { color: var(--accent); }
nav.site a[aria-current="page"] { color: var(--accent); }

.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 18px; }
.hero h1 em { font-style: normal; background: var(--night); color: var(--mint); padding: 0 10px; border-radius: 12px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.trust { list-style: none; padding: 0; margin: -8px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { background: var(--mint-soft); color: var(--accent); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.req { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.store-badge { display: inline-block; border-radius: 8px; }
.store-badge img { height: 52px; width: auto; }
/* Google's PNG badge has clear space built in: larger, with that space trimmed, so both badges look the same height. */
.badges { align-items: flex-start; }
.badge-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.badge-note { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
section.closing .badge-col { align-items: center; }
.store-badge img.gp { height: 78px; margin: -13px -10px; }
.store-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn.primary { background: var(--night); color: #F5F7F2; }
/* Dark mode: night on a near-black page would vanish, so the main button turns mint. */
@media (prefers-color-scheme: dark) { .btn.primary { background: var(--mint); color: var(--night); } }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.8; line-height: 1.1; }
.btn .two { display: flex; flex-direction: column; line-height: 1.2; }
.fine { font-size: 14px; color: var(--muted); }
.phone { border-radius: 38px; overflow: hidden; border: 10px solid var(--night); box-shadow: 0 30px 60px -20px rgba(12,17,24,0.45); max-width: 320px; margin: 0 auto; background: var(--night); }

section { padding: 56px 0; }
section.alt { background: var(--surface); }
section.closing { text-align: center; }
section.closing .lead { margin-left: auto; margin-right: auto; }
section.closing .badges { justify-content: center; }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.8px; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.2px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.also-wrap { margin-top: 32px; }
.also-wrap summary { cursor: pointer; font-weight: 700; font-size: 20px; min-height: 44px; display: flex; align-items: center; gap: 6px; }
.also-wrap summary span { color: var(--muted); font-weight: 500; font-size: 16px; }
/* A flex summary loses the browser's arrow, so draw one that turns when open. */
.also-wrap summary { list-style: none; }
.also-wrap summary::-webkit-details-marker { display: none; }
.also-wrap summary::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); margin-right: 8px; }
.also-wrap[open] summary::before { transform: rotate(45deg); }
.also { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.also li { color: var(--muted); font-size: 16px; padding-left: 16px; position: relative; }
.also li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.also strong { color: var(--ink); }
.pill { display: inline-block; background: var(--mint-soft); color: var(--accent); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; margin-top: 24px; }
.shots figure { margin: 0; flex: 0 0 260px; scroll-snap-align: start; }
.shots img { border-radius: 22px; box-shadow: 0 18px 40px -22px rgba(12,17,24,0.5); }

.privacy-band { background: var(--night); color: #F2F5F2; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.privacy-band h2 { color: #F2F5F2; }
.privacy-band ul { margin: 0; padding-left: 20px; }
.privacy-band li { margin: 6px 0; }
.privacy-band a { color: var(--mint); }

.notice { border-left: 4px solid var(--coral); background: var(--surface); padding: 16px 18px; border-radius: 12px; }

.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1px; line-height: 1.1; }
.prose h2 { font-size: 26px; margin-top: 36px; }
.prose h3 { margin-top: 24px; }
.prose li { margin: 4px 0; }
/* Long email addresses wrap instead of pushing the page sideways on narrow phones. */
.prose a[href^="mailto:"] { overflow-wrap: anywhere; }
.page { padding: 24px 0 64px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 12px; margin: 20px 0 8px; }
.toc h2 { font-size: 18px; margin: 14px 0 6px; }
.toc ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; }
@media (max-width: 820px) { .toc ul { columns: 1; } }
.prose h2[id] { scroll-margin-top: 16px; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
.faq details p { margin-top: 0; color: var(--muted); }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: var(--mint); font-weight: 800; display: grid; place-items: center; }

.learn-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.learn-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); height: 100%; }
.learn-list a:hover { border-color: var(--accent); }
.learn-list .meta { color: var(--muted); font-size: 14px; }
.keypoints { background: var(--mint-soft); border-radius: 16px; padding: 14px 18px 14px 36px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-note { flex-basis: 100%; margin: 0; font-size: 13px; }
footer.site a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); margin-right: 16px; }

/* Desktop: the five screenshots fit side by side, no sideways scrolling. */
/* Desktop: the six store pictures in a 3 x 2 grid, no sideways scrolling. */
@media (min-width: 821px) { .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; overflow: visible; } .shots figure { min-width: 0; } }

@media (max-width: 820px) {
  .hero .wrap, .privacy-band { grid-template-columns: 1fr; }
  .grid, .learn-list, .also { grid-template-columns: 1fr; }
  nav.site a { margin: 0 8px 0 0; }
  nav.site a:first-child { padding-left: 0; }
  .privacy-band { padding: 28px 22px; }
  .phone { max-width: 260px; border-width: 8px; border-radius: 32px; }
  .hero { padding-top: 16px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
