/* =========================================================
   MASTERY DIGITAL PRODUK — Interactive E-Book
   Design System · Navy #0F172A + Gold
   ========================================================= */
:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --navy-3: #334155;
  --slate: #64748B;
  --slate-2: #94A3B8;
  --line: #E2E8F0;
  --gold: #D4A63A;
  --gold-2: #F5C66B;
  --gold-3: #B8862A;
  --gold-soft: #FBF4E2;
  --emerald: #10B981;
  --emerald-soft: #E7F8F1;
  --sky: #0284C7;
  --sky-soft: #E6F3FB;
  --rose: #E11D48;
  --rose-soft: #FDECEF;
  --violet: #7C3AED;

  --bg: #E8ECF2;
  --page: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --card: #F8FAFC;
  --card-2: #F1F5F9;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --fs: 16.5px;
  --radius: 16px;
  --shadow-page: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 60px -24px rgba(15, 23, 42, .28);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px -14px rgba(15, 23, 42, .22);
  --topbar: 64px;
  --sidebar: 300px;
}

[data-theme="dark"] {
  --bg: #070C18;
  --page: #0F172A;
  --ink: #F1F5F9;
  --ink-2: #CBD5E1;
  --muted: #94A3B8;
  --line: #1E293B;
  --card: #131D33;
  --card-2: #18233B;
  --gold-soft: rgba(212, 166, 58, .12);
  --emerald-soft: rgba(16, 185, 129, .12);
  --sky-soft: rgba(2, 132, 199, .14);
  --rose-soft: rgba(225, 29, 72, .14);
  --shadow-page: 0 0 0 1px rgba(148, 163, 184, .08), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --shadow-card: 0 0 0 1px rgba(148, 163, 184, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.72;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- TOPBAR ---------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: rgba(15, 23, 42, .92); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(212, 166, 58, .18);
  color: #fff;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.topbar .brand svg { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-family: var(--font-display); font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.brand-text small { font-size: 11px; color: var(--gold-2); letter-spacing: .14em; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #E2E8F0; font: 600 13px var(--font); cursor: pointer; text-decoration: none;
  transition: all .2s ease;
}
.tb-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-1px); }
.tb-btn svg { width: 18px; height: 18px; }
.tb-btn.primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  color: var(--navy); border-color: transparent; box-shadow: 0 6px 18px -6px rgba(212, 166, 58, .7);
}
.tb-btn.primary:hover { filter: brightness(1.06); color: var(--navy); }
.tb-group { display: flex; gap: 6px; }
.progress-track { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); box-shadow: 0 0 12px rgba(245, 198, 107, .7); transition: width .1s linear; }
.reading-meta { font-size: 12px; color: var(--slate-2); white-space: nowrap; }

/* ---------------- SIDEBAR ---------------- */
.sidebar {
  position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); z-index: 40;
  background: var(--navy); color: #CBD5E1; overflow-y: auto;
  border-right: 1px solid rgba(212, 166, 58, .12);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  scrollbar-width: thin; scrollbar-color: #334155 transparent;
}
.sidebar-head { padding: 22px 20px 12px; }
.sidebar-head .label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.overall { margin-top: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px 14px; }
.overall-top { display: flex; justify-content: space-between; font-size: 12.5px; color: #E2E8F0; font-weight: 600; }
.overall-top span:last-child { color: var(--gold-2); }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--emerald), #34D399); transition: width .5s ease; }
.toc { list-style: none; margin: 6px 0 30px; padding: 0 10px; }
.toc a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: #94A3B8; text-decoration: none; font-size: 13.5px; line-height: 1.35; transition: all .2s;
}
.toc a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.toc a.active { background: linear-gradient(90deg, rgba(212, 166, 58, .18), rgba(212, 166, 58, .02)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.toc .num {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); color: var(--gold-2); font: 700 11.5px var(--font);
}
.toc a.active .num { background: var(--gold); color: var(--navy); }
.toc .done-dot { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #334155; flex: none; display: grid; place-items: center; }
.toc .done-dot.full { background: var(--emerald); border-color: var(--emerald); }
.toc .done-dot.full::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.toc .done-dot.partial { border-color: var(--emerald); background: conic-gradient(var(--emerald) var(--p, 0%), transparent 0); }
.toc-sep { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #475569; padding: 14px 12px 6px; font-weight: 700; }

/* ---------------- MAIN / PAGES ---------------- */
.main { margin-left: var(--sidebar); padding: calc(var(--topbar) + 36px) 28px 80px; transition: margin .35s ease; }
body.toc-hidden .sidebar { transform: translateX(-100%); }
body.toc-hidden .main { margin-left: 0; }
.page {
  position: relative; max-width: 860px; margin: 0 auto 36px; background: var(--page);
  border-radius: 6px; box-shadow: var(--shadow-page); padding: 72px 76px 64px;
  transition: background .3s ease;
}
.page::after { /* page number */
  content: attr(data-page); position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  font-size: 11.5px; color: var(--slate-2); letter-spacing: .12em;
}
.page-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  position: absolute; top: 26px; left: 76px; right: 76px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2);
}
.page-head span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.page-head svg { width: 16px; height: 16px; }

/* ---------------- TYPOGRAPHY ---------------- */
.chapter-hero { margin: 4px 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); position: relative; }
.chapter-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
[data-theme="dark"] .chapter-kicker { color: var(--gold-2); }
.chapter-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.chapter-num-bg {
  position: absolute; right: -8px; top: -30px; font: 800 150px/1 var(--font-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(212, 166, 58, .22); pointer-events: none; user-select: none;
}
.chapter-title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); font-weight: 700; margin-top: 14px; letter-spacing: -.01em; max-width: 92%; }
.chapter-title em { font-style: italic; color: var(--gold-3); }
[data-theme="dark"] .chapter-title em { color: var(--gold-2); }
.chapter-lead { font-size: 1.08em; color: var(--muted); margin-top: 14px; max-width: 640px; }
.chapter-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip svg { width: 14px; height: 14px; color: var(--gold); }

h3.sec { font-family: var(--font-display); font-size: 1.5em; margin: 2.1em 0 .7em; display: flex; gap: 12px; align-items: baseline; }
h3.sec .sec-no { font: 800 .62em var(--font); color: var(--gold-3); background: var(--gold-soft); padding: 4px 9px; border-radius: 8px; letter-spacing: .04em; flex: none; transform: translateY(-3px); }
[data-theme="dark"] h3.sec .sec-no { color: var(--gold-2); }
h4.sub { font-size: 1.05em; margin: 1.6em 0 .6em; }
.lead-p { font-size: 1.08em; color: var(--ink-2); }
.lead-p::first-letter { font: 700 3.3em/0.85 var(--font-display); float: left; margin: 6px 10px 0 0; color: var(--gold-3); }
strong { color: var(--ink); }
mark { background: linear-gradient(transparent 55%, rgba(245, 198, 107, .55) 0); color: inherit; padding: 0 2px; }

ul.list, ol.list { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
ul.list li, ol.list li { position: relative; padding-left: 30px; margin-bottom: .7em; }
ul.list li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
ol.list { counter-reset: n; }
ol.list li { counter-increment: n; }
ol.list li::before { content: counter(n); position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font: 700 11.5px/22px var(--font); text-align: center; }
[data-theme="dark"] ol.list li::before { background: var(--gold); color: var(--navy); }

/* ---------------- STEPS ---------------- */
.steps { display: grid; gap: 14px; margin: 1.2em 0 1.6em; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.step:hover { transform: translateX(4px); border-color: rgba(212, 166, 58, .5); box-shadow: var(--shadow-card); }
.step-n { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font: 800 16px var(--font); color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.step h4 { font-size: 1em; margin-bottom: 4px; }
.step p { margin: 0; font-size: .95em; }
.kbd { font: 600 .82em var(--font-mono); padding: 2px 7px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--ink); white-space: nowrap; }

/* ---------------- CALLOUTS ---------------- */
.callout { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 20px; border-radius: 14px; margin: 1.4em 0; border: 1px solid; }
.callout .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.callout .ic svg { width: 20px; height: 20px; }
.callout h5 { margin: 0 0 4px; font-size: .95em; color: var(--ink); }
.callout p { margin: 0; font-size: .94em; }
.callout.tip { background: var(--emerald-soft); border-color: rgba(16, 185, 129, .3); }
.callout.tip .ic { background: var(--emerald); color: #fff; }
.callout.info { background: var(--sky-soft); border-color: rgba(2, 132, 199, .28); }
.callout.info .ic { background: var(--sky); color: #fff; }
.callout.warn { background: var(--rose-soft); border-color: rgba(225, 29, 72, .25); }
.callout.warn .ic { background: var(--rose); color: #fff; }
.callout.gold { background: var(--gold-soft); border-color: rgba(212, 166, 58, .35); }
.callout.gold .ic { background: var(--navy); color: var(--gold-2); }

/* ---------------- TABLES ---------------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9em; min-width: 560px; }
.tbl th { background: var(--navy); color: #fff; text-align: left; padding: 13px 16px; font-weight: 700; font-size: .92em; letter-spacing: .01em; }
.tbl th:first-child { color: var(--gold-2); }
.tbl td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; background: var(--page); }
.tbl tr:nth-child(even) td { background: var(--card); }
.tbl tbody tr:hover td { background: var(--gold-soft); }
.tbl td:first-child { font-weight: 700; color: var(--ink); }
.tbl .hl { color: var(--emerald); font-weight: 700; }
.tbl .badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-3); font-weight: 700; font-size: .85em; white-space: nowrap; }
[data-theme="dark"] .tbl .badge { color: var(--gold-2); }

/* ---------------- FIGURES ---------------- */
figure.fig { margin: 2em 0; }
.fig-frame { border-radius: 16px; overflow: hidden; background: var(--navy); position: relative; box-shadow: var(--shadow-card); }
.fig-frame.light { background: var(--card); border: 1px solid var(--line); }
figcaption { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .84em; color: var(--muted); }
figcaption b { flex: none; color: var(--gold-3); font-weight: 800; letter-spacing: .04em; }
[data-theme="dark"] figcaption b { color: var(--gold-2); }
.fig-tag { position: absolute; left: 18px; bottom: 16px; background: rgba(15, 23, 42, .78); backdrop-filter: blur(8px); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(245, 198, 107, .4); }
.fig-tag span { color: var(--gold-2); }
.diagram { padding: 30px 26px; }
.diagram-title { text-align: center; font: 700 12px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 22px; }
.fig-frame.light .diagram-title { color: var(--gold-3); }

/* ---------------- PROMPT BOX ---------------- */
.prompt { margin: 1.6em 0; border-radius: 14px; overflow: hidden; background: #0B1222; border: 1px solid #1E293B; box-shadow: var(--shadow-card); }
.prompt-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #111A2E; border-bottom: 1px solid #1E293B; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; }
.dots i:nth-child(2) { background: #FBBF24; }
.dots i:nth-child(3) { background: #34D399; }
.prompt-title { flex: 1; font: 700 12px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font); padding: 6px 11px; border-radius: 8px; border: 1px solid #334155; background: #1E293B; color: #E2E8F0; cursor: pointer; transition: all .2s; }
.copy-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.copy-btn.copied { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.copy-btn svg { width: 14px; height: 14px; }
.prompt pre { margin: 0; padding: 20px 22px; font: 13.2px/1.75 var(--font-mono); color: #CBD5E1; white-space: pre-wrap; word-break: break-word; }
.prompt pre .ph { color: var(--gold-2); background: rgba(245, 198, 107, .1); border-radius: 4px; padding: 0 3px; }
.prompt pre .k { color: #7DD3FC; font-weight: 600; }

/* ---------------- WHATSAPP SCRIPT ---------------- */
.wa { margin: 1.6em 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #075E54; color: #fff; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); display: grid; place-items: center; color: var(--navy); font-weight: 800; }
.wa-head b { display: block; font-size: 14px; }
.wa-head small { font-size: 11.5px; opacity: .8; }
.wa-head .copy-btn { margin-left: auto; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.wa-body { padding: 22px 18px; background: #ECE5DD; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 14px 14px; }
[data-theme="dark"] .wa-body { background-color: #0B141A; background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px); }
.wa-bubble { max-width: 92%; margin-left: auto; background: #DCF8C6; color: #111B21; padding: 12px 14px 22px; border-radius: 12px 0 12px 12px; position: relative; font-size: .93em; line-height: 1.62; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); white-space: pre-line; }
[data-theme="dark"] .wa-bubble { background: #005C4B; color: #E9EDEF; }
.wa-bubble .t { position: absolute; right: 10px; bottom: 5px; font-size: 10.5px; color: #667781; }
[data-theme="dark"] .wa-bubble .t { color: #8696A0; }
.wa-bubble .ph { background: rgba(212, 166, 58, .25); border-radius: 4px; padding: 0 3px; font-weight: 600; }

/* ---------------- WORKSHEET ---------------- */
.worksheet { margin: 2.4em 0 .5em; border-radius: 18px; overflow: hidden; border: 1.5px dashed rgba(212, 166, 58, .6); background: linear-gradient(180deg, var(--gold-soft), transparent 140px); }
.ws-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 6px; }
.ws-badge { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.ws-badge svg { width: 24px; height: 24px; }
.ws-head h4 { font-family: var(--font-display); font-size: 1.2em; }
.ws-head small { display: block; color: var(--muted); font-size: .82em; }
.ws-score { margin-left: auto; text-align: right; flex: none; }
.ws-score b { font: 800 22px var(--font); color: var(--emerald); display: block; line-height: 1; }
.ws-score small { font-size: 11px; color: var(--muted); }
.ws-meter { margin: 12px 22px 6px; }
.ws-meter.meter { background: var(--card-2); }
.ws-list { list-style: none; margin: 0; padding: 10px 14px 18px; }
.ws-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 10px; border-radius: 12px; cursor: pointer; transition: background .2s; user-select: none; }
.ws-item:hover { background: rgba(212, 166, 58, .08); }
.ws-item input { position: absolute; opacity: 0; pointer-events: none; }
.ws-box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--slate-2); display: grid; place-items: center; transition: all .25s cubic-bezier(.3, 1.6, .5, 1); margin-top: 1px; background: var(--page); }
.ws-box svg { width: 14px; height: 14px; color: #fff; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.ws-item input:checked + .ws-box { background: var(--emerald); border-color: var(--emerald); }
.ws-item input:checked + .ws-box svg { transform: scale(1); }
.ws-item input:checked ~ .ws-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(16, 185, 129, .6); }
.ws-text { font-size: .95em; }
.ws-done { display: none; margin: 0 22px 20px; padding: 12px 16px; border-radius: 12px; background: var(--emerald); color: #fff; font-weight: 700; font-size: .9em; align-items: center; gap: 10px; animation: pop .4s ease; }
.ws-done svg { width: 18px; height: 18px; }
.worksheet.complete .ws-done { display: flex; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------------- GENERIC GRIDS & CARDS ---------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(212, 166, 58, .45); }
.card h4 { font-size: 1em; margin: 10px 0 6px; }
.card p { font-size: .9em; margin: 0; }
.card .ic-wrap { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); }
.card .ic-wrap svg { width: 22px; height: 22px; }

/* ---------------- COVER ---------------- */
.page.cover { padding: 0; overflow: hidden; background: var(--navy); color: #fff; min-height: 1120px; display: flex; flex-direction: column; border-radius: 6px; }
.page.cover::after { display: none; }
.cover-bg { position: absolute; inset: 0; pointer-events: none; }
.cover-bg svg { width: 100%; height: 100%; }
.cover-inner { position: relative; z-index: 1; padding: 64px 70px 0; flex: 1; display: flex; flex-direction: column; }
.cover-top { display: flex; align-items: center; justify-content: space-between; }
.cover-pub { display: flex; align-items: center; gap: 12px; }
.cover-pub svg { width: 46px; height: 46px; }
.cover-pub b { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; display: block; line-height: 1.1; }
.cover-pub small { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.cover-edition { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; border: 1px solid rgba(245, 198, 107, .5); color: var(--gold-2); padding: 8px 14px; border-radius: 999px; }
.cover-title { margin-top: 70px; font-family: var(--font-display); font-weight: 800; line-height: .98; letter-spacing: -.01em; }
.cover-title .l1 { display: block; font-size: 64px; color: #fff; }
.cover-title .l2 { display: block; font-size: 92px; background: linear-gradient(180deg, #FCE7AE, var(--gold-2) 40%, var(--gold) 70%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cover-rule { display: flex; align-items: center; gap: 14px; margin: 28px 0 22px; color: var(--gold-2); }
.cover-rule i { height: 1px; width: 90px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.cover-rule i:last-child { background: linear-gradient(90deg, var(--gold-2), transparent); }
.cover-rule svg { width: 14px; height: 14px; }
.cover-sub { font-size: 21px; line-height: 1.5; color: #CBD5E1; max-width: 560px; font-weight: 500; }
.cover-sub b { color: var(--gold-2); }
.cover-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cover-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cover-badges svg { width: 16px; height: 16px; color: var(--gold-2); }
.cover-img { position: relative; margin: 40px -70px 0; }
.cover-img img { width: 100%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent); }
.cover-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 22px 70px 34px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #94A3B8; letter-spacing: .08em; }
.cover-foot b { color: var(--gold-2); }

/* ---------------- COPYRIGHT ---------------- */
.legal { text-align: center; max-width: 620px; margin: 0 auto; }
.legal .logo-xl { width: 84px; height: 84px; margin: 10px auto 18px; }
.legal h2 { font-family: var(--font-display); font-size: 26px; }
.legal .t2 { color: var(--gold-3); font-weight: 600; margin: 8px 0 4px; }
.legal .fine { font-size: .88em; color: var(--muted); text-align: justify; }
.legal-box { margin-top: 28px; padding: 22px 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.legal-box h5 { margin: 0 0 8px; color: var(--ink); font-size: .9em; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.legal-box h5 svg { width: 16px; height: 16px; color: var(--gold); }
.legal-box p { font-size: .88em; margin: 0; }

/* ---------------- ECOSYSTEM ---------------- */
.eco-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); }
.eco-stats div { background: var(--navy); padding: 18px 16px; text-align: center; color: #94A3B8; font-size: 12px; }
.eco-stats b { display: block; font: 800 24px var(--font); color: var(--gold-2); margin-bottom: 2px; }

/* ---------------- ROADMAP ---------------- */
.roadmap { position: relative; padding: 34px 20px 26px; }
.roadmap svg.path { position: absolute; inset: 0; width: 100%; height: 100%; }
.road-nodes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 18px; }
.road-node { text-align: center; color: #CBD5E1; }
.road-ic { width: 66px; height: 66px; margin: 0 auto 10px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, #1E293B, #0F172A); border: 1.5px solid rgba(245, 198, 107, .5); color: var(--gold-2); box-shadow: 0 0 0 6px rgba(15, 23, 42, 1), 0 10px 30px -8px rgba(245, 198, 107, .45); position: relative; transition: transform .3s; }
.road-node:hover .road-ic { transform: translateY(-4px) rotate(-4deg); }
.road-ic svg { width: 28px; height: 28px; }
.road-ic em { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 800 11px/24px var(--font); font-style: normal; }
.road-node b { display: block; color: #fff; font-size: 14px; }
.road-node small { font-size: 12px; color: #94A3B8; }

/* ---------------- BAR CHART (MARGIN) ---------------- */
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.bar-col { background: rgba(0, 0, 0, .03); border: 1px solid rgba(0, 0, 0, .08); border-radius: 16px; padding: 20px; color: var(--slate-2); }
[data-theme="dark"] .bar-col { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: #CBD5E1; }
.bar-col h5 { margin: 0 0 4px; color: var(--ink); font-size: 15px; }
[data-theme="dark"] .bar-col h5 { color: #fff; }
.bar-col small { font-size: 12px; color: var(--muted); }
[data-theme="dark"] .bar-col small { color: #94A3B8; }
.stack { display: flex; height: 230px; margin-top: 16px; flex-direction: column-reverse; border-radius: 12px; overflow: hidden; }
.stack div { display: flex; align-items: center; justify-content: center; flex-direction: column; font-weight: 800; color: #fff; font-size: 13px; transition: flex-grow 1.2s cubic-bezier(.2, .8, .2, 1); flex-grow: 0; flex-basis: 0; min-height: 44px; overflow: hidden; }
.stack div span { font-size: 26px; line-height: 1; }
.stack .cost { background: repeating-linear-gradient(45deg, #475569, #475569 8px, #3B4A5E 8px, #3B4A5E 16px); }
.stack .profit { background: linear-gradient(180deg, var(--gold-2), var(--gold-3)); color: var(--navy); }
.stack .profit.green { background: linear-gradient(180deg, #34D399, #059669); color: #fff; }
.in .stack div { flex-grow: var(--v); }
.legend { display: flex; gap: 16px; justify-content: center; margin-top: 18px; font-size: 12px; color: #94A3B8; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------------- SPECTRUM ---------------- */
.spectrum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.spec { background: rgba(0, 0, 0, .03); border: 1px solid rgba(0, 0, 0, .08); border-radius: 16px; padding: 18px 16px; color: var(--slate-2); transition: transform .25s, border-color .25s; }
[data-theme="dark"] .spec { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: #CBD5E1; }
.spec:hover { transform: translateY(-5px); border-color: var(--gold); }
.spec .ic-wrap { width: 42px; height: 42px; border-radius: 12px; background: rgba(245, 198, 107, .12); color: var(--gold-2); display: grid; place-items: center; }
.spec .ic-wrap svg { width: 22px; height: 22px; }
.spec h5 { color: var(--ink); margin: 12px 0 8px; font-size: 14px; line-height: 1.3; }
[data-theme="dark"] .spec h5 { color: #fff; }
.spec ul { margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.spec li { padding: 4px 0; border-bottom: 1px dashed rgba(0, 0, 0, .08); }
[data-theme="dark"] .spec li { border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.spec .lvl { margin-top: 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-3); font-weight: 700; }
[data-theme="dark"] .spec .lvl { color: var(--gold-2); }
.spec .lvl-bar { display: flex; gap: 4px; margin-top: 6px; }
.spec .lvl-bar i { flex: 1; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .08); }
[data-theme="dark"] .spec .lvl-bar i { background: rgba(255, 255, 255, .1); }
.spec .lvl-bar i.on { background: var(--gold); }

/* ---------------- PROBLEM vs SOLUTION ---------------- */
.ps-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.ps-card { border-radius: 14px; padding: 16px 18px; font-size: .9em; }
.ps-card b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.ps-card.p { background: rgba(225, 29, 72, .1); border: 1px solid rgba(225, 29, 72, .3); color: #BE123C; }
.ps-card.p b { color: #E11D48; }
[data-theme="dark"] .ps-card.p { color: #FECDD3; }
[data-theme="dark"] .ps-card.p b { color: #FB7185; }

.ps-card.s { background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .3); color: #047857; }
.ps-card.s b { color: #059669; }
[data-theme="dark"] .ps-card.s { color: #D1FAE5; }
[data-theme="dark"] .ps-card.s b { color: #34D399; }

.ps-arrow { display: grid; place-items: center; color: var(--gold-2); }
.ps-arrow svg { width: 28px; height: 28px; }
.tool-logos { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tool-logos span { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 9px; background: rgba(0, 0, 0, .04); color: var(--ink); border: 1px solid rgba(0, 0, 0, .08); }
[data-theme="dark"] .tool-logos span { background: rgba(255, 255, 255, .06); color: #E2E8F0; border: 1px solid rgba(255, 255, 255, .1); }

/* ---------------- VENN ---------------- */
.venn-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; }
.venn-wrap svg { width: 100%; height: auto; }
.venn-legend { display: grid; gap: 12px; }
.venn-legend div { display: flex; gap: 12px; align-items: flex-start; color: #CBD5E1; font-size: 13.5px; }
.venn-legend i { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; }
.venn-legend b { color: #fff; display: block; }

/* ---------------- MINING SCREENS ---------------- */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.screen { background: #fff; border-radius: 16px; overflow: hidden; color: #0F172A; font-size: 12px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6); }
.screen-top { padding: 10px 12px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12.5px; }
.screen-top i { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.screen .search { margin: 10px; padding: 7px 10px; border-radius: 8px; background: #F1F5F9; color: #475569; display: flex; gap: 6px; align-items: center; }
.screen .search svg { width: 13px; height: 13px; }
.screen .search b { color: #0F172A; }
.post { margin: 0 10px 8px; padding: 9px 10px; border-radius: 10px; background: #F8FAFC; border: 1px solid #E2E8F0; line-height: 1.45; }
.post .who { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 3px; font-size: 11px; }
.post .who i { width: 18px; height: 18px; border-radius: 50%; background: #CBD5E1; }
.post mark { background: #FDE68A; padding: 0 2px; border-radius: 3px; }
.stars { color: #F59E0B; letter-spacing: 1px; }
.stars .off { color: #CBD5E1; }

/* ---------------- CASE CARDS ---------------- */
.case { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.case-visual { height: 170px; position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 18px; }
.case-visual.c1 { background: radial-gradient(circle at 30% 20%, #1E3A8A, #0F172A 70%); }
.case-visual.c2 { background: radial-gradient(circle at 70% 20%, #065F46, #0F172A 70%); }
.mini-doc { width: 74px; height: 100px; border-radius: 6px; background: #fff; box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .6); padding: 8px 7px; display: flex; flex-direction: column; gap: 4px; transform: rotate(var(--r, 0deg)); transition: transform .3s; }
.case:hover .mini-doc { transform: rotate(0) translateY(-6px); }
.mini-doc i { height: 4px; border-radius: 2px; background: #E2E8F0; }
.mini-doc i.h { height: 8px; background: var(--c, #0F172A); width: 70%; }
.mini-doc i.s { width: 55%; }
.mini-doc .grid { flex: 1; border-radius: 3px; background: repeating-linear-gradient(0deg, #E2E8F0 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, #E2E8F0 0 1px, transparent 1px 12px); }
.mini-doc .label { font: 800 7px var(--font); color: var(--c, #0F172A); letter-spacing: .04em; }
.case-price { position: absolute; top: 14px; right: 14px; background: var(--gold); color: var(--navy); font: 800 12px var(--font); padding: 6px 11px; border-radius: 999px; }
.case-body { padding: 18px 20px; }
.case-body .chip { margin-bottom: 8px; }
.case-body h4 { font-size: 1.02em; margin-bottom: 8px; }
.case-body p { font-size: .9em; margin: 0 0 8px; }
.case-body .res { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--emerald); font-size: .9em; }
.case-body .res svg { width: 16px; height: 16px; }

/* ---------------- SCORE WORKSHEET ---------------- */
.score-tbl input[type="range"] { width: 100%; accent-color: var(--gold); }
.score-tbl td { vertical-align: middle; }
.score-tbl .val { display: inline-block; min-width: 26px; text-align: center; font-weight: 800; color: var(--ink); }
.score-tbl tfoot td { background: var(--navy) !important; color: #fff; font-weight: 800; }
.score-tbl tfoot td:first-child { color: var(--gold-2); }
.score-tbl .total { font-size: 1.3em; color: var(--gold-2); }
.score-tbl .winner { box-shadow: inset 0 0 0 2px var(--emerald); }
.score-tbl input.idea-name { width: 100%; font: 700 .95em var(--font); border: 1px dashed rgba(255, 255, 255, .35); background: transparent; color: #fff; border-radius: 6px; padding: 4px 6px; }
.crown { display: inline-block; margin-left: 4px; color: #34D399; font-size: 12px; }

/* ---------------- VALIDATION COMPARE ---------------- */
.vs { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 10px; align-items: center; }
.vs-side { border-radius: 18px; padding: 20px; text-align: center; color: #CBD5E1; }
.vs-side.bad { background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .2); }
.vs-side.good { background: linear-gradient(160deg, rgba(16, 185, 129, .16), rgba(16, 185, 129, .03)); border: 1px solid rgba(16, 185, 129, .4); }
.vs-side h5 { color: #fff; margin: 14px 0 4px; font-size: 15px; }
.vs-side .score { font: 800 30px var(--font); }
.vs-side.bad .score { color: #FB7185; }
.vs-side.good .score { color: #34D399; }
.comment { background: #fff; color: #0F172A; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; text-align: left; margin-bottom: 8px; display: flex; gap: 8px; align-items: flex-start; }
.comment i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #F472B6, #A78BFA); }
.comment b { display: block; font-size: 11px; }
.comment .heart { margin-left: auto; color: #E11D48; }
.paid { background: #fff; color: #0F172A; border-radius: 14px; padding: 14px; }
.paid .ok { width: 46px; height: 46px; border-radius: 50%; background: #10B981; color: #fff; display: grid; place-items: center; margin: 0 auto 8px; animation: pulse 2s infinite; }
.paid .ok svg { width: 24px; height: 24px; }
.paid .amt { font: 800 22px var(--font); }
.paid small { color: #64748B; font-size: 11.5px; }
.paid .row { display: flex; justify-content: space-between; font-size: 11.5px; padding: 5px 0; border-top: 1px dashed #E2E8F0; margin-top: 6px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }
.vs-mid { font: 800 18px var(--font-display); color: var(--gold-2); text-align: center; }

/* ---------------- FLOW (horizontal steps) ---------------- */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow-item { flex: 1; text-align: center; position: relative; padding: 0 6px; }
.flow-item:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: calc(50% + 36px); right: calc(-50% + 36px); height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); animation: dash 1.2s linear infinite; background-size: 14px 2px; }
@keyframes dash { to { background-position: 14px 0; } }
.flow-ic { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, var(--gold-2), var(--gold-3)); color: var(--navy); position: relative; z-index: 1; box-shadow: 0 10px 24px -10px rgba(212, 166, 58, .8); }
.flow-ic svg { width: 26px; height: 26px; }
.flow-ic.alt { background: linear-gradient(145deg, #1E293B, #0F172A); color: var(--gold-2); border: 1.5px solid rgba(245, 198, 107, .5); }
.flow-item b { display: block; color: #fff; font-size: 13.5px; line-height: 1.3; }
.flow-item small { display: block; color: #94A3B8; font-size: 12px; margin-top: 4px; line-height: 1.4; }
.fig-frame.light .flow-item b { color: var(--ink); }
.fig-frame.light .flow-item small { color: var(--muted); }
.flow-step-label { display: inline-block; font: 800 10px var(--font); letter-spacing: .14em; color: var(--gold-2); margin-bottom: 4px; }

/* ---------------- MVP CHART ---------------- */
.mvp-chart svg { width: 100%; height: auto; }

/* ---------------- EBOOK LAYOUT WIREFRAME ---------------- */
.layout-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.a4 { aspect-ratio: 210/297; background: #fff; border-radius: 6px; padding: 18px 18px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); display: flex; flex-direction: column; gap: 7px; transform: perspective(900px) rotateY(10deg); transition: transform .5s; }
.a4:hover { transform: perspective(900px) rotateY(0); }
.a4 .k { font: 800 7px var(--font); letter-spacing: .2em; color: var(--gold-3); }
.a4 .h { height: 14px; width: 80%; background: #0F172A; border-radius: 3px; }
.a4 .t { height: 5px; background: #E2E8F0; border-radius: 3px; }
.a4 .t.s { width: 70%; }
.a4 .co { border-left: 3px solid #0284C7; background: #E6F3FB; border-radius: 4px; padding: 8px; display: grid; gap: 4px; }
.a4 .co i { height: 4px; background: #93C5FD; border-radius: 2px; }
.a4 .img { height: 60px; border-radius: 5px; background: linear-gradient(135deg, #1E293B, #0F172A); position: relative; overflow: hidden; }
.a4 .img::after { content: ""; position: absolute; inset: 30% 30%; border: 2px solid var(--gold-2); border-radius: 50%; opacity: .6; }
.a4 .chk { display: flex; gap: 5px; align-items: center; }
.a4 .chk b { width: 8px; height: 8px; border: 1.5px solid #10B981; border-radius: 2px; flex: none; }
.a4 .chk i { flex: 1; height: 4px; background: #E2E8F0; border-radius: 2px; }
.anno { display: grid; gap: 12px; }
.anno div { display: flex; gap: 12px; align-items: flex-start; color: var(--slate-2); font-size: 13px; }
[data-theme="dark"] .anno div { color: #CBD5E1; }
.anno b { color: var(--ink); display: block; font-size: 13.5px; }
[data-theme="dark"] .anno b { color: #fff; }
.anno span.n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font: 800 12px var(--font); }

/* ---------------- CANVA PANEL MOCK ---------------- */
.canva { display: grid; grid-template-columns: 200px 1fr; border-radius: 14px; overflow: hidden; background: #fff; color: #0F172A; font-size: 12px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.canva-top { grid-column: 1 / -1; background: linear-gradient(90deg, #00C4CC, #7D2AE8); color: #fff; padding: 9px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.canva-top .sp { flex: 1; }
.canva-top .btn { background: #fff; color: #7D2AE8; border-radius: 6px; padding: 4px 10px; font-size: 11px; position: relative; }
.canva-side { background: #F8FAFC; border-right: 1px solid #E2E8F0; padding: 12px; display: grid; gap: 10px; align-content: start; }
.canva-side label { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #64748B; text-transform: uppercase; }
.canva-side .f { background: #fff; border: 1px solid #E2E8F0; border-radius: 6px; padding: 6px 8px; display: flex; justify-content: space-between; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #E2E8F0; }
.canva-stage { background: #E2E8F0; padding: 18px; display: grid; place-items: center; position: relative; }
.canva-stage .a4 { width: 150px; transform: none; padding: 12px; }
.pin { position: absolute; background: var(--rose); color: #fff; font: 800 10px var(--font); padding: 3px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(225, 29, 72, .4); }

/* ---------------- DEVICE MOCKS ---------------- */
.devices { display: grid; grid-template-columns: 1.5fr 1fr .62fr; gap: 18px; align-items: end; padding: 36px 26px 30px; }
.laptop .scr { background: #fff; border: 8px solid #1E293B; border-bottom-width: 10px; border-radius: 12px 12px 0 0; aspect-ratio: 16/10; overflow: hidden; display: grid; grid-template-columns: 26% 1fr; }
.laptop .base { height: 12px; background: linear-gradient(180deg, #475569, #1E293B); border-radius: 0 0 14px 14px; margin: 0 -18px; }
.notion-side { background: #F7F6F3; padding: 8px 6px; display: grid; gap: 5px; align-content: start; }
.notion-side i { height: 5px; border-radius: 3px; background: #D6D3CE; }
.notion-side i:first-child { background: #37352F; width: 70%; }
.notion-main { padding: 10px; display: grid; gap: 6px; align-content: start; }
.notion-main .ttl { font: 800 10px var(--font); color: #37352F; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.kanban div { background: #F7F6F3; border-radius: 4px; padding: 4px; display: grid; gap: 4px; }
.kanban b { font: 700 6px var(--font); color: #787774; }
.kanban i { height: 12px; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.kanban div:nth-child(1) i:first-of-type { border-left: 2px solid #EB5757; }
.kanban div:nth-child(2) i:first-of-type { border-left: 2px solid #F2C94C; }
.kanban div:nth-child(3) i:first-of-type { border-left: 2px solid #27AE60; }
.tablet .scr { background: #fff; border: 9px solid #1E293B; border-radius: 16px; aspect-ratio: 3/4; overflow: hidden; display: flex; flex-direction: column; }
.sheet-bar { background: #0F9D58; color: #fff; font: 700 8px var(--font); padding: 5px 7px; }
.sheet-grid { display: grid; grid-template-columns: 18px repeat(3, 1fr); font: 600 6.5px var(--font); color: #334155; }
.sheet-grid span { border: .5px solid #E2E8F0; padding: 3px 3px; white-space: nowrap; overflow: hidden; }
.sheet-grid span.h { background: #F1F5F9; font-weight: 800; color: #64748B; text-align: center; }
.sheet-grid span.g { color: #0F9D58; font-weight: 800; }
.sheet-chart { flex: 1; display: flex; align-items: flex-end; gap: 5px; padding: 8px; }
.sheet-chart i { flex: 1; background: linear-gradient(180deg, #34D399, #0F9D58); border-radius: 2px 2px 0 0; }
.phone .scr { border: 7px solid #1E293B; border-radius: 22px; aspect-ratio: 9/19; overflow: hidden; background: linear-gradient(160deg, #F472B6, #8B5CF6 55%, #0F172A); display: flex; flex-direction: column; justify-content: space-between; padding: 14px 8px 10px; position: relative; }
.phone .scr::before { content: ""; position: absolute; top: 4px; left: 50%; width: 30%; height: 6px; transform: translateX(-50%); background: #1E293B; border-radius: 6px; }
.story-bar { display: flex; gap: 2px; }
.story-bar i { flex: 1; height: 2px; background: rgba(255, 255, 255, .5); border-radius: 2px; }
.story-bar i:first-child { background: #fff; }
.story-card { background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 7px; display: grid; gap: 4px; }
.story-card b { font: 800 8px var(--font); color: #0F172A; }
.story-card i { height: 4px; border-radius: 2px; background: #CBD5E1; }
.story-cta { background: #FBBF24; color: #0F172A; font: 800 7px var(--font); text-align: center; border-radius: 999px; padding: 4px; }
.dev-label { text-align: center; margin-top: 14px; font-size: 12px; font-weight: 700; color: #E2E8F0; }
.dev-label small { display: block; color: var(--gold-2); font-weight: 600; font-size: 11px; }

/* ---------------- ACCESS FLOW ---------------- */
.access { display: grid; gap: 10px; }
.access-row { display: grid; grid-template-columns: 150px 1.2fr 34px 1.2fr; align-items: center; gap: 8px; }
.access-row > div { border-radius: 12px; padding: 12px 14px; font-size: 12.5px; }
.access-row .arr { padding: 0; display: grid; place-items: center; color: var(--gold-3); }
[data-theme="dark"] .access-row .arr { color: var(--gold-2); }
.access-row .plat { background: var(--gold); color: var(--navy); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.access-row .plat i { width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font: 800 11px var(--font); font-style: normal; }
.access-row .how { background: rgba(0, 0, 0, .03); border: 1px solid rgba(0, 0, 0, .08); color: var(--slate-2); }
[data-theme="dark"] .access-row .how { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #E2E8F0; }
.access-row .how code { font: 600 11.5px var(--font-mono); color: var(--gold-3); background: rgba(212, 166, 58, .1); padding: 1px 5px; border-radius: 4px; }
[data-theme="dark"] .access-row .how code { color: var(--gold-2); background: rgba(245, 198, 107, .1); }
.access-row .ben { background: var(--emerald-soft); border: 1px solid rgba(16, 185, 129, .2); color: #047857; }
[data-theme="dark"] .access-row .ben { background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3); color: #A7F3D0; }
.access-row .arr svg { width: 22px; height: 22px; }
.url-demo { margin-top: 18px; background: #0B1222; border: 1px solid #1E293B; border-radius: 12px; padding: 14px 16px; font: 12.5px/1.9 var(--font-mono); color: #94A3B8; overflow-x: auto; white-space: nowrap; }
.url-demo .del { color: #FB7185; text-decoration: line-through; }
.url-demo .add { color: #34D399; font-weight: 700; }

/* ---------------- STUDIO SVG ---------------- */
.studio svg { width: 100%; height: auto; }

/* ---------------- PYRAMID ---------------- */
.pyramid-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.pyramid { display: grid; gap: 6px; justify-items: center; }
.tier { cursor: pointer; text-align: center; color: var(--navy); padding: 18px 10px; clip-path: polygon(var(--i) 0, calc(100% - var(--i)) 0, 100% 100%, 0 100%); transition: filter .25s, transform .25s; width: var(--w); }
.tier:hover { filter: brightness(1.1); transform: scale(1.02); }
.tier b { display: block; font-size: 13px; letter-spacing: .04em; }
.tier small { font-size: 11.5px; font-weight: 700; }
.tier.t3 { --w: 52%; --i: 26%; background: linear-gradient(180deg, #FCE7AE, var(--gold-2)); padding-top: 30px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tier.t2 { --w: 76%; --i: 16%; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.tier.t1 { --w: 100%; --i: 12%; background: linear-gradient(180deg, var(--gold), var(--gold-3)); }
.tier.active { outline: none; filter: drop-shadow(0 0 14px rgba(245, 198, 107, .8)); }
.tier-info { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: var(--ink-2); min-height: 210px; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); }
[data-theme="dark"] .tier-info { background: rgba(255, 255, 255, .04); border-color: rgba(245, 198, 107, .3); box-shadow: none; color: #CBD5E1; }
.tier-info .lbl { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.tier-info h5 { color: var(--ink); font: 700 22px var(--font-display); margin: 6px 0 4px; }
[data-theme="dark"] .tier-info h5 { color: #fff; }
.tier-info .price { font: 800 18px var(--font); color: var(--gold-3); margin-bottom: 10px; }
[data-theme="dark"] .tier-info .price { color: var(--gold-2); }
.tier-info p { font-size: 13.5px; margin-bottom: 10px; }
.tier-info ul { margin: 0; padding-left: 18px; font-size: 13px; }
.tier-hint { text-align: center; font-size: 11.5px; color: var(--slate-2); margin-top: 10px; }
[data-theme="dark"] .tier-hint { color: #94A3B8; }

/* ---------------- LANDING WIREFRAME ---------------- */
.lp-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.lp-phone { background: #1E293B; border-radius: 30px; padding: 12px 10px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); position: sticky; top: 20px; }
.lp-screen { background: #fff; border-radius: 22px; overflow: hidden; display: grid; gap: 4px; padding: 6px; }
.lp-b { border-radius: 8px; padding: 7px 8px; font: 700 9px var(--font); color: #334155; background: #F1F5F9; border: 1.5px solid transparent; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.lp-b em { font-style: normal; width: 16px; height: 16px; border-radius: 4px; background: #0F172A; color: var(--gold-2); display: grid; place-items: center; font-size: 8px; flex: none; }
.lp-b.b1 { min-height: 74px; background: linear-gradient(135deg, #0F172A, #1E293B); color: #fff; align-items: flex-start; flex-direction: column; justify-content: space-between; }
.lp-b.b1 .cta { background: var(--gold); color: var(--navy); border-radius: 999px; padding: 3px 8px; font-size: 8px; }
.lp-b.b3 { min-height: 44px; }
.lp-b.b4 { min-height: 50px; }
.lp-b.b6 { min-height: 54px; background: #FEF3C7; }
.lp-b.b9 { background: var(--gold); color: var(--navy); }
.lp-b:hover, .lp-b.on { border-color: var(--rose); transform: scale(1.03); box-shadow: 0 6px 14px -6px rgba(225, 29, 72, .5); }
.lp-list { display: grid; gap: 8px; }
.lp-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .02); border: 1px solid rgba(0, 0, 0, .06); color: var(--slate-2); font-size: 13px; transition: all .2s; cursor: default; }
[data-theme="dark"] .lp-item { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); color: #CBD5E1; }
.lp-item b { color: var(--ink); display: block; font-size: 13.5px; }
[data-theme="dark"] .lp-item b { color: #fff; }
.lp-item .n { width: 34px; height: 34px; border-radius: 10px; background: rgba(212, 166, 58, .12); color: var(--gold-3); display: grid; place-items: center; font: 800 13px var(--font); }
[data-theme="dark"] .lp-item .n { background: rgba(245, 198, 107, .12); color: var(--gold-2); }
.lp-item.on, .lp-item:hover { border-color: var(--gold); background: rgba(212, 166, 58, .06); }
[data-theme="dark"] .lp-item.on, [data-theme="dark"] .lp-item:hover { border-color: var(--gold); background: rgba(245, 198, 107, .07); }
.lp-item.on .n, .lp-item:hover .n { background: var(--gold); color: var(--navy); }

/* ---------------- INTEGRATION DIAGRAM ---------------- */
.integ-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; position: relative; }
.integ-box { background: rgba(0, 0, 0, .03); border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; padding: 16px; text-align: center; color: var(--slate-2); font-size: 12.5px; position: relative; }
[data-theme="dark"] .integ-box { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #CBD5E1; }
.integ-box b { color: var(--ink); display: block; font-size: 13.5px; margin: 8px 0 2px; }
[data-theme="dark"] .integ-box b { color: #fff; }
.integ-box .ic { width: 42px; height: 42px; border-radius: 12px; margin: 0 auto; background: rgba(245, 198, 107, .14); color: var(--gold-2); display: grid; place-items: center; }
.integ-box .ic svg { width: 22px; height: 22px; }
.integ-box:not(:last-child)::after { content: "→"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); color: var(--gold-2); font-size: 20px; font-weight: 800; }
.integ-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; height: 34px; }
.integ-lines i { justify-self: center; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 11px); animation: dashv 1s linear infinite; background-size: 2px 11px; }
@keyframes dashv { to { background-position: 0 11px; } }
.integ-capi { border-radius: 16px; padding: 18px; text-align: center; background: linear-gradient(135deg, #1D4ED8, #1E3A8A); color: #DBEAFE; font-size: 12.5px; border: 1px solid #3B82F6; }
.integ-capi b { color: #fff; display: block; font-size: 14px; letter-spacing: .04em; }
.events { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.events span { background: rgba(255, 255, 255, .12); padding: 5px 11px; border-radius: 999px; font: 700 11.5px var(--font-mono); color: #fff; }
.events span.p { background: #10B981; }

/* ---------------- FUNNEL ---------------- */
.funnel { display: grid; gap: 6px; justify-items: center; }
.fn { color: #fff; text-align: center; padding: 14px 20px; clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 26px 100%); display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; text-align: left; transition: transform .25s; }
.fn:hover { transform: scale(1.02); }
.fn .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.fn .ic svg { width: 20px; height: 20px; }
.fn b { display: block; font-size: 14px; }
.fn small { font-size: 12px; opacity: .85; }
.fn .pct { font: 800 18px var(--font); }
.fn.f1 { width: 100%; background: linear-gradient(90deg, #334155, #475569); }
.fn.f2 { width: 86%; background: linear-gradient(90deg, #1D4ED8, #2563EB); }
.fn.f3 { width: 72%; background: linear-gradient(90deg, var(--gold-3), var(--gold)); color: var(--navy); }
.fn.f4 { width: 58%; background: linear-gradient(90deg, #059669, #10B981); }

/* ---------------- TRIPWIRE MOCK ---------------- */
.tripwire { max-width: 420px; margin: 1.6em auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--page); text-align: center; }
.tw-top { background: var(--rose); color: #fff; font: 800 12px var(--font); letter-spacing: .1em; padding: 9px; display: flex; justify-content: center; gap: 10px; align-items: center; }
.tw-timer { font-family: var(--font-mono); background: rgba(0, 0, 0, .2); padding: 2px 8px; border-radius: 6px; }
.tw-body { padding: 22px; }
.tw-body h5 { font: 700 20px var(--font-display); color: var(--ink); margin: 0 0 6px; }
.tw-body p { font-size: .9em; margin-bottom: 12px; }
.tw-price { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.tw-price s { color: var(--muted); }
.tw-price b { font: 800 30px var(--font); color: var(--emerald); }
.tw-price span { background: var(--rose-soft); color: var(--rose); font: 800 12px var(--font); padding: 3px 8px; border-radius: 6px; }
.tw-btn { display: block; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); font-weight: 800; padding: 13px; border-radius: 12px; text-decoration: none; animation: wiggle 3s infinite; }
@keyframes wiggle { 0%, 92%, 100% { transform: none; } 94% { transform: rotate(-1.5deg); } 96% { transform: rotate(1.5deg); } 98% { transform: rotate(-1deg); } }

/* ---------------- SEO HUB ---------------- */
.seo svg { width: 100%; height: auto; }

/* ---------------- AD MOCKS ---------------- */
.ads { display: grid; grid-template-columns: .75fr 1fr 1fr; gap: 16px; align-items: center; padding: 30px 24px; }
.ad { background: #fff; border-radius: 14px; overflow: hidden; color: #0F172A; font-size: 11px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.ad-head { display: flex; align-items: center; gap: 7px; padding: 8px 10px; }
.ad-head i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--navy)); }
.ad-head b { font-size: 10.5px; display: block; line-height: 1.1; }
.ad-head small { font-size: 9px; color: #64748B; }
.ad-media { position: relative; display: grid; place-items: center; overflow: hidden; }
.ad.reels .ad-media { aspect-ratio: 9/14; background: linear-gradient(170deg, #1E293B, #0F172A); }
.ad.reels .play { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; color: var(--navy); }
.ad.reels .play svg { width: 18px; height: 18px; margin-left: 3px; }
.ad.reels .cap { position: absolute; bottom: 10px; left: 10px; right: 10px; color: #fff; font: 800 11px var(--font); text-shadow: 0 1px 3px #000; }
.ad.reels .screenrec { position: absolute; top: 14px; left: 14px; right: 14px; height: 38%; background: #fff; border-radius: 6px; opacity: .9; display: grid; grid-template-columns: 30% 1fr; overflow: hidden; }
.ad.reels .screenrec i { background: #F1F5F9; }
.ad.reels .screenrec b { background: repeating-linear-gradient(180deg, #E2E8F0 0 4px, transparent 4px 9px); margin: 6px; }
.ad.banner .ad-media { aspect-ratio: 1; background: radial-gradient(circle at 50% 30%, #1E3A8A, #0F172A); }
.ad.banner img { width: 88%; }
.ad.banner .disc { position: absolute; top: 10px; right: 10px; width: 58px; height: 58px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; text-align: center; font: 800 15px/1 var(--font); transform: rotate(12deg); box-shadow: 0 6px 16px rgba(225, 29, 72, .5); }
.ad.banner .disc small { display: block; font-size: 8px; }
.ad.carousel .ad-media { aspect-ratio: 1; background: #F1F5F9; padding: 10px; display: grid; gap: 6px; align-content: center; place-items: stretch; }
.testi { background: #fff; border-radius: 8px; padding: 7px 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font-size: 9.5px; line-height: 1.4; }
.testi b { display: block; font-size: 9.5px; }
.car-dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.car-dots i { width: 5px; height: 5px; border-radius: 50%; background: #CBD5E1; }
.car-dots i:first-child { background: var(--sky); }
.ad-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #F8FAFC; font-weight: 700; font-size: 10px; }
.ad-foot span { background: var(--sky); color: #fff; padding: 4px 9px; border-radius: 5px; }
.ad-label { text-align: center; color: #E2E8F0; font-size: 12px; font-weight: 700; margin-top: 10px; }
.ad-label small { display: block; color: var(--gold-2); font-size: 11px; }

/* ---------------- CALCULATOR ---------------- */
.calc { margin: 1.8em 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.calc-head { background: var(--navy); color: #fff; padding: 16px 22px; display: flex; align-items: center; gap: 12px; }
.calc-head svg { width: 22px; height: 22px; color: var(--gold-2); }
.calc-head b { font-size: 15px; }
.calc-head small { display: block; color: #94A3B8; font-size: 12px; }
.calc-body { display: grid; grid-template-columns: 1fr 1fr; background: var(--page); }
.calc-in { padding: 20px 22px; display: grid; gap: 14px; border-right: 1px solid var(--line); }
.calc-in label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.calc-in label span { display: flex; justify-content: space-between; }
.calc-in label span em { font-style: normal; color: var(--gold-3); font-family: var(--font-mono); }
[data-theme="dark"] .calc-in label span em { color: var(--gold-2); }
.calc-in input[type="range"] { accent-color: var(--gold); width: 100%; }
.calc-out { padding: 20px 22px; display: grid; gap: 10px; align-content: start; background: var(--card); }
.calc-row { display: flex; justify-content: space-between; font-size: 13.5px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.calc-row b { color: var(--ink); font-family: var(--font-mono); }
.calc-row.neg b { color: var(--rose); }
.calc-big { margin-top: 6px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, #059669, #10B981); color: #fff; }
.calc-big small { font-size: 12px; opacity: .9; }
.calc-big b { display: block; font: 800 28px var(--font); }
.calc-big .m { font-size: 12.5px; font-weight: 700; }
.calc-big.loss { background: linear-gradient(135deg, #BE123C, #E11D48); }

/* ---------------- AFFILIATE ---------------- */
.aff { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; padding: 28px 24px; }
.dash { background: #fff; border-radius: 14px; overflow: hidden; color: #0F172A; font-size: 11.5px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.dash-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; font-weight: 800; }
.dash-top i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.dash-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.dash-kpi div { background: #F8FAFC; border-radius: 8px; padding: 8px; }
.dash-kpi small { color: #64748B; font-size: 9.5px; display: block; }
.dash-kpi b { font-size: 13px; }
.dash-kpi .up { color: #10B981; font-size: 9px; font-weight: 700; }
.dash table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.dash th { text-align: left; color: #64748B; font-weight: 700; padding: 6px 10px; background: #F8FAFC; }
.dash td { padding: 6px 10px; border-top: 1px solid #F1F5F9; }
.dash td.c { color: #10B981; font-weight: 800; }
.drive { background: #fff; border-radius: 14px; overflow: hidden; color: #0F172A; font-size: 11.5px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.drive-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #E2E8F0; font-weight: 800; }
.drive-top svg { width: 18px; height: 18px; }
.drive-list { padding: 6px; }
.drive-list div { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; }
.drive-list div:hover { background: #F1F5F9; }
.drive-list i { width: 26px; height: 22px; border-radius: 4px; flex: none; position: relative; }
.drive-list i::before { content: ""; position: absolute; top: -3px; left: 0; width: 45%; height: 5px; border-radius: 3px 3px 0 0; background: inherit; }
.drive-list small { margin-left: auto; color: #94A3B8; font-size: 10px; }

/* ---------------- AUTOMATION ---------------- */
.auto { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: center; padding: 34px 18px 26px; }
.auto-node { text-align: center; position: relative; }
.auto-node:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: calc(50% + 38px); right: calc(-50% + 38px); height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.auto-node:not(:last-child)::before { content: ""; position: absolute; top: 30px; left: calc(50% + 38px); width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; z-index: 2; animation: travel 2.4s linear infinite; }
@keyframes travel { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(calc(var(--gap, 60px))); opacity: 0; } }
.auto-ic { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; color: #fff; font: 800 13px var(--font); position: relative; z-index: 1; box-shadow: 0 0 0 6px rgba(255, 255, 255, .05); }
.auto-ic svg { width: 28px; height: 28px; }
.auto-node b { display: block; color: #fff; font-size: 12.5px; }
.auto-node small { display: block; color: #94A3B8; font-size: 11px; line-height: 1.35; margin-top: 3px; padding: 0 4px; }
.always { display: flex; justify-content: center; margin-top: 4px; }
.always span { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, .15); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, .4); border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; }
.always span i { width: 8px; height: 8px; border-radius: 50%; background: #10B981; animation: pulse 1.6s infinite; }

/* ---------------- CALENDAR ---------------- */
.cal { padding: 26px 22px; }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.week { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px; }
.week h5 { margin: 0; color: var(--gold-2); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.week b { display: block; color: #fff; font-size: 14px; margin: 2px 0 10px; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.day { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font: 800 12px var(--font); color: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s; border: none; position: relative; }
.day:hover { transform: scale(1.12); z-index: 2; }
.day.done { box-shadow: inset 0 0 0 2px #fff; }
.day.done::after { content: "✓"; position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; border-radius: 50%; background: #10B981; font-size: 9px; display: grid; place-items: center; }
.w1 .day { background: #2563EB; }
.w2 .day { background: #7C3AED; }
.w3 .day { background: var(--gold-3); }
.w4 .day { background: #059669; }
.cal-detail { margin-top: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(245, 198, 107, .3); border-radius: 14px; padding: 14px 18px; color: #CBD5E1; font-size: 13.5px; display: flex; gap: 16px; align-items: center; }
.cal-detail .d { flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font: 800 11px/1.1 var(--font); text-align: center; }
.cal-detail .d b { font-size: 20px; display: block; }
.cal-detail strong { color: #fff; display: block; }
.plan-tbl td:first-child { white-space: nowrap; }
.plan-tbl tr { cursor: pointer; }
.plan-tbl tr.done td { opacity: .55; }
.plan-tbl tr.done td:first-child::after { content: " ✓"; color: var(--emerald); }
.plan-tbl .wk-row td { background: var(--gold-soft) !important; color: var(--gold-3); font-weight: 800; font-size: .82em; letter-spacing: .14em; text-transform: uppercase; cursor: default; }
[data-theme="dark"] .plan-tbl .wk-row td { color: var(--gold-2); }

/* ---------------- CERTIFICATE / FINAL ---------------- */
.final { text-align: center; padding: 36px 30px; border-radius: 20px; background: radial-gradient(circle at 50% 0, #1E3A8A, var(--navy) 70%); color: #CBD5E1; margin-top: 30px; position: relative; overflow: hidden; border: 1px solid rgba(245, 198, 107, .3); }
.final svg.logo { width: 64px; height: 64px; margin: 0 auto 12px; }
.final h4 { color: #fff; font: 700 26px var(--font-display); }
.final p { max-width: 520px; margin: 10px auto 18px; font-size: .95em; }
.final .tb-btn { height: 46px; padding: 0 22px; font-size: 14px; }

/* ---------------- BACK TO TOP / TOAST ---------------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 14px; border: none; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .6); opacity: 0; transform: translateY(16px); transition: all .3s; z-index: 30; }
.to-top.show { opacity: 1; transform: none; }
.to-top svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600; z-index: 100; opacity: 0; transition: all .3s; display: flex; gap: 10px; align-items: center; border: 1px solid rgba(245, 198, 107, .35); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--emerald); }

/* ---------------- REVEAL ANIMATION ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 30-DAY PLANNER ---------------- */
.planner { margin: 2em 0; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); }
.pl-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: var(--navy); color: #fff; }
.pl-head b { display: block; font-size: 16px; font-weight: 700; color: var(--gold-2); }
.pl-head small { font-size: 12px; color: #94A3B8; }
.pl-prog b { font-size: 24px; color: var(--emerald); font-weight: 800; font-family: var(--font-display); }
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.pl-day { padding: 14px; background: var(--page); cursor: pointer; transition: all .2s; position: relative; }
.pl-day:hover { background: var(--card-2); }
.pl-day b { display: block; font-size: 11px; letter-spacing: .1em; color: var(--gold-3); margin-bottom: 4px; }
[data-theme="dark"] .pl-day b { color: var(--gold-2); }
.pl-day small { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.pl-day.done { background: var(--emerald-soft); color: var(--emerald); }
.pl-day.done b { color: var(--emerald); opacity: 0.8; }
.pl-day.done small { color: var(--emerald); text-decoration: line-through; opacity: 0.8; }
.pl-day.done::after { content: "✓"; position: absolute; right: 14px; top: 14px; color: var(--emerald); font-weight: 800; }


/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .sidebar { transform: translateX(-100%); box-shadow: 20px 0 60px rgba(0, 0, 0, .4); }
  body.toc-open .sidebar { transform: none; }
  .main { margin-left: 0; }
  .reading-meta { display: none; }
}
@media (max-width: 760px) {
  :root { --fs: 15.5px; }
  .main { padding: calc(var(--topbar) + 14px) 10px 60px; }
  .page { padding: 56px 22px 52px; }
  .page-head { left: 22px; right: 22px; top: 18px; }
  .page-head span:last-child { display: none; }
  .brand-text small, .tb-btn .lbl, .hide-sm { display: none; }
  .grid-2, .grid-3, .bars, .venn-wrap, .layout-demo, .pyramid-wrap, .lp-wrap, .calc-body, .aff, .screens { grid-template-columns: 1fr; }
  .grid-4, .spectrum, .weeks { grid-template-columns: 1fr 1fr; }
  .eco-stats { grid-template-columns: 1fr 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .devices .laptop { grid-column: 1 / -1; }
  .ads { grid-template-columns: 1fr 1fr; }
  .ads > div:first-child { grid-row: span 2; }
  .flow, .auto { flex-direction: column; grid-template-columns: 1fr; gap: 22px; }
  .flow-item::after, .auto-node::after, .auto-node::before { display: none; }
  .road-nodes { grid-template-columns: 1fr 1fr; }
  .integ-top, .integ-lines { grid-template-columns: 1fr; gap: 20px; }
  .integ-lines { display: none; }
  .integ-box::after { display: none; }
  .access-row { grid-template-columns: 1fr; }
  .access-row .arr { display: none; }
  .ps-row, .vs { grid-template-columns: 1fr; }
  .ps-arrow svg, .vs-mid { transform: rotate(90deg); }
  .lp-phone { position: static; max-width: 240px; margin: 0 auto; }
  .cover-inner { padding: 40px 26px 0; }
  .cover-title .l1 { font-size: 40px; }
  .cover-title .l2 { font-size: 56px; }
  .cover-img { margin: 30px -26px 0; }
  .cover-foot { padding: 18px 26px 26px; flex-direction: column; gap: 6px; }
  .chapter-num-bg { font-size: 100px; }
  .page.cover { min-height: auto; }
  .canva { grid-template-columns: 1fr !important; }
  .canva-side { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; overflow-x: auto; padding: 10px; }
  .canva-side > div { margin: 0 4px; padding: 6px !important; flex: none; }
  .canva-stage { padding: 16px !important; }
  
  /* Meta Ads Manager Mockup */
  div[style*="grid-template-columns: 240px 1fr;"] { grid-template-columns: 1fr !important; height: auto !important; }
  div[style*="grid-template-columns: 240px 1fr;"] > div:first-child { border-right: none; border-bottom: 1px solid #E2E8F0; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px !important; }
  div[style*="grid-template-columns: 240px 1fr;"] > div:first-child > div { margin: 0 !important; }
  div[style*="BUDGET & SCHEDULE"] > div { flex-direction: column; gap: 8px !important; }

  /* 30-Day Planner */
  .pl-grid { grid-template-columns: 1fr; }
  .pl-head { flex-direction: column; text-align: left; align-items: flex-start; gap: 10px; }
}

/* =========================================================
   PRINT / PDF  (A4)
   ========================================================= */
@page { size: A4; margin: 0; }
@media print {
  :root { --fs: 11pt; }
  html, body { background: #fff !important; }
  html { scroll-behavior: auto; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; color: #334155; }
  [data-theme="dark"] { --page: #fff; --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --line: #E2E8F0; --card: #F8FAFC; --card-2: #F1F5F9; }
  .topbar, .sidebar, .to-top, .toast, .no-print, .copy-btn, .tier-hint { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .page { max-width: none; width: 210mm; margin: 0; border-radius: 0; box-shadow: none; padding: 22mm 18mm 20mm; break-after: page; page-break-after: always; min-height: 297mm; }
  .page:last-child { break-after: auto; page-break-after: auto; }
  .page-head { left: 18mm; right: 18mm; top: 9mm; }
  .page::after { bottom: 8mm; }
  .page.cover { min-height: 297mm; height: 297mm; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .stack div { flex-grow: var(--v) !important; transition: none !important; }
  .step, .callout, figure.fig, .worksheet, .prompt, .wa, .case, .card, .table-wrap, .calc, tr, .tripwire, .final { break-inside: avoid; page-break-inside: avoid; }
  h3.sec, h4.sub { break-after: avoid; page-break-after: avoid; }
  .prompt pre { white-space: pre-wrap; }
  .table-wrap { overflow: visible; }
  table.tbl { min-width: 0; }
  .a4, .lp-phone { transform: none !important; position: static !important; }
  * { animation: none !important; }
  .auto-node::before { display: none; }
}

/* ---------------- TOAST & TOTOP ---------------- */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px);
  background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); color: #fff;
  padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
  opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1000;
}
#toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: var(--navy); color: var(--gold-2); border-radius: 50%;
  border: 1px solid rgba(212, 166, 58, 0.4); box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s;
  z-index: 100;
}
.to-top svg { width: 20px; height: 20px; transform: rotate(180deg); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); box-shadow: 0 14px 25px rgba(0,0,0,0.3); border-color: var(--gold); color: var(--gold); }
