/* The public pages: home, buy, terms.
 *
 * The app itself (app.css) is built for one hand and a phone at arm's length,
 * and stays that way. These three pages are the other job: someone reading on
 * a laptop, deciding whether this thing is real. So the column opens up, the
 * type scale grows with the viewport, and the sections become a layout rather
 * than a stack — while the same tokens, colours and dark mode carry over, so
 * the site and the app are recognisably one thing.
 *
 * Loaded after app.css, and only by those three pages. Everything is additive:
 * at phone width this is still a single column. */

body.site {
  --page: 66rem;         /* the outer container; text is held narrower below */
  --measure: 36rem;      /* a comfortable line length, whatever the container */
  --band: 4.5rem;        /* vertical rhythm between sections on a big screen */
}

/* ---- header ----------------------------------------------------------------
   Full-bleed band, contents still lined up with the page column: the padding
   absorbs whatever is left over on a wide screen, so no wrapper div is needed
   in three separate HTML files. */
.site header {
  position: sticky; top: 0; z-index: 20;
  max-width: none;
  padding-inline: max(1.25rem, calc((100% - var(--page)) / 2 + 1.25rem));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .site header { background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(1.4) blur(10px); }
}
@media (min-width: 60rem) { .site h1 { font-size: 1.05rem; } }
.site nav { display: flex; align-items: center; gap: 1.25rem; }
.site nav a { color: var(--muted); text-decoration: none; font-size: .95rem;
  display: inline-flex; align-items: center; min-height: 44px; }
.site nav a:hover { color: var(--ink); }
.site nav a.nav-cta { color: var(--card); background: var(--accent);
  padding: .55rem 1.1rem; border-radius: 999px; min-height: 40px; font-weight: 500; }
.site nav a.nav-cta:hover { opacity: .88; color: var(--card); }
.site nav .only-wide { display: none; }
@media (min-width: 46rem) { .site nav .only-wide { display: inline-flex; } }

/* ---- the page itself ------------------------------------------------------- */
.site main { padding-top: 0; padding-bottom: 0; }
.site .measure { max-width: var(--measure); }

/* ---- hero ------------------------------------------------------------------ */
.site .hero { padding: 2.5rem 0 .5rem; }
@media (min-width: 60rem) { .site .hero { padding: 4.5rem 0 1rem; } }
.site .lede {
  font-size: clamp(2rem, 6.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em;
  font-weight: 600; margin: 0 0 1rem; max-width: 20ch;
}
.site .sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted);
  margin: 0 0 1.75rem; max-width: var(--measure); }

/* ---- buttons --------------------------------------------------------------- */
.site .cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .5rem; }
.site .cta a, .site .cta button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .8rem 1.6rem; border-radius: var(--radius-sm); font-weight: 500;
  text-decoration: none; border: 0; font: inherit; font-weight: 500; cursor: pointer;
}
.site .cta .primary-link { background: var(--accent); color: var(--card); }
.site .cta .quiet-link { background: var(--surface); color: var(--ink); }
.site .cta a:hover, .site .cta button:hover { opacity: .88; }

/* ---- headings and prose ---------------------------------------------------- */
.site main h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -.02em;
  font-weight: 600; margin: 0 0 1rem; }
.site .section-lead { color: var(--muted); max-width: var(--measure); margin: -.5rem 0 1.5rem; }

/* Vertical rhythm between the top-level blocks. Last, because it has to beat
   the heading margins set above. */
.site section + section, .site main > h2 { margin-top: 2.5rem; }
@media (min-width: 60rem) {
  .site section + section, .site main > h2 { margin-top: var(--band); }
}

/* ---- fact and step grids --------------------------------------------------- */
.site .plain-facts { display: grid; gap: 1rem; margin: 2rem 0; }
.site .plain-facts > div { background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem; min-width: 0; }
.site .plain-facts dt { font-weight: 600; margin-bottom: .25rem; }
.site .plain-facts dd { margin: 0; color: var(--muted); font-size: .95rem; }
.site .steps { counter-reset: step; list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem; }
.site .steps li { counter-increment: step; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem; color: var(--muted); font-size: .97rem; }
.site .steps li::before { content: counter(step); display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.site .steps strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: .25rem; }
.site .plain-list { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .97rem; }
.site .plain-list li { padding: .25rem 0; }
.site .plain-list strong { color: var(--ink); font-weight: 500; }
@media (min-width: 46rem) {
  .site .plain-facts { grid-template-columns: repeat(2, 1fr); }
  .site .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .site .plain-facts { grid-template-columns: repeat(3, 1fr); }
  .site .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---- the quiet honest band ------------------------------------------------- */
.site .safety { background: var(--surface); border-radius: var(--radius);
  padding: 1.5rem; margin: 2rem 0; }
.site .safety > strong { display: block; margin-bottom: .5rem; }
.site .safety p { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; max-width: 46rem; }
.site .safety strong { color: var(--ink); }
@media (min-width: 60rem) { .site .safety { padding: 2rem 2.25rem; } }

/* ---- footer ---------------------------------------------------------------- */
.site .landing-footer { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 2.5rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site .landing-footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.site .landing-footer a:hover { color: var(--ink); }
.site .landing-footer .spacer { flex: 1 1 auto; }

/* ---- the waitlist form ------------------------------------------------------
   What stands where the checkout will be. It has to look like something that
   works, not like an apology for the shop being shut. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.waitlist { margin: 0; }
.waitlist > strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.waitlist p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.waitlist input {
  flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font: inherit;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist button.primary-link {
  min-height: 48px; padding: .8rem 1.5rem; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--card); font: inherit; font-weight: 500; cursor: pointer;
}
.waitlist button.primary-link:hover { opacity: .88; }
.waitlist-problem { color: var(--alarm); }
.waitlist.joined > strong { font-size: 1.15rem; }
