/* ==========================================================================
   FamilyBeats — public landing page
   Tokens, type and patterns copied from the FamilyBeats app design system
   (family-pulse-api: docs/design-system.md, src/app/globals.css). Values are
   duplicated here on purpose: this site has no build step and must not
   depend on the app repository.
   ========================================================================== */

@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --cream: #fbf4e8;
  --cream-raised: #fff9ee;
  --card: #ffffff;
  --muted: #efe6d6;
  --navy: #1b2340;
  --ink-deep: #0e1428;
  --ink-soft: #3b4362;
  --muted-ink: #6a6f86;
  --nav-idle: #8a8ea3;
  --hairline: rgba(27, 35, 64, 0.08);

  --coral: #ff6b57;
  --coral-deep: #c94634;
  --coral-wash: #ffe7dd;
  --forest: #1e4a38;
  --forest-raised: #25573f;
  --sage: #2e7d5b;
  --sunshine: #ffc845;
  --sunshine-soft: #fff1c7;
  --lilac: #c3b1ff;
  --lilac-soft: #ece6ff;
  --violet-ink: #3b2f78;
  --sky: #9ccbff;
  --sky-wash: #d9ecff;
  --mint: #8fd9b6;
  --mint-soft: #ddf3e7;

  /* Mood colors 1–5: rough, low, okay, good, great. */
  --mood-1: #ffb8a6;
  --mood-2: #c3b1ff;
  --mood-3: #9ccbff;
  --mood-4: #8fd9b6;
  --mood-5: #ffc845;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 18px;
  --max: 1240px;
  --section-y: 64px;
}
@media (min-width: 640px) {
  :root { --gutter: 32px; --section-y: 96px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --section-y: 128px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* Young Serif has one weight; never fake a bold. */
  font-synthesis: none;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
small { display: block; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.section--navy :focus-visible { outline-color: var(--sunshine); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--navy); color: var(--cream);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; scroll-margin-top: 64px; }
.section--navy { background: var(--navy); color: var(--cream); }
.section--raised { background: var(--cream-raised); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ---------- Type roles ---------- */

.eyebrow {
  margin-bottom: 16px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow--coral { color: var(--coral-deep); }
.eyebrow--sky { color: var(--sky); }
.eyebrow--navy { color: var(--navy); }

.h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-head { max-width: 760px; margin-bottom: 36px; }

@media (min-width: 640px) {
  .eyebrow { margin-bottom: 20px; }
  .section-head { margin-bottom: 56px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 11px 18px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 15px; font-weight: 800; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s, color 0.2s;
}
.btn--lg { min-height: 56px; padding: 15px 26px; font-size: 17px; }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--coral); color: var(--navy); }
/* The coral action button sits on a 3D edge that presses in on hover. */
.btn--coral { background: var(--coral); color: var(--navy); box-shadow: 0 6px 0 var(--coral-deep); margin-bottom: 6px; }
.btn--coral:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--coral-deep); }
.btn--coral:active { transform: translateY(6px); box-shadow: none; }
.btn--edge { box-shadow: 0 6px 0 var(--ink-deep); margin-bottom: 6px; }
.btn--edge:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--ink-deep); background: var(--navy); color: var(--sunshine); }
.btn--edge:active { transform: translateY(6px); box-shadow: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--cream) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 35, 64, 0.06);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.01em; }
.brand__by { display: none; margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-ink); }
@media (min-width: 640px) { .brand__by { display: block; } .brand__name { font-size: 22px; } }

/* The FamilyBeats mark: four beating bars (coral, sunshine, sage, sky). */
.beat { display: flex; align-items: center; gap: 3px; height: 26px; flex-shrink: 0; }
.beat i { display: block; width: 5px; border-radius: 4px; transform-origin: center; animation: fb-beat-lg 1.6s ease-in-out infinite; }
.beat i:nth-child(1) { height: 14px; background: var(--coral); }
.beat i:nth-child(2) { height: 24px; background: var(--sunshine); animation-delay: 0.2s; }
.beat i:nth-child(3) { height: 18px; background: var(--sage); animation-delay: 0.4s; }
.beat i:nth-child(4) { height: 10px; background: #7fb6ff; animation-delay: 0.6s; }
.beat--still i { animation: none; }

/* ---------- Hero ---------- */

/* The pulsing rings scale past the hero; clip them so the page never scrolls sideways. */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  padding: 6px 14px 6px 7px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--hairline);
  font-size: 13px; font-weight: 600;
}
.pill-badge__tag { padding: 3px 9px; border-radius: 999px; background: var(--sunshine); font-size: 12px; font-weight: 800; }
.hero__title {
  margin-bottom: 24px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.highlight { position: relative; white-space: nowrap; color: var(--forest); }
.highlight::before {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.32em;
  border-radius: 999px; background: var(--sunshine); opacity: 0.85;
}
.highlight > span { position: relative; }
.hero__lede { max-width: 500px; margin-bottom: 32px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 680px; }
.hero__halo, .hero__ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; }
.hero__halo { width: min(500px, 100vw - 36px); height: min(500px, 100vw - 36px); background: var(--sage); opacity: 0.14; }
.hero__ring { width: min(420px, 100vw - 72px); height: min(420px, 100vw - 72px); border: 2px solid var(--coral); animation: fb-ring 3.2s ease-out infinite; }
.hero__ring--late { border-color: var(--sunshine); animation-delay: 1.6s; }

@media (min-width: 640px) { .hero { padding: 64px 0 80px; } }
@media (min-width: 1024px) {
  .hero { padding: 88px 0 112px; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .hero__visual { min-height: 660px; }
}

.float-note {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  font-size: 13px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 14px 30px -12px rgba(27, 35, 64, 0.35);
  animation: fb-float 5s ease-in-out infinite;
}
.float-note small { font-size: 11px; font-weight: 500; color: var(--muted-ink); }
/* Phones: notes sit above and below the phone so they never cover its text. */
.float-note--signal { top: 0; left: 0; background: var(--card); }
.float-note__dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--sunshine); }
.float-note--ear { right: 0; bottom: 0; max-width: 170px; background: var(--sunshine); font-weight: 800; animation-duration: 6s; animation-delay: 1s; }
@media (min-width: 480px) {
  .float-note--signal { top: 3%; left: max(0px, calc(50% - 290px)); }
  .float-note--ear { bottom: 10%; right: max(0px, calc(50% - 260px)); }
}

/* ---------- Phone mock (fictional sample screens) ---------- */

.phone {
  position: relative; z-index: 1;
  width: 290px; max-width: 100%; height: 590px; padding: 10px;
  border-radius: 46px; background: var(--navy);
  box-shadow: 0 40px 80px -30px rgba(27, 35, 64, 0.55), inset 0 0 0 2px #2a3356;
}
.phone--tilt-left { transform: rotate(-2deg); }
.phone__screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 36px; background: var(--cream); color: var(--navy); }
.phone__status { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px 6px; font-size: 12px; font-weight: 700; }
.phone__notch { width: 76px; height: 22px; border-radius: 999px; background: var(--navy); }
.phone__body { flex: 1; display: flex; flex-direction: column; gap: 11px; padding: 8px 16px; }
.phone__hello { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.phone__tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px 18px; background: var(--card); border-top: 1px solid var(--hairline);
  font-size: 9px; font-weight: 700; color: var(--muted-ink);
}
.phone__tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.phone__tabs i { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--nav-idle); }
.phone__tabs .is-active { color: var(--navy); }
.phone__tabs .is-active i { background: var(--navy); border-color: var(--navy); }

.mini-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-ink); }
.mini-eyebrow--sun { color: var(--sunshine); }
.mini-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: var(--card); }
.mini-card--lg { padding: 18px; border-radius: 24px; gap: 12px; width: 100%; max-width: 340px; }
.mini-card--coral { background: var(--coral); color: var(--navy); }
.mini-card--forest { background: var(--forest); color: var(--cream); gap: 6px; }
.mini-card--lilac { background: var(--lilac-soft); color: var(--violet-ink); }
.mini-label { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.mini-title { font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.mini-title--sm { font-size: 19px; }
.mini-card--lg .mini-title { font-size: 22px; }
.mini-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; }
.mini-row strong { font-weight: 800; }
.mini-row span { font-size: 11px; color: var(--muted-ink); white-space: nowrap; }
.mini-foot { font-size: 10px; font-weight: 600; color: var(--muted-ink); }
.mini-goal { font-size: 14px; font-weight: 700; }
.private-tag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.private-tag .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--navy); flex-shrink: 0; }

.mood-bars { display: flex; align-items: flex-end; gap: 6px; height: 32px; }
.mood-bars i { display: block; width: 26px; border-radius: 9px; }
.mood-bars i:nth-child(1) { height: 13px; background: var(--mood-1); }
.mood-bars i:nth-child(2) { height: 18px; background: var(--mood-2); }
.mood-bars i:nth-child(3) { height: 23px; background: var(--mood-3); }
.mood-bars i:nth-child(4) { height: 28px; background: var(--mood-4); }
.mood-bars i:nth-child(5) { height: 33px; background: var(--mood-5); }
.mood-bars--labelled { height: auto; gap: 8px; }
.mood-bars--labelled span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; flex: 1; font-size: 10px; font-weight: 700; }
.mood-bars--labelled i { width: 100%; max-width: 38px; }
.mood-bars--labelled span:nth-child(1) i { height: 22px; background: var(--mood-1); }
.mood-bars--labelled span:nth-child(2) i { height: 30px; background: var(--mood-2); }
.mood-bars--labelled span:nth-child(3) i { height: 38px; background: var(--mood-3); }
.mood-bars--labelled span:nth-child(4) i { height: 46px; background: var(--mood-4); }
.mood-bars--labelled span:nth-child(5) i { height: 54px; background: var(--mood-5); }
.mood-bars--labelled .is-picked i { box-shadow: 0 0 0 2px var(--coral), 0 0 0 4px var(--navy); animation: fb-beat 1.2s ease-in-out infinite; transform-origin: bottom; }

/* Anonymous presence seats: a count, never who. */
.seats { display: flex; justify-content: space-between; gap: 4px; }
.seats i {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 2px dashed #d5d0c4;
}
.seats i.on { border: 0; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--sage); }
.seats i.on:nth-child(1) { background: var(--mood-5); }
.seats i.on:nth-child(2) { background: var(--mood-4); }
.seats i.on:nth-child(3) { background: var(--mood-3); }
.seats i.on:nth-child(4) { background: var(--mood-2); }
.seats--sm i { width: 32px; height: 32px; }
.seats--dark { gap: 8px; justify-content: flex-start; align-items: center; height: 48px; }
.seats--dark i { width: 22px; height: 22px; border-color: rgba(251, 244, 232, 0.3); }
.seats--dark i.on { box-shadow: 0 0 0 2px var(--forest), 0 0 0 4px var(--mint); }

.goal-track { display: flex; gap: 6px; }
.goal-track i { flex: 1; height: 8px; border-radius: 9px; background: rgba(251, 244, 232, 0.2); }
.goal-track i.on { background: var(--sunshine); }

/* ---------- Features ---------- */

.feature-grid { display: grid; gap: 20px; }
.feature { display: flex; flex-direction: column; overflow: hidden; border-radius: 32px; background: var(--card); }
.feature__demo {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 250px; padding: 28px 20px;
}
.feature__demo--coral { background: var(--coral-wash); }
.feature__demo--sun { background: var(--sunshine-soft); }
.feature__demo--lilac { background: var(--lilac-soft); }
.feature__demo--lilac .mini-card--lilac { background: var(--card); }
.feature__demo--mint { background: var(--mint-soft); }
.feature__text { padding: 24px 24px 28px; }
.feature__text h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: -0.02em; }
.feature__text p { color: var(--ink-soft); font-size: 18px; line-height: 1.5; }
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .feature__demo { min-height: 280px; }
}

.signal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.signal-chips--row { justify-content: center; max-width: 340px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--navy); }
.chip--sun { background: var(--sunshine); }
.chip--lilac { background: var(--lilac); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--navy); }
.chip--sky { background: var(--sky); }
.chip--coral { background: var(--mood-1); }
.toast {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 340px;
  padding: 12px 14px; border-radius: 16px; background: var(--navy); color: var(--cream);
  font-size: 13px; font-weight: 700; box-shadow: 0 14px 30px -14px rgba(27, 35, 64, 0.5);
}
.toast__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--lilac); flex-shrink: 0; }
.toast--sun { background: var(--sunshine); color: var(--navy); }
.toast--sun .toast__dot { background: var(--coral); }
.goal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; opacity: 0.9; }
.goal-meta__pill { padding: 3px 10px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 12px; font-weight: 800; }
.goal-track--lg i { height: 10px; }

.guess-options { display: flex; flex-direction: column; gap: 8px; }
.guess-options span { padding: 10px 14px; border-radius: 14px; background: var(--lilac-soft); font-size: 14px; font-weight: 700; }
.guess-options .is-picked { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--violet-ink); }

.connect-row { display: flex; gap: 12px; }
.avatar {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-weight: 800; font-size: 17px; color: var(--navy);
}
.avatar--sun { background: var(--sunshine); }
.avatar--sky { background: var(--sky); }
.avatar--mint { background: var(--mint); }
.avatar.is-picked { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--sage); }
.connect-sent { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; background: var(--mint-soft); color: var(--forest); font-size: 13px; font-weight: 700; line-height: 1.4; }
.check { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.check::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px;
  border: solid var(--cream); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* ---------- Privacy ---------- */

.privacy-grid { display: grid; gap: 40px; align-items: center; }
.promise-list { display: flex; flex-direction: column; gap: 2px; margin-top: 36px; overflow: hidden; border-radius: 24px; }
.promise-list li { display: flex; gap: 16px; padding: 18px 22px; background: rgba(251, 244, 232, 0.06); }
.promise-list strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 800; }
.promise-list p { font-size: 15px; opacity: 0.78; }
.promise-list__mark { width: 12px; height: 12px; margin-top: 6px; flex-shrink: 0; }
.promise-list__mark--square { border-radius: 3px; background: var(--sunshine); }
.promise-list__mark--circle { border-radius: 50%; background: var(--coral); }
.promise-list__mark--diamond { transform: rotate(45deg); background: var(--mint); }

.privacy-visual { display: flex; flex-direction: column; gap: 18px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border-radius: 32px; background: var(--cream); color: var(--navy); }
.compare__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 22px; background: var(--card); }
.compare__card--forest { background: var(--forest); color: var(--cream); }
.compare__big { font-family: var(--font-display); font-size: 21px; line-height: 1.15; }
.compare__small { font-size: 12px; opacity: 0.75; }
.compare__card:not(.compare__card--forest) .compare__small { color: var(--muted-ink); opacity: 1; }
.mood-blob { width: 48px; height: 48px; border-radius: 45% 55% 40% 60% / 60% 40% 60% 40%; background: var(--mood-2); }
.disclaimer { padding: 20px 22px; border-radius: 24px; border: 1.5px solid rgba(251, 244, 232, 0.2); font-size: 14px; line-height: 1.6; opacity: 0.88; }
@media (min-width: 640px) { .compare { padding: 28px; } }
@media (min-width: 1024px) { .privacy-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
@media (max-width: 379px) {
  .compare { grid-template-columns: 1fr; }
}

/* ---------- Express interest ---------- */

.cta {
  position: relative; overflow: hidden;
  padding: 40px 24px; border-radius: clamp(32px, 4vw, 56px);
  background: var(--coral); color: var(--navy);
}
.cta__inner { position: relative; max-width: 620px; }
.cta__title { margin-bottom: 18px; font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 6vw, 76px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.cta__lede { margin-bottom: 28px; max-width: 520px; font-size: 18px; line-height: 1.5; }
.cta__address { margin-top: 18px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cta__notice {
  margin-top: 24px; max-width: 520px; padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 249, 238, 0.45); font-size: 15px; line-height: 1.5;
}
.cta__notice strong { font-weight: 800; }
.cta__privacy { margin-top: 14px; max-width: 520px; font-size: 14px; line-height: 1.5; }
.cta__address a { font-weight: 800; text-underline-offset: 3px; }
.cta__lede + .cta__notice { margin: 0 0 28px; }
.cta__privacy a { font-weight: 800; text-underline-offset: 3px; }

/* Waitlist form: sits on the coral card, mobile first. */
.waitlist { max-width: 560px; }
.waitlist__fields { display: grid; gap: 16px; margin-bottom: 22px; }
.waitlist__field { display: grid; gap: 6px; align-content: start; }
.waitlist__field label { font-size: 15px; font-weight: 800; }
.waitlist__hint { font-weight: 600; }
.waitlist__field input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 2px solid var(--navy); border-radius: 16px;
  background: var(--card); color: var(--navy);
  font: inherit; font-size: 17px; /* 16px+ keeps iOS from zooming on focus */
}
.waitlist__field input:focus-visible { outline-offset: 2px; border-radius: 16px; }
.waitlist__field input[aria-invalid="true"] { border-color: var(--ink-deep); border-width: 3px; box-shadow: 0 0 0 3px var(--cream); }
.waitlist__error {
  justify-self: start; padding: 4px 10px; border-radius: 10px;
  background: var(--cream); color: var(--ink-deep); font-size: 14px; font-weight: 700;
}
.waitlist__consent { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; margin-bottom: 16px; }
.waitlist__consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--navy); cursor: pointer; }
.waitlist__consent label { font-size: 15px; font-weight: 700; line-height: 1.45; cursor: pointer; }
.waitlist__consent .waitlist__error { grid-column: 2; }
.waitlist .cta__privacy { margin: 0 0 22px; }
.waitlist__submit[disabled] { cursor: progress; opacity: 0.85; transform: translateY(6px); box-shadow: none; }
.waitlist__status, .waitlist__done {
  margin-top: 18px; max-width: 520px; padding: 14px 18px; border-radius: 18px;
  background: var(--cream); color: var(--navy); font-size: 15px; font-weight: 600; line-height: 1.5;
}
.waitlist__status--error { border: 2px solid var(--ink-deep); }
.waitlist__done { margin-top: 0; font-size: 17px; }
/* Honeypot for automated signups: off-screen, never focusable. */
.waitlist__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) {
  .waitlist__fields { grid-template-columns: 3fr 2fr; }
}
.cta__bars { position: absolute; right: -60px; bottom: -60px; display: flex; align-items: flex-end; gap: 14px; opacity: 0.9; pointer-events: none; }
.cta__bars i { display: block; width: 46px; border-radius: 999px; transform-origin: bottom; animation: fb-beat-lg 1.8s ease-in-out infinite; }
.cta__bars i:nth-child(1) { height: 120px; background: var(--sunshine); }
.cta__bars i:nth-child(2) { height: 200px; background: var(--forest); animation-delay: 0.2s; }
.cta__bars i:nth-child(3) { height: 150px; background: var(--cream); animation-delay: 0.4s; }
.cta__bars i:nth-child(4) { height: 240px; background: var(--navy); animation-delay: 0.6s; }
.cta__bars i:nth-child(5) { height: 170px; background: var(--sky); animation-delay: 0.8s; }
/* On phones the bars would sit behind the copy; keep them small and low. */
@media (max-width: 767px) {
  .cta { padding-bottom: 120px; }
  .cta__bars { right: -20px; bottom: -40px; gap: 10px; }
  .cta__bars i { width: 30px; }
  .cta__bars i:nth-child(n) { height: 110px; }
  .cta__bars i:nth-child(2n) { height: 150px; }
}
@media (min-width: 640px) { .cta { padding: 64px 56px; } }
@media (min-width: 1024px) { .cta { padding: 88px 72px; } }

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hairline); font-size: 14px; color: var(--muted-ink); }
.site-footer__inner { display: grid; gap: 14px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__links a { display: inline-block; padding: 4px 0; }
.site-footer a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 32px; }
  .site-footer__copy { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 64px 0; }
.notfound h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; line-height: 1.05; }
.notfound p { font-size: 18px; color: var(--ink-soft); }

/* ---------- Website Privacy Notice (/privacy/) ---------- */

.notice { max-width: 760px; padding-top: 40px; padding-bottom: 72px; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.notice__title { margin-bottom: 12px; color: var(--navy); font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.notice__date { margin-bottom: 32px; color: var(--navy); font-size: 16px; }
.notice strong { color: var(--navy); font-weight: 800; }
.notice p + p, .notice ul + p, .notice p + ul { margin-top: 16px; }
.notice section { margin-top: 44px; scroll-margin-top: 24px; }
.notice h2 { margin-bottom: 14px; color: var(--navy); font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.notice__num { margin-right: 4px; }
.notice__list { padding-left: 22px; list-style: disc; }
.notice__list ul { margin-top: 10px; padding-left: 22px; list-style: circle; }
.notice__list li + li { margin-top: 10px; }
.notice__contacts li + li { margin-top: 6px; }
.notice a { color: var(--navy); overflow-wrap: anywhere; text-underline-offset: 3px; }
.notice__end { margin-top: 48px; text-align: center; letter-spacing: 0.3em; }
@media (min-width: 640px) { .notice { padding-top: 64px; padding-bottom: 96px; } }

/* ---------- Motion ---------- */

.rise { animation: fb-up 0.5s ease-out both; }
@keyframes fb-up { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fb-beat { 0%, 100% { transform: scaleY(0.9); } 50% { transform: scaleY(1); } }
@keyframes fb-beat-lg { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
@keyframes fb-ring { 0% { transform: scale(0.6); opacity: 0.55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

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