/* ==========================================================================
   Pochi website — the glass design system, on the web.

   Every token below is copied from src/theme/tokens.ts. That file is the only
   place a colour, radius or type size is decided in the app, and this is its
   web mirror — if the two disagree, this file is wrong.

   One genuine difference: the app fakes glass with translucent fills because
   React Native has no backdrop-filter. Browsers do have it, so the panes here
   blur what's behind them for real. Same look, honestly earned.

   Light mode only, deliberately — the app is light-only, and a dark site
   handing off to a light app is a jarring first impression.
   ========================================================================== */

:root {
  /* ── The tinted ground ─────────────────────────────────── */
  --ground-1: #e4eefb;
  --ground-2: #f3e9fb;
  --ground-3: #e8f5f2;

  /* ── Ink ───────────────────────────────────────────────── */
  --ink: #1b2a3d;
  --ink-soft: #5a6a82;
  --ink-faint: #8a97ab;
  --on-accent: #ffffff;

  /* ── Accent ────────────────────────────────────────────── */
  --accent: #4c7fe8;
  --accent-deep: #3a63c4;
  /* Every filled control is a gradient — a flat accent reads as a tag. */
  --accent-grad-top: rgba(102, 148, 243, 0.9);
  --accent-grad-bot: rgba(58, 99, 196, 0.94);
  --accent-grad-top-solid: #5d8df0;
  --accent-grad-bot-solid: #3a63c4;

  /* ── The verdict scale, worst → best.
        Blue sits ABOVE green: the top of the scale and the colour the app is
        built from are the same idea. The yellow is pale on purpose and can
        never be used as text — that's what the -ink twins are for. ── */
  --scale-0: #d9634f;
  --scale-1: #e58a4a;
  --scale-2: #edce72;
  --scale-3: #46b98a;
  --scale-4: #4c7fe8;

  --scale-ink-0: #b94733;
  --scale-ink-1: #b9662c;
  --scale-ink-2: #96792a;
  --scale-ink-3: #2e9e7e;
  --scale-ink-4: #3a63c4;

  --good: #46b98a;
  --warn: #edce72;
  --bad: #d9634f;
  --coin: #e0a93a;

  /* ── Glass surfaces. Higher fill = more opaque = nearer the front. ── */
  --fill-0: rgba(255, 255, 255, 0.22);
  --fill-1: rgba(255, 255, 255, 0.36);
  --fill-2: rgba(255, 255, 255, 0.52);
  --edge: rgba(255, 255, 255, 0.55);
  --edge-soft: rgba(255, 255, 255, 0.3);
  --edge-on: rgba(255, 255, 255, 0.28);
  --hairline: rgba(27, 42, 61, 0.1);
  --recess: rgba(27, 42, 61, 0.055);

  /* ── Radii ─────────────────────────────────────────────── */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ── Spacing ───────────────────────────────────────────── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;

  /* ── Depth (theme `lift` / `glow`) ─────────────────────── */
  --lift-1: 0 3px 10px rgba(27, 42, 61, 0.08);
  --lift-2: 0 8px 20px rgba(27, 42, 61, 0.14);
  --lift-3: 0 24px 60px rgba(27, 42, 61, 0.18);
  --glow-accent: 0 4px 12px rgba(76, 127, 232, 0.42);

  /* ── Layout ────────────────────────────────────────────── */
  --wrap: 1140px;
  --wrap-prose: 720px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* The ground the whole app sits on, at the same angle. Fixed so it behaves
     as a backdrop rather than scrolling past. */
  background: linear-gradient(
    155deg,
    var(--ground-1) 0%,
    var(--ground-2) 50%,
    var(--ground-3) 100%
  );
  background-attachment: fixed;
}

/* The type ramp: display 34 / headline 26 / heading 20 / title 17 / body 14 /
   soft 13 / caption 11 / label 10. The app can't scale type to a viewport, so
   headings here grow with the page — but they never leave the two families. */
h1,
h2,
h3 {
  font-family: 'Racing Sans One', 'Nunito', sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  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: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* ── Glass surface, as one rule ───────────────────────────── */

.pane {
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-1);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.pane-quiet {
  background: var(--fill-0);
  border-color: var(--edge-soft);
}

.pane-solid {
  background: var(--fill-2);
}

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.5);
  border-bottom-color: var(--edge);
  box-shadow: var(--lift-1);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  height: 30px;
  width: auto;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--accent-deep);
  text-decoration: none;
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--fill-2);
  box-shadow: var(--lift-1);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: relative;
}

.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 4px;
}

.nav-toggle[aria-expanded='true'] span {
  background: transparent;
}
.nav-toggle[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px; /* the app's smallest comfortable touch target */
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-grad-top), var(--accent-grad-bot));
  border-color: var(--edge-on);
  color: var(--on-accent);
  box-shadow: var(--glow-accent);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.985);
}

.btn-secondary {
  background: var(--fill-2);
  color: var(--accent-deep);
  border-color: var(--hairline);
  box-shadow: var(--lift-1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.66);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.985);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

/* ── Shared section furniture ─────────────────────────────── */

.section {
  padding: 96px 0;
  position: relative;
}

/* There is no second background colour in glass — alternate sections read as
   a slightly denser sheet of the same material. */
.section-alt {
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  margin: 0 0 14px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

/* The app's `label` rung: 10pt, uppercase, 1px tracking. */
.eyebrow {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(76, 127, 232, 0.12);
  border: 1px solid rgba(76, 127, 232, 0.22);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin-bottom: 18px;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

/* Soft blooms picked from the ground's own three tints. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 520px;
  height: 520px;
  background: #cfe0f8;
  top: -180px;
  right: -120px;
}

.hero::after {
  width: 440px;
  height: 440px;
  background: #e6d9f6;
  bottom: -200px;
  left: -150px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-copy h1 {
  font-size: clamp(42px, 5.6vw, 66px);
  margin: 0 0 20px;
}

.hero-lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 30em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

.hero-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
}

.tick {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: var(--radius-pill);
  background: rgba(70, 185, 138, 0.16);
  display: grid;
  place-items: center;
}

.tick svg {
  width: 12px;
  height: 12px;
  stroke: var(--scale-ink-3);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Phone mockup ─────────────────────────────────────────
   The app's Home screen rebuilt in HTML, structure-for-structure, so it stays
   sharp at any size and can't go stale. Swap for real screenshots when there
   are some. Values here are read off the running app. */

.phone-stage {
  display: grid;
  place-items: center;
  position: relative;
}

.phone {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 656;
  background: #16202e;
  border-radius: 46px;
  padding: 9px;
  box-shadow: var(--lift-3);
  position: relative;
  transform: rotate(-2deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  /* the app's own ground, same angle */
  background: linear-gradient(155deg, var(--ground-1) 0%, var(--ground-2) 50%, var(--ground-3) 100%);
}

.phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  background: #16202e;
  border-radius: var(--radius-pill);
  z-index: 3;
}

.phone-body {
  flex: 1;
  padding: 32px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

/* Top row: screen title + date, coins on the end */
.pm-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.pm-title {
  font-family: 'Racing Sans One', sans-serif;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pm-date {
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-soft);
}

.pm-coins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
}

.pm-coins i {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--coin);
  display: block;
}

/* Pet on the left, score on the right */
.pm-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.pm-pet {
  text-align: center;
}

.pm-pet img {
  width: 66px;
  height: 66px;
  display: block;
  margin: 0 auto 3px;
  animation: bob 1.6s steps(2, end) infinite alternate;
}

.pm-pet b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.pm-pet span {
  font-size: 8px;
  font-weight: 800;
  color: var(--ink-faint);
}

@keyframes bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

.pm-score {
  text-align: center;
}

/* Thriving is 80+, which is the TOP of the scale — and the top is blue, not
   green. Using the green here would quietly contradict the app. */
.pm-score b {
  font-family: 'Racing Sans One', sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--scale-ink-4);
}

.pm-score i {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-faint);
  margin-left: 2px;
}

.pm-score span {
  display: block;
  margin-top: 3px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Three headline numbers */
.pm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.pm-stats div b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.pm-stats div span {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Quick actions pane */
.pm-pane {
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-1);
  padding: 9px;
}

.pm-pane > h4 {
  margin: 0 0 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
}

.pm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.pm-action {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--fill-1);
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
}

.pm-action i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.65;
  display: block;
  flex: none;
}

/* The "Next" card */
.pm-next {
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-1);
  padding: 10px;
}

.pm-next > span {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pm-next > b {
  display: block;
  font-family: 'Racing Sans One', sans-serif;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2px 0 3px;
}

.pm-next > p {
  margin: 0 0 8px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.pm-next-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-cta {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--accent-grad-top), var(--accent-grad-bot));
  border: 1px solid var(--edge-on);
  color: var(--on-accent);
  font-size: 9px;
  font-weight: 800;
}

.pm-swap {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent);
}

/* Two mini meters */
.pm-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.pm-mini div {
  background: var(--fill-1);
  border-radius: var(--radius-md);
  padding: 7px 9px;
}

.pm-mini b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.pm-mini span {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pm-track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--recess);
  margin-top: 5px;
  overflow: hidden;
}

.pm-track i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* The floating tab bar — the most opaque surface in the app, on purpose:
   it sits permanently over moving content. */
.phone-tabs {
  margin: auto 8px 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 7px 0;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--edge);
  border-radius: var(--radius-xl);
  box-shadow: var(--lift-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.phone-tabs i {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: var(--hairline);
  display: block;
}

.phone-tabs i.is-on {
  background: var(--accent);
  box-shadow: var(--glow-accent);
}

/* Floating chips beside the phone */
.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--lift-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.chip-float .dot {
  width: 9px;
  height: 9px;
}

/* Kept off the screen's own content — a chip sitting on top of the mocked
   UI reads as a rendering bug rather than a highlight. */
.chip-a {
  top: 3%;
  left: -9%;
  animation: float 5s ease-in-out infinite;
}

.chip-b {
  bottom: 9%;
  right: -7%;
  animation: float 5s ease-in-out infinite 1.6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-pet img,
  .chip-a,
  .chip-b {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── Feature cards ────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--lift-1);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--fill-2);
  box-shadow: var(--lift-2);
}

.card h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(76, 127, 232, 0.14);
  border: 1px solid rgba(76, 127, 232, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 25px;
  height: 25px;
  stroke: var(--accent-deep);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon.is-green {
  background: rgba(70, 185, 138, 0.16);
  border-color: rgba(70, 185, 138, 0.26);
}
.card-icon.is-green svg {
  stroke: var(--scale-ink-3);
}
.card-icon.is-amber {
  background: rgba(237, 206, 114, 0.24);
  border-color: rgba(237, 206, 114, 0.4);
}
.card-icon.is-amber svg {
  stroke: var(--scale-ink-2);
}

/* ── Health-state strip ───────────────────────────────────── */

.states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.state {
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--lift-1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Generated from the app's own sprite data by site/tools/build-sprites.ts,
   so these are the exact shapes the app draws. */
.state img {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  display: block;
}

.state b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
  font-size: 16px;
}

.state small {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.45;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-pill);
  flex: none;
  display: inline-block;
}

/* ── Steps ────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.step {
  padding-top: 8px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--accent-grad-top), var(--accent-grad-bot));
  border: 1px solid var(--edge-on);
  color: var(--on-accent);
  font-family: 'Racing Sans One', sans-serif;
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow: var(--glow-accent);
}

.step h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ── Pricing ──────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  align-items: start;
}

.plan {
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--lift-1);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  position: relative;
}

.plan.is-featured {
  background: var(--fill-2);
  border-color: rgba(76, 127, 232, 0.4);
  box-shadow: var(--lift-2);
}

.plan-tag {
  position: absolute;
  top: -13px;
  left: 32px;
  background: linear-gradient(180deg, var(--accent-grad-top), var(--accent-grad-bot));
  border: 1px solid var(--edge-on);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-accent);
}

.plan h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.plan-price {
  font-family: 'Racing Sans One', sans-serif;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin: 10px 0 2px;
}

.plan-price small {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-faint);
}

.plan-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-faint);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}

.plan li .tick {
  margin-top: 2px;
}

.price-note {
  text-align: center;
  margin: 28px auto 0;
  max-width: 620px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ── FAQ ──────────────────────────────────────────────────── */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--fill-1);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  box-shadow: var(--lift-1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.faq details[open] {
  background: var(--fill-2);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--ink-faint);
  border-bottom: 2.5px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 30px;
}

.faq details[open] summary {
  color: var(--accent-deep);
}

.faq .faq-body {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.faq .faq-body p {
  margin: 0 0 10px;
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* ── CTA band + waitlist form ─────────────────────────────── */

.cta-band {
  background: linear-gradient(160deg, var(--accent-grad-top-solid), var(--accent-grad-bot-solid));
  color: var(--on-accent);
  border: 1px solid var(--edge-on);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--lift-2), var(--glow-accent);
}

.cta-band h2 {
  color: var(--on-accent);
  font-size: clamp(28px, 4.2vw, 40px);
  margin: 0 0 12px;
}

.cta-band > p {
  margin: 0 auto 28px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.9);
}

.signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

/* An input is a hole, not a card — it recesses rather than lifting. */
.field {
  font-family: inherit;
  font-size: 16px;
  min-height: 44px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--edge-on);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: inset 0 1px 3px rgba(27, 42, 61, 0.08);
}

#waitlist-email {
  flex: 1 1 240px;
  min-width: 0;
}

.field::placeholder {
  color: var(--ink-faint);
}

.field-select {
  flex: 0 1 auto;
  cursor: pointer;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent-deep);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--lift-1);
}

.cta-band .btn-primary:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.92);
}

.cta-band :focus-visible {
  outline-color: #fff;
}

.form-status {
  min-height: 1.65em;
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

/* On the accent band, the scale colours would vibrate — tint instead. */
.form-status.is-pending {
  color: rgba(255, 255, 255, 0.75);
}
.form-status.is-ok {
  color: #e6fff1;
}
.form-status.is-error {
  color: #ffe2de;
}

.form-fineprint {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.form-fineprint a,
.cta-band a {
  color: #fff;
  text-decoration: underline;
}

/* ── Prose (legal + support pages) ────────────────────────── */

.prose-page {
  padding: 56px 0 88px;
}

.prose {
  max-width: var(--wrap-prose);
  margin: 0 auto;
  background: var(--fill-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  padding: 52px;
  box-shadow: var(--lift-1);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.prose h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin: 0 0 8px;
}

.prose h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 800;
}

.updated {
  display: inline-block;
  background: rgba(76, 127, 232, 0.12);
  border: 1px solid rgba(76, 127, 232, 0.22);
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.callout {
  background: rgba(76, 127, 232, 0.09);
  border: 1px solid rgba(76, 127, 232, 0.2);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
}

.callout.is-warn {
  background: rgba(217, 99, 79, 0.09);
  border-color: rgba(217, 99, 79, 0.24);
  border-left-color: var(--bad);
}

.steps-list {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 14px;
}

.steps-list li {
  counter-increment: s;
  position: relative;
  padding-left: 46px;
  margin: 0;
}

.steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: rgba(76, 127, 232, 0.14);
  border: 1px solid rgba(76, 127, 232, 0.22);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}

/* ── 404 ──────────────────────────────────────────────────── */

.notfound {
  text-align: center;
  padding: 100px 0 120px;
}

.notfound img {
  width: 104px;
  height: 104px;
  margin-bottom: 24px;
}

.notfound h1 {
  font-size: clamp(38px, 6vw, 60px);
  margin: 0 0 14px;
}

.notfound p {
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 30px;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 64px 0 48px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 30ch;
}

.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--accent-deep);
}

.footer-note {
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-faint);
  font-size: 14px;
}

.footer-note p {
  margin: 0 0 6px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions,
  .hero-points {
    justify-content: center;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav-group {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--edge);
    box-shadow: var(--lift-2);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-group.is-open {
    display: flex;
  }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 16px;
  }
  .site-nav a::after {
    display: none;
  }
  .nav-group .btn {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .section {
    padding: 68px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .hero {
    padding: 40px 0 64px;
  }
  .prose {
    padding: 30px 22px;
  }
  .cta-band {
    padding: 40px 22px;
    border-radius: var(--radius-lg);
  }
  .card,
  .plan {
    padding: 26px;
  }
  .chip-float {
    display: none;
  }
  /* Scale the whole mockup rather than narrowing it: the screen's contents are
     fixed px, so a narrower phone clips the bottom rows instead of shrinking
     them. The negative margin reclaims the space scaling leaves behind. */
  .phone {
    transform: rotate(-2deg) scale(0.76);
    transform-origin: top center;
    margin-bottom: -158px;
  }
  .signup {
    flex-direction: column;
  }
  .signup .btn {
    width: 100%;
  }
}
