:root {
  --ink: #1a1814;
  --ink-soft: #3d3830;
  --muted: #6b645a;
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --card: #ffffff;
  --line: rgba(26, 24, 20, 0.1);
  --accent: #c45c26;
  --accent-2: #9a3f14;
  --accent-soft: #f3e0d4;
  --teal: #1f6f6a;
  --teal-soft: #d9efed;
  --ok: #2a7a4b;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(26, 24, 20, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 243, 236, 0.9);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: inherit; text-decoration: none; font-weight: 700;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: white; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}
.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; border-radius: 999px; padding: 0.75rem 1.25rem;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 8px 20px rgba(196,92,38,.25); }
.btn-primary:hover { background: var(--accent-2); color: white; }
.btn-secondary { background: var(--ink); color: white; }
.btn-secondary:hover { color: white; opacity: .92; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.hero {
  padding: 4rem 0 3rem;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-soft); color: var(--accent-2);
  border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1rem;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.2rem; }
.hero-note { color: var(--muted); font-size: 0.9rem; }
.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.4rem; box-shadow: var(--shadow);
}
.hero-card h3 { margin-bottom: 0.8rem; font-size: 1.15rem; }
.checklist { list-style: none; display: grid; gap: 0.65rem; }
.checklist li {
  display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; align-items: start;
  color: var(--ink-soft); font-size: 0.95rem;
}
.checklist li::before {
  content: "✓"; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700;
}
.section { padding: 3.5rem 0; }
.section.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.45rem; font-size: 1.15rem; }
.card p, .card li { color: var(--ink-soft); font-size: 0.96rem; }
.course-card {
  display: flex; flex-direction: column; gap: 0.7rem; text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease;
}
.course-card:hover { transform: translateY(-2px); border-color: rgba(196,92,38,.35); text-decoration: none; }
.course-num {
  width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 0.9rem;
}
.meta { display: flex; gap: 0.7rem; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.2rem 0.65rem;
}
.pricing {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; align-items: stretch;
}
.price-tag {
  font-family: var(--display); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em;
}
.price-tag small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem; margin-bottom: 0.7rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 0.6rem; color: var(--ink-soft); }
.cta-band {
  background: linear-gradient(135deg, #2b241d, #1a1814);
  color: #f7f3ec; border-radius: 24px; padding: 2rem; box-shadow: var(--shadow);
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.cta-band p { color: rgba(247,243,236,.78); max-width: 36rem; margin-top: 0.4rem; }
.site-footer {
  border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem;
}
.legal-note {
  background: var(--teal-soft); border: 1px solid rgba(31,111,106,.2);
  border-radius: 12px; padding: 1rem 1.1rem; color: var(--ink-soft); font-size: 0.92rem;
}
.course-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 1.5rem 0 3rem; }
.sidebar {
  position: sticky; top: 78px; align-self: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
}
.sidebar h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 0.7rem; }
.side-link {
  display: flex; gap: 0.55rem; align-items: flex-start;
  padding: 0.55rem 0.45rem; border-radius: 10px; text-decoration: none; color: var(--ink-soft);
  font-size: 0.9rem;
}
.side-link:hover, .side-link.active { background: var(--accent-soft); color: var(--accent-2); text-decoration: none; }
.side-link .dot {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line);
  flex: 0 0 auto; margin-top: 2px; display: grid; place-items: center; font-size: 0.65rem;
}
.side-link.done .dot { background: var(--ok); border-color: var(--ok); color: white; }
.lesson { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow); }
.lesson h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0.4rem 0 0.8rem; }
.lesson h2 { font-size: 1.35rem; margin: 1.8rem 0 0.7rem; }
.lesson h3 { font-size: 1.08rem; margin: 1.2rem 0 0.5rem; }
.lesson p, .lesson li { color: var(--ink-soft); }
.lesson ul, .lesson ol { padding-left: 1.2rem; margin: 0.5rem 0 1rem; }
.lesson li + li { margin-top: 0.35rem; }
.prompt {
  background: #1f1c18; color: #f4efe6; border-radius: 12px; padding: 1rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86rem;
  white-space: pre-wrap; overflow-x: auto; margin: 0.8rem 0 1rem; line-height: 1.5;
}
.callout {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 0.9rem 1rem; border-radius: 0 12px 12px 0; margin: 1rem 0;
}
.callout.warning { border-left-color: var(--teal); background: var(--teal-soft); }
.exercise, .quiz {
  background: var(--paper); border: 1px dashed rgba(26,24,20,.2);
  border-radius: 14px; padding: 1.1rem; margin: 1.2rem 0;
}
.quiz label { display: block; margin: 0.45rem 0; cursor: pointer; }
.lesson-nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.progress-bar {
  height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 0.8rem 0 1rem;
}
.progress-bar > span { display: block; height: 100%; background: var(--accent); width: 0%; transition: width .3s ease; }
.mark-done { margin-top: 1rem; }
@media (max-width: 900px) {
  .hero, .pricing, .course-layout, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-links .hide-sm { display: none; }
}
