/* Classrove product site. One file, no framework.
   Motion: spring-like easing, transform/opacity only (GPU), reduced-motion respected. */

:root {
  --night: #0f2238;
  --navy: #1b3a5f;
  --ink: #15233a;
  --ink-soft: #4a5a70;
  --paper: #f7f5f0;
  --white: #ffffff;
  --gold: #d4af5a;
  --gold-soft: #f2d48a;
  --green: #0ca30c;
  --blue-1: #cde2fb;
  --blue-2: #9ec5f4;
  --blue-3: #6da7ec;
  --blue-4: #3987e5;
  --blue-5: #184f95;
  --line: rgb(21 35 58 / 10%);
  --shadow: 0 1px 2px rgb(21 35 58 / 6%), 0 18px 40px -18px rgb(21 35 58 / 28%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 18px;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: inherit;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 800;
}

p {
  margin: 0;
}

em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
}

.skip:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* --- buttons ------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgb(27 58 95 / 60%);
  transition: transform 0.5s var(--spring), box-shadow 0.4s var(--ease), background 0.3s;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px -14px rgb(27 58 95 / 70%);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgb(27 58 95 / 25%);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--night);
  box-shadow: 0 14px 40px -14px rgb(212 175 90 / 80%);
}

/* --- nav ----------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  transition: transform 0.6s var(--ease), background 0.4s;
}

.nav.is-hidden {
  transform: translateY(-140%);
}

.nav.on-dark {
  color: #fff;
}

.nav.on-dark .btn-small {
  background: #fff;
  color: var(--navy);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-mark circle:first-child {
  fill: var(--navy);
}

.nav.on-dark .brand-mark circle:first-child {
  fill: #fff;
}

.brand-mark path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.brand-mark circle:last-child {
  fill: var(--gold);
}

.nav nav {
  display: flex;
  gap: 4px;
}

.nav nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}

.nav nav a:hover,
.nav nav a.is-here {
  opacity: 1;
  background: rgb(27 58 95 / 8%);
}

.nav.on-dark nav a:hover,
.nav.on-dark nav a.is-here {
  background: rgb(255 255 255 / 12%);
}

/* --- the gold line ------------------------------------------------------------ */

.rove {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}

.rove-path,
.rove-glow {
  fill: none;
  stroke-linecap: round;
}

.rove-path {
  stroke: url(#roveGrad);
  stroke-width: 2.5;
}

.rove-glow {
  stroke: var(--gold-soft);
  stroke-width: 10;
  opacity: 0.35;
  filter: url(#roveGlow);
}

.rove-head {
  fill: #fff;
  stroke: var(--gold);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px var(--gold-soft));
}

main > section {
  position: relative;
  z-index: 2;
}

/* --- reveal on scroll ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}

.reveal.in,
.is-ready .hero .reveal {
  opacity: 1;
  transform: none;
}

/* --- hero ---------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--pad) 80px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
}

.hero-title .line:nth-child(2) > span {
  transition-delay: 0.12s;
}

.is-ready .hero-title .line > span {
  transform: none;
}

.lead {
  max-width: 34ch;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stage {
  position: relative;
  height: min(620px, 70vh);
}

.float {
  position: absolute;
  will-change: transform;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.is-ready .float {
  opacity: 1;
}

.float .card {
  animation: bob 7s ease-in-out infinite;
}

.f1 { top: 2%; left: 6%; transition-delay: 0.3s; }
.f2 { top: 55%; left: -8%; transition-delay: 0.45s; }
.f2 .card { animation-delay: -2s; }
.f3 { top: 18%; right: 0; transition-delay: 0.6s; }
.f3 .card { animation-delay: -4s; }
.f4 { bottom: -2%; right: 4%; transition-delay: 0.75s; }
.f4 .card { animation-delay: -1s; }

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

.card {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

.card-label {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.heat-mini {
  display: grid;
  grid-template-columns: repeat(14, 12px);
  gap: 3px;
}

.heat-mini i,
.heat i {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--blue-1);
}

.mini-ask {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.ask-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
}

.mini-bars {
  width: 230px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
}

.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(var(--blue-3), var(--blue-5));
  transform-origin: bottom;
  animation: grow 1.4s var(--ease) both;
}

.bars i.gold {
  background: linear-gradient(var(--gold-soft), var(--gold));
}

.bars i:nth-child(2) { animation-delay: 0.1s; }
.bars i:nth-child(3) { animation-delay: 0.2s; }
.bars i:nth-child(4) { animation-delay: 0.3s; }
.bars i:nth-child(5) { animation-delay: 0.4s; }

@keyframes grow {
  from {
    transform: scaleY(0);
  }
}

.mini-msg {
  display: grid;
  gap: 8px;
  width: 260px;
}

.bubble {
  justify-self: start;
  max-width: 90%;
  padding: 9px 14px;
  border-radius: 16px 16px 16px 4px;
  background: #eef1f5;
  font-size: 0.9rem;
  line-height: 1.35;
}

.bubble.me {
  justify-self: end;
  border-radius: 16px 16px 4px 16px;
  background: var(--navy);
  color: #fff;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 2px rgb(27 58 95 / 30%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--navy);
  animation: cue 2s var(--ease) infinite;
}

@keyframes cue {
  60% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* --- noise → rhythm (pinned) ---------------------------------------------------- */

.noise {
  height: 260vh;
  background: var(--night);
  color: #fff;
}

.noise-pin {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.noise-copy {
  position: absolute;
  top: clamp(90px, 13vh, 140px);
  left: 50%;
  z-index: 3;
  width: min(880px, 90vw);
  text-align: center;
  transform: translateX(-50%);
}

.noise h2 {
  display: grid;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

/* Both phrases share one grid cell, so the heading is as tall as the longer one. */
.noise-a,
.noise-b {
  grid-area: 1 / 1;
  display: block;
  transition: none;
}

.noise-a {
  opacity: calc(1 - var(--p2, 0));
  transform: translateY(calc(var(--p2, 0) * -30px));
  filter: blur(calc(var(--p2, 0) * 8px));
}

.noise-b {
  opacity: var(--p2, 0);
  transform: translateY(calc((1 - var(--p2, 0)) * 30px));
  filter: blur(calc((1 - var(--p2, 0)) * 8px));
}

.noise-sub {
  max-width: 46ch;
  margin: 24px auto 0;
  color: rgb(255 255 255 / 68%);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: var(--p2, 0);
}

.noise-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Each piece of noise travels from its scattered spot (--x, --y, --r) to a tidy
   grid position (--gx, --gy) as --p goes 0 → 1, and calms from paper to UI. */
.chip-noise {
  position: absolute;
  --tx: calc((var(--gx) - 1) * 250px);
  --ty: calc((var(--gy) - 0.5) * 120px + 21vh);
  width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transform: translate(
      calc(var(--x) * var(--xs, 1) * (1 - var(--e, 0)) + var(--tx) * var(--e, 0)),
      calc(var(--y) * (1 - var(--e, 0)) + var(--ty) * var(--e, 0))
    )
    rotate(calc(var(--r) * (1 - var(--e, 0))))
    scale(calc(1 - var(--e, 0) * 0.1));
  box-shadow: 0 20px 40px -18px rgb(0 0 0 / 50%);
  background: color-mix(in srgb, #fff calc(var(--e, 0) * 100%), var(--bg));
  will-change: transform;
}

.chip-noise.paper {
  --bg: #f4efe1;
  display: grid;
  gap: 4px;
  font-family: "Bradley Hand", "Segoe Print", cursive;
}

.chip-noise.sticky {
  --bg: #ffe68a;
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-size: 1.05rem;
}

.chip-noise.sticky.alt {
  --bg: #ffd0a8;
}

.chip-noise.ping {
  --bg: #fff;
}

.chip-noise.sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  --bg: #cfd6de;
}

.chip-noise.sheet span {
  padding: 6px 8px;
  background: #fff;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

/* When calm, every piece becomes the same clean card. */
.noise.is-calm .chip-noise {
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.6s var(--ease);
}

/* --- features ------------------------------------------------------------------ */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 160px) var(--pad);
}

.feature h2 {
  margin-bottom: 22px;
}

.feature-copy > p:not(.eyebrow) {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.feature-dark {
  max-width: none;
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  background: var(--night);
  color: #fff;
}

.feature-dark .eyebrow {
  color: var(--gold-soft);
  opacity: 1;
}

.feature-dark .feature-copy > p:not(.eyebrow),
.feature-dark .ticks li {
  color: rgb(255 255 255 / 72%);
}

.feature-paper {
  max-width: none;
  padding-inline: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  background: #fff;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 600;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 4px, rgb(212 175 90 / 22%) 5px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.card-head span {
  color: var(--ink-soft);
}

.note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.92rem;
}

/* heatmap */
.heat {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 4px;
}

.heat i {
  transform: scale(0.2);
  opacity: 0;
  transition: transform 0.7s var(--spring), opacity 0.5s var(--ease), background 0.6s;
  transition-delay: var(--dl, 0s);
}

.heat-card.in-view .heat i,
.feature-visual.in .heat i {
  transform: none;
  opacity: 1;
}

.heat i.off {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.heat-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.heat-legend i {
  flex: 0 0 120px;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-5));
}

/* ask */
.ask-card {
  background: #fff;
  color: var(--ink);
}

.ask-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgb(212 175 90 / 60%), 0 10px 30px -14px rgb(212 175 90 / 60%);
  font-weight: 600;
  min-height: 56px;
}

.ask-text {
  min-height: 1.5em;
}

.caret {
  width: 2px;
  height: 1.3em;
  margin-left: -8px;
  background: var(--gold);
  animation: blink 1.06s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin: 16px 0;
}

.ask-chips span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  animation: pop 0.55s var(--spring) both;
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.ask-bars {
  display: grid;
  gap: 10px;
  min-height: 170px;
}

.ask-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr 3rem;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.ask-row b {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue-3), var(--blue-5));
  transform: scaleX(var(--w));
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}

.ask-row.top b {
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
}

.ask-row.enter b {
  transform: scaleX(0);
}

.ask-row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ask-caption {
  min-height: 1.5em;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* flow */
.flow {
  width: 100%;
  height: auto;
}

.flow .ribbon {
  fill: none;
  stroke-linecap: butt;
  opacity: 0.4;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.6s var(--ease), opacity 0.4s;
  transition-delay: var(--dl, 0s);
}

.flow .ribbon.gold {
  opacity: 0.95;
}

.flow .node {
  rx: 4;
}

.flow text {
  font: 700 12px "Plus Jakarta Sans", sans-serif;
  fill: var(--ink);
}

.in .flow .ribbon {
  stroke-dashoffset: 0;
}

.flow-tags {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.flow-tags .up {
  color: #1f7a1f;
}

.flow-tags .down {
  color: #a4531c;
}

/* phone */
.phone {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  padding: 14px;
  border-radius: 48px;
  background: #0b1626;
  box-shadow: 0 50px 90px -40px rgb(15 34 56 / 70%), inset 0 0 0 2px #2b3b50;
  transform: rotate(-3deg);
  transition: transform 1.2s var(--ease);
}

.feature-visual.in .phone {
  transform: rotate(0deg);
}

.phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  border-radius: 20px;
  background: #0b1626;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: var(--paper);
}

.phone-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 64px 18px 20px;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.phone-state.is-on {
  opacity: 1;
  transform: none;
}

.phone-state.is-leaving {
  opacity: 0;
  transform: translateX(-24px) scale(0.98);
}

.phone-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.phone-sub {
  margin-top: -8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.chat {
  display: grid;
  gap: 10px;
}

.phone-state.is-on .chat .bubble {
  animation: pop 0.6s var(--spring) both;
}

.phone-state.is-on .chat .bubble:nth-child(2) { animation-delay: 0.5s; }
.phone-state.is-on .chat .bubble:nth-child(3) { animation-delay: 1.1s; }

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slots span {
  padding: 10px 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--spring);
}

.phone-state.is-on .slots .pick {
  animation: pick 0.5s var(--spring) 0.9s both;
}

@keyframes pick {
  to {
    background: var(--navy);
    color: #fff;
    transform: scale(1.06);
  }
}

.booked,
.valid {
  font-weight: 800;
  color: #1f7a1f;
  opacity: 0;
}

.phone-state.is-on .booked,
.phone-state.is-on .valid {
  animation: pop 0.6s var(--spring) 1.4s both;
}

.idcard {
  perspective: 900px;
}

.idcard-inner {
  position: relative;
  height: 250px;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}

.phone-state.is-on .idcard-inner {
  animation: flip 1.1s var(--ease) 1s both;
}

@keyframes flip {
  to {
    transform: rotateY(180deg);
  }
}

.id-front,
.id-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  backface-visibility: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}

.id-front {
  background: linear-gradient(160deg, #fff 55%, #eef3fa);
}

.id-front b {
  width: 100%;
  margin: -18px -18px 6px;
  padding: 10px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, var(--navy), #2a5a8f);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
}

.id-front .avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #2a5a8f);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}

.id-front small,
.id-back small {
  color: var(--ink-soft);
}

.id-back {
  background: #fff;
  transform: rotateY(180deg);
}

.qr {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}

/* leave */
.pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(12 163 12 / 12%);
  color: #1f7a1f !important;
  font-weight: 700;
  font-size: 0.8rem;
}

.cover-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cover-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i) * 0.12s + 0.2s);
}

.cover-list em {
  background: none;
  color: #1f7a1f;
  font-weight: 700;
  white-space: nowrap;
}

.feature-visual.in .cover-list li {
  opacity: 1;
  transform: none;
}

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

.roles {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 160px) var(--pad);
  text-align: center;
}

.roles h2 {
  max-width: 16ch;
  margin: 0 auto 50px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.role {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transition: transform 0.6s var(--spring), box-shadow 0.4s var(--ease), opacity 0.9s var(--ease) var(--d, 0s);
}

.role:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgb(21 35 58 / 40%), 0 0 0 1px var(--line);
}

.role-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 1.2rem;
}

.role h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.role p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.facts span {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- cta: understated ---------------------------------------------------------------- */

.cta {
  padding: clamp(96px, 16vh, 170px) var(--pad);
  background: var(--night);
  color: #fff;
}

.cta-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 85%);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.cta-brand .brand-mark circle:first-child {
  fill: #fff;
}

.cta h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-lead {
  max-width: 46ch;
  color: rgb(255 255 255 / 66%);
  font-size: 1.05rem;
}

.btn-light {
  margin-top: 8px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 30px -14px rgb(0 0 0 / 60%);
}

.foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* --- phones and tablets ------------------------------------------------------------ */

@media (max-width: 900px) {
  .nav nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: left;
  }

  .hero-stage {
    height: 420px;
    margin-top: 10px;
  }

  .f1 { top: 0; left: 0; }
  .f2 { display: none; }
  .f3 { top: 8%; right: 0; transform: scale(0.85); }
  .f4 { bottom: 0; right: 0; }

  .feature,
  .feature-dark,
  .feature-paper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Text first, picture second, on every feature. */
  .feature .feature-copy {
    order: 1;
  }

  .feature .feature-visual {
    order: 2;
  }

  .role-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Phones settle the pieces into two columns of three. */
  .chip-noise {
    --xs: 0.62;
    --tx: calc((var(--mx) - 0.5) * 168px);
    --ty: calc((var(--my) - 1) * 92px + 20vh);
    width: 156px;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .ask-row {
    grid-template-columns: 7rem 1fr 2.6rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .mini-bars {
    width: 190px;
  }

  .mini-msg {
    width: 220px;
  }

  .heat-mini {
    grid-template-columns: repeat(12, 10px);
  }
}

/* --- people who asked for less motion get a calm, complete page --------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .float,
  .hero-title .line > span,
  .heat i,
  .cover-list li {
    opacity: 1 !important;
    transform: none !important;
  }

  .noise {
    height: auto;
  }

  .noise-pin {
    position: relative;
    height: auto;
    padding: 120px var(--pad);
  }

  .noise-field,
  .rove {
    display: none;
  }

  .noise-a {
    display: none;
  }

  .noise-b,
  .noise-sub {
    position: static;
    opacity: 1;
    transform: none;
    filter: none;
  }
}


/* ============================================================================
   Liquid glass (v2): for things that float over content -- the nav, hero cards,
   controls, tooltips. Not for reading surfaces, where it would hurt legibility.
   ========================================================================== */

.glass {
  --gx: 50%;
  --gy: 0%;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at var(--gx) var(--gy), rgb(255 255 255 / 55%), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 58%), rgb(255 255 255 / 26%));
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: url(#liquidGlass) blur(22px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 95%),
    inset 0 -1px 0 rgb(255 255 255 / 30%),
    inset 1px 0 0 rgb(255 255 255 / 35%),
    inset -1px 0 0 rgb(255 255 255 / 35%),
    0 0 0 1px rgb(21 35 58 / 7%),
    0 18px 44px -20px rgb(21 35 58 / 35%);
}

/* A thin bright rim, like light caught in the edge of the glass. */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgb(255 255 255 / 90%), rgb(255 255 255 / 5%) 40%, rgb(255 255 255 / 5%) 60%, rgb(255 255 255 / 60%));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav.glass {
  background:
    radial-gradient(80% 140% at var(--gx) var(--gy), rgb(255 255 255 / 55%), transparent 60%),
    linear-gradient(160deg, rgb(247 245 240 / 70%), rgb(247 245 240 / 45%));
}

.nav.glass.on-dark {
  background:
    radial-gradient(80% 140% at var(--gx) var(--gy), rgb(255 255 255 / 16%), transparent 60%),
    linear-gradient(160deg, rgb(27 58 95 / 55%), rgb(15 34 56 / 40%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 0 0 1px rgb(255 255 255 / 10%), 0 18px 44px -20px rgb(0 0 0 / 60%);
}

.btn-ghost.glass {
  color: var(--navy);
}

/* Ambient light behind the hero, so the glass has colour to bend. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 -20vw;
  z-index: -1;
  background:
    radial-gradient(30vw 30vw at 72% 30%, rgb(109 167 236 / 38%), transparent 70%),
    radial-gradient(22vw 22vw at 88% 70%, rgb(242 212 138 / 45%), transparent 70%),
    radial-gradient(26vw 26vw at 58% 78%, rgb(27 58 95 / 18%), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero {
  position: relative;
  isolation: isolate;
}

@keyframes drift {
  to {
    transform: translate3d(-3vw, 2vh, 0) scale(1.06);
  }
}

.float .card.glass {
  color: var(--ink);
}

/* Hero bars say their value when pointed at. */
.bars i {
  position: relative;
  cursor: default;
}

.bars i::after {
  content: attr(data-v);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s, transform 0.3s var(--spring);
  pointer-events: none;
}

.bars i:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bars i:hover {
  filter: brightness(1.12);
}

/* Floating tooltip for the heatmap (glass). */
.tip {
  position: fixed;
  z-index: 60;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px)) scale(0.96);
  transition: opacity 0.18s, transform 0.3s var(--spring);
}

.tip.is-on {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 12px)) scale(1);
}

/* Heatmap: pointable days. */
.heat {
  cursor: crosshair;
  touch-action: pan-y;
}

.heat i.is-pick {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  transform: scale(1.25) !important;
  position: relative;
  z-index: 1;
}

.heat:focus-visible {
  outline-offset: 6px;
}

.heat-readout,
.flow-readout {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

/* Grade flow: hovering focuses one band or ribbon. */
.flow .ribbon,
.flow rect {
  cursor: pointer;
}

.flow.is-focus .ribbon {
  opacity: 0.1;
}

.flow.is-focus .ribbon.is-lit {
  opacity: 0.9;
}

/* Ask: example questions to try. */
.ask-try {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.ask-try button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font: 600 0.8rem/1.3 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--spring);
}

.ask-try button:hover {
  background: #ece7da;
  transform: translateY(-1px);
}

.ask-try button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

/* Families: glass tabs above the phone, over ambient light. */
.feature-paper .feature-visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.feature-paper .feature-visual::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 30% 20%, rgb(109 167 236 / 35%), transparent 70%),
    radial-gradient(35% 30% at 75% 70%, rgb(242 212 138 / 45%), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.feature-paper {
  isolation: isolate;
}

.phone-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
}

.phone-tabs button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 0.85rem/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s;
}

.phone-tabs button[aria-selected="true"] {
  background: rgb(255 255 255 / 85%);
  color: var(--navy);
  box-shadow: 0 4px 14px -6px rgb(21 35 58 / 35%), inset 0 1px 0 #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}


/* Footer credit. */
.powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.powered img {
  width: 16px;
  height: 16px;
  opacity: 0.75;
}

.powered b {
  color: var(--ink);
  font-weight: 700;
}


/* ============================================================================
   v3: glass across the feature cards, with ambient light behind every visual
   ========================================================================== */

/* Coloured light behind each feature's picture, for the glass to bend. */
.feature .feature-visual {
  position: relative;
}

.feature .feature-visual::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background:
    radial-gradient(38% 34% at 22% 24%, rgb(109 167 236 / 34%), transparent 70%),
    radial-gradient(34% 30% at 80% 78%, rgb(242 212 138 / 40%), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

.feature {
  isolation: isolate;
}

.feature-dark .feature-visual::before {
  background:
    radial-gradient(40% 36% at 25% 25%, rgb(57 135 229 / 55%), transparent 70%),
    radial-gradient(34% 30% at 78% 80%, rgb(212 175 90 / 45%), transparent 70%);
}

/* Reading surfaces keep enough white to stay crisp. */
.card.glass {
  background:
    radial-gradient(120% 90% at var(--gx) var(--gy), rgb(255 255 255 / 60%), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 80%), rgb(255 255 255 / 62%));
}

.feature-dark .card.glass {
  background:
    radial-gradient(120% 90% at var(--gx) var(--gy), rgb(255 255 255 / 55%), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 88%), rgb(255 255 255 / 74%));
}

.role.glass {
  background:
    radial-gradient(120% 90% at var(--gx) var(--gy), rgb(255 255 255 / 60%), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 55%));
}

.roles {
  position: relative;
  isolation: isolate;
}

.roles::before {
  content: "";
  position: absolute;
  inset: 20% 0 10%;
  z-index: -1;
  background:
    radial-gradient(30% 50% at 20% 60%, rgb(109 167 236 / 26%), transparent 70%),
    radial-gradient(26% 46% at 82% 50%, rgb(242 212 138 / 34%), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

.glass-row span {
  background: linear-gradient(160deg, rgb(255 255 255 / 75%), rgb(255 255 255 / 45%));
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 95%), 0 0 0 1px rgb(21 35 58 / 8%), 0 10px 24px -16px rgb(21 35 58 / 30%);
}

/* Buttons: a glassy highlight on the solid fills. */
.btn:not(.glass) {
  background-image: linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 0%) 55%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 10px 30px -12px rgb(27 58 95 / 60%);
}

.btn-light:not(.glass) {
  background-color: #fff;
  background-image: linear-gradient(180deg, #fff, #eef2f7);
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px -14px rgb(0 0 0 / 60%);
}

.ask-try button,
.ask-chips span {
  background: linear-gradient(160deg, rgb(247 245 240 / 95%), rgb(236 231 218 / 80%));
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(21 35 58 / 6%);
}

/* ============================================================================
   The landing: the gold line finishes by drawing the footer logo's arc
   ========================================================================== */

.foot {
  position: relative;
  padding-top: 72px;
}

.foot-mark {
  position: absolute;
  top: 10px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
}

.foot-mark .brand-mark {
  width: 44px;
  height: 44px;
}

.foot-mark .brand-mark circle:first-child {
  fill: var(--navy);
  transform-origin: 16px 16px;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.9s var(--spring), opacity 0.5s var(--ease);
}

.foot-mark .foot-arc {
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.15s;
}

.foot-mark .foot-dot {
  transform-origin: 16px 12px;
  transform: scale(0);
  transition: transform 0.7s var(--spring) 0.35s;
}

.foot-mark.is-landed .brand-mark circle:first-child {
  opacity: 1;
  transform: none;
}

.foot-mark.is-landed .foot-arc {
  opacity: 1;
}

.foot-mark.is-landed .foot-dot {
  transform: none;
}

.foot-mark.is-landed::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(212 175 90 / 60%);
  animation: ring 1.4s var(--ease) 0.2s both;
  pointer-events: none;
}

@keyframes ring {
  from {
    transform: scale(0.7);
    opacity: 1;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foot-mark .brand-mark circle:first-child,
  .foot-mark .foot-arc,
  .foot-mark .foot-dot {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================================
   Capabilities: everything the platform does, filterable by area
   ========================================================================== */

.caps {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 14vh, 150px) var(--pad);
}

.caps::before {
  content: "";
  position: absolute;
  inset: 25% -10% 5%;
  z-index: -1;
  background:
    radial-gradient(30% 40% at 15% 40%, rgb(109 167 236 / 26%), transparent 70%),
    radial-gradient(28% 36% at 85% 70%, rgb(242 212 138 / 34%), transparent 70%),
    radial-gradient(30% 30% at 50% 100%, rgb(27 58 95 / 12%), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.caps-head {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.caps-head h2 {
  margin-bottom: 16px;
}

.caps-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.caps-lead span {
  color: var(--navy);
  font-weight: 800;
}

.caps-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 5px;
  border-radius: 999px;
}

.caps-tabs button {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 0.88rem/1 inherit;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s, box-shadow 0.3s;
}

.caps-tabs button[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), 0 6px 16px -8px rgb(27 58 95 / 70%);
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cap {
  padding: 20px 20px 22px;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.5s var(--ease) calc(var(--i) * 0.035s), transform 0.7s var(--ease) calc(var(--i) * 0.035s), box-shadow 0.3s;
}

.cap.glass {
  background:
    radial-gradient(120% 90% at var(--gx) var(--gy), rgb(255 255 255 / 60%), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 80%), rgb(255 255 255 / 58%));
}

.caps-grid.is-in .cap {
  opacity: 1;
  transform: none;
}

.cap:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 95%),
    0 0 0 1px rgb(21 35 58 / 8%),
    0 24px 50px -26px rgb(21 35 58 / 45%);
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 1rem;
}

.cap h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.cap p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .caps-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cap {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================================
   v4: engineered presentation -- numbered labels, spec tables, line icons,
   a monospace face for labels and figures, and a proper phone layout
   ========================================================================== */

:root {
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

.icon,
.role-icon,
.cap-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Numbered section labels in monospace, instead of shouty eyebrows. */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label span {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--gold-soft);
  letter-spacing: 0;
}

.label-center {
  justify-content: center;
}

.feature-dark .label {
  color: rgb(255 255 255 / 60%);
}

.feature-dark .label span {
  background: rgb(255 255 255 / 12%);
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  letter-spacing: -0.045em;
}

.feature h2,
.caps h2,
.roles h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.noise h2 {
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  font-weight: 750;
  line-height: 1.12;
}

/* Spec tables: key facts, precise and scannable. */
.spec {
  display: grid;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.spec > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 34%) 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt {
  color: var(--ink-soft);
  font: 500 0.78rem/1.5 var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-top: 2px;
}

.spec dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.97rem;
}

.feature-dark .spec,
.feature-dark .spec > div {
  border-color: rgb(255 255 255 / 12%);
}

.feature-dark .spec dt {
  color: rgb(255 255 255 / 55%);
}

.feature-dark .spec dd {
  color: #fff;
}

/* A strip of facts under the hero, in monospace. */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 34px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-soft);
  font: 500 0.8rem/1.4 var(--mono);
}

.spec-strip b {
  color: var(--navy);
}

/* Figures and small labels in cards use the monospace face too. */
.card-label,
.card-head span,
.heat-readout,
.flow-readout,
.ask-caption,
.ask-row span:last-child,
.slots span,
.cover-list span {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.ask-icon {
  font: 700 0.95rem/1 var(--mono);
}

.role-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  padding: 9px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-soft);
}

.cap-icon {
  color: var(--gold-soft);
}

.cap-icon svg {
  width: 20px;
  height: 20px;
}

.cap h3 {
  font-size: 1rem;
}

/* The navigation's menu button and sheet (phones and small tablets). */
.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-btn .icon {
  width: 22px;
  height: 22px;
}

.nav-links .nav-demo {
  display: none;
}

@media (max-width: 900px) {
  .nav {
    inset: 10px 10px auto;
    padding: 6px 6px 6px 16px;
  }

  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .nav .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 22px;
    background: rgb(247 245 240 / 92%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--line), 0 24px 50px -24px rgb(21 35 58 / 45%);
    color: var(--ink);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.4s var(--ease);
  }

  .nav.is-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav .nav-links a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 1rem;
    opacity: 1;
  }

  .nav .nav-links .nav-demo {
    display: block;
    margin-top: 6px;
    background: var(--navy);
    color: #fff;
    text-align: center;
  }
}

/* ---------------------------------------------------------------- phones ---- */

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    padding: 104px var(--pad) 56px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
  }

  .lead {
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .spec-strip {
    gap: 6px 14px;
    font-size: 0.74rem;
  }

  /* The hero cards stop floating: two tidy cards side by side, then the chat. */
  .hero-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: auto;
  }

  .hero-stage .float {
    position: static;
    transform: none !important;
  }

  .float .card {
    animation: none;
  }

  .f2,
  .f4 {
    display: none;
  }

  .mini-heat,
  .mini-bars {
    width: 100%;
    height: 100%;
    padding: 14px;
  }

  .heat-mini {
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
  }

  .heat-mini i:nth-child(n + 51) {
    display: none;
  }

  .bars {
    height: 70px;
    gap: 6px;
  }

  .feature {
    gap: 28px;
    padding: 72px var(--pad);
  }

  .spec > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .card {
    padding: 16px;
  }

  .heat {
    gap: 2px;
  }

  .phone {
    width: min(280px, 76vw);
  }

  .phone-tabs button {
    padding: 10px 14px;
  }

  .noise-copy {
    top: 88px;
  }

  .caps {
    padding: 72px var(--pad);
  }

  .caps-tabs {
    margin-inline: calc(var(--pad) * -1);
    width: auto;
    max-width: none;
    padding-inline: var(--pad);
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .caps-tabs::after {
    display: none;
  }

  .caps-tabs button {
    padding: 10px 14px;
    background: rgb(255 255 255 / 70%);
    box-shadow: 0 0 0 1px var(--line);
  }

  .caps-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cap {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    padding: 14px 16px;
  }

  .cap-icon {
    grid-row: span 2;
    margin: 0;
  }

  .roles {
    padding: 72px var(--pad);
  }

  .role {
    padding: 18px;
  }

  .foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================================
   The finale: when the line lands, the close turns to frosted glass over a
   single gold bloom and a quiet backdrop of the page's own data patterns
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(242 212 138 / 55%), rgb(212 175 90 / 22%) 45%, transparent 72%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  transition: opacity 1.4s var(--ease), transform 2.2s var(--ease);
}

.cta-sparks {
  position: absolute;
  top: 50%;
  left: 50%;
}

.cta-sparks i {
  position: absolute;
  width: 3px;
  height: 14px;
  margin: -7px 0 0 -1.5px;
  border-radius: 3px;
  background: linear-gradient(var(--gold-soft), transparent);
  opacity: 0;
  transform: rotate(var(--a)) translateY(0);
}

.cta-patterns {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-patterns * {
  opacity: 0;
  transition: opacity 1.6s var(--ease) var(--dl, 0s);
}

.cta-patterns rect {
  fill: rgb(242 212 138 / 22%);
}

.cta-patterns path {
  fill: none;
  stroke: rgb(158 197 244 / 26%);
  stroke-linecap: round;
}

.cta-patterns .trend {
  stroke: rgb(242 212 138 / 38%);
  stroke-width: 1.5;
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 6vw, 56px) clamp(22px, 5vw, 56px);
  border-radius: 28px;
  transition: background 1.2s var(--ease), box-shadow 1.2s var(--ease), -webkit-backdrop-filter 1.2s, backdrop-filter 1.2s;
}

/* Final state. */
.cta.is-final .cta-bloom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cta.is-final .cta-patterns * {
  opacity: 1;
}

.cta.is-final .cta-inner {
  background: linear-gradient(160deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 4%));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 30%),
    inset 0 -1px 0 rgb(255 255 255 / 6%),
    0 0 0 1px rgb(255 255 255 / 10%),
    0 40px 80px -40px rgb(0 0 0 / 60%);
}

.cta.is-final .cta-sparks i {
  animation: spark 1.3s var(--ease) var(--dl) both;
}

@keyframes spark {
  0% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-10px) scaleY(0.4);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta .cta-bloom {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  .cta .cta-patterns * {
    opacity: 1;
  }

  .cta-sparks {
    display: none;
  }
}


/* Desktop hero: the headline holds two lines. */
@media (min-width: 901px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .hero-title {
    font-size: clamp(2.8rem, 4.9vw, 4.6rem);
  }
}


/* ============================================================================
   v5: a hero that fits one screen, and more pronounced liquid glass
   ========================================================================== */

/* Every size in the hero follows the window's height as well as its width, so the
   whole hero sits in one screen, down to 1280 x 720. */
@media (min-width: 901px) {
  .hero {
    min-height: 100svh;
    align-content: center;
    padding-block: clamp(84px, 11vh, 118px) clamp(28px, 5vh, 60px);
  }

  .hero .label {
    margin-bottom: clamp(10px, 2vh, 18px);
  }

  .hero-title {
    font-size: min(clamp(2.8rem, 4.9vw, 4.6rem), 8.6vh);
  }

  .lead {
    max-width: 30ch;
    margin-top: clamp(12px, 2.4vh, 24px);
    font-size: min(1.2rem, 2.35vh);
  }

  .hero-actions {
    margin-top: clamp(16px, 3.2vh, 30px);
  }

  .hero .btn {
    padding: min(15px, 1.9vh) 24px;
  }

  .spec-strip {
    margin-top: clamp(16px, 3.2vh, 30px);
    padding-top: clamp(10px, 1.6vh, 16px);
  }

  .hero-stage {
    height: min(560px, 64vh);
  }

  .mini-bars .bars {
    height: min(110px, 12vh);
  }
}

/* Glass, more pronounced: more of the light behind shows through, with a crisper
   rim, a brighter top edge and a stronger bend where the browser allows it. */
.glass {
  background:
    radial-gradient(120% 90% at var(--gx) var(--gy), rgb(255 255 255 / 50%), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 42%), rgb(255 255 255 / 14%));
  -webkit-backdrop-filter: blur(18px) saturate(210%);
  backdrop-filter: blur(18px) saturate(210%);
  backdrop-filter: url(#liquidGlass) blur(18px) saturate(210%);
  box-shadow:
    inset 0 1.5px 0 rgb(255 255 255 / 100%),
    inset 0 -1px 0 rgb(255 255 255 / 40%),
    inset 1px 0 0 rgb(255 255 255 / 45%),
    inset -1px 0 0 rgb(255 255 255 / 45%),
    inset 0 0 22px rgb(255 255 255 / 18%),
    0 0 0 1px rgb(21 35 58 / 6%),
    0 22px 50px -24px rgb(21 35 58 / 38%);
}

/* Stronger ambient light in the hero so the glass cards have colour to bend. */
.hero::before {
  background:
    radial-gradient(28vw 28vw at 70% 28%, rgb(109 167 236 / 55%), transparent 70%),
    radial-gradient(20vw 20vw at 88% 72%, rgb(242 212 138 / 60%), transparent 70%),
    radial-gradient(22vw 22vw at 56% 80%, rgb(57 135 229 / 26%), transparent 70%);
}

/* Spec tables sit on glass panels over each feature's light. */
.spec.glass {
  margin-top: 26px;
  padding: 4px 18px;
  border: 0;
  border-radius: 18px;
}

.spec.glass > div:last-child {
  border-bottom: 0;
}

.feature-copy {
  position: relative;
}

.feature-copy::before {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -6%;
  width: 60%;
  height: 55%;
  z-index: -1;
  background:
    radial-gradient(50% 50% at 30% 60%, rgb(109 167 236 / 26%), transparent 72%),
    radial-gradient(40% 45% at 80% 40%, rgb(242 212 138 / 32%), transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

/* Dark sections: dark glass. */
.feature-dark .spec.glass {
  background:
    radial-gradient(120% 90% at var(--gx) var(--gy), rgb(255 255 255 / 14%), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 0 0 1px rgb(255 255 255 / 8%), 0 22px 50px -24px rgb(0 0 0 / 60%);
}

.feature-dark .feature-copy::before {
  background:
    radial-gradient(50% 50% at 30% 60%, rgb(57 135 229 / 45%), transparent 72%),
    radial-gradient(40% 45% at 80% 40%, rgb(212 175 90 / 38%), transparent 72%);
}

/* Noise to rhythm: the paper settles into glass tiles on navy, over soft light. */
.noise-pin::before {
  content: "";
  position: absolute;
  inset: 30% 10% 0;
  background:
    radial-gradient(30% 40% at 30% 60%, rgb(57 135 229 / calc(var(--e, 0) * 55%)), transparent 70%),
    radial-gradient(28% 36% at 70% 55%, rgb(212 175 90 / calc(var(--e, 0) * 45%)), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.chip-noise {
  background: color-mix(in srgb, rgb(255 255 255 / 14%) calc(var(--e, 0) * 100%), var(--bg));
  color: color-mix(in srgb, #fff calc(var(--e, 0) * 100%), var(--ink));
  -webkit-backdrop-filter: blur(calc(var(--e, 0) * 16px)) saturate(180%);
  backdrop-filter: blur(calc(var(--e, 0) * 16px)) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / calc(var(--e, 0) * 35%)),
    inset 0 0 0 1px rgb(255 255 255 / calc(var(--e, 0) * 10%)),
    0 20px 40px -18px rgb(0 0 0 / 50%);
}

.chip-noise.sheet {
  background: color-mix(in srgb, rgb(255 255 255 / 14%) calc(var(--e, 0) * 100%), var(--bg));
}

.chip-noise.sheet span {
  background: color-mix(in srgb, transparent calc(var(--e, 0) * 100%), #fff);
}

/* Glass tabs and chips get the same rim. */
.phone-tabs.glass,
.caps-tabs.glass {
  padding: 5px;
}
