/* ================================================================
   Claude for Strength Coaches 101 — Morning Rep course player
   Brand: ink #0D0D0D · red #D32F2F · cream #F5F1EA · mono eyebrows
   ================================================================ */

:root {
  --ink: #0d0d0d;
  --ink-2: #141416;
  --ink-3: #1c1c1f;
  --paper: #f5f1ea;
  --paper-2: #efe9df;
  --red: #d32f2f;
  --red-bright: #e14040;
  --white: #f7f4ee;
  --muted-dark: #9a9a94;   /* muted text on dark */
  --muted-light: #6b6862;  /* muted text on light */
  --line-dark: rgba(247, 244, 238, 0.14);
  --line-light: rgba(13, 13, 13, 0.14);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: inherit; }

/* ---------- shared atoms ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wordmark .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 15px 26px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-bright); }
.btn-red:disabled { opacity: 0.55; cursor: default; }
.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-dark);
}
.btn-ghost-dark:hover { border-color: var(--white); }
.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-light);
}
.btn-ghost-light:hover { border-color: var(--ink); }

.mono-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* ================================================================
   LANDING / GATE  (index.html)
   ================================================================ */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 48px;
  border-bottom: 1px solid var(--line-dark);
}
.landing-topbar .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.top-link {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
}
.top-link:hover { color: var(--red-bright); }
.top-sep { margin: 0 12px; }
.top-current { color: var(--muted-dark); }

/* ---------- about page ---------- */

.about-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 28px 88px;
}
.about-main h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.about-main h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red);
  margin-top: 18px;
}
.about-main h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}
.about-main p {
  font-size: 16px;
  color: var(--muted-dark);
  margin-bottom: 16px;
  max-width: 62ch;
}

.landing-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 48px;
}

.landing h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 26px 0 22px;
}
.landing h1 .red { color: var(--red-bright); }

.landing .sub {
  font-size: 17px;
  color: var(--muted-dark);
  max-width: 52ch;
  margin-bottom: 40px;
}
.landing .sub strong { color: var(--white); font-weight: 600; }

.stat-row {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: var(--ink-2);
  overflow: hidden;
}
.stat {
  padding: 18px 26px;
  border-right: 1px solid var(--line-dark);
}
.stat:last-child { border-right: none; }
.stat .n {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
}
.stat .n sup { color: var(--red-bright); font-size: 0.6em; }
.stat .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 4px;
}

.gate-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 38px 36px;
}
.gate-card h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  margin: 16px 0 10px;
}
.gate-card p {
  font-size: 14.5px;
  color: var(--muted-dark);
  margin-bottom: 26px;
}
.gate-card label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  display: block;
  margin-bottom: 8px;
}
.gate-card input[type="email"] {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 15px 16px;
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  margin-bottom: 16px;
  outline: none;
}
.gate-card input[type="email"]:focus { border-color: var(--red); }
.gate-card .btn { width: 100%; }

.gate-error {
  display: none;
  margin-top: 16px;
  border-left: 3px solid var(--red);
  background: rgba(211, 47, 47, 0.08);
  padding: 12px 14px;
  font-size: 13.5px;
  color: #f0b9b9;
  border-radius: 0 6px 6px 0;
}
.gate-error a { color: var(--white); }
.gate-error.show { display: block; }

.gate-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--muted-dark);
}
.gate-foot a { color: var(--white); text-decoration-color: var(--red); }

.landing-footer {
  border-top: 1px solid var(--line-dark);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ================================================================
   COURSE PLAYER  (course.html)
   ================================================================ */

.player {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

/* ----- sidebar ----- */

.sidebar {
  background: var(--ink);
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-head {
  padding: 26px 24px 22px;
  border-bottom: 1px solid var(--line-dark);
}
.sidebar-head .course-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 12px;
}

.sidebar-progress { padding: 20px 24px; border-bottom: 1px solid var(--line-dark); }
.progress-track {
  height: 5px;
  background: var(--ink-3);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}
.progress-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.sidebar-nav { flex: 1; padding: 14px 0 24px; }

.nav-section {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding: 18px 24px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 12px 21px;
  cursor: pointer;
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.35;
  transition: background 0.12s;
}
.nav-item:hover { background: var(--ink-2); }
.nav-item.active {
  background: var(--ink-2);
  border-left-color: var(--red);
}
.nav-item .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-dark);
  width: 22px;
  flex: none;
}
.nav-item.active .num { color: var(--red-bright); }
.nav-item .check {
  margin-left: auto;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
}
.nav-item.done .check {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.sidebar-foot {
  padding: 18px 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.signout {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.signout:hover { color: var(--white); }

/* ----- mobile top bar ----- */

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
}
.menu-toggle {
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}

/* ----- reading pane ----- */

.content-pane {
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
}

.lesson-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 48px 40px;
}

.lesson-head { margin-bottom: 8px; }
.lesson-head h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 18px 0 6px;
  color: var(--ink);
}

.lesson-body { font-size: 16.5px; }
.lesson-body h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}
.lesson-body h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  margin: 30px 0 10px;
}
.lesson-body p { margin: 0 0 18px; }
.lesson-body ul, .lesson-body ol { margin: 0 0 18px 22px; }
.lesson-body li { margin-bottom: 8px; }
.lesson-body strong { font-weight: 700; }
.lesson-body a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-word;
}
.lesson-body hr {
  border: none;
  border-top: 1px solid var(--line-light);
  margin: 36px 0;
}
.lesson-body .table-wrap { overflow-x: auto; margin: 0 0 22px; }
.lesson-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
}
.lesson-body th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  background: var(--ink);
  color: var(--white);
  padding: 12px 14px;
}
.lesson-body td {
  padding: 12px 14px;
  border-top: 1px solid var(--line-light);
  vertical-align: top;
}

/* lesson footer nav */

.lesson-nav {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 48px 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lesson-nav .spacer { flex: 1; }

/* ================================================================
   QUIZ
   ================================================================ */

.quiz-intro {
  background: #fff;
  border: 1px solid var(--line-light);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 22px 26px;
  margin: 26px 0 38px;
  font-size: 15px;
}
.quiz-intro strong { font-weight: 700; }

.quiz-name {
  margin-bottom: 38px;
}
.quiz-name label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  display: block;
  margin-bottom: 8px;
}
.quiz-name input {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.quiz-name input:focus { border-color: var(--red); }
.quiz-name .hint { font-size: 12.5px; color: var(--muted-light); margin-top: 6px; }

.q-block { margin-bottom: 40px; }
.q-block.missed .q-text::after {
  content: "INCORRECT LAST ATTEMPT";
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 10px;
  vertical-align: 2px;
  white-space: nowrap;
}
.q-num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 6px;
}
.q-text {
  font-weight: 600;
  font-size: 16.5px;
  margin-bottom: 14px;
}
.q-opts { display: grid; gap: 8px; }
.q-opt {
  display: flex;
  gap: 12px;
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.12s, background 0.12s;
}
.q-opt:hover { border-color: rgba(13, 13, 13, 0.35); }
.q-opt input { position: absolute; opacity: 0; }
.q-opt .letter {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-light);
  flex: none;
}
.q-opt.selected {
  border-color: var(--red);
  background: rgba(211, 47, 47, 0.05);
  box-shadow: inset 0 0 0 1px var(--red);
}
.q-opt.selected .letter { color: var(--red); }

.quiz-actions { margin-top: 46px; }
.quiz-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted-light);
  display: none;
}
.quiz-status.show { display: block; }
.quiz-status.error { color: var(--red); }

/* result panel */

.result-panel {
  border-radius: 14px;
  padding: 40px 42px;
  margin: 10px 0 30px;
}
.result-panel.pass { background: var(--ink); color: var(--white); }
.result-panel.fail {
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 4px solid var(--red);
}
.result-score {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
}
.result-score .of { font-size: 24px; color: var(--muted-dark); }
.result-panel.fail .result-score .of { color: var(--muted-light); }
.result-panel h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 24px;
  margin: 14px 0 10px;
}
.result-panel p { font-size: 15px; margin-bottom: 8px; }
.result-panel.pass p { color: var(--muted-dark); }
.result-panel .btn { margin-top: 20px; }

/* ================================================================
   CERTIFICATE
   ================================================================ */

.cert-toolbar {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 28px 20px 0;
  flex-wrap: wrap;
}

.cert-stage { padding: 30px 20px 70px; display: flex; justify-content: center; }

.certificate {
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 900px;
  border: 1px solid var(--line-light);
  outline: 3px solid var(--ink);
  outline-offset: -14px;
  padding: 72px 70px 58px;
  text-align: center;
  position: relative;
}
.certificate .cert-rule {
  width: 44px;
  height: 3px;
  background: var(--red);
  margin: 26px auto;
}
.certificate .cert-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 30px;
}
.certificate .cert-name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  margin: 14px 0 6px;
}
.certificate .cert-body {
  font-size: 15.5px;
  color: var(--muted-light);
  max-width: 56ch;
  margin: 0 auto;
}
.certificate .cert-course {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 24px;
  margin: 22px 0 4px;
}
.certificate .cert-course .red { color: var(--red); }
.cert-meta {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 40px auto 0;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  overflow: hidden;
  max-width: 620px;
  background: #fff;
}
.cert-meta .cell {
  flex: 1;
  padding: 16px 12px;
  border-right: 1px solid var(--line-light);
}
.cert-meta .cell:last-child { border-right: none; }
.cert-meta .v { font-family: var(--sans); font-weight: 800; font-size: 17px; }
.cert-meta .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 4px;
}
.cert-sig {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  text-align: left;
}
.cert-sig .line {
  border-top: 1px solid var(--ink);
  padding-top: 8px;
  min-width: 220px;
}
.cert-sig .who { font-weight: 700; font-size: 14.5px; }
.cert-sig .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.cert-sig .site {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ================================================================
   RESPONSIVE + PRINT
   ================================================================ */

@media (max-width: 1024px) {
  .landing-main { grid-template-columns: 1fr; gap: 44px; padding: 48px 28px; }
  .landing-topbar, .landing-footer { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 45;
  }
  .scrim.show { display: block; }
  .lesson-wrap { padding: 40px 22px 30px; }
  .lesson-nav { padding: 0 22px 56px; }
  .stat-row { display: flex; }
  .stat { padding: 14px 16px; flex: 1; }
  .certificate { padding: 48px 26px 40px; }
  .cert-sig { flex-direction: column; align-items: flex-start; }
}

@media print {
  body { background: #fff; }
  .sidebar, .mobile-bar, .scrim, .cert-toolbar, .lesson-nav { display: none !important; }
  .player { display: block; }
  .content-pane { background: #fff; }
  .cert-stage { padding: 0; }
  .certificate {
    max-width: none;
    border: none;
    outline: 3px solid var(--ink);
    outline-offset: -14px;
    min-height: 96vh;
  }
}
