/* ---------- Design tokens ---------- */
:root {
  --navy: #0f1b2d;
  --navy-light: #16273f;
  --ink: #1a2332;
  --paper: #faf8f5;
  --cream: #fff9f0;
  --amber: #e08a2c;
  --amber-dark: #c56f16;
  --green: #2f7d5f;
  --line: #e6e1d8;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 27, 45, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 34px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  background: var(--amber);
  color: #1a1205;
  box-shadow: 0 8px 20px rgba(224, 138, 44, 0.35);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }

.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover { background: var(--navy-light); }

.btn-block { width: 100%; }

.btn-sub {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: .02em;
}

/* ---------- Nav / brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-weight: 800;
  font-size: 18px;
}
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 20% 0%, #1c3454 0%, var(--navy) 55%);
  color: #fff;
  padding: 24px 0 70px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  background: rgba(224,138,44,.15);
  color: #f0b467;
  border: 1px solid rgba(224,138,44,.4);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 span { color: var(--amber); }
.hero p.lead {
  font-size: 18px;
  color: #cbd5e1;
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: #9fb0c7; }

.hero-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.hero-card .video-slot {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1c3454, #0f1b2d);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.play-btn {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.play-btn::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.hero-card .caption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section-title {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}
p.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 620px;
  margin: 0 auto 46px;
}

/* Problem / agitate */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.problem-card .icon { font-size: 26px; margin-bottom: 12px; }
.problem-card h3 { margin: 0 0 8px; font-size: 17px; }
.problem-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Framework steps */
.steps {
  display: grid;
  gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  align-items: start;
}
.step .num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 17.5px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Curriculum */
.curriculum {
  display: grid;
  gap: 12px;
}
.module {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
}
.module .m-num {
  font-weight: 800;
  color: var(--amber);
  font-size: 14px;
  min-width: 32px;
}
.module .m-title { font-weight: 700; font-size: 15.5px; }
.module .m-len { margin-left: auto; color: var(--muted); font-size: 13.5px; white-space: nowrap; }

/* Pricing */
.price-card {
  background: #fff;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}
.price-card .badge {
  display: inline-block;
  background: var(--amber);
  color: #1a1205;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 20px; }
.price-new { font-size: 46px; font-weight: 800; }
.price-card ul { text-align: left; list-style: none; padding: 0; margin: 24px 0; }
.price-card li { padding: 8px 0; font-size: 15px; display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--amber); font-weight: 800; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 10px 0 0; font-size: 14.5px; }

/* Guarantee */
.guarantee {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.guarantee .seal {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; flex-shrink: 0;
}

/* Sticky footer CTA */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
  padding: 14px 0;
  z-index: 50;
}
.sticky-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-cta .price { font-weight: 800; font-size: 17px; }
body.has-sticky-cta { padding-bottom: 76px; }

footer.site-footer {
  background: var(--navy);
  color: #9fb0c7;
  text-align: center;
  padding: 34px 16px;
  font-size: 13px;
}

/* ---------- Forms (checkout / login) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d7d2c8;
  border-radius: 10px;
  font-size: 15px;
  background: #fdfcfa;
}
.field input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-summary {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 26px;
}
.order-summary .item-name { font-weight: 700; font-size: 15px; }
.order-summary .item-desc { color: var(--muted); font-size: 13px; }
.order-summary .item-price { font-weight: 800; font-size: 20px; }

.demo-note {
  background: #fff6e6;
  border: 1px solid #f0d29c;
  color: #7a5417;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 22px;
}

.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.code-box {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 30px;
  letter-spacing: 8px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 18px;
  margin: 18px 0;
}

.error-text { color: #b3261e; font-size: 13.5px; margin-top: 8px; display: none; }
.error-text.show { display: block; }

.success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 18px;
}

/* ---------- Course page ---------- */
.course-header {
  background: var(--navy);
  color: #fff;
  padding: 30px 0;
}
.course-header .wrap { display: flex; justify-content: space-between; align-items: center; }
.progress-bar {
  height: 8px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin-top: 10px; max-width: 280px;
}
.progress-bar .fill { height: 100%; background: var(--amber); border-radius: 999px; }

.lesson-list { display: grid; gap: 14px; margin-top: 30px; }
.lesson {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.lesson .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg,#1c3454,#0f1b2d);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.lesson .thumb .mini-play {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
}
.lesson .thumb .mini-play::after {
  content: ""; border-style: solid; border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff; margin-left: 2px;
}
.lesson h4 { margin: 0 0 4px; font-size: 15px; }
.lesson .meta { color: var(--muted); font-size: 13px; }
.lesson .status { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .problem-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .lesson { grid-template-columns: 90px 1fr; }
  .lesson .status { grid-column: 2; }
}
