/* ARIS CO landing page — design tokens + component styles.
   Source of truth: ../../design-handoff/HANDOFF-SPEC.md and the visual
   prototype (../../design-handoff/ARIS Landing.dc.html). Values below are
   transcribed from that prototype's inline styles, ported into real classes. */

:root {
  --bg: #faf6f2;
  --surface: #fff;
  --ink: #2b2622;
  --ink-soft: #9a938c;
  --line: #efe9e3;
  --sage: #3d6b66;
  --sage-tint: #e6efed;
  --sage-deep: #233b37;
  --red: #c1443a;
  --red-tint: #f7e5e3;
  --blue: #3b6ea5;
  --blue-tint: #e2ebf2;
  --font-head: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Literals reused inside dark sections — tokenised per CLAUDE.md's note
     that this is welcome even though the prototype leaves them as literals. */
  --dark-bg: #12211e;
  --dark-body: #a9bdb8;
  --dark-muted: #8fa39c;
  --dark-list: #cfe0dc;
  --dark-accent: #6fb3a8;
  --lead-ink: #5d554e;
  --body-ink: #6b635c;
  --red-ink: #7d3229;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-deep); }

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

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* Root page wrapper — MUST be overflow-x:clip, not hidden. `hidden` makes
   this a scrollport that never itself scrolls, which silently freezes
   every animation-timeline:view() reveal below (see .reveal). */
.page {
  background: var(--bg);
  min-height: 100%;
  overflow-x: clip;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 900px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Keyframes ---------- */
@keyframes arisscroll { from { transform: translateX(0); } to { transform: translateX(-32px); } }
@keyframes arisrise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes arisfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Scroll-reveal: CSS scroll-timeline where supported. main.js adds
   .reveal-fallback (via IntersectionObserver) on browsers that don't
   support animation-timeline, and .is-visible flips its end state. */
.reveal {
  animation: arisrise 0.8s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}
.reveal-fallback.reveal {
  animation: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-fallback.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons & pills ---------- */
.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-deep); color: #fff; }
.btn-nav-cta { padding: 11px 22px; font-size: 14px; box-shadow: 0 6px 18px rgba(61, 107, 102, 0.26); }
.btn-primary { padding: 14px 20px; font-size: 15px; width: 100%; box-shadow: 0 8px 20px rgba(61, 107, 102, 0.28); }
.btn-outline-sage {
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 999px;
  cursor: pointer;
}
.btn-outline-sage:hover { background: var(--sage-tint); }
.btn-white-submit {
  background: #fff;
  color: var(--dark-bg);
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 4px;
}
.btn-white-submit:hover { background: var(--sage-tint); }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-tint);
  color: var(--sage-deep);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.pill-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

/* Carousel pill selector (shared by console + phone pill rows) */
.carousel-pills { display: flex; gap: 6px; margin-top: 12px; }
.carousel-pill {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 13px;
  background: transparent;
  color: var(--ink-soft);
}
.carousel-pill.is-active { background: var(--sage-tint); color: var(--sage-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 246, 242, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-spacer { height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-word { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-body); }
.brand-word .aris { font-weight: 900; font-size: 20px; line-height: 1; color: var(--ink); letter-spacing: -0.5px; }
.brand-word .co { font-weight: 400; font-size: 20px; line-height: 1; color: var(--sage); letter-spacing: -0.3px; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--ink); white-space: nowrap; }
@media (max-width: 1060px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 32px 72px; display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.hero-left { flex: 1 1 460px; min-width: 320px; }
.hero-left h1 {
  font: 600 clamp(38px, 4.6vw, 60px) / 1.04 var(--font-head);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--lead-ink);
  margin: 0 0 32px;
  max-width: 520px;
  text-wrap: pretty;
}
.download-card {
  scroll-margin-top: 88px;
  background: var(--surface);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 10px 34px rgba(43, 38, 34, 0.09);
  border: 1px solid var(--line);
}
.qr-box {
  flex: none;
  width: 118px; height: 118px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
}
.qr-box svg { width: 100%; height: 100%; display: block; }
.download-card-right { flex: 1 1 210px; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.download-card-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
}
.download-card-meta { font-size: 12px; color: var(--ink-soft); }
.ios-row { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ios-row-label { font-size: 14px; color: var(--lead-ink); }
.ios-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ios-input {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  background: #fff;
  min-width: 200px;
  color: var(--ink);
}
.ios-msg { font-size: 13px; color: var(--sage); font-weight: 600; }

.hero-col {
  flex: 1 1 380px;
  min-width: 280px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 520px;
}
.hero-glow {
  position: absolute;
  width: min(430px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #e6efed 0%, rgba(230, 239, 237, 0) 70%);
}
.hero-device {
  position: relative;
  width: min(400px, 90%);
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(43, 38, 34, 0.18));
}
.hero-mock {
  position: absolute;
  right: 0; bottom: 8px;
  width: 196px;
  border-radius: 26px;
  background: var(--dark-bg);
  padding: 9px;
  box-shadow: 0 24px 50px rgba(43, 38, 34, 0.28);
}
@media (max-width: 760px) {
  .hero-col { min-height: 0; }
  .hero-mock { position: static; margin-top: -24px; width: 196px; }
}
.phone-inner {
  border-radius: 19px;
  overflow: hidden;
  background: var(--bg);
  padding: 14px 13px 16px;
}
.phone-set-meta { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 3px; }
.phone-rep-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.phone-rep-count { font: 600 40px/1 var(--font-head); color: var(--ink); }
.phone-rep-total { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.waveform { width: 100%; height: 46px; display: block; }
.waveform g { animation: arisscroll 1.2s linear infinite; }
.phone-waveform-caption { font-size: 10px; color: var(--ink-soft); margin: 6px 0 12px; }
.phone-tile-row { display: flex; gap: 6px; }
.phone-tile { flex: 1; background: #fff; border-radius: 11px; padding: 8px 9px; }
.phone-tile-label { font-size: 9px; color: var(--ink-soft); font-weight: 700; }
.phone-tile-value { font-size: 13px; font-weight: 700; }

/* ---------- Credibility strip ---------- */
.credibility {
  scroll-margin-top: 68px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.credibility-row { padding: 32px; display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.credibility-item { flex: 1 1 260px; display: flex; gap: 14px; align-items: flex-start; }
.credibility-item svg { flex: none; margin-top: 2px; }
.credibility-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.credibility-copy { font-size: 14px; color: var(--body-ink); line-height: 1.5; }

/* ---------- FlexR difference ---------- */
.flexr { scroll-margin-top: 68px; padding: 88px 0; }
.section-header { max-width: 720px; margin-bottom: 48px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.section-header h2 {
  font: 600 clamp(30px, 3.6vw, 46px) / 1.1 var(--font-head);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-header p { font-size: 17px; line-height: 1.6; color: var(--lead-ink); margin: 0; text-wrap: pretty; }

.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.method-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.method-card.is-dark {
  background: var(--dark-bg);
  color: #fff;
  box-shadow: 0 18px 44px rgba(18, 33, 30, 0.28);
  position: relative;
}
.method-badge {
  position: absolute; top: 22px; right: 24px;
  background: var(--sage); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  border-radius: 999px; padding: 5px 11px;
}
.method-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 18px; }
.method-card.is-dark .method-label { color: var(--dark-muted); }
.method-diagram { width: 100%; height: 60px; margin-bottom: 20px; }
.method-card h3 { font: 600 21px var(--font-head); margin: 0 0 10px; }
.method-card.is-dark h3 { color: #fff; }
.method-card p { font-size: 15px; line-height: 1.6; color: var(--body-ink); margin: 0 0 18px; }
.method-card.is-dark p { color: var(--dark-body); }
.method-list { margin-top: auto; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--body-ink); }
.method-card.is-dark .method-list { color: var(--dark-list); }
.method-list div { display: flex; gap: 9px; }
.method-list .neg { color: var(--red); font-weight: 700; }
.method-list .pos { color: var(--dark-accent); font-weight: 700; }

.flexr-closing {
  margin: 36px 0 0;
  font: 600 clamp(19px, 2.1vw, 26px) / 1.35 var(--font-head);
  max-width: 820px;
  color: var(--ink);
  text-wrap: pretty;
}
.spec-row {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.spec-cell { padding: 22px 24px; border-left: 1px solid var(--line); }
.spec-cell:first-child { padding-left: 0; border-left: none; }
.spec-figure { font: 600 26px var(--font-head); color: var(--sage); margin-bottom: 6px; }
.spec-copy { font-size: 14px; line-height: 1.55; color: var(--body-ink); }

/* ---------- Built for your practice ---------- */
.practice {
  scroll-margin-top: 68px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 76px 0;
}
.practice-inner { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.practice-left { flex: 1 1 460px; min-width: 300px; }
.practice-left h2 { font: 600 clamp(28px, 3.2vw, 40px) / 1.1 var(--font-head); letter-spacing: -0.02em; margin: 0 0 12px; max-width: 640px; }
.practice-left > p { font-size: 16px; line-height: 1.6; color: var(--lead-ink); margin: 0 0 28px; max-width: 460px; }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.practice-cell { padding: 22px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.practice-cell.flush { padding-left: 0; border-left: none; }
.practice-cell-title { font: 600 18px var(--font-head); margin-bottom: 7px; }
.practice-cell p { font-size: 14px; line-height: 1.6; color: var(--body-ink); margin: 0; }
.practice-closing { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--body-ink); }

.practice-right { flex: 1 1 420px; min-width: 300px; }
.console-window {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(43, 38, 34, 0.1);
  background: var(--surface);
}
.console-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.console-dot { width: 9px; height: 9px; border-radius: 50%; background: #ddd5cc; }
.console-address { margin-left: 8px; font-size: 11px; color: var(--ink-soft); }

.console-view { padding: 18px 20px 20px; height: 344px; box-sizing: border-box; }
.console-view.is-active { animation: arisfade 0.45s ease-out; }
.console-view:not(.is-active) { display: none; }

/* Clients view */
.console-clients-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.console-clients-title { font-weight: 700; font-size: 15px; }
.console-slots-pill { background: var(--sage-tint); color: var(--sage-deep); border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; }
.console-table-head {
  display: grid; grid-template-columns: 1fr 74px 62px; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-soft);
  padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.console-table-head .num { text-align: right; }
.console-row { display: grid; grid-template-columns: 1fr 74px 62px; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.console-row:last-child { border-bottom: none; }
.console-client { display: flex; align-items: center; gap: 10px; min-width: 0; }
.console-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--sage-tint); color: var(--sage-deep); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.console-avatar.is-warning { background: var(--red-tint); color: var(--red-ink); }
.console-client-name { font-size: 13px; font-weight: 600; }
.console-client-plan { font-size: 11px; color: var(--ink-soft); }
.console-bar-track { height: 6px; border-radius: 3px; background: var(--sage-tint); overflow: hidden; }
.console-bar-track.is-warning { background: var(--red-tint); }
.console-bar-fill { width: 0; height: 100%; background: var(--sage); }
.console-bar-fill.is-warning { background: var(--red); }
.console-bar-count { font-size: 10px; color: var(--ink-soft); margin-top: 4px; }
.console-bar-count.is-warning { color: var(--red); }
.console-last { font-size: 11px; color: var(--ink-soft); text-align: right; }
.console-last.is-warning { color: var(--red); }

/* Overview view */
.console-client-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.console-avatar-md { width: 34px; height: 34px; border-radius: 50%; background: var(--sage-tint); color: var(--sage-deep); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.console-client-head-name { font-weight: 700; font-size: 15px; }
.console-client-head-sub { font-size: 11px; color: var(--ink-soft); }
.console-stat-row { display: flex; gap: 8px; margin-bottom: 16px; }
.console-stat-tile { flex: 1; background: var(--bg); border-radius: 12px; padding: 10px 11px; }
.console-stat-label { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-soft); }
.console-stat-value { font: 600 18px var(--font-head); }
.console-list-label { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 9px; }
.console-session-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.console-session-title { font-size: 13px; font-weight: 600; }
.console-session-sub { font-size: 11px; color: var(--ink-soft); }
.console-rpe-pill { background: var(--sage-tint); color: var(--sage-deep); border-radius: 999px; padding: 4px 10px; font-size: 10px; font-weight: 700; }

/* Session view */
.console-session-meta { font-size: 11px; color: var(--ink-soft); margin-bottom: 3px; }
.console-session-heading { font: 600 19px var(--font-head); margin-bottom: 14px; }
.console-rpe-block { background: var(--sage-tint); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.console-rpe-label { font-size: 10px; font-weight: 700; color: var(--sage-deep); margin-bottom: 6px; }
.console-rpe-track { height: 6px; border-radius: 3px; background: var(--dark-list); overflow: hidden; }
.console-rpe-fill { height: 100%; background: var(--sage); }
.console-set-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.console-set-name { font-size: 13px; font-weight: 600; }
.console-set-reps { display: flex; gap: 5px; }
.console-rep-chip { background: var(--bg); border-radius: 7px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.console-rep-chip.is-pr { background: var(--sage); color: #fff; }

/* ---------- Why muscle ---------- */
.muscle { scroll-margin-top: 68px; padding: 84px 0; border-bottom: 1px solid var(--line); }
.muscle-inner { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; }
.muscle-left { flex: 1 1 460px; min-width: 300px; }
.muscle-left h2 { font: 600 clamp(28px, 3.4vw, 42px) / 1.1 var(--font-head); letter-spacing: -0.02em; margin: 0 0 16px; max-width: 520px; }
.muscle-lead { font-size: 17px; line-height: 1.6; color: var(--lead-ink); margin: 0 0 32px; max-width: 520px; text-wrap: pretty; }
.muscle-rows { display: flex; flex-direction: column; }
.muscle-row { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.muscle-rows > .muscle-row:last-child { border-bottom: 1px solid var(--line); }
.muscle-row-num { flex: none; width: 26px; font: 600 15px var(--font-head); color: var(--sage); }
.muscle-row-title { font-weight: 700; font-size: 16px; margin-bottom: 5px; }
.muscle-row-copy { font-size: 15px; line-height: 1.6; color: var(--body-ink); }
.muscle-closing { margin: 28px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 520px; font-weight: 500; }

.muscle-right { flex: 1 1 380px; min-width: 300px; display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.anatomy-panel { flex: 0 1 250px; min-width: 210px; background: var(--sage-tint); border-radius: 24px; padding: 20px 16px 16px; }
.anatomy-figures { display: flex; gap: 12px; }
.anatomy-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.anatomy-stack { position: relative; width: 100%; aspect-ratio: 0.42; }
.anatomy-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.anatomy-label { font-size: 11px; font-weight: 600; color: var(--sage-deep); }
.anatomy-caption { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(35, 59, 55, 0.14); font-size: 12px; line-height: 1.5; color: var(--sage-deep); }

.balance-card { flex: 1 1 220px; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.balance-meta { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 4px; }
.balance-title { font: 600 18px var(--font-head); margin-bottom: 18px; }
.balance-rows { display: flex; flex-direction: column; gap: 14px; }
.balance-row-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.balance-row-head .count { color: var(--ink-soft); }
.balance-row-head .count.is-warning { color: var(--red); }
.balance-track { height: 7px; border-radius: 4px; background: var(--sage-tint); overflow: hidden; }
.balance-track.is-warning { background: var(--red-tint); }
.balance-fill { height: 100%; background: var(--sage); }
.balance-fill.is-warning { background: var(--red); }
.balance-footnote { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--body-ink); }

/* ---------- What it measures ---------- */
.features { padding: 80px 0; }
.features-inner { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.features-left { flex: 1 1 520px; min-width: 300px; }
.features-left h2 { font: 600 clamp(28px, 3.2vw, 40px) / 1.1 var(--font-head); letter-spacing: -0.02em; margin: 0 0 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.feature-card svg { margin-bottom: 14px; }
.feature-card-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; line-height: 1.55; color: var(--body-ink); margin: 0; }

.features-right { flex: 0 1 300px; min-width: 260px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 20px; }
.phone-bezel { width: 280px; border-radius: 34px; background: var(--dark-bg); padding: 10px; box-shadow: 0 26px 54px rgba(43, 38, 34, 0.2); }
.phone-screen { border-radius: 26px; overflow: hidden; background: var(--bg); padding: 20px 18px 22px; height: 518px; box-sizing: border-box; }
.phone-screen.is-active { animation: arisfade 0.45s ease-out; }
.phone-screen:not(.is-active) { display: none; }

/* Home screen */
.phone-home-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.phone-home-greeting { font: 600 22px var(--font-head); }
.phone-home-devices { display: flex; gap: 5px; align-items: center; background: #fff; border-radius: 999px; padding: 6px 10px; border: 1.5px solid var(--line); }
.phone-home-device-dot { width: 7px; height: 7px; border-radius: 50%; }
.phone-home-device-dot.red { background: var(--red); }
.phone-home-device-dot.blue { background: var(--blue); }
.phone-week-label { font-size: 11px; color: var(--ink-soft); margin-bottom: 9px; }
.phone-week-row { display: flex; justify-content: space-between; background: #fff; border-radius: 18px; padding: 12px 10px; margin-bottom: 18px; }
.phone-week-day { text-align: center; }
.phone-week-day-label { font-size: 10px; color: var(--ink-soft); margin-bottom: 5px; }
.phone-week-day-label.is-today { color: var(--ink); font-weight: 700; }
.phone-week-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--sage-tint); }
.phone-week-dot.is-done { background: var(--sage); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.phone-week-dot.is-today-ring { border: 2px dashed var(--sage); box-sizing: border-box; background: none; }
.phone-routine-label { font-size: 11px; color: var(--ink-soft); margin-bottom: 9px; }
.phone-routine-card { background: #fff; border-radius: 20px; overflow: hidden; }
.phone-routine-photo {
  aspect-ratio: 16 / 8;
  background-image:
    linear-gradient(180deg, rgba(20, 20, 18, 0) 45%, rgba(20, 20, 18, 0.62) 100%),
    image-set(url('../assets/routine-photo-track.webp') type('image/webp'), url('../assets/routine-photo-track.png') type('image/png'));
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.phone-routine-photo-title { font: 600 16px var(--font-head); color: #fff; }
.phone-routine-photo-sub { font-size: 10px; color: #f0ede8; }
.phone-routine-body { padding: 13px; }
.phone-session-dots { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 11px; }
.phone-session-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--sage-tint); }
.phone-session-dot.is-done { background: var(--sage); }
.phone-session-dot.is-current { border: 2px solid var(--sage); box-sizing: border-box; background: none; }
.phone-routine-footer { display: flex; justify-content: space-between; align-items: center; }
.phone-routine-session-title { font-weight: 700; font-size: 13px; }
.phone-routine-session-sub { font-size: 10px; color: var(--ink-soft); }
.phone-start-pill { background: var(--sage); color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700; }

/* Session-result screen */
.phone-result-meta { font-size: 11px; color: var(--ink-soft); margin-bottom: 2px; }
.phone-result-title { font: 600 21px var(--font-head); margin-bottom: 16px; }
.phone-result-tiles { display: flex; gap: 8px; margin-bottom: 14px; }
.phone-result-tile { flex: 1; background: #fff; border-radius: 14px; padding: 12px; }
.phone-result-tile-label { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-soft); }
.phone-result-tile-value { font: 600 20px var(--font-head); }
.phone-rpe-block { background: var(--sage-tint); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.phone-rpe-label { font-size: 10px; font-weight: 700; color: var(--sage-deep); margin-bottom: 7px; }
.phone-rpe-track { height: 7px; border-radius: 4px; background: var(--dark-list); overflow: hidden; }
.phone-rpe-fill { width: 75%; height: 100%; background: var(--sage); }
.phone-pr-banner { background: var(--dark-bg); border-radius: 16px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.phone-pr-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.phone-pr-title { font-size: 12px; font-weight: 700; color: #fff; }
.phone-pr-sub { font-size: 10px; color: var(--dark-muted); }
.phone-set-detail-label { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 8px; }
.phone-set-detail-card { background: #fff; border-radius: 14px; padding: 12px 13px; }
.phone-set-detail-name { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.phone-set-detail-tiles { display: flex; gap: 6px; }
.phone-set-detail-tile { flex: 1; text-align: center; background: var(--bg); border-radius: 8px; padding: 6px 0; font-size: 11px; font-weight: 600; }
.phone-set-detail-tile.is-pr { background: var(--sage); color: #fff; font-weight: 700; }

/* Muscle-map screen */
.phone-muscle-title { font: 600 21px var(--font-head); margin-bottom: 3px; }
.phone-muscle-sub { font-size: 11px; color: var(--ink-soft); margin-bottom: 14px; }
.phone-muscle-figures { display: flex; gap: 10px; background: #fff; border-radius: 18px; padding: 14px 10px; margin-bottom: 14px; }
.phone-muscle-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.phone-muscle-label { font-size: 10px; color: var(--ink-soft); }
.phone-muscle-bars { display: flex; flex-direction: column; gap: 11px; }
.phone-muscle-bar-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.phone-muscle-bar-track { height: 6px; border-radius: 3px; background: var(--sage-tint); overflow: hidden; }
.phone-muscle-bar-track.is-warning { background: var(--red-tint); }
.phone-muscle-bar-fill { height: 100%; background: var(--sage); }
.phone-muscle-bar-fill.is-warning { background: var(--red); }

/* ---------- How it works ---------- */
.how { scroll-margin-top: 68px; background: var(--sage-tint); padding: 76px 0; }
.how h2 { font: 600 clamp(28px, 3.2vw, 40px) / 1.1 var(--font-head); letter-spacing: -0.02em; margin: 0 0 44px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.how-card { background: var(--surface); border-radius: 22px; padding: 28px; }
.how-num { width: 38px; height: 38px; border-radius: 50%; background: var(--sage); color: #fff; font: 600 18px var(--font-head); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.how-card-title { font: 600 20px var(--font-head); margin-bottom: 9px; }
.how-card p { font-size: 15px; line-height: 1.6; color: var(--body-ink); margin: 0; }

/* ---------- Install in 30 seconds ---------- */
.install { padding: 76px 0; border-bottom: 1px solid var(--line); }
.install-inner { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.install-left { flex: 1 1 340px; min-width: 280px; }
.install-left h2 { font: 600 clamp(28px, 3.2vw, 40px) / 1.1 var(--font-head); letter-spacing: -0.02em; margin: 0 0 14px; }
.install-lead { font-size: 16px; line-height: 1.6; color: var(--lead-ink); margin: 0 0 24px; max-width: 440px; }
.install-warning { background: var(--red-tint); border-radius: 16px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; max-width: 440px; }
.install-warning svg { flex: none; margin-top: 2px; }
.install-warning p { font-size: 14px; line-height: 1.55; color: var(--red-ink); margin: 0; }
.install-right { flex: 1 1 420px; min-width: 300px; display: flex; flex-direction: column; }
.install-step { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.install-right .install-step:last-child { border-bottom: 1px solid var(--line); }
.install-step-num { flex: none; font: 600 15px var(--font-head); color: var(--sage); width: 26px; }
.install-step-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.install-step p { font-size: 14px; color: var(--body-ink); line-height: 1.55; margin: 0; }

/* ---------- Talk to us ---------- */
.talk { scroll-margin-top: 68px; background: var(--dark-bg); color: #fff; padding: 80px 0; }
.talk-inner { display: flex; gap: 56px; flex-wrap: wrap; }
.talk-left { flex: 1 1 380px; min-width: 280px; }
.talk-left h2 { font: 600 clamp(30px, 3.6vw, 44px) / 1.08 var(--font-head); letter-spacing: -0.02em; margin: 0 0 16px; color: #fff; }
.talk-lead { font-size: 17px; line-height: 1.6; color: var(--dark-body); margin: 0 0 28px; max-width: 440px; }
.talk-email-line { font-size: 15px; color: var(--dark-list); }
.talk-email-line a { color: var(--dark-accent); }
.talk-right { flex: 1 1 420px; min-width: 300px; }

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-field { flex: 1 1 150px; display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: 12px; font-weight: 700; color: var(--dark-muted); }
.contact-field input,
.contact-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: #fff;
}
.contact-field textarea { resize: vertical; }
.segment-row { display: flex; gap: 8px; flex-wrap: wrap; }
.segment-chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--dark-muted);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
}
.segment-chip.is-selected {
  border: 1px solid var(--dark-accent);
  background: rgba(111, 179, 168, 0.18);
  color: var(--dark-list);
}
.contact-success { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 22px; padding: 36px; }
.contact-success h3 { font: 600 24px var(--font-head); color: #fff; margin: 0 0 10px; }
.contact-success p { font-size: 15px; line-height: 1.6; color: var(--dark-body); margin: 0; }

/* ---------- Footer ---------- */
footer { background: var(--bg); padding: 52px 0 40px; }
.footer-top { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand { flex: 1 1 240px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--sage); display: flex; align-items: center; justify-content: center; flex: none; }
.footer-brand-mark svg { width: 20px; height: 20px; }
.footer-brand-word .aris { font-weight: 900; font-size: 19px; line-height: 1; color: var(--ink); letter-spacing: -0.5px; }
.footer-brand-word .co { font-weight: 400; font-size: 19px; line-height: 1; color: var(--sage); letter-spacing: -0.3px; }
.footer-brand-copy { font-size: 14px; color: var(--body-ink); line-height: 1.6; max-width: 260px; }
.footer-col { flex: 0 1 150px; display: flex; flex-direction: column; gap: 10px; }
.footer-col-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--lead-ink); }
.footer-bottom { padding-top: 24px; font-size: 13px; color: var(--ink-soft); }
