/* Workoutzone — marketing site. Same tokens as the app (WorkoutzoneUI/Theme.swift). No JavaScript, no third parties. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0f0f0d;
  --surface-1: #1a1a17;
  --surface-2: #25241f;
  --surface-3: #3a3933;
  --line: #302f29;
  --text: #f4f3ee;
  --muted: #a8a79e;
  --accent: #f5d635;
  --on-accent: #14130f;
  --warn: #ff7a50;
  --radius: 24px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 "Archivo", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 10px; }
.skip:focus { left: 8px; z-index: 10; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono.accent { color: var(--accent); }
.display {
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(15 15 13 / .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 18px; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-stretch: 125%; font-size: 12px; letter-spacing: -.02em;
}
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .site-nav .optional { display: none; } .site-nav { gap: 16px; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.pill.primary { background: var(--accent); color: var(--on-accent); }
.pill.ghost { border: 1.5px solid var(--line); color: var(--text); }
.pill.primary:hover { color: var(--on-accent); filter: brightness(1.05); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(52px, 9vw, 104px); margin: 18px 0 22px; }
.hero h1 span { color: var(--accent); }
.hero p.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; justify-self: center; width: min(100%, 360px); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { width: min(80%, 320px); }
}

.phone {
  border-radius: 46px; padding: 8px; background: #2a2a27;
  box-shadow: 0 30px 80px rgb(0 0 0 / .55), inset 0 0 0 1.5px #3a3933;
}
.phone img { border-radius: 39px; }

/* Watch mock, drawn in CSS (no watch screenshots needed) */
.watch {
  position: absolute; right: -28px; bottom: 48px; width: 132px; aspect-ratio: 208 / 248;
  border-radius: 34px; padding: 9px; background: #1e1e1b; box-shadow: 0 20px 50px rgb(0 0 0 / .6), inset 0 0 0 2px #34332e;
}
.watch-screen {
  height: 100%; border-radius: 26px; background: var(--accent); color: var(--on-accent);
  display: flex; flex-direction: column; padding: 12px 12px 10px; overflow: hidden;
}
.watch-screen .top { display: flex; justify-content: space-between; font: 600 7px/1 "JetBrains Mono", monospace; letter-spacing: .06em; }
.watch-screen .label { font-weight: 800; font-size: 12px; letter-spacing: .04em; margin-top: 8px; }
.watch-screen .big { font-weight: 800; font-stretch: 125%; font-size: 38px; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.watch-screen .strip { margin-top: auto; display: flex; gap: 2px; align-items: flex-end; height: 8px; }
.watch-screen .strip i { flex: 1; height: 4px; border-radius: 2px; background: rgb(20 19 15 / .25); }
.watch-screen .strip i.r { height: 8px; }
.watch-screen .strip i.d { background: var(--on-accent); }
@media (max-width: 860px) { .watch { right: -12px; width: 108px; } }

/* Sections */
section { padding: clamp(48px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); margin: 12px 0 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface-1); border-radius: var(--radius); padding: 24px 24px 0; display: flex; flex-direction: column; overflow: hidden; }
.feature h3 { font-size: 22px; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; margin: 10px 0 8px; line-height: 1.15; }
.feature p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.feature .shot { margin-top: auto; border-radius: 28px 28px 0 0; overflow: hidden; border: 6px solid #2a2a27; border-bottom: 0; aspect-ratio: 9 / 11; }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } .feature .shot { aspect-ratio: 4 / 3; } }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }
.rule { border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.rule .mono { color: var(--accent); }
.rule h3 { font-size: 19px; margin: 10px 0 6px; font-weight: 700; }
.rule p { margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist li::before {
  content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px;
}
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 15px; }

.card { background: var(--surface-1); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.card.yellow { background: var(--accent); color: var(--on-accent); }
.card.yellow .mono { color: var(--on-accent); }
.card.yellow a { color: var(--on-accent); }
.cta { text-align: center; }
.cta h2 { font-size: clamp(34px, 6vw, 64px); margin: 12px 0 16px; }
.cta p { margin: 0 auto 26px; max-width: 46ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Legal / long-form pages */
.doc { padding: clamp(40px, 7vw, 80px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); margin: 12px 0 10px; }
.doc .updated { margin-bottom: 36px; }
.doc h2 { font-size: 24px; font-weight: 800; font-stretch: 112%; margin: 44px 0 12px; letter-spacing: -.01em; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: #d9d8d1; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc strong { color: var(--text); }
.doc .callout { border: 1.5px solid var(--accent); border-radius: 18px; padding: 16px 18px; margin: 24px 0; }
.doc .callout p { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.doc .faq h2 { font-size: 20px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.doc .toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-1); color: var(--text); text-decoration: none; font-size: 14px; }
.doc .steps { counter-reset: s; list-style: none; padding: 0; }
.doc .steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin: 14px 0; }
.doc .steps li::before {
  content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: var(--surface-2); color: var(--accent); font: 600 13px "JetBrains Mono", monospace;
}

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