/* Nurtu — marketing site.
   Night-sky identity, carried straight from the app's Today screen: deep indigo,
   twinkling stars, the mascots lit from within. The coral CTA is the one warm
   thing on the page, which is exactly why the eye finds it. */

:root {
  color-scheme: dark;

  /* Ground — the app's own sky gradient */
  --night: #141334;
  --night-2: #1d1a41;
  --night-3: #2a2350;

  /* Ink. Not grey — violet-biased, so it belongs to the sky */
  --star: #f4f2ff;
  --haze: #b9b0e0;
  --dim: #8b82b4;

  /* One warm accent, and one gold for starlight */
  --coral: #f4643e;
  --coral-2: #ff8a5c;
  --gold: #f7ce7a;

  --glass: rgba(255, 255, 255, 0.055);
  --glass-line: rgba(179, 169, 245, 0.19);
  --paper: #fffdfa;

  --max: 1120px;
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--star);
  background: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The starfield sits behind everything, fixed, so scrolling feels like moving
   through the sky rather than past a picture of one. */
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky-wash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 520px at 12% -5%, rgba(122, 111, 224, 0.34), transparent 62%),
    radial-gradient(680px 480px at 92% 12%, rgba(244, 100, 62, 0.14), transparent 60%),
    linear-gradient(178deg, var(--night) 0%, var(--night-2) 52%, var(--night-3) 100%);
}
.above { position: relative; z-index: 1; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ── header ───────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(160%) blur(16px);
  background: rgba(20, 19, 52, 0.72);
  border-bottom: 1px solid var(--glass-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; text-decoration: none; color: var(--star); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(140deg, var(--coral-2), var(--coral));
  display: grid; place-items: center; font-size: 15px; color: #fff;
  box-shadow: 0 0 18px rgba(244, 100, 62, 0.45);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--haze); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--star); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(140deg, var(--coral-2), var(--coral));
  color: #fff; text-decoration: none; font-weight: 700; font-size: 16.5px;
  padding: 16px 30px; border-radius: 16px; border: 0; cursor: pointer;
  box-shadow: 0 10px 30px rgba(244, 100, 62, 0.42);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(244, 100, 62, 0.5); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-sm { padding: 11px 20px; font-size: 15px; border-radius: 13px; }

/* ── type ─────────────────────────────────────────── */
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; letter-spacing: -1.5px; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(25px, 3.4vw, 36px); line-height: 1.16; letter-spacing: -1px; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
h3 { font-size: 18px; margin: 0 0 7px; font-weight: 700; letter-spacing: -0.2px; }
.lead { font-size: clamp(16.5px, 1.7vw, 19px); color: var(--haze); margin: 0 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); background: rgba(247, 206, 122, 0.11);
  border: 1px solid rgba(247, 206, 122, 0.26);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 620px; }
section { padding: 74px 0; position: relative; z-index: 1; }
section.tight { padding: 52px 0; }

/* ── hero: everything that matters, above the fold ── */
.hero { padding: 36px 0 30px; }
@media (max-width: 940px) { .hero-top { grid-template-columns: 1fr; gap: 30px; } }
.hero-note { font-size: 13.5px; color: var(--dim); margin: 10px 0 0; }

/* the six props, in the hero — the whole offer readable without scrolling */
@media (max-width: 1000px) { .props { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .props { grid-template-columns: repeat(2, 1fr); } }

/* ── device ───────────────────────────────────────── */
.device {
  background: linear-gradient(170deg, #1a1740, #241d4d);
  border: 1px solid var(--glass-line); border-radius: 30px; padding: 15px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(122, 111, 224, 0.18);
}
.screen { border-radius: 21px; padding: 20px 16px; background: linear-gradient(178deg, #141334, #221c47); display: flex; flex-direction: column; gap: 10px; }
.screen-day { font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--dim); }
.row {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: 13px; padding: 10px 12px;
}
.row .ic { font-size: 17px; }
.row .tx { font-size: 13px; font-weight: 600; }
.row .tm { margin-left: auto; font-size: 11.5px; color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.row.hi { border-color: rgba(247, 206, 122, 0.42); background: rgba(247, 206, 122, 0.09); }
.mic-cta {
  margin-top: 4px; background: linear-gradient(140deg, var(--coral-2), var(--coral));
  border-radius: 13px; padding: 12px; text-align: center; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 8px 22px rgba(244, 100, 62, 0.35);
}

/* ── feature rows ─────────────────────────────────── */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.feat.flip .feat-media { order: -1; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; gap: 30px; } .feat.flip .feat-media { order: 0; } }
.mascot { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 10px 26px rgba(122, 111, 224, 0.5)); }
.mascot-sm { width: 60px; height: 60px; object-fit: contain; }

/* ── cards ────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .g3, .g2 { grid-template-columns: 1fr; } }
.card {
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: 18px; padding: 24px;
}
.card p { color: var(--haze); margin: 0; font-size: 15px; }
.card .emoji { font-size: 24px; display: block; margin-bottom: 10px; }

.pull { font-size: clamp(20px, 2.8vw, 29px); line-height: 1.34; font-weight: 800; letter-spacing: -0.7px; margin: 0; text-wrap: balance; }
.pull em { color: var(--gold); font-style: normal; }

/* ── pricing ──────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--glass); border: 2px solid var(--glass-line); border-radius: 18px; padding: 24px; text-align: center; position: relative; }
.plan.best { border-color: var(--coral); background: rgba(244, 100, 62, 0.1); }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 13px; border-radius: 999px; white-space: nowrap; }
.plan .amt { font-size: 36px; font-weight: 800; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.plan .per { color: var(--dim); font-size: 13.5px; }
.plan .sub { color: var(--haze); font-size: 13.5px; margin-top: 7px; }

/* ── faq ──────────────────────────────────────────── */
details { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 15px; padding: 17px 21px; margin-bottom: 10px; }
details summary { font-weight: 700; cursor: pointer; font-size: 16px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--gold); font-weight: 800; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--haze); margin: 11px 0 0; font-size: 15px; }
details summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── footer ───────────────────────────────────────── */
footer { border-top: 1px solid var(--glass-line); padding: 44px 0 56px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; gap: 22px; } }
footer a { color: var(--haze); text-decoration: none; font-size: 14.5px; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--gold); }
.foot-legal { font-size: 12.5px; color: var(--dim); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--glass-line); }

/* ── legal pages: paper on the sky, so long text stays readable ── */
.legal {
  background: var(--paper); color: #262238;
  border-radius: 22px; padding: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
@media (max-width: 700px) { .legal { padding: 26px; } }
.legal h1, .legal h2, .legal h3 { color: #1a1633; }
.legal h2 { font-size: 22px; margin: 34px 0 11px; letter-spacing: -0.4px; }
.legal h3 { font-size: 16.5px; margin: 22px 0 7px; }
.legal p, .legal li { color: #55506b; font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--coral); }
.legal table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #ece8f2; vertical-align: top; }
.legal th { font-weight: 700; color: #1a1633; }
.legal td { color: #55506b; }
.legal .updated { color: #8a84a3; font-size: 14px; }
.callout { background: rgba(244, 100, 62, 0.09); border-left: 3px solid var(--coral); border-radius: 10px; padding: 15px 17px; margin: 18px 0; }
.callout p { margin: 0; color: #a8401c; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ── hero: centred head, carousel, benefit grid ────── */
.hero-head { max-width: 900px; margin: 0 auto 30px; text-align: center; }
.hero-head h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; margin-bottom: 18px; }
.hero-head .lead { max-width: 660px; margin: 0 auto 26px; }
.hero-head .eyebrow { margin-bottom: 18px; }
.btn-lg { padding: 18px 34px; font-size: 18px; border-radius: 17px; }
.hero-head .hero-note { margin-top: 12px; }

/* The carousel is the proof: real screenshots of the real build. Slides are
   full-width flex children so one translate moves the whole track — no JS
   layout maths, and it degrades to a plain horizontal scroll without JS. */
.carousel { position: relative; max-width: 1080px; margin: 0 auto; }
.car-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  /* Deliberately NOT scroll-behavior:smooth. Both scrollTo({behavior:'smooth'})
     and smooth-mode assignment were verified to no-op entirely in an embedded
     Chromium — the carousel simply never advanced. Snap already makes the change
     feel deliberate, and instant is what a reduced-motion user should get anyway.
     To add easing back, put `scroll-behavior: smooth` here and re-test that the
     buttons still move the track. */
  border-radius: 22px; scrollbar-width: none; -ms-overflow-style: none;
  border: 1px solid var(--glass-line);
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.car-slide img, .car-slide picture { display: block; width: 100%; height: auto; }
.feat-shot picture { display: block; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(13,12,34,0.72); color: var(--star);
  border: 1px solid var(--glass-line); font-size: 26px; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(8px);
}
.car-btn:hover { background: rgba(13,12,34,0.92); }
.car-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.car-prev { left: 12px; }
.car-next { right: 12px; }
.car-dots { display: flex; justify-content: center; gap: 0; margin-top: 6px; }
.car-dots button {
  width: 44px; height: 44px; padding: 0; border: 0; cursor: pointer;
  background: transparent; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.car-dots button::before {
  content: ''; display: block; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(185,176,224,0.35); transition: width .18s ease, background .18s ease;
}
.car-dots button[aria-selected="true"]::before { background: var(--gold); width: 26px; border-radius: 5px; }
.car-dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.benefits {
  list-style: none; padding: 0; margin: 42px auto 0; max-width: 1080px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.benefits li {
  display: flex; gap: 13px; align-items: flex-start;
  background: rgba(255,255,255,0.045); border: 1px solid var(--glass-line);
  border-radius: 16px; padding: 17px 18px;
}
.benefits .bic { font-size: 22px; line-height: 1.1; flex: 0 0 auto; }
.benefits b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.benefits span { display: block; font-size: 13.5px; color: var(--dim); line-height: 1.5; }

/* Feature rows below the fold: full-bleed image, copy underneath. */
.feat-shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-line); box-shadow: 0 22px 60px rgba(0,0,0,0.4); }
.feat-shot img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .car-btn { display: none; }
}
@media (max-width: 620px) {
  .benefits { grid-template-columns: 1fr; }
  .hero-head h1 { font-size: 31px; }
}


/* Wide content scrolls inside its own box; the page never scrolls sideways.
   The processor table in the privacy policy is four columns and 406px wide —
   on a 375px phone that dragged the whole document 80px to the right. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.table-scroll table { margin: 0; min-width: 100%; }
.legal .table-scroll th, .legal .table-scroll td { white-space: normal; }

@media (max-width: 620px) {
  .legal { padding: 20px 16px; border-radius: 16px; }
  .legal h1 { font-size: 27px !important; }
  .legal h2 { font-size: 20px; }
  .table-scroll table { min-width: 480px; }   /* readable, and it scrolls */
  .wrap { padding: 0 16px; }
  section { padding: 48px 0; }
  section.tight { padding: 34px 0; }
}


/* Footer and nav links were 23px tall — fine with a mouse, a miss-tap on a
   phone. Padding lifts them past the 44px minimum without changing the look. */
@media (max-width: 700px) {
  footer a, .foot-legal a, .nav-links a { display: inline-block; padding: 11px 0; }
  .logo { padding: 6px 0; }
}
