@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;800&display=swap");

:root {
  --paper: #fff9f0;
  --paper-strong: #fffdf8;
  --surface: rgba(255, 249, 240, 0.74);
  --surface-strong: rgba(255, 253, 248, 0.9);
  --surface-dark: rgba(19, 38, 29, 0.94);
  --ink: #13261d;
  --muted: #566257;
  --accent: #c55a2c;
  --accent-soft: rgba(197, 90, 44, 0.12);
  --accent-2: #2f7560;
  --border: rgba(19, 38, 29, 0.1);
  --shadow: 0 24px 80px rgba(19, 38, 29, 0.12);
  --focus: rgba(197, 90, 44, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(47, 117, 96, 0.2), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(197, 90, 44, 0.18), transparent 24%),
    linear-gradient(180deg, #f9f3e9 0%, #f4ebdc 100%);
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 38, 29, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 38, 29, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 80%);
}

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 30vh;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(19, 38, 29, 0.08));
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0;
  backdrop-filter: blur(14px) saturate(140%);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0 -1rem auto;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(249, 243, 233, 0.92), rgba(249, 243, 233, 0.72), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.3rem;
  background: linear-gradient(135deg, var(--accent), #efbc5d);
  box-shadow:
    0 0 0 0.35rem rgba(197, 90, 44, 0.12),
    0 10px 22px rgba(197, 90, 44, 0.22);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ghost-link,
.lang-toggle {
  min-height: 44px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-weight: 700;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.ghost-link:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 117, 96, 0.3);
  box-shadow: 0 12px 30px rgba(19, 38, 29, 0.08);
}

.ghost-link.is-current,
.ghost-link[aria-current="page"] {
  border-color: rgba(47, 117, 96, 0.34);
  background: rgba(47, 117, 96, 0.14);
  box-shadow: inset 0 0 0 1px rgba(47, 117, 96, 0.12);
  color: var(--accent-2);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
}

.lang-toggle {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease);
}

.lang-toggle:hover {
  color: var(--ink);
}

.lang-toggle.is-active {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.page-flow {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 4rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 16rem;
  background: radial-gradient(circle, rgba(47, 117, 96, 0.1), transparent 62%);
  pointer-events: none;
}

.panel-hero {
  padding: clamp(1.6rem, 3vw, 3rem);
}

.eyebrow,
.kicker,
.summary-kicker {
  margin: 0 0 0.85rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(197, 90, 44, 0.2);
  border-radius: 999px;
  background: rgba(197, 90, 44, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1,
h2.section-title,
.summary-box h2 {
  font-family: "Fraunces", "Noto Sans SC", serif;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  line-height: 0.98;
}

.lead,
.section-lead,
.info-card p,
.shortcut-card p,
.question-card li,
.timeline-step p,
.time-card p,
.prompt-list li,
.close-banner p,
.summary-box p,
.site-footer p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.lead {
  max-width: 62ch;
}

.hero-actions,
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 16px 28px rgba(19, 38, 29, 0.18);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface-strong);
}

.hero-metrics,
.module-grid,
.shortcut-grid,
.insight-grid,
.question-grid,
.session-grid {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  margin-top: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card,
.shortcut-card,
.info-card,
.question-card,
.time-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.metric-card {
  padding: 1rem 1.1rem;
}

.metric-label,
.time-badge {
  margin: 0 0 0.45rem;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-value {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-panel {
  padding: clamp(1.3rem, 3vw, 2.1rem);
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-title {
  max-width: 14ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
}

.section-lead {
  max-width: 64ch;
  margin: 0.9rem 0 0;
}

.shortcut-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 240px;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(255, 249, 240, 0.8)),
    rgba(255, 253, 248, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 18px 36px rgba(19, 38, 29, 0.06);
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 90, 44, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 24px 48px rgba(19, 38, 29, 0.1);
}

.module-card h3 {
  font-size: 1.36rem;
  line-height: 1.15;
}

.module-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(197, 90, 44, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shortcut-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 220px;
  padding: 1.3rem;
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.shortcut-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 117, 96, 0.28);
  box-shadow: 0 20px 44px rgba(19, 38, 29, 0.08);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
}

.shortcut-card h3,
.info-card h3,
.question-card h3,
.time-card h3,
.close-banner h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}

.card-link {
  margin-top: auto;
  color: var(--accent-2);
  font-weight: 800;
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.question-card,
.time-card {
  padding: 1.25rem;
}

.module-hero .hero-layout {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.92fr);
  gap: 1.2rem;
}

.anchor-nav {
  margin-top: 1.5rem;
}

.anchor-nav a {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-weight: 800;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease);
}

.anchor-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 117, 96, 0.28);
}

.summary-box {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface-dark);
  box-shadow: 0 18px 42px rgba(19, 38, 29, 0.18);
}

.summary-box h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.12;
  color: var(--paper);
}

.summary-box p {
  color: rgba(255, 249, 240, 0.76);
}

.pill-list,
.prompt-list {
  list-style: none;
  padding: 0;
}

.pill-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0 0;
}

.pill-list li {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 249, 240, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 240, 0.06);
  color: var(--paper);
  line-height: 1.65;
}

.question-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.question-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.question-card li + li {
  margin-top: 0.55rem;
}

.timeline {
  display: grid;
  gap: 0.25rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(19, 38, 29, 0.08);
}

.timeline-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--accent), #efbc5d);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(197, 90, 44, 0.2);
}

.step-title {
  font-size: 1.18rem;
  margin-bottom: 0.35rem;
}

.session-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.time-card {
  min-height: 220px;
}

.time-badge {
  display: inline-flex;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.prompt-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
}

.prompt-list li {
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.72);
}

.close-banner,
.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.close-banner {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border: 1px solid rgba(47, 117, 96, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(47, 117, 96, 0.08), rgba(197, 90, 44, 0.08));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.8rem;
}

.site-footer p {
  margin: 0;
}

.source-grid,
.slide-grid,
.knowledge-grid,
.flashcard-grid,
.exercise-grid,
.demo-columns {
  display: grid;
  gap: 1rem;
}

.source-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.slide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knowledge-grid,
.flashcard-grid,
.exercise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-card,
.slide-card,
.knowledge-card,
.exercise-card,
.quiz-question,
.quiz-result-panel,
.demo-panel,
.demo-detail-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.source-card,
.slide-card,
.knowledge-card,
.exercise-card,
.quiz-question,
.quiz-result-panel,
.demo-panel,
.demo-detail-card {
  padding: 1.25rem;
}

.source-card p,
.slide-card p,
.knowledge-card p,
.exercise-card p,
.exercise-list li,
.quiz-result,
.demo-summary,
.demo-list li,
.demo-prompt,
.quiz-option span,
.quiz-question legend {
  font-size: 1rem;
  line-height: 1.75;
}

.source-card p,
.slide-card p,
.knowledge-card p,
.exercise-card p,
.exercise-list li,
.demo-summary,
.demo-list li,
.demo-prompt,
.quiz-option span {
  color: var(--muted);
}

.source-badge,
.slide-label,
.quiz-status-label,
.demo-kicker,
.demo-control-label,
.demo-detail-label {
  margin: 0 0 0.7rem;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-badge,
.slide-label,
.demo-kicker,
.quiz-status-label {
  color: var(--accent);
}

.source-badge,
.slide-label {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
}

.source-detail,
.demo-control-label,
.demo-detail-label {
  color: var(--accent-2);
}

.source-detail {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.source-card h3,
.slide-card h3,
.knowledge-card h3,
.exercise-card h3,
.quiz-result-panel h3,
.demo-panel h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  line-height: 1.18;
}

.slide-card {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.85), rgba(243, 234, 220, 0.92)),
    radial-gradient(circle at top right, rgba(47, 117, 96, 0.1), transparent 42%);
}

.knowledge-card,
.exercise-card {
  min-height: 220px;
}

.flash-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  perspective: 1400px;
}

.flash-card-inner {
  position: relative;
  min-height: 240px;
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease);
}

.flash-card.is-flipped .flash-card-inner {
  transform: rotateY(180deg);
}

.flash-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backface-visibility: hidden;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.flash-front {
  background: rgba(255, 253, 248, 0.84);
}

.flash-back {
  background: linear-gradient(135deg, rgba(47, 117, 96, 0.94), rgba(19, 38, 29, 0.98));
  color: var(--paper);
  transform: rotateY(180deg);
}

.flash-face-label,
.flash-hint {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flash-face-label {
  color: var(--accent-2);
}

.flash-back .flash-face-label,
.flash-back .flash-hint {
  color: rgba(255, 249, 240, 0.78);
}

.flash-copy {
  font-size: 1.18rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.flash-card:focus-visible {
  outline: none;
}

.flash-card:focus-visible .flash-face {
  box-shadow:
    0 0 0 3px var(--focus),
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.quiz-form {
  display: grid;
  gap: 1rem;
}

.quiz-question {
  margin: 0;
}

.quiz-question legend {
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 249, 240, 0.54);
  cursor: pointer;
}

.quiz-option + .quiz-option {
  margin-top: 0.75rem;
}

.quiz-option input {
  margin-top: 0.35rem;
  accent-color: var(--accent-2);
}

.quiz-question.is-correct {
  border-color: rgba(47, 117, 96, 0.28);
  box-shadow:
    0 0 0 1px rgba(47, 117, 96, 0.12) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.quiz-question.is-incorrect {
  border-color: rgba(197, 90, 44, 0.28);
  box-shadow:
    0 0 0 1px rgba(197, 90, 44, 0.12) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quiz-result-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(243, 234, 220, 0.96));
}

.quiz-result-panel h3 {
  max-width: 14ch;
}

.quiz-result {
  margin: 0.9rem 0 0;
  color: var(--ink);
}

.demo-shell {
  display: grid;
  gap: 1rem;
}

.demo-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip-toggle {
  min-height: 44px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.chip-toggle:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.chip-toggle.is-active {
  border-color: transparent;
  background: var(--ink);
  color: var(--paper);
}

.demo-panel {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(244, 235, 220, 0.96)),
    radial-gradient(circle at top right, rgba(197, 90, 44, 0.1), transparent 40%);
}

.demo-summary {
  max-width: 62ch;
}

.demo-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.demo-list,
.exercise-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.demo-prompt-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-dark);
}

.demo-prompt-card .demo-detail-label {
  color: rgba(255, 249, 240, 0.7);
}

.copy-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.demo-prompt-card .copy-toolbar {
  margin-top: 0.25rem;
}

.copy-button {
  appearance: none;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 249, 240, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.12);
  color: var(--paper-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease);
}

.copy-button:hover {
  background: rgba(255, 253, 248, 0.2);
}

.copy-button:active {
  transform: translateY(1px);
}

.copy-button.is-success {
  border-color: rgba(108, 203, 169, 0.45);
  background: rgba(108, 203, 169, 0.2);
}

.copy-button.is-error {
  border-color: rgba(255, 173, 146, 0.5);
  background: rgba(197, 90, 44, 0.26);
}

.command-card .copy-button {
  border-color: var(--border);
  background: rgba(255, 253, 248, 0.88);
  color: var(--accent-2);
}

.command-card .copy-button:hover {
  background: var(--paper-strong);
}

.command-card .copy-button.is-success {
  border-color: rgba(47, 117, 96, 0.28);
  background: rgba(47, 117, 96, 0.14);
  color: var(--accent-2);
}

.command-card .copy-button.is-error {
  border-color: rgba(197, 90, 44, 0.3);
  background: rgba(197, 90, 44, 0.12);
  color: var(--accent);
}

.copy-toolbar + .demo-prompt,
.copy-toolbar + pre {
  margin-top: 0.55rem;
}

.demo-prompt {
  margin: 0.7rem 0 0;
  white-space: pre-wrap;
  color: rgba(255, 249, 240, 0.92);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.submodule-strip,
.path-grid,
.surface-grid,
.cadence-grid,
.lesson-grid,
.command-grid,
.practice-grid,
.warning-grid,
.pager-bar,
.resource-row,
.callout-band {
  display: grid;
  gap: 1rem;
}

.submodule-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.submodule-link,
.path-card,
.surface-card,
.cadence-card,
.lesson-card,
.command-card,
.practice-card,
.warning-card,
.pager-card,
.callout-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.submodule-link,
.path-card,
.surface-card,
.cadence-card,
.lesson-card,
.command-card,
.practice-card,
.warning-card,
.pager-card,
.callout-card {
  padding: 1.15rem;
}

.submodule-link {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 148px;
  transition:
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.submodule-link:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 117, 96, 0.28);
  box-shadow: 0 18px 34px rgba(19, 38, 29, 0.08);
}

.submodule-link.is-current {
  border-color: rgba(47, 117, 96, 0.32);
  background:
    linear-gradient(180deg, rgba(47, 117, 96, 0.13), rgba(255, 253, 248, 0.82)),
    rgba(255, 253, 248, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(47, 117, 96, 0.1),
    0 18px 34px rgba(19, 38, 29, 0.08);
}

.submodule-step,
.path-step,
.command-label,
.surface-label,
.cadence-label,
.warning-label,
.pager-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.submodule-link h3,
.path-card h3,
.surface-card h3,
.cadence-card h3,
.lesson-card h3,
.command-card h3,
.practice-card h3,
.warning-card h3,
.pager-card h3,
.callout-card h3 {
  font-size: 1.26rem;
  line-height: 1.18;
}

.submodule-link p,
.path-card p,
.surface-card p,
.cadence-card p,
.lesson-card p,
.practice-card p,
.warning-card p,
.pager-card p,
.callout-card p,
.command-card li,
.checklist li,
.practice-list li,
.resource-chip,
.series-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.submodule-link .path-link,
.pager-link,
.path-link {
  margin-top: auto;
  color: var(--accent-2);
  font-weight: 800;
}

.path-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 255px;
}

.path-time,
.submodule-duration {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-2);
}

.surface-grid,
.cadence-grid,
.command-grid,
.practice-grid,
.warning-grid,
.pager-bar,
.callout-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lesson-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lesson-card,
.practice-card,
.command-card,
.warning-card,
.pager-card,
.callout-card {
  min-height: 220px;
}

.lesson-card strong,
.practice-card strong,
.warning-card strong,
.pager-card strong,
.callout-card strong {
  color: var(--ink);
}

.checklist,
.practice-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.command-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(243, 234, 220, 0.96)),
    radial-gradient(circle at top right, rgba(47, 117, 96, 0.08), transparent 42%);
}

.command-card pre {
  margin: 0.9rem 0 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  color: rgba(255, 249, 240, 0.92);
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.65;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.surface-card,
.cadence-card {
  min-height: 200px;
}

.warning-card {
  background:
    linear-gradient(180deg, rgba(255, 247, 241, 0.92), rgba(255, 253, 248, 0.82)),
    rgba(255, 253, 248, 0.78);
}

.warning-card .warning-label {
  background: rgba(197, 90, 44, 0.14);
}

.resource-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-chip {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.7);
  font-weight: 700;
}

.callout-card {
  background:
    linear-gradient(135deg, rgba(47, 117, 96, 0.1), rgba(255, 253, 248, 0.88)),
    rgba(255, 253, 248, 0.78);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 780ms var(--ease) forwards;
}

.reveal-delay-1 {
  animation-delay: 120ms;
}

.reveal-delay-2 {
  animation-delay: 200ms;
}

.reveal-delay-3 {
  animation-delay: 280ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-metrics,
  .insight-grid,
  .question-grid,
  .session-grid,
  .prompt-list,
  .module-grid,
  .shortcut-grid,
  .module-hero .hero-layout,
  .source-grid,
  .slide-grid,
  .knowledge-grid,
  .flashcard-grid,
  .exercise-grid,
  .quiz-shell,
  .demo-columns,
  .submodule-strip,
  .path-grid,
  .surface-grid,
  .cadence-grid,
  .lesson-grid,
  .command-grid,
  .practice-grid,
  .warning-grid,
  .pager-bar,
  .resource-row,
  .callout-band {
    grid-template-columns: 1fr;
  }

  .section-title,
  h1 {
    max-width: none;
  }

  .close-banner,
  .section-cta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .button,
  .ghost-link,
  .chip-toggle {
    width: 100%;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .lang-toggle {
    flex: 1 1 0;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .anchor-nav a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .submodule-link {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
