/* =========================================================
   WODAN Workout — website styles
   Edit colours, fonts and spacing in :root below.
   ========================================================= */

@font-face { font-family: "Ubuntu"; src: url("../fonts/ubuntu-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("../fonts/ubuntu-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --accent: #DFFF00;
  --bg: #090A0B;
  --surface: #171819;
  --surface-2: #1E1F21;
  --border: #333536;
  --border-strong: #75797A;   /* form fields: ≥3:1 against surface */
  --text: #F6F6F2;
  --muted: #A9ADAD;
  --error: #FF8A7A;

  --font-head: "Ubuntu", Arial, Helvetica, sans-serif;
  --font-body: "Karla", Arial, Helvetica, sans-serif;

  --radius-sm: 8px;
  --radius: 16px;
  --content: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 11vw, 148px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw + .6rem, 3.4rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: 1.125rem; margin-top: 18px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: var(--radius-sm);
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary:focus-visible { outline-color: var(--text); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 10, 11, .86);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span span { color: var(--muted); font-weight: 500; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a { display: block; white-space: nowrap; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; color: var(--muted); font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.header-cta { min-height: 44px; padding: 10px 16px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 479px) { .hide-xs { display: none; } .header-cta { padding-inline: 14px; } }
@media (min-width: 1000px) { .nav { display: block; } }
@media (max-width: 379px) { .brand-word { display: none; } }

/* ---------- Screenshot frame (screenshots keep their own aspect ratio) ---------- */
.phone {
  position: relative; width: 100%; max-width: 320px;
  padding: 8px; border-radius: 30px;
  background: #121314; border: 1px solid var(--border);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9);
}
.phone img { width: 100%; height: auto; border-radius: 22px; background: var(--surface); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) var(--section); }
.hero-grid { display: grid; gap: clamp(48px, 7vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 7.2vw + .8rem, 5.6rem); margin: 22px 0 24px; max-width: 12ch; }
.hero-lead { font-size: clamp(1.125rem, .6vw + 1rem, 1.3rem); color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-note { margin-top: 24px; font-size: .9375rem; color: var(--muted); max-width: 32rem; display: flex; gap: 10px; }
.hero-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone-main { max-width: 340px; z-index: 2; }
.hero-visual .phone-back { display: none; }
@media (min-width: 560px) {
  .hero-visual { padding-right: 90px; justify-content: center; }
  .hero-visual .phone-back {
    display: block; position: absolute; max-width: 250px; right: calc(50% - 215px); top: 64px; z-index: 1; opacity: .9;
  }
}
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-visual { padding-right: 0; justify-content: flex-end; }
  .hero-visual .phone-main { max-width: 290px; margin-right: 70px; }
  .hero-visual .phone-back { right: 0; max-width: 230px; }
}
@media (min-width: 1100px) {
  .hero-visual .phone-main { max-width: 380px; margin-right: 120px; }
  .hero-visual .phone-back { max-width: 280px; }
}

/* ---------- Benefits ---------- */
.benefits { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--border); }
.benefit { padding-block: 32px; border-bottom: 1px solid var(--border); display: grid; gap: 14px; }
.benefit-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.benefit-icon svg { width: 22px; height: 22px; }
.benefit p { color: var(--muted); }
@media (min-width: 760px) {
  .benefits { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: clamp(24px, 4vw, 56px); }
  .benefit { border-bottom: 0; border-top: 1px solid var(--border); padding-top: 32px; align-content: start; }
}

/* ---------- How it works ---------- */
.how-grid { display: grid; gap: 48px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; padding-block: 26px; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent); padding-top: 4px; min-width: 2ch;
}
.step p { color: var(--muted); }
.rir {
  background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); align-self: start;
}
.rir h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.rir h3 abbr { text-decoration: none; color: var(--accent); }
.rir p + p { margin-top: 12px; }
.rir p { color: var(--muted); }
.rir strong { color: var(--text); }
.rir-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; list-style: none; }
.rir-scale li { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.rir-scale b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--text); }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1.25fr .75fr; gap: clamp(48px, 7vw, 96px); } }

/* ---------- Product tour ---------- */
.tour-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 calc(var(--gutter) * -1) 40px;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tab {
  flex: none; min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  font: 700 .95rem/1.2 var(--font-body); white-space: nowrap; transition: color .2s, background-color .2s, border-color .2s;
}
.tour-tab:hover { color: var(--text); border-color: var(--muted); }
.tour-tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tour-panel { display: grid; gap: 40px; align-items: center; }
.tour-panel[hidden] { display: none; }
.tour-panel .phone { margin-inline: auto; max-width: 290px; }
.tour-copy h3 { font-size: clamp(1.6rem, 2.4vw + .8rem, 2.4rem); margin-bottom: 18px; }
.tour-copy p { color: var(--muted); font-size: 1.125rem; max-width: 32rem; }
.tour-points { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.tour-points li { display: flex; gap: 12px; color: var(--text); }
.tour-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .65em; flex: none; }
.tour-panel.is-entering { animation: panelIn .35s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 760px) {
  .tour-tabs { margin-inline: 0; padding-inline: 4px; flex-wrap: wrap; overflow: visible; }
  .tour-panel { grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(40px, 7vw, 110px); }
  .tour-panel .phone { margin: 0; max-width: 360px; }
}

/* ---------- Train anywhere ---------- */
.contexts { display: grid; gap: 40px; list-style: none; }
.context h3 { margin: 18px 0 12px; }
.context p { color: var(--muted); }
.context .note { margin-top: 12px; font-size: .9375rem; color: var(--muted); border-left: 2px solid var(--border); padding-left: 12px; }
@media (min-width: 760px) { .contexts { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); } }

.feature-row {
  display: grid; gap: 40px; align-items: center;
  margin-top: clamp(72px, 10vw, 128px); background: var(--surface); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(28px, 6vw, 72px); overflow: hidden;
}
.feature-row .phone { max-width: 270px; margin-inline: auto; background: var(--bg); }
.feature-row h3 { font-size: clamp(1.6rem, 2.4vw + .8rem, 2.4rem); margin: 16px 0 18px; }
.feature-row p { color: var(--muted); font-size: 1.0625rem; }
.also { list-style: none; display: grid; gap: 10px; margin-top: 28px; }
.also li { display: flex; gap: 12px; align-items: flex-start; }
.also svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
@media (min-width: 760px) {
  .feature-row { grid-template-columns: 1fr minmax(220px, 300px); }
  .feature-row .phone { margin: 0 0 0 auto; }
}

/* ---------- Beta ---------- */
.beta { display: grid; gap: 40px; }
.beta-lists { display: grid; gap: 16px; }
.beta-card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 4vw, 32px); }
.beta-card h3 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.beta-card ul { list-style: none; display: grid; gap: 10px; color: var(--muted); }
.beta-card li { display: flex; gap: 12px; }
.beta-card li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.beta-card .yes svg { color: var(--accent); }
.beta-card .later svg { color: var(--muted); }
.tag { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.tag-on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.beta .btn { margin-top: 32px; }
.small-print { margin-top: 16px; font-size: .9375rem; color: var(--muted); }
@media (min-width: 900px) { .beta { grid-template-columns: .95fr 1.05fr; gap: clamp(48px, 7vw, 96px); align-items: start; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--font-head); font-weight: 500; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--accent), var(--accent)) center/100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center/2px 100% no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 46rem; }
.faq .answer p + p { margin-top: 10px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .7fr 1.3fr; gap: clamp(48px, 7vw, 96px); } }

/* ---------- Waitlist ---------- */
.waitlist {
  background: var(--surface); border-radius: calc(var(--radius) * 1.5); padding: clamp(28px, 6vw, 72px);
  display: grid; gap: 40px;
}
.waitlist h2 { margin: 18px 0 18px; }
.waitlist-intro p { color: var(--muted); font-size: 1.125rem; max-width: 30rem; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type="email"], .field input[type="text"] {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong);
  font: 400 1.0625rem/1.3 var(--font-body);
}
.field input::placeholder { color: #7f8384; }
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9375rem; font-weight: 700; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.check strong { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-meta { font-size: .9375rem; color: var(--muted); }
.form-meta a { color: var(--text); text-underline-offset: 3px; }
.form-status { border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 700; display: flex; gap: 12px; align-items: flex-start; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { background: rgba(255, 138, 122, .1); color: var(--error); }
.form-status[data-state="preview"] { background: var(--bg); color: var(--muted); border: 1px dashed var(--border-strong); }
.success { display: grid; gap: 14px; align-content: start; }
.success-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; }
.success-mark svg { width: 26px; height: 26px; }
.success h3 { font-size: 1.6rem; }
.success p { color: var(--muted); }
.success:focus { outline: none; }
@media (min-width: 900px) { .waitlist { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 40px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 56px; height: 56px; border-radius: 14px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.125rem; display: block; }
.footer-brand span { color: var(--muted); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 700; display: inline-block; padding: 8px 0; }
.footer-links a:hover { color: var(--text); }
.footer-small { color: var(--muted); font-size: .875rem; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Legal page ---------- */
.legal { max-width: 760px; padding-block: clamp(48px, 8vw, 96px); }
.legal h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); margin: 18px 0 24px; }
.legal h2 { font-size: 1.4rem; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; margin-top: 12px; }
.legal strong { color: var(--text); }
.legal a { color: var(--text); text-underline-offset: 3px; }
.draft-banner { background: rgba(223, 255, 0, .08); border: 1px dashed var(--accent); color: var(--text); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 700; }
mark.todo { background: var(--accent); color: var(--bg); padding: 0 4px; border-radius: 3px; font-weight: 700; }

/* ---------- Reveal on scroll (only with JS + motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
