/* Soodamoz landing page. Hand-written CSS; tokens mirror the app's globals.css (graphite + one teal accent).
   Shape rule: panels and cards 20px, image tiles 16px, buttons, chips and inputs 12px. */

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-wght.woff2") format("woff2-variations"), url("assets/fonts/vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #23232c;
  --surface: #2a2b34;
  --card: #2e2f38;
  --foreground: #f6f6f7;
  --muted: #37393f;
  --muted-foreground: #b3b4bc;
  --border: #45464e;
  --brand: #11a699;
  --brand-strong: #3cc4b6;
  --brand-foreground: #04201e;
  --brand-soft: rgb(17 166 153 / 0.14);
  --tile: #f4f6f6;
  --danger: #f07b6b;
  --shadow: 0 24px 60px -32px rgb(8 10 16 / 0.7);
  --radius-panel: 20px;
  --radius-tile: 16px;
  --radius-control: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f8fbfb;
  --surface: #eef3f3;
  --card: #fdfefe;
  --foreground: #1f2027;
  --muted: #e8eded;
  --muted-foreground: #565863;
  --border: rgb(31 32 39 / 0.13);
  --brand: #0a7c72;
  --brand-strong: #0a7c72;
  --brand-foreground: #f8fbfb;
  --brand-soft: rgb(10 124 114 / 0.09);
  --tile: #ffffff;
  --danger: #b4392b;
  --shadow: 0 24px 60px -36px rgb(10 60 56 / 0.35);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --background: #f8fbfb;
    --surface: #eef3f3;
    --card: #fdfefe;
    --foreground: #1f2027;
    --muted: #e8eded;
    --muted-foreground: #565863;
    --border: rgb(31 32 39 / 0.13);
    --brand: #0a7c72;
    --brand-strong: #0a7c72;
    --brand-foreground: #f8fbfb;
    --brand-soft: rgb(10 124 114 / 0.09);
    --tile: #ffffff;
    --danger: #b4392b;
    --shadow: 0 24px 60px -36px rgb(10 60 56 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: currentColor; }
.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; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 30; padding: 8px 14px; border-radius: var(--radius-control); background: var(--brand); color: var(--brand-foreground); }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 40px; } }

section { scroll-margin-top: 88px; }
.section { padding-block: 72px; }
@media (min-width: 1024px) { .section { padding-block: 104px; } }

.h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.35rem); font-weight: 800; line-height: 1.45; letter-spacing: -0.01em; max-width: 24ch; }
.lead { margin-top: 14px; max-width: 60ch; color: var(--muted-foreground); font-size: 1.05rem; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--brand-strong); font-size: 0.9rem; font-weight: 700; }
.muted { color: var(--muted-foreground); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding-inline: 22px; border-radius: var(--radius-control);
  font-weight: 700; font-size: 1rem; white-space: nowrap; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--brand); color: var(--brand-foreground); box-shadow: 0 12px 28px -14px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); }
:root[data-theme="light"] .btn-primary:hover { background: #086a61; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn-primary:hover { background: #086a61; } }
.btn-ghost { border-color: var(--border); background: transparent; color: var(--foreground); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { height: 40px; padding-inline: 16px; font-size: 0.92rem; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--background); backdrop-filter: none; } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; color: var(--foreground); }
.logo svg { height: 26px; width: auto; fill: currentColor; }
.nav { display: none; gap: 28px; font-size: 0.95rem; color: var(--muted-foreground); }
.nav a { text-decoration: none; transition: color 0.2s; }
.nav a:hover { color: var(--foreground); }
@media (min-width: 1024px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle { display: flex; gap: 2px; padding: 3px; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-control); }
.theme-toggle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.theme-toggle label { position: relative; cursor: pointer; }
.theme-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-toggle span { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; color: var(--muted-foreground); transition: background-color 0.2s, color 0.2s; }
.theme-toggle input:checked + span { background: var(--foreground); color: var(--background); }
.theme-toggle input:focus-visible + span { outline: 2px solid var(--brand-strong); outline-offset: 1px; }
.theme-toggle .icon { width: 16px; height: 16px; }
@media (max-width: 420px) { .theme-toggle label:last-child { display: none; } }

/* Hero */
.hero { padding-block: 40px 64px; }
@media (min-width: 1024px) { .hero { padding-block: 72px 96px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 900; line-height: 1.4; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; color: var(--brand-strong); }
.hero p { margin-top: 20px; max-width: 46ch; font-size: 1.15rem; color: var(--muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-visual { position: relative; }
.hero-frame { border-radius: var(--radius-panel); background: var(--tile); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Facts */
.facts { border-block: 1px solid var(--border); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 28px 8px; }
@media (min-width: 900px) { .fact + .fact { border-inline-start: 1px solid var(--border); padding-inline-start: 32px; } }
.fact strong { display: block; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 900; line-height: 1.2; }
.fact > span:last-child { color: var(--muted-foreground); font-size: 0.95rem; }
.fact-icon { display: flex; width: 44px; height: 44px; margin-bottom: 14px; align-items: center; justify-content: center; border-radius: var(--radius-control); background: var(--brand-soft); color: var(--brand-strong); }
.fact-icon .icon { width: 22px; height: 22px; }

/* Lesson demo */
.demo-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.loop { margin-top: 32px; display: grid; gap: 26px; }
.loop li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.loop .icon-wrap { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-control); background: var(--brand-soft); color: var(--brand-strong); }
.loop h3 { font-size: 1.05rem; font-weight: 800; }
.loop p { color: var(--muted-foreground); font-size: 0.97rem; }

.quiz { border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--card); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .quiz { padding: 32px; } }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--muted-foreground); }
.quiz-course { display: flex; align-items: center; gap: 8px; }
.quiz-course .icon { color: var(--brand-strong); }
.quiz-progress { display: flex; gap: 6px; }
.quiz-progress i { width: 26px; height: 6px; border-radius: 3px; background: var(--muted); transition: background-color 0.3s; }
.quiz-progress i.done { background: var(--brand); }
.quiz-q { margin-top: 22px; font-size: 1.15rem; font-weight: 800; line-height: 1.8; min-height: 3.6em; }
.quiz-options { margin-top: 20px; display: grid; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: start;
  border: 1.5px solid var(--border); border-radius: var(--radius-control); background: transparent; cursor: pointer;
  font-size: 1rem; line-height: 1.7; transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.quiz-option:hover:not(:disabled) { border-color: var(--brand); }
.quiz-option:active:not(:disabled) { transform: scale(0.99); }
.quiz-option:disabled { cursor: default; }
.quiz-option .key { display: flex; width: 28px; height: 28px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 8px; background: var(--muted); font-size: 0.85rem; font-weight: 700; }
.quiz-option.correct { border-color: var(--brand); background: var(--brand-soft); }
.quiz-option.correct .key { background: var(--brand); color: var(--brand-foreground); }
.quiz-option.wrong { border-color: var(--danger); }
.quiz-option.wrong .key { background: var(--danger); color: var(--background); }
.quiz-feedback { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-control); background: var(--surface); font-size: 0.97rem; }
.quiz-feedback[hidden] { display: none; }
.quiz-feedback strong { display: flex; align-items: center; gap: 6px; }
.quiz-feedback.is-correct strong { color: var(--brand-strong); }
.quiz-feedback.is-wrong strong { color: var(--danger); }
.quiz-feedback p { margin-top: 4px; color: var(--muted-foreground); }
.quiz-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.quiz-done { text-align: center; padding-block: 24px; }
.quiz-done .icon { width: 48px; height: 48px; color: var(--brand-strong); margin-inline: auto; }
.quiz-done h3 { margin-top: 12px; font-size: 1.3rem; font-weight: 800; }
.quiz-done p { margin-top: 6px; color: var(--muted-foreground); }

/* Paths */
.paths-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.scroller-controls { display: none; gap: 8px; }
@media (min-width: 768px) { .scroller-controls { display: flex; } }
.icon-btn { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-control); background: transparent; cursor: pointer; transition: border-color 0.2s; }
.icon-btn:hover { border-color: var(--brand); }
.icon-btn.next .icon { transform: none; }
.icon-btn.prev .icon { transform: scaleX(-1); }
.paths-track {
  margin-top: 36px; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 360px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.path-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--card); }
.path-card.entry { border-color: var(--brand); background: linear-gradient(160deg, var(--brand-soft), transparent 70%), var(--card); }
.path-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.7; }
.path-status { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--radius-control); background: var(--muted); font-size: 0.82rem; font-weight: 700; color: var(--muted-foreground); }
.entry .path-status { background: var(--brand); color: var(--brand-foreground); }
.path-card dl { margin: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.path-card dt { font-weight: 700; }
.path-card dd { margin: 0; color: var(--muted-foreground); }
.path-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; color: var(--muted-foreground); }
.path-meta b { color: var(--foreground); }

/* Courses bento */
.bento { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .feature { grid-column: span 2; grid-row: span 2; }
  .bento .wide { grid-column: span 2; }
}
.course { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--card); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s; }
.course:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 60%, var(--border)); }
.course-img { background: var(--tile); aspect-ratio: 4 / 3; overflow: hidden; }
@media (max-width: 639px) { .course-img { aspect-ratio: 16 / 10; } }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.course:hover .course-img img { transform: scale(1.04); }
.course-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.course h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.7; }
.course p { font-size: 0.92rem; color: var(--muted-foreground); }
.course-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.85rem; color: var(--muted-foreground); }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta .cert { color: var(--brand-strong); }
.feature .course-body { padding: 24px 28px 28px; }
.feature h3 { font-size: 1.4rem; }
.feature p { font-size: 1rem; }
.feature .start { color: var(--brand-strong); font-weight: 800; font-size: 0.95rem; }
.candle-cell .chart { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 190px; padding: 22px 22px 0; background: linear-gradient(180deg, var(--brand-soft), transparent); }
.candle-cell svg { width: 100%; max-width: 520px; height: auto; }
.candle-cell .up { fill: var(--brand); stroke: var(--brand); }
.candle-cell .down { fill: var(--muted-foreground); stroke: var(--muted-foreground); }
.candle-cell .hl { stroke-width: 0; }
.candle-cell .lvl { stroke: var(--foreground); stroke-opacity: 0.35; stroke-dasharray: 3 4; }
.candle-cell text { fill: var(--muted-foreground); font-size: 11px; font-family: inherit; }
.candle-cell .fade { opacity: 0.45; }

/* Habits */
.habit { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.habit .icon-wrap { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--radius-control); background: var(--surface); color: var(--brand-strong); }
.habit h3 { font-size: 1.08rem; font-weight: 800; }
.habit p { color: var(--muted-foreground); }

.habits-layout { margin-top: 44px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .habits-layout { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.habits-list { display: grid; gap: 30px; }
.badge-showcase {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--card);
}
@media (min-width: 560px) { .badge-showcase { grid-template-columns: 1.3fr 1fr 1fr; } .badge-card.big { grid-row: span 2; } }
.badge-card { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius-tile); background: var(--surface); }
.badge-card img { width: 100%; aspect-ratio: 1; height: auto; border-radius: 12px; }
.badge-card figcaption { display: grid; gap: 2px; line-height: 1.6; }
.badge-card b { font-size: 0.92rem; }
.badge-card span { font-size: 0.8rem; color: var(--muted-foreground); }
.badge-card.big { grid-column: span 2; justify-content: center; background: linear-gradient(180deg, var(--brand-soft), transparent), var(--surface); }
@media (min-width: 560px) { .badge-card.big { grid-column: auto; } }
.badge-card.big b { font-size: 1.05rem; }
.badge-more { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 6px 4px 2px; font-size: 0.9rem; color: var(--muted-foreground); }
.badge-more .icon { color: var(--brand-strong); }

/* Review */
.review { background: var(--surface); }
.review-grid { display: grid; gap: 48px; align-items: end; }
@media (min-width: 960px) { .review-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.review-note { margin-top: 24px; display: flex; gap: 10px; padding: 16px 18px; border-radius: var(--radius-control); background: var(--card); border: 1px solid var(--border); font-size: 0.95rem; color: var(--muted-foreground); }
.review-note .icon { color: var(--brand-strong); margin-top: 6px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.tier { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 18px 16px; border-radius: var(--radius-panel); background: var(--card); border: 1px solid var(--border); }
.tier:nth-child(1) { min-height: 210px; }
.tier:nth-child(2) { min-height: 290px; }
.tier:nth-child(3) { min-height: 380px; background: linear-gradient(0deg, var(--brand-soft), transparent 75%), var(--card); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.tier strong { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 900; line-height: 1.1; }
.tier .unit { font-size: 0.85rem; color: var(--muted-foreground); }
.tier h3 { font-size: 1rem; font-weight: 800; }
.tier ul { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted-foreground); }
.tier li { display: flex; align-items: center; gap: 6px; }
.tier .icon { width: 1em; height: 1em; color: var(--brand-strong); }
@media (max-width: 639px) {
  .tiers { gap: 8px; }
  .tier { padding: 14px 10px; border-radius: var(--radius-tile); }
  .tier:nth-child(1) { min-height: 170px; }
  .tier:nth-child(2) { min-height: 220px; }
  .tier:nth-child(3) { min-height: 280px; }
  .tier h3 { font-size: 0.88rem; }
  .tier ul { font-size: 0.8rem; }
}

/* Toolkit */
.toolkit-grid { margin-top: 44px; display: grid; gap: 16px; }
@media (min-width: 900px) { .toolkit-grid { grid-template-columns: 1.15fr 1fr; } }
.panel { border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--card); padding: 26px; }
.glossary h3 { font-size: 1.2rem; font-weight: 800; }
.glossary > p { margin-top: 6px; color: var(--muted-foreground); }
.term { margin-top: 22px; padding: 20px; border-radius: var(--radius-tile); background: var(--surface); }
.term-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.term-head b { font-size: 1.15rem; }
.term-head span { direction: ltr; font-size: 0.9rem; color: var(--muted-foreground); }
.term p { margin-top: 8px; color: var(--muted-foreground); font-size: 0.97rem; }
.term-switch { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-control); background: transparent; font-size: 0.9rem; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--foreground); color: var(--background); border-color: var(--foreground); }
.tools-list { display: grid; gap: 0; }
.tools-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 4px; }
.tools-list li + li { border-top: 1px solid var(--border); }
.tools-list .icon-wrap { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-control); background: var(--brand-soft); color: var(--brand-strong); }
.tools-list h3 { font-size: 1.02rem; font-weight: 800; }
.tools-list p { font-size: 0.94rem; color: var(--muted-foreground); }

/* History */
.history-figure { margin: 0; }
.history-img { position: relative; border-radius: var(--radius-panel); overflow: hidden; aspect-ratio: 16 / 9; max-height: 560px; width: 100%; }
.history-img img { width: 100%; height: 100%; object-fit: cover; }
.history-figure figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--muted-foreground); }
.history-figure figcaption a { color: var(--muted-foreground); }
.history-body { margin-top: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .history-body { grid-template-columns: 1fr 1fr; gap: 64px; } }
.timeline { display: grid; gap: 16px; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: baseline; }
.timeline b { font-size: 1.1rem; color: var(--brand-strong); }
.timeline span { color: var(--muted-foreground); }

/* Roadmap */
.roadmap-list { margin-top: 44px; display: grid; gap: 22px; }
@media (min-width: 900px) { .roadmap-list { grid-template-columns: 1fr 1fr; gap: 28px 64px; } }
.road { display: grid; gap: 10px; }
.road-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.road-head span { font-weight: 400; font-size: 0.92rem; color: var(--muted-foreground); }
.cells { display: flex; flex-wrap: wrap; gap: 6px; }
.cells i { width: 26px; height: 26px; border-radius: 7px; border: 1.5px dashed var(--border); }
.cells i.on { border: 0; background: var(--brand); }
.cells i.part { border: 1.5px solid var(--brand); background: var(--brand-soft); }
.legend { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.88rem; color: var(--muted-foreground); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* FAQ */
.faq-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 800; font-size: 1.04rem; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { transition: transform 0.3s var(--ease); color: var(--muted-foreground); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding-bottom: 22px; max-width: 62ch; color: var(--muted-foreground); }

/* Closing CTA */
.cta-panel {
  display: grid; gap: 32px; align-items: center; padding: 36px 28px; border-radius: var(--radius-panel);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  background: radial-gradient(120% 140% at 100% 0%, var(--brand-soft), transparent 60%), var(--card);
}
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1.4fr auto; padding: 56px; } }
.cta-panel p { margin-top: 12px; color: var(--muted-foreground); max-width: 52ch; }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-side small { display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: 0.88rem; }

/* Footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); padding-block: 36px 44px; font-size: 0.9rem; color: var(--muted-foreground); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--foreground); }
.footer-note { margin-top: 20px; font-size: 0.82rem; line-height: 1.9; }
.footer-note a { color: inherit; }

/* Motion: enter and reveal. JS adds .js to <html>; without it everything is visible. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual { animation: rise 0.9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-visual { animation-delay: 0.2s; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Featured course: its real lesson list instead of a second cover image. */
.lesson-pills { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 26px 28px; background: linear-gradient(200deg, var(--brand-soft), transparent 80%); border-bottom: 1px solid var(--border); }
.lesson-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border-radius: var(--radius-control); background: var(--card); border: 1px solid var(--border); font-size: 0.92rem; }
.lesson-pills b { color: var(--brand-strong); font-size: 0.82rem; }
.lesson-pills li:first-child { border-color: var(--brand); }
@media (min-width: 1024px) { .lesson-pills { flex: 1; padding: 32px; gap: 10px; } .lesson-pills li { font-size: 0.98rem; padding: 8px 14px 8px 16px; } }

/* Courses on narrower screens: the bento was too tall below 1024px. */
@media (min-width: 640px) and (max-width: 1023px) {
  .bento .feature, .bento .wide { grid-column: span 2; }
  .bento .feature { display: grid; grid-template-columns: 1.1fr 1fr; }
  .bento .feature .lesson-pills { border-bottom: 0; border-inline-end: 1px solid var(--border); }
  .bento .wide { display: grid; grid-template-columns: 1fr 1fr; }
  .bento .wide .chart { padding: 20px; }
  .course-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 639px) {
  .bento { gap: 12px; }
  .course:not(.feature):not(.wide) { display: grid; grid-template-columns: 104px 1fr; }
  .course:not(.feature):not(.wide) .course-img { aspect-ratio: auto; height: 100%; min-height: 104px; }
  .course:not(.feature):not(.wide) .course-body { padding: 14px 16px; gap: 4px; }
  .course:not(.feature):not(.wide) h3 { font-size: 0.97rem; }
  .course:not(.feature):not(.wide) p { font-size: 0.88rem; line-height: 1.75; }
  .course-meta { padding-top: 6px; }
  .lesson-pills { padding: 18px; gap: 6px; }
  .lesson-pills li { font-size: 0.85rem; padding: 4px 10px; }
  .feature .course-body { padding: 18px 18px 20px; }
  .feature h3 { font-size: 1.2rem; }
  .candle-cell .chart { min-height: 0; padding: 16px 16px 0; }
}

/* Skill graph */
.skills-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .skills-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.skill-list { margin-top: 28px; display: grid; gap: 12px 28px; }
@media (min-width: 560px) { .skill-list { grid-template-columns: 1fr 1fr; } }
.skill-list li { display: grid; gap: 2px; padding-inline-start: 14px; border-inline-start: 2px solid var(--brand); }
.skill-list b { font-size: 0.98rem; }
.skill-list span { font-size: 0.86rem; line-height: 1.7; color: var(--muted-foreground); }
.skill-card { margin: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--card); box-shadow: var(--shadow); }
.skill-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.skill-card-head b { font-size: 1.05rem; }
.skill-card-head span { font-size: 0.82rem; color: var(--muted-foreground); }
#skill-radar { display: block; width: 100%; max-width: 440px; margin: 12px auto 0; overflow: visible; }
#skill-radar .ring { fill: none; stroke: var(--border); stroke-width: 1; }
#skill-radar .ring.outer { stroke: color-mix(in srgb, var(--muted-foreground) 45%, transparent); }
#skill-radar .avg { fill: color-mix(in srgb, var(--muted-foreground) 18%, transparent); stroke: var(--muted-foreground); stroke-width: 1; stroke-dasharray: 3 3; stroke-linejoin: round; }
#skill-radar .me { fill: color-mix(in srgb, var(--brand) 22%, transparent); stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
#skill-radar .dot { fill: var(--brand); stroke: var(--card); stroke-width: 2; }
#skill-radar text { fill: var(--muted-foreground); font-size: 13px; font-family: inherit; }
.skill-stage { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.skill-legend { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 0.82rem; color: var(--muted-foreground); }
.skill-legend li { display: flex; align-items: center; gap: 6px; }
.skill-legend i { display: inline-block; width: 16px; }
.skill-legend .me { height: 2px; border-radius: 2px; background: var(--brand); }
.skill-legend .avg { border-top: 1.5px dashed var(--muted-foreground); }
