/* ============================================================
   Stacky — landing design system
   Anchored in the real app's dark theme (lib/theme.ts / global.css):
   cool near-black surfaces, hairline borders, Inter Tight +
   JetBrains Mono, coral for action, gold for premium identity.
   ============================================================ */

:root {
  --bg: #0d1016;
  --card: #161a22;
  --card-top: #181c25;
  --card-btm: #14181f;
  --inset: #12151c;
  --border: #242b38;
  --input: #2c3444;
  --accent: #1f2533;
  --fg: #f2f4f8;
  --mutedfg: #8d95a5;
  --tertiary: #707a8f;
  --coral: #fa792e;
  --coral-top: #fa8c4c;
  --coral-style: #ff6b47;
  --coral-fg: #0b0e14;
  --green: #39c697;
  --sage: #4fb58c;
  --red: #dd6b57;
  --amber: #f59e0b;
  --gold: #d9b26a;
  --gold-light: #efd9a4;
  --espresso: #3a2c12;
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.1);
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ============ base reset (replaces the former Tailwind preflight) ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(
      1100px 480px at 50% -8%,
      rgba(250, 121, 46, 0.055),
      transparent 62%
    ),
    linear-gradient(180deg, #0d1016 0%, #0b0e13 100%);
  scrollbar-color: var(--accent) var(--bg);
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track {
  background: var(--bg);
}
html::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--mutedfg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
ol,
ul {
  list-style: none;
}
img,
svg,
video,
canvas {
  display: block;
  vertical-align: middle;
}
img,
video {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
}
button {
  cursor: pointer;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ============ small utilities (formerly Tailwind) ============ */
.w-full {
  width: 100%;
}
.w-4 {
  width: 16px;
}
.h-4 {
  height: 16px;
}
.min-w-4 {
  min-width: 16px;
}
.min-h-4 {
  min-height: 16px;
}
.w-5 {
  width: 20px;
}
.h-5 {
  height: 20px;
}
.fill-current {
  fill: currentColor;
}
.fill-foreground {
  fill: var(--fg);
}
.fill-primary {
  fill: var(--coral);
}
.fill-white {
  fill: #fff;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* skip link — hidden until keyboard focus */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 120;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--coral-fg);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(calc(-100% - 24px));
}
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

::selection {
  background: rgba(250, 121, 46, 0.3);
  color: #fff;
}

/* film grain — restrained */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.022;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* blend-mode on a fixed full-screen layer forces whole-page compositing on
   every scroll frame — too expensive on phones */
@media (hover: none) {
  body::after {
    display: none;
  }
}

/* ============ entrance utilities ============ */
@media (prefers-reduced-motion: no-preference) {
  .js .fx {
    opacity: 0;
    transform: translateY(18px);
    animation: fx-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--fxd, 0s);
  }
  @keyframes fx-up {
    to {
      opacity: 1;
      transform: none;
    }
  }
  /* scroll reveals (generic, outside acts) */
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.7s ease var(--fxd, 0s),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--fxd, 0s);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ============ ambient blooms ============ */
.bloom {
  position: absolute;
  width: min(720px, 94vw);
  height: min(720px, 94vw);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--bloom, rgba(250, 121, 46, 0.06)), transparent 62%);
  filter: blur(44px);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .bloom-drift {
    animation: bloom-drift 22s ease-in-out infinite alternate;
  }
  @keyframes bloom-drift {
    0% {
      transform: translate(-50%, -50%) scale(1);
    }
    100% {
      transform: translate(-46%, -54%) scale(1.08);
    }
  }
}

/* ============================================================
   BUTTON SYSTEM
   coral = the one primary action; glass = secondary
   ============================================================ */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, var(--coral-top), var(--coral));
  color: var(--coral-fg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px rgba(250, 121, 46, 0.26);
  transition:
    filter 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.3s ease;
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 32px rgba(250, 121, 46, 0.38);
}
.btn-primary:active {
  transform: scale(0.985);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.btn-primary .arr {
  transition: transform 0.2s ease;
}
.btn-primary:hover .arr {
  transform: translateX(2px);
}
.btn-primary.is-loading {
  pointer-events: none;
  color: transparent;
}
.btn-primary.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(11, 14, 20, 0.3);
  border-top-color: var(--coral-fg);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04) 40%,
      rgba(255, 255, 255, 0) 75%
    ),
    rgba(28, 28, 32, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
}
.btn-glass:hover {
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-glass:active {
  transform: scale(0.985);
}
.btn-glass:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ---- capsule signup form: one object, not two ---- */
.cap-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 58px;
  border-radius: 999px;
  background: rgba(44, 52, 68, 0.3);
  border: 1px solid var(--input);
  padding: 5px 5px 5px 20px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.cap-form:focus-within {
  border-color: rgba(250, 121, 46, 0.6);
  box-shadow: 0 0 0 3px rgba(250, 121, 46, 0.14);
}
.cap-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--sans);
  /* 16px minimum — anything smaller triggers iOS Safari's focus zoom */
  font-size: 16px;
  caret-color: var(--coral);
}

/* honeypot — visually gone, still in the form for bots */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.cap-form input::placeholder {
  color: var(--mutedfg);
}
.cap-form .btn-primary {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
}

/* ============================================================
   GLASS NAV — the app's floating tab bar, as the site's nav
   ============================================================ */
.site-nav {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav-capsule {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  width: 100%;
  max-width: 880px;
  border-radius: 28px;
  padding: 0 9px 0 20px;
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04) 40%,
      rgba(255, 255, 255, 0) 75%
    ),
    rgba(16, 19, 26, 0.66);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo svg {
  height: 22px;
  width: auto;
}
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  padding: 9px 14px;
  border-radius: 19px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mutedfg);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-link span {
  position: relative;
  z-index: 1;
}
.nav-link:hover {
  color: var(--fg);
}
.nav-link.on {
  color: var(--coral);
}
.nav-link.on::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(250, 121, 46, 0.2), rgba(250, 121, 46, 0) 70%),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
}
.nav-cta {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  flex: 0 0 auto;
}

/* shared branded focus ring for everything outside the button system */
.nav-link:focus-visible,
.nav-logo:focus-visible,
.ghost-link:focus-visible,
.faq summary:focus-visible,
.ft-col a:focus-visible,
.ft-social a:focus-visible,
.ev-backed a:focus-visible,
.bh a:focus-visible,
.toast-close:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 8px;
}

/* anchor offset under fixed nav */
.act,
.anchor,
#join {
  scroll-margin-top: 96px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 138px 48px 24px;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 24px;
  overflow: visible;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero .mark {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 5.8vw, 82px);
  letter-spacing: -0.032em;
  line-height: 1.02;
  max-width: 12ch;
}
.hero .sub {
  color: var(--mutedfg);
  font-size: clamp(15px, 1.5vw, 18px);
  margin-top: 22px;
  max-width: 42ch;
  line-height: 1.6;
}
.hero .actions {
  margin-top: 32px;
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proof {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.proof span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}
.proof i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.7;
}

.hero-stage {
  position: relative;
  height: 690px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-stage .bloom {
  width: min(820px, 100vw);
  height: min(820px, 100vw);
}
.hero-phone {
  transform: perspective(1600px) rotateY(-7deg) rotateX(1.5deg) scale(0.76);
  transform-origin: center;
}
.js .tilt .hero-phone {
  will-change: transform;
}

/* floating UI fragments pulled out of the device */
.frag {
  position: absolute;
  z-index: 3;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card-top), var(--card-btm));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.frag-ring {
  left: 0;
  top: 17%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
}
.frag-ring .ringwrap .num {
  font-size: 14px;
}
.frag-ring .fr-tx b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.frag-ring .fr-tx span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mutedfg);
}
.frag-intake {
  right: -2%;
  top: 47%;
  width: 252px;
  padding: 4px 2px;
}
.frag-low {
  left: 3%;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.frag-low .pillv {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(248, 118, 60, 0.12);
  border: 1px solid rgba(248, 118, 60, 0.3);
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-style);
}
.frag-low .fr-tx b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.frag-low .fr-tx span {
  font-size: 11.5px;
  color: var(--mutedfg);
}

/* ============================================================
   MARQUEE — substance categories in their real colors
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-track {
  display: flex;
  gap: 44px;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .mq-track {
    animation: mq 42s linear infinite;
  }
  .marquee:hover .mq-track {
    animation-play-state: paused;
  }
  @keyframes mq {
    to {
      /* track = 20 items + 19 gaps; one seamless set = 10 items + 10 gaps,
         which is 50% of the track plus half a gap (22px) */
      transform: translateX(calc(-50% - 22px));
    }
  }
}
.mq-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mutedfg);
  white-space: nowrap;
}
.mq-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ============================================================
   ACT SECTIONS — the app's SectionRail pattern, page-wide
   ============================================================ */
.act {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 104px 48px;
}
.rail-h {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
}
.rail-h span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mutedfg);
  white-space: nowrap;
}
.rail-h i {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.act-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.act-copy h2 {
  font-weight: 600;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 14ch;
}
.act-copy h2 .g {
  color: var(--sage);
}
.act-copy h2 .o {
  color: var(--coral);
}
.act-copy h2 .au {
  color: var(--gold);
}
.act-copy .body {
  margin-top: 18px;
  color: var(--mutedfg);
  font-size: 16px;
  line-height: 1.65;
  max-width: 46ch;
}
.act-grid.flip .act-copy {
  order: 2;
}
.act-grid.flip .act-stage {
  order: 1;
}
.act-stage {
  position: relative;
  height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.act-stage .phone {
  transform: scale(0.8);
  transform-origin: center;
}

/* enlarged floating fragment beside an act phone */
.act-frag {
  position: absolute;
  z-index: 3;
  width: 300px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  border-radius: 16px;
}
.act-frag.fr-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card-top), var(--card-btm));
}
.frag-pcard {
  right: -4%;
  top: 16%;
}
.frag-insight {
  left: -5%;
  bottom: 16%;
  width: 312px;
}
.frag-insight .insight {
  background: linear-gradient(180deg, var(--card-top), var(--card-btm));
  border-color: var(--border);
}

/* ============ PASSPORT ACT (gold, center-staged) ============ */
.act-passport {
  text-align: center;
}
.act-passport .act-copy {
  max-width: 640px;
  margin: 0 auto;
}
.act-passport .act-copy h2 {
  margin: 0 auto;
}
.act-passport .act-copy .body {
  margin-inline: auto;
}
.foil-stage {
  position: relative;
  max-width: 420px;
  margin: 52px auto 0;
}
.milestones {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}
.mst {
  width: 132px;
  border-radius: 24px;
  padding: 16px 12px;
  text-align: center;
  background: rgba(217, 178, 106, 0.1);
  border: 1px solid rgba(217, 178, 106, 0.4);
}
.mst .di {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(217, 178, 106, 0.2);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}
.mst .di svg {
  width: 20px;
  height: 20px;
}
.mst b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-light);
}
.mst span {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(239, 217, 164, 0.5);
  margin-top: 3px;
}
.mst.lk {
  background: rgba(217, 178, 106, 0.04);
  border-color: rgba(217, 178, 106, 0.16);
}
.mst.lk .di {
  background: rgba(217, 178, 106, 0.08);
  color: rgba(239, 217, 164, 0.5);
}
.mst.lk .di svg {
  width: 18px;
  height: 18px;
}
.mst.lk b {
  color: rgba(239, 217, 164, 0.55);
}

/* ============ EVIDENCE ACT (faithful to the substance sheet) ============ */
.ev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.ev-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0.03) 35%, transparent 70%),
    var(--card);
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ev-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ev-abbr {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #2dd4bf;
  margin-top: 4px;
  flex: 0 0 auto;
}
.ev-head .nm {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ev-head .cat {
  font-size: 13.5px;
  color: rgba(242, 244, 248, 0.5);
  margin-top: 1px;
}
.ev-head .soc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(242, 244, 248, 0.4);
}
.ev-head .soc svg {
  width: 13px;
  height: 13px;
  color: var(--coral-style);
  stroke-width: 2.5;
}
.ev-head .soc b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
}
/* inset tiles: darker bg on the card (inverted elevation, as in the app) */
.ev-tile {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
}
.ev-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(242, 244, 248, 0.4);
}
.ev-duo {
  display: flex;
  gap: 10px;
}
.ev-duo .ev-tile.goals {
  flex: 1.6;
}
.ev-duo .ev-tile.dose {
  flex: 1;
}
.goalchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.goalchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.goalchip svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.ev-dose-v {
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  margin-top: 9px;
}
/* grade tile + GradeMeter (grade letter is always coral; meter marks A–D) */
.ev-grade-letter {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: var(--coral-style);
  margin-top: 4px;
}
.ev-grade-sub {
  font-size: 12px;
  color: rgba(242, 244, 248, 0.45);
}
.grademeter {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.grademeter .gcol {
  flex: 1;
  text-align: center;
}
.grademeter .gcol i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(242, 244, 248, 0.12);
}
.grademeter .gcol span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(242, 244, 248, 0.25);
  margin-top: 4px;
}
.grademeter .gcol.on i {
  background: var(--coral);
}
.grademeter .gcol.on span {
  color: var(--coral);
}
.ev-backed {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: rgba(242, 244, 248, 0.35);
}
.ev-backed a {
  color: var(--coral-style);
  text-decoration: none;
}
/* study rows */
.ev-studies {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-ref {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ev-ref .r1 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ev-ref .typ {
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(255, 107, 71, 0.13);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--coral-style);
}
.ev-ref .meta {
  font-size: 11px;
  color: rgba(242, 244, 248, 0.35);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-ref .r1 svg {
  width: 11px;
  height: 11px;
  color: rgba(242, 244, 248, 0.25);
  flex: 0 0 auto;
}
.ev-ref .ttl {
  font-size: 13px;
  line-height: 18px;
  color: rgba(242, 244, 248, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* community strip: stack row + person row, faithful to explore cards */
.ev-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ev-strip .strip-k {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 2px;
}
.ev-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px;
}
.ev-mini .donut {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ev-mini .donut b {
  position: absolute;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.ev-mini .ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}
.ev-mini .mt {
  flex: 1;
  min-width: 0;
}
.ev-mini .mt b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.ev-mini .mt span {
  display: block;
  font-size: 11px;
  color: rgba(242, 244, 248, 0.42);
  margin-top: 2px;
}
.ev-mini .gchips {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
.ev-mini .gchips i {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}
.ev-mini .tailcol {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 11px;
  color: rgba(242, 244, 248, 0.4);
}
.ev-mini .tailcol .pillc {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(242, 244, 248, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--fg);
  font-weight: 700;
}
.ev-mini .tailcol .pillc svg {
  width: 10px;
  height: 10px;
  color: rgba(242, 244, 248, 0.6);
}

/* ============================================================
   PAPER INTERLUDE — the app's real light theme ("clinical
   luxury" warm paper), used for one section mid-page.
   ============================================================ */
.paper-band {
  background: #f7f6f2;
  border-top: 1px solid rgba(27, 26, 24, 0.07);
  border-bottom: 1px solid rgba(27, 26, 24, 0.07);
}
.paper {
  --bg: #f7f6f2;
  --card: #ffffff;
  --card-top: #ffffff;
  --card-btm: #fcfbf9;
  --inset: #f1efea;
  --border: #e6e4de;
  --input: #eceae4;
  --accent: #f1efea;
  --fg: #1b1a18;
  --mutedfg: #6b6862;
  --tertiary: #8a857e;
  --coral: #f2592f;
  --coral-top: #f4713f;
  --coral-style: #f2592f;
  --gold: #b0883a;
  color: var(--fg);
}
/* light depth is shadow-led, not hairline-led */
.paper .ev-card,
.paper .feat,
.paper .board {
  box-shadow:
    0 1px 2px rgba(27, 26, 24, 0.05),
    0 10px 30px rgba(27, 26, 24, 0.06);
}
/* re-ink the hardcoded dark-theme alphas */
.paper .ev-lbl {
  color: rgba(27, 26, 24, 0.45);
}
.paper .ev-head .cat {
  color: rgba(27, 26, 24, 0.55);
}
.paper .ev-head .soc {
  color: rgba(27, 26, 24, 0.45);
}
.paper .ev-grade-sub {
  color: rgba(27, 26, 24, 0.5);
}
.paper .grademeter .gcol i {
  background: rgba(27, 26, 24, 0.12);
}
.paper .grademeter .gcol span {
  color: rgba(27, 26, 24, 0.3);
}
.paper .ev-backed {
  color: rgba(27, 26, 24, 0.45);
}
.paper .ev-ref .typ {
  background: rgba(242, 89, 47, 0.1);
}
.paper .ev-ref .meta {
  color: rgba(27, 26, 24, 0.45);
}
.paper .ev-ref .r1 svg {
  color: rgba(27, 26, 24, 0.3);
}
.paper .ev-ref .ttl {
  color: rgba(27, 26, 24, 0.7);
}
.paper .donut svg circle:first-child {
  stroke: rgba(27, 26, 24, 0.08);
}
.paper .donut b {
  color: var(--fg);
}
.paper .pillc {
  background: rgba(27, 26, 24, 0.06) !important;
}

/* ---- community: featured stack card + leaderboard ---- */
.comm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  margin-top: 24px;
}
.feat {
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0.03) 40%, transparent),
    var(--card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feat .f-eyebrow {
  display: flex;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feat .f-eyebrow b {
  color: var(--coral);
}
.feat .f-eyebrow span {
  color: rgba(27, 26, 24, 0.4);
}
.feat .fhead {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feat .fhead .ft {
  flex: 1;
  min-width: 0;
}
.feat .fhead .ft .nm {
  font-size: 17px;
  font-weight: 700;
}
.feat .byline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(27, 26, 24, 0.5);
}
.feat .byline .mini-ava {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
}
.feat .cats {
  font-size: 12px;
  color: rgba(27, 26, 24, 0.45);
  margin-top: 2px;
}
.feat .desc {
  font-size: 14px;
  line-height: 19px;
  color: rgba(27, 26, 24, 0.6);
}
.feat .frule {
  height: 1px;
  background: var(--border);
}
.feat .fstats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.feat .fstats span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(27, 26, 24, 0.45);
}
.feat .fstats svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}
.feat .fstats b {
  font-weight: 700;
  color: var(--fg);
}
.board {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.board .bh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 16px 11px;
}
.board .bh b {
  font-size: 15.5px;
  font-weight: 600;
}
.board .bh a {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
}
.brow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.brow .rk {
  width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  flex: 0 0 auto;
}
.brow .ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}
/* Crop real photos into the circular avatars (leaderboard + byline) */
.brow .ava img,
.feat .byline .mini-ava img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.feat .byline .mini-ava {
  overflow: hidden;
}
.brow .bt {
  flex: 1;
  min-width: 0;
}
.brow .bt b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.brow .gchips {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}
.brow .gchips i {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}
.pillc {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(242, 244, 248, 0.08);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}
.pillc svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
  opacity: 0.6;
}

/* ---- per-product cost rows (faithful to stats/cost.tsx) ---- */
.costrows {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}
.crow .r {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.crow .r b {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.crow .bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(250, 121, 46, 0.12);
  margin-top: 6px;
  overflow: hidden;
}
.crow .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--coral);
  width: var(--w, 0%);
}
@media (prefers-reduced-motion: no-preference) {
  .js .act:not(.is-played) .crow .bar i {
    width: 0;
  }
  .crow .bar i {
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) var(--fxd, 0s);
  }
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
}
.ghost-link:hover {
  text-decoration: underline;
}

@media (max-width: 1023.98px) {
  .comm-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BENTO — "and everything else"
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bcard {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(242, 244, 248, 0.04), transparent 50%),
    var(--card);
  padding: 22px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bcard::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: rgba(242, 244, 248, 0.09);
}
.bcard h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bcard > p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mutedfg);
  max-width: 34ch;
}
.b-2 {
  grid-column: span 2;
}
.b-3 {
  grid-column: span 3;
}
.b-vig {
  margin-top: auto;
  padding-top: 16px;
}
/* counter */
.b-num {
  font-family: var(--mono);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.b-num small {
  font-size: 0.5em;
  color: var(--coral);
}
/* scan vignette */
.scanbox {
  position: relative;
  height: 92px;
  border-radius: 14px;
  background: var(--inset);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scanbox .corners i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(242, 244, 248, 0.5);
}
.scanbox .corners i:nth-child(1) {
  top: 10px;
  left: 12px;
  border-right: none;
  border-bottom: none;
  border-radius: 4px 0 0 0;
}
.scanbox .corners i:nth-child(2) {
  top: 10px;
  right: 12px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 4px 0 0;
}
.scanbox .corners i:nth-child(3) {
  bottom: 10px;
  left: 12px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 4px;
}
.scanbox .corners i:nth-child(4) {
  bottom: 10px;
  right: 12px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 4px 0;
}
.scanbox .bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 34px;
  opacity: 0.6;
}
.scanbox .bars i {
  width: 3px;
  height: 100%;
  background: var(--fg);
}
.scanbox .bars i:nth-child(2n) {
  width: 2px;
  opacity: 0.6;
}
.scanbox .bars i:nth-child(3n) {
  width: 4px;
}
.scanline {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(250, 121, 46, 0.6);
  top: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  .scanline {
    animation: scan 2.6s ease-in-out infinite alternate;
  }
  @keyframes scan {
    to {
      top: calc(100% - 18px);
    }
  }
}
/* mood vignette */
.moodrow {
  display: flex;
  gap: 8px;
}
.moodrow .m {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mutedfg);
}
.moodrow .m svg {
  width: 20px;
  height: 20px;
}
.moodrow .m.sel {
  background: rgba(92, 188, 115, 0.2);
  border-color: #5cbc73;
  color: #5cbc73;
}
/* dose range vignette */
.dosebar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
}
.dosebar .zone {
  position: absolute;
  left: 28%;
  right: 22%;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: rgba(79, 181, 140, 0.35);
}
.dosebar .pin {
  position: absolute;
  left: 52%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage);
  border: 2.5px solid var(--bg);
  transform: translate(-50%, -50%);
}
.doselbl {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--tertiary);
  text-transform: uppercase;
}
.doselbl b {
  color: var(--sage);
  font-weight: 600;
}
/* reminder vignette */
.notif {
  display: flex;
  gap: 11px;
  align-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--inset);
  padding: 11px 13px;
}
.notif .ni {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--coral-top), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-fg);
  flex: 0 0 auto;
}
.notif .ni svg {
  width: 17px;
  height: 17px;
}
.notif .nt b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}
.notif .nt span {
  display: block;
  font-size: 11px;
  color: var(--mutedfg);
  margin-top: 1px;
}
/* privacy vignette */
.lockrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lockrow .ld {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mutedfg);
}
.lockrow .ld svg {
  width: 18px;
  height: 18px;
}
.lockrow span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tertiary);
}

/* ============================================================
   FAQ — styled like the app's plan accordion
   ============================================================ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 21px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq-x {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}
.faq-x::before,
.faq-x::after {
  content: "";
  position: absolute;
  background: var(--mutedfg);
  border-radius: 1px;
}
.faq-x::before {
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
}
.faq-x::after {
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
}
.faq details[open] .faq-x {
  transform: rotate(45deg);
}
.faq .a {
  padding: 0 4px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--mutedfg);
  max-width: 62ch;
}

/* ============================================================
   CLOSING + FOOTER
   ============================================================ */
.closing {
  text-align: center;
  padding: 130px 24px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 460px;
  left: 50%;
  bottom: -40%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(250, 121, 46, 0.07), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.closing > * {
  position: relative;
  z-index: 1;
}
.closing .line {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 22ch;
  line-height: 1.15;
}
.closing .note {
  color: var(--mutedfg);
  font-size: 15px;
}
.closing .actions {
  width: min(480px, 100%);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 48px 28px;
}
.ft-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.ft-brand svg {
  height: 24px;
  width: auto;
}
.ft-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mutedfg);
  max-width: 30ch;
}
.ft-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  color: var(--tertiary);
}
.ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -10px;
  color: inherit;
  transition: color 0.2s ease;
}
.ft-social a:hover {
  color: var(--fg);
}
.ft-col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 14px;
}
.ft-col a {
  display: block;
  font-size: 13.5px;
  color: var(--mutedfg);
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ft-col a:hover {
  color: var(--fg);
}
.ft-bottom {
  max-width: 1200px;
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--tertiary);
}

/* ============================================================
   PHONE CHROME (faithful app shell)
   ============================================================ */
.phone {
  width: 392px;
  height: 850px;
  border-radius: 54px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0e1118, #0c0f15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 10px #0e1015,
    0 0 0 11px rgba(255, 255, 255, 0.05),
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 24px 50px -20px rgba(0, 0, 0, 0.7);
}
.phone .glow {
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 380px;
  pointer-events: none;
  background: radial-gradient(
    60% 60% at 50% 38%,
    var(--g, rgba(255, 107, 71, 0.08)),
    transparent 100%
  );
}
.island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  border-radius: 20px;
  background: #000;
  z-index: 30;
}
.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.statusbar .sig {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--fg);
}
.scr {
  position: absolute;
  inset: 0;
  padding: 70px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.ic {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- ScreenHeader ---- */
.s-head {
  display: flex;
  align-items: center;
  height: 56px;
  flex: 0 0 auto;
}
.s-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  flex: 0 0 auto;
}
.s-head .s-ava:first-child {
  margin-right: 12px;
}
.s-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}
.s-eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--coral);
  white-space: nowrap;
}
.s-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
}
.s-act {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--input);
  background: rgba(44, 52, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.icbtn svg {
  width: 16px;
  height: 16px;
}

/* ---- floating glass tab bar + AI orb (in-phone) ---- */
.tabbar {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 12px;
  z-index: 25;
}
.tab-capsule,
.orb {
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.04) 40%,
      rgba(255, 255, 255, 0) 75%
    ),
    rgba(28, 28, 32, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.tab-capsule {
  flex: 1;
  height: 62px;
  border-radius: 31px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.tab {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--mutedfg);
}
.tab svg {
  width: 21px;
  height: 21px;
  position: relative;
  z-index: 1;
}
.tab span {
  position: relative;
  z-index: 1;
}
.tab.on {
  color: var(--coral);
}
.tab.on::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 2px;
  right: 2px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(250, 121, 46, 0.22), rgba(250, 121, 46, 0) 70%),
    rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.orb {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  flex: 0 0 auto;
}
.orb svg {
  width: 25px;
  height: 25px;
}

/* ============ SCREEN 1: TODAY ============ */
.moodbtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.moodbtn svg {
  width: 21px;
  height: 21px;
}
.wk {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
.day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-radius: 24px;
}
.day.today {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 2px;
}
.day .dn {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
}
.ringwrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ringwrap svg {
  transform: rotate(-90deg);
  display: block;
}
.ringwrap .num {
  position: absolute;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
}
.day.today .ringwrap .num {
  font-size: 17px;
}
.arc {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: var(--p, 0) 100;
}
.qa {
  display: flex;
  gap: 8px;
}
.qa .pill {
  flex: 1;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
}
.pill svg {
  width: 14px;
  height: 14px;
}
.pill.solid {
  background: var(--coral);
  color: var(--coral-fg);
}
.pill.line {
  background: rgba(44, 52, 68, 0.3);
  border: 1px solid var(--input);
  color: var(--fg);
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--mutedfg);
}
.plan-h svg {
  width: 16px;
  height: 16px;
}
.plan-h .nm {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ced5e3;
  text-transform: uppercase;
}
.plan-h .ct {
  font-family: var(--mono);
  font-size: 12.5px;
}
.plan-h .mark {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--coral);
}
.plan-h .chev {
  margin-left: auto;
}
.plan-h .mark + .chev {
  margin-left: 0;
}
.intake-card {
  margin: 12px 0 4px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.irow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.irow:last-child {
  border-bottom: none;
}
.irow .tm {
  width: 36px;
  text-align: center;
  flex: 0 0 auto;
}
.irow .tm b {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--fg);
}
.irow .tm span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mutedfg);
}
.irow .tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  flex: 0 0 auto;
}
.irow .info {
  flex: 1;
  min-width: 0;
}
.irow .info b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.irow .info span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mutedfg);
  margin-top: 2px;
}
.chk {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex: 0 0 auto;
}
.irow.done .tm,
.irow.done .tile,
.irow.done .info {
  opacity: 0.5;
}
.irow.done .chk {
  border: none;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-fg);
}
.irow.done .chk svg {
  width: 12px;
  height: 12px;
  stroke-width: 3.5;
}

/* ============ SCREEN 2: STACK ============ */
.addbtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.addbtn svg {
  width: 20px;
  height: 20px;
}
.fchips {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.fchip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mutedfg);
  white-space: nowrap;
}
.fchip.on {
  border-color: var(--coral);
  background: transparent;
  color: #fff;
  font-weight: 600;
}
.fchip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral-style);
}
.fchip .n {
  color: var(--coral);
  font-weight: 600;
}
.plist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcard {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pcard .pv {
  width: 54px;
  height: 80px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pcard .tx {
  flex: 1;
  min-width: 0;
}
.pcard .tx .nm {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 20px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard .tx .br {
  font-size: 12px;
  color: var(--mutedfg);
  margin-top: 2px;
}
.pcard .tx .meta {
  font-size: 11.5px;
  color: var(--mutedfg);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard .dl {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.pcard .chev {
  color: #555;
  margin-right: -6px;
}
.pcard .chev svg {
  width: 12px;
  height: 12px;
}

/* ============ SCREEN 3: SYNERGY ============ */
.syn-head {
  display: grid;
  grid-template-columns: 36px 1fr 34px;
  align-items: center;
  gap: 10px;
  height: 56px;
  flex: 0 0 auto;
}
.syn-head .ttl {
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.note {
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(242, 244, 248, 0.05);
  border: 1px solid rgba(242, 244, 248, 0.12);
  font-size: 11.5px;
  line-height: 16px;
  color: var(--mutedfg);
}
.toggle {
  align-self: center;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(242, 244, 248, 0.06);
}
.tg {
  height: 30px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mutedfg);
  display: flex;
  align-items: center;
}
.tg.on {
  background: var(--card);
  color: var(--fg);
}
.gsurface {
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(
      180deg,
      rgba(242, 244, 248, 0.05),
      transparent 45%,
      rgba(13, 16, 22, 0.5)
    ),
    var(--card);
  position: relative;
  padding: 16px;
  overflow: hidden;
}
.gsurface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--bloom, transparent), transparent 65%);
}
.gsurface::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: rgba(242, 244, 248, 0.1);
}
.gsurface > * {
  position: relative;
  z-index: 1;
}
.beta {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(242, 244, 248, 0.1);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 244, 248, 0.7);
}
.constellation {
  display: block;
  width: 100%;
  margin: 8px auto 4px;
}
.snode {
  transform-box: fill-box;
  transform-origin: center;
}
.syn-leg {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 4px;
}
.syn-leg span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--mutedfg);
}
.syn-leg i {
  width: 14px;
  height: 2px;
  display: inline-block;
}
.syn-more {
  font-size: 11.5px;
  color: var(--mutedfg);
  text-align: center;
  margin-top: 8px;
}
.todo-h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.todo-h svg {
  width: 15px;
  height: 15px;
  color: var(--sage);
}
.todo-h b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.act-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
}
.act-row .disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.act-row .disc svg {
  width: 16px;
  height: 16px;
}
.act-row.good .disc {
  background: rgba(79, 181, 140, 0.14);
  color: var(--sage);
}
.act-row.bad .disc {
  background: rgba(221, 107, 87, 0.14);
  color: var(--red);
}
.act-row b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.act-row span {
  display: block;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--mutedfg);
  margin-top: 2px;
}

/* ============ SCREEN 4: PASSPORT (gold foil) ============ */
.foil {
  border-radius: 24px;
  border: 1px solid rgba(120, 90, 30, 0.45);
  background:
    linear-gradient(
      135deg,
      transparent 40%,
      rgba(255, 255, 255, 0.22) 48%,
      transparent 56%
    ),
    linear-gradient(
      135deg,
      #c9a24f 0%,
      #e8ce86 26%,
      #be9540 55%,
      #e3c16e 78%,
      #b98b36 100%
    );
  box-shadow:
    0 1px 2px rgba(120, 90, 30, 0.3),
    0 10px 28px rgba(150, 110, 40, 0.28),
    0 24px 54px rgba(120, 90, 30, 0.2);
  padding: 18px 20px;
  color: var(--espresso);
  position: relative;
  overflow: hidden;
}
.foil > * {
  position: relative;
  z-index: 1;
}
.foil .topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
}
.foil .sheen {
  position: absolute;
  inset: -30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 58%
  );
  transform: translateX(-80%);
}
.foil .wm {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foil .wm b {
  font-size: 15px;
  font-weight: 500;
}
.foil .wm span {
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(58, 44, 18, 0.6);
}
.foil .emblem {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1.5px solid rgba(58, 44, 18, 0.5);
  background: rgba(58, 44, 18, 0.08);
  margin: 14px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.foil .emblem svg {
  width: 25px;
  height: 25px;
}
.foil .pname {
  text-align: center;
  font-size: 19px;
  font-weight: 500;
}
.foil .since {
  text-align: center;
  font-size: 11.5px;
  color: rgba(58, 44, 18, 0.6);
  margin-top: 3px;
}
.f-inset {
  background: rgba(58, 44, 18, 0.06);
  border: 1px solid rgba(58, 44, 18, 0.18);
  border-radius: 16px;
}
.hero-stat {
  padding: 14px;
  text-align: center;
  margin-top: 14px;
}
.hero-stat .hs-num {
  font-size: 50px;
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hero-stat .hs-lb {
  font-size: 12.5px;
  color: rgba(58, 44, 18, 0.72);
  margin-top: 4px;
}
.hero-stat .hs-sub {
  font-size: 11px;
  color: rgba(58, 44, 18, 0.5);
  margin-top: 2px;
}
.f-tiles {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.f-tile {
  flex: 1;
  padding: 11px 6px;
  text-align: center;
}
.f-tile .v {
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.f-tile .l {
  font-size: 10.5px;
  color: rgba(58, 44, 18, 0.7);
  margin-top: 2px;
}
.loyal {
  padding: 13px 16px 15px;
  margin-top: 10px;
}
.loyal .lt {
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 10px;
}
.loyal .lrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.loyal .lrow span {
  font-size: 12px;
  color: rgba(58, 44, 18, 0.85);
}
.loyal .lrow b {
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.loyal .lb {
  height: 6px;
  border-radius: 3px;
  background: rgba(58, 44, 18, 0.12);
  margin-top: 5px;
  overflow: hidden;
}
.loyal .lb i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--espresso);
  width: var(--w, 0%);
}
.foil .foot {
  margin-top: 14px;
  border-top: 1px solid rgba(90, 66, 24, 0.28);
  padding-top: 10px;
  text-align: center;
  font-size: 11px;
  color: rgba(58, 44, 18, 0.55);
}
.sharebtn {
  height: 40px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--coral-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  flex: 0 0 auto;
}
.sharebtn svg {
  width: 16px;
  height: 16px;
}

/* ============ SCREEN 5: AI ADVISOR ============ */
.summary {
  font-size: 17px;
  line-height: 25px;
  font-weight: 500;
  color: var(--fg);
}
.disc-card {
  display: flex;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px 14px;
}
.disc-card svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: 0.7;
  margin-top: 2px;
  color: var(--fg);
}
.disc-card p {
  font-size: 11.5px;
  line-height: 16px;
  color: var(--mutedfg);
}
.insight {
  border-radius: 16px;
  border: 1px solid rgba(242, 244, 248, 0.06);
  background: rgba(242, 244, 248, 0.035);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ins-k {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.ins-k svg {
  width: 14px;
  height: 14px;
}
.insight.watch .ins-k {
  color: #ff7043;
}
.insight.great .ins-k {
  color: #4caf50;
}
.insight.consider .ins-k {
  color: #4a9ef5;
}
.insight.optimize .ins-k {
  color: #f5a623;
}
.insight > b {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.insight > p {
  font-size: 12.5px;
  line-height: 18px;
  color: rgba(242, 244, 248, 0.6);
}
.ins-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ins-f .schips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ins-f .schips span {
  border-radius: 999px;
  background: rgba(242, 244, 248, 0.06);
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(242, 244, 248, 0.7);
}
.ins-f .go {
  font-size: 12px;
  font-weight: 600;
  color: var(--coral-style);
  white-space: nowrap;
}
.adv-bottom {
  margin-top: auto;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prompts {
  display: flex;
  gap: 8px;
  overflow: hidden;
}
.pr {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 8px 14px;
  font-size: 12px;
  color: var(--mutedfg);
  flex: 0 0 auto;
}
.composer {
  display: flex;
  gap: 8px;
  align-items: center;
}
.composer .inp {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--input);
  background: rgba(44, 52, 68, 0.3);
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--mutedfg);
}
.composer .sendb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--coral-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.composer .sendb svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   CHOREOGRAPHY — per-act entrance states, gated on .js +
   motion preference; .is-played triggers the show.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .act [data-fx] {
    opacity: 0;
    transform: translateY(14px);
  }
  .js .act.is-played [data-fx] {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.6s ease var(--fxd, 0s),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--fxd, 0s);
  }

  /* intake checks pop in */
  .js .act .irow.done .chk,
  .js .hero-act .irow.done .chk {
    opacity: 0;
    transform: scale(0.3);
  }
  .js .act.is-played .irow.done .chk,
  .js .hero-act.is-played .irow.done .chk {
    opacity: 1;
    transform: scale(1);
    transition:
      opacity 0.3s ease var(--fxd, 0s),
      transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) var(--fxd, 0s);
  }

  /* weekly rings fill */
  .js .act:not(.is-played) .arc,
  .js .hero-act:not(.is-played) .arc {
    stroke-dasharray: 0 100;
  }
  .arc {
    transition: stroke-dasharray 1s cubic-bezier(0.22, 1, 0.36, 1) var(--fxd, 0s);
  }

  /* constellation edges draw themselves (pathLength=1 in markup) */
  .js .act .syn-edge {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .js .act.is-played .syn-edge {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.9s ease var(--fxd, 0s);
  }
  .js .act.is-played .syn-edge.dashed {
    stroke-dasharray: 4 3;
    transition:
      stroke-dashoffset 0.9s ease var(--fxd, 0s),
      stroke-dasharray 0s linear calc(var(--fxd, 0s) + 0.9s);
  }

  /* constellation nodes pop in */
  .js .act .snode {
    opacity: 0;
    transform: scale(0.6);
  }
  .js .act.is-played .snode {
    opacity: 1;
    transform: scale(1);
    transition:
      opacity 0.45s ease var(--fxd, 0s),
      transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) var(--fxd, 0s);
  }

  /* constellation breathes (app: 6s sine, scale 0.99–1.01, y ±2px) */
  .is-played .constellation {
    animation: breathe 6s ease-in-out infinite alternate;
  }
  @keyframes breathe {
    from {
      transform: scale(0.99) translateY(2px);
    }
    to {
      transform: scale(1.01) translateY(-2px);
    }
  }

  /* loyalty bars fill */
  .js .act:not(.is-played) .loyal .lb i {
    width: 0;
  }
  .loyal .lb i {
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) var(--fxd, 0s);
  }

  /* gold foil sheen sweeps once */
  .js .act.is-played .foil .sheen {
    transform: translateX(80%);
    transition: transform 1.5s ease 0.35s;
  }

  /* hero fragments float gently */
  .frag {
    animation: frag-float 7s ease-in-out infinite alternate;
    animation-delay: var(--ffd, 0s);
  }
  @keyframes frag-float {
    from {
      translate: 0 0;
    }
    to {
      translate: 0 -10px;
    }
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023.98px) {
  .nav-links {
    display: none;
  }
  .nav-capsule {
    max-width: none;
    /* .nav-links was the only flexible child — without this the logo and
       CTA bunch up on the left of the capsule */
    justify-content: space-between;
  }
  .nav-cta {
    height: 44px;
    border-radius: 22px;
  }

  .hero {
    /* minmax(0, …): a plain 1fr track can't shrink below the 392px phone
       mockup's min-content width, which forces horizontal panning */
    grid-template-columns: minmax(0, 1fr);
    padding: 118px 24px 24px;
    gap: 8px;
    text-align: center;
  }
  .hero h1,
  .hero .sub {
    margin-inline: auto;
  }
  .hero .actions {
    margin-inline: auto;
  }
  .proof {
    justify-content: center;
  }
  .hero-stage {
    height: 600px;
    margin-top: 8px;
  }
  .hero-phone {
    transform: scale(0.66);
  }
  .frag {
    display: none;
  }

  .act {
    padding: 72px 24px;
  }
  .rail-h {
    margin-bottom: 36px;
  }
  .act-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .act-grid.flip .act-copy {
    order: 1;
  }
  .act-grid.flip .act-stage {
    order: 2;
  }
  .act-copy {
    text-align: center;
  }
  .act-copy h2,
  .act-copy .body {
    margin-inline: auto;
  }
  .act-stage {
    height: 620px;
  }
  .act-stage .phone {
    transform: scale(0.7);
  }
  .act-frag {
    display: none;
  }

  .ev-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .b-2,
  .b-3 {
    grid-column: span 1;
  }
  .bento .b-w {
    grid-column: 1 / -1;
  }

  .ft-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer {
    padding: 56px 24px 24px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(36px, 11vw, 46px);
  }
  .hero-stage {
    height: 520px;
  }
  .hero-phone {
    transform: scale(0.56);
  }
  .act-stage {
    height: 560px;
  }
  .act-stage .phone {
    transform: scale(0.62);
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .milestones {
    gap: 8px;
  }
  .mst {
    /* 3×104px + gaps overflows a 375px viewport by 1px and wraps 2+1 */
    width: 100px;
  }
  .ev-duo {
    flex-wrap: wrap;
  }
  .ev-duo .ev-tile {
    min-width: 130px;
  }
  .ev-dose-v {
    font-size: clamp(15px, 4.6vw, 19px);
  }
}
