@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --line: #26262b;
  --line-soft: #1e1e22;
  --ink: #f4f4f5;
  --muted: #9b9ba3;
  --muted-2: #6e6e77;
  --red: #be1220;
  --red-bright: #e11d28;
  --red-glow: rgba(190, 18, 32, .28);
  --radius: 12px;
  --max: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", var(--font);
}

* { box-sizing: border-box; }
/* An inline display style (e.g. style="display:grid" for a form section) beats
   the browser's default [hidden] rule, which has no !important — so an element
   with both stays visible no matter what JS sets .hidden to. This forces hidden
   to actually win everywhere on the site, not just where nobody set inline display. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 .5em; line-height: 1.04; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.85rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .1em; font-size: .74rem;
  font-weight: 600; color: var(--muted-2); margin-bottom: 10px; font-family: var(--body);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10,10,11,.94); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .wordmark { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.05rem; line-height: 1; }
.brand .wordmark span { color: var(--red-bright); display: block; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } .nav .wrap { height: 66px; } .brand img { height: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 8px; border: 1px solid var(--red);
  background: var(--red); color: #fff; font-family: var(--display);
  font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .16s, transform .16s, box-shadow .16s, border-color .16s;
}
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--red-glow); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--muted-2); box-shadow: none; }
.btn.small { padding: 10px 18px; font-size: .78rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 50px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (min-width: 901px) { .hero h1 { font-size: clamp(2.2rem, 3.1vw, 2.85rem); } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 60px 0 40px; } }
.hero h1 .accent { color: var(--red-bright); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-trust { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.hero-trust b { color: var(--ink); font-weight: 600; }

.sheet {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.sheet .sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sheet .tag { font-family: var(--display); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.sheet .tag b { color: var(--red-bright); }
.sheet .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.sheet .row:last-child { border-bottom: 0; padding-bottom: 0; }
.sheet .row span { color: var(--ink); }
.sheet .row b { font-family: var(--display); font-weight: 700; color: var(--muted); white-space: nowrap; font-size: .9rem; letter-spacing: .01em; }
.sheet .row b em { color: var(--red-bright); font-style: normal; }
.sheet-link { display: block; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .02em; color: var(--red-bright); text-decoration: none; }
.sheet-link:hover { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); padding: 28px 26px; transition: background .2s; }
.step:hover { background: var(--surface); }
.step .n { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1; color: var(--red-bright); margin-bottom: 14px; letter-spacing: 0; }
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
  transition: border-color .2s, transform .2s;
}
.plan:hover { border-color: var(--muted-2); transform: translateY(-3px); }
.plan.featured { border-color: var(--red); }
.plan.featured::before {
  content: "Recommended"; position: absolute; top: -10px; left: 28px;
  background: var(--bg); color: var(--red-bright); font-family: var(--body); font-weight: 600;
  font-size: .68rem; letter-spacing: .04em; padding: 2px 10px;
}
.plan .weeks { font-family: var(--display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.plan h3 { font-size: 1.5rem; text-transform: uppercase; margin: 6px 0 14px; }
.plan .oneoff-controls { display: grid; gap: 12px; margin-bottom: 22px; }
.plan .oneoff-controls label { display: grid; gap: 6px; font-family: var(--display); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.plan .oneoff-controls select { font-family: var(--font); font-size: .92rem; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); font-weight: 500; padding: 11px 36px 11px 13px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .price .amt { font-family: var(--display); font-size: 3.4rem; font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.plan .price .cur { font-family: var(--display); font-size: .8rem; font-weight: 700; color: var(--muted-2); letter-spacing: .1em; }
.plan .per { color: var(--muted); font-size: .87rem; margin: 10px 0 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line-soft); font-size: .93rem; color: var(--muted); position: relative; }
.plan li:first-child { border-top: 0; }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: 18px; width: 9px; height: 5px;
  border-left: 2px solid var(--red-bright); border-bottom: 2px solid var(--red-bright); transform: rotate(-45deg);
}
.pay-note { margin-top: 26px; font-size: .85rem; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }

/* ---------- Split / coaching ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { padding: 10px 0 10px 28px; position: relative; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 6px; border-left: 2px solid var(--red-bright); border-bottom: 2px solid var(--red-bright); transform: rotate(-45deg); }

/* ---------- Forms ---------- */
form { display: grid; gap: 20px; }
label { display: grid; gap: 7px; font-weight: 500; font-size: .9rem; color: var(--ink); }
label small { font-weight: 400; color: var(--muted-2); font-size: .82rem; }
input, select, textarea {
  font: inherit; font-size: .95rem; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%;
  transition: border-color .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); background: var(--surface-2); }
textarea { min-height: 108px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b9ba3' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 12px; padding-right: 40px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.check input { width: auto; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.check a { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  cursor: pointer; font-weight: 500; font-size: .88rem; transition: all .15s;
}
.chips label:hover { border-color: var(--muted-2); }
.chips input { width: auto; margin: 0; accent-color: var(--red); }
.chips label:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 500; font-size: .9rem; padding: 0; margin-bottom: 6px; }
legend small { font-weight: 400; color: var(--muted-2); font-size: .8rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.narrow { max-width: 720px; margin: 0 auto; }
.notice { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; padding: 16px 18px; font-size: .92rem; color: var(--muted); }
.error { color: var(--red-bright); font-size: .88rem; }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: color .15s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red-bright); font-size: 1.4rem; font-weight: 400; line-height: 1; flex-shrink: 0; }
details[open] summary::after { content: "\2013"; }
summary:hover { color: var(--red-bright); }
details p { margin: 14px 0 0; color: var(--muted); font-size: .95rem; max-width: 68ch; }

/* ---------- CTA band ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); text-align: center; padding: 84px 0; }
.band h2 { margin-bottom: .35em; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .87rem; color: var(--muted-2); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
footer a { text-decoration: none; margin-right: 22px; transition: color .15s; }
footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto; } }

/* ---------- Program view ---------- */
.program-head { padding: 56px 0 28px; }
/* AI-written text (titles, block focus) can run long, unlike short marketing
   headlines, so these get their own sizing instead of the hero-scale h1/h2. */
.program-title { font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: none; letter-spacing: -0.01em; }
.block-title { font-size: 1.3rem; text-transform: none; letter-spacing: -0.01em; margin-top: 8px; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.tab { padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; transition: all .15s; }
.tab:hover { color: var(--ink); border-color: var(--muted-2); }
.tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.day-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.day-head h3 { margin: 0; text-transform: uppercase; }
.day-head .muted { font-size: .87rem; }
table.ex { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
table.ex th, table.ex td { text-align: left; padding: 13px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.ex th { font-family: var(--display); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); border-top: 0; font-weight: 700; }
table.ex td { color: var(--muted); }
table.ex td:first-child { width: 42px; }
table.ex td.name { font-weight: 600; color: var(--ink); }
table.ex td.name small { display: block; font-weight: 400; color: var(--muted-2); margin-top: 3px; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table.ex td.log-cell { white-space: nowrap; text-decoration: none; }
table.ex .log-w, table.ex .log-r {
  width: 48px; padding: 7px 6px; font-size: .88rem; text-align: center;
  border-radius: 6px;
}
table.ex .log-x { color: var(--muted-2); margin: 0 5px; font-size: .8rem; }
.info-list { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 24px; background: var(--surface); }
.info-list details { padding: 16px 0; }
.info-list details:first-of-type { border-top: 0; }
.info-list summary { font-size: .92rem; }
.info-list p { font-size: .9rem; }

/* Per-exercise cards on the client program page (one row per set inside). */
.ex-card { padding: 16px 22px 18px; border-top: 1px solid var(--line-soft); }
.ex-card:first-child { border-top: 0; }
.ex-top { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 4px; }
.ex-name { font-weight: 600; color: var(--ink); }
.ex-meta { font-size: .84rem; color: var(--muted); }
.notes-btn {
  order: 3; background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; font-family: var(--display); font-weight: 700; font-size: .68rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); cursor: pointer; transition: all .15s;
}
.notes-btn:hover { color: var(--ink); border-color: var(--muted-2); }
.notes-btn[aria-expanded="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.ex-notes { margin-top: 10px; padding: 10px 14px; background: var(--surface-2); border-radius: 8px; font-size: .88rem; color: var(--muted); }
table.sets { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .92rem; margin-top: 12px; }
table.sets th { text-align: center; padding: 0 6px 6px; font-family: var(--display); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
table.sets td { padding: 5px 6px; border-top: 1px solid var(--line-soft); vertical-align: middle; text-align: center; }
table.sets tr:first-child td { border-top: 0; }
table.sets th:first-child, table.sets td.set-n { width: 40px; color: var(--muted-2); font-weight: 600; }
table.sets th:first-child { letter-spacing: 0; } /* letter-spacing trails the last glyph, so a centered short label drifts left of the plain numbers below it — cancel it out here */
table.sets .log-w, table.sets .log-r, table.sets .log-p { width: 100%; max-width: 104px; padding: 7px 6px; font-size: .88rem; text-align: center; border-radius: 6px; }
.day-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.day-complete .ex-name, .day-complete .ex-meta { opacity: .45; }
.day-complete table.sets { opacity: .55; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  background: var(--ink); color: var(--bg); font-family: var(--display); font-weight: 700;
  font-size: .82rem; letter-spacing: .01em; padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #333; --line: #ccc; }
  body { background: #fff; color: #000; }
  .nav, .tabs, .no-print, footer, .hero::before, .hero::after { display: none !important; }
  .day, .block-note, .card { border-color: #ccc; break-inside: avoid; }
  .block { display: block !important; page-break-before: always; }
  .block:first-of-type { page-break-before: auto; }
  table.ex td { color: #000; }
  .ex-notes { display: block !important; }
}

/* Billing interval toggle */
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.toggle button { background: transparent; border: 0; color: var(--muted); font: inherit; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 9px 20px; cursor: pointer; transition: background .15s, color .15s; }
.toggle button:hover { color: var(--ink); }
.toggle button.on { background: var(--red); color: #fff; }
.week-pick { margin: 18px 0 22px; }
.week-pick button { padding: 8px 16px; }
