/* Layout: a training log on sea-salt paper. Expanded athletic display type,
   ruled rows like a logbook, block codes (K1, H1 …) as lane chips. */
:root {
  --paper: #F1F4F1;
  --surface: #FFFFFF;
  --ink: #0F1E26;
  --muted: #55666C;
  --rule: #D2DBD7;
  --cobalt: #1846D1;
  --on-cobalt: #FFFFFF;
  --sun: #F2B200;
  --sun-ink: #2A1F00;

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 3.4vw, 2.5rem);
  --step-4: clamp(2.25rem, 5vw, 3.75rem);
  --step-hero: clamp(3rem, 7.4vw, 6.75rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B161C;
    --surface: #12212A;
    --ink: #E7EEEB;
    --muted: #93A4A9;
    --rule: #23343C;
    --cobalt: #7096FF;
    --on-cobalt: #0B161C;
    --sun: #F6C43A;
    --sun-ink: #1E1600;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B161C;
  --surface: #12212A;
  --ink: #E7EEEB;
  --muted: #93A4A9;
  --rule: #23343C;
  --cobalt: #7096FF;
  --on-cobalt: #0B161C;
  --sun: #F6C43A;
  --sun-ink: #1E1600;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); font-stretch: 105%; font-weight: 700; line-height: 1.2; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.code {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em;
  padding: 0.15em 0.45em;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}
.wordmark {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.wordmark span { color: var(--cobalt); }
.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-inline-start: auto;
  font-size: 0.9375rem;
}
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
.lang-switch a, .lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
}
.lang-switch [aria-current="true"] { background: var(--ink); color: var(--paper); }
.header-actions .btn { min-height: 2.4rem; padding: 0.45rem 1rem; font-size: 0.9375rem; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-title {
  font-size: var(--step-hero);
  font-stretch: 125%;
  font-weight: 900;
  line-height: 0.95;
  display: grid;
  gap: 0.08em;
}
.hero-title .someday {
  position: relative;
  justify-self: start;
  color: var(--muted);
  font-weight: 700;
}
.hero-title .someday::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 52%;
  height: 0.09em;
  background: var(--cobalt);
  transform-origin: left center;
  animation: strike 0.7s 0.35s cubic-bezier(.6,0,.2,1) both;
}
.hero-title .or {
  font-family: var(--font-body);
  font-stretch: 100%;
  font-weight: 500;
  font-style: italic;
  font-size: 0.3em;
  color: var(--muted);
  letter-spacing: 0;
  padding-inline-start: 0.15em;
}
.hero-title .dayone .dot { color: var(--cobalt); }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-title .someday::after { animation: none; }
}
.hero-sub { font-size: var(--step-1); line-height: 1.55; max-width: 34rem; color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Week card: the product, shown as a logbook ticket */
.week-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(15, 30, 38, 0.35);
  overflow: hidden;
  min-width: 0;
}
.week-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px dashed var(--rule);
}
.week-card header strong { font-family: var(--font-display); font-stretch: 112%; font-size: 1.05rem; }
.checkin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.checkin div { padding: 0.85rem 1.25rem; display: grid; gap: 0.15rem; }
.checkin div + div { border-inline-start: 1px solid var(--rule); }
.checkin dt { font-size: var(--step--1); color: var(--muted); }
.checkin dd { margin: 0; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.plan-label { padding: 0.9rem 1.25rem 0.35rem; }
.plan-rows { list-style: none; margin: 0; padding: 0 0.5rem 0.5rem; }
.plan-rows li {
  display: grid;
  grid-template-columns: 2.6rem auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
}
.plan-rows li + li { border-top: 1px solid var(--rule); }
.plan-rows .day { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.plan-rows .what { display: grid; min-width: 0; }
.plan-rows .what b { font-weight: 600; }
.plan-rows .what small { color: var(--muted); font-size: var(--step--1); font-family: var(--font-mono); }
.week-card footer {
  background: var(--sun);
  color: var(--sun-ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 0.9rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* Truth */
.truth h2 { max-width: 20ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.truth-grid, .pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.truth-grid article, .pillars article {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
  min-width: 0;
}
.truth-grid p, .pillars p { color: var(--muted); }
@media (max-width: 760px) {
  .truth-grid, .pillars { grid-template-columns: minmax(0, 1fr); }
}

/* Method: lengths drawn to scale (bar width = minutes) */
.lengths { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 1rem; }
.length-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.length-name { display: grid; }
.length-name b { font-family: var(--font-display); font-stretch: 112%; }
.length-name span { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.length-track { display: grid; gap: 0.35rem; min-width: 0; }
.length-bar {
  height: 0.85rem;
  border-radius: 999px;
  background: var(--cobalt);
  width: calc(var(--min) / 75 * 100%);
  min-width: 2rem;
}
.length-row:first-child .length-bar { background: var(--sun); }
.length-track p { color: var(--muted); font-size: 0.9375rem; }

.blocks { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.blocks-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.block-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.block-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(10rem, 16rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.block-list .name { font-weight: 600; }
.block-list .detail { color: var(--muted); min-width: 0; }
.blocks[data-place="gym"] .detail .home,
.blocks[data-place="home"] .detail .gym { display: none; }
@media (max-width: 640px) {
  .block-list li { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .block-list .detail { grid-column: 2; }
}

/* Week timeline: real order of the week */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.timeline li {
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.6rem 1.25rem 0 0;
  min-width: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rule);
}
.timeline li::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--cobalt);
}
.timeline li:first-child::after { background: var(--cobalt); }
.timeline .when { font-family: var(--font-mono); font-size: var(--step--1); color: var(--cobalt); letter-spacing: 0.04em; text-transform: uppercase; }
.timeline p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-left: 1.5rem; }
  .timeline li { padding: 0; }
  .timeline li::before { top: 6px; bottom: -1.75rem; left: -1.5rem; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li::after { top: 1px; left: calc(-1.5rem - 5px); }
}

/* Recipes */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.recipe {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  min-width: 0;
}
.recipe .cuisine {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--sun-ink);
}
.recipe h3 { font-size: var(--step-2); font-stretch: 112%; font-weight: 800; }
.recipe dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
}
.recipe dl div { display: grid; }
.recipe dt { font-size: var(--step--1); color: var(--muted); }
.recipe dd { margin: 0; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.fineprint { margin-top: 1rem; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 860px) {
  .recipe-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Packages */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.tier {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
  min-width: 0;
}
.tier--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tier .badge {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.tier--featured .badge { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.tier h3 { font-size: var(--step-2); font-stretch: 118%; font-weight: 800; }
.tier .price { display: flex; align-items: baseline; gap: 0.4rem; }
.tier .price b { font-family: var(--font-display); font-stretch: 118%; font-size: var(--step-4); font-weight: 900; line-height: 1; }
.tier .price span { opacity: 0.7; }
.tier .desc { opacity: 0.8; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; align-content: start; }
.tier li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 0.6rem; font-size: 0.9375rem; }
.tier li::before {
  content: "";
  width: 0.7rem;
  height: 0.38rem;
  margin-top: 0.42rem;
  border-left: 2px solid var(--cobalt);
  border-bottom: 2px solid var(--cobalt);
  transform: rotate(-45deg);
}
.tier--featured li::before { border-color: var(--sun); }
.tier .btn { width: 100%; }
.tier--featured .btn--primary { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
@media (max-width: 920px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
}

/* About */
.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-copy { display: grid; gap: 1.1rem; }
.about-copy h2 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.about-copy p { max-width: 38rem; font-size: var(--step-1); }
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.facts li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.facts b {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 900;
  font-size: var(--step-3);
  min-width: 4.5ch;
  font-variant-numeric: tabular-nums;
}
.facts span { color: var(--muted); }
@media (max-width: 760px) {
  .about .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Booking modal: the step-by-step before handing off to WhatsApp or checkout */
body.booking-modal-open { overflow: hidden; }
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.booking-modal[hidden] { display: none; }
.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}
.booking-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  max-height: calc(100vh - 2 * var(--gutter));
  overflow-y: auto;
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 24px 48px -28px rgba(15, 30, 38, 0.45);
}
.booking-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.booking-modal__close:hover { background: var(--ink); color: var(--paper); }
.booking-modal__dialog h3 { font-size: var(--step-3); padding-right: 1.5rem; }
.booking-modal__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  counter-reset: booking-step;
}
.booking-modal__steps li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.9375rem;
  color: var(--muted);
}
.booking-modal__steps li::before {
  counter-increment: booking-step;
  content: counter(booking-step);
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--on-cobalt);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
}
.booking-modal__dialog .btn { width: 100%; }

/* FAQ */
.faq-list { border-top: 1px solid var(--rule); max-width: 50rem; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-1);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--cobalt);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 42rem; }

/* Final call */
.final { background: var(--cobalt); color: var(--on-cobalt); border-top: 0; }
.final .wrap { display: grid; gap: 1.5rem; }
.final h2 { font-size: var(--step-hero); font-stretch: 125%; font-weight: 900; line-height: 0.95; }
.final h2 span { display: block; }
.final h2 .a { opacity: 0.55; }
.final p { font-size: var(--step-2); font-weight: 600; }
.final .btn { justify-self: start; background: var(--on-cobalt); color: var(--cobalt); border-color: var(--on-cobalt); }

/* Footer */
.site-footer { padding-block: 2.5rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.site-footer p { color: var(--muted); font-size: 0.9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9375rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
