/* ==========================================================================
   筑基护航 · 数字技能帮扶
   清爽科技蓝 / 零基础友好 / 响应式 / 可访问性优先
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --white: #ffffff;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --teal-600: #0d9488;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --green-50: #ecfdf5;
  --green-500: #10b981;
  --green-600: #059669;
  --navy: #0b1f3a;
  --navy-2: #102a4c;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --shadow-blue: 0 12px 30px rgba(37, 99, 235, .22);
  --font-sans: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
    monospace;
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.large-text { font-size: 18px; }
body.large-text .prose { font-size: 1.05rem; }

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

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

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-800); }

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 16px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-600), var(--cyan-500));
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--blue-700); }
.site-nav a[aria-current="page"] { color: var(--blue-700); background: var(--blue-50); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .18s, background .18s, color .18s;
}
.icon-btn:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); }
.icon-btn svg { width: 19px; height: 19px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(37, 99, 235, .28); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { color: var(--blue-700); border-color: var(--blue-200); background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-800); }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 7px 13px; font-size: 13.5px; border-radius: 9px; }

.nav-toggle { display: none; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section-head p { margin: 12px 0 0; max-width: 660px; color: var(--muted); font-size: 16px; }
.section-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
}
.section-link svg { width: 16px; height: 16px; transition: transform .18s; }
.section-link:hover svg { transform: translateX(3px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-warn { background: var(--amber-50); color: var(--amber-700); }
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-red { background: var(--red-50); color: var(--red-700); }
.badge-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(6, 182, 212, .16), transparent 65%),
    radial-gradient(700px 420px at 12% 8%, rgba(37, 99, 235, .12), transparent 62%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  align-items: center;
  gap: 52px;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.13;
  letter-spacing: -.035em;
  color: var(--ink);
  font-weight: 900;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--blue-600) 10%, var(--cyan-500) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--blue-600); }

.hero-visual { position: relative; min-height: 420px; }
.hero-visual .hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.hero-float svg { width: 17px; height: 17px; color: var(--blue-600); }
.hero-float.f1 { top: 8%; left: -2%; animation-delay: 0s; }
.hero-float.f2 { top: 25%; right: -3%; animation-delay: 1.2s; }
.hero-float.f3 { bottom: 18%; left: 1%; animation-delay: 2.1s; }
.hero-float.f4 { bottom: 4%; right: 6%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Pain cards ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pain-card {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.pain-card::after {
  content: "";
  position: absolute;
  right: -18px; top: -18px;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue-50);
}
.pain-icon {
  position: relative;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: 14px;
}
.pain-icon svg { width: 20px; height: 20px; }
.pain-card h3 { position: relative; margin: 0 0 7px; font-size: 16.5px; color: var(--ink); line-height: 1.45; }
.pain-card p { position: relative; margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* ---------- Module grid ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent, var(--blue-600));
  opacity: .9;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.module-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
}
.module-icon svg { width: 22px; height: 22px; }
.module-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted-2); letter-spacing: .08em; }
.module-card h3 { margin: 0; font-size: 18.5px; line-height: 1.35; color: var(--ink); letter-spacing: -.01em; }
.module-card .module-desc { margin: 8px 0 16px; font-size: 13.5px; line-height: 1.7; color: var(--muted); flex: 1; }
.module-lessons {
  margin: 0 0 16px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
  display: grid;
  gap: 6px;
}
.module-lessons li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.module-lessons li::before {
  content: "";
  flex: 0 0 auto;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}
.module-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.module-foot svg { width: 16px; height: 16px; transition: transform .2s; }
.module-card:hover .module-foot svg { transform: translateX(3px); }

/* ---------- Steps / path ---------- */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.path-card {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.path-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .24);
}
.path-card h3 { margin: 16px 0 8px; font-size: 18px; color: var(--ink); }
.path-card p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--muted); }
.path-card .path-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.path-card .path-link svg { width: 15px; height: 15px; }

/* ---------- Stats band ---------- */
.stats-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 260px at 85% 0%, rgba(6, 182, 212, .26), transparent 70%),
    linear-gradient(135deg, var(--navy), #0e2a4d 55%, #0b3350);
  color: #fff;
  padding: 44px 42px 38px;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 80% 20%, #000, transparent 75%);
}
.stats-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.stats-head h2 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.02em; }
.stats-head p { margin: 8px 0 0; color: rgba(255, 255, 255, .62); font-size: 14px; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .045); }
.stat-value { font-family: var(--font-mono); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.stat-value small { font-size: 14px; font-weight: 600; color: var(--cyan-400); margin-left: 3px; }
.stat-label { margin-top: 7px; font-size: 13px; color: rgba(255, 255, 255, .66); }
.stats-note { position: relative; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: rgba(255, 255, 255, .48); display: flex; align-items: center; gap: 7px; }
.stats-note svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ---------- CTA panels ---------- */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 38px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-700), var(--blue-600) 55%, var(--cyan-600));
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
}
.cta-panel::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  right: -80px; top: -160px;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .05), 0 0 0 80px rgba(255, 255, 255, .035);
}
.cta-panel h2 { position: relative; margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
.cta-panel p { position: relative; margin: 0; color: rgba(255, 255, 255, .78); font-size: 14.5px; max-width: 620px; }
.cta-panel .btn { position: relative; }
.cta-panel .btn-secondary { background: #fff; border-color: #fff; color: var(--blue-700); box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 40px;
  background:
    radial-gradient(700px 280px at 88% 0%, rgba(6, 182, 212, .13), transparent 68%),
    linear-gradient(180deg, #f7fbff, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.page-hero p { margin: 12px 0 0; max-width: 720px; color: var(--muted); font-size: 16px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 7px; }
.breadcrumb li + li::before { content: "/"; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-700); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* ---------- Course index ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.filter-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
}
.chip:hover, .chip[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.chip .num { font-family: var(--font-mono); font-size: 11px; opacity: .7; }

.course-module {
  scroll-margin-top: calc(var(--header-h) + 24px);
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.course-module-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.course-module-head .module-icon { flex: 0 0 auto; width: 48px; height: 48px; }
.course-module-head h2 { margin: 0; font-size: 22px; color: var(--ink); line-height: 1.35; }
.course-module-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 820px; }
.course-module-head .module-meta { margin-left: auto; flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.lesson-list { margin: 0; padding: 0; list-style: none; }
.lesson-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 28px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .18s;
}
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: var(--blue-50); color: inherit; }
.lesson-index { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted-2); }
.lesson-row h3 { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.lesson-row p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.lesson-row .lesson-time { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lesson-row .lesson-time svg { width: 14px; height: 14px; }
.lesson-row .row-arrow { width: 16px; height: 16px; color: var(--muted-2); margin-left: 6px; transition: transform .18s, color .18s; }
.lesson-row:hover .row-arrow { transform: translateX(3px); color: var(--blue-600); }

/* ---------- Module detail ---------- */
.module-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.module-hero::after {
  content: attr(data-num);
  position: absolute;
  right: 4%; bottom: -48px;
  font-family: var(--font-mono);
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 900;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 8%, white);
  pointer-events: none;
}
.module-hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; }
.module-hero h1 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.module-hero .module-lead { margin: 12px 0 0; max-width: 700px; font-size: 16px; color: var(--muted); }
.module-hero .module-icon-lg {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 17px;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent);
  margin-bottom: 18px;
}
.module-hero .module-icon-lg svg { width: 30px; height: 30px; }
.module-side {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: var(--shadow-sm);
}
.module-side dl { margin: 0; display: grid; gap: 12px; }
.module-side .side-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.module-side dt { color: var(--muted); }
.module-side dd { margin: 0; font-weight: 700; color: var(--ink-2); }
.module-side .btn { width: 100%; margin-top: 16px; }

.module-body { padding: 46px 0 80px; }
.module-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.module-outcomes {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 26px;
}
.module-outcomes h2 { margin: 0 0 14px; font-size: 19px; color: var(--ink); }
.module-outcomes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.module-outcomes li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.65; }
.module-outcomes svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--green-600); margin-top: 3px; }

.lesson-cards { display: grid; gap: 14px; }
.lesson-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lesson-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.lesson-card .lesson-badge {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}
.lesson-card h3 { margin: 0; font-size: 17px; color: var(--ink); line-height: 1.45; }
.lesson-card p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.lesson-card .lesson-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lesson-card .lesson-tags span { padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); font-size: 11.5px; }
.lesson-card .lesson-go { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--blue-700); white-space: nowrap; margin-top: 4px; }
.lesson-card .lesson-go svg { width: 15px; height: 15px; }

.aside-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h2, .aside-card h3 { margin: 0 0 12px; font-size: 15px; color: var(--ink); }
.aside-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.aside-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.aside-list a { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; color: var(--text); font-size: 13px; text-decoration: none; line-height: 1.5; }
.aside-list a:hover { background: var(--blue-50); color: var(--blue-700); }
.aside-list .num { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); flex: 0 0 auto; }
.aside-list .current { background: var(--blue-50); color: var(--blue-700); font-weight: 700; }

/* ---------- Lesson page ---------- */
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding: 34px 0 80px;
}
.article {
  min-width: 0;
  padding: 34px 38px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.article-header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 12px 0 0; font-size: clamp(27px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -.025em; color: var(--ink); }
.article-summary { margin: 14px 0 0; font-size: 16px; color: var(--muted); line-height: 1.8; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; color: var(--blue-600); }

.prose { font-size: 16px; line-height: 1.9; color: var(--text); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 34px 0 12px; font-size: 23px; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.prose h3 { margin: 24px 0 8px; font-size: 18px; color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose code { padding: 2px 6px; border-radius: 5px; background: var(--bg-soft); font-family: var(--font-mono); font-size: .9em; color: var(--ink-2); }
.prose kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: .82em;
  color: var(--ink-2);
  line-height: 1.6;
}

.objectives {
  margin: 26px 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--blue-50), #f8fbff);
}
.objectives h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; color: var(--blue-800); }
.objectives h2 svg { width: 18px; height: 18px; }
.objectives ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.objectives li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.objectives li svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--green-600); margin-top: 3px; }

.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: lesson-step; }
.step {
  position: relative;
  padding: 0 0 6px 58px;
  margin-bottom: 26px;
  counter-increment: lesson-step;
}
.step::before {
  content: counter(lesson-step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .22);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px; top: 44px; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--blue-200), var(--blue-50));
}
.step h2 { margin: 2px 0 8px; font-size: 20px; line-height: 1.45; color: var(--ink); }
.step p { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--text); }

.callout {
  display: flex;
  gap: 13px;
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 14.5px;
  line-height: 1.75;
}
.callout svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; }
.callout strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }
.callout p { margin: 0; }
.callout-tip { border-color: var(--blue-200); background: var(--blue-50); }
.callout-tip svg { color: var(--blue-600); }
.callout-warn { border-color: var(--amber-100); background: var(--amber-50); }
.callout-warn svg { color: var(--amber-700); }
.callout-danger { border-color: var(--red-100); background: var(--red-50); }
.callout-danger svg { color: var(--red-600); }

.practice-box {
  margin: 30px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.practice-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 19px; }
.practice-box h2 svg { width: 20px; height: 20px; color: var(--blue-600); }
.practice-box > p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.practice-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.practice-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
  line-height: 1.65;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.practice-list label:hover { border-color: var(--blue-200); background: var(--blue-50); }
.practice-list input { margin: 5px 0 0; width: 17px; height: 17px; accent-color: var(--blue-600); flex: 0 0 auto; }
.practice-list input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-2); }

.faq { margin: 34px 0 0; }
.faq h2 { margin: 0 0 14px; font-size: 23px; color: var(--ink); }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 9px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--blue-200); background: #fbfdff; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 17px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-answer { padding: 0 17px 16px; font-size: 14px; color: var(--text); line-height: 1.8; }

.completion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.completion h2 { margin: 0 0 4px; font-size: 17px; color: var(--ink); }
.completion p { margin: 0; font-size: 13px; color: var(--muted); }
.completion .btn.is-done { background: var(--green-600); box-shadow: 0 8px 18px rgba(5, 150, 105, .18); }

.lesson-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.lesson-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.lesson-nav a:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); color: inherit; }
.lesson-nav .dir { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lesson-nav .dir svg { width: 13px; height: 13px; }
.lesson-nav .title { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.5; }
.lesson-nav .next { text-align: right; align-items: flex-end; }
.lesson-nav .placeholder { visibility: hidden; }

.lesson-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.toc { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 9px; border-radius: 7px; font-size: 13px; color: var(--muted); text-decoration: none; line-height: 1.5; }
.toc a:hover, .toc a.is-active { background: var(--blue-50); color: var(--blue-700); }
.reading-progress {
  position: fixed;
  left: 0; top: 0;
  z-index: 120;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  transition: width .1s linear;
}

/* ---------- Search ---------- */
.search-hero { padding: 52px 0 34px; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .14), var(--shadow); }
.search-box svg { flex: 0 0 auto; width: 21px; height: 21px; color: var(--muted); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
  color: var(--ink);
  padding: 10px 0;
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box .btn { flex: 0 0 auto; }
.search-hints { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.search-hints button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  padding: 5px 11px;
  font-size: 12.5px;
}
.search-hints button:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); }
.search-results { max-width: 900px; margin: 0 auto; padding: 10px 0 80px; }
.search-status { margin: 18px 0; font-size: 13.5px; color: var(--muted); }
.search-status strong { color: var(--ink); }
.result-card {
  display: block;
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.result-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); color: inherit; }
.result-card .result-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 11.5px; color: var(--muted); }
.result-card .result-module { color: var(--blue-700); font-weight: 700; }
.result-card h2 { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.result-card p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.result-card mark { background: var(--amber-100); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.search-empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--white); }
.search-empty svg { width: 38px; height: 38px; color: var(--muted-2); }
.search-empty h2 { margin: 12px 0 6px; font-size: 18px; color: var(--ink); }
.search-empty p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Survey ---------- */
.survey-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; padding: 34px 0 80px; }
.survey-form { padding: 32px 34px 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.form-section { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 8px; }
.form-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.form-section-head .num {
  width: 27px; height: 27px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}
.form-section-head h2 { margin: 0; font-size: 18px; color: var(--ink); }
.form-section > p { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > .field-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field .req { color: var(--red-600); margin-left: 2px; }
.field .hint { margin: 5px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 11px 13px;
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .13);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.option-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.option:hover { border-color: var(--blue-200); background: var(--blue-50); }
.option input { margin: 3px 0 0; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--blue-600); }
.option:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-500) inset; }
.option small { display: block; color: var(--muted); font-size: 11.5px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 8px; }
.form-actions .hint { margin: 0; font-size: 12px; color: var(--muted); }
.form-message { display: none; margin: 16px 0 0; padding: 13px 15px; border-radius: 10px; font-size: 13.5px; line-height: 1.65; }
.form-message.is-error { display: block; border: 1px solid var(--red-100); background: var(--red-50); color: var(--red-700); }
.form-message.is-success { display: block; border: 1px solid #a7f3d0; background: var(--green-50); color: #047857; }
.form-message.is-info { display: block; border: 1px solid var(--blue-200); background: var(--blue-50); color: var(--blue-800); }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }
.survey-success { display: none; padding: 40px 34px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.survey-success.is-visible { display: block; }
.success-icon { width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--green-600); }
.success-icon svg { width: 30px; height: 30px; }
.survey-success h2 { margin: 0 0 8px; font-size: 24px; color: var(--ink); }
.survey-success p { margin: 0 auto 18px; max-width: 480px; font-size: 14px; color: var(--muted); }
.survey-success .ref { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 8px; background: var(--bg-soft); font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.survey-side .aside-card { background: linear-gradient(180deg, #fff, #fbfdff); }
.survey-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.survey-side li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.65; color: var(--text); }
.survey-side li svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--blue-600); margin-top: 2px; }

/* ---------- Help page ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.help-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.help-card .help-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); margin-bottom: 14px; }
.help-card .help-icon svg { width: 21px; height: 21px; }
.help-card h3 { margin: 0 0 7px; font-size: 17px; color: var(--ink); }
.help-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.process-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: p; }
.process-step { position: relative; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.process-step::before {
  counter-increment: p;
  content: "0" counter(p);
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-600);
}
.process-step h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--ink); }
.process-step p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.not-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.not-list li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.65; color: var(--text); }
.not-list svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; }
.not-list .no { color: var(--red-600); }
.not-list .yes { color: var(--green-600); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 34px; align-items: start; }
.about-card { padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.about-card h2 { margin: 0 0 12px; font-size: 21px; color: var(--ink); }
.about-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.85; color: var(--text); }
.about-card p:last-child { margin-bottom: 0; }
.about-card p > svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--blue-600); }
.team-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.team-member { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, var(--blue-100), var(--blue-50)); color: var(--blue-700); font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.team-member strong { display: block; font-size: 13.5px; color: var(--ink); }
.team-member span { display: block; font-size: 11.5px; color: var(--muted); }
.agent-flow { display: grid; gap: 10px; margin: 18px 0 0; }
.agent-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.agent-row .agent-name { font-size: 12.5px; font-weight: 800; color: var(--blue-700); }
.agent-row .agent-task { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--blue-100); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-50); }
.timeline .time { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--blue-700); }
.timeline h3 { margin: 2px 0 3px; font-size: 14px; color: var(--ink); }
.timeline p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .48); }
.footer-brand p { margin: 16px 0 0; max-width: 300px; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .55); }
.footer-col h3 { margin: 0 0 14px; font-size: 13px; color: #fff; letter-spacing: .04em; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-col a { color: rgba(255, 255, 255, .62); font-size: 13px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 0; font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, .5); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 11.5px;
  color: rgba(255, 255, 255, .42);
}
.footer-bottom .sample-note { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom svg { width: 13px; height: 13px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Empty / notices ---------- */
.notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--blue-200);
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: 13.5px;
  line-height: 1.7;
}
.notice svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; }
.notice strong { display: block; margin-bottom: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { min-height: 360px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-copy { max-width: 760px; }
  .pain-grid, .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lesson-layout, .module-body-grid, .survey-wrap { grid-template-columns: minmax(0, 1fr); }
  .lesson-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .lesson-aside .aside-card + .aside-card { margin-top: 0; }
  .module-hero-inner { grid-template-columns: 1fr; }
  .module-side { max-width: 420px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 20px; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(15, 23, 42, .1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: inline-grid; }
  .header-actions .btn-header { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-lead { font-size: 16px; }
  .hero-visual { min-height: 300px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
  .path-grid { grid-template-columns: 1fr; }
  .stats-band { padding: 30px 24px 26px; border-radius: var(--radius-lg); }
  .stats-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .cta-panel .btn { justify-self: start; }
  .article { padding: 24px 22px 28px; }
  .article-header h1 { font-size: clamp(24px, 6vw, 32px); }
  .lesson-layout { padding-top: 22px; }
  .lesson-aside { grid-template-columns: 1fr; }
  .lesson-nav { grid-template-columns: 1fr; }
  .lesson-nav .placeholder { display: none; }
  .completion { flex-direction: column; align-items: flex-start; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .search-box { flex-wrap: wrap; padding: 12px 14px; }
  .search-box input { width: 100%; flex: 1 1 100%; }
  .search-box .btn { width: 100%; }
  .option-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .survey-form { padding: 24px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .module-hero::after { display: none; }
  .course-module-head { flex-wrap: wrap; padding: 22px 20px 18px; }
  .course-module-head .module-meta { margin-left: 0; }
  .lesson-row { padding: 15px 20px; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; }
  .lesson-row .lesson-time { display: none; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  .hero h1 { font-size: 34px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 8px 14px; font-size: 12.5px; }
  .pain-grid, .module-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .hero-float { font-size: 11px; padding: 7px 10px; }
  .hero-float svg { width: 14px; height: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 26px; }
  .stats-band { padding: 24px 18px 20px; }
  .step { padding-left: 48px; }
  .step::before { width: 33px; height: 33px; font-size: 12px; }
  .step:not(:last-child)::after { left: 15px; top: 39px; }
  .step h2 { font-size: 18px; }
  .option-grid, .option-grid.cols-4 { grid-template-columns: 1fr; }
  .option-grid.cols-4 .option { padding: 9px 11px; }
  .process-list { grid-template-columns: 1fr; }
  .lesson-card { grid-template-columns: 36px minmax(0, 1fr); padding: 18px; }
  .lesson-card .lesson-badge { width: 36px; height: 36px; font-size: 12px; }
  .lesson-card .lesson-go { display: none; }
  .article { border-radius: var(--radius); }
  .course-module { border-radius: var(--radius); }
  .lesson-row h3 { font-size: 14.5px; }
  .lesson-row p { display: none; }
  .footer-grid { gap: 22px; }
}

/* ---------- Print ---------- */
@media print {
  :root { --header-h: 0px; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer, .lesson-aside, .reading-progress, .completion,
  .lesson-nav, .hero-actions, .cta-panel, .skip-link, .no-print { display: none !important; }
  .article { border: 0; box-shadow: none; padding: 0; }
  .lesson-layout { display: block; padding: 0; }
  .container { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .step { break-inside: avoid; }
  .callout, .practice-box, .objectives, .faq details { break-inside: avoid; }
  .faq details { border: 0; }
  .faq .faq-answer { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- v1 additions ---------- */
.lesson-end { display: inline-flex; align-items: center; gap: 8px; }
.aside-list a[data-done="true"]::after {
  content: "✓";
  margin-left: auto;
  color: var(--green-600);
  font-weight: 800;
  font-size: 12px;
}
.aside-list a[data-done="true"] { color: var(--green-600); }

.checklist-group {
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.checklist-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--ink);
}
.checklist-num {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}
.checklist-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.checklist-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  cursor: pointer;
  transition: background .18s;
}
.checklist-group label:hover { background: var(--blue-50); }
.checklist-group input { margin: 4px 0 0; width: 17px; height: 17px; accent-color: var(--blue-600); flex: 0 0 auto; }
.checklist-group input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-2); }
.checklist-progress {
  position: sticky;
  bottom: 16px;
  z-index: 10;
  margin-top: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--muted);
}
.checklist-progress strong { color: var(--blue-700); font-family: var(--font-mono); font-size: 17px; }
.checklist-progress .bar { margin-top: 9px; height: 7px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.checklist-progress .bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue-600), var(--cyan-500)); transition: width .3s var(--ease); }

.survey-success .btn { margin: 3px; }
.form-section-head h2 + .badge { margin-left: auto; }
.field .option span { flex: 1; }
.field .option small { margin-top: 2px; }

@media (max-width: 860px) {
  .checklist-group { padding: 20px 18px; }
  .checklist-progress { position: static; }
}
