/* ==========================================================================
   Holo Connect — waitlist
   Visual system: DESIGN.md. Brand tokens mirror constants/theme.ts.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Self-hosted so the page owes nothing to a third-party CDN and so the
   headline can't reflow under an older reader mid-sentence. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* The human aside in the gutter — inherited from holoalert.ca. Nothing else. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --blue: #4294d8;        /* brand blue — fields, spine, app chrome */
  --blue-deep: #2b6ea8;   /* AA-safe blue: primary buttons, blue text on light */
  --blue-darker: #1f5580; /* drenched grounds that must carry body copy */
  --blue-tint: #eaf3fb;
  --ink: #171717;         /* brand black */
  --ink-soft: #2a2a2a;
  --green: #45b864;       /* fills and dots only — fails AA as text */
  --green-deep: #237a45;  /* green as text */
  --green-tint: #e8f6ee;
  --orange: #f46036;      /* SOS only. Never decorative. */
  --orange-tint: #fdece6;
  --ground: #ffffff;      /* the page's ground — brand spec is white */
  --paper: #f6f8fb;       /* the APP's background: phone screens, tinted bands */
  --surface: #ffffff;
  --muted: #5b6470;
  --line: #e8ecf1;

  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --tap: 56px;            /* MinTapTarget, straight from the app */
  --gutter: clamp(20px, 5vw, 40px);
  --measure: 62ch;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;   /* 18px floor */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-deep); }
button, input { font: inherit; color: inherit; }

/* Focus is never removed, only replaced. */
:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible, .on-blue :focus-visible {
  outline-color: #ffffff;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 14px 20px;
  border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

section { padding-block: clamp(72px, 11vw, 128px); }

/* --- Type ---------------------------------------------------------------- */
.display {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.lead {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}
.body { max-width: var(--measure); }
.muted { color: var(--muted); }
.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.aside-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --- Header -------------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-weight: 700; letter-spacing: -0.02em; font-size: 1.1875rem; line-height: 1.1; }
.brand__parent { display: block; font-size: 0.875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 14px 28px;
  border: 2px solid transparent; border-radius: var(--r-lg);
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn--primary {
  background: var(--blue-deep); color: #fff;
  box-shadow: 0 2px 4px rgba(23, 23, 23, 0.1), 0 8px 20px -6px rgba(43, 110, 168, 0.5);
}
.btn--primary:hover { background: #245d8f; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--primary[disabled] {
  background: #4a7ba3; box-shadow: none; cursor: progress; transform: none;
}
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
  padding-inline: 20px; font-size: 1rem;
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn--on-dark { background: #fff; color: var(--ink); box-shadow: none; }
.btn--on-dark:hover { background: var(--blue-tint); }

@media (max-width: 560px) {
  .masthead .btn--ghost { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 112px); }
.hero__grid {
  display: grid; gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
}
.hero__copy > * + * { margin-top: 24px; }
.hero .display { margin-top: 16px; }
.hero__sub { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero__note { font-size: 1rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__note svg { flex: none; color: var(--blue-deep); }

/* --- The waitlist form --------------------------------------------------- */
.signup { max-width: 520px; }
.signup__label { display: block; font-weight: 600; font-size: 1.0625rem; margin-bottom: 8px; }
.signup__row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup__field {
  flex: 1 1 260px; min-width: 0;
  min-height: var(--tap); padding: 12px 18px;
  font-size: 1.125rem;
  background: var(--surface); color: var(--ink);
  border: 2px solid #cdd6e0; border-radius: var(--r-lg);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
/* 4.78:1 on white — placeholders carry the AA body threshold too. */
.signup__field::placeholder { color: #6b7380; }
.signup__field:hover { border-color: #adbccb; }
.signup__field:focus { border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(66, 148, 216, 0.22); outline: none; }
.signup__field[aria-invalid='true'] { border-color: #c0272d; }
.signup__field[aria-invalid='true']:focus { box-shadow: 0 0 0 4px rgba(192, 39, 45, 0.2); }
.signup .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .signup .btn { width: 100%; } }

.signup__consent {
  margin-top: 14px; font-size: 1rem; line-height: 1.5; color: var(--muted); max-width: 52ch;
}
.signup__consent a { color: var(--blue-deep); }

/* Status messages. Colour is never the only signal — each carries an icon. */
.signup__status {
  display: none; align-items: flex-start; gap: 12px;
  margin-top: 16px; padding: 14px 18px;
  border-radius: var(--r-lg); font-size: 1.0625rem; line-height: 1.5;
  border: 2px solid transparent;
}
.signup__status[data-state='error'],
.signup__status[data-state='success'],
.signup__status[data-state='info'] { display: flex; }
.signup__status[data-state='success'] { background: var(--green-tint); border-color: #b8e2c8; color: #14532b; }
.signup__status[data-state='error'] { background: #fdeaea; border-color: #f3bcbe; color: #8c1a1f; }
.signup__status[data-state='info'] { background: var(--blue-tint); border-color: #c3ddf2; color: #10405f; }
.signup__status svg { flex: none; margin-top: 3px; }

/* The bot trap. Off-screen rather than display:none so autofill-style bots
   still find it, and hidden from assistive tech + tab order. */
.hp { display: none; }

.spinner {
  width: 20px; height: 20px; flex: none;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 720ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* --- Phone rendering ------------------------------------------------------
   Hand-built reproductions of real app screens (see DESIGN.md). Purely
   illustrative: aria-hidden, with prose alongside for screen readers. */
.phone {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(165deg, #2f3540, #12151b);
  box-shadow: 0 2px 6px rgba(15, 20, 28, 0.24), 0 32px 64px -28px rgba(15, 20, 28, 0.55);
}
.phone__screen {
  position: relative;
  border-radius: 34px;
  background: var(--paper);
  overflow: hidden;
  padding: 14px 14px 20px;
}
.phone__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: var(--r-full); background: #12151b;
}
.phone__statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; font-weight: 600; color: var(--ink);
  padding: 2px 8px 14px;
}
.phone__bars { display: flex; gap: 3px; align-items: flex-end; }
.phone__bars i { display: block; width: 3px; background: var(--ink); border-radius: 1px; }
.phone__bars i:nth-child(1) { height: 5px; }
.phone__bars i:nth-child(2) { height: 8px; }
.phone__bars i:nth-child(3) { height: 11px; }
.phone__bars i:nth-child(4) { height: 14px; }
.phone__greet { font-size: 0.875rem; color: var(--muted); padding: 0 4px 2px; }
.phone__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; padding: 0 4px 14px; }

/* App fragments — same tokens the app uses. */
.ui-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 16px; border: 1px solid var(--line);
}
.ui-checkin {
  background: var(--blue); border: none; color: #fff;
  padding: 22px 18px; text-align: center; border-radius: var(--r-xl);
  box-shadow: 0 12px 24px -14px rgba(43, 110, 168, 0.9);
}
.ui-checkin__title { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }
.ui-checkin__sub { font-size: 0.9375rem; opacity: 0.95; margin-top: 4px; }
.ui-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  margin-top: 14px; padding: 6px 12px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.2); font-size: 0.8125rem; font-weight: 600;
}
.ui-checkin--done {
  background: var(--surface); color: var(--blue-deep);
  border: 2px solid var(--blue); box-shadow: none;
}
.ui-checkin--done .ui-checkin__sub { color: var(--muted); }
.ui-checkin--done .ui-pill { background: var(--paper); color: var(--muted); }

.ui-photo { width: 100%; height: 130px; border-radius: var(--r-md); display: block; }
.ui-sos {
  margin-top: 12px; background: var(--orange); color: #fff;
  border-radius: var(--r-xl); padding: 16px; text-align: center;
  font-weight: 700; font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ui-streak {
  margin-top: 12px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px 14px;
}
.ui-streak__num { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.ui-streak__label { font-size: 0.75rem; color: var(--muted); line-height: 1.25; white-space: nowrap; }
.ui-week { margin-left: auto; display: flex; gap: 4px; flex: none; }
.ui-week span {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--line); display: block;
}
.ui-week span[data-on] { background: var(--green); }

/* Her phone. The direction is "two phones": the daughter's side is a lockscreen
   surface, not a card about one. Banners sit ON it, translucent, the way they do
   in life. The first one in the sequence carries the clock that says what this is. */
.lockscreen {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(66, 148, 216, 0.34), transparent 60%),
    linear-gradient(168deg, #223144 0%, #101922 58%, #18242f 100%);
  border-radius: 26px;
  padding: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(15, 20, 28, 0.18),
    0 26px 44px -26px rgba(15, 20, 28, 0.7);
}
.lockscreen__clock { text-align: center; color: #fff; padding: 14px 0 20px; }
.lockscreen__time {
  display: block; font-size: 2.75rem; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
}
.lockscreen__date {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.72); margin-top: 6px;
}
.lockscreen .notif {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 10px 24px -14px rgba(0, 0, 0, 0.7);
}
.lockscreen .notif--miss { background: rgba(253, 244, 227, 0.96); border-color: rgba(245, 217, 168, 0.7); }
.lockscreen .notif--alert { background: rgba(253, 236, 230, 0.96); border-color: rgba(246, 200, 182, 0.7); }

/* Notification — what the other person actually receives. */
.notif {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 14px 16px;
  box-shadow: 0 2px 4px rgba(23, 23, 23, 0.05), 0 18px 32px -22px rgba(23, 23, 23, 0.5);
}
.notif__icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--blue); display: grid; place-items: center;
}
.notif__icon img { width: 40px; height: 40px; border-radius: 10px; }
.notif__body { min-width: 0; flex: 1; }
.notif__app {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px;
}
.notif__title { display: block; font-weight: 700; font-size: 1.0625rem; margin-top: 3px; letter-spacing: -0.01em; }
.notif__text { display: block; font-size: 1rem; color: var(--muted); margin-top: 2px; }
.notif--alert { border-color: #f6c8b6; background: var(--orange-tint); }
.notif--alert .notif__icon { background: var(--orange); }
.notif--alert .notif__text { color: #8a3313; }
.notif--miss { border-color: #f5d9a8; background: #fdf4e3; }
.notif--miss .notif__icon { background: #d9860b; }
.notif--miss .notif__text { color: #7c4c06; }

/* Caregiver-side status row, as it appears on their home screen. */
.ui-status { display: grid; gap: 10px; }
.ui-status__row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 11px 13px; font-size: 0.9375rem;
}
.ui-status__label { font-weight: 600; }
.ui-status__time { color: var(--muted); }
.ui-status__state { margin-left: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.is-done { color: var(--green-deep); }
.is-missed { color: #a83309; }
.is-next { color: var(--muted); }

/* Hero pairing: the phone, the spine, the notification. */
.hero__stage { position: relative; display: grid; gap: 20px; justify-items: center; }
.hero__received { width: min(340px, 92%); display: grid; gap: 12px; justify-items: stretch; }
.hero__receivedlabel {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  padding: 4px 2px 12px;
}
.hero__link {
  width: 2px; height: 34px; background: var(--blue); border-radius: 2px; justify-self: center;
  position: relative;
}
.hero__link::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
}
@media (min-width: 940px) {
  /* The pair overlaps rather than stacks: on a 13" laptop both phones have to be
     inside the first viewport, because the pair IS the pitch. */
  .hero__stage { justify-items: end; position: relative; gap: 0; }
  .hero__stage .phone { width: 262px; margin-right: 32px; }
  .hero__link { display: none; }
  .hero__received {
    position: absolute; left: 0; bottom: 78px; width: 312px; z-index: 2;
  }
}

/* --- Problem section ----------------------------------------------------- */
.section--problem { background: var(--paper); }
.statement {
  margin-top: clamp(24px, 4vw, 36px);
  font-size: clamp(1.25rem, 2.1vw, 1.625rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40ch;
}

/* --- The day, in pairs (the spine) --------------------------------------- */
.beats { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.beats::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 27px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--blue) 56px,
              var(--blue) calc(100% - 56px), transparent);
}
.beat {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  column-gap: clamp(16px, 3vw, 28px); row-gap: 20px;
  padding-block: clamp(32px, 5vw, 48px);
}
.beat__side { grid-column: 2; }
/* Mobile: the marker is a row above the pair — dot on the rail, time beside it. */
.beat__marker {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; align-items: center; gap: 12px; margin-bottom: 4px;
}
.beat__dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--ground);
  margin-left: 20px;
  box-shadow: 0 0 0 3px rgba(66, 148, 216, 0.2);
}
.beat__time {
  font-size: 0.9375rem; font-weight: 700; color: var(--blue-deep);
  letter-spacing: -0.01em; white-space: nowrap;
}
.beat__side { grid-column: 2; }
.beat__who {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.beat__who::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
}
.beat__side--them .beat__who::before { background: var(--ink); }
.beat__art { margin-bottom: 16px; max-width: 360px; }
.beat__text { color: var(--muted); font-size: 1.125rem; line-height: 1.55; max-width: 40ch; }
.beat__lead { font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 8px; }

/* Tablet: still one column, but stop capping the art at phone width and leaving
   a quarter of the viewport empty. */
@media (min-width: 640px) and (max-width: 899px) {
  .beat__art { max-width: 460px; }
  .beat__text { max-width: 54ch; }
}

@media (min-width: 900px) {
  .beats::before { left: 50%; transform: translateX(-1px); }
  .beat {
    grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
    align-items: start;
  }
  .beat__marker {
    grid-column: 2; grid-row: 1; margin-bottom: 0;
    flex-direction: column; align-items: center; gap: 10px; text-align: center;
  }
  .beat__dot { margin-left: 0; }
  /* A paper halo so the spine doesn't run through the timestamp. */
  .beat__time {
    background: var(--ground); padding: 2px 8px; border-radius: var(--r-full);
  }
  /* The block hugs the spine; the words inside still read left-to-right. */
  .beat__side--you { grid-column: 1; grid-row: 1; justify-self: end; }
  .beat__side--you .beat__who { display: flex; justify-content: flex-end; }
  .beat__side--you .nothing,
  .beat__side--you .beat__art,
  .beat__side--you .beat__text,
  .beat__side--you .beat__lead { margin-left: auto; }
  .beat__side--them { grid-column: 3; grid-row: 1; }
}

/* The beat where nothing happens. This is the one mechanism nobody else has, so
   it gets the section's only crescendo: its own warm ground, more air, and a
   larger lead than the beats either side of it. */
.beat--silence {
  padding-block: clamp(48px, 7vw, 84px);
  margin-block: clamp(16px, 3vw, 32px);
}
.beat--silence::before {
  content: '';
  position: absolute; inset: 0 calc(var(--gutter) * -0.6);
  background: linear-gradient(180deg, rgba(253, 248, 239, 0), #fdf8ef 12%, #fdf8ef 88%, rgba(253, 248, 239, 0));
  border-radius: var(--r-xl);
  z-index: -1;
}
.beat--silence .beat__dot { background: #d9860b; box-shadow: 0 0 0 3px rgba(217, 134, 11, 0.22); }
.beat--silence .beat__time { color: #7c4c06; background: #fdf8ef; }
.beat--silence .beat__lead { font-size: 1.5rem; }
.beat--silence .nothing { background: rgba(255, 255, 255, 0.6); border-color: #e2d7c2; }
.nothing {
  border: 2px dashed #c9d3de; border-radius: var(--r-xl);
  padding: 26px 22px; background: rgba(255, 255, 255, 0.5);
  max-width: 360px;
}
.nothing__title { font-weight: 700; font-size: 1.0625rem; color: var(--muted); }
.nothing__sub { font-size: 1rem; color: var(--muted); margin-top: 6px; }

.beat__gutternote {
  grid-column: 2; margin-top: 4px; max-width: 42ch;
}
@media (min-width: 900px) {
  /* Beside the spine, not over it — the line stays unbroken all the way down. */
  .beat__gutternote {
    grid-column: 1; grid-row: 2;
    justify-self: end; text-align: right; max-width: 40ch; margin-top: 24px;
  }
}

/* --- Setup steps --------------------------------------------------------- */
.section--setup { background: var(--ink); color: #fff; }
.section--setup .lead, .section--setup .muted { color: #b6bec9; }
.steps { display: grid; gap: clamp(28px, 4vw, 40px); margin-top: clamp(40px, 6vw, 64px); counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding-top: 22px; border-top: 2px solid #3a4149; }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: #b6bec9; font-size: 1.125rem; line-height: 1.6; }

/* --- Fit / honesty ------------------------------------------------------- */
.section--fit { background: var(--paper); }
.perks {
  display: grid; gap: 0; margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .perks { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 88px); }
}
.perk { padding-block: clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.perk__title {
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
  margin-bottom: 10px;
}
.perk__title::before {
  content: ''; display: block; width: 28px; height: 3px; border-radius: 2px;
  background: var(--blue); margin-bottom: 14px;
}
.perk__text { color: var(--muted); font-size: 1.125rem; line-height: 1.6; max-width: 46ch; }

@media (min-width: 820px) { .fit { grid-template-columns: 1fr 1fr; } }
/* Neither flex nor grid: any inline tag inside the text (<strong>, <em>, a link)
   would become a layout item of its own and break the sentence apart. The icon
   is taken out of flow instead, so the text stays one continuous run. */

/* --- FAQ ----------------------------------------------------------------- */
.faq { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--tap); padding: 20px 4px;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-deep); }
.faq summary svg { flex: none; color: var(--blue-deep); transition: transform 200ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__answer { padding: 0 4px 24px; color: var(--muted); font-size: 1.125rem; line-height: 1.65; max-width: 66ch; }
.faq__answer p + p { margin-top: 12px; }

/* --- Final call ---------------------------------------------------------- */
.section--call { background: var(--blue-darker); color: #fff; }
.section--call .h2 { max-width: 18ch; }
.section--call .lead { color: #cfe3f4; max-width: 44ch; margin-top: 20px; }
.call__note {
  margin-top: 18px; font-size: 1.0625rem; line-height: 1.5;
  color: #a9c8e2; max-width: 44ch;
}
.section--call .signup__label { color: #fff; }
.section--call .signup__consent { color: #cfe3f4; }
.section--call .signup__consent a { color: #fff; }
.section--call .signup__field { border-color: transparent; }
.section--call .signup__field:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); }
.call__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .call__grid { grid-template-columns: 1fr 1fr; } }

/* --- Footer -------------------------------------------------------------- */
.footer { background: var(--ink); color: #b6bec9; padding-block: 56px 40px; font-size: 1rem; }
.footer a { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.footer .brand__name { color: #fff; }
.footer .brand__parent { color: #b6bec9; }
.footer__legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid #2f353d;
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  line-height: 1.6;
}
.footer__legal p { max-width: 62ch; }

/* --- Motion: one authored moment ----------------------------------------
   The product's motion is arrival — something happens here, and a beat later
   it shows up there. Content is visible by default; this only refines it. */
@media (prefers-reduced-motion: no-preference) {
  /* Gated on `.js` so a blocked or failed script can never leave the page
     invisible — without JS these elements simply render as-is. */
  .js .reveal { opacity: 0; transform: translateY(18px); }
  .js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  }
  .js .beat__side--them.reveal.is-in { transition-delay: 180ms; }
  .js .beat__gutternote.reveal.is-in { transition-delay: 300ms; }
}
