/* JARVIS OS web store.
   White, as in the owner's reference: a light page, one floating white sheet with a 26px radius,
   near-black type, hairlines instead of borders, and the app's red (aston-martin.css --red) as the
   only colour. The canvases read their ink from --ink, so the dust and the orb follow the theme. */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --page: #E9E8E5;          /* behind the sheet */
  --bg: #FAFAF8;            /* the sheet itself */
  --card: #FFFFFF;
  --card-2: #F3F3F1;
  --line: rgba(11, 11, 13, 0.08);
  --line-2: rgba(11, 11, 13, 0.15);
  --text: #0B0B0D;
  --on-text: #FFFFFF;       /* type on a solid --text surface */
  --ink: #0B0B0D;           /* the dust and the orb */
  --muted: rgba(11, 11, 13, 0.64);
  --dim: rgba(11, 11, 13, 0.40);
  --red: #EF4444;           /* the app's red (aston-martin.css --red), the only colour on the page */
  --red-soft: rgba(239, 68, 68, 0.16);

  --radius-app: 26px;
  --radius-card: 18px;
  --pill: 9999px;
  --gutter: clamp(20px, 5vw, 76px);

  /* Motion. One ease for everything that enters, one for everything that moves with the pointer. */
  --ease-in-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-reveal: 900ms;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The whole site lives on one sheet, the way the app's window does. */
.sheet {
  background: var(--bg);
  border-radius: var(--radius-app);
  border: 1px solid var(--line);
  margin: clamp(8px, 1.4vw, 22px);
  overflow: hidden;
  overflow: clip;                 /* clips like hidden, but lets sticky children stick */
  position: relative;
  box-shadow: 0 30px 80px rgba(20, 20, 30, 0.08);
}

/* ---------------------------------------------------------------- top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(250, 250, 248, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms var(--ease-in-out), background 400ms var(--ease-in-out);
}
.bar.stuck { border-bottom-color: var(--line); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
}
.wordmark .dot { color: var(--red); }

.bar-nav { margin-left: auto; display: flex; gap: 26px; }
.bar-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  position: relative;
  transition: color 300ms var(--ease-in-out);
}
.bar-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -5px;
  height: 1px;
  background: var(--text);
  transition: right 420ms var(--ease-in-out);
}
.bar-nav a:hover { color: var(--text); }
.bar-nav a:hover::after { right: 0; }

.bar-cta {
  padding: 8px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: background 320ms var(--ease-in-out), color 320ms var(--ease-in-out);
}
.bar-cta:hover { background: var(--text); color: var(--on-text); }

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

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(50px, 8vh, 110px) var(--gutter);
  overflow: hidden;
}

/* the dust field: the app's signature, drawn here at full-section size */
.dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy { position: relative; z-index: 2; max-width: 740px; }

.eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 7.4vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
}
.display span { display: block; }
.display.sm { font-size: clamp(30px, 4.6vw, 54px); }

.lede {
  margin: 26px 0 0;
  max-width: 480px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--muted);
}

.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--pill);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line-2);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: transform 420ms var(--ease-in-out), background 320ms var(--ease-in-out),
              color 320ms var(--ease-in-out), border-color 320ms var(--ease-in-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--text); color: var(--on-text); border-color: var(--text); }
.btn-solid:hover { background: var(--red); border-color: var(--red); }
.btn-ghost:hover { border-color: var(--text); }

.scrollhint {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  width: 1px;
  height: 56px;
  background: var(--line-2);
  overflow: hidden;
}
.scrollhint span {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(-100%);
  animation: trickle 2.6s var(--ease-in-out) infinite;
}
@keyframes trickle {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* ---------------------------------------------------------------- marquee */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  gap: 8px;
  overflow: hidden;
}
.marquee-row {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  will-change: transform;
}
.marquee-row.dim { color: var(--dim); }
.marquee-row i { font-style: normal; color: var(--red); font-size: 0.4em; }
.marquee-row em { font-style: normal; color: var(--dim); font-weight: 300; }

/* ---------------------------------------------------------------- mission */

.mission { padding: clamp(80px, 13vh, 150px) var(--gutter); }

/* A paragraph that fills in word by word as the section is scrolled through. */
.fill {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 38px);
  line-height: 1.34;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 20ch;
  max-width: 900px;
}
.fill .w { color: var(--dim); transition: color 260ms linear; }
.fill .w.on { color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 34px 26px;
  margin-top: clamp(50px, 8vh, 90px);
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13px; color: var(--dim); }

.sec-head { padding: 0 var(--gutter); margin-bottom: 44px; }
.sec-note { margin: 18px 0 0; color: var(--dim); font-size: 14.5px; max-width: 520px; }

/* ---------------------------------------------------------------- plans */

.plans { padding: clamp(70px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 0 var(--gutter);
}
.loading { color: var(--dim); font-size: 14px; }

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 520ms var(--ease-in-out), border-color 420ms var(--ease-in-out);
}
.plan:hover { transform: translateY(-6px); border-color: var(--line-2); }
.plan h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0; }
.plan .price {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.04em;
  margin: 18px 0 2px;
  font-variant-numeric: tabular-nums;
}
.plan .per { font-size: 12.5px; color: var(--dim); }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 9px; }
.plan li { font-size: 13.5px; color: var(--muted); }
.plan .btn { margin-top: auto; }

/* ---------------------------------------------------------------- cta */

.cta { padding: clamp(80px, 14vh, 170px) var(--gutter); border-top: 1px solid var(--line); position: relative; }
.huge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 15vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin: 0;
}
.huge span { display: block; }
.huge span:last-child { padding-left: 0.22em; }

/* the panel that lies over the big letters, as in the reference */
.cta-card {
  position: relative;
  z-index: 2;
  margin-top: -2.2em;
  margin-left: auto;
  width: min(330px, 100%);
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  padding: 24px;
}
.cta-card p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.cta-card .btn { width: 100%; }

.foot {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}
/* the landing page's footer: three rows, not one */
.foot:has(.foot-top) { display: grid; gap: 22px; padding-top: 44px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; }
.foot-top p { margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-copy { margin: 0; }
.foot-dot { color: var(--red); }

/* ---------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(233, 232, 229, 0.72);
  backdrop-filter: blur(10px);
  animation: fade 320ms var(--ease-in-out);
}
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.modal-card {
  position: relative;
  width: min(380px, 100%);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-app);
  padding: 30px 26px 26px;
  text-align: center;
  animation: rise 480ms var(--ease-in-out);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.modal-card h3 { font-family: var(--font-display); font-weight: 500; margin: 0; font-size: 20px; }
.modal-sub { margin: 6px 0 22px; color: var(--dim); font-size: 13.5px; }
.modal-x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; color: var(--dim);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-x:hover { color: var(--text); }
.qr {
  width: 208px; height: 208px;
  margin: 0 auto 18px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
}
.qr svg { width: 100%; height: 100%; }
.modal-hint { font-size: 12.5px; color: var(--dim); margin: 0 0 18px; }
.modal-state { font-size: 12.5px; color: var(--dim); margin: 16px 0 0; }
.modal-state.done { color: var(--text); }
.modal-state .code {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.22em;
  color: var(--text);
  margin-top: 8px;
}

/* ---------------------------------------------------------------- reveal */

/* Everything enters the same way: out of blur, from below. One rule, so the page reads as one piece. */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(14px);
  transition: opacity var(--t-reveal) var(--ease-in-out),
              transform var(--t-reveal) var(--ease-in-out),
              filter var(--t-reveal) var(--ease-in-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 860px) {
  .bar-nav { display: none; }
  .bar-cta { margin-left: auto; }
  .split { grid-template-columns: 1fr; }
  .cta-card { margin-top: 36px; margin-left: 0; }
  .huge span:last-child { padding-left: 0; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .scrollhint span { animation: none; transform: none; }
  .marquee-row { transform: none !important; }
  .btn:hover, .tile:hover, .plan:hover { transform: none; }
  .modal, .modal-card { animation: none; }
}

/* ---------------------------------------------------------------- documents (privacy, terms, 404)
   Same sheet, same type; a single readable column. */
.doc {
  max-width: 760px;
  padding: clamp(56px, 10vh, 110px) var(--gutter) clamp(70px, 12vh, 130px);
}
.doc .eyebrow { margin-bottom: 18px; }
.doc h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 18px;
}
.doc .lede { margin: 0 0 46px; }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 42px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 8px; }
.doc li::marker { color: var(--red); }
.doc a { color: var(--text); text-underline-offset: 3px; }
.doc .updated { font-size: 12.5px; color: var(--dim); margin-top: 54px; }
.doc .btn { margin-top: 30px; }
.foot a { color: var(--dim); text-decoration: none; transition: color 260ms var(--ease-in-out); }
.foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- questions */
.faq { padding: clamp(70px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.faq-list { padding: 0 var(--gutter); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 4px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
  transition: transform 420ms var(--ease-in-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); font-size: 15px; max-width: 680px; }
.faq details[open] p { animation: faqIn 480ms var(--ease-in-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); filter: blur(6px); } }
.faq a { color: var(--text); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- mobile menu */
.bar-menu {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.bar-menu span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--text);
  transition: transform 420ms var(--ease-in-out), top 420ms var(--ease-in-out);
}
.bar-menu span:first-child { top: 15px; }
.bar-menu span:last-child { top: 21px; }
.bar-menu[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.bar-menu[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: grid;
  padding: 10px var(--gutter) 22px;
  background: var(--bg);                 /* solid: the hero's big type must not show through */
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(20, 20, 30, 0.1);
  animation: menuIn 420ms var(--ease-in-out);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 19px;
}
.mobile-nav a:last-child { border-bottom: 0; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 860px) {
  .bar-menu { display: block; }
  .bar-cta { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .faq details[open] p { animation: none; }
}

/* =================================================================== the landing, second pass
   The composition follows the owner's reference (a floating 3D object with the product talking
   over it, a stepped capability track, giant half-cut numerals, a team rail, a sticky counter)
   in the owner's own look: near-black sheet, white type, and the app's red as the only colour.
   Every motion means something: the orb is JARVIS thinking, the counter is time to first use,
   the lit agent is the one at work. */

/* ---------------------------------------------------------------- hero stage */
.hero-copy { grid-column: 1; }
.chips {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chips li {
  font-size: 12px; color: var(--muted);
  padding: 7px 13px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--card);
}

.stage {
  grid-column: 2;
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 620px;
  justify-self: center;
}
.orb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.float {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(20, 20, 30, 0.1);
  opacity: 0;
  translate: 0 18px;
  transition: opacity 900ms var(--ease-in-out), translate 900ms var(--ease-in-out);
}
.float.in { opacity: 1; translate: 0 0; }
.f-chat { left: -4%; bottom: 6%; width: min(330px, 70%); padding: 16px 16px 14px; transition-delay: 500ms; }
.f-stat { right: 2%; top: 8%; padding: 14px 18px 16px; min-width: 128px; transition-delay: 800ms; }
.f-state {
  right: 6%; bottom: 34%; padding: 9px 14px;
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; color: var(--muted); border-radius: var(--pill);
  transition-delay: 1100ms;
}
.f-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.f-head b { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em; }
.f-head .live {
  font-size: 11px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.f-head .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.msg {
  margin: 0 0 8px; font-size: 13px; line-height: 1.45;
  padding: 9px 12px; border-radius: 13px; min-height: 1.45em;
}
.msg.me { background: rgba(11, 11, 13, 0.05); margin-left: 16%; border-bottom-right-radius: 4px; }
.msg.ai { border: 1px solid var(--line); margin-right: 6%; border-bottom-left-radius: 4px; color: var(--muted); }
.msg.wait { visibility: hidden; }
.msg.typing::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--red); animation: blink 0.9s steps(1) infinite; }
.f-ask {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--dim);
  opacity: 0; transform: translateY(6px);
  transition: opacity 600ms var(--ease-in-out), transform 600ms var(--ease-in-out);
}
.f-ask.in { opacity: 1; transform: none; }
.f-ask span { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.f-ask span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.4s ease-in-out infinite; }
.f-ask i {
  font-style: normal; padding: 5px 12px; border-radius: var(--pill);
  border: 1px solid var(--line-2); color: var(--text);
}
.f-ask i:first-of-type { background: var(--text); color: var(--on-text); border-color: var(--text); }
.f-ask.yes i:first-of-type { background: var(--red); border-color: var(--red); color: #fff; }
@keyframes blink { 50% { opacity: 0.25; } }

.f-label, .f-sub { display: block; font-size: 11px; color: var(--dim); }
.f-stat b {
  display: block; font-family: var(--font-display); font-weight: 500;
  font-size: 40px; letter-spacing: -0.04em; line-height: 1.05; margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--red); animation: ping 1.8s var(--ease-in-out) infinite;
}
@keyframes ping { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }

/* ---------------------------------------------------------------- capabilities */
.caps { padding: clamp(70px, 12vh, 140px) var(--gutter) clamp(60px, 10vh, 110px); border-top: 1px solid var(--line); }
.caps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.caps-nav { display: flex; align-items: center; gap: 10px; }
.caps-count { font-family: var(--font-display); font-size: 14px; color: var(--dim); margin-right: 12px; font-variant-numeric: tabular-nums; }
.caps-count b { color: var(--text); font-weight: 500; }
.round {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background 320ms var(--ease-in-out), color 320ms var(--ease-in-out), transform 420ms var(--ease-in-out);
}
.round:hover { background: var(--text); color: var(--on-text); }
.round:active { transform: scale(0.94); }

.caps-body {
  position: relative;
  display: grid;
  margin: clamp(46px, 8vh, 80px) 0 clamp(40px, 7vh, 70px) auto;
  max-width: 760px;
  min-height: 190px;
}
.cap {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(22px); filter: blur(12px);
  transition: opacity 700ms var(--ease-in-out), transform 700ms var(--ease-in-out), filter 700ms var(--ease-in-out);
  pointer-events: none;
}
.cap.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.cap.out { transform: translateY(-22px); }
.cap h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 18px;
}
.cap p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); max-width: 600px; }

.caps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  border-top: 1px solid var(--line);
}
.caps-track::before {                       /* the red line runs to the active stop */
  content: ""; position: absolute; left: 0; top: -1px; height: 1px;
  width: var(--fill, 0%); background: var(--red);
  transition: width 700ms var(--ease-in-out);
}
.stop {
  position: relative; text-align: left;
  background: none; border: 0; padding: 18px 10px 0 0; cursor: pointer;
  color: var(--dim); font: inherit; font-size: 11.5px; line-height: 1.35;
  transition: color 320ms var(--ease-in-out);
}
.stop::before {
  content: ""; position: absolute; left: 0; top: -4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: background 320ms var(--ease-in-out), border-color 320ms var(--ease-in-out), transform 420ms var(--ease-in-out);
}
.stop.on, .stop:hover { color: var(--text); }
.stop.on::before { background: var(--red); border-color: var(--red); transform: scale(1.5); }
.stop.done::before { background: var(--red); border-color: var(--red); }
.stop .bar-t {                               /* the autoplay timer next to the active stop */
  position: absolute; left: 0; right: 14px; top: -1px; height: 1px; background: var(--text);
  transform-origin: left; transform: scaleX(0);
}
.stop.on .bar-t { animation: timer var(--cap-time, 6s) linear forwards; }
.caps.paused .stop.on .bar-t { animation-play-state: paused; }
@keyframes timer { to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- advantages */
.adv { padding: clamp(70px, 12vh, 140px) var(--gutter); border-top: 1px solid var(--line); }
.adv-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 44px; }
.adv-head .eyebrow { margin: 0; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.adv-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 22px 22px 0; min-height: 360px;
  display: flex; flex-direction: column;
  rotate: var(--rx, 0deg) 1 0 0;
  transition: border-color 420ms var(--ease-in-out), background 420ms var(--ease-in-out);
}
.adv-card:hover { border-color: var(--line-2); background: var(--card-2); }
.adv-card::after {                            /* a red glow that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 120%), var(--red-soft), transparent 70%);
  opacity: 0; transition: opacity 420ms var(--ease-in-out);
}
.adv-card:hover::after { opacity: 1; }
.pill {
  align-self: flex-start; font-size: 11px; color: var(--muted);
  padding: 5px 11px; border-radius: var(--pill); border: 1px solid var(--line-2);
}
.adv-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; margin: 28px 0 10px; }
.adv-card p { margin: 0; color: var(--muted); font-size: 14px; max-width: 34ch; }
.adv-no {
  margin-top: auto;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(110px, 13vw, 190px); letter-spacing: -0.07em; line-height: 0.8;
  transform: translateY(18%);                /* cut by the card's lower edge, as in the reference */
  color: transparent; -webkit-text-stroke: 1px rgba(11, 11, 13, 0.2);
  transition: color 520ms var(--ease-in-out), -webkit-text-stroke-color 520ms var(--ease-in-out), transform 700ms var(--ease-in-out);
}
.adv-card:hover .adv-no { color: var(--text); -webkit-text-stroke-color: transparent; transform: translateY(8%); }

/* ---------------------------------------------------------------- team */
.team { padding: clamp(70px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.team-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 30px; }
.team-rail {
  display: flex; gap: 12px;
  padding: 4px var(--gutter) 24px;
  overflow-x: auto; scrollbar-width: none;
}
.team-rail::-webkit-scrollbar { display: none; }
.agent {
  flex: 0 0 168px; min-height: 300px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  cursor: default; outline: none;
  transition: flex-basis 700ms var(--ease-in-out), background 500ms var(--ease-in-out), border-color 500ms var(--ease-in-out);
}
.agent.on { flex-basis: 330px; background: linear-gradient(160deg, rgba(239, 68, 68, 0.12), var(--card) 62%); border-color: rgba(239, 68, 68, 0.45); }
.agent:focus-visible { border-color: var(--text); }
.glyph {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  border: 1px solid var(--line-2); color: var(--text);
  transition: background 500ms var(--ease-in-out), border-color 500ms var(--ease-in-out);
}
.agent.on .glyph { background: var(--red); border-color: var(--red); color: #fff; }
.agent h3 { font-family: var(--font-display); font-weight: 500; font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.agent em { font-style: normal; font-size: 12px; color: var(--dim); }
.agent p {
  margin: auto 0 0; font-size: 13.5px; color: var(--muted); min-width: 290px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 400ms var(--ease-in-out), transform 400ms var(--ease-in-out);
}
.agent.on p { opacity: 1; transform: none; transition-delay: 300ms; }
.team-hint { padding: 0 var(--gutter); margin: 0; font-size: 12px; color: var(--dim); }

/* ---------------------------------------------------------------- the first ten minutes */
.first {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 90px);
  padding: clamp(70px, 12vh, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.first-l { position: sticky; top: 90px; align-self: start; }
.clock { overflow: hidden; font-size: clamp(110px, 16vw, 230px); line-height: 1.02; margin: 10px 0 18px; }
.clock b {
  display: block; font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.07em; font-variant-numeric: tabular-nums;
  transition: transform 420ms var(--ease-in-out), opacity 420ms var(--ease-in-out), filter 420ms var(--ease-in-out);
}
.clock b.swap { transform: translateY(-30%); opacity: 0; filter: blur(8px); }
.first-note { color: var(--dim); font-size: 14px; max-width: 32ch; margin: 0; }
.first-list { list-style: none; margin: 0; padding: 0; }
.first-list li {
  position: relative; padding: 30px 0 34px 30px; border-bottom: 1px solid var(--line);
  min-height: 34vh; display: flex; flex-direction: column; justify-content: center;
}
.first-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4px;
  border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg);
  transition: background 420ms var(--ease-in-out), border-color 420ms var(--ease-in-out);
}
.first-list li.now::before { background: var(--red); border-color: var(--red); }
.first-list h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; margin: 0 0 10px; color: var(--dim); transition: color 420ms var(--ease-in-out); }
.first-list li.now h3 { color: var(--text); }
.first-list p { margin: 0; color: var(--muted); font-size: 15px; max-width: 48ch; }

/* ---------------------------------------------------------------- how to buy */
.howbuy { padding: 54px var(--gutter) 0; }
.howbuy h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 0 0 18px; }
.howbuy ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.howbuy li { font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.howbuy li b { display: block; font-family: var(--font-display); font-weight: 500; color: var(--red); font-size: 13px; margin-bottom: 6px; }
.plan.pop { border-color: rgba(239, 68, 68, 0.5); background: linear-gradient(170deg, rgba(239, 68, 68, 0.14), var(--card) 55%); }
.plan .tag { align-self: flex-start; font-size: 11px; padding: 4px 10px; border-radius: var(--pill); background: var(--red); color: #fff; margin-bottom: 14px; }

/* ---------------------------------------------------------------- install */
.install { padding: clamp(70px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.os {
  margin: 0 var(--gutter);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 34px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px 46px;
}
.os-tabs { grid-column: 1 / -1; position: relative; display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--pill); }
.os-tabs button {
  position: relative; z-index: 1; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 13.5px; padding: 8px 18px; border-radius: var(--pill);
  transition: color 320ms var(--ease-in-out);
}
.os-tabs button[aria-selected="true"] { color: var(--on-text); }
.os-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--pill);
  background: var(--text); transition: transform 520ms var(--ease-in-out), width 520ms var(--ease-in-out);
}
.os-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; align-content: start; }
.os-steps[hidden] { display: none; }
.os-steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 14.5px; color: var(--muted); animation: faqIn 520ms var(--ease-in-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.os-steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-size: 12px; color: var(--red); letter-spacing: 0.08em;
}
.os-steps b, .extra b { color: var(--text); font-weight: 500; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em;
  padding: 2px 7px; border-radius: 6px; background: rgba(11, 11, 13, 0.06); color: var(--text);
}
.req { margin: 0; display: grid; align-content: start; }
.req div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.req div:first-child { padding-top: 0; }
.req dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.req dd { margin: 0; font-size: 14px; color: var(--muted); }
.extra-h { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 46px var(--gutter) 16px; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 var(--gutter); align-items: start; }
.extra { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); transition: border-color 420ms var(--ease-in-out); }
.extra[open], .extra:hover { border-color: var(--line-2); }
.extra summary { list-style: none; cursor: pointer; padding: 20px 50px 20px 20px; position: relative; display: grid; gap: 4px; }
.extra summary::-webkit-details-marker { display: none; }
.extra summary span { font-size: 12.5px; color: var(--dim); }
.extra summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
              linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
  transition: transform 420ms var(--ease-in-out);
}
.extra[open] summary::after { transform: rotate(45deg); }
.extra ol { margin: 0; padding: 0 20px 20px 38px; display: grid; gap: 9px; font-size: 13.5px; color: var(--muted); }
.extra[open] ol { animation: faqIn 480ms var(--ease-in-out); }
.faq-more { padding: 26px var(--gutter) 0; margin: 0; }
.faq-more a { color: var(--text); font-family: var(--font-display); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 3px; }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 1180px) {
  .bar-nav { gap: 18px; }
  .bar-nav a:nth-child(5), .bar-nav a:nth-child(6) { display: none; }
}
@media (max-width: 1080px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv-card { min-height: 280px; }
  .extras { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .stage { grid-column: 1; max-width: 460px; margin-top: 10px; }
  .f-chat { left: 0; width: 84%; }
  .f-state { bottom: 40%; }
  .stop { font-size: 0; padding-top: 14px; }
  .first { grid-template-columns: 1fr; }
  .first-l { position: relative; top: 0; }
  .first-list li { min-height: 0; padding: 22px 0 24px 28px; }
  .clock { font-size: 96px; }
  .os { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .float, .f-ask, .cap, .clock b, .os-steps li { transition: none; animation: none; opacity: 1; transform: none; translate: none; filter: none; }
  .stop.on .bar-t, .pulse::after, .f-ask span::before, .msg.typing::after { animation: none; }
  .agent, .agent p, .adv-no { transition: none; }
}

/* ---------------------------------------------------------------- guide: contents beside the text */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); padding-left: var(--gutter); }
.guide .doc { padding-left: 0; }
.toc { position: sticky; top: 80px; align-self: start; display: grid; gap: 2px; padding-top: clamp(56px, 10vh, 110px); }
.toc a { color: var(--dim); text-decoration: none; font-size: 13.5px; padding: 6px 0 6px 14px; border-left: 1px solid var(--line); transition: color 260ms var(--ease-in-out), border-color 260ms var(--ease-in-out); }
.toc a:hover, .toc a.on { color: var(--text); border-left-color: var(--red); }
.doc b { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; padding-left: 0; } .toc { display: none; } .guide .doc { padding-left: var(--gutter); } }

/* the capability number, giant and hollow, on the empty left of the track */
.caps { position: relative; }
.cap-big {
  position: absolute; left: var(--gutter); top: 50%;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(140px, 19vw, 300px); letter-spacing: -0.07em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(11, 11, 13, 0.16);
  translate: 0 -40%;
  pointer-events: none;
  transition: opacity 260ms var(--ease-in-out), transform 520ms var(--ease-in-out), filter 260ms var(--ease-in-out);
}
.cap-big.swap { opacity: 0; transform: translateY(14px); filter: blur(6px); }
@media (max-width: 860px) { .cap-big { display: none; } }
@media (prefers-reduced-motion: reduce) { .cap-big { transition: none; } }

/* the closing word runs across the sheet in one line and the contact card floats over its middle */
@media (min-width: 861px) {
  .cta { display: grid; place-items: center; }
  .cta .huge { font-size: clamp(60px, 13.2vw, 230px); white-space: nowrap; text-align: center; }
  .cta .huge span { display: inline-block; }
  .cta .huge span:last-child { padding-left: 0; }
  .cta-card {
    position: absolute; left: 50%; top: 50%; margin: 0;
    translate: -50% -50%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(20, 20, 30, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
  }
}

/* ---------------------------------------------------------------- monthly / yearly */
.plans-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.bill { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--card); }
.bill button {
  position: relative; z-index: 1; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--muted); padding: 9px 18px; border-radius: var(--pill);
  display: inline-flex; align-items: center; gap: 8px; transition: color 320ms var(--ease-in-out);
}
.bill button[aria-checked="true"] { color: var(--on-text); }
.bill em { font-style: normal; font-size: 11px; color: var(--red); transition: color 320ms var(--ease-in-out); }
.bill button[aria-checked="true"] em { color: #FCA5A5; }
.bill-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--pill);
  background: var(--text); transition: transform 520ms var(--ease-in-out), width 520ms var(--ease-in-out);
}
.plan .price .amt { font-size: 46px; letter-spacing: -0.05em; }
.plan .price small { font-size: 15px; color: var(--dim); letter-spacing: 0; font-family: var(--font-sans); }
.plan.now { transition: transform 520ms var(--ease-in-out), border-color 420ms var(--ease-in-out); }  /* no fade-in, hover still eases */
.plan .roll { display: inline-block; animation: roll 560ms var(--ease-in-out) both; animation-delay: var(--d, 0ms); }
.plan .per.roll { display: block; }
@keyframes roll { from { opacity: 0; transform: translateY(45%); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .plan .roll { animation: none; } }
