/* ==========================================================================
   NaijaClass AI — Design System
   Palette: Nigerian green primary, warm gold accent, warm neutrals.
   Mobile-first, modern, print-friendly.
   ========================================================================== */

:root {
  --green-950: #032b18;
  --green-900: #053b21;
  --green-800: #075c33;
  --green-700: #0b6b3a;
  --green-600: #12854a;
  --green-500: #1c9a58;
  --green-100: #d9efe1;
  --green-50:  #eaf5ee;

  --gold: #f2a93b;
  --gold-dark: #d98a15;
  --gold-50: #fdf3e2;

  --terra: #c2410c;
  --terra-50: #fdece3;

  --ink: #0f1a14;
  --ink-2: #26382e;
  --muted: #5f7168;
  --muted-2: #8b9a91;
  --line: #e3e9e4;
  --line-2: #eef2ef;

  --paper: #ffffff;
  --cream: #f6f8f5;
  --bg: #fbfcfa;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --shadow-s: 0 1px 2px rgba(15, 26, 20, .06), 0 2px 8px rgba(15, 26, 20, .04);
  --shadow: 0 4px 12px rgba(15, 26, 20, .06), 0 12px 32px rgba(15, 26, 20, .06);
  --shadow-l: 0 18px 48px rgba(6, 59, 33, .12), 0 4px 12px rgba(6, 59, 33, .06);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;

  --maxw: 1180px;
  --header-h: 72px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .4em;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 800;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.55rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 750; }
h4 { font-size: 1.03rem; font-weight: 750; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-900); color: #eaf5ee; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green p { color: #c3ddcd; }

.center { text-align: center; }
.stack-sm > * + * { margin-top: 10px; }
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.gap-sm { gap: 14px; }
.gap-lg { gap: 34px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 750; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-700);
  background: var(--green-50); border: 1px solid var(--green-100);
  padding: 6px 13px; border-radius: 100px; margin-bottom: 18px;
}
.eyebrow.gold { color: var(--gold-dark); background: var(--gold-50); border-color: #f4e2c2; }
.eyebrow.on-dark { color: #c9e8d6; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.text-gold { color: var(--gold-dark); }
.text-green { color: var(--green-700); }
.underline-gold {
  background: linear-gradient(transparent 62%, rgba(242,169,59,.45) 62%);
  padding: 0 .08em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 252, 250, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(15,26,20,.02), 0 8px 24px rgba(15,26,20,.05);
}
.nav {
  display: flex; align-items: center; gap: 26px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(155deg, var(--green-600), var(--green-900));
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(7,92,51,.28);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { line-height: 1.05; }
.brand-name small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-2); }

.nav-menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: .93rem; font-weight: 620;
  color: var(--ink-2); transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--green-50); color: var(--green-800); }
.nav-links a.active { color: var(--green-800); background: var(--green-50); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; cursor: pointer;
  transition: transform .16s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(11,107,58,.24); }
.btn-primary:hover { background: var(--green-800); box-shadow: 0 10px 26px rgba(11,107,58,.3); }
.btn-gold { background: var(--gold); color: #3d2a05; box-shadow: 0 6px 18px rgba(217,138,21,.26); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-800); background: var(--green-50); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 10px 16px; }
.btn-quiet:hover { background: var(--green-50); color: var(--green-800); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-sm { padding: 9px 15px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 750;
  padding: 5px 11px; border-radius: 100px; background: var(--green-50); color: var(--green-800);
  border: 1px solid var(--green-100); letter-spacing: .01em;
}
.badge.gold { background: var(--gold-50); color: var(--gold-dark); border-color: #f4e2c2; }
.badge.terra { background: var(--terra-50); color: var(--terra); border-color: #f7d7c6; }
.badge.grey { background: var(--cream); color: var(--muted); border-color: var(--line); }
.badge.live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(28,154,88,.18);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: 100px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-2);
}
.chip.on { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-s); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-100); }
.card-flat { box-shadow: none; }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); margin-bottom: 16px; flex: none;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.gold { background: var(--gold-50); color: var(--gold-dark); }
.card-icon.terra { background: var(--terra-50); color: var(--terra); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 84px) 0 clamp(52px, 7vw, 96px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 88% -6%, rgba(242,169,59,.20), transparent 62%),
    radial-gradient(820px 520px at -8% 8%, rgba(18,133,74,.15), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.24rem); max-width: 54ch; }
.hero-actions { margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .87rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line);
}
.trust-item .n { font-size: 1.5rem; font-weight: 800; color: var(--green-800); letter-spacing: -.03em; line-height: 1.1; }
.trust-item .l { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* hero visual */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l);
  border: 5px solid #fff; aspect-ratio: 4 / 3.1; background: var(--cream);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-l); padding: 16px 18px; width: min(272px, 78%);
}
.float-card .fc-top { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); }
.float-card .fc-title { font-size: .78rem; font-weight: 750; color: var(--green-800); }
.float-card .fc-line { height: 8px; border-radius: 4px; background: var(--line-2); margin-bottom: 8px; }
.float-card .fc-line.w80 { width: 80%; } .float-card .fc-line.w60 { width: 60%; } .float-card .fc-line.w92 { width: 92%; }
.float-card .fc-row { display: flex; gap: 7px; margin-top: 11px; }
.float-card .fc-pill { font-size: .68rem; font-weight: 700; padding: 4px 9px; border-radius: 100px; background: var(--green-50); color: var(--green-800); }
.float-card.fc-1 { top: -18px; right: -10px; animation: floaty 6s ease-in-out infinite; }
.float-card.fc-2 { bottom: -22px; left: -14px; animation: floaty 7s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 42px; height: 42px; border-radius: 12px; background: var(--green-900); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- Feature list ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.tick-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.tick-list li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--green-600); }

/* ---------- Subject grid ---------- */
.subject-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.subject-tab {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line); background: var(--paper);
  font-weight: 650; font-size: .9rem; color: var(--ink-2);
}
.subject-tab.on { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.subject-item {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.subject-item .si-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); flex: none; }
.subject-item .si-dot.g { background: var(--gold); }
.subject-item .si-dot.t { background: var(--terra); }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-s); }
.quote-card p { font-size: .98rem; color: var(--ink-2); font-style: italic; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--green-700); font-size: .95rem;
}
.avatar.a2 { background: var(--gold-dark); } .avatar.a3 { background: var(--terra); }
.avatar.a4 { background: var(--green-500); }
.quote-who .nm { font-weight: 750; font-size: .92rem; }
.quote-who .rl { font-size: .82rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; margin-bottom: 10px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-s); position: relative;
}
.price-card.featured { border: 2px solid var(--green-700); box-shadow: var(--shadow-l); }
.price-flag {
  position: absolute; top: -13px; left: 26px; background: var(--gold); color: #3d2a05;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.price-name { font-size: 1.06rem; font-weight: 780; margin-bottom: 4px; }
.price-sub { font-size: .87rem; color: var(--muted); margin-bottom: 18px; min-height: 2.4em; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amount .cur { font-size: 1.15rem; font-weight: 750; color: var(--ink-2); }
.price-amount .val { font-size: 2.5rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.price-amount .per { font-size: .88rem; color: var(--muted); font-weight: 600; }
.price-note { font-size: .82rem; color: var(--muted-2); margin-bottom: 20px; }
.price-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: .91rem; color: var(--ink-2); align-items: flex-start; }
.price-features li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green-600); }
.price-features li.off { color: var(--muted-2); }
.price-features li.off svg { color: var(--muted-2); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table th { font-weight: 750; font-size: .84rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--cream); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td.c, .compare-table th.c { text-align: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-q .plus { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-50);
  color: var(--green-800); display: grid; place-items: center; font-weight: 800; transition: transform .25s; font-size: 1.1rem; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); font-size: .95rem; padding-bottom: 20px; max-width: 78ch; }
.faq-item.open .faq-a { max-height: 420px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--green-900), var(--green-700));
  border-radius: var(--radius-xl); padding: clamp(36px, 5vw, 60px); color: #fff; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,169,59,.28), transparent 68%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9e8d6; max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b9cfc3; padding: 60px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer p { color: #9dbaa9; font-size: .9rem; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: #a9c6b4; transition: color .18s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: #86a493;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--cream); padding: clamp(40px, 5vw, 68px) 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); max-width: 22ch; }
.page-hero .lede { margin-top: 12px; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--green-700); }

/* ---------- Generator layout ---------- */
.gen-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: start; padding: clamp(28px, 4vw, 48px) 0 72px; }
.gen-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 26px; box-shadow: var(--shadow-s); position: sticky; top: calc(var(--header-h) + 20px);
}
.gen-panel h2 { font-size: 1.28rem; margin-bottom: 4px; }
.gen-panel .gp-sub { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 720; margin-bottom: 7px; color: var(--ink-2); }
.field label .hint { font-weight: 500; color: var(--muted-2); font-size: .8rem; }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: .93rem; transition: border-color .18s, box-shadow .18s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7168' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px; padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(18,133,74,.13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.seg { display: flex; gap: 6px; background: var(--cream); border: 1px solid var(--line); padding: 5px; border-radius: 12px; }
.seg button {
  flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 8px;
  font-size: .86rem; font-weight: 680; color: var(--muted); transition: background .18s, color .18s;
}
.seg button.on { background: #fff; color: var(--green-800); box-shadow: var(--shadow-s); }
.gen-panel .btn-generate { margin-top: 6px; }
.gen-tip { margin-top: 16px; font-size: .82rem; color: var(--muted); background: var(--cream);
  border-radius: 11px; padding: 12px 14px; border: 1px dashed var(--line); }

/* output area */
.gen-output { min-height: 520px; }
.output-placeholder {
  border: 2px dashed var(--line); border-radius: var(--radius-l); padding: 60px 30px; text-align: center;
  background: var(--paper);
}
.output-placeholder .op-icon { width: 66px; height: 66px; border-radius: 20px; background: var(--green-50);
  display: grid; place-items: center; margin: 0 auto 20px; color: var(--green-700); }
.output-placeholder .op-icon svg { width: 32px; height: 32px; }
.output-placeholder h3 { margin-bottom: 8px; }
.output-placeholder p { color: var(--muted); max-width: 46ch; margin: 0 auto; font-size: .94rem; }
.op-samples { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 24px; }
.op-samples button {
  border: 1px solid var(--line); background: var(--paper); border-radius: 100px; padding: 8px 15px;
  font-size: .83rem; font-weight: 620; color: var(--ink-2);
}
.op-samples button:hover { border-color: var(--green-600); color: var(--green-800); background: var(--green-50); }

/* loading */
.loading-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 34px; }
.loading-card h3 { display: flex; align-items: center; gap: 12px; }
.spinner {
  width: 20px; height: 20px; border: 2.5px solid var(--green-100); border-top-color: var(--green-600);
  border-radius: 50%; animation: spin .7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.load-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.load-steps li { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: var(--muted); transition: color .3s; }
.load-steps li .ls-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: transparent;
}
.load-steps li.done { color: var(--ink); }
.load-steps li.done .ls-dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.load-steps li.active { color: var(--green-800); font-weight: 680; }
.load-steps li.active .ls-dot { border-color: var(--green-600); border-top-color: transparent; animation: spin .7s linear infinite; }
.skeleton { height: 11px; border-radius: 5px; background: linear-gradient(90deg, var(--line-2), #f7faf8, var(--line-2));
  background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-top: 10px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Document (generated output) ---------- */
.doc-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; box-shadow: var(--shadow-s); position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
}
.doc-toolbar .dt-title { font-weight: 750; font-size: .93rem; margin-right: auto; display: flex; align-items: center; gap: 9px; }
.doc-toolbar .dt-title svg { width: 17px; height: 17px; color: var(--green-600); }
.doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 52px); box-shadow: var(--shadow-s);
}
.doc-header {
  text-align: center; border-bottom: 2px solid var(--green-800); padding-bottom: 20px; margin-bottom: 26px;
}
.doc-header .school { font-size: .8rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--green-700); }
.doc-header h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .01em; }
.doc-header .sub { color: var(--muted); font-size: .9rem; }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 28px; }
.doc-meta .m { background: var(--cream); border-radius: 11px; padding: 12px 14px; }
.doc-meta .m .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 750; }
.doc-meta .m .v { font-size: .95rem; font-weight: 720; color: var(--ink); margin-top: 3px; }
.doc h3 {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; color: var(--green-800);
  margin: 30px 0 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.doc h3:first-of-type { margin-top: 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 7px; font-size: .95rem; color: var(--ink-2); }
.doc p { font-size: .95rem; color: var(--ink-2); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .88rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.doc th { background: var(--green-50); font-weight: 750; color: var(--green-900); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.doc td .t { color: var(--muted); white-space: nowrap; font-weight: 650; }
.doc .obj-list { counter-reset: o; list-style: none; padding: 0; }
.doc .obj-list li { counter-increment: o; position: relative; padding-left: 34px; }
.doc .obj-list li::before {
  content: counter(o); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--green-700); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.doc-note { font-size: .83rem; color: var(--muted-2); font-style: italic; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* exam paper */
.exam-paper .doc-header { border-bottom: 2px solid var(--ink); }
.exam-paper .inst-box {
  border: 1.5px solid var(--ink); border-radius: 10px; padding: 16px 20px; margin-bottom: 26px; background: var(--cream);
}
.exam-paper .inst-box .ib-title { font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin-bottom: 8px; }
.exam-paper .section-bar {
  background: var(--green-900); color: #fff; padding: 11px 16px; border-radius: 9px; font-weight: 750;
  font-size: .9rem; margin: 30px 0 16px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.exam-paper .q { margin-bottom: 22px; }
.exam-paper .q .q-text { font-weight: 600; margin-bottom: 9px; }
.exam-paper .q .q-text .qn { font-weight: 800; color: var(--green-800); margin-right: 6px; }
.exam-paper .opts { list-style: none; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.exam-paper .opts li { display: flex; gap: 9px; font-size: .92rem; }
.exam-paper .opts .ol { font-weight: 750; color: var(--muted); }
.exam-paper .theory .marks { float: right; font-weight: 750; color: var(--muted); font-size: .85rem; }
.answer-key { margin-top: 34px; border-top: 2px dashed var(--line); padding-top: 26px; }
.answer-key[hidden] { display: none; }
.answer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-bottom: 20px; }
.answer-grid .ag {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px; text-align: center; font-size: .85rem; background: var(--cream);
}
.answer-grid .ag b { display: block; color: var(--green-700); font-size: .95rem; }
.answer-key .th-ans { margin-bottom: 14px; font-size: .92rem; }
.answer-key .th-ans b { color: var(--green-800); }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; padding: 32px 0 76px; }
.dash-side { position: sticky; top: calc(var(--header-h) + 20px); }
.dash-side .ds-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-s); }
.dash-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.dash-user .nm { font-weight: 750; font-size: .95rem; }
.dash-user .rl { font-size: .8rem; color: var(--muted); }
.dash-nav { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px; }
.dash-nav button {
  width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px;
  font-size: .9rem; font-weight: 620; color: var(--ink-2); display: flex; align-items: center; gap: 10px;
}
.dash-nav button:hover { background: var(--green-50); color: var(--green-800); }
.dash-nav button.on { background: var(--green-700); color: #fff; }
.dash-nav button svg { width: 18px; height: 18px; }
.dash-nav .cnt { margin-left: auto; font-size: .74rem; font-weight: 750; background: var(--cream); color: var(--muted);
  padding: 2px 8px; border-radius: 100px; }
.dash-nav button.on .cnt { background: rgba(255,255,255,.2); color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-s);
}
.stat .s-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat .s-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.stat .s-ic svg { width: 20px; height: 20px; }
.stat .s-ic.gold { background: var(--gold-50); color: var(--gold-dark); }
.stat .s-ic.terra { background: var(--terra-50); color: var(--terra); }
.stat .s-n { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat .s-l { font-size: .84rem; color: var(--muted); font-weight: 620; margin-top: 4px; }
.stat .s-delta { font-size: .76rem; font-weight: 720; color: var(--green-700); background: var(--green-50); padding: 3px 8px; border-radius: 100px; }

.dash-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-toolbar h2 { margin: 0; font-size: 1.35rem; margin-right: auto; }
.search-box {
  display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 13px; min-width: 220px;
}
.search-box svg { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.search-box input { border: 0; outline: none; width: 100%; font-size: .9rem; background: transparent; }

.content-list { display: grid; gap: 13px; }
.content-item {
  display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 20px; box-shadow: var(--shadow-s); transition: border-color .2s, transform .2s;
}
.content-item:hover { border-color: var(--green-100); transform: translateY(-2px); }
.ci-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); }
.ci-ic svg { width: 21px; height: 21px; }
.ci-ic.exam { background: var(--gold-50); color: var(--gold-dark); }
.ci-ic.scheme { background: var(--terra-50); color: var(--terra); }
.ci-ic.note { background: var(--green-50); color: var(--green-700); }
.ci-body { flex: 1; min-width: 0; }
.ci-body .ci-title { font-weight: 720; font-size: .98rem; margin-bottom: 3px; }
.ci-body .ci-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ci-body .ci-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.ci-actions { display: flex; gap: 7px; flex: none; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; color: var(--muted); transition: all .18s;
}
.icon-btn:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }
.icon-btn.danger:hover { border-color: var(--terra); color: var(--terra); background: var(--terra-50); }
.icon-btn svg { width: 17px; height: 17px; }

.empty-state {
  text-align: center; padding: 56px 26px; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius-l);
}
.empty-state .es-ic { width: 62px; height: 62px; border-radius: 18px; background: var(--green-50); color: var(--green-700);
  display: grid; place-items: center; margin: 0 auto 18px; }
.empty-state .es-ic svg { width: 30px; height: 30px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 42ch; margin: 0 auto 22px; font-size: .94rem; }

.plan-bar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  margin-bottom: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; box-shadow: var(--shadow-s);
}
.plan-bar .pb-text { flex: 1; min-width: 200px; }
.plan-bar .pb-title { font-weight: 740; font-size: .95rem; }
.plan-bar .pb-sub { font-size: .82rem; color: var(--muted); }
.progress { height: 8px; border-radius: 100px; background: var(--line-2); overflow: hidden; margin-top: 9px; }
.progress > span { display: block; height: 100%; border-radius: 100px; background: var(--green-600); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 400;
  display: grid; gap: 10px; width: min(430px, calc(100vw - 32px)); }
.toast {
  background: var(--ink); color: #fff; border-radius: 13px; padding: 14px 18px; font-size: .9rem;
  box-shadow: 0 12px 34px rgba(15,26,20,.3); display: flex; align-items: center; gap: 11px;
  animation: toastIn .28s ease;
}
.toast svg { width: 19px; height: 19px; color: var(--gold); flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.hr-dot { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: .82rem; font-weight: 650; }
.hr-dot::before, .hr-dot::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.kbd { font-family: var(--mono); font-size: .82em; background: var(--cream); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 6px; }
.list-check { list-style: none; padding: 0; margin: 0 0 16px; }
.list-check li { padding-left: 28px; position: relative; margin-bottom: 8px; font-size: .94rem; color: var(--ink-2); }
.list-check li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green-600); font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mono { font-family: var(--mono); }
.mb-0 { margin-bottom: 0; } .mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.hide { display: none !important; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 12px; }
.wrap { flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 560px; }
  .gen-wrap { grid-template-columns: 1fr; }
  .gen-panel { position: static; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper);
    padding: 14px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.nav-open .nav-links { flex-direction: column; align-items: stretch; }
  .site-header.nav-open .nav-cta { flex-direction: column; align-items: stretch; margin-left: 0; }
  .site-header.nav-open .nav-cta .btn { width: 100%; }
  .site-header.nav-open .nav-toggle span { background: transparent; }
  .site-header.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .doc-toolbar { position: static; }
}
@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 20px; }
  .card { padding: 22px; }
  .doc { padding: 22px 18px; }
  .content-item { flex-wrap: wrap; }
  .ci-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .gen-panel, .doc-toolbar, .page-hero, .toast-wrap, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section, .gen-wrap { padding: 0 !important; }
  .gen-wrap { display: block; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  .doc h3 { break-after: avoid; }
  .doc table, .exam-paper .q { break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}

/* =====================================================================
   AI status badges + error card (added for live AI generation)
   ===================================================================== */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ai-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.ai-badge-live {
  color: #0b6b3a;
  background: #e8f3ec;
  border-color: #bfe0cc;
}
.ai-badge-sample {
  color: #b45309;
  background: #fef3e2;
  border-color: #f6d9a8;
}

.ai-error-card {
  background: #fff;
  border: 1px solid #f0d3d3;
  border-radius: 16px;
  padding: 30px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.ai-error-card .aec-icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fdecec;
  color: #c2410c;
}
.ai-error-card .aec-icon svg { width: 26px; height: 26px; }
.ai-error-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #0f172a;
}
.ai-error-card .aec-hint {
  margin: 0 auto 14px;
  max-width: 52ch;
  color: #52606d;
  font-size: 13.5px;
  line-height: 1.55;
}
.ai-error-card .aec-hint a { color: #0f7a43; font-weight: 600; text-decoration: underline; }
.ai-error-card .aec-tech {
  max-width: 58ch;
  margin: 0 auto 18px;
  text-align: left;
  background: #f7f9fc;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13px;
  color: #475467;
}
.ai-error-card .aec-tech summary { cursor: pointer; font-weight: 600; color: #344054; }
.ai-error-card .aec-tech-body {
  margin: 10px 0 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #344054;
}
.ai-error-card .aec-copy-ok { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: #0f7a43; }
.ai-error-card .aec-msg {
  margin: 0 auto 20px;
  max-width: 46ch;
  color: #52606d;
  font-size: 14.5px;
  line-height: 1.6;
}
.ai-error-card .aec-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================================
   LESSON NOTE — illustration checkbox + notebook-style layout
   ===================================================================== */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.check-field:hover { border-color: var(--green-600); background: var(--green-50); }
.check-field input[type="checkbox"] {
  width: 19px; height: 19px; margin: 1px 0 0; flex: none;
  accent-color: var(--green-700); cursor: pointer;
}
.check-field .cf-text { display: block; }
.check-field .cf-title { display: block; font-size: .88rem; font-weight: 720; color: var(--ink); }
.check-field .cf-sub { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* Notebook-style lesson note table */
.doc table.ln-table { font-size: .87rem; }
.doc table.ln-table th { background: var(--green-50); color: var(--green-800); font-weight: 750; }
.doc table.ln-table td.ln-step { width: 22%; background: var(--cream); }
.doc table.ln-table tr.ln-content-row td { background: #fbfdfb; padding: 0; }
.ln-content {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: normal;
}
.ln-content-label {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 780;
  color: var(--gold-dark);
  margin-bottom: 5px;
}

/* Illustration block */
.ln-illustration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 6px 0 22px;
}
.ln-illustration figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ln-illustration figure img { width: 100%; height: auto; display: block; }
.ln-illustration figcaption {
  padding: 9px 12px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-800);
  background: var(--green-50);
  border-top: 1px solid var(--line);
  text-align: center;
}
.ln-ill-desc {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.ln-ill-desc strong { display: block; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.ln-ill-desc p { margin: 0; font-size: .87rem; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 720px) {
  .ln-illustration { grid-template-columns: 1fr; }
}

@media print {
  .ln-illustration figure img { max-height: 78mm; object-fit: contain; }
  .doc table.ln-table tr.ln-content-row { page-break-inside: avoid; }
}
