/* Hand-written, no framework. Four pages do not need a build toolchain.
   Dark mode is honoured rather than forced: someone may well be reading this
   at night, which is the whole premise of the app. */
:root {
  --navy: #16294f;
  --navy-deep: #0e1d40;
  --amber: #f2a238;
  --ink: #1a1a1c;
  --muted: #5c6270;
  --bg: #ffffff;
  --card: #f5f2eb;
  --line: #e4e0d8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececef; --muted: #a0a6b4; --bg: #101116;
    --card: #191b22; --line: #2a2d38;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1000px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

main { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 56px 0 40px; max-width: 720px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 18px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.cta {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: 12px; font-weight: 600;
}
.soon {
  display: inline-block; border: 1px solid var(--line); color: var(--muted);
  padding: 13px 24px; border-radius: 12px; font-weight: 600; margin: 0;
}
.fine { color: var(--muted); font-size: 14px; }

.features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding: 24px 0 48px; }
.features article { background: var(--card); border-radius: 16px; padding: 26px; }
.features h2 { font-size: 19px; margin: 0 0 10px; }
.features p { margin: 0 0 12px; color: var(--muted); }
.features p:last-child { margin-bottom: 0; }

.privacy-band { background: var(--navy-deep); color: #fff; border-radius: 20px; padding: 36px; margin-bottom: 48px; }
.privacy-band h2 { margin: 0 0 18px; font-size: 24px; }
.privacy-band ul { margin: 0 0 18px; padding-left: 20px; }
.privacy-band li { margin-bottom: 10px; }
.privacy-band .fine, .privacy-band a { color: #c9d4e8; }

.closing { text-align: center; padding: 16px 0 64px; }
.closing h2 { font-size: 28px; margin: 0 0 10px; }
.closing p { color: var(--muted); margin: 0 0 22px; }

.prose { max-width: 720px; padding-bottom: 56px; }
.prose h1 { font-size: 34px; margin: 32px 0 6px; }
.prose h2 { font-size: 20px; margin: 34px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose .meta { color: var(--muted); font-size: 14px; }
.prose .note { color: var(--muted); font-size: 14px; border-left: 3px solid var(--line); padding-left: 14px; }

.crisis { background: var(--card); border-radius: 16px; padding: 24px; margin: 24px 0 36px; }
.crisis h2 { margin-top: 0; }
.numbers { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.numbers a {
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 13px 18px; border-radius: 10px; font-weight: 600; text-align: center;
}
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 28px 24px 48px; }
footer p { max-width: 1000px; margin: 0 auto 12px; color: var(--muted); font-size: 15px; }
footer a { color: var(--ink); }

/* ── Marketing layout ─────────────────────────────────────────────────── */
.hero {
  display: grid; gap: 48px; align-items: center; padding: 48px 0 56px;
  grid-template-columns: 1.05fr 0.95fr;
  /* Resets the 720px from the single-column rule above, which still applied to
     this grid and left the whole hero sitting 720px wide inside a 1000px
     container - left of the page centre, while the nav spanned the full width.
     That is the "not really centred" everyone could see and nobody could name. */
  max-width: none;
}
/* The measure stays readable even though the hero no longer is. */
.hero-text { max-width: 30rem; }
.hero-text h1 { font-size: clamp(30px, 4.2vw, 50px); }
.hero-shot { display: flex; justify-content: center; }
.hero-shot img, .feature-shot img {
  /* Bounded on both axes. A full phone screenshot is roughly 1:2.2, so sizing
     by width alone let a 300px-wide image run to 650px tall and tower over the
     text beside it. */
  width: auto; max-width: 290px; max-height: 580px; height: auto;
  border-radius: 26px;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
@media (prefers-color-scheme: dark) {
  .hero-shot img, .feature-shot img { box-shadow: 0 24px 60px rgba(0,0,0,.55); }
}

.band { background: var(--card); border-radius: 18px; margin-bottom: 56px; }
.band-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px; padding: 26px 30px; text-align: center;
}
.band-inner strong { display: block; font-size: 17px; }
.band-inner span { color: var(--muted); font-size: 14px; }

.feature {
  display: grid; gap: 44px; align-items: center; padding: 20px 0 64px;
  grid-template-columns: 1fr 0.75fr;
}
.feature.reverse { grid-template-columns: 0.75fr 1fr; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-shot { order: 1; }
.feature h2 { font-size: clamp(23px, 3vw, 31px); margin: 0 0 14px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin: 0 0 14px; font-size: 17px; }
.feature p strong { color: var(--ink); }


.privacy-band .band-lede { color: #c9d4e8; margin: -6px 0 18px; }
.faq { padding: 8px 0 56px; max-width: 760px; }
.faq h2 { font-size: 28px; margin-bottom: 8px; }

@media (max-width: 820px) {
  .hero, .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-text, .feature.reverse .feature-shot { order: initial; }
  .hero-shot, .feature-shot { order: 2; }
  .hero-shot img, .feature-shot img { max-width: 260px; max-height: 520px; }
  .hero-text { max-width: none; }
}

/* The sponsor gets visual weight the other features do not — it is the reason
   to install, and the rest is why you stay. */
.sponsor-feature { position: relative; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.sponsor-feature h2 { font-size: clamp(26px, 3.6vw, 38px); }
.sponsor-feature .feature-text { border-left: 3px solid var(--amber); padding-left: 26px; }

.grid-features { padding: 8px 0 56px; }
.grid-features h2 { font-size: 28px; margin-bottom: 22px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid article { background: var(--card); border-radius: 14px; padding: 22px; }
.grid h3 { font-size: 17px; margin: 0 0 8px; }
.grid p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .sponsor-feature .feature-text { padding-left: 18px; } }

/* ── Motion ───────────────────────────────────────────────────────────────
   A short fade and a small rise, once. Nothing loops, nothing bounces.
   Someone reading this may be having a bad night; the page should feel calm.

   The default state is VISIBLE. Only a browser that runs the script and does
   not prefer reduced motion ever hides anything, so the content can never be
   trapped behind a failed animation. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2,.6,.2,1),
                transform .7s cubic-bezier(.2,.6,.2,1);
  }
  .js-motion [data-reveal].is-visible { opacity: 1; transform: none; }

  /* The hero should never wait for a scroll - it is already on screen. */
  .js-motion .hero-text > * { animation: rise .8s cubic-bezier(.2,.6,.2,1) both; }
  .js-motion .hero-text > *:nth-child(2) { animation-delay: .08s; }
  .js-motion .hero-text > *:nth-child(3) { animation-delay: .16s; }
  .js-motion .hero-text > *:nth-child(4) { animation-delay: .24s; }
  .js-motion .hero-shot { animation: rise 1s cubic-bezier(.2,.6,.2,1) .12s both; }

  /* Cards arrive in sequence rather than all at once. */
  .js-motion .grid article,
  .js-motion .features article,
  .js-motion .how li { transition-delay: calc(var(--i, 0) * 60ms); }

  @keyframes rise { from { opacity: 0; transform: translateY(20px); } }
}

/* The store button is the one thing allowed to invite a click. */
.cta { transition: transform .18s ease, box-shadow .18s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,41,79,.3); }
.numbers a { transition: transform .18s ease; }
.numbers a:hover { transform: translateY(-1px); }
details summary { transition: color .15s ease; }
details[open] summary { color: var(--navy); }
@media (prefers-color-scheme: dark) { details[open] summary { color: var(--amber); } }

/* ── How it works: a line you move along, not four boxes ───────────────── */
.how { padding: 16px 0 64px; }
.how h2 { font-size: 28px; margin: 0 0 6px; }
.how-lede { color: var(--muted); margin: 0 0 34px; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  position: relative;
}
/* The line the steps sit on. Behind the dots, stopping short at both ends so
   it reads as a path rather than a rule across the page. */
.steps::before {
  content: ""; position: absolute; top: 17px; left: 12%; right: 12%;
  height: 2px; background: linear-gradient(90deg, var(--line), var(--navy) 20%, var(--navy) 80%, var(--line));
  opacity: .55;
}
.steps li { position: relative; padding-top: 52px; }
.dot {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--bg);      /* punches a hole in the line */
}
.steps li:last-child .dot { background: var(--amber); color: #1a1a1c; }
.steps h3 { font-size: 17px; margin: 0 0 7px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 17px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--navy), var(--navy) 85%, transparent); }
  .steps li { padding: 0 0 30px 56px; }
  .steps li:last-child { padding-bottom: 0; }
  .dot { top: -2px; }
}

/* The sponsor section puts its shot on the LEFT, so the page alternates:
   hero shot right → sponsor shot left → home shot right. */
@media (min-width: 821px) {
  .sponsor-feature { grid-template-columns: 0.8fr 1fr; }
  .sponsor-feature .feature-text { order: 2; }
  .sponsor-feature .feature-shot { order: 1; }
}

/* Long-form sections. These exist for people arriving from a search with a real
   question, so they are set for reading rather than for scanning like the
   feature grid above them. */
.long-form { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem; }
.long-form h2 { margin-bottom: .75rem; }
.long-form h3 { margin: 2rem 0 .5rem; font-size: 1.05rem; }
.long-form p { margin: 0 0 1rem; line-height: 1.7; }
.long-form .fine { font-size: .85rem; opacity: .7; margin-top: 1.5rem; }


/* /get - the App Store hop. On screen for about a quarter of a second, so it
   only has to not look broken while the beacon reports the pageview. */
.transit {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 48px 24px;
}
.transit img { border-radius: 14px; }
.transit p { margin: 0; color: var(--muted); }
