/* ==========================================================================
   FlashAndGo — Shared Marketing Styles
   Brand: Safe · Playful · Empowering · Trustworthy
   Palette: Flash blue #2957E0 · Accent Purple #8C59D9
            Warm Amber #F2A626 · Creative Teal #33B3BF
   Font: SF Pro / system font stack (no custom fonts bundled)
   ========================================================================== */

:root {
  /* Brand colors */
  --blue: #2957E0;
  --blue-dark: #2d5bc7;
  --purple: #8C59D9;
  --amber: #F2A626;
  --teal: #33B3BF;

  /* Accessible ink shades for links + small/decorative glyphs (>=3:1 / 4.5:1) */
  --blue-link: #2d5bc7;   /* ~6:1 on white — body links */
  --teal-ink: #1f8a95;    /* darker teal for icon glyphs on tints */
  --amber-ink: #b5760f;   /* darker amber for icon glyphs on tints */

  /* Tints (selected-state fills @ ~12-16%) */
  --blue-tint: #eaf1fe;
  --purple-tint: #f3edfb;
  --amber-tint: #fef4e2;
  --teal-tint: #e7f7f8;

  /* Neutrals */
  --ink: #101A33;
  --ink-soft: #3a3a3c;
  --ink-muted: #6e6e73;
  --line: #e6e6ea;
  --surface: #ffffff;
  --surface-soft: #F5F7FF;
  --surface-softer: #fafafc;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Geometry */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1120px;

  /* Shadows — restrained, per brand guidance */
  --shadow-sm: 0 2px 8px rgba(29, 29, 31, 0.06);
  --shadow: 0 12px 32px rgba(29, 29, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(29, 29, 31, 0.16);

  --nav-h: 64px;
}

/* ----------------------------------- Reset ----------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Keep in-page anchor targets clear of the sticky nav */
:target, [id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font);
  font-size: 17px;          /* brand: never below 17pt for read text */
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Plain :focus fallback for browsers without :focus-visible support, then
   suppress the ring on mouse focus where :focus-visible is supported. */
a:focus, button:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* ----------------------------------- Nav ------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 55%, var(--purple) 100%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand .mark svg { width: 20px; height: 20px; }

.nav-links {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li { flex: none; }
.nav-links a {
  display: inline-block;
  white-space: nowrap;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.nav-links a:hover { background: var(--surface-soft); text-decoration: none; color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-tint);
}
.nav-links a.cta {
  background: var(--blue);
  color: #fff;
}
.nav-links a.cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    max-height: calc(100vh - var(--nav-h) - 1px);
    max-height: calc(100dvh - var(--nav-h) - 1px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open {
    display: flex;
    /* Fully opaque sheet so the colorful hero never bleeds through */
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links a { padding: 12px 14px; font-size: 17px; }
  .nav-links a.cta { text-align: center; margin-top: 4px; }
}

/* --------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  min-height: 52px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-muted); background: var(--surface-soft); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* App Store "Coming Soon" badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: default;
}
.appstore-badge:hover { text-decoration: none; }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .ab-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-badge .ab-small { font-size: 11px; font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; }
.appstore-badge .ab-big { font-size: 17px; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-tint);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ----------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(140, 89, 217, 0.18), transparent 60%),
    radial-gradient(720px 520px at -6% 12%, rgba(51, 179, 191, 0.20), transparent 58%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 78%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero h1 .grad {
  /* Darkened stops so the whole sweep clears WCAG 3:1 for large text on white */
  background: linear-gradient(120deg, var(--blue-dark), #1f8f99 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue-dark); /* fallback if background-clip:text unsupported */
}
.hero .tagline {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.hero .lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  list-style: none;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--teal-ink); }

/* Phone mockup */
.phone-stage { display: flex; justify-content: center; align-items: center; }
.phone {
  position: relative;
  width: 300px;
  max-width: 80vw;
  aspect-ratio: auto;
  background: #0c0c0e;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #1a1a1d;
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: 36px;
  overflow: hidden;
  /* Graceful placeholder when no screenshot image is present */
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(64,121,242,0.30), transparent 55%),
    linear-gradient(160deg, var(--blue) 0%, var(--teal) 55%, var(--purple) 120%);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
.phone-screen .placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  padding: 24px;
}
.phone-screen .placeholder svg { width: 64px; height: 64px; margin: 0 auto 14px; }
.phone-screen .placeholder strong { display: block; font-size: 19px; font-weight: 700; }
.phone-screen .placeholder span { font-size: 14px; opacity: 0.85; }
/* Real screenshot fills the screen; the gradient placeholder shows behind it
   only if the image is missing or fails to load. */
.phone-screen .phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 36px;
  z-index: 2;
}

/* floating accent chips around the phone */
.phone-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow);
  z-index: 4;
}
.phone-float svg { width: 18px; height: 18px; }
.phone-float.f1 { top: 14%; left: -28px; color: var(--teal-ink); }
.phone-float.f2 { top: 46%; right: -34px; color: var(--purple); }
.phone-float.f3 { bottom: 6%; left: -10px; color: var(--amber-ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 52px 0 64px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .phone-stage { order: 0; }
}

/* Decorative chips are purely cosmetic; hide them where the phone shrinks
   enough that their fixed offsets would clip off the edge of the hero. */
@media (max-width: 560px) {
  .phone-float { display: none; }
}

/* --------------------------------- Sections --------------------------------- */
.section { padding: 84px 0; }
.section-soft { background: var(--surface-soft); }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--blue-tint) 100%); }

.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p { font-size: 18px; color: var(--ink-muted); }

/* two-up audience cards (parents / kids) */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.audience-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.audience-card.parents { background: linear-gradient(180deg, var(--blue-tint), #fff 70%); border-color: #dbe6fd; }
.audience-card.kids { background: linear-gradient(180deg, var(--teal-tint), #fff 70%); border-color: #cfeef0; }
.audience-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.audience-card.parents .badge { background: var(--blue); color: #fff; }
.audience-card.kids .badge { background: var(--teal); color: #fff; }
.audience-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.01em; }
.audience-list { list-style: none; display: grid; gap: 16px; }
.audience-list li { display: flex; gap: 13px; align-items: flex-start; }
.audience-list .ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.audience-list .ic svg { width: 20px; height: 20px; }
.audience-card.parents .ic { background: var(--blue-tint); color: var(--blue); }
.audience-card.kids .ic { background: var(--teal-tint); color: var(--teal-ink); }
.audience-list strong { display: block; font-size: 17px; font-weight: 700; }
.audience-list p { font-size: 15.5px; color: var(--ink-muted); margin: 2px 0 0; }

@media (max-width: 760px) { .audience-grid { grid-template-columns: 1fr; } }

/* features grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-icon.c-blue { background: var(--blue-tint); color: var(--blue); }
.feature-icon.c-purple { background: var(--purple-tint); color: var(--purple); }
.feature-icon.c-amber { background: var(--amber-tint); color: var(--amber-ink); }
.feature-icon.c-teal { background: var(--teal-tint); color: var(--teal-ink); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.feature-card p { font-size: 15.5px; color: var(--ink-muted); }

@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- Why FlashAndGo is different (lead value prop) ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.why-card:first-child {
  border-color: #dbe6fd;
  background: linear-gradient(180deg, var(--blue-tint), #fff 72%);
}
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }
.why-card p { font-size: 15.5px; color: var(--ink-muted); }
@media (max-width: 880px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }

/* ---- Screenshots showcase ---- */
#screenshots { background: var(--surface-softer); }
.shots-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: start;
}
.shot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.shot-frame {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  background: #0c0c0e;
  border-radius: 26px;
  padding: 7px;
  box-shadow: var(--shadow);
  border: 1.5px solid #1a1a1d;
}
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
}
.shot-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* On narrow screens the row becomes a horizontal scroller */
@media (max-width: 980px) {
  .shots-rail {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 18px;
    margin: 0 -4px;
    scrollbar-width: thin;
  }
  .shot-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
  }
}
@media (max-width: 460px) {
  .shot-card { width: 168px; }
}

/* privacy / trust section */
.trust {
  color: #fff;
  /* Darker floor + lower-alpha highlights so even the lightest point keeps
     small body text above WCAG AA (4.5:1). */
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(51,179,191,0.22), transparent 60%),
    radial-gradient(600px 420px at 0% 90%, rgba(140,89,217,0.22), transparent 60%),
    linear-gradient(135deg, var(--blue-dark) 0%, #1f3d8a 100%);
}
.trust .section-head h2 { color: #fff; }
.trust .section-head p { color: rgba(255,255,255,0.92); }
.trust .eyebrow { background: rgba(255,255,255,0.16); color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.trust-item .ti-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.16);
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.trust-item .ti-icon svg { width: 28px; height: 28px; color: #fff; }
.trust-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.trust-item p { font-size: 14.5px; color: rgba(255,255,255,0.92); }
.trust-note {
  text-align: center;
  margin-top: 34px;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
}
.trust-note a { color: #fff; font-weight: 600; text-decoration: underline; }

@media (max-width: 880px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust-grid { grid-template-columns: 1fr; } }

/* --------------------------------- FAQ -------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-q-h { margin: 0; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 22px 24px;
  cursor: pointer;
}
.faq-q:hover { color: var(--blue); }
.faq-q .chev {
  flex: none;
  width: 24px; height: 24px;
  color: var(--blue);
  transition: transform 0.22s ease;
}
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 24px 22px;
  color: var(--ink-muted);
  font-size: 16.5px;
}
.faq-a.open { display: block; }
.faq-a p + p { margin-top: 12px; }

/* --------------------------------- CTA band --------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { font-size: 18px; color: var(--ink-muted); max-width: 52ch; margin: 0 auto 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------- Footer ----------------------------------- */
.footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer .brand { margin-bottom: 14px; }
.footer-about { color: var(--ink-muted); font-size: 15.5px; max-width: 38ch; }
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); font-weight: 500; font-size: 16px; }
.footer-col a:hover { color: var(--blue); }
.footer-col a[aria-current="page"] { color: var(--blue); font-weight: 700; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14.5px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------- Legal / content pages ---------------------------- */
.page-header {
  background:
    radial-gradient(700px 360px at 88% -20%, rgba(140,89,217,0.16), transparent 60%),
    linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
  text-align: center;
}
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-header .meta { color: var(--ink-muted); font-size: 16px; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}
.doc h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 19px; font-weight: 700; color: var(--ink-soft); margin: 26px 0 8px; }
.doc p { margin-bottom: 16px; color: var(--ink-soft); }
.doc ul { margin: 0 0 18px; padding-left: 24px; }
.doc li { margin-bottom: 9px; color: var(--ink-soft); }
.doc a { font-weight: 600; }

.highlight-box {
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  margin: 0 0 30px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.highlight-box p { margin-bottom: 0; font-weight: 600; color: var(--ink); }

.contact-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 40px;
}
.contact-card h2 { border: none; margin-top: 0; padding: 0; }
.contact-card p:last-child { margin-bottom: 0; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-weight: 600;
}
.back-home svg { width: 18px; height: 18px; }

/* support cards */
.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 8px;
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.support-card .feature-icon { margin: 0 auto 16px; }
.support-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.support-card p { font-size: 15.5px; color: var(--ink-muted); margin-bottom: 14px; }
.support-card a { font-weight: 600; }
@media (max-width: 800px) { .support-cards { grid-template-columns: 1fr; } }

/* ---------------------- Reduced motion / accessibility ---------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .feature-card:hover, .btn-white:hover, .btn-primary:hover { transform: none; }
}

/* Current Flash & Go identity; same mark as the app icon. */
.brand .mark { background: #2957E0; overflow: hidden; }
.brand .mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
