:root {
  --bg: #FFFFFF;
  --ink: #111114;
  --ink-2: #4A4A52;
  --muted: #8E8E96;
  --hair: #EDEDEF;
  --hair-2: #F5F5F7;
  --accent: #B6E424;
  --accent-tint: #DCF373;
  --accent-soft: #ECF7B4;
  --accent-hover: #A5D01D;
  --accent-rgb: 182, 228, 36;
  --accent-ink: #1B2308;

  --wrap-max: 1440px;
  --wrap-pad: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--wrap-pad); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Header — static                                                     */
/* ------------------------------------------------------------------ */
header.nav {
  background: var(--bg);
  padding: 24px 0;
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
}
.logo img { display: block; width: 32px; height: 32px; }
.logo .wordmark {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.04em;
}
/* footer's logo stays smaller */
footer .logo img { width: 22px; height: 22px; }
footer .logo .wordmark { font-size: 16px; letter-spacing: 0.04em; }

.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); font-weight: 500; margin-right: auto; margin-left: 16px; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 8px; }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-lime { background: var(--accent); color: var(--accent-ink); }
.btn-lime:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 26px; font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero { padding: 64px 0 120px; }
.hero-grid { display: grid; }
.hero-grid > .hero-text,
.hero-grid > .hero-visual { grid-column: 1; grid-row: 1; }

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 760px;
  justify-self: start;
  align-self: center;
}
.hero h1 { font-size: clamp(56px, 9.5vw, 148px); max-width: 14ch; }
.hero h1 .pill {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.15em;
  border-radius: 12px;
  white-space: nowrap;
}
.hero .sub { font-size: 20px; color: var(--ink-2); max-width: 48ch; margin-top: 40px; line-height: 1.4; }
.hero .cta { margin-top: 40px; display: flex; gap: 10px; }

img.hero-visual {
  z-index: 1;
  display: block;
  width: clamp(420px, 54%, 760px);
  height: auto;
  justify-self: end;
  align-self: center;
  transform: scaleX(-1);
}

/* ------------------------------------------------------------------ */
/* Week grid                                                           */
/* ------------------------------------------------------------------ */
.week { padding: 80px 0 140px; }
.week-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; gap: 32px; }
.week-head h2 { font-size: clamp(40px, 6vw, 80px); }
.week-head h2 em {
  font-style: normal;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.1em;
  border-radius: 10px;
}
.grid {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
  background: var(--hair);
  gap: 1px;
}
.gh, .gc {
  background: #fff;
  padding: 10px 10px 12px;
  min-height: 64px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
}
.gh {
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: end;
  gap: 6px;
  min-height: 56px;
}
.gh .d { font-size: 18px; letter-spacing: -0.02em; }
.gh .w { text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-size: 11px; }
.gh.today .d { background: var(--accent); color: var(--accent-ink); padding: 0 6px; border-radius: 6px; }
.gt { background: #fff; padding: 10px 8px; font-size: 11px; color: var(--muted); text-align: right; }
.gc { padding: 4px; }
.ev {
  background: var(--accent-tint);
  border-radius: 8px;
  padding: 8px 10px;
  height: 100%;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.ev .t { font-weight: 700; font-size: 13px; color: var(--ink); letter-spacing: -0.01em; }
.ev .m { font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.ev.now { background: var(--accent); color: var(--accent-ink); }
.ev.now .t, .ev.now .m { color: var(--accent-ink); }
.ev.now .m::before { content: '● '; }
.ev.soft { background: var(--accent-soft); }
.ev.dark { background: var(--accent-ink); }
.ev.dark .t, .ev.dark .m { color: #fff; }

.week-legend { display: flex; gap: 24px; margin-top: 24px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.week-legend .sw { display: inline-flex; align-items: center; gap: 8px; }
.week-legend .sw i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.week-legend .sw-accent { background: var(--accent); }
.week-legend .sw-ink { background: var(--accent-ink); }
.week-legend .sw-neutral { background: var(--accent-tint); }
.week-legend .sw-soft { background: var(--accent-soft); }

/* ------------------------------------------------------------------ */
/* How                                                                 */
/* ------------------------------------------------------------------ */
.how { padding: 120px 0; border-top: 1px solid var(--hair); }
.how h2 { font-size: clamp(40px, 6vw, 80px); max-width: 16ch; margin-bottom: 64px; }
.how-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.how-row .n {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 16px;
}
.how-row .n em {
  font-style: normal;
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}
.how-row h3 { font-size: 28px; letter-spacing: -0.025em; }
.how-row p { color: var(--ink-2); font-size: 15px; max-width: 44ch; line-height: 1.6; }
.how-row .meta {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 12px;
}

/* ------------------------------------------------------------------ */
/* Trainers rail                                                       */
/* ------------------------------------------------------------------ */
.trainers { padding: 140px 0 100px; }
.trainers-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.trainers-head h2 { font-size: clamp(40px, 6vw, 80px); }
.trainers-head p { color: var(--ink-2); max-width: 32ch; font-size: 15px; }

.rail-wrap { width: 100vw; margin-left: calc(50% - 50vw); position: relative; }
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 max(var(--wrap-pad), calc((100vw - var(--wrap-max)) / 2)) 8px;
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; user-select: none; }
.rail.dragging img, .rail.dragging a { pointer-events: none; }

.rail-nav {
  position: absolute;
  top: calc(50% - 22px);
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--hair);
  box-shadow: 0 4px 14px rgba(17, 17, 20, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
}
.rail-nav:hover { background: var(--accent); border-color: var(--accent); }
.rail-nav:active { transform: translateY(-50%) scale(0.96); }
.rail-nav.prev { left: max(var(--wrap-pad), calc((100vw - var(--wrap-max)) / 2)); }
.rail-nav.next { right: max(var(--wrap-pad), calc((100vw - var(--wrap-max)) / 2)); }

.trainer { flex: 0 0 360px; }
.trainer .img { aspect-ratio: 4/5; border-radius: 10px; position: relative; overflow: hidden; }
.trainer .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.trainer:nth-child(1) .img { background: var(--ink); }
.trainer:nth-child(2) .img { background: linear-gradient(135deg, var(--accent), var(--accent-tint)); }
.trainer:nth-child(3) .img { background: linear-gradient(135deg, #E6E6EA, #B5B7C2); }
.trainer:nth-child(4) .img { background: var(--accent); }
.trainer:nth-child(5) .img { background: linear-gradient(135deg, var(--ink), #2A2A30); }
.trainer:nth-child(6) .img { background: #ECECEF; }
.trainer:nth-child(7) .img { background: var(--accent-soft); }
.trainer .badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.trainer .badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trainer .info { margin-top: 14px; }
.trainer h3 { font-size: 19px; letter-spacing: -0.015em; }

/* ------------------------------------------------------------------ */
/* Proof                                                               */
/* ------------------------------------------------------------------ */
.proof { padding: 140px 0; border-top: 1px solid var(--hair); }
.proof h2 { font-size: clamp(40px, 6vw, 80px); margin-bottom: 64px; max-width: 18ch; }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.proof-col .cap {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.value-list { list-style: none; }
.value-list li {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.4;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 28px;
}
.value-list li:first-child { border-top: 1px solid var(--hair); }
.value-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */
.faq { padding: 120px 0; border-top: 1px solid var(--hair); }
.faq h2 { font-size: clamp(44px, 5.5vw, 80px); margin-bottom: 48px; }
.faq-list { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); padding: 28px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 30px; font-weight: 300; line-height: 0; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--ink-2); margin-top: 16px; max-width: 70ch; font-size: 16px; line-height: 1.55; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
footer { border-top: 1px solid var(--hair); padding: 64px 0 40px; }
.foot { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 40px; }
.foot-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.foot p { color: var(--muted); font-size: 13px; max-width: 32ch; margin-top: 12px; }
.legal {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero { padding: 32px 0 80px; }
  .hero-grid > .hero-text,
  .hero-grid > .hero-visual { grid-column: 1; }
  .hero-grid > .hero-text { grid-row: 1; max-width: 100%; justify-self: stretch; align-self: auto; }
  .hero-grid > .hero-visual { grid-row: 2; width: 100%; margin-top: 48px; align-self: auto; }
  .week-head,
  .trainers-head,
  .foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .proof-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-row { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: 40px repeat(7, minmax(80px, 1fr)); }
  .week-wrap { overflow-x: auto; }
  .trainer { flex-basis: 220px; }
  header.nav { padding: 18px 0; }
  .nav-row { gap: 16px; }
  .nav-links { display: none; }
  .nav-links + .nav-actions { margin-left: auto; }
  .logo .wordmark { font-size: 19px; }
  .logo img { width: 28px; height: 28px; }
}

/* ---------------------------------------------------------------- */
/* Password reveal toggle (used by scripts/password-reveal.js).      */
/* ---------------------------------------------------------------- */

.password-wrap {
  position: relative;
  display: block;
}
.password-wrap input {
  /* Make room for the toggle button. */
  padding-right: 44px !important;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #8A8A8E;
  cursor: pointer;
  transition: color 0.15s ease;
}
.password-toggle:hover { color: #1D1D1F; }
.password-toggle:focus { outline: none; }
.password-toggle:focus-visible {
  outline: none;
  color: #1D1D1F;
}
