:root {
  --canvas: #fff;
  --ink: #000;
  --field: #f3f3f3;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --display: "Inter", "Helvetica Neue", sans-serif;
  --body: "Inter", "Helvetica Neue", sans-serif;
  --data: "Inter", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  min-height: 68px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-drop summary:hover { opacity: 0.55; }

.nav-links .is-current,
.nav-drop summary.is-current { font-weight: 700; }

.nav-download { margin-left: auto; flex: none; }

.nav-toggle {
  display: none;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.nav-drop { position: relative; }

.nav-drop summary {
  cursor: pointer;
  list-style: none;
}

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

.nav-drop[open] .nav-sub {
  display: grid;
  gap: 10px;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-volt {
  background: #000;
  color: #fff;
}

.btn-volt:hover { background: #222; }

.btn-ghost {
  background: #fff;
  color: #000;
  border-color: #000;
}

.btn-ghost:hover { background: var(--field); }

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.kicker,
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.hero { padding: 56px 0 28px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-lines {
  margin: 0 0 18px;
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero-copy .lede { margin-bottom: 28px; }

.hero-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badges { align-items: center; }

.store-badge {
  display: block;
  line-height: 0;
}

.store-badge img {
  display: block;
  height: 52px;
  width: auto;
}

.store-badge:hover { opacity: 0.86; }

.phone-stage {
  position: relative;
  width: min(100%, 460px);
  height: 640px;
  margin-left: auto;
}

.iphone {
  position: relative;
  width: 268px;
  aspect-ratio: 71.6 / 147.6;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.28));
}

.iphone.back {
  position: absolute;
  left: 0;
  top: 0;
  width: 236px;
  z-index: 1;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.16));
}

.iphone.front {
  position: absolute;
  right: 0;
  top: 78px;
  width: 272px;
  z-index: 2;
}

.iphone.solo {
  width: min(280px, 100%);
  margin: 0 auto;
}

.hw {
  position: absolute;
  width: 4px;
  background: linear-gradient(90deg, #8d8d92, #3a3a3e 45%, #1a1a1c);
  border-radius: 2px;
  z-index: 3;
}

.hw.silent { left: -3px; top: 15%; height: 7%; }
.hw.vol1 { left: -3px; top: 23%; height: 13%; }
.hw.vol2 { left: -3px; top: 38%; height: 13%; }
.hw.power { left: auto; right: -3px; top: 27%; height: 18%; background: linear-gradient(90deg, #1a1a1c, #3a3a3e 55%, #8d8d92); }

.iphone-bezel {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  padding: 7px;
  background:
    linear-gradient(160deg, #5c5c60 0%, #2a2a2e 12%, #161618 28%, #0c0c0e 62%, #3a3a3e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 2px #050505;
}

.iphone-glass {
  height: 100%;
  border-radius: 40px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.iphone-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16), transparent 24%);
  pointer-events: none;
  z-index: 4;
}

.ios-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 8px 16px 0 20px;
  flex: none;
}

.ios-time {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  z-index: 1;
}

.island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 96px;
  height: 28px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ios-sys {
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 1;
}

.ios-sys svg { display: block; }

.iphone-body {
  flex: 1;
  min-height: 0;
  padding: 2px 14px 0;
  overflow: hidden;
}

.home-ind {
  width: 112px;
  height: 5px;
  margin: 8px auto 10px;
  border-radius: 99px;
  background: #000;
  flex: none;
}

.phone-chart header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 14px;
  font-size: 13px;
}

.phone-chart header span { color: var(--muted); font-weight: 600; }

.phone-chart svg { width: 100%; height: auto; margin-top: 6px; }

.log-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.log-top strong {
  color: #000;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.log-name {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.log-last {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
}

.log-prev {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 12px;
}

.set {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--field);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

.set span:first-child {
  color: var(--muted);
  width: 16px;
}

.set span:nth-child(2) { flex: 1; }

.pr {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #000;
  display: inline-block;
  flex: none;
  position: relative;
}

.set.done .check {
  background: #000;
  border-color: #000;
}

.set.done .check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.log-dock { margin-top: 16px; display: grid; gap: 8px; }

.rest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.finish {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  border-radius: 999px;
  min-height: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home > section { padding: 88px 0; }

.home > .hero { padding: 64px 0 36px; }

.section-head { margin-bottom: 28px; max-width: 40rem; }

.section-head h2,
.split h2 {
  font-size: clamp(36px, 5vw, 56px);
  max-width: 16ch;
}

.section-head p,
.split .lede { margin-top: 14px; }

.grid-3, .grid-2 { display: grid; gap: 14px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.grid-2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split-reverse > :first-child { order: 2; }

.split-reverse > :last-child { order: 1; }

.card {
  background: var(--field);
  border-radius: 20px;
  padding: 22px;
}

.card h3 {
  font-size: 22px;
  margin: 8px 0;
}

.card p { color: var(--muted); font-size: 15px; }

.index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
}

.metric span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.chart {
  background: var(--field);
  border-radius: 24px;
  padding: 22px 18px 8px;
  min-width: 0;
}

.chart header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.chart header p { color: var(--muted); font-size: 14px; }

.chart svg { width: 100%; height: auto; }

.points {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.points a {
  display: block;
}

.points a::before {
  content: "\2713";
  float: left;
  width: 22px;
  margin-top: 1px;
  font-weight: 700;
}

.points strong {
  display: block;
  margin-left: 22px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.points span {
  display: block;
  margin-left: 22px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.points a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.more a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.poster-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.poster-row a {
  background: var(--field);
  border-radius: 20px;
  overflow: hidden;
}

.poster-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.poster-row span {
  display: block;
  padding: 12px 14px 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.guide-grid a.card {
  min-height: 220px;
  padding: 32px 28px;
}

.guide-grid h3 { font-size: 26px; }

.guide-grid a.card:hover { background: #eaeaea; }

.closing {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 120px;
}

.closing h2 {
  font-size: clamp(44px, 7vw, 80px);
  max-width: 14ch;
  margin: 0 auto 28px;
}

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

.foot {
  display: block;
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
}

.foot-col { display: grid; gap: 8px; align-content: start; }

.foot-col .brand { font-size: 16px; color: #000; }

.foot-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.foot-tag { max-width: 28ch; font-size: 14px; color: #000; }

.foot-col a { color: #000; }

.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.ask-ai {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #000;
}

.ask-ai a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
}

.ask-ai img { width: 22px; height: 22px; object-fit: contain; }

.ask-ai a:hover { opacity: 0.65; }

.foot-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.foot-links a { color: #000; font-weight: 600; }

.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal .legal-main {
  width: min(720px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 8px;
}

.legal h2 {
  font-size: 28px;
  max-width: none;
  margin: 36px 0 10px;
}

.legal p, .legal li { color: #222; font-size: 16px; }

.legal p + p { margin-top: 12px; }

.legal ol { margin: 12px 0 0 20px; }

.legal li + li { margin-top: 6px; }

.legal-main a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updated {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.page { padding: 48px 0 80px; }

.page h1 {
  font-size: clamp(40px, 6vw, 64px);
  max-width: 16ch;
  margin: 0 0 14px;
}

.page .lede { margin: 0 0 22px; }

.page h2 {
  font-size: clamp(28px, 3vw, 36px);
  max-width: 20ch;
  margin-top: 28px;
}

.clean { margin: 12px 0 0 18px; color: #222; }

.clean li + li { margin-top: 8px; }

.card .clean { color: #222; }

.related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.related a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
}

.related a:hover { border-color: #000; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 22px; }

.filters input,
.filters select {
  background: var(--field);
  color: #000;
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 14px;
}

.filters input { flex: 1; min-width: 200px; }

.filters select { min-width: 160px; }

.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.exercise-card {
  background: var(--field);
  border-radius: 16px;
  overflow: hidden;
}

.exercise-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.exercise-card span,
.exercise-card small { display: block; padding: 0 12px; }

.exercise-card span {
  padding-top: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.exercise-card small {
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.exercise-card:hover { background: #eaeaea; }

.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 12px;
  margin: 18px 0 22px;
}

.media-row figure {
  background: var(--field);
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
}

.media-row img,
.media-row video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.media-row figcaption {
  padding: 8px 12px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 16px;
}

.compare-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 8px;
}

.compare-row { padding: 16px 0; border-top: 1px solid var(--line); }

.compare-row p { color: #222; font-size: 15px; }

.stack-links { list-style: none; display: grid; gap: 8px; margin-top: 12px; }

.stack-links a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pillar + .pillar { margin-top: 36px; }

.pillar h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 8px 0 14px;
  max-width: none;
}

.feature-list { display: grid; gap: 10px; }

.feature-list a {
  display: block;
  background: var(--field);
  border-radius: 16px;
  padding: 18px 20px;
}

.feature-list a:hover { background: #eaeaea; }

.feature-list strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.feature-list span { color: var(--muted); font-size: 15px; }

#exercise-empty { color: var(--muted); margin-bottom: 16px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; min-height: 40px; padding: 0 12px; font-size: 14px; }

  .nav-download { margin-left: 8px; min-height: 40px; padding: 0 12px; font-size: 14px; }

  .brand { font-size: 16px; min-width: 0; }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0 14px;
  }

  .nav.is-open .nav-links { display: flex; }

  .nav-drop[open] .nav-sub {
    position: static;
    min-width: 0;
    margin-top: 10px;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero-grid,
  .split,
  .grid-3,
  .grid-2,
  .poster-row,
  .guide-grid,
  .foot-grid,
  .compare-head,
  .compare-row {
    grid-template-columns: 1fr;
  }

  .split-reverse > :first-child,
  .split-reverse > :last-child { order: 0; }

  .phone-stage { height: 580px; margin: 8px auto 0; }

  .iphone.front { width: 240px; top: 56px; }
  .iphone.back { width: 208px; }

  .island { width: 78px; height: 24px; }

  .hero-lines { font-size: 36px; max-width: none; }

  .nav .brand-name { letter-spacing: -0.04em; }

  .section-head h2,
  .split h2,
  .closing h2,
  .page h1,
  .legal h1 { max-width: none; }

  .closing { padding-bottom: 72px; }
}

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