:root {
  --font-sans: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* Canvas and elevation */
  --background: #0a0a0a;
  --surface: #171716;
  --surface-2: #20201f;
  --raised: #282826;
  --inset: #101010;

  /* Ink */
  --foreground: #f5f4ef;
  --ink-soft: #d8d7d0;
  --ink-muted: #9b9a92;
  --ink-faint: #696963;

  /* Borders */
  --line: rgba(245, 244, 239, 0.1);
  --line-strong: rgba(245, 244, 239, 0.18);

  /* Brand and labeled accents */
  --brand: #d6f577;
  --accent: #d6f577;
  --accent-text: #d6f577;
  --accent-ink: #121408;
  --accent-hover: #e0fa91;
  --accent-dim: rgba(214, 245, 119, 0.14);
  --accent-line: rgba(214, 245, 119, 0.42);
  --accent-line-soft: rgba(214, 245, 119, 0.18);
  --accent-glow: rgba(214, 245, 119, 0.1);
  --accent-glow-strong: rgba(214, 245, 119, 0.2);
  --blue: #6db9f2;
  --amber: #f2c94c;
  --coral: #ff9f8f;

  /* Status */
  --success-bg: #1a2112;
  --warn: #f2d791;
  --warn-line: rgba(242, 215, 145, 0.25);
  --warn-bg: #191509;
  --danger: #ff9f8f;
  --danger-soft: #ffb2a6;
  --danger-bg: #251310;
  --warmup: oklch(75% 0.183 55.934);
  --warmup-ink: #171008;

  /* Data visualisation */
  --chart-grid: rgba(255, 255, 255, 0.06);
  --chart-hover: rgba(255, 255, 255, 0.04);
  --chart-muted: #9b9a92;
  --chart-tooltip: #232322;
  --chart-tooltip-ink: #f5f4ef;
  --chart-grid-faint: rgba(255, 255, 255, 0.07);
  --chart-panel-fill: rgba(255, 255, 255, 0.018);
  --chart-series: #d6f577;
  --chart-series-fill: rgba(214, 245, 119, 0.24);
  --chart-blue-glow: rgba(109, 185, 242, 0.09);
  --muscle-border: #6b6b68;
  --muscle-fill: #292927;
  --muscle-stroke: #434340;
  --muscle-highlight: #d7fb64;
  --muscle-highlight-stroke: #efffb8;
  --muscle-hot-stroke: #ffd6a2;
  --muscle-cool-stroke: #c9e7dd;

  /* Theme-aware presentation */
  --page-glow: rgba(214, 245, 119, 0.075);
  --page-grid: rgba(255, 255, 255, 0.018);
  --surface-subtle: rgba(255, 255, 255, 0.018);
  --surface-hover: rgba(255, 255, 255, 0.035);
  --surface-glass: rgba(10, 10, 10, 0.82);
  --surface-glass-strong: rgba(23, 23, 22, 0.96);
  --surface-inset-alpha: rgba(10, 10, 10, 0.34);
  --surface-selected: rgba(10, 10, 10, 0.48);
  --frame-dash: rgba(245, 244, 239, 0.075);
  --shadow-phone: 0 42px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-float: 0 18px 40px rgba(0, 0, 0, 0.34);
  --shadow-menu: 0 24px 70px rgba(0, 0, 0, 0.52);
  --phone-frame: #242422;
  --phone-screen: #0a0a0a;
  --phone-speaker: rgba(255, 255, 255, 0.16);
  --final-ink: #10110d;
  --final-ink-muted: rgba(16, 17, 13, 0.65);
  --final-ink-faint: rgba(16, 17, 13, 0.62);

  /* Existing component aliases */
  --bg: var(--background);
  --ink: var(--foreground);
  --muted: var(--ink-muted);
  --faint: var(--ink-faint);
  --volt: var(--accent);
  --volt-soft: var(--accent-dim);

  --shell: 1180px;
  --radius-lg: 38px;
  --radius-md: 26px;
  --showcase-crossfade-duration: 320ms;
  --showcase-crossfade-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;

  --background: #f4f6ef;
  --surface: #ffffff;
  --surface-2: #eef1e9;
  --raised: #e9ede3;
  --inset: #eef1e9;

  --foreground: #151912;
  --ink-soft: #343b30;
  --ink-muted: #5e6758;
  --ink-faint: #788171;

  --line: rgba(25, 34, 19, 0.09);
  --line-strong: rgba(25, 34, 19, 0.19);

  --brand: #b8e94f;
  --accent: #b8e94f;
  --accent-text: #527100;
  --accent-ink: #121706;
  --accent-hover: #c9f66e;
  --accent-dim: rgba(103, 143, 8, 0.14);
  --accent-line: rgba(82, 113, 0, 0.35);
  --accent-line-soft: rgba(82, 113, 0, 0.18);
  --accent-glow: rgba(103, 143, 8, 0.11);
  --accent-glow-strong: rgba(103, 143, 8, 0.2);
  --blue: #156b96;
  --amber: #866000;
  --coral: #b54737;
  --phone-screen: #f4f6ef;
  --phone-speaker: rgba(21, 25, 18, 0.24);

  --success-bg: #e9f2d8;
  --warn: #6f5200;
  --warn-line: rgba(111, 82, 0, 0.24);
  --warn-bg: #fff6d9;
  --danger: #a7382b;
  --danger-soft: #8e3025;
  --danger-bg: #fbe9e5;
  --warmup: #a44f00;
  --warmup-ink: #fff9f2;

  --chart-grid: rgba(25, 34, 19, 0.1);
  --chart-hover: rgba(25, 34, 19, 0.05);
  --chart-muted: #5e6758;
  --chart-tooltip: #ffffff;
  --chart-tooltip-ink: #151912;
  --chart-grid-faint: rgba(25, 34, 19, 0.1);
  --chart-panel-fill: rgba(93, 112, 79, 0.05);
  --chart-series: #638b08;
  --chart-series-fill: rgba(99, 139, 8, 0.2);
  --chart-blue-glow: rgba(21, 107, 150, 0.1);
  --muscle-border: #7f887a;
  --muscle-fill: #dfe5da;
  --muscle-stroke: #aab4a5;
  --muscle-highlight: #89b41d;
  --muscle-highlight-stroke: #557600;
  --muscle-hot-stroke: #934638;
  --muscle-cool-stroke: #347463;

  --page-glow: rgba(103, 143, 8, 0.08);
  --page-grid: rgba(25, 34, 19, 0.025);
  --surface-subtle: rgba(93, 112, 79, 0.04);
  --surface-hover: rgba(25, 34, 19, 0.055);
  --surface-glass: rgba(244, 246, 239, 0.86);
  --surface-glass-strong: rgba(255, 255, 255, 0.96);
  --surface-inset-alpha: rgba(238, 241, 233, 0.86);
  --surface-selected: rgba(103, 143, 8, 0.09);
  --frame-dash: rgba(25, 34, 19, 0.11);
  --shadow-phone: 0 42px 100px rgba(35, 45, 28, 0.18),
    0 0 0 1px rgba(25, 34, 19, 0.12);
  --shadow-float: 0 18px 40px rgba(35, 45, 28, 0.16);
  --shadow-menu: 0 24px 70px rgba(35, 45, 28, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 4%, var(--page-glow), transparent 27rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--page-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 42%);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 132px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding: 10px 0;
  border-color: var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(130%);
}

.nav-shell {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand > span {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.04em;
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  line-height: 1;
  letter-spacing: 0.025em;
  text-rendering: geometricPrecision;
  transform: skewX(-9deg) scaleX(1.02);
  transform-origin: left 55%;
  -webkit-text-stroke: 0.28px currentColor;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a,
.site-footer nav a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher,
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-hover);
}

.language-switcher button,
.theme-switcher button {
  display: grid;
  width: 34px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  transition: background 160ms ease, color 160ms ease;
}

.language-switcher button:hover,
.theme-switcher button:hover {
  color: var(--ink);
}

.language-switcher button.is-active,
:root[data-theme="dark"] .theme-switcher [data-theme-option="dark"],
:root[data-theme="light"] .theme-switcher [data-theme-option="light"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.theme-glyph {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease,
    color 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button:focus-visible,
.menu-toggle:focus-visible,
.language-switcher button:focus-visible,
.theme-switcher button:focus-visible,
.desktop-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.button-small {
  min-height: 44px;
  padding: 0 19px;
  font-size: 14px;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 16px 50px var(--accent-glow-strong);
}

.button-ghost {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--ink-soft);
}

.button-ghost:hover {
  border-color: var(--accent-line);
  background: var(--volt-soft);
  color: var(--ink);
}

.button-dark {
  background: var(--accent-ink);
  color: var(--accent);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  min-height: 840px;
  padding-top: 160px;
  padding-bottom: 78px;
}

.hero-grid {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1.06fr) minmax(520px, 0.94fr);
  align-items: center;
  gap: 24px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(52px, 5.25vw, 76px);
  font-weight: 780;
  letter-spacing: -0.028em;
  line-height: 0.99;
}

.hero h1 span {
  color: var(--accent-text);
}

.hero-lede {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.microproof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  color: var(--faint);
  font-size: 12px;
  font-weight: 650;
}

.microproof span {
  position: relative;
}

.microproof span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
  content: "";
}

.product-stage {
  position: relative;
  height: 660px;
  perspective: 1400px;
}

.route-line {
  position: absolute;
  inset: 1% -5% auto -11%;
  width: 110%;
  height: 100%;
  overflow: visible;
  opacity: 0.72;
}

.route-line path {
  fill: none;
  stroke: var(--chart-series);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px var(--chart-series-fill));
}

.route-line circle {
  fill: var(--bg);
  stroke: var(--chart-series);
  stroke-width: 3;
}

.phone {
  --phone-border-width: 7px;
  --phone-corner-radius: 46px;
  position: relative;
  overflow: hidden;
  border: var(--phone-border-width) solid var(--phone-frame);
  border-radius: var(--phone-corner-radius);
  background: var(--phone-screen);
  box-shadow: var(--shadow-phone);
}

.phone::before {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: var(--phone-speaker);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.phone.has-showcase:focus {
  outline: none;
}

.phone.has-showcase:focus-visible {
  box-shadow:
    var(--shadow-phone),
    0 0 0 3px var(--accent-line);
}

.phone > img[data-screen] {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  backface-visibility: hidden;
  transition: opacity var(--showcase-crossfade-duration)
    var(--showcase-crossfade-easing);
}

.showcase-clip {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: calc(
    var(--phone-corner-radius) - var(--phone-border-width)
  );
  isolation: isolate;
  pointer-events: none;
  clip-path: inset(
    0 round calc(var(--phone-corner-radius) - var(--phone-border-width))
  );
  contain: paint;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.phone.is-showcase-ready .showcase-clip {
  pointer-events: auto;
}

.showcase-frame {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 390px;
  max-width: none;
  height: var(--showcase-viewport-height, 844px);
  max-height: none;
  border: 0;
  outline: 0;
  background: var(--phone-screen);
  opacity: 0;
  pointer-events: none;
  touch-action: pan-x pan-y;
  backface-visibility: hidden;
  transform: scale(var(--showcase-scale, 1));
  transform-origin: top left;
  transition: opacity var(--showcase-crossfade-duration)
    var(--showcase-crossfade-easing);
}

.showcase-frame.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.phone.is-showcase-ready > img[data-screen] {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .phone > img[data-screen],
  .showcase-frame {
    transition: none;
  }
}

.product-stage .phone {
  position: absolute;
  width: 245px;
}

.phone-center {
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 272px !important;
  transform: translateX(-50%);
}

.phone-left {
  top: 116px;
  left: 0;
  z-index: 1;
  transform: rotateY(11deg) rotateZ(-4deg);
  opacity: 0.78;
}

.phone-right {
  top: 96px;
  right: 0;
  z-index: 2;
  transform: rotateY(-11deg) rotateZ(4deg);
  opacity: 0.86;
}

.hero-orbit {
  position: absolute;
  pointer-events: none;
  border: 1px solid var(--accent-line-soft);
  border-radius: 50%;
}

.hero-orbit-one {
  top: -260px;
  right: -90px;
  width: 720px;
  height: 720px;
}

.hero-orbit-two {
  top: -100px;
  right: 50px;
  width: 420px;
  height: 420px;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--chart-panel-fill);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-list span {
  padding: 27px 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.proof-list span:not(:last-child) {
  border-right: 1px solid var(--line);
}

.proof-list strong {
  color: var(--ink);
  font-weight: 800;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.feature-copy h2,
.install-heading h2,
.trust h2,
.final-card h2 {
  margin: 0;
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 760;
  letter-spacing: -0.026em;
  line-height: 1.04;
}

.section-heading > p:last-child,
.install-heading > p:last-child,
.trust-copy > p:last-child {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.onboarding-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: 56px;
  margin-top: 64px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 20%, var(--accent-glow), transparent 31%),
    linear-gradient(135deg, var(--surface-subtle), transparent 48%),
    var(--surface);
  isolation: isolate;
}

.onboarding-showcase::before {
  position: absolute;
  right: -180px;
  bottom: -290px;
  z-index: -1;
  width: 610px;
  height: 610px;
  border: 1px solid var(--accent-line-soft);
  border-radius: 50%;
  content: "";
}

.onboarding-controls {
  position: relative;
  z-index: 2;
}

.onboarding-tabs {
  display: grid;
  gap: 10px;
}

.onboarding-tabs button {
  display: grid;
  width: 100%;
  min-height: 112px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  outline: none;
  background: var(--surface-inset-alpha);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease,
    transform 160ms ease;
}

.onboarding-tabs button:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.onboarding-tabs button:active {
  transform: scale(0.993);
}

.onboarding-tabs button:focus-visible {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}

.onboarding-tabs button[aria-selected="true"] {
  border-color: var(--accent-line);
  background:
    linear-gradient(90deg, var(--accent-dim), transparent),
    var(--surface-selected);
}

.onboarding-tab-number {
  padding-top: 3px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.onboarding-tabs button[aria-selected="true"] .onboarding-tab-number {
  color: var(--accent-text);
}

.onboarding-tab-copy {
  display: grid;
  gap: 6px;
}

.onboarding-tab-copy strong {
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.018em;
}

.onboarding-tab-copy > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.onboarding-tabs button[aria-selected="true"] .onboarding-tab-copy > span {
  color: var(--ink-soft);
}

.onboarding-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 11px;
  font-weight: 700;
}

.onboarding-proof li {
  position: relative;
  padding-left: 14px;
}

.onboarding-proof li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.onboarding-cta {
  margin-top: 24px;
}

.onboarding-stage {
  position: relative;
  display: grid;
  min-height: 690px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 42%, var(--accent-glow), transparent 43%),
    var(--surface-inset-alpha);
}

.onboarding-stage::before {
  position: absolute;
  inset: 22px;
  border: 1px dashed var(--frame-dash);
  border-radius: 24px;
  content: "";
}

.phone-onboarding {
  position: relative;
  z-index: 1;
  width: 286px;
}

.phone-onboarding > img[data-screen] {
  transition:
    opacity var(--showcase-crossfade-duration) var(--showcase-crossfade-easing),
    transform 180ms ease;
}

.phone-onboarding > img[data-screen].is-changing {
  opacity: 0.48;
  transform: scale(0.996);
}

.features {
  padding-top: 40px;
}

.feature-row {
  display: grid;
  min-height: 830px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 100px;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-row-reverse .feature-visual {
  order: 1;
}

.feature-index {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.feature-copy h2 {
  font-size: clamp(42px, 4.8vw, 66px);
}

.feature-copy > p {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-points {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.feature-points li {
  position: relative;
  padding-left: 24px;
}

.feature-points li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent-text);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.feature-visual {
  position: relative;
  display: grid;
  min-height: 710px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 42%, var(--accent-glow), transparent 42%),
    var(--surface);
  isolation: isolate;
}

.feature-visual::before {
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px dashed var(--frame-dash);
  border-radius: 28px;
  content: "";
}

.phone-feature {
  position: relative;
  width: 292px;
}

.interactive-visual {
  min-height: 760px;
  padding: 82px 28px 24px;
}

.interactive-visual .phone-feature {
  margin-top: 18px;
}

.interactive-visual .phone > img[data-screen] {
  transition:
    opacity var(--showcase-crossfade-duration) var(--showcase-crossfade-easing),
    transform 180ms ease;
}

.interactive-visual .phone > img[data-screen].is-changing {
  opacity: 0.48;
  transform: scale(0.996);
}

.showcase-tabs {
  position: absolute;
  top: 26px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: min(calc(100% - 52px), 430px);
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.showcase-tabs-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-tabs-two {
  width: min(calc(100% - 52px), 320px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-tabs button {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.showcase-tabs button:hover {
  color: var(--ink);
}

.showcase-tabs button:active {
  transform: scale(0.98);
}

.showcase-tabs button:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.showcase-tabs
  button[data-showcase-target="workout-warmup"]:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--warmup);
}

.showcase-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.showcase-tabs
  button[data-showcase-target="workout-warmup"][aria-selected="true"] {
  background: var(--warmup);
  color: var(--warmup-ink);
}

.showcase-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.showcase-tabs button[aria-selected="true"] .showcase-dot {
  background: currentColor;
}

.stats-mode-visual {
  background:
    radial-gradient(circle at 50% 40%, var(--chart-blue-glow), transparent 37%),
    radial-gradient(circle at 50% 62%, var(--chart-series-fill), transparent 43%),
    var(--surface);
}

.setup-visual {
  background:
    radial-gradient(circle at 50% 46%, var(--chart-series-fill), transparent 42%),
    radial-gradient(circle at 78% 16%, var(--chart-blue-glow), transparent 25%),
    var(--surface);
}

.float-label,
.metric-chip,
.progress-callout,
.setup-callout,
.schedule-chip {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--line-strong);
  background: var(--surface-glass-strong);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(14px);
}

.float-label {
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.float-label-top {
  top: 110px;
  left: 26px;
}

.float-label-bottom {
  right: 22px;
  bottom: 94px;
  color: var(--accent-text);
}

.metric-chip {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 18px;
}

.metric-chip span,
.progress-callout span,
.progress-callout small,
.schedule-chip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.metric-chip strong {
  font-size: 14px;
}

.metric-chip-one {
  top: 104px;
  right: 20px;
}

.metric-chip-two {
  bottom: 86px;
  left: 24px;
}

.progress-callout {
  right: 16px;
  bottom: 72px;
  display: grid;
  gap: 5px;
  padding: 17px 19px;
  border-radius: 20px;
}

.progress-callout strong {
  color: var(--accent-text);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.setup-callout {
  border-radius: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.setup-callout-load {
  top: 104px;
  right: 20px;
  display: grid;
  gap: 4px;
  min-width: 118px;
  padding: 14px 16px;
}

.setup-callout-load span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.setup-callout-load strong {
  color: var(--accent-text);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.setup-callout-history {
  bottom: 82px;
  left: 20px;
  padding: 11px 14px;
  color: var(--accent-text);
}

.schedule-chip {
  display: grid;
  width: 68px;
  height: 78px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 18px;
}

.schedule-chip strong {
  font-size: 20px;
}

.schedule-chip-mon {
  top: 112px;
  left: 26px;
  border-color: var(--accent-line);
}

.schedule-chip-mon strong {
  color: var(--accent-text);
}

.schedule-chip-thu {
  right: 24px;
  bottom: 96px;
}

.trust {
  padding-top: 20px;
}

.trust-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
  padding: 64px;
  overflow: hidden;
  border: 1px solid var(--accent-line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 10%, var(--accent-glow), transparent 34%),
    var(--surface);
}

.trust h2 {
  max-width: 520px;
  font-size: clamp(42px, 4.3vw, 60px);
}

.trust-points {
  display: grid;
  align-content: center;
}

.trust-points > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.trust-points > div:last-child {
  border-bottom: 0;
}

.trust-points span {
  grid-row: 1 / 3;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 850;
}

.trust-points strong {
  font-size: 16px;
}

.trust-points small {
  color: var(--muted);
  font-size: 13px;
}

.install {
  padding-bottom: 92px;
}

.install-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.install-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 180ms ease, background 180ms ease;
}

.install-card.is-recommended {
  border-color: var(--accent-line);
  background: linear-gradient(145deg, var(--accent-glow), transparent 45%),
    var(--surface);
}

.platform-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: var(--raised);
}

.platform-icon svg {
  width: 25px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-platform-card="ios"] .platform-icon svg {
  fill: var(--ink);
  stroke: none;
}

.platform-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.platform-heading h3 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.recommended-badge {
  display: none;
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 850;
}

.is-recommended .recommended-badge {
  display: inline-flex;
}

.install-steps {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border-top: 1px solid var(--line);
}

.install-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.install-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--raised);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 850;
}

.install-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.install-steps strong {
  color: var(--ink-soft);
}

.install-card .button {
  width: 100%;
}

.install-note {
  margin: 20px 0 0;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.final-cta {
  padding-top: 40px;
}

.final-card {
  position: relative;
  display: flex;
  min-height: 390px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 62px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--final-ink);
}

.final-card .eyebrow {
  color: var(--final-ink-faint);
}

.final-card h2 {
  position: relative;
  z-index: 2;
  font-size: clamp(46px, 5.4vw, 74px);
}

.final-card p:not(.eyebrow) {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  color: var(--final-ink-muted);
  font-size: 16px;
  font-weight: 650;
}

.final-card .button {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.final-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.final-route path {
  fill: none;
  stroke: var(--final-ink);
  stroke-width: 3;
}

.final-route circle {
  fill: var(--accent);
  stroke: var(--final-ink);
  stroke-width: 4;
}

.site-footer {
  padding: 18px 0 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 20px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-grid > p {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.footer-meta {
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-delay {
  transition-delay: 100ms;
}

.reveal-delay-two {
  transition-delay: 180ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    max-width: 780px;
    text-align: center;
    margin-inline: auto;
  }

  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions,
  .microproof {
    justify-content: center;
  }

  .product-stage {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .onboarding-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.95fr);
    gap: 34px;
    padding: 34px;
  }

  .feature-row {
    grid-template-columns: minmax(0, 0.82fr) minmax(400px, 1.18fr);
    gap: 54px;
  }

  .footer-grid {
    grid-template-columns: auto 1fr auto;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 92px 0;
  }

  .desktop-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
  }

  .menu-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--ink);
    transition: transform 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: var(--surface-glass-strong);
    box-shadow: var(--shadow-menu);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu > a:not(.button) {
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-menu .button {
    margin-top: 7px;
  }

  .hero {
    padding-top: 132px;
    padding-bottom: 56px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(48px, 11vw, 70px);
  }

  .product-stage {
    height: 600px;
  }

  .phone-center {
    width: 255px !important;
  }

  .product-stage .phone-left,
  .product-stage .phone-right {
    width: 218px;
    opacity: 0.6;
  }

  .proof-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-list span:nth-child(2) {
    border-right: 0;
  }

  .proof-list span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .onboarding-showcase {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 32px;
  }

  .onboarding-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onboarding-tabs button {
    min-height: 134px;
  }

  .onboarding-stage {
    min-height: 650px;
  }

  .feature-row,
  .feature-row-reverse {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 78px 0;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .feature-visual {
    order: initial;
  }

  .feature-visual {
    min-height: 680px;
  }

  .interactive-visual {
    min-height: 760px;
  }

  .trust-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px;
  }

  .final-card {
    min-height: 420px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-grid > p,
  .site-footer nav,
  .footer-meta {
    grid-column: auto;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .section {
    padding: 78px 0;
  }

  .site-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .nav-shell {
    gap: 12px;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-switcher button,
  .theme-switcher button {
    width: 31px;
    height: 29px;
    font-size: 10px;
  }

  .theme-glyph {
    font-size: 16px;
  }

  .brand {
    font-size: 22px;
  }

  .brand > span {
    -webkit-text-stroke-width: 0.24px;
  }

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

  .hero {
    padding-top: 122px;
    padding-bottom: 42px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(43px, 12.4vw, 60px);
  }

  .hero-lede {
    margin-top: 23px;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .microproof {
    gap: 8px 18px;
    font-size: 10px;
  }

  .microproof span:not(:last-child)::after {
    right: -10px;
  }

  .product-stage {
    height: 510px;
    margin-top: 12px;
  }

  .phone-center {
    width: 230px !important;
  }

  .product-stage .phone-left {
    top: 93px;
    left: -76px;
    width: 194px;
  }

  .product-stage .phone-right {
    top: 82px;
    right: -76px;
    width: 194px;
  }

  .route-line {
    opacity: 0.45;
  }

  .proof-list span {
    padding: 20px 8px;
    font-size: 11px;
  }

  .section-heading h2,
  .feature-copy h2,
  .install-heading h2,
  .trust h2,
  .final-card h2 {
    font-size: clamp(38px, 11.3vw, 53px);
  }

  .onboarding-showcase {
    margin-top: 42px;
    padding: 20px;
    border-radius: 28px;
  }

  .onboarding-tabs {
    grid-template-columns: 1fr;
  }

  .onboarding-tabs button {
    min-height: 0;
    padding: 16px;
  }

  .onboarding-proof {
    display: grid;
    gap: 9px;
  }

  .onboarding-cta {
    width: 100%;
  }

  .onboarding-stage {
    min-height: 555px;
    border-radius: 24px;
  }

  .onboarding-stage::before {
    inset: 14px;
    border-radius: 18px;
  }

  .phone-onboarding {
    width: 236px;
  }

  .feature-row,
  .feature-row-reverse {
    padding: 62px 0;
  }

  .feature-copy > p {
    font-size: 16px;
  }

  .feature-visual {
    min-height: 580px;
    border-radius: 28px;
  }

  .interactive-visual {
    min-height: 650px;
    padding: 70px 14px 18px;
  }

  .feature-visual::before {
    inset: 14px;
    border-radius: 20px;
  }

  .phone-feature {
    width: 248px;
    border-width: 6px;
    border-radius: 39px;
  }

  .interactive-visual .phone-feature {
    margin-top: 16px;
  }

  .showcase-tabs {
    top: 16px;
    width: calc(100% - 24px);
    padding: 4px;
  }

  .showcase-tabs-two {
    width: min(calc(100% - 24px), 286px);
  }

  .showcase-tabs button {
    min-height: 38px;
    gap: 5px;
    padding: 0 7px;
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  .showcase-dot {
    width: 5px;
    height: 5px;
  }

  .float-label-top,
  .schedule-chip-mon {
    top: 64px;
    left: 8px;
  }

  .float-label-bottom,
  .schedule-chip-thu {
    right: 8px;
    bottom: 64px;
  }

  .metric-chip {
    min-width: 126px;
    padding: 11px 12px;
  }

  .metric-chip-one {
    top: 70px;
    right: 5px;
  }

  .metric-chip-two {
    bottom: 60px;
    left: 5px;
  }

  .progress-callout {
    right: 4px;
    bottom: 52px;
  }

  .setup-callout-load {
    top: 70px;
    right: 4px;
    min-width: 106px;
    padding: 11px 12px;
  }

  .setup-callout-history {
    bottom: 54px;
    left: 4px;
  }

  .trust-card,
  .install-card,
  .final-card {
    padding: 30px 24px;
    border-radius: 27px;
  }

  .platform-heading {
    align-items: flex-start;
  }

  .recommended-badge {
    position: absolute;
    top: -3px;
    right: 0;
  }

  .final-card {
    min-height: 390px;
  }
}

@media (max-width: 390px) {
  .brand > span {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
