/* ============================================================
   Screentime Nanny — marketing site
   Aurora visual system (ported from the app brand layer)
   ============================================================ */

:root {
  --bg: #090d14;
  --bg-2: #0b1018;
  --ink: rgba(255, 255, 255, 0.96);
  --ink-dim: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.40);
  --line: rgba(255, 255, 255, 0.10);

  --teal: #00A4B2;
  --blue: #3FC5D2;
  --purple: #7856e0;
  --earn: #16c08a;
  --spend: #ff7e8a;
  --gold: #FEC20A;

  --accent: var(--teal);
  --accent-2: var(--blue);
  --grad: linear-gradient(118deg, var(--accent), var(--accent-2));

  --radius: 26px;
  --radius-sm: 16px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Aurora atmosphere ------------------------------------------ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 16% -8%, rgba(0, 164, 178, 0.36), transparent 56%),
    radial-gradient(120% 90% at 94% 6%, rgba(63, 197, 210, 0.30), transparent 54%),
    radial-gradient(130% 100% at 50% 116%, rgba(254, 194, 10, 0.24), transparent 60%),
    var(--bg);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

::selection { background: rgba(63, 197, 210, 0.30); }

/* Layout primitives ----------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(42px, 6.2vw, 78px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; }

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 52ch;
  margin: 22px 0 0;
  text-wrap: pretty;
}
.lede.center { margin-left: auto; margin-right: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glass surface --------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border-radius: var(--radius);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 1px rgba(0, 0, 0, 0.20);
}

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 16px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.975); }
.btn-primary {
  color: #07120f;
  background: var(--grad);
  box-shadow: 0 12px 30px rgba(0, 164, 178, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(0, 164, 178, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }

/* Store badges ---------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a0d12;
  transition: transform 0.18s var(--ease), box-shadow 0.25s;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4); }
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .sb-small { font-size: 10.5px; font-weight: 500; opacity: 0.7; letter-spacing: 0.02em; }
.store-badge .sb-big { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* Nav ------------------------------------------------------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
header.nav.scrolled {
  background: rgba(9, 13, 20, 0.72);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand .gly { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-dim); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); padding: 8px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 28px 22px;
    background: rgba(9, 13, 20, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 12px 0; font-size: 17px; width: 100%; }
}

/* Phone mockup ---------------------------------------------- */
.phone {
  width: 300px;
  aspect-ratio: 300 / 640;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2c31, #0c0d10 42%, #15171b);
  box-shadow:
    0 2px 3px rgba(255, 255, 255, 0.22) inset,
    0 -2px 4px rgba(0, 0, 0, 0.6) inset,
    0 50px 100px rgba(0, 0, 0, 0.55),
    0 12px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  flex: 0 0 auto;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 37px;
  overflow: hidden;
}
.phone .island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  border-radius: 16px;
  background: #000;
  z-index: 40;
}
.phone .statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 22px 0;
  z-index: 30;
  font-size: 13px; font-weight: 600;
  pointer-events: none;
}
.phone .statusbar .sb-right { display: flex; gap: 5px; align-items: center; }
.scr { position: absolute; inset: 0; padding: 50px 16px 18px; overflow: hidden; }

/* Kid screen (light glass) */
.scr-kid {
  background:
    radial-gradient(120% 70% at 12% -5%, rgba(0, 164, 178, 0.42), transparent 58%),
    radial-gradient(110% 80% at 96% 6%, rgba(63, 197, 210, 0.46), transparent 55%),
    linear-gradient(180deg, #eaf2f8, #dfeaf2);
  color: #11151c;
}
.scr-kid .sb { color: #11151c; }
.wallet-card {
  border-radius: 22px;
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 30px rgba(40, 60, 110, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  text-align: center;
}
.wallet-card .wc-top { display: flex; align-items: center; gap: 9px; justify-content: center; margin-bottom: 6px; }
.wallet-card .wc-chip {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(24, 184, 120, 0.22);
  display: grid; place-items: center; color: #0c9d78;
}
.wallet-card .wc-label { font-size: 14px; font-weight: 600; }
.wallet-card .wc-num { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.wallet-card .wc-sub { font-size: 12.5px; color: rgba(20, 25, 35, 0.5); margin-top: 4px; }

.kid-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: rgba(20, 25, 35, 0.45); margin: 18px 4px 9px; }
.app-list { border-radius: 20px; background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.6); overflow: hidden; }
.app-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
.app-row + .app-row { border-top: 1px solid rgba(40, 60, 110, 0.08); }
.app-ic { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; }
.app-nm { font-size: 15px; font-weight: 500; flex: 1; }
.app-rate { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.app-rate.cost { color: #e8556a; }
.app-rate.earn { color: #0fae82; }
.app-rate .dot { width: 8px; height: 8px; border-radius: 50%; }
.app-rate.cost .dot { background: #ff7e8a; }
.app-rate.earn .dot { background: #16c08a; }

.quest-row {
  display: flex; align-items: center; gap: 10px;
  border-radius: 16px; padding: 11px 12px; margin-top: 8px;
  background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.6);
}
.quest-star { width: 30px; height: 30px; border-radius: 9px; background: rgba(24, 184, 120, 0.2); display: grid; place-items: center; color: #0c9d78; }
.quest-txt { flex: 1; }
.quest-txt .qn { font-size: 14px; font-weight: 600; }
.quest-txt .qc { font-size: 12px; font-weight: 600; color: #0fae82; }
.quest-btn { font-size: 12.5px; font-weight: 700; color: #07120f; padding: 7px 13px; border-radius: 11px; background: linear-gradient(180deg, var(--teal), var(--blue)); border: none; }

/* Parent screen (dark) */
.scr-parent {
  background:
    radial-gradient(120% 70% at 18% -5%, rgba(63, 197, 210, 0.3), transparent 55%),
    radial-gradient(120% 80% at 95% 10%, rgba(0, 164, 178, 0.22), transparent 52%),
    #0a0e15;
  color: #fff;
}
.scr-parent .sb { color: #fff; }
.p-head { display: flex; align-items: center; justify-content: space-between; }
.p-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.p-bal { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 13px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.p-bal .lt { color: var(--teal); }
.stat-row { display: flex; gap: 9px; margin-top: 16px; }
.stat {
  flex: 1; border-radius: 16px; padding: 13px 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09);
}
.stat .sv { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.stat .sl { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.stat .sv.earn { color: var(--earn); }
.stat .sv.spend { color: var(--spend); }
.p-section { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-faint); margin: 20px 4px 9px; }
.list-card { border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); overflow: hidden; }
.lc-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 14.5px; }
.lc-row + .lc-row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.lc-row .k { color: var(--ink-dim); }
.lc-row .v { font-weight: 600; }
.lc-row .v.on { color: var(--teal); }

/* Feature cards --------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
.fcard { padding: 28px 26px 30px; border-radius: var(--radius); }
.fcard .fic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0, 164, 178, 0.12); border: 1px solid rgba(0, 164, 178, 0.22);
  color: var(--teal); margin-bottom: 20px;
}
.fcard h3 { margin-bottom: 9px; }
.fcard p { margin: 0; color: var(--ink-dim); font-size: 15.5px; line-height: 1.62; }

/* Steps ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 54px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-size: 14px; font-weight: 700; color: #07120f;
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 164, 178, 0.3);
}
.step h3 { font-size: 19px; margin-bottom: 7px; }
.step p { margin: 0; color: var(--ink-dim); font-size: 15px; }

/* Economy band ---------------------------------------------- */
.econ { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 56px); }
@media (max-width: 820px) { .econ { grid-template-columns: 1fr; text-align: center; } }
.econ-col .ec-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.econ-col.earn .ec-tag { color: var(--earn); }
.econ-col.spend .ec-tag { color: var(--spend); }
.econ-chip { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; margin-bottom: 11px; }
.econ-chip .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.econ-chip .nm { font-weight: 600; font-size: 16px; flex: 1; text-align: left; }
.econ-chip .rt { font-weight: 700; font-size: 14px; }
.econ-col.earn .rt { color: var(--earn); }
.econ-col.spend .rt { color: var(--spend); }
.econ-center { display: grid; place-items: center; }

/* Testimonials ---------------------------------------------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.tcard { padding: 28px 26px; border-radius: var(--radius); display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.tcard blockquote { margin: 0 0 22px; font-size: 16.5px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #07120f; background: var(--grad); }
.tcard .who .nm { font-weight: 600; font-size: 15px; }
.tcard .who .role { font-size: 13px; color: var(--ink-dim); }

/* Pricing --------------------------------------------------- */
.price-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); margin: 26px auto 0; }
.price-toggle button { border: none; background: none; color: var(--ink-dim); font-size: 14.5px; font-weight: 600; padding: 9px 20px; border-radius: 10px; transition: all 0.2s; }
.price-toggle button.active { color: #07120f; background: var(--grad); }
.price-toggle .save { font-size: 11px; font-weight: 700; color: var(--earn); margin-left: 2px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; max-width: 820px; margin-inline: auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }
.plan { padding: 34px 32px 38px; border-radius: var(--radius); position: relative; }
.plan.featured { border-color: rgba(0, 164, 178, 0.4); box-shadow: 0 24px 70px rgba(0, 164, 178, 0.14), 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.plan .ribbon { position: absolute; top: -13px; left: 32px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #07120f; padding: 6px 14px; border-radius: 9px; background: var(--grad); }
.plan .pname { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-dim); }
.plan .pprice { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.plan .pprice .amt { font-size: 54px; font-weight: 700; letter-spacing: -0.03em; }
.plan .pprice .per { font-size: 16px; color: var(--ink-dim); }
.plan .pnote { color: var(--ink-dim); font-size: 14.5px; min-height: 21px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-direction: column; gap: 13px; }
.plan li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--ink); }
.plan li svg { flex: 0 0 auto; margin-top: 3px; color: var(--teal); }
.plan li.muted { color: var(--ink-faint); }
.plan li.muted svg { color: var(--ink-faint); }

/* FAQ ------------------------------------------------------- */
.faq { max-width: 760px; margin: 50px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 4px; font-size: 18px; font-weight: 600; text-align: left; letter-spacing: -0.01em; }
.faq-q .pm { flex: 0 0 auto; width: 22px; height: 22px; position: relative; transition: transform 0.3s var(--ease); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-q .pm::before { width: 14px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 14px; transition: opacity 0.3s; }
.faq-item.open .pm::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { margin: 0 4px 26px; color: var(--ink-dim); font-size: 16px; line-height: 1.65; }

/* CTA band -------------------------------------------------- */
.cta-band { padding: clamp(48px, 6vw, 72px) clamp(28px, 6vw, 80px); border-radius: 34px; text-align: center; position: relative; overflow: hidden; }
.cta-band .glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 50% -20%, rgba(0, 164, 178, 0.22), transparent 60%), radial-gradient(80% 120% at 50% 120%, rgba(63, 197, 210, 0.22), transparent 60%); }

/* Footer ---------------------------------------------------- */
footer.foot { border-top: 1px solid var(--line); padding: 62px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
.foot-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; }
.foot-col a { display: block; color: var(--ink-dim); font-size: 15px; padding: 6px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-about p { color: var(--ink-dim); font-size: 15px; margin: 16px 0 20px; max-width: 32ch; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; }

/* Reveal on scroll ------------------------------------------ */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal { opacity: 1; transform: none; transition: none; } }

/* Doc pages (privacy / support) ----------------------------- */
.doc { max-width: 800px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 28px 90px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.doc .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 44px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 46px 0 14px; }
.doc h3 { font-size: 19px; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--ink-dim); font-size: 16.5px; line-height: 1.7; }
.doc p { margin: 0 0 16px; }
.doc ul { padding-left: 22px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.doc a.inline { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.doc .toc { margin: 0 0 40px; padding: 22px 26px; }
.doc .toc h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.doc .toc a { color: var(--ink-dim); font-size: 15px; padding: 5px 0; display: block; }
.doc .toc a:hover { color: var(--teal); }

/* Support specifics */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 12px; }
@media (max-width: 760px) { .help-grid { grid-template-columns: 1fr; } }
.help-card { padding: 26px 24px; border-radius: var(--radius); }
.help-card .fic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(0, 164, 178, 0.12); border: 1px solid rgba(0, 164, 178, 0.22); color: var(--teal); margin-bottom: 18px; }
.help-card h3 { margin-bottom: 7px; }
.help-card p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.contact-card { padding: 34px 32px; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 26px; }
.contact-card .ct h3 { margin-bottom: 6px; }
.contact-card .ct p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }

/* Tweaks panel (host-driven) -------------------------------- */
#tweaks {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 300px; max-width: calc(100vw - 36px);
  border-radius: 20px; padding: 16px 16px 18px;
  background: rgba(14, 18, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: none;
  font-size: 14px;
}
#tweaks.show { display: block; }
#tweaks .tk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#tweaks .tk-head .t { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
#tweaks .tk-x { background: none; border: none; color: var(--ink-dim); font-size: 18px; line-height: 1; padding: 2px 6px; }
#tweaks .tk-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 16px 0 8px; }
#tweaks .tk-label:first-of-type { margin-top: 0; }
.tk-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.tk-seg button { flex: 1; border: none; background: none; color: var(--ink-dim); font-size: 12.5px; font-weight: 600; padding: 8px 6px; border-radius: 8px; transition: all 0.18s; }
.tk-seg button.on { color: #07120f; background: var(--grad); }
.tk-swatches { display: flex; gap: 8px; }
.tk-swatches button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; padding: 0; }
.tk-swatches button.on { border-color: #fff; }

/* ============================================================
   LIGHT THEME  (toggled via the Tweaks panel → data-theme)
   ============================================================ */
:root[data-theme="light"] {
  --bg: #eef6f7;
  --bg-2: #e7f1ef;
  --ink: rgba(17, 21, 30, 0.96);
  --ink-dim: rgba(30, 38, 54, 0.62);
  --ink-faint: rgba(30, 38, 54, 0.42);
  --line: rgba(20, 40, 80, 0.12);
}
:root[data-theme="light"] .aurora {
  background:
    radial-gradient(120% 95% at 6% -4%,    rgba(255, 221, 122, 0.62), transparent 60%),  /* gold  #FFDD7A top-left */
    radial-gradient(120% 95% at 98% 4%,    rgba(122, 222, 230, 0.72), transparent 58%),  /* teal  #7ADEE6 top-right */
    radial-gradient(100% 85% at 88% 56%,   rgba(79, 200, 212, 0.50),  transparent 60%),  /* teal  #4FC8D4 mid-right */
    radial-gradient(125% 100% at 30% 118%, rgba(154, 232, 220, 0.62), transparent 62%),  /* mint  #9AE8DC bottom */
    linear-gradient(180deg, #EEF6F7, #E7F1EF);
}
:root[data-theme="light"] .aurora::after { opacity: 0.25; mix-blend-mode: multiply; }

:root[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(22px) saturate(1.9);
  -webkit-backdrop-filter: blur(22px) saturate(1.9);
  box-shadow:
    0 24px 56px rgba(20, 75, 85, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(20, 75, 85, 0.05);
}
:root[data-theme="light"] header.nav.scrolled {
  background: rgba(234, 241, 247, 0.74);
  border-bottom-color: var(--line);
}
:root[data-theme="light"] .nav-links.open { background: rgba(234, 241, 247, 0.97); }

:root[data-theme="light"] .btn-ghost {
  background: rgba(20, 40, 80, 0.05);
  border-color: rgba(20, 40, 80, 0.14);
  color: var(--ink);
}
:root[data-theme="light"] .btn-ghost:hover { background: rgba(20, 40, 80, 0.09); }

:root[data-theme="light"] .store-badge {
  background: #0d1118;
  color: #fff;
  box-shadow: 0 12px 28px rgba(40, 55, 100, 0.22);
}
:root[data-theme="light"] .store-badge svg[fill="#0a0d12"] path,
:root[data-theme="light"] .store-badge > svg:first-child:not([viewBox="0 0 24 24"]) { fill: #fff; }
:root[data-theme="light"] .store-badge .apple path { fill: #fff; }

:root[data-theme="light"] .price-toggle { background: rgba(20, 40, 80, 0.06); border-color: var(--line); }

:root[data-theme="light"] .fcard .fic,
:root[data-theme="light"] .help-card .fic {
  background: rgba(0, 164, 178, 0.12);
  border-color: rgba(48, 150, 130, 0.28);
  color: #00838f;
}
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .eyebrow::before { color: #00838f; }
:root[data-theme="light"] .plan li svg,
:root[data-theme="light"] .doc a.inline,
:root[data-theme="light"] .lc-row .v.on { color: #00838f; }

/* brand glyph eclipse centre dot stays readable on light */
:root[data-theme="light"] .brand .gly circle[fill="#090d14"] { fill: #eaf1f7; }

/* Tweaks panel stays dark in both themes */
:root[data-theme="light"] #tweaks .tk-label { color: rgba(255, 255, 255, 0.4); }
:root[data-theme="light"] #tweaks .tk-x { color: rgba(255, 255, 255, 0.62); }
:root[data-theme="light"] #tweaks .t { color: #fff; }

/* ============================================================
   MOBILE OPTIMIZATION (2026-07) — campaign traffic is ~85% phone.
   Appended as one block so it always wins the cascade and can be
   lifted out cleanly. Fixes: sideways scroll, buried CTA, oversized
   hero, sub-44px tap targets.
   ============================================================ */

/* Split sections: two columns on desktop, stacked on phones. These were
   inline styles on .wrap, which no media query could override — the fixed
   300px phone mock then pushed 125px past the viewport and the whole page
   scrolled sideways. */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.split-grid.art-first { grid-template-columns: 0.95fr 1.05fr; }

@media (max-width: 900px) {
  .split-grid, .split-grid.art-first { grid-template-columns: 1fr; }
  /* Copy leads, art follows — on a phone the words have to land first. */
  .split-grid.art-first > :first-child { order: 2; }
}

/* Belt-and-braces guard against a stray wide child. `clip` — NOT `hidden` —
   because hidden on <html> turns it into a scroll container, which breaks
   position:sticky and programmatic scrolling. The real fix is .split-grid above;
   this is just a net. */
html, body { overflow-x: clip; max-width: 100%; }

@media (max-width: 760px) {
  /* --- Hero: fit the promise + the button on one screen --------------- */
  h1 { font-size: clamp(32px, 9vw, 46px); line-height: 1.06; }
  .lede { font-size: 16.5px; line-height: 1.55; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.14em; }
  /* !important: these sections carry inline padding from the page builder. */
  .section { padding-top: 44px !important; padding-bottom: 44px; }
  [data-hero="showcase"] { padding-top: 26px !important; }
  .wrap { padding-inline: 20px; }

  /* Trim the hero lede to its first two sentences' worth of height —
     the full pitch continues down the page. */
  .hero-copy .lede { max-width: 34ch; }
  .hero-copy .badges { margin-top: 22px !important; }

  /* Phone mock scales to the viewport instead of overflowing it. */
  .phone { width: min(270px, 74vw); }
  .art-glow { width: min(300px, 80vw) !important; height: min(300px, 80vw) !important; }

  /* --- Tap targets: Apple's 44pt floor --------------------------------- */
  .nav-links.open a { padding: 14px 0; min-height: 44px; display: flex; align-items: center; }
  .foot-grid a, .faq-q, .plan a { min-height: 44px; }
  .store-badge { min-height: 52px; }

  /* --- Legibility: no body copy under 13px ----------------------------- */
  .sb-small { font-size: 11.5px; }
  .kid-label, .p-label { font-size: 12px; }

  /* Long words (URLs, compound headlines) never widen the page. */
  h1, h2, h3, p, li, a { overflow-wrap: anywhere; }
}

/* Small phones (SE / 13 mini, 375pt) */
@media (max-width: 380px) {
  h1 { font-size: 32px; }
  .wrap { padding-inline: 17px; }
  .phone { width: min(250px, 72vw); }
}

/* ============================================================
   STICKY MOBILE CTA
   Phones only. Hidden until the hero is scrolled past, and auto-hides
   whenever a real App Store badge is already on screen (see index.html)
   so the page never asks twice at once.
   ============================================================ */
.mcta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(252, 253, 255, 0.86);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border-top: 1px solid rgba(10, 13, 18, 0.08);
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.mcta.show { transform: translateY(0); }
:root[data-theme="dark"] .mcta {
  background: rgba(9, 13, 20, 0.88);
  border-top-color: rgba(255, 255, 255, 0.1);
}
.mcta-in { display: flex; align-items: center; gap: 11px; max-width: 520px; margin: 0 auto; }
.mcta-icon { border-radius: 9px; flex: 0 0 auto; }
.mcta-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mcta-txt strong { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.mcta-txt span { font-size: 12.5px; color: var(--ink-faint); }
.mcta-btn {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  color: #08262a;
  background: linear-gradient(135deg, #FEC20A, #3FC5D2 62%, #00A4B2);
  box-shadow: 0 6px 18px rgba(0, 164, 178, 0.32);
}
.mcta-btn:active { transform: scale(0.97); }

@media (max-width: 900px) { .mcta { display: block; } }
/* Keep the last section clear of the bar. */
@media (max-width: 900px) { body { padding-bottom: 76px; } }
