/* Early Monks AI — design system
   Palette: night-before-dawn violet, saffron robe accent.
   Type: Young Serif (display), Figtree (text). Self-hosted (strict CSP). */

@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --night: #17132b;
  --night-2: #201a3a;
  --night-3: #2b2350;
  --line: #3b3264;
  --ink: #f0ebf9;
  --mist: #aba1c9;
  --saffron: #f4a91c;
  --saffron-2: #ffc95c;
  --saffron-ink: #2a1a00;
  --moss: #5fc29a;
  --ember: #ff7a72;
  --sky: #8fb4ff;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: clamp(2.6rem, 6vw, 4.4rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--saffron-2); text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--saffron); color: var(--saffron-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font: 600 var(--step-1)/1.3 var(--sans); margin: 0 0 .4em; }
p { margin: 0 0 1em; max-width: 68ch; }
small, .small { font-size: var(--step--1); }
.muted { color: var(--mist); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-tight { padding: 40px 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); color: var(--saffron-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(23, 19, 43, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(59, 50, 100, .6); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; }
.brand span b { color: var(--saffron); font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--night-3); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; }
.account-chip { display: flex; align-items: center; gap: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--night-3); display: grid; place-items: center; font-weight: 700; color: var(--saffron); border: 1px solid var(--line); }
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--night); padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; min-height: 46px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--saffron); color: var(--saffron-ink); }
.btn-primary:hover { background: var(--saffron-2); color: var(--saffron-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--mist); color: var(--ink); }
.btn-danger { background: transparent; color: var(--ember); border-color: rgba(255, 122, 114, .5); }
.btn-danger:hover { background: rgba(255, 122, 114, .1); color: var(--ember); }
.btn-small { padding: 8px 14px; min-height: 36px; font-size: .9rem; }
.btn-wa { background: #25d366; color: #062b14; }
.btn-wa:hover { background: #4be283; color: #062b14; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--saffron-2); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: .95rem; }
.hint { color: var(--mist); font-size: var(--step--1); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"],
input[type="date"], input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--night-2);
  color: var(--ink); font: 400 1rem/1.4 var(--sans); min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(244, 169, 28, .25); }
input[type="file"] { color: var(--mist); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--saffron); flex: none; }
.code-input { font: 600 1.8rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace !important; letter-spacing: .5em; text-align: center; }
.form-error { color: var(--ember); background: rgba(255, 122, 114, .08); border: 1px solid rgba(255, 122, 114, .35); padding: 10px 14px; border-radius: var(--r-sm); }
.form-ok { color: var(--moss); background: rgba(95, 194, 154, .08); border: 1px solid rgba(95, 194, 154, .35); padding: 10px 14px; border-radius: var(--r-sm); }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 0; }
legend { padding: 0 8px; font-weight: 600; }
.pay-methods { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.pay-method { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; cursor: pointer; display: grid; gap: 4px; }
.pay-method:has(input:checked) { border-color: var(--saffron); background: rgba(244, 169, 28, .07); }
.pay-method input { accent-color: var(--saffron); }

/* ---------- surfaces ---------- */
.panel { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.panel-quiet { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); color: var(--mist); white-space: nowrap; }
.badge-gold { color: var(--saffron-2); border-color: rgba(244, 169, 28, .45); }
.badge-ok { color: var(--moss); border-color: rgba(95, 194, 154, .45); }
.badge-warn { color: var(--ember); border-color: rgba(255, 122, 114, .45); }
.badge-blue { color: var(--sky); border-color: rgba(143, 180, 255, .45); }
.price { font-family: var(--serif); font-size: var(--step-3); line-height: 1; }
.price small { font-family: var(--sans); font-size: .9rem; color: var(--mist); }
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--mist); font-weight: 600; font-size: .85rem; }
.table tr:hover td { background: rgba(43, 35, 80, .45); }
.table-wrap { overflow-x: auto; }
.empty { padding: 32px; text-align: center; color: var(--mist); border: 1px dashed var(--line); border-radius: var(--r-md); }
.empty .btn { margin-top: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.kv dt { color: var(--mist); }
.kv dd { margin: 0; word-break: break-word; }
.pre { white-space: pre-wrap; }

/* ---------- hero: the rising sun ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: var(--step-1); color: var(--mist); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sun { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; }
.sun svg { width: 100%; height: 100%; }
.sun .ray { stroke: var(--saffron); stroke-width: 2; stroke-linecap: round; opacity: .85; }
.sun .disc { fill: url(#sunGrad); }
.sun .horizon { stroke: var(--line); }
.sun-reel { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 9 / 16; transform: translate(-50%, -46%); border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 201, 92, .55); background: var(--night-2); box-shadow: 0 30px 80px rgba(244, 169, 28, .18); }
.sun-reel video, .sun-reel img { width: 100%; height: 100%; object-fit: cover; }
.sun-reel .reel-empty { display: grid; place-items: center; height: 100%; text-align: center; padding: 18px; color: var(--mist); font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .sun .ray { stroke-dasharray: 60; stroke-dashoffset: 60; animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i) * 45ms + 200ms); }
  .sun .disc-group { transform-origin: 260px 300px; animation: lift 1.4s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { to { stroke-dashoffset: 0; } }
@keyframes lift { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sun { justify-self: center; max-width: 420px; }
}

/* ---------- three paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.path { padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--night-2); }
.path + .path { border-left: 1px solid var(--line); }
.path:hover { background: var(--night-3); color: var(--ink); }
.path h3 { font-size: var(--step-2); margin: 0; }
.path .go { margin-top: auto; color: var(--saffron-2); font-weight: 600; }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } .path + .path { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- process (real sequence) ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; }
.process li { position: relative; padding: 46px 14px 0 0; counter-increment: step; }
.process li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); color: var(--saffron-ink); font-weight: 700; }
.process li::after { content: ""; position: absolute; top: 16px; left: 40px; right: 8px; height: 1px; background: var(--line); }
.process li:last-child::after { display: none; }
.process strong { display: block; margin-bottom: 4px; }
.process span { color: var(--mist); font-size: .93rem; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; gap: 18px; } .process li { padding: 0 0 0 48px; } .process li::after { display: none; } }

/* ---------- packages ---------- */
.packages { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pkg { display: grid; grid-template-columns: 56px 1.4fr 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pkg-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--night-3); display: grid; place-items: center; color: var(--saffron); }
.pkg-icon svg { width: 26px; height: 26px; }
.pkg h3 { font-size: var(--step-1); margin: 0 0 4px; font-family: var(--sans); font-weight: 700; }
.pkg ul { margin: 0; padding-left: 18px; color: var(--mist); font-size: .93rem; }
.pkg .pkg-price { text-align: right; }
.pkg .pkg-price .price { font-size: var(--step-2); }
@media (max-width: 860px) { .pkg { grid-template-columns: 48px 1fr; } .pkg ul, .pkg .pkg-price { grid-column: 2; text-align: left; } }

/* ---------- product cards (shop) ---------- */
.offer { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--night-2); }
.offer .price { margin-top: auto; }
.offer-hero { background: radial-gradient(120% 140% at 100% 0%, rgba(244, 169, 28, .22), transparent 55%), var(--night-2); border-color: rgba(244, 169, 28, .5); }

/* ---------- portfolio ---------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; border-radius: var(--r-md); overflow: hidden; background: var(--night-2); border: 1px solid var(--line); }
.gallery figcaption { padding: 10px 12px; font-size: .9rem; color: var(--mist); display: flex; justify-content: space-between; gap: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 14px; border-radius: 999px; font: 500 .9rem var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: var(--saffron-ink); }

/* ---------- quotes / faq ---------- */
.quote { font-family: var(--serif); font-size: var(--step-1); line-height: 1.45; margin: 0; }
.quote-by { color: var(--mist); margin-top: 10px; font-size: .95rem; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--saffron); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--mist); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 28px; color: var(--mist); font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h4 { color: var(--ink); font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- cookie banner, toast, modal ---------- */
.cookie { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: var(--night-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.cookie p { font-size: .93rem; color: var(--mist); }
.toasts { position: fixed; z-index: 95; top: 80px; right: 16px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--night-3); border: 1px solid var(--line); border-left: 4px solid var(--saffron); padding: 12px 16px; border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.toast.error { border-left-color: var(--ember); }
.toast.ok { border-left-color: var(--moss); }
dialog { background: var(--night-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(10, 8, 22, .7); backdrop-filter: blur(3px); }
dialog .dlg-body { padding: 26px; display: grid; gap: 16px; }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
dialog .dlg-close { background: none; border: 0; color: var(--mist); font-size: 1.6rem; cursor: pointer; line-height: 1; }

/* ---------- auth pages ---------- */
.auth { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px var(--gutter); }
.auth .panel { width: 100%; max-width: 500px; }
.auth h1 { font-size: var(--step-4); }

/* ---------- dashboard shell ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 69px); }
.side { border-right: 1px solid var(--line); padding: 24px 14px; position: sticky; top: 69px; height: calc(100vh - 69px); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.side a:hover { background: var(--night-2); color: var(--ink); }
.side a[aria-current="page"] { background: var(--night-3); color: var(--saffron-2); }
.side .side-label { color: var(--mist); font-size: .8rem; padding: 18px 12px 6px; }
.dash-main { padding: clamp(20px, 3vw, 40px); min-width: 0; }
.dash-main h1 { font-size: var(--step-4); }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.stat .n { font-family: var(--serif); font-size: var(--step-3); line-height: 1.1; }
.stat .l { color: var(--mist); font-size: .9rem; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; padding: 10px; gap: 4px; }
  .side .side-label { display: none; }
  .side a { white-space: nowrap; }
}

/* ---------- order timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 18px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--night-3); border: 2px solid var(--saffron); }
.timeline time { display: block; color: var(--mist); font-size: .82rem; }
.progress { height: 8px; background: var(--night-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--saffron); border-radius: inherit; }
.media-box { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #000; }
.media-box video, .media-box img { width: 100%; max-height: 70vh; object-fit: contain; }

/* ---------- course / lesson ---------- */
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic { border: 1px solid var(--line); border-radius: var(--r-md); }
.topic summary { cursor: pointer; padding: 16px 18px; display: flex; gap: 14px; align-items: center; list-style: none; }
.topic summary::-webkit-details-marker { display: none; }
.topic .num { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 700; color: var(--mist); }
.topic.done .num { background: var(--moss); border-color: var(--moss); color: #062b1b; }
.topic.current .num { background: var(--saffron); border-color: var(--saffron); color: var(--saffron-ink); }
.topic.locked { opacity: .55; }
.topic .inner { padding: 0 18px 18px 66px; display: grid; gap: 8px; }
.topic .inner a { color: var(--ink); }
.lesson { max-width: 760px; }
.lesson h1 { font-size: var(--step-4); }
.lesson .blk-p { font-size: 1.06rem; line-height: 1.7; }
.lesson .blk-h { font-size: var(--step-2); margin-top: 1.6em; }
.lesson ul, .lesson ol { padding-left: 22px; line-height: 1.7; }
.lesson ol.steps { list-style: none; padding: 0; counter-reset: s; }
.lesson ol.steps li { counter-increment: s; position: relative; padding: 0 0 12px 44px; }
.lesson ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--night-3); color: var(--saffron-2); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.callout { border-radius: var(--r-md); padding: 14px 18px; border: 1px solid; margin: 18px 0; }
.callout-tip { border-color: rgba(95, 194, 154, .4); background: rgba(95, 194, 154, .07); }
.callout-warn { border-color: rgba(255, 122, 114, .4); background: rgba(255, 122, 114, .07); }
.callout strong { display: block; margin-bottom: 4px; }
.prompt-box { position: relative; background: #100d20; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin: 18px 0; font: 400 .95rem/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; }
.prompt-box .prompt-label { display: block; font: 600 .82rem var(--sans); color: var(--saffron-2); margin-bottom: 8px; }
.prompt-box .copy { position: absolute; top: 10px; right: 10px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.compare > div { border-radius: var(--r-md); padding: 14px 16px; border: 1px solid var(--line); }
.compare .weak { border-color: rgba(255, 122, 114, .4); }
.compare .strong { border-color: rgba(95, 194, 154, .4); }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.figure { margin: 22px 0; }
.figure figcaption { color: var(--mist); font-size: .9rem; margin-top: 8px; }
.figure .frame { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--night-2); }
.figure iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.slot { border: 2px dashed var(--saffron); border-radius: var(--r-md); padding: 20px; color: var(--saffron-2); }

/* ---------- legal ---------- */
.legal { max-width: 780px; }
.legal h1 { font-size: var(--step-4); }
.legal h2 { font-size: var(--step-2); margin-top: 2em; }
.legal h3 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-top: 1.4em; }
.legal li { margin-bottom: 6px; }
.legal p, .legal li { line-height: 1.7; }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.block-editor { display: grid; gap: 10px; }
.block-row { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; display: grid; gap: 8px; }
.block-row .row { justify-content: space-between; }
a.offer { color: var(--ink); text-decoration: none; }
a.offer:hover { border-color: var(--saffron); color: var(--ink); }
.offer h3 { margin: 0; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 24px; }
.page-head h1 { font-size: var(--step-5); max-width: 18ch; }
.page-head .lede { font-size: var(--step-1); color: var(--mist); max-width: 60ch; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--saffron); border-bottom: 2px solid var(--saffron); transform: rotate(-45deg); }
.topic summary > .row:last-child { margin-left: auto; }
label.row select { width: auto; min-width: 110px; }
