/* =========================================================
   Ultimate Workout Tracker — landing
   Warm paper, black iron, copper. Quiet chrome, rich proof.
   ========================================================= */

:root {
  --paper: #f1ede3;
  --paper-2: #e8e1d4;
  --paper-3: #faf7f0;
  --ink: #12100d;
  --ink-2: #1c1915;
  --graphite: #2a2621;
  --text: #181510;
  --muted: #6b6256;
  --muted-2: #71675a;
  --line: rgba(24, 21, 16, 0.14);
  --line-strong: rgba(24, 21, 16, 0.24);
  --copper: #9d5424;
  --copper-dark: #84471d;
  --copper-soft: #efddca;
  --copper-ink: #fff9ef;
  --white: #fffdf8;
  --success: #3d6b4c;

  --font-body: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1200px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-soft: 0 20px 55px -36px rgba(22, 17, 10, 0.55);
  --shadow-lift: 0 32px 70px -36px rgba(22, 17, 10, 0.5);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 420ms;
  --dur-slow: 750ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--copper);
  color: var(--copper-ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 580;
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--container), calc(100% - 56px));
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(241, 237, 227, 0.96);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.79rem;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  margin-left: 2px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease);
}

.menu-button[aria-expanded="true"] span:not(.sr-only):first-of-type {
  transform: translateY(3px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:not(.sr-only):last-of-type {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  display: grid;
  gap: 2px;
  padding: 8px 28px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:not(.button) {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.mobile-menu .button {
  margin-top: 14px;
}

/* ---------------------------------------------------------
   Buttons + links
   --------------------------------------------------------- */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 1px solid var(--copper);
  border-radius: var(--radius-sm);
  background: var(--copper);
  color: var(--copper-ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.button:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button svg {
  flex: none;
  transition: transform var(--dur-fast) var(--ease);
}

.button:hover svg {
  transform: translateX(2px);
}

.button-small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 0.76rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.text-link:hover {
  color: var(--text);
  border-color: var(--copper);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  padding: 144px 0 0;
  background: var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: 665px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 16px 0 52px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.mark-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  position: relative;
  flex: none;
}

.mark-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--copper);
}

.hero h1 {
  max-width: 760px;
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(3.55rem, 6.7vw, 6.6rem);
  line-height: 0.91;
  letter-spacing: -0.065em;
  font-weight: 590;
}

.hero h1 .copper,
.copper {
  color: var(--copper);
}

.hero-lede {
  max-width: 50ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.62;
  letter-spacing: -0.012em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.micro-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.01em;
}

.micro-copy span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--copper);
}

/* hero visual */

.hero-visual {
  position: relative;
  min-height: 665px;
  z-index: 1;
}

.plate-frame {
  position: absolute;
  top: 0;
  right: -18px;
  width: min(440px, 82%);
  height: 590px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform 700ms var(--ease);
  will-change: transform;
}

.plate-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% center;
  filter: saturate(0.95) contrast(1.03);
}

.plate-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.plate-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  text-align: right;
  color: rgba(255, 249, 239, 0.8);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.55;
  letter-spacing: 0.015em;
}

.phone {
  position: absolute;
  left: 0;
  bottom: 26px;
  z-index: 3;
  width: 260px;
  transform: rotate(-4deg) translate3d(calc(var(--mx, 0) * -0.4), calc(var(--my, 0) * -0.4), 0);
  transition: transform 700ms var(--ease);
  will-change: transform;
}

.phone-frame {
  padding: 8px;
  border-radius: 36px;
  background: var(--ink);
  box-shadow: 0 35px 65px -28px rgba(18, 11, 4, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-shot {
  width: 100%;
  height: auto;
  border-radius: 29px;
  display: block;
}

.phone-callout {
  position: absolute;
  top: 98px;
  right: -38px;
  display: grid;
  gap: 1px;
  padding: 11px 14px 12px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-soft);
  transform: rotate(3deg);
}

.phone-callout span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.phone-callout strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 620;
}

.preview-note {
  position: absolute;
  right: 0;
  bottom: -4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-note span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--copper);
}

/* metrics */

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 22px 28px 22px 0;
  border-right: 1px solid var(--line);
}

.metric + .metric {
  padding-left: 28px;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 570;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.metric span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

/* ---------------------------------------------------------
   Generic sections
   --------------------------------------------------------- */

.section {
  padding: 118px 0;
}

.section-head {
  margin-bottom: 48px;
}

.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
  gap: 56px;
  align-items: end;
  margin-top: 18px;
}

.section h2 {
  color: var(--ink);
  font-size: clamp(2.45rem, 4.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 570;
}

.section-intro,
.lede {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
  letter-spacing: -0.005em;
}

.section-intro {
  max-width: 42ch;
  padding-bottom: 5px;
}

.fine-print {
  margin-top: 24px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   Proof gallery
   --------------------------------------------------------- */

.proof-section {
  padding-top: 86px;
  padding-bottom: 112px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-head {
  margin-bottom: 34px;
}

.proof-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 52px;
  align-items: end;
  margin-top: 17px;
}

.proof-title-row h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
}

.screen-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.screen-card {
  display: grid;
  gap: 15px;
}

.shot-frame {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: 17px;
}

.screen-card figcaption {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 0 2px;
}

.screen-card figcaption span {
  display: block;
  margin-bottom: 3px;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------
   Plans
   --------------------------------------------------------- */

.plans-section {
  background: var(--paper);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--line);
}

.plan-card {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  padding: 25px 25px 23px;
  background: var(--paper);
  transition: background-color var(--dur) var(--ease);
}

.plan-card:hover {
  background: var(--paper-3);
}

.plan-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.025em;
}

.plan-card h3 {
  margin-top: 42px;
  color: var(--ink);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 570;
}

.plan-card p {
  max-width: 28ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.plan-line {
  width: 34px;
  height: 1px;
  margin-top: auto;
  background: var(--copper);
  transition: width var(--dur) var(--ease);
}

.plan-card:hover .plan-line {
  width: 60px;
}

.plan-card-more {
  background: var(--ink);
}

.plan-card-more:hover {
  background: var(--ink-2);
}

.plan-card-more h3 {
  color: var(--paper);
}

.plan-card-more p,
.plan-card-more .plan-meta {
  color: rgba(241, 237, 227, 0.62);
}

.plan-card-more .plan-line {
  background: var(--copper-bright, #c98a4f);
}

/* ---------------------------------------------------------
   Adaptive section
   --------------------------------------------------------- */

.adaptive-section {
  background: var(--ink);
  color: var(--paper);
}

.adaptive-section .kicker {
  color: rgba(241, 237, 227, 0.55);
}

.adaptive-section h2 {
  color: var(--paper);
}

.adaptive-section .lede {
  color: rgba(241, 237, 227, 0.62);
}

.adaptive-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.adaptive-copy h2 {
  margin-top: 17px;
}

.adaptive-copy .lede {
  max-width: 44ch;
  margin-top: 23px;
}

.adapt-list {
  display: grid;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid rgba(241, 237, 227, 0.16);
}

.adapt-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(241, 237, 227, 0.16);
}

.adapt-item > span {
  color: #c98a4f;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.adapt-item p {
  color: rgba(241, 237, 227, 0.76);
  font-size: 0.8rem;
  line-height: 1.55;
}

.readiness-panel {
  width: min(100%, 580px);
  margin-left: auto;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--paper-3);
  color: var(--ink);
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.8);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-label,
.chart-range,
.demo-duration {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.025em;
}

.panel-date {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.03em;
}

.readiness-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
}

.readiness-selector button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.readiness-selector button:hover {
  color: var(--text);
}

.readiness-selector button.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 4px rgba(22, 17, 10, 0.18);
}

.demo-plan {
  margin-top: 22px;
}

.demo-plan-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.demo-plan-head h3 {
  margin-top: 4px;
  font-size: 1.18rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 570;
}

.demo-exercise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 70px;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.73rem;
}

.demo-exercise span:first-child {
  color: var(--text);
}

.demo-exercise span:not(:first-child) {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-align: right;
}

.demo-target {
  color: var(--copper);
}

.demo-load {
  color: var(--text);
}

.demo-note {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--copper-soft);
}

.demo-note p {
  color: #52351f;
  font-size: 0.72rem;
  line-height: 1.55;
}

.demo-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.59rem;
}

.mini-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.67rem;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.mini-button:hover {
  background: var(--paper-2);
  border-color: var(--copper);
}

.mini-button.is-applied {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--copper-ink);
}

/* ---------------------------------------------------------
   Coach
   --------------------------------------------------------- */

.coach-section {
  background: var(--paper);
}

.coach-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
}

.coach-insight {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  grid-row: span 2;
}

.coach-insight-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.coach-insight .panel-label {
  color: rgba(241, 237, 227, 0.55);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9d3b2;
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.status-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7aae7f;
}

.coach-quote {
  max-width: 30ch;
  margin: 54px 0 32px;
  color: var(--paper);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.27;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.coach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.coach-tags span {
  padding: 5px 8px;
  border: 1px solid rgba(241, 237, 227, 0.16);
  border-radius: 5px;
  color: rgba(241, 237, 227, 0.64);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.coach-chart {
  padding: 24px 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-3);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chart-head h3 {
  margin-top: 4px;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
  font-weight: 570;
}

.trend-chart {
  width: 100%;
  height: auto;
  margin-top: 20px;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(24, 21, 16, 0.1);
  stroke-width: 1;
}

.chart-area {
  fill: rgba(166, 94, 43, 0.11);
}

.chart-line {
  fill: none;
  stroke: var(--copper);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.is-in .chart-line {
  stroke-dashoffset: 0;
}

.chart-point {
  fill: var(--copper);
  stroke: var(--paper-3);
  stroke-width: 2;
}

.chart-labels text {
  fill: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
}

.chart-note {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  line-height: 1.5;
}

.coach-small {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.coach-small p {
  max-width: 35ch;
  padding-right: 20px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.small-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------------------------------------------------------
   Equipment + library
   --------------------------------------------------------- */

.equipment-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.equipment-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.equipment-copy h2 {
  margin-top: 17px;
}

.equipment-copy .lede {
  max-width: 42ch;
  margin-top: 23px;
}

.equipment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 29px;
}

.equipment-chips span,
.library-filter span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1;
}

.equipment-chips .chip-accent {
  border-color: rgba(166, 94, 43, 0.38);
  background: var(--copper-soft);
  color: #673d1c;
}

.library-card {
  padding: 25px;
  border-radius: var(--radius-lg);
  background: var(--paper-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.library-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.library-head h3 {
  margin-top: 4px;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
  font-weight: 570;
}

.library-count {
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.library-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.library-filter span {
  border-color: transparent;
  padding-left: 0;
  padding-right: 9px;
}

.library-filter .is-active {
  color: var(--text);
  border-bottom-color: var(--copper);
  border-radius: 0;
}

.library-list {
  display: grid;
}

.library-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.74rem;
}

.library-list div span:last-child {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.59rem;
}

.library-foot {
  margin-top: 17px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

/* ---------------------------------------------------------
   After
   --------------------------------------------------------- */

.after-section {
  background: var(--paper);
}

.after-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.6fr);
  gap: 48px;
  align-items: end;
  margin: 17px 0 45px;
}

.after-head h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
}

.after-head p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  padding-bottom: 4px;
}

.after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.after-card {
  min-height: 250px;
  padding: 24px 30px 26px 0;
  border-right: 1px solid var(--line);
}

.after-card + .after-card {
  padding-left: 30px;
}

.after-card:last-child {
  border-right: 0;
}

.after-index {
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.after-card h3 {
  margin-top: 48px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  font-weight: 570;
}

.after-card p {
  max-width: 30ch;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.faq-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.faq-copy h2 {
  margin-top: 17px;
}

.faq-copy .lede {
  max-width: 34ch;
  margin-top: 23px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  position: relative;
  padding: 20px 36px 20px 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 520;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 18px;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  transition: transform var(--dur-fast) var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 62ch;
  padding: 0 36px 20px 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.68;
}

/* ---------------------------------------------------------
   Final CTA
   --------------------------------------------------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 116px 0 108px;
  background: var(--ink);
  color: var(--paper);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/plate-dark.webp") center 38% / cover no-repeat;
  opacity: 0.24;
  filter: saturate(0.7);
  pointer-events: none;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(18, 16, 13, 0.94) 44%, rgba(18, 16, 13, 0.58) 100%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.final-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 27px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(241, 237, 227, 0.16);
}

.final-mark img {
  width: 100%;
  height: 100%;
}

.final-cta .kicker {
  color: rgba(241, 237, 227, 0.56);
}

.final-cta h2 {
  margin-top: 17px;
  color: var(--paper);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  font-weight: 570;
}

.final-cta p:not(.kicker, .fine-print) {
  max-width: 44ch;
  margin-top: 24px;
  color: rgba(241, 237, 227, 0.65);
  font-size: 0.95rem;
  line-height: 1.65;
}

.final-cta .button {
  margin-top: 30px;
}

.final-fine {
  color: rgba(241, 237, 227, 0.42);
  margin-top: 18px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(241, 237, 227, 0.12);
}

.footer-grid {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 26px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(241, 237, 227, 0.76);
  font-size: 0.72rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.footer-links a {
  color: rgba(241, 237, 227, 0.5);
  font-size: 0.68rem;
  transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-note {
  width: 100%;
  color: rgba(241, 237, 227, 0.35);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   Motion
   --------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--delay, 0ms);
}

html.js .hero .reveal,
html.js .hero-metrics .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.plan-card,
.coach-small,
.shot-frame,
.library-card {
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.plan-card:hover,
.coach-small:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .plate-frame,
  .phone {
    transform: none;
  }

  .chart-line {
    stroke-dashoffset: 0;
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 6.2vw, 5.4rem);
  }

  .plate-frame {
    right: 0;
    width: 92%;
    height: 550px;
  }

  .phone {
    width: 235px;
  }

  .phone-callout {
    right: -18px;
  }

  .screen-rail {
    gap: 14px;
  }

  .adaptive-grid,
  .equipment-grid {
    gap: 52px;
  }

  .footer-grid {
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
  }

  .hero-copy {
    padding-bottom: 10px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 10vw, 5.6rem);
  }

  .hero-lede {
    max-width: 54ch;
  }

  .hero-visual {
    min-height: 590px;
    margin-top: 18px;
  }

  .plate-frame {
    top: 0;
    right: 0;
    width: min(440px, 82%);
    height: 520px;
  }

  .phone {
    width: 225px;
    left: 0;
    bottom: 0;
  }

  .phone-callout {
    top: 66px;
    right: -14px;
  }

  .preview-note {
    right: 0;
    bottom: -10px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric {
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-bottom: 0;
  }

  .section {
    padding: 84px 0;
  }

  .section-head-row,
  .proof-title-row,
  .after-head {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .section-intro {
    max-width: 54ch;
  }

  .screen-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adaptive-grid,
  .equipment-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .readiness-panel {
    margin-left: 0;
  }

  .coach-board {
    grid-template-columns: 1fr;
  }

  .coach-insight {
    grid-row: auto;
    min-height: 300px;
  }

  .coach-quote {
    margin-top: 38px;
  }

  .after-grid {
    grid-template-columns: 1fr;
  }

  .after-card,
  .after-card + .after-card {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .after-card:last-child {
    border-bottom: 0;
  }

  .after-card h3 {
    margin-top: 20px;
  }

  .final-cta {
    padding: 88px 0 84px;
  }

  .final-cta::after {
    background: linear-gradient(90deg, var(--ink) 0%, rgba(18, 16, 13, 0.9) 72%, rgba(18, 16, 13, 0.6) 100%);
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(var(--container), calc(100% - 36px));
  }

  .nav-wrap {
    min-height: 66px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy strong {
    font-size: 0.83rem;
  }

  .brand-copy span {
    font-size: 0.58rem;
  }

  .hero {
    padding-top: 105px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(3rem, 13vw, 4.65rem);
    line-height: 0.94;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 0.95rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 27px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 475px;
    margin-top: 10px;
  }

  .plate-frame {
    width: 87%;
    height: 395px;
    border-radius: 22px;
  }

  .phone {
    width: 177px;
    bottom: 22px;
    left: 0;
  }

  .phone-frame {
    padding: 6px;
    border-radius: 29px;
  }

  .phone-shot {
    border-radius: 23px;
  }

  .phone-callout {
    top: 48px;
    right: -12px;
    padding: 8px 10px;
  }

  .phone-callout span {
    font-size: 0.5rem;
  }

  .phone-callout strong {
    font-size: 0.68rem;
  }

  .preview-note {
    display: none;
  }

  .hero-metrics {
    margin-top: 27px;
  }

  .metric {
    min-height: 88px;
    padding: 16px 12px 16px 0;
  }

  .metric + .metric {
    padding-left: 16px;
  }

  .metric strong {
    font-size: 1.55rem;
  }

  .metric span {
    font-size: 0.55rem;
  }

  .section {
    padding: 72px 0;
  }

  .section h2,
  .proof-title-row h2 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .section-head {
    margin-bottom: 31px;
  }

  .proof-section {
    padding-top: 61px;
    padding-bottom: 72px;
  }

  .screen-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 13px;
    margin-right: -18px;
    padding-right: 18px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .screen-rail::-webkit-scrollbar {
    display: none;
  }

  .screen-card {
    flex: 0 0 68%;
    scroll-snap-align: start;
  }

  .screen-card figcaption {
    font-size: 0.65rem;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 180px;
    padding: 21px 20px;
  }

  .plan-card h3 {
    margin-top: 27px;
  }

  .readiness-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .demo-exercise {
    grid-template-columns: minmax(0, 1fr) 67px 54px;
    gap: 6px;
    font-size: 0.66rem;
  }

  .demo-exercise span:not(:first-child) {
    font-size: 0.57rem;
  }

  .demo-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .coach-insight {
    min-height: 0;
    padding: 22px;
  }

  .coach-quote {
    margin: 34px 0 26px;
    font-size: 1.35rem;
  }

  .coach-chart {
    padding: 19px 17px 15px;
  }

  .equipment-chips span,
  .library-filter span {
    font-size: 0.56rem;
  }

  .library-card {
    padding: 20px;
  }

  .after-head {
    margin-bottom: 30px;
  }

  .faq-list summary {
    padding-top: 17px;
    padding-bottom: 17px;
    font-size: 0.87rem;
  }

  .faq-list details p {
    font-size: 0.78rem;
  }

  .final-cta {
    padding: 72px 0 68px;
  }

  .final-cta h2 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .footer-grid {
    gap: 16px;
    padding: 23px 0;
  }

  .footer-links {
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .footer-note {
    order: 4;
  }
}


/* ---------------------------------------------------------
   Theme + language controls
   --------------------------------------------------------- */

.nav-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--paper-3);
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

.lang-wrap {
  position: relative;
}

.lang-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--paper-3);
}

.lang-toggle svg {
  transition: transform var(--dur-fast) var(--ease);
}

.lang-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 152px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-3);
  box-shadow: var(--shadow-soft);
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 0.72rem;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.is-current {
  background: var(--paper-2);
  color: var(--text);
}

.mobile-tools {
  display: grid;
  gap: 10px;
  padding: 14px 0 4px;
}

.mobile-tool {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 0.75rem;
  cursor: pointer;
}

.mobile-tool strong {
  color: var(--text);
  font-weight: 520;
}

.mobile-lang {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.mobile-lang button {
  min-height: 33px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 0.66rem;
  cursor: pointer;
}

.mobile-lang button:hover,
.mobile-lang button.is-current {
  border-color: var(--copper);
  color: var(--text);
}

/* ---------------------------------------------------------
   Dark theme
   --------------------------------------------------------- */

[data-theme="dark"] {
  --paper: #0f0e0c;
  --paper-2: #15130f;
  --paper-3: #1c1814;
  --ink: #f2ede3;
  --ink-2: #fbf7ef;
  --text: #f2ede3;
  --muted: #a89e90;
  --muted-2: #8f8578;
  --line: rgba(242, 237, 227, 0.14);
  --line-strong: rgba(242, 237, 227, 0.25);
  --copper: #d09257;
  --copper-dark: #b4773e;
  --copper-soft: #2b2017;
  --copper-ink: #160f09;
  --white: #fbf7ef;
  --shadow-soft: 0 24px 60px -35px rgba(0, 0, 0, 0.8);
  --shadow-lift: 0 35px 80px -35px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] body {
  background: var(--paper);
}

[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(15, 14, 12, 0.96);
}

[data-theme="dark"] .plate-frame,
[data-theme="dark"] .phone-frame,
[data-theme="dark"] .shot-frame {
  background: #090807;
  border-color: rgba(242, 237, 227, 0.14);
}

[data-theme="dark"] .phone-callout {
  background: var(--paper-3);
}

[data-theme="dark"] .plan-card-more {
  background: #211a13;
}

[data-theme="dark"] .plan-card-more h3 {
  color: var(--paper);
}

[data-theme="dark"] .plan-card-more p,
[data-theme="dark"] .plan-card-more .plan-meta {
  color: rgba(242, 237, 227, 0.6);
}

[data-theme="dark"] .adaptive-section {
  background: #090807;
  color: var(--ink);
}

[data-theme="dark"] .adaptive-section h2 {
  color: var(--ink);
}

[data-theme="dark"] .adaptive-section .lede {
  color: rgba(242, 237, 227, 0.64);
}

[data-theme="dark"] .readiness-selector button.is-active {
  background: var(--copper);
  color: var(--copper-ink);
}

[data-theme="dark"] .demo-note {
  background: #2b2017;
}

[data-theme="dark"] .demo-note p {
  color: #e5c7ac;
}

[data-theme="dark"] .coach-insight {
  background: #211a13;
}

[data-theme="dark"] .coach-chart {
  background: var(--paper-3);
}

[data-theme="dark"] .coach-chart .chart-area {
  fill: rgba(208, 146, 87, 0.13);
}

[data-theme="dark"] .chart-point {
  stroke: var(--paper-3);
}

[data-theme="dark"] .equipment-chips .chip-accent {
  background: #2b2017;
  color: #e5c7ac;
  border-color: rgba(208, 146, 87, 0.38);
}

[data-theme="dark"] .final-cta {
  background: #070605;
  color: var(--ink);
}

[data-theme="dark"] .site-footer {
  background: #070605;
  color: var(--ink);
}

[data-theme="dark"] .faq-list summary {
  color: var(--ink);
}

[data-theme="dark"] .faq-list details p {
  color: var(--muted);
}

[data-theme="dark"] .final-cta h2 {
  color: var(--ink);
}

[data-theme="dark"] .final-cta .fine-print,
[data-theme="dark"] .final-fine {
  color: rgba(242, 237, 227, 0.42);
}

[data-theme="dark"] .footer-links a {
  color: rgba(242, 237, 227, 0.5);
}

[data-theme="dark"] .footer-note {
  color: rgba(242, 237, 227, 0.35);
}

[data-theme="dark"] .button:hover {
  background: var(--copper-dark);
}

[data-theme="dark"] .menu-button span:not(.sr-only) {
  background: var(--ink);
}

[data-theme="dark"] .mini-button {
  color: var(--ink);
}

[data-theme="dark"] .mini-button:hover {
  background: var(--paper-2);
}

[data-theme="dark"] .mobile-tool,
[data-theme="dark"] .lang-toggle,
[data-theme="dark"] .icon-button,
[data-theme="dark"] .lang-menu button,
[data-theme="dark"] .mobile-lang button {
  color: var(--muted);
}

[data-theme="dark"] .lang-menu button:hover,
[data-theme="dark"] .lang-menu button.is-current {
  background: var(--paper-2);
  color: var(--ink);
}

/* ---------------------------------------------------------
   RTL
   --------------------------------------------------------- */

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .nav-cta {
  margin-left: 0;
  margin-right: 2px;
}

html[dir="rtl"] .hero-copy {
  text-align: right;
}

html[dir="rtl"] .hero h1 {
  margin-right: 0;
}

html[dir="rtl"] .hero-visual .plate-frame {
  right: auto;
  left: -18px;
}

html[dir="rtl"] .phone {
  left: auto;
  right: 0;
  transform: rotate(4deg) translate3d(calc(var(--mx, 0) * -0.4), calc(var(--my, 0) * -0.4), 0);
}

html[dir="rtl"] .phone-callout {
  right: auto;
  left: -38px;
  transform: rotate(-3deg);
}

html[dir="rtl"] .preview-note {
  right: auto;
  left: 0;
}

html[dir="rtl"] .section-head-row,
html[dir="rtl"] .proof-title-row,
html[dir="rtl"] .after-head {
  text-align: right;
}

html[dir="rtl"] .plan-card,
html[dir="rtl"] .after-card,
html[dir="rtl"] .coach-small,
html[dir="rtl"] .library-card,
html[dir="rtl"] .faq-copy {
  text-align: right;
}

html[dir="rtl"] .plan-meta,
html[dir="rtl"] .panel-top,
html[dir="rtl"] .coach-insight-top,
html[dir="rtl"] .chart-head,
html[dir="rtl"] .library-head,
html[dir="rtl"] .demo-plan-head,
html[dir="rtl"] .demo-action,
html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .lang-menu button,
html[dir="rtl"] .mobile-tool {
  text-align: right;
}

html[dir="rtl"] .faq-list summary {
  padding-left: 36px;
  padding-right: 0;
}

html[dir="rtl"] .faq-list summary::after {
  right: auto;
  left: 2px;
}

html[dir="rtl"] .faq-list details p {
  padding-left: 36px;
  padding-right: 0;
}

html[dir="rtl"] .small-arrow {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .footer-links {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .metric {
  padding-right: 0;
  padding-left: 28px;
  border-right: 0;
  border-left: 1px solid var(--line);
}

html[dir="rtl"] .metric + .metric {
  padding-left: 0;
  padding-right: 28px;
}

html[dir="rtl"] .plan-card,
html[dir="rtl"] .after-card {
  border-right: 0;
}

html[dir="rtl"] .after-card {
  border-left: 1px solid var(--line);
}

html[dir="rtl"] .after-card + .after-card {
  padding-left: 0;
  padding-right: 30px;
}

html[dir="rtl"] .after-card:last-child {
  border-left: 0;
}

@media (max-width: 900px) {
  .nav-tools {
    margin-left: auto;
    margin-right: 4px;
  }

  html[dir="rtl"] .nav-tools {
    margin-left: 4px;
    margin-right: auto;
  }

  .mobile-lang {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[dir="rtl"] .hero-visual .plate-frame {
    right: auto;
    left: 0;
  }

  html[dir="rtl"] .phone {
    right: 0;
    left: auto;
  }

  html[dir="rtl"] .phone-callout {
    left: -14px;
    right: auto;
  }
}

@media (max-width: 620px) {
  .nav-tools {
    gap: 3px;
  }

  .nav-tools .lang-wrap {
    display: none;
  }

  .nav-tools .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .hero-actions .text-link {
    min-height: 35px;
  }
}


/* Correct mobile grid shrink and numeric isolation */
.hero-grid,
.hero-copy,
.hero-visual,
.hero-copy > * {
  min-width: 0;
}

.hero h1,
.hero-lede,
.hero-actions {
  max-width: 100%;
}

html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] .button,
html[lang="ar"] .plan-card h3,
html[lang="ar"] .section h2 {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[lang="ar"] .hero h1 {
  letter-spacing: -0.03em;
  line-height: 1.04;
}

html[dir="rtl"] .phone-callout strong,
html[dir="rtl"] .metric strong {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="rtl"] .phone-callout strong {
  text-align: left;
}

@media (max-width: 620px) {
  .hero-copy,
  .hero-actions,
  .hero-lede {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }
}


/* Dark surfaces: preserve light type on the ink cards. */
[data-theme="dark"] .coach-insight {
  color: var(--ink);
}

[data-theme="dark"] .coach-quote {
  color: var(--ink);
}

[data-theme="dark"] .plan-card-more h3 {
  color: var(--ink);
}

[data-theme="dark"] .plan-card-more .plan-meta {
  color: rgba(242, 237, 227, 0.62);
}

[data-theme="dark"] .plan-card-more p {
  color: rgba(242, 237, 227, 0.62);
}

[data-theme="dark"] .final-cta::before {
  opacity: 0.18;
}

[data-theme="dark"] .final-cta::after {
  background: linear-gradient(90deg, #070605 0%, rgba(7, 6, 5, 0.95) 44%, rgba(7, 6, 5, 0.62) 100%);
}


/* Theme cross-fade without animating layout. */
body,
.hero,
.proof-section,
.plans-section,
.adaptive-section,
.coach-section,
.equipment-section,
.after-section,
.faq-section,
.final-cta,
.site-footer,
.site-header.is-scrolled,
.plan-card,
.plan-card-more,
.library-card,
.readiness-panel,
.demo-note,
.coach-insight,
.coach-chart,
.shot-frame,
.phone-frame,
.final-mark,
.equipment-chips .chip-accent {
  transition: background-color 450ms var(--ease), color 450ms var(--ease), border-color 450ms var(--ease);
}


@media (max-width: 620px) {
  .nav-wrap {
    gap: 10px;
  }

  .nav-tools .lang-wrap {
    display: inline-flex;
  }
}

@media (max-width: 440px) {
  .nav-tools .lang-wrap {
    display: none;
  }
}
