/* Vantis landing
   Reading: public landing for clients and trainers.
   Dials: DESIGN_VARIANCE 7 / MOTION_INTENSITY 6 / VISUAL_DENSITY 4
   Shape: buttons are pills. Panels and the hero stage are 22px.
   Accent lock: #5543c4 in light, #7d6be8 in dark. No second accent.
   z-index: field 1, runway video 2, nav 20, nav panel 30, skip 40. */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius: 22px;
  --nav-h: 64px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ink: #17181f;
  --ink-text: #f4f5f7;
  --measure: 1180px;
}

html[data-theme="light"] {
  --bg: #edf1f4;
  --surface: #edf1f4;
  --text: #17181f;
  --text-2: #4e5360;
  --text-3: #5c6372;
  --accent: #5543c4;
  --line: rgba(13, 39, 80, 0.1);
  --clay-hi: #ffffff;
  --clay-lo: rgba(13, 39, 80, 0.16);
  --clay-raised: -18px -18px 28px var(--clay-hi), 18px 18px 28px var(--clay-lo);
  --clay-raised-sm: -8px -8px 16px var(--clay-hi), 8px 8px 16px var(--clay-lo);
  --clay-press: inset -10px -10px 16px var(--clay-hi), inset 10px 10px 16px rgba(13, 39, 80, 0.14);
  --ink-cell: #17181f;
  --ink-cell-text: #f4f5f7;
  --ink-cell-muted: #b7bcc8;
  --photo-well: #f7f8fa;
  --stage: #e3e8ed;
}

html[data-theme="dark"] {
  --bg: #2a2e35;
  --surface: #2a2e35;
  --text: #f2f2f6;
  --text-2: #c5cad6;
  --text-3: #a8aebc;
  --accent: #7d6be8;
  --line: rgba(255, 255, 255, 0.1);
  --clay-hi: rgba(255, 255, 255, 0.07);
  --clay-lo: rgba(0, 0, 0, 0.42);
  --clay-raised: -14px -14px 26px var(--clay-hi), 14px 14px 26px var(--clay-lo);
  --clay-raised-sm: -7px -7px 14px var(--clay-hi), 7px 7px 14px var(--clay-lo);
  --clay-press: inset -8px -8px 14px var(--clay-hi), inset 8px 8px 14px rgba(0, 0, 0, 0.35);
  --ink-cell: #171a21;
  --ink-cell-text: #f4f5f7;
  --ink-cell-muted: #b7bcc8;
  --photo-well: #f4f5f7;
  --stage: #22262d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: color-mix(in srgb, var(--accent) 42%, var(--text-3)) transparent; }

::selection {
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  color: var(--text);
}

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button, summary { font-family: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: var(--ink-text);
  padding: 8px 14px;
  border-radius: 999px;
}

.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn,
.nav-fold summary {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 4px;
  cursor: pointer;
  list-style: none;
}

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

.nav-fold { display: none; position: relative; }

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 180px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--clay-raised);
  display: grid;
  gap: 4px;
}

.nav-panel a {
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--ink-text);
  box-shadow: var(--clay-raised-sm);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--clay-raised-sm);
}

.btn:focus-visible,
.theme-btn:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.nav-panel a:focus-visible,
.nav-fold summary:focus-visible,
.feature-copy a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  min-height: calc(100dvh - var(--nav-h));
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 40px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

.hero-copy { max-width: 640px; padding-top: 8px; }

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.lede {
  margin: 16px 0 0;
  max-width: 38ch;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-stage {
  position: relative;
  justify-self: end;
  width: min(100%, calc((100dvh - 140px) * 0.82));
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stage);
  box-shadow: var(--clay-raised);
  outline: 1px solid var(--line);
}

.hero-field,
.hero-runway {
  position: absolute;
  inset: 0;
}

.hero-runway {
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

.hero-runway[hidden] { display: none; }

.hero-field { z-index: 1; }

.hero-stage.is-video .hero-field {
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}

.hero-stage.is-video .orbit-slot span,
.hero-stage.is-video .field-vial {
  animation-play-state: paused;
}

.orbit-slot {
  position: absolute;
  left: 50%;
  top: 44%;
  translate: -50% -50%;
  border-radius: 50%;
}

.orbit-slot span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: color-mix(in srgb, var(--accent) 70%, transparent);
  will-change: transform;
  animation: spin 28s linear infinite;
}

.orbit-a { width: 86%; aspect-ratio: 1; }
.orbit-b { width: 64%; aspect-ratio: 1; }
.orbit-b span { animation-duration: 19s; animation-direction: reverse; }
.orbit-c { width: 42%; aspect-ratio: 1; }
.orbit-c span { animation-duration: 13s; }

.puck {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 34%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--clay-raised-sm);
  display: grid;
  place-items: center;
}

.field-mark {
  width: 74%;
  height: auto;
}

.field-vial {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  right: 9%;
  bottom: 9%;
  background: var(--photo-well);
  box-shadow: var(--clay-raised-sm);
  animation: idle 7.5s var(--ease-in-out) infinite alternate;
  will-change: transform;
}

.hero-copy > * {
  animation: rise 680ms var(--ease-out) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0ms; }
.hero-copy > *:nth-child(2) { animation-delay: 60ms; }
.hero-copy > *:nth-child(3) { animation-delay: 120ms; }
.hero-copy > *:nth-child(4) { animation-delay: 180ms; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 88px 40px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 18ch;
}

.section-copy {
  margin: 12px 0 0;
  max-width: 46ch;
  color: var(--text-2);
}

.bento {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.cell {
  border-radius: var(--radius);
  padding: 28px;
  min-height: 0;
}

.cell h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.cell p {
  margin: 8px 0 0;
  color: var(--text-2);
  max-width: 36ch;
}

.cell a {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.cell-app {
  grid-row: 1 / span 2;
  background: var(--surface);
  box-shadow: var(--clay-raised);
  display: flex;
  flex-direction: column;
}

.cell-app img {
  width: min(220px, 60%);
  margin: 8px auto 20px;
}

.cell-trainer {
  background: var(--ink-cell);
  color: var(--ink-cell-text);
  outline: 1px solid var(--line);
}

.cell-trainer p { color: var(--ink-cell-muted); }

.cell-trainer a { color: var(--ink-cell-text); }

.cell-store {
  background: var(--photo-well);
  color: #17181f;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.cell-store img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f7f8fa;
}

.cell-store div { padding: 8px 22px 22px; }

.cell-store p { color: #4e5360; }

.cell-store a { color: #17181f; }

html[data-theme="dark"] .cell-store {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .cell-store img { background: #f7f8fa; }

html[data-theme="dark"] .cell-store p { color: var(--text-2); }

html[data-theme="dark"] .cell-store a,
html[data-theme="dark"] .cell-store h3 { color: var(--text); }

/* Feature sections: one surface per scroll.
   Phone bezels are rounder than the 22px panels because they are hardware.
   Desk frames use the page radius. */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 56px;
  align-items: start;
}

.feature-flip {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.feature-copy {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  max-width: 62ch;
}

.feature-flip .device-phone { order: 1; }
.feature-flip .feature-copy { order: 2; justify-self: end; }

.feature-copy p {
  margin: 16px 0 0;
  color: var(--text-2);
  max-width: 62ch;
  line-height: 1.7;
}

.feature-copy .section-title { max-width: 19ch; text-wrap: balance; }
.feature-copy .feature-lead { font-size: 1.2rem; line-height: 1.55; color: var(--text); }
.feature-details { margin: 28px 0 0; display: grid; gap: 22px; }
.feature-details div { padding-top: 18px; border-top: 1px solid var(--line); }
.feature-details dt { font-size: 1rem; font-weight: 750; letter-spacing: -.015em; color: var(--text); }
.feature-details dd { margin: 6px 0 0; font-size: .97rem; line-height: 1.65; color: var(--text-2); max-width: 60ch; }
.feature-copy .feature-note { margin-top: 24px; font-size: .85rem; line-height: 1.6; }
.close .close-note { margin-top: 20px; font-size: .9rem; line-height: 1.6; max-width: 55ch; }

.feature-copy a {
  display: inline-flex;
  margin-top: 22px;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
  min-height: 44px;
  align-items: center;
}

.feature-stage { display: block; }

.feature-stage .feature-copy {
  position: static;
  margin-top: 40px;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.feature-stage .feature-details { margin-top: 0; }

.feature-rail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.feature-rail .feature-copy { position: static; }

.device-phone {
  width: min(320px, 100%);
  justify-self: center;
  padding: 12px 11px 16px;
  border-radius: 44px;
  background: #17181f;
  box-shadow: var(--clay-raised);
  outline: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.device-phone::before,
.device-phone::after {
  content: "";
  position: absolute;
  right: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: #3a3f49;
}

.device-phone::before { top: 108px; height: 26px; }
.device-phone::after { top: 148px; height: 52px; }

.device-desk {
  padding: 12px;
  border-radius: var(--radius);
  background: #17181f;
  box-shadow: var(--clay-raised);
  outline: 1px solid rgba(255, 255, 255, 0.14);
}

.device-screen {
  overflow: hidden;
  background: var(--photo-well);
}

.device-phone .device-screen { border-radius: 32px; }
.device-desk .device-screen { border-radius: 12px; }

.device-screen img {
  width: 100%;
  height: auto;
  background: var(--photo-well);
}

.hold {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hold-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

.hold-list li { min-width: 0; }

.hold-list strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.hold-list span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.98rem;
}

.hold figure { margin: 0; }

.hold img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--photo-well);
  box-shadow: var(--clay-raised);
}

.hold figcaption {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.close {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 20px 40px 96px;
}

.close h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 12ch;
}

.close p {
  margin: 14px 0 0;
  color: var(--text-2);
  max-width: 36ch;
}

.close .btn { margin-top: 22px; }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 40px 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.foot nav {
  display: flex;
  gap: 18px;
}

.foot a { text-decoration: none; font-weight: 600; color: var(--text-2); }

.foot p { margin: 0; color: var(--text-3); font-size: 0.92rem; }

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-1px); }
  .btn-ghost:hover { transform: translateY(-1px); }
  .nav-links a:hover,
  .foot a:hover,
  .cell a:hover,
  .feature-copy a:hover { text-decoration: underline; }
}

@media (max-width: 900px) {
  .nav {
    padding: 0 16px;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .brand { gap: 8px; white-space: nowrap; }
  .brand img { width: 32px; height: 32px; }
  .nav-links { display: none; }
  .nav-fold { display: block; }
  .nav-end { margin-left: auto; gap: 8px; flex-wrap: nowrap; }
  .nav .btn { min-height: 40px; padding: 0 12px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 8px 20px 24px;
    align-content: center;
  }
  .hero-stage {
    justify-self: stretch;
    width: 100%;
    aspect-ratio: 16 / 11;
    max-height: 38dvh;
  }
  .wrap, .close, .foot { padding-left: 20px; padding-right: 20px; }
  .wrap { padding-top: 56px; padding-bottom: 56px; }
  .bento, .hold, .hold-list, .feature-split, .feature-flip, .feature-rail { grid-template-columns: 1fr; }
  .feature-stage { display: grid; gap: 32px; }
  .feature-stage .feature-copy { grid-template-columns: 1fr; gap: 8px; margin-top: 0; order: -1; }
  .feature-stage .feature-details { margin-top: 12px; }
  .feature { row-gap: 36px; }
  .feature-copy .section-title { font-size: clamp(1.8rem,6vw,2.5rem); }
  .feature-copy .feature-lead { font-size: 1.12rem; }
  .feature-copy { position: static; justify-self: stretch; }
  .feature-flip .device-phone,
  .feature-flip .feature-copy { order: 0; }
  .feature-rail .feature-copy { order: -1; }
  .device-phone { margin-inline: auto; }
  .device-desk { max-width: 100%; }
  .device-desk .device-screen { overflow: hidden; }
  .device-desk .device-screen img { width: 100%; max-width: 100%; height: auto; }
  .cell-app { grid-row: auto; }
  .cell-store img { height: 200px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *,
  .orbit-slot span,
  .field-vial,
  .js .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes idle {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Pastel runner hero: artwork blends directly into the page. */
html[data-theme="light"]{--bg:#f1f4fa;--surface:#f1f4fa;--text:#352147;--text-2:#68637f}
.hero{min-height:0;padding-top:44px;padding-bottom:44px;gap:24px}
.hero h1{font-size:clamp(2.5rem,4.7vw,4.4rem)}
.hero-detail{color:var(--text-2);font-size:15px;line-height:1.6;max-width:43ch;margin:16px 0 24px}
.hero-features h3{font-size:16px;margin:0 0 4px;color:var(--text)}
.hero-features p{font-size:13px;line-height:1.45;margin:0;color:var(--text-2)}
.hero-stage{width:100%;aspect-ratio:3/4;max-height:none;background:none;box-shadow:none;outline:none;border-radius:0;overflow:hidden}
.hero-stage .welcome-art{height:100%;margin:0}
.hero-stage .welcome-art img{object-position:center;object-fit:cover}
.hero-stage .welcome-motion{position:absolute;bottom:12px;right:12px;z-index:4;margin:0;color:var(--text-2)}
html[data-theme="dark"] .hero-stage .welcome-art img{mix-blend-mode:normal}
@media(max-width:759px){.hero{padding:24px 24px 32px;gap:0}.hero-stage{width:100%;max-width:480px;justify-self:center;order:2}.hero-copy{display:contents}.hero-features{gap:12px;order:3}.hero .cta-row{margin:20px 0;order:5}.hero h1{font-size:2.7rem;order:0}.hero .lede{order:1}.hero-detail{order:4;margin-bottom:0}}
