/* WOD Timer website: sales page and thanks page. Same palette and fonts as the app. */
:root {
  --bg: #0b0b0d;
  --surface-1: #17171a;
  --surface-2: #202024;
  --line: #2a2a2f;
  --line-strong: #3a3a40;
  --ink: #f2efe8;
  --ink-muted: #a3a098;
  --ink-faint: #8a877f; /* ≥ 4.5:1 on --bg */
  --green: #1f6b47;
  --green-ink: #3fb57c;
  --red: #962820;
  --amber: #82590f;
  --font-display: 'Archivo ExtraCondensed', 'Oswald', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --radius: 4px;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { margin: 0; font-family: var(--font-heading); text-transform: uppercase; line-height: 1.05; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 28px; }
h3 { font-size: 1.15rem; letter-spacing: 0.04em; margin-bottom: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-large { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; background: var(--surface-2); border-color: var(--line-strong); }
.btn-small:hover { border-color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 36px; height: 36px; }
.logo-wod { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; line-height: 1; }
.logo-timer { font-family: var(--font-heading); font-weight: 500; font-size: 1rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-muted); }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-weight: 500; }
.header-nav a:not(.btn) { text-decoration: none; color: var(--ink-muted); }
.header-nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 72px; background: radial-gradient(ellipse at 75% 0%, rgba(31, 107, 71, 0.18), transparent 60%); }
.hero-inner { display: grid; gap: 48px; align-items: center; }
.eyebrow { margin-bottom: 14px; font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-ink); }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 0.95; letter-spacing: 0.005em; }
.hero h1 span { display: block; color: var(--green-ink); }
.lede { margin-top: 20px; max-width: 38ch; font-size: 1.15rem; color: var(--ink-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fineprint { margin-top: 14px; font-size: 0.9rem; color: var(--ink-faint); }

/* The big screen around the hero screenshot */
.bigscreen { margin: 0; }
.bigscreen-frame {
  padding: 10px; background: #050505; border: 1px solid #2f2f34; border-radius: 10px;
  box-shadow: 0 0 0 6px #121214, 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.bigscreen-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.bigscreen-stand {
  width: 24%; height: 34px; margin: 6px auto 0;
  background: linear-gradient(#1a1a1d, #0e0e10);
  clip-path: polygon(40% 0, 60% 0, 72% 100%, 28% 100%);
}

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-intro { margin: -14px 0 32px; max-width: 60ch; color: var(--ink-muted); }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.step img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px;
  border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 0.95rem; vertical-align: 1px;
}
.step p, .feature p { color: var(--ink-muted); }

.features { background: var(--surface-1); }
.feature-grid { display: grid; gap: 16px; align-items: start; }
.feature { padding: 22px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius); }
.feature-green { border-left-color: var(--green); }
.feature-red { border-left-color: var(--red); }
.feature-amber { border-left-color: var(--amber); }
.feature img { width: 100%; margin-bottom: 16px; border-radius: 3px; }

.table-scroll { overflow-x: auto; }
.compare-table { width: 100%; min-width: 30rem; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { font-family: var(--font-heading); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.compare-table .col-offline { background: rgba(31, 107, 71, 0.1); }
.compare-table .yes { color: var(--green-ink); font-weight: 600; }
.compare-table .no { color: var(--ink-faint); }
.compare-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.faq-list { max-width: 48rem; }
.faq-list details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq-list details p { margin-top: 10px; max-width: 62ch; color: var(--ink-muted); }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-faint); }
.footer-inner { display: grid; gap: 24px; }
.site-footer h2 { margin: 0 0 8px; font-size: 0.95rem; color: var(--ink-muted); }
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: var(--ink-muted); }

/* Thanks page */
.thanks { padding: 56px 0 72px; }
.thanks h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 6vw, 3.6rem); }
.thanks .lede { max-width: 46ch; }
.thanks-block { max-width: 48rem; margin-top: 44px; }
.thanks-block h2 { margin-bottom: 12px; font-size: 1.4rem; }
.thanks-block ol, .thanks-block ul { margin: 0; padding-left: 1.3em; color: var(--ink-muted); }
.thanks-block li { margin: 6px 0; }
code, kbd { font-family: 'Chivo Mono', monospace; font-size: 0.9em; padding: 1px 6px; background: var(--surface-2); border-radius: 3px; }

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .step-list { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 5fr 6fr; }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .header-nav a:not(.btn) { display: none; }
  .logo-timer { display: none; }
}

/* Page load: the hero arrives like a scoreboard switching on */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .bigscreen { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .bigscreen { animation-delay: 0.15s; }
  .bigscreen-frame img { animation: power-on 0.9s ease-out 0.35s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes power-on { from { opacity: 0; filter: brightness(2.2); } 40% { opacity: 1; } }
