/* ==========================================================================
   Jola — styles
   The Midnight Aurora look from Jola OS. Values match the OS tokens
   (jola-os/packages/ui/src/tokens.css, html[data-look="aurora"]).
   ========================================================================== */

@property --aurora-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes aurora-drift { from { transform: translate3d(-3%, 0, 0) scaleY(.9); } to { transform: translate3d(3%, 0, 0) scaleY(1.1); } }
@keyframes aurora-turn { to { --aurora-a: 360deg; } }

:root {
  color-scheme: dark;

  --accent: #6c5cf0;
  --accent-hover: #5d4de3;
  --accent-text: #c9c2ff;
  --on-accent: #ffffff;
  --teal: #14b8a6;
  --peach: #ffb08a;
  --focus: #5eb2ff;

  --stage: #070914;
  --bg: #0b0d18;
  --surface: #12141f;
  --surface-2: #1a1c2a;
  --surface-3: #252839;
  --border: rgba(255, 255, 255, .11);
  --border-strong: rgba(255, 255, 255, .22);
  --text: #f5f5fb;
  --text-2: #cfd1e3;
  --muted: #a0a4bd;

  --stage-glow: radial-gradient(1000px 620px at 12% -12%, rgba(124, 108, 246, .38), transparent 62%), radial-gradient(900px 520px at 96% 6%, rgba(20, 184, 166, .11), transparent 60%);
  --stage-hl: linear-gradient(94deg, #ffffff 22%, #ffdcc7 66%, #c9c2ff);
  --aurora-field: radial-gradient(58% 58% at 24% 100%, rgba(255, 150, 110, .44), transparent 72%), radial-gradient(58% 60% at 78% 100%, rgba(20, 184, 166, .38), transparent 72%), radial-gradient(44% 44% at 50% 100%, rgba(124, 108, 246, .46), transparent 74%);
  --aurora-rim: #6c5cf0, #14b8a6, #ffb08a, #c9c2ff, #6c5cf0;
  --win-shadow: 0 30px 80px rgba(3, 4, 12, .5);

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 3.4vw, 56px);
  --section: clamp(88px, 12vw, 200px);
  --radius: clamp(16px, 1.6vw, 24px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--stage); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { padding-inline: var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; }

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

.display {
  font-size: clamp(52px, 8.5vw, 136px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
  text-wrap: balance;
}

h3 {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
}

.lead {
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.body { font-size: clamp(17px, 1.3vw, 20px); color: var(--text-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent-text);
}

/* ---------- Pill button: the Ask Numphy button, with its turning aurora rim ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11.5px 22.5px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -.03em; line-height: 1;
  color: var(--on-accent);
  background: linear-gradient(var(--accent), var(--accent)) padding-box, conic-gradient(from var(--aurora-a), var(--aurora-rim)) border-box;
  animation: aurora-turn 16s linear infinite;
  transition: transform .25s var(--ease);
  white-space: nowrap;
}
.pill:hover {
  background: linear-gradient(var(--accent-hover), var(--accent-hover)) padding-box, conic-gradient(from var(--aurora-a), var(--aurora-rim)) border-box;
  animation-duration: 5s;
}
.pill:active { transform: scale(.97); }
.pill--big { padding: 18.5px 32.5px; font-size: 18px; }

/* ---------- OS screenshots ---------- */

.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border);
  border-radius: clamp(12px, 1.3vw, 20px);
  background: var(--surface);
  box-shadow: var(--win-shadow);
}
.shot figcaption { margin-top: 14px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; color: var(--muted); max-width: 62ch; }

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: 18px var(--pad);
  color: var(--text);
  transition: transform .45s var(--ease), background .3s;
}
.site-header.is-scrolled {
  background: rgba(7, 9, 20, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.site-header.is-hidden { transform: translateY(-110%); }

.logo { display: block; color: var(--text); }
.logo__mark { display: block; width: 78px; height: 29.5px; fill: currentColor; }

.site-nav { display: flex; gap: clamp(20px, 3.4vw, 52px); margin-right: auto; }
.site-nav a {
  font-size: 16px; letter-spacing: -.03em; line-height: 1; white-space: nowrap;
  position: relative; padding: 6px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

.menu-btn { display: none; font-size: 16px; font-weight: 500; letter-spacing: -.03em; padding: 8px 0; }

@media (max-width: 1040px) {
  .site-header { gap: 16px; }
  /* Nearly solid, at the top of the page too: text scrolling under it shouldn't compete with the logo and buttons. */
  .site-header, .site-header.is-scrolled {
    background: rgba(7, 9, 20, .9);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .site-header > .pill { margin-left: auto; padding: 9.5px 16.5px; }
  .menu-btn { display: block; }
  .site-nav + .menu-btn { margin-left: auto; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 6px;
    padding: 96px var(--pad) 40px;
    background: var(--stage);
    height: 100vh; height: 100dvh;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }
  .site-nav a { font-size: clamp(40px, 11vw, 64px); font-weight: 600; letter-spacing: -.05em; }
  .site-nav a::after { display: none; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open.site-header { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

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

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) clamp(20px, 3vw, 44px);
  background: var(--stage-glow), linear-gradient(180deg, #070914 0%, #0a0c1a 60%, #12112a 100%);
  overflow: hidden;
  isolation: isolate;
}
/* The aurora: a slow field of color rising from the ground */
.hero::after, .plans-end::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -8vh; height: 64vh; z-index: -1;
  background: var(--aurora-field);
  pointer-events: none; transform-origin: 50% 100%;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.hero__bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap-reverse; align-items: flex-end; justify-content: space-between;
  gap: 28px clamp(24px, 4vw, 64px);
}

.hero__title { line-height: 0; }
.hero__word {
  display: block;
  font-size: clamp(84px, 21.5vw, 420px);
  white-space: nowrap;
  font-weight: 600;
  line-height: .78;
  letter-spacing: -.075em;
  /* Padding keeps the gradient behind every glyph; the margins cancel it so the layout doesn't shift */
  margin: -.08em -.1em -.08em -.045em;
  padding: .08em .1em .08em 0;
  background: var(--stage-hl);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero__meta { display: flex; flex-direction: column; align-items: flex-start; width: min(100%, 440px); padding-bottom: clamp(4px, 1.4vw, 22px); }
.hero__day {
  font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.hero__sub { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.35; letter-spacing: -.015em; color: var(--text-2); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 26px;
  font-size: 16px; font-weight: 500; letter-spacing: -.03em;
}
.arrow-link__dot {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--text); color: var(--stage);
  transition: background .25s, color .25s, transform .4s var(--ease);
}
.arrow-link:hover .arrow-link__dot { background: var(--accent); color: var(--on-accent); transform: translateY(4px); }

/* The cluster: scattered app tiles that snap together into one OS */
.cluster {
  --s: clamp(64px, min(9.4vw, 13.5vh), 132px);
  --g: clamp(6px, .8vw, 12px);
  position: relative;
  width: calc(var(--s) * 3 + var(--g) * 2);
  height: calc(var(--s) * 3 + var(--g) * 2);
  margin: 0 0 clamp(28px, 6vh, 72px) auto;
  perspective: 900px;
}
.cluster__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .3s ease-out;
}
.tile {
  position: absolute;
  left: calc(var(--c) * (var(--s) + var(--g)));
  top: calc(var(--r) * (var(--s) + var(--g)));
  width: var(--s); height: var(--s);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--s) * .13);
  border-radius: calc(var(--s) * .2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: clamp(10px, calc(var(--s) * .115), 15px); font-weight: 500; letter-spacing: -.02em; line-height: 1;
  transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(var(--ss, .9));
  opacity: .5;
  transition: transform 1.5s var(--ease) var(--d, 0s), opacity 1.2s ease var(--d, 0s), background .3s;
  will-change: transform;
}
.tile svg { width: calc(var(--s) * .26); height: calc(var(--s) * .26); }
.tile span { color: var(--muted); }
.tile--core {
  background: var(--accent); border-color: transparent;
  justify-content: flex-end;
  --ss: .4; opacity: 0;
}
.tile--core svg { width: calc(var(--s) * .62); height: auto; aspect-ratio: 1495 / 566; fill: var(--on-accent); margin: 0 auto calc(var(--s) * .06); }
.cluster.is-together .tile { transform: none; opacity: 1; }

@media (min-width: 861px) {
  .hero__bottom { flex-wrap: nowrap; }
  .hero__title { flex: none; }
  .hero__meta { flex: 0 1 440px; min-width: 260px; }
}
/* Too narrow for the full-size word beside the tiles and copy */
@media (min-width: 861px) and (max-width: 1240px) {
  .hero__word { font-size: 17.5vw; }
}
@media (max-width: 640px) {
  .cluster { margin-inline: auto; }
}

/* ---------- Statement ---------- */

.statement { padding-top: var(--section); }
.statement__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr);
  gap: 24px clamp(24px, 4vw, 64px);
}
.statement__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(40px, 6vw, 96px);
  max-width: 1100px;
}
.statement .eyebrow { padding-top: 1.4em; }

@media (max-width: 860px) {
  .statement__grid, .statement__cols { grid-template-columns: 1fr; }
  .statement .eyebrow { padding-top: 0; }
}

.marquee {
  margin-top: var(--section);
  padding-block: clamp(20px, 3vw, 44px);
  border-block: 1px solid var(--border-strong);
  overflow: hidden;
}
.marquee__track {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee span {
  font-size: clamp(48px, 7.2vw, 116px); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  white-space: nowrap;
  /* Outline look: stroke painted under a background-coloured fill so glyph overlaps stay hidden */
  color: var(--bg); -webkit-text-stroke: 2px rgba(245, 245, 251, .5); paint-order: stroke fill;
}
.marquee span.solid { color: var(--text); -webkit-text-stroke: 0; }
.marquee i {
  flex: none; width: clamp(14px, 1.6vw, 24px); height: clamp(14px, 1.6vw, 24px);
  border-radius: 50%; background: var(--teal);
}
.marquee i:nth-of-type(3n) { background: var(--peach); }
.marquee i:nth-of-type(3n+1) { background: var(--accent); }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(20px, 3vw, 48px) / 2)); } }

/* ---------- Product film ---------- */

.os { padding-block: var(--section); background: var(--stage-glow), var(--stage); }
.os__head {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end;
  gap: 24px clamp(24px, 4vw, 64px);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.os__note { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) { .os__head { grid-template-columns: 1fr; } }

.film {
  position: relative;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(var(--stage), var(--stage)) padding-box, conic-gradient(from var(--aurora-a), var(--aurora-rim)) border-box;
  box-shadow: var(--win-shadow), 0 0 120px rgba(108, 92, 240, .22);
  animation: aurora-turn 16s linear infinite;
}
.film__video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 1.5px);
  background: var(--stage);
}
.film__play {
  position: absolute; left: 50%; bottom: clamp(16px, 9%, 72px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 14px;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 18px 50px rgba(3, 4, 12, .45);
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; letter-spacing: -.02em; line-height: 1;
  white-space: nowrap;
  transition: background .25s, transform .4s var(--ease), opacity .3s, visibility .3s;
}
.film__play svg { flex: none; }
.film__play small { font-family: var(--mono); font-size: .8em; font-weight: 400; opacity: .8; }
.film__play:hover { background: var(--accent-hover); transform: translateX(-50%) scale(1.04); }
.film.is-playing .film__play { opacity: 0; visibility: hidden; }
/* On phones the video's controls fill the lower half, so the button sits above them */
@media (max-width: 640px) {
  .film__play { top: 8%; bottom: auto; padding: 8px 14px 8px 10px; gap: 8px; }
  .film__play svg { width: 20px; height: 20px; }
}

/* ---------- Capabilities ---------- */

.caps { padding-block: var(--section); }
.caps__list { margin-top: clamp(40px, 6vw, 96px); border-top: 1px solid var(--border-strong); }
.cap {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start;
  gap: 24px clamp(32px, 5vw, 88px);
  padding: clamp(32px, 4.4vw, 72px) 0;
  border-bottom: 1px solid var(--border-strong);
}
.cap__copy { position: sticky; top: clamp(80px, 12vh, 120px); }
.cap__n { display: block; font-family: var(--mono); font-size: clamp(14px, 1.1vw, 16px); color: var(--accent-text); margin-bottom: clamp(16px, 2vw, 28px); }
.cap__t { font-size: clamp(30px, 3.4vw, 54px); letter-spacing: -.04em; text-wrap: balance; }
.cap__d { margin-top: clamp(14px, 1.6vw, 22px); font-size: clamp(17px, 1.3vw, 20px); color: var(--text-2); max-width: 46ch; }
.cap--text { display: block; }
.cap--text .cap__copy { position: static; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 clamp(32px, 5vw, 88px); align-items: baseline; }
.cap--text .cap__n { grid-column: 1 / -1; }
.cap--text .cap__d { margin-top: 0; }

/* Kinds of seed: a tab per kind */
.kinds__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(14px, 1.6vw, 22px); }
.kinds__tab {
  padding: 9px 16px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.02em; line-height: 1;
  color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.kinds__tab:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.kinds__tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--stage); }
.kinds__panel + .kinds__panel { margin-top: 24px; }
.js .kinds__panel { display: none; margin-top: 0; }
.js .kinds__panel.is-on { display: block; }

@media (max-width: 860px) {
  .cap { grid-template-columns: minmax(0, 1fr); }
  .cap__copy { position: static; }
  .cap--text .cap__copy { grid-template-columns: minmax(0, 1fr); }
  .cap--text .cap__d { margin-top: 14px; }
}

/* ---------- Works with (orbit) ---------- */

.works { padding-block: var(--section); background: var(--stage-glow), var(--stage); overflow: hidden; }
.works__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.works__copy .lead { margin-top: clamp(24px, 3vw, 40px); max-width: 28ch; color: var(--text-2); }
.works__points { list-style: none; padding: 0; margin: clamp(28px, 3vw, 44px) 0 0; border-top: 1px solid var(--border-strong); }
.works__points li { padding: 16px 0; border-bottom: 1px solid var(--border-strong); font-size: clamp(16px, 1.25vw, 19px); color: var(--text-2); line-height: 1.35; }
.works__points b { display: block; color: var(--accent-text); font-weight: 600; letter-spacing: -.02em; margin-bottom: 2px; }
.works__shot { margin-top: clamp(56px, 7vw, 120px); }
.works__shot .shot { max-width: 1240px; margin-inline: auto; }

.orbit {
  --a: 0deg;
  position: relative; width: min(100%, 600px); aspect-ratio: 1; margin-inline: auto;
}
.orbit__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .2);
  transform: rotate(calc(var(--a) * var(--k)));
  will-change: transform;
}
.orbit__ring--inner { inset: 23%; }
/* Logo chips stay light so every brand color reads, as they do on the OS dock */
.node {
  position: absolute; top: 50%; left: 50%;
  width: 12%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--text);
  box-shadow: 0 10px 30px -10px rgba(3, 4, 12, .7);
  transform: translate(-50%, -50%) rotate(calc(var(--a) * var(--k) * -1));
}
.orbit__ring--inner .node { width: 19%; }
.node svg { width: 48%; height: 48%; }
.orbit__core {
  position: absolute; inset: 36.5%; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--aurora-a), var(--aurora-rim)) border-box;
  box-shadow: 0 20px 60px -16px rgba(108, 92, 240, .55);
  animation: aurora-turn 16s linear infinite;
}
.orbit__core svg { width: 62%; height: auto; aspect-ratio: 1495 / 566; fill: var(--text); }

@media (max-width: 860px) {
  .works__grid { grid-template-columns: 1fr; }
  .works__copy .lead { max-width: none; }
  .orbit { width: min(100%, 440px); }
}

/* ---------- How it works ---------- */

.how { background: var(--bg); }
.how__sticky { padding-block: var(--section); }
.how__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px clamp(24px, 4vw, 64px);
  padding-inline: var(--pad);
}
.how__head .lead { max-width: 20ch; color: var(--muted); }
.how__track {
  display: grid; gap: 14px;
  padding-inline: var(--pad);
  margin-top: clamp(36px, 5vw, 72px);
}
.step {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 300px;
}
.step__n { font-size: clamp(64px, 8vw, 120px); font-weight: 300; letter-spacing: -.06em; line-height: .85; color: var(--accent-text); }
.step h3 { margin-top: auto; padding-top: 32px; }
.step p { margin-top: 14px; color: var(--text-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.4; max-width: 38ch; }
.step--accent { background: var(--accent); border-color: transparent; }
.step--accent .step__n, .step--accent p { color: var(--on-accent); }

/* Pinned horizontal scroll (enabled by JS on wide screens) */
.how.is-pinned .how__sticky {
  position: sticky; top: 0;
  height: 100vh;
  padding-block: clamp(84px, 13vh, 130px) clamp(24px, 5vh, 56px);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.how.is-pinned .how__track {
  display: flex; width: max-content; margin-top: 24px;
  will-change: transform;
}
.how.is-pinned .step { width: clamp(340px, 34vw, 520px); height: clamp(280px, 50vh, 480px); min-height: 0; }

/* ---------- Who it's for ---------- */

.who { padding-block: var(--section); }
.who__head {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end;
  gap: 24px clamp(24px, 4vw, 64px);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: clamp(260px, 26vw, 400px);
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.card h3 { font-size: clamp(28px, 3vw, 46px); letter-spacing: -.045em; text-wrap: balance; }
.card__q { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; max-width: 22ch; }
.card--ink { background: var(--surface); }
.card--ink .card__q { color: var(--accent-text); }
.card--soft { background: var(--surface-2); }
.card--soft .card__q { color: var(--text-2); }
.card--accent { background: var(--accent); border-color: transparent; color: var(--on-accent); }

@media (max-width: 980px) { .who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .who__head { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .who__grid { grid-template-columns: 1fr; } .card { min-height: 220px; } }

/* ---------- Trust ---------- */

.trust { padding-block: var(--section); background: var(--stage-glow), var(--stage); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(40px, 6vw, 96px);
}
.trust__item { padding-top: 22px; border-top: 1px solid var(--border-strong); }
.trust__n { display: block; font-family: var(--mono); font-size: clamp(14px, 1.1vw, 16px); color: var(--accent-text); margin-bottom: clamp(28px, 4vw, 64px); }
.trust__item h3 { text-wrap: balance; }
.trust__item p { margin-top: 16px; color: var(--text-2); max-width: 34ch; }
.trust__shot { max-width: 1240px; margin: clamp(56px, 7vw, 120px) auto 0; }

@media (max-width: 1100px) { .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trust__grid { grid-template-columns: 1fr; } }

/* ---------- Objections ---------- */

.obj { padding-block: var(--section); background: var(--stage); }
.obj__head {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end;
  gap: 24px clamp(24px, 4vw, 64px);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.obj__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.obj__card {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .5s var(--ease), border-color .3s;
}
.obj__card:hover { transform: translateY(-4px); border-color: var(--accent); }
.obj__q { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; color: var(--accent-text); }
.obj__card h3 { margin-top: clamp(28px, 4vw, 56px); font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.obj__card > p:last-child { margin-top: 14px; color: var(--text-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }

@media (max-width: 860px) { .obj__head, .obj__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { padding-block: var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px clamp(24px, 4vw, 64px); align-items: start; }
.faq__list { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2vw, 30px) 0;
  font-size: clamp(22px, 2.1vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1;
  cursor: pointer; list-style: none;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px clamp(22px, 2vw, 32px) 0; color: var(--text-2); font-size: clamp(17px, 1.3vw, 20px); max-width: 60ch; }

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

/* ---------- Forms ---------- */

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(20px, 3vw, 40px); }
.field { display: block; }
.field--wide, .form__foot { grid-column: 1 / -1; }
.field span { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 4px; color: var(--text-2); }
.field input, .field textarea {
  display: block; width: 100%;
  padding: 10px 0 12px;
  font: inherit; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2;
  color: var(--text);
  background: none; border: 0; border-bottom: 1.5px solid var(--border-strong); border-radius: 0;
  resize: vertical;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--focus); }
.field input[aria-invalid="true"] { border-bottom-color: #f66a71; border-bottom-style: dashed; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__msg { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }

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

/* ---------- Links inside text ---------- */

.link { color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; transition: color .2s; }
.link:hover { color: var(--text); }

/* ---------- Plans page ---------- */

.plans-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(120px, 18vh, 200px) var(--pad) clamp(40px, 5vw, 72px);
  background: var(--stage-glow), linear-gradient(180deg, #070914 0%, #0a0c1a 60%, #12112a 100%);
}
.plans-hero__title {
  margin-top: clamp(16px, 2vw, 28px); padding-bottom: .1em; max-width: 19ch;
  font-size: clamp(44px, 6.4vw, 108px); font-weight: 600; line-height: .98; letter-spacing: -.05em; text-wrap: balance;
  background: var(--stage-hl);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.plans-hero__sub { margin-top: clamp(16px, 2vw, 28px); max-width: 56ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -.015em; color: var(--text-2); }

.plans { padding-block: clamp(32px, 4vw, 64px) var(--section); background: linear-gradient(180deg, #12112a 0, var(--bg) 320px); }
.plans__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 14px; }

.plan {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.plan--rec {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, conic-gradient(from var(--aurora-a), var(--aurora-rim)) border-box;
  box-shadow: var(--win-shadow), 0 0 100px rgba(108, 92, 240, .2);
  animation: aurora-turn 16s linear infinite;
}
.plan__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.plan__name { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.plan__tag { padding: 6px 12px; border-radius: 999px; background: var(--accent-text); color: var(--stage); font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.plan__price { margin-top: clamp(24px, 3vw, 44px); font-size: clamp(52px, 5.6vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.plan__price span { font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; letter-spacing: -.02em; color: var(--text-2); }
.plan__for { margin-top: 12px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.3; color: var(--text-2); }
.plan__facts { margin: clamp(20px, 2.4vw, 32px) 0 clamp(24px, 3vw, 40px); border-top: 1px solid var(--border-strong); }
.plan__facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--border-strong); }
.plan__facts dt { color: var(--text-2); font-size: 16px; }
.plan__facts dd { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.plan__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.plan__cta .pill { flex: 1 1 105px; padding-inline: 8px; }
@media (min-width: 981px) { .plan:not(.plan--band) .plan__for { min-height: 2.6em; } }
.plan--band { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 20px clamp(24px, 4vw, 64px); }
.plan--band .plan__facts { margin: 0; }
.plan--band .plan__cta { margin-top: 0; }
.plans__note { margin-top: clamp(20px, 2.4vw, 32px); max-width: 70ch; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; }

@media (max-width: 980px) { .plans__grid, .plan--band { grid-template-columns: minmax(0, 1fr); } }

.paths { padding-block: var(--section); background: var(--stage-glow), var(--stage); }
.paths__lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 30ch; color: var(--text-2); }
.paths__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 72px); }
.path { padding: clamp(22px, 2.4vw, 36px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.path__steps { margin-top: clamp(16px, 2vw, 28px); border-top: 1px solid var(--border-strong); list-style: none; padding: 0; counter-reset: step; }
.path__steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-strong); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.35; color: var(--text-2); counter-increment: step; }
ol.path__steps li::before { content: counter(step); flex: none; width: 1.2em; font-family: var(--mono); font-size: .9em; line-height: 1.5; color: var(--accent-text); }
@media (max-width: 760px) { .paths__grid { grid-template-columns: minmax(0, 1fr); } }

.packs { padding-block: var(--section); }
.packs__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; gap: 40px clamp(24px, 4vw, 64px); }
.packs__lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 30ch; color: var(--text-2); }
.packs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.packs__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-strong); font-size: clamp(18px, 1.5vw, 22px); color: var(--text-2); }
.packs__list b { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; letter-spacing: -.035em; color: var(--text); }
@media (max-width: 860px) { .packs__grid { grid-template-columns: minmax(0, 1fr); } }

.plans-end {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: var(--section);
  background: var(--stage-glow), linear-gradient(180deg, #070914 0%, #0a0c1a 60%, #12112a 100%);
}
.plans-end__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 56px); }

/* Plant a seed: the plant grows as you scroll (seedGrowth in main.js). --t runs 0 to 1 on each part, and stays 1 without it. */
.plant { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.plant__lead { margin-top: clamp(16px, 2vw, 28px); max-width: 26ch; }
.plant__key { display: flex; gap: 20px; margin: clamp(20px, 2.4vw, 32px) 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--text-2); }
.plant__key li { display: flex; align-items: center; gap: 8px; }
.plant__key li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.plant__key--seed::before { background: var(--accent-text); }
.plant__key--link::before { background: var(--teal); }
.plant__stage { min-width: 0; min-height: 0; }
.plant__art { display: block; width: 100%; height: auto; max-height: 86vh; overflow: visible; }

.plant__ground { fill: none; stroke-width: 2; }
.plant__mound { fill: rgba(255, 176, 138, .28); }
.plant__seed { fill: var(--peach); }
.plant__seam { fill: none; stroke: rgba(7, 9, 20, .5); stroke-width: 2; stroke-linecap: round; }
.plant__root, .plant__stem, .plant__branch { fill: none; stroke-linecap: round; }
.plant__root { stroke: rgba(255, 176, 138, .55); stroke-width: 3; }
.plant__stem { stroke: var(--teal); stroke-width: 7; }
.plant__branch { stroke: var(--teal); stroke-width: 4; }
.plant__leaf { fill: var(--teal); opacity: .75; }
.plant__petals ellipse { opacity: .85; }
.plant__bloom--seed .plant__petals { fill: var(--accent); }
.plant__bloom--link .plant__petals { fill: var(--teal); }
.plant__deep .plant__heart { stroke: var(--peach); }
.plant__heart { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.plant__icon { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plant__label { fill: var(--text); font-size: 21px; font-weight: 500; letter-spacing: -.01em; paint-order: stroke; stroke: var(--stage); stroke-width: 5px; stroke-linejoin: round; }

.sg-draw { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--t, 1)); opacity: calc(var(--t, 1) * 40); }
.sg-grow { transform: scale(var(--t, 1)); }
.sg-fall { transform: translateY(calc((1 - var(--t, 1)) * -500px)); }
.sg-sink { transform: translateY(calc((1 - var(--t, 1)) * -56px)); }

@media (prefers-reduced-motion: no-preference) {
  .js .plans-end--grow { height: 320vh; padding-block: 0; overflow: clip; }
  .js .plans-end--grow .plant { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: clamp(76px, 10vh, 104px) clamp(16px, 3vh, 40px); }
  .js .plans-end--grow .plant__stage { height: 100%; }
  .js .plans-end--grow .plant__art { height: 100%; max-height: none; }
}
@media (max-width: 860px) {
  .plant { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .plant__lead { max-width: 32ch; font-size: 17px; margin-top: 10px; }
  .plant__key { margin-top: 12px; }
  .plans-end--grow .plans-end__cta { margin-top: 14px; }
}

/* ---------- Sign-up form page ---------- */

.start {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(84px, 11vh, 110px) var(--pad) clamp(24px, 4vh, 48px);
  background: var(--stage-glow), linear-gradient(180deg, #070914 0%, #0a0c1a 60%, #12112a 100%);
}
.start [hidden] { display: none !important; }
.start__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px clamp(32px, 5vw, 88px); align-items: start; }
.start__wide { max-width: 860px; margin-inline: auto; }
.start__title { font-size: clamp(44px, 5.4vw, 88px); font-weight: 600; line-height: .95; letter-spacing: -.05em; outline: 0; }
.start__plan { margin-top: clamp(14px, 2vh, 24px); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.35; color: var(--text-2); }
.start__plan b { display: block; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.03em; color: var(--text); }
.start__steps { margin-top: clamp(14px, 2vh, 24px); }
.start__steps li { padding: 9px 0; }
.start__switch { margin-top: clamp(12px, 2vh, 20px); color: var(--text-2); font-size: 17px; }
.start__lead { margin-top: 16px; color: var(--text-2); font-size: clamp(17px, 1.3vw, 20px); }
.start__when { margin-top: 16px; font-size: clamp(22px, 2.1vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; color: var(--accent-text); }
.start__sub { margin-top: clamp(28px, 4vh, 44px); font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.03em; }
.start__expect { margin-top: 12px; }
.start__expect b { color: var(--text); font-weight: 600; }
.preview-note { margin-top: 16px; padding: 10px 14px; border: 1px dashed var(--peach); border-radius: 10px; color: var(--peach); font-size: 15px; line-height: 1.35; }
@media (max-width: 860px) { .start__grid { grid-template-columns: minmax(0, 1fr); } }

/* The compact form keeps all of it on one screen */
.form--compact { gap: clamp(12px, 1.9vh, 22px) clamp(20px, 3vw, 40px); }
.form--compact .field span { margin-bottom: 0; }
.field small { font-size: 13px; font-weight: 400; color: var(--muted); }
.form--compact .field input, .form--compact .field select, .form--compact .field textarea { padding: 6px 0 8px; font-size: clamp(18px, 1.4vw, 20px); letter-spacing: -.02em; }
.field select {
  display: block; width: 100%;
  font: inherit; font-weight: 500; line-height: 1.2;
  color: var(--text);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a4bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat;
  border: 0; border-bottom: 1.5px solid var(--border-strong); border-radius: 0;
  padding-right: 24px;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.field select option { background: var(--surface); color: var(--text); }
.field select:focus { outline: 0; border-bottom-color: var(--focus); }
.field select[aria-invalid="true"] { border-bottom-color: #f66a71; border-bottom-style: dashed; }
.start[data-mode="start_now"] .field--plan { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form--compact .form__foot { margin-top: 2px; }
.form--compact .form__foot .pill { flex: none; }
.form__consent { flex: 1 1 280px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.form--compact .form__msg { flex-basis: 100%; }
.form--compact .form__msg:empty { display: none; }
.pill[disabled] { opacity: .6; cursor: progress; }

.calendar { position: relative; margin-top: clamp(20px, 3vh, 32px); min-height: 420px; }
.calendar--tall { height: 700px; } /* Calendly's frame fills its parent, so the parent needs a height */
.calendar__loading { position: absolute; top: 0; left: 0; margin: 0; color: var(--muted); }
.calendar__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 16px; }
.calendar__time { padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); text-align: left; font-size: 16px; font-weight: 500; letter-spacing: -.02em; transition: background .2s, border-color .2s; }
.calendar__time:hover { background: var(--surface-2); border-color: var(--accent-text); }

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

.site-footer { background: var(--stage); padding-top: clamp(56px, 7vw, 110px); overflow: hidden; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start;
  gap: 32px clamp(24px, 4vw, 64px);
}
.footer__tag { font-size: clamp(22px, 2.1vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; max-width: 14ch; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; max-width: 460px; }
.footer__nav a { color: var(--muted); letter-spacing: -.02em; transition: color .2s; }
.footer__nav a:hover { color: var(--accent-text); }
.footer__legal { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin-top: clamp(16px, 3vw, 48px); }
.footer__mark { margin-top: clamp(24px, 4vw, 56px); padding: 0 var(--pad) clamp(20px, 3vw, 44px); color: var(--text); }
.footer__mark svg { display: block; width: 100%; height: auto; aspect-ratio: 1495 / 566; fill: currentColor; }

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

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s ease, transform 1.1s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tile { transition: none; }
  .hero::after, .plans-end::after, .pill, .film, .plan--rec, .orbit__core { animation: none; }
}
