/* ============================================================
   THE AI PROMPTING MASTERCLASS
   Master stylesheet, shared by every page.
   Edit design tokens in :root to retheme the entire site.
   ============================================================ */

:root {
  /* Surfaces */
  --paper:        #F5F2EA;
  --paper-2:      #EFEBE0;
  --surface:      #FFFFFF;
  --surface-soft: #FAF8F2;

  /* Ink */
  --ink:          #14110D;
  --ink-2:        #2A2620;
  --ink-3:        #5C544A;
  --ink-4:        #8C8478;
  --hairline:     rgba(20, 17, 13, 0.08);
  --hairline-2:   rgba(20, 17, 13, 0.14);

  /* Accent */
  --accent:       #B8451F;
  --accent-2:     #8E3315;
  --accent-soft:  rgba(184, 69, 31, 0.08);

  /* Status */
  --positive:     #2D6A4F;
  --positive-soft: rgba(45, 106, 79, 0.10);

  /* Type */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono:  'Geist Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1280px;
  --container-narrow: 920px;
  --container-prose: 720px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Vertical rhythm */
  --space-section:        120px;
  --space-section-tight:  96px;
  --space-section-mobile: 80px;
  --space-header-bottom:  72px;
  --space-header-mobile:  48px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.locked, html.locked body { overflow: hidden; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

nav, main, footer, .modal-backdrop { position: relative; z-index: 2; }
.modal-backdrop { z-index: 200; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

.container        { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.container-prose  { max-width: var(--container-prose); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--ink-3);
}
.eyebrow.no-line::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}
h1 .italic, h2 .italic, h3 .italic, h4 .italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--accent);
}
.h-accent { color: var(--accent); }
p { margin: 0; }

/* ============================================================
   LOGO
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; flex: 0 0 26px; }
.logo-mark rect { fill: var(--accent); }
.logo-mark path { fill: var(--paper); }
.logo-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 1;
}
.logo-word .dot { color: var(--accent); font-style: normal; }

/* ============================================================
   NAV
   ============================================================ */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
nav.site-nav.scrolled {
  background: rgba(245, 242, 234, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-login { font-size: 14px; color: var(--ink-2); font-weight: 450; transition: color 0.2s var(--ease); }
.nav-login:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav-cta svg { transition: transform 0.3s var(--ease); }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-mobile-toggle { display: none; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-login { display: none; }
}

/* ============================================================
   PAGE HEADER (smaller than hero, used on inner pages)
   ============================================================ */
.page-header {
  padding: 168px 0 var(--space-section-tight);
  border-bottom: 1px solid var(--hairline);
}
.page-header h1 {
  font-size: clamp(48px, 8vw, 112px);
  letter-spacing: -0.038em;
  line-height: 0.96;
  max-width: 14ch;
}
.page-header .lead {
  margin-top: 32px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}
.page-header .eyebrow { margin-bottom: 28px; }

@media (max-width: 720px) {
  .page-header { padding: 132px 0 var(--space-section-mobile); }
  .page-header .lead { font-size: 17px; }
}

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative;
  padding: 168px 0 var(--space-section);
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(54px, 10vw, 152px);
  line-height: 0.94;
  letter-spacing: -0.038em;
  max-width: 12ch;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.hero h1 .italic {
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero h1 .accent { color: var(--accent); }
.hero-meta {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.hero-meta p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 50ch;
  letter-spacing: -0.005em;
}
.hero-actions { display: flex; gap: 14px; align-items: center; justify-self: end; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue .line { width: 28px; height: 1px; background: var(--ink-4); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -100%; width: 100%;
  background: var(--accent);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { left: -100%; } 60%, 100% { left: 100%; } }

@media (max-width: 720px) {
  .hero { padding: 132px 0 var(--space-section-mobile); }
  .hero-meta { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-self: start; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--hairline-2); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ============================================================
   PARTNER STRIP
   ============================================================ */
.partners {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.partners-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: center;
}
.partners-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  line-height: 1.5;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.partner-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.02em;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.partner-logo:hover { opacity: 1; color: var(--ink); }
.partner-logo.sans { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; font-size: 20px; }
.partner-logo.mono { font-family: var(--mono); font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }

@media (max-width: 760px) { .partners-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   SECTION + SECTION HEADER
   ============================================================ */
.section { padding: var(--space-section) 0; }
.section-tight { padding: var(--space-section-tight) 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section.bordered { border-top: 1px solid var(--hairline); }
.section-header {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: end;
  margin-bottom: var(--space-header-bottom);
}
.section-header h2 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.section-header p { font-size: 18px; color: var(--ink-3); line-height: 1.55; max-width: 52ch; }
@media (max-width: 800px) {
  .section { padding: var(--space-section-mobile) 0; }
  .section-tight { padding: var(--space-section-mobile) 0; }
  .section-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: var(--space-header-mobile); }
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pillar {
  background: var(--paper);
  padding: 44px 36px 52px;
  position: relative;
  transition: background 0.4s var(--ease);
}
.pillar:hover { background: var(--surface-soft); }
.pillar-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  margin-bottom: 72px;
}
.pillar h3 { font-size: 32px; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 16px; }
.pillar p { font-size: 15px; color: var(--ink-3); line-height: 1.55; max-width: 36ch; }
.pillar-icon {
  position: absolute;
  top: 40px;
  right: 36px;
  width: 28px; height: 28px;
  color: var(--accent);
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ============================================================
   STATS (dark section)
   ============================================================ */
.stats-section {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}
.stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(184,69,31,0.18), transparent 55%);
  pointer-events: none;
}
.stats-section > .container { position: relative; z-index: 1; }
.stats-section .eyebrow { color: rgba(245,242,234,0.55); }
.stats-section .eyebrow::before { background: rgba(245,242,234,0.55); }
.stats-section h2 {
  color: var(--paper);
  font-size: clamp(40px, 6vw, 78px);
  max-width: 18ch;
  margin: 16px 0 72px;
}
.stats-section h2 .accent { color: var(--accent); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245,242,234,0.1);
}
.stat { background: var(--ink); padding: 36px 28px; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  margin-bottom: 14px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.stat-num .unit { color: var(--accent); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,242,234,0.55);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section h2 { margin-bottom: 48px; }
}

/* ============================================================
   CURRICULUM VISUAL + MODULE LIST
   ============================================================ */
.curriculum-visual {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,17,13,0.04), 0 24px 60px -20px rgba(20,17,13,0.18);
}
.curriculum-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--hairline);
}
.curriculum-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-2); }
.curriculum-url {
  margin-left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.module-list { padding: 6px; }
.module {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 10px;
  transition: background 0.25s var(--ease);
}
.module + .module { border-top: 1px solid var(--hairline); }
.module:hover { background: var(--surface-soft); }
.module-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-4); }
.module-info h4 {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.module-info p { font-size: 13px; color: var(--ink-3); max-width: 56ch; }
.module-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-align: right;
}
.module-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.module-status.live { background: var(--accent-soft); color: var(--accent-2); }
.module-status.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.module-status.soon { background: transparent; border: 1px solid var(--hairline-2); color: var(--ink-4); }
.module-status.complete { background: var(--positive-soft); color: var(--positive); }
.module-status.complete::before { content: '✓'; font-family: var(--sans); font-weight: 700; }

@media (max-width: 760px) {
  .module { grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 14px; }
  .module-meta, .module-status { grid-column: 2; justify-self: start; }
}

/* Expanded module card (curriculum page) */
.module-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 36px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.module-card:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -20px rgba(20,17,13,0.14); }
.module-card .head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; gap: 24px; }
.module-card h3 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; max-width: 24ch; }
.module-card .num { font-family: var(--mono); font-size: 12px; color: var(--ink-4); letter-spacing: 0.12em; padding-top: 8px; }
.module-card .desc { color: var(--ink-3); font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
.module-card .lessons {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.module-card .lessons li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  padding-left: 22px;
  position: relative;
}
.module-card .lessons li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 1px; background: var(--accent);
}
.module-card .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--hairline);
}
.module-card .foot .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
@media (max-width: 720px) {
  .module-card { padding: 28px 22px; }
  .module-card .lessons { grid-template-columns: 1fr; }
}

/* ============================================================
   INSTRUCTOR
   ============================================================ */
.instructor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.instructor-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--paper-2) 0%, var(--surface-soft) 60%, var(--paper-2) 100%);
  border-radius: 14px;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.instructor-portrait img { width: 100%; height: 100%; object-fit: cover; }
.instructor-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(184,69,31,0.08), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(20,17,13,0.06), transparent 50%);
  pointer-events: none;
}
.instructor-placeholder {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  z-index: 1;
}
.instructor-content .eyebrow { margin-bottom: 24px; }
.instructor h2 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 24px;
  letter-spacing: -0.028em;
}
.instructor-bio { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin-bottom: 18px; }
.instructor-bio:last-of-type { margin-bottom: 32px; }
.instructor-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.cred-item { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); line-height: 1.5; }
.cred-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 4px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
@media (max-width: 900px) { .instructor { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   QUOTE
   ============================================================ */
.quote-section { padding: var(--space-section) 0; }
.quote { max-width: 60ch; margin: 0 auto; text-align: center; }
.quote-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 80px;
  line-height: 0.5;
  color: var(--accent);
  display: block;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0 0 32px;
  color: var(--ink);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.quote blockquote em { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; color: var(--accent); }
.quote-cite { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.quote-cite strong { color: var(--ink-2); font-weight: 500; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section {
  padding: var(--space-section) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tier {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 44px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tier-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
}
.tier-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 24px;
}
.tier.featured .tier-label { color: rgba(245,242,234,0.6); }
.tier h3 { font-size: 38px; letter-spacing: -0.028em; margin-bottom: 18px; }
.tier.featured h3 { color: var(--paper); }
.tier-price { margin-bottom: 24px; display: flex; align-items: baseline; gap: 8px; }
.tier-price .num {
  font-family: var(--serif);
  font-size: 64px;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1;
}
.tier.featured .tier-price .num { color: var(--paper); }
.tier-price .currency { font-family: var(--serif); font-size: 32px; color: var(--ink-3); }
.tier.featured .tier-price .currency { color: rgba(245,242,234,0.6); }
.tier-price .period {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  margin-left: 4px;
  text-transform: uppercase;
}
.tier-desc {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.tier.featured .tier-desc { color: rgba(245,242,234,0.7); border-color: rgba(245,242,234,0.12); }
.tier-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; }
.tier-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.tier.featured .tier-list li { color: rgba(245,242,234,0.85); }
.tier-list svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 16px; margin-top: 2px; }
.tier-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.tier:not(.featured) .tier-cta { background: var(--ink); color: var(--paper); }
.tier:not(.featured) .tier-cta:hover { background: var(--accent); transform: translateY(-1px); }
.tier.featured .tier-cta { background: var(--accent); color: var(--paper); }
.tier.featured .tier-cta:hover { background: var(--paper); color: var(--ink); transform: translateY(-1px); }
.tier-cta svg { transition: transform 0.3s var(--ease); width: 14px; height: 14px; }
.tier-cta:hover svg { transform: translateX(3px); }

@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .tier { padding: 32px 26px; }
}

/* Comparison table */
.comparison {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 56px;
}
.comparison table { width: 100%; border-collapse: collapse; }
.comparison th, .comparison td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.comparison thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  background: var(--surface-soft);
}
.comparison tbody td:first-child { color: var(--ink-2); font-weight: 500; }
.comparison tbody td.has { color: var(--accent); font-family: var(--mono); font-size: 16px; }
.comparison tbody td.no { color: var(--ink-4); }
.comparison tbody tr:last-child td { border-bottom: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: var(--space-section) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.contact-intro .eyebrow { margin-bottom: 24px; }
.contact-intro h2 {
  font-size: clamp(44px, 6.5vw, 96px);
  letter-spacing: -0.034em;
  line-height: 0.98;
  margin-bottom: 32px;
  margin-top: 24px;
  max-width: 12ch;
}
.contact-intro > p { font-size: 17px; color: var(--ink-3); line-height: 1.55; max-width: 44ch; margin-bottom: 36px; }
.contact-meta { padding-top: 28px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 16px; }
.contact-meta-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
}
.contact-meta-item .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.contact-meta-item .value { font-size: 15px; color: var(--ink-2); }
.contact-meta-item .value a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 44px 40px;
  box-shadow: 0 1px 2px rgba(20,17,13,0.04), 0 24px 60px -20px rgba(20,17,13,0.12);
}

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hairline-2);
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  padding: 6px 0 12px;
  letter-spacing: -0.005em;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-bottom-color: var(--accent); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-4); }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.form-actions .legal { font-size: 12px; color: var(--ink-4); line-height: 1.5; max-width: 36ch; }
.form-actions .legal a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
}
.form-submit:hover { background: var(--accent); transform: translateY(-1px); }
.form-submit svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.form-submit:hover svg { transform: translateX(3px); }
.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 24px;
  background: var(--accent-soft);
  border: 1px solid rgba(184,69,31,0.2);
  border-radius: 12px;
  margin-top: 24px;
}
.form-success.show { display: flex; }
.form-success h4 { font-size: 20px; color: var(--accent-2); letter-spacing: -0.02em; }
.form-success p { font-size: 14px; color: var(--ink-2); }
.form-error {
  display: none;
  padding: 14px 18px;
  background: rgba(184,69,31,0.06);
  border: 1px solid rgba(184,69,31,0.2);
  border-radius: 10px;
  color: var(--accent-2);
  font-size: 14px;
  margin-bottom: 20px;
}
.form-error.show { display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-form { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .legal { text-align: left; }
}

/* ============================================================
   AUTH PAGES (login, signup full-page versions)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: var(--ink);
  color: var(--paper);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(184,69,31,0.20), transparent 55%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .logo .logo-word { color: var(--paper); }
.auth-aside .logo-mark rect { fill: var(--accent); }
.auth-aside .logo-mark path { fill: var(--paper); }
.auth-aside h2 {
  font-size: clamp(36px, 4vw, 56px);
  color: var(--paper);
  letter-spacing: -0.028em;
  margin-top: auto;
  max-width: 16ch;
}
.auth-aside h2 .italic { color: var(--accent); }
.auth-aside .quote { text-align: left; max-width: none; }
.auth-aside .quote blockquote { color: var(--paper); font-size: 24px; line-height: 1.3; margin-bottom: 18px; }
.auth-aside .quote-cite { color: rgba(245,242,234,0.6); }
.auth-aside .quote-cite strong { color: rgba(245,242,234,0.85); }

.auth-main {
  display: flex;
  flex-direction: column;
  padding: 56px;
  background: var(--paper);
}
.auth-main .auth-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: auto;
}
.auth-main .auth-top a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.auth-main .auth-top a:hover { color: var(--accent); }
.auth-card { max-width: 420px; width: 100%; margin: 0 auto; padding: 60px 0; }
.auth-card h1 {
  font-size: 44px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.auth-card .sub { font-size: 16px; color: var(--ink-3); margin-bottom: 36px; line-height: 1.5; }
.auth-card .form-field { margin-bottom: 22px; }
.auth-card .auth-actions {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
  margin-bottom: 28px;
}
.auth-card .auth-actions a { color: var(--accent); }
.auth-card .auth-actions a:hover { color: var(--accent-2); }
.auth-card .auth-actions label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-card .auth-actions input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); }
.auth-card .divider {
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.auth-card .divider::before, .auth-card .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--hairline);
}
.auth-card .switch { text-align: center; font-size: 14px; color: var(--ink-3); }
.auth-card .switch a { color: var(--ink); border-bottom: 1px solid var(--hairline-2); padding-bottom: 1px; }
.auth-card .switch a:hover { border-bottom-color: var(--accent); }
.auth-foot { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-4); }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; padding: 40px 24px; }
  .auth-card { padding: 40px 0; }
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 13, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--paper);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 44px 40px;
  position: relative;
  border: 1px solid var(--hairline);
  box-shadow: 0 32px 80px -20px rgba(20,17,13,0.4);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal-close:hover { background: var(--hairline); color: var(--ink); }
.modal-close svg { width: 14px; height: 14px; }
.modal .logo { margin-bottom: 28px; }
.modal h2 { font-size: 36px; letter-spacing: -0.028em; margin-bottom: 8px; }
.modal-sub { font-size: 15px; color: var(--ink-3); line-height: 1.5; margin-bottom: 32px; }
.modal .form-field { margin-bottom: 22px; }
.modal-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
  margin-bottom: 24px;
}
.modal-row a { color: var(--accent); }
.modal-row a:hover { color: var(--accent-2); }
.modal-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.modal-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); }
.modal-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.modal-submit:hover { background: var(--accent); }
.modal-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }
.modal-footer { text-align: center; font-size: 14px; color: var(--ink-3); }
.modal-footer a {
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-2);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease);
}
.modal-footer a:hover { border-bottom-color: var(--accent); }

@media (max-width: 480px) { .modal { padding: 32px 24px; } }

/* ============================================================
   DASHBOARD (member area)
   ============================================================ */
.dash-shell { padding: 116px 0 96px; min-height: 100vh; }
.dash-header { margin-bottom: 48px; }
.dash-header .eyebrow { margin-bottom: 16px; }
.dash-header h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.028em;
  margin-bottom: 14px;
}
.dash-header h1 .italic { color: var(--accent); }
.dash-header p { color: var(--ink-3); font-size: 17px; max-width: 52ch; }

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 36px 32px;
}
.dash-card.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  position: relative;
  overflow: hidden;
}
.dash-card.dark::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(184,69,31,0.18), transparent 55%);
  pointer-events: none;
}
.dash-card.dark > * { position: relative; z-index: 1; }
.dash-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 16px;
}
.dash-card.dark .label { color: rgba(245,242,234,0.5); }
.dash-card h3 { font-size: 32px; letter-spacing: -0.025em; margin-bottom: 8px; }
.dash-card.dark h3 { color: var(--paper); }
.dash-card .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 28px; }
.dash-card.dark .meta { color: rgba(245,242,234,0.55); }

.progress-track { width: 100%; height: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden; margin: 12px 0 8px; }
.dash-card.dark .progress-track { background: rgba(245,242,234,0.12); }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 1s var(--ease-out); }
.progress-info {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-4);
}
.dash-card.dark .progress-info { color: rgba(245,242,234,0.55); }

.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-stat {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px;
}
.dash-stat .num {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.dash-stat .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* User menu in nav */
.user-menu { position: relative; }
.user-menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.user-menu-btn:hover { background: var(--surface); }
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================================
   LESSON PLAYER
   ============================================================ */
.lesson-page { padding-top: 76px; min-height: 100vh; background: var(--paper-2); }
.lesson-grid { display: grid; grid-template-columns: 1fr 360px; gap: 0; min-height: calc(100vh - 76px); }
.lesson-main { padding: 40px var(--gutter) 80px; }
.lesson-back { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 24px; display: inline-flex; align-items: center; gap: 8px; }
.lesson-back:hover { color: var(--accent); }
.lesson-meta-top {
  display: flex; gap: 20px; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.lesson-meta-top span:not(:last-child)::after {
  content: '·'; margin-left: 20px; color: var(--ink-4);
}
.lesson-main h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin-bottom: 28px;
  max-width: 22ch;
}
.lesson-video {
  background: var(--ink);
  border-radius: 16px;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 24px 60px -20px rgba(20,17,13,0.3);
}
.lesson-video::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,69,31,0.20), transparent 60%);
}
.lesson-video .play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(245,242,234,0.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.lesson-video .play:hover { background: var(--accent); }
.lesson-video .play:hover svg { color: var(--paper); }
.lesson-video .play svg { width: 28px; height: 28px; color: var(--ink); margin-left: 4px; }

.lesson-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}
.lesson-tab {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.lesson-tab.active { color: var(--ink); }
.lesson-tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
}
.lesson-tab:hover { color: var(--ink); }

.lesson-content { font-size: 16px; color: var(--ink-2); line-height: 1.65; max-width: 68ch; }
.lesson-content p { margin-bottom: 18px; }
.lesson-content h3 { font-size: 22px; margin-top: 32px; margin-bottom: 14px; letter-spacing: -0.02em; }

.lesson-resources { display: grid; gap: 12px; max-width: 540px; }
.lesson-resource {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lesson-resource:hover { background: var(--surface-soft); border-color: var(--hairline-2); }
.lesson-resource svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 20px; }
.lesson-resource .info { flex: 1; }
.lesson-resource .name { font-size: 14px; color: var(--ink); font-weight: 500; }
.lesson-resource .size { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; }

.lesson-foot {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.lesson-side {
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  padding: 40px 32px;
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.lesson-side .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 18px;
}
.lesson-side h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 24px; }

.side-modules { display: flex; flex-direction: column; gap: 4px; }
.side-module {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
  transition: background 0.2s var(--ease);
}
.side-module:hover { background: var(--surface-soft); }
.side-module.current { background: var(--accent-soft); color: var(--accent-2); }
.side-module.complete .num { color: var(--positive); }
.side-module.locked { color: var(--ink-4); cursor: not-allowed; }
.side-module .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}
.side-module .title { font-weight: 500; line-height: 1.3; }

@media (max-width: 1024px) {
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-side { border-left: 0; border-top: 1px solid var(--hairline); position: static; max-height: none; }
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-page { padding: 116px 0 96px; min-height: 100vh; }
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 100px; }
.account-nav a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 450;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.account-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.account-nav a.active { background: var(--ink); color: var(--paper); }
.account-section { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 36px; margin-bottom: 24px; }
.account-section h2 { font-size: 28px; letter-spacing: -0.025em; margin-bottom: 8px; }
.account-section .sub { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }

@media (max-width: 800px) {
  .account-grid { grid-template-columns: 1fr; gap: 24px; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.faq-q .toggle {
  width: 28px; height: 28px;
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  flex: 0 0 28px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.3s var(--ease);
}
.faq-item.open .faq-q .toggle { background: var(--accent); color: var(--paper); border-color: var(--accent); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 70ch;
}
.faq-item.open .faq-a { max-height: 600px; padding-top: 18px; }

/* ============================================================
   PROSE / LEGAL PAGES
   ============================================================ */
.prose { max-width: var(--container-prose); margin: 0 auto; padding: 80px var(--gutter) 120px; color: var(--ink-2); }
.prose .updated { font-family: var(--mono); font-size: 12px; color: var(--ink-4); letter-spacing: 0.08em; margin-bottom: 28px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; margin-bottom: 24px; }
.prose h2 { font-size: 28px; letter-spacing: -0.022em; margin-top: 56px; margin-bottom: 16px; }
.prose h3 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; }
.prose p { font-size: 16px; line-height: 1.7; margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 18px; }
.prose li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   404
   ============================================================ */
.notfound {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--gutter);
}
.notfound .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 22vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin-bottom: 24px;
}
.notfound h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.025em; margin-bottom: 16px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.notfound p { color: var(--ink-3); font-size: 17px; max-width: 44ch; margin: 0 auto 36px; }
.notfound .actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: var(--space-section-tight) 0; }
.cta-inner {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: end;
}
.cta-inner h2 {
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 14ch;
}
.cta-side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta-side p { color: var(--ink-3); font-size: 16px; max-width: 40ch; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
  background: var(--paper-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p { font-size: 14px; color: var(--ink-3); max-width: 36ch; margin-top: 18px; line-height: 1.5; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-2); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--ink-4);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.footer-bottom .right { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }

.hero h1 { opacity: 0; transform: translateY(28px); animation: rise 1.1s var(--ease-out) 0.1s forwards; }
.hero-meta { opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease-out) 0.4s forwards; }
.eyebrow.hero-eyebrow { opacity: 0; transform: translateY(12px); animation: rise 0.8s var(--ease-out) 0s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.hidden { display: none !important; }
