/* ============================================================
   PIPO — Scroll Experience · pipo-experience.css
   Pie Of Mind · "Biến phức tạp thành đơn giản."
   Cool-Tech + Warm-Spark · JetBrains Mono (head) + Inter (body)
   Light + Dark themes · accent-swappable · GSAP-driven
   ============================================================ */

:root {
  --head: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --emph: "Inter", system-ui, sans-serif;

  --maxw: 1200px;
  --prose: 720px;
  --r-8: 8px; --r-12: 12px; --r-16: 16px; --r-24: 24px; --r-full: 9999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* motion intensity multiplier — overwritten by Tweaks (0.3 .. 1.6) */
  --mo: 1;

  /* primary button — butter yellow CTA (independent of accent) */
  --btn-bg: #F4C84B;
  --btn-bg-hover: #EBBB37;
  --btn-text: #2A1B06;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg:        #F1EEE8;
  --bg-2:      #FAF8F4;
  --bg-deep:   #E9E4DA;
  --surface:   #FFFFFF;
  --surface-2: #F5F2EB;
  --ink:       #1E222B;
  --ink-2:     rgba(30,34,43,0.66);
  --ink-3:     rgba(30,34,43,0.42);
  --ink-4:     rgba(30,34,43,0.16);
  --line:      rgba(30,34,43,0.10);
  --line-2:    rgba(30,34,43,0.17);
  --accent:    #2F6DB0;
  --accent-2:  #4F7BA3;
  --accent-soft: rgba(47,109,176,0.13);
  --accent-line: rgba(47,109,176,0.34);
  --amber:     #C9892B;
  --amber-spark:#EFAE37;
  --amber-soft:rgba(239,174,55,0.18);
  --burgundy:  #9A3B3B;
  --ok:        #2F8F6B;
  --ok-soft:   rgba(47,143,107,0.14);
  --stop:      #B0473A;
  --stop-soft: rgba(176,71,58,0.12);
  --shadow-sm: 0 2px 8px rgba(30,34,43,0.07);
  --shadow-md: 0 12px 30px rgba(30,34,43,0.13);
  --shadow-lg: 0 28px 60px rgba(30,34,43,0.18);
  --grid-line: rgba(30,34,43,0.05);
  --hero-mascot: 1;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --bg:        #12151B;
  --bg-2:      #161A21;
  --bg-deep:   #0D1014;
  --surface:   #1A1F27;
  --surface-2: #20262F;
  --ink:       #ECE7DD;
  --ink-2:     rgba(236,231,221,0.68);
  --ink-3:     rgba(236,231,221,0.42);
  --ink-4:     rgba(236,231,221,0.18);
  --line:      rgba(236,231,221,0.12);
  --line-2:    rgba(236,231,221,0.22);
  --accent:    #6BA6DE;
  --accent-2:  #9CC6EE;
  --accent-soft: rgba(107,166,222,0.15);
  --accent-line: rgba(107,166,222,0.40);
  --amber:     #EFB251;
  --amber-spark:#EFB251;
  --amber-soft:rgba(239,178,81,0.16);
  --burgundy:  #D98A8A;
  --ok:        #5FC79E;
  --ok-soft:   rgba(95,199,158,0.14);
  --stop:      #E08A7C;
  --stop-soft: rgba(224,138,124,0.13);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.34);
  --shadow-md: 0 14px 34px rgba(0,0,0,0.46);
  --shadow-lg: 0 30px 64px rgba(0,0,0,0.55);
  --grid-line: rgba(236,231,221,0.045);
  --hero-mascot: 1;
}

/* ---------- Accent overrides (Tweaks) ---------- */
:root[data-accent="amber"] {
  --accent: var(--amber-spark);
  --accent-2: #F0BE6A;
  --accent-soft: rgba(239,174,55,0.16);
  --accent-line: rgba(239,174,55,0.42);
}
:root[data-accent="burgundy"] {
  --accent: var(--burgundy);
  --accent-2: #C25656;
  --accent-soft: rgba(154,59,59,0.13);
  --accent-line: rgba(154,59,59,0.40);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  transition: background 400ms var(--ease), color 400ms var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.prose-w { max-width: var(--prose); }

/* ============================================================
   Reading progress + scroll hint
   ============================================================ */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--amber-spark));
  z-index: 200; transform-origin: 0 50%;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease), transform 400ms var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-name .of { color: var(--ink-3); font-weight: 700; }
.brand-name .mind { color: var(--accent); }
.brand-sub { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 4px; letter-spacing: 0.02em; }
.nav-links { display: none; align-items: center; gap: 2px; margin-left: 10px; }
.nav-links a {
  font-family: var(--sans); font-weight: 500; font-size: 13.5px; color: var(--ink-2);
  padding: 7px 11px; border-radius: var(--r-8); transition: color 150ms, background 150ms;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color 150ms, transform 150ms, background 150ms;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-full); cursor: pointer;
  border: 1px solid transparent; text-align: center; line-height: 1.2;
  transition: transform 160ms var(--ease), background 220ms var(--ease), border-color 220ms, box-shadow 220ms, color 160ms;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--btn-bg-hover); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn .arr { font-family: var(--mono); transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   Section scaffold + ToC
   ============================================================ */
.page { position: relative; }
.section { position: relative; padding: clamp(72px, 11vh, 132px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent); font-family: var(--mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-spark); }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.h-sec { font-size: clamp(27px, 4vw, 46px); line-height: 1.12; max-width: 22ch; }
.lead { font-size: clamp(16.5px, 2vw, 19px); line-height: 1.62; color: var(--ink-2); max-width: 60ch; }
.prose p { margin: 18px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.74; }
.prose p:first-child { margin-top: 0; }
.prose p strong, p strong { color: var(--ink); font-weight: 700; }
em { font-style: italic; }
.note-mono { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.02em; }

.pullquote {
  font-family: var(--emph); font-style: italic; font-weight: 500;
  font-size: clamp(19px, 2.5vw, 26px); line-height: 1.45; color: var(--ink);
  margin: 32px 0; padding: 10px 0 10px 22px; border-left: 3px solid var(--amber-spark); max-width: 42ch;
}

/* Sticky ToC right rail */
.toc-rail {
  position: fixed; top: 50%; right: 22px; transform: translateY(-50%);
  z-index: 120; display: none; flex-direction: column; gap: 2px;
  padding: 6px; border-radius: var(--r-16);
}
.toc-rail a {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-8);
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  transition: color 200ms, background 200ms; white-space: nowrap;
}
.toc-rail a .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; transition: all 250ms var(--ease); }
.toc-rail a .tlabel { opacity: 0; transform: translateX(-6px); transition: opacity 220ms var(--ease), transform 220ms var(--ease); pointer-events: none; }
.toc-rail:hover a .tlabel { opacity: 1; transform: none; }
.toc-rail a:hover { color: var(--ink); }
.toc-rail a.active { color: var(--accent); }
.toc-rail a.active .tdot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: scale(1.15); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 96px 0 120px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(8px); z-index: 0; pointer-events: none; opacity: 0.6;
}
.hero-blob.b1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -8%; right: -6%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 68%); }
.hero-blob.b2 { width: 38vw; height: 38vw; max-width: 480px; max-height: 480px; bottom: -14%; left: -8%;
  background: radial-gradient(circle at 50% 50%, var(--amber-soft), transparent 66%); }

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }

.trinity { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 26px; }
.trinity .t { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }
.trinity .tsep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ribbon {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 30px;
}
.ribbon .badge { width: 18px; height: 18px; border-radius: 50%; background: var(--amber-spark); display: grid; place-items: center; }
.ribbon .badge svg { width: 11px; height: 11px; color: #2A1B06; }

.hero-wordmark {
  font-family: var(--head); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  font-size: clamp(96px, 23vw, 340px); display: flex; gap: 0.02em;
  color: var(--ink); user-select: none;
}
.hero-wordmark .ltr { display: inline-block; will-change: transform, opacity; position: relative; }
.hero-wordmark .ltr.i-accent { color: var(--accent); }
.hero-sub2 {
  font-family: var(--head); font-weight: 700; font-size: clamp(22px, 4vw, 46px);
  letter-spacing: -0.02em; color: var(--ink); margin-top: 6px; line-height: 1.05;
}
.hero-sub2 .hl { color: var(--accent); }
.hero-tagline { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--ink-2); margin-top: 22px; max-width: 46ch; }
.hero-tagline strong { color: var(--ink); font-weight: 700; }

.acr { display: flex; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.acr .node {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 86px; padding: 12px 14px; border-radius: var(--r-12);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.acr .node .k { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--accent); line-height: 1; }
.acr .node .w { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.03em; }
.acr .arrow { font-family: var(--mono); color: var(--ink-3); font-size: 16px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-proof {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: center;
}
.hero-proof .sep { color: var(--accent); }
.hero-proof b { color: var(--ink); font-weight: 600; }

/* hero mascot */
.hero-figure { position: relative; display: none; justify-content: center; align-items: flex-end; }
.hero-figure .m-disc {
  position: absolute; width: 300px; height: 300px; border-radius: 50%; top: 8%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 64%); z-index: 0;
}
.hero-figure img { position: relative; z-index: 1; width: auto; max-height: 440px; filter: drop-shadow(0 22px 30px rgba(0,0,0,0.22)); }
.hero-figure .float-chip {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-12); box-shadow: var(--shadow-md); padding: 10px 13px;
  display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.hero-figure .float-chip .ci { width: 22px; height: 22px; border-radius: var(--r-8); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-figure .float-chip .ci svg { width: 13px; height: 13px; }
.hero-figure .fc1 { top: 16%; left: -4%; }
.hero-figure .fc2 { bottom: 20%; right: -6%; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid var(--ink-4); border-radius: var(--r-full); position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* ---- Hero content rhythm — more breathing room between blocks ---- */
.hero-text .trinity { margin-bottom: 32px; }
.hero-text .ribbon { margin-bottom: 38px; }
.hero-text .hero-sub2 { margin-top: 16px; }
.hero-text .hero-tagline { margin-top: 32px; }
.hero-text .acr { margin-top: 42px; }
.hero-text .hero-cta { margin-top: 44px; }
.hero-text .hero-proof { margin-top: 42px; padding-top: 28px; }
.hero[data-hero] .hero-text { padding-block: 12px; }

/* ---- Hero layout variants ---- */
/* default = typographic (giant PIPO) */
.hero[data-hero="typographic"] .hero-figure { display: none; }
.hero[data-hero="typographic"] .hero-grid { grid-template-columns: 1fr; }

.hero[data-hero="split"] .hero-wordmark { font-size: clamp(72px, 13vw, 168px); }
.hero[data-hero="split"] .hero-sub2 { font-size: clamp(20px, 3vw, 34px); }
@media (min-width: 1000px) {
  .hero[data-hero="split"] .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero[data-hero="split"] .hero-figure { display: flex; align-self: start; align-items: flex-start; padding-top: 46px; }
}

.hero[data-hero="minimal"] { text-align: center; }
.hero[data-hero="minimal"] .hero-inner { max-width: 900px; margin: 0 auto; }
.hero[data-hero="minimal"] .trinity, .hero[data-hero="minimal"] .acr, .hero[data-hero="minimal"] .hero-cta { justify-content: center; }
.hero[data-hero="minimal"] .hero-wordmark { justify-content: center; font-size: clamp(88px, 19vw, 280px); }
.hero[data-hero="minimal"] .hero-tagline { margin-left: auto; margin-right: auto; }
.hero[data-hero="minimal"] .hero-proof { justify-content: center; }
.hero[data-hero="minimal"] .hero-figure { display: none; }

/* ============================================================
   VALIDATE — "Bạn không thiếu AI"
   ============================================================ */
.validate { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.validate .big-line {
  font-family: var(--head); font-weight: 800; letter-spacing: -0.025em; line-height: 1.28;
  font-size: clamp(28px, 4.4vw, 56px); color: var(--ink); max-width: 100%;
}
.validate .big-line .dim { color: var(--ink-3); }
.validate .big-line .hl { color: var(--accent); }
.sai-block { margin: clamp(40px, 7vh, 90px) 0; }
.sai {
  display: inline-block; font-family: var(--mono); font-weight: 700;
  font-size: clamp(14px, 2vw, 18px); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--burgundy); padding: 4px 12px; border: 1px solid var(--burgundy);
  border-radius: var(--r-full); opacity: 0.9; margin-bottom: 18px;
}
.sai-msg {
  font-family: var(--head); font-weight: 800; letter-spacing: -0.025em; line-height: 1.28;
  font-size: clamp(26px, 4vw, 48px); color: var(--ink); max-width: 100%;
}
.sai-msg .strike { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--burgundy); }
.sai-msg .hl {
  color: var(--accent);
  background-image: linear-gradient(var(--accent-line), var(--accent-line));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: var(--hl-w, 100%) 0.1em;
}
.sai-sub { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-top: 10px; letter-spacing: 0.02em; }

/* line-reveal mechanics */
.reveal-lines .line-mask { overflow: hidden; display: block; }
.reveal-lines .line-inner { display: block; will-change: transform; }

/* ============================================================
   PIPO 4 STAGES
   ============================================================ */
.stage-list { display: grid; gap: 16px; margin-top: 40px; }
.stage-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-16); padding: 26px 28px 26px 30px; box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}
.stage-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); opacity: 0.85; }
.stage-card.peak::before { background: var(--amber-spark); }
.stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.stage-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stage-k { font-family: var(--head); font-weight: 800; font-size: clamp(34px, 5vw, 56px); color: var(--accent); line-height: 0.9; letter-spacing: -0.03em; }
.stage-card.peak .stage-k { color: var(--amber); }
.stage-title { font-family: var(--head); font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); color: var(--ink); letter-spacing: -0.01em; }
.stage-vi { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.stage-card p { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.66; max-width: 64ch; }
.stage-num { position: absolute; top: 20px; right: 24px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); }

/* ============================================================
   PINNED DIAGRAM
   ============================================================ */
.diagram-sec { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.diagram-pin { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 0; }
.diagram-cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; text-align: center; }
.diagram-title { font-family: var(--head); font-weight: 800; font-size: clamp(22px, 3.4vw, 40px); letter-spacing: -0.02em; color: var(--ink); text-align: center; max-width: 18ch; margin: 0 auto 44px; }
.diagram-stage { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-box-rect { fill: var(--surface); stroke: var(--line-2); }
.flow-box.on .flow-box-rect { stroke: var(--accent); }
.flow-box.peak .flow-box-rect { stroke: var(--amber-spark); }
.flow-k { font-family: var(--head); font-weight: 800; fill: var(--accent); }
.flow-box.peak .flow-k { fill: var(--amber); }
.flow-name { font-family: var(--mono); font-weight: 600; fill: var(--ink); }
.flow-desc { font-family: var(--sans); fill: var(--ink-2); }
.flow-path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.flow-loop { fill: none; stroke: var(--amber-spark); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 7; }
.flow-arrowhead { fill: var(--accent); }
.flow-loop-head { fill: var(--amber-spark); }
.flow-loop-label { font-family: var(--mono); font-weight: 600; fill: var(--amber); }
.diagram-foot { font-family: var(--emph); font-style: italic; font-size: clamp(14px, 1.8vw, 18px); color: var(--ink-2); text-align: center; margin: 40px auto 0; max-width: 44ch; }

/* ============================================================
   DIAGNOSTIC
   ============================================================ */

/* Starter Kit hero — Obsidian vault mockup */
.kit-mock {
  width: 100%; max-width: 640px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-16); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.kit-mock__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.kit-mock__dot { width: 10px; height: 10px; border-radius: var(--r-full); background: var(--ink-4); }
.kit-mock__title {
  margin-left: 8px; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.04em; color: var(--ink-3);
}
.kit-mock__body { display: grid; grid-template-columns: 190px 1fr; min-height: 620px; }
.kit-mock__tree {
  list-style: none; margin: 0; padding: 22px 14px;
  border-right: 1px solid var(--line); background: var(--surface-2);
  display: grid; gap: 8px; align-content: start;
}
.kit-mock__tree li {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink-2);
  padding: 8px 10px; border-radius: var(--r-8); white-space: nowrap;
}
.kit-mock__tree li:first-child { background: var(--accent-soft); color: var(--accent); }
.kit-mock__ico { color: var(--ink-4); font-size: 11px; }
.kit-mock__tree li:first-child .kit-mock__ico { color: var(--accent); }
.kit-mock__chat { padding: 24px 20px; display: grid; gap: 16px; align-content: start; }
.kit-mock__msg {
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
  padding: 14px 17px; border-radius: var(--r-12); max-width: 95%;
}
.kit-mock__msg.is-user {
  background: var(--accent); color: #fff; justify-self: end;
  border-bottom-right-radius: 4px;
}
:root[data-theme="dark"] .kit-mock__msg.is-user { color: #0D1014; }
.kit-mock__msg.is-agent {
  background: var(--surface-2); border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.kit-mock__msg.is-agent b { color: var(--accent); font-weight: 700; }
.kit-mock__agent-tag {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px;
}
.kit-mock__typing { display: flex; gap: 4px; padding: 2px 4px; }
.kit-mock__typing span {
  width: 7px; height: 7px; border-radius: var(--r-full); background: var(--ink-4);
  animation: kit-typing 1.2s infinite;
}
.kit-mock__typing span:nth-child(2) { animation-delay: 0.2s; }
.kit-mock__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes kit-typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .kit-mock__typing span { animation: none; } }

/* Two loops — one framework, two altitudes */
.loops {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px;
  align-items: stretch; margin-top: 44px;
}
.loops-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-16); padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
}
.loops-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.loops-card__badge {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  padding: 4px 10px; border-radius: var(--r-full); background: var(--accent-soft);
  flex: none;
}
.loops-card__title {
  font-family: var(--head); font-weight: 800; font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.01em; color: var(--ink); margin: 0;
}
.loops-card__sub { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; }
.loops-card__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.loops-card__steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.loops-card__steps li b {
  font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--accent);
  width: 24px; height: 24px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); border-radius: var(--r-full); margin-top: -1px;
}
.loops-bridge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 0 4px;
}
.loops-bridge__arrow {
  width: 44px; height: 44px; border-radius: var(--r-full);
  display: grid; place-items: center;
  color: var(--accent); background: var(--accent-soft);
  border: 2px solid var(--accent);
}
.loops-bridge__arrow svg { width: 22px; height: 22px; }
.loops-bridge__label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--accent); text-align: center; line-height: 1.5;
}
.loops-prompt {
  margin-top: 34px; border: 1px solid var(--line); border-radius: var(--r-16);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
}
.loops-prompt__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.loops-prompt__title { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.loops-prompt__hint { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.loops-prompt__body { display: grid; }
.loops-prompt__row {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.loops-prompt__row:first-child { border-top: none; }
.loops-prompt__key {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.03em; padding-top: 2px;
}
.loops-prompt__row p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.loops-prompt__row.is-outcome { background: var(--accent-soft); }
.loops-prompt__row.is-outcome p { color: var(--ink); }

@media (max-width: 860px) {
  .loops { grid-template-columns: 1fr; }
  .loops-bridge { flex-direction: row; padding: 4px 0; }
  .loops-bridge__arrow { transform: rotate(90deg); width: 38px; height: 38px; }
  .loops-bridge__label br { display: none; }
  .loops-prompt__row { grid-template-columns: 1fr; gap: 6px; }
}

/* Diagnostic flow toggle — switch between learn / AI loops */
.diag-toggle {
  display: inline-flex; gap: 4px; margin-top: 24px;
  padding: 4px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface);
}
.diag-toggle__btn {
  appearance: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink-2);
  padding: 9px 18px; border-radius: var(--r-full);
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.diag-toggle__btn:hover { color: var(--ink); }
.diag-toggle__btn.is-active {
  background: var(--accent); color: var(--surface);
}

/* Diagnostic flow — vertical timeline of 5 PIPOO stages */
.diag-flow {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; gap: 0;
}
.diag-flow[hidden] { display: none; }
.diag-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  position: relative; padding-bottom: 28px;
}
.diag-step:last-child { padding-bottom: 0; }
.diag-step__rail {
  position: relative; display: flex; justify-content: center; padding-top: 4px;
}
.diag-step__rail::before {
  content: ""; position: absolute; top: 56px; bottom: -28px; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--accent-soft), var(--line));
}
.diag-step:last-child .diag-step__rail::before { display: none; }
.diag-step__node {
  width: 48px; height: 48px; border-radius: var(--r-full);
  display: grid; place-items: center;
  font-family: var(--head); font-weight: 800; font-size: 20px;
  color: var(--accent); background: var(--accent-soft);
  border: 2px solid var(--accent);
  position: relative; z-index: 1;
  box-shadow: 0 0 0 4px var(--bg);
}
.diag-step__body {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-16); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.diag-step__body:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.diag-step__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.diag-step__tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  padding: 4px 10px; border-radius: var(--r-full); background: var(--accent-soft);
}
.diag-step__n {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em;
}
.diag-step__q {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.35;
  color: var(--ink); letter-spacing: -0.01em; margin: 0 0 16px;
}
.diag-step__rows { display: grid; gap: 10px; }
.diag-step__rows .row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.diag-step__rows .row .ic { width: 22px; height: 22px; border-radius: var(--r-full); flex: none; display: grid; place-items: center; margin-top: 1px; }
.diag-step__rows .row .ic svg { width: 13px; height: 13px; }
.diag-step__rows .ok .ic { background: var(--ok-soft); color: var(--ok); }
.diag-step__rows .ok b { color: var(--ok); font-weight: 600; }
.diag-step__rows .stop .ic { background: var(--stop-soft); color: var(--stop); }
.diag-step__rows .stop b { color: var(--stop); font-weight: 600; }
.diag-step__fix {
  margin-top: 18px; padding: 14px 16px;
  background: var(--surface-2); border-radius: var(--r-12);
  border-left: 3px solid var(--accent);
  display: grid; gap: 4px;
}
.diag-step__fix-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.diag-step__fix-text {
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
}
.diag-step__fix-text b { color: var(--ink); font-weight: 700; }

@media (max-width: 560px) {
  .diag-step { grid-template-columns: 44px 1fr; gap: 14px; }
  .diag-step__node { width: 36px; height: 36px; font-size: 15px; }
  .diag-step__rail::before { top: 44px; }
  .diag-step__body { padding: 18px 18px; }
}

/* ============================================================
   SYSTEMS — horizontal scroll
   ============================================================ */
.systems { background: var(--bg-deep); border-top: 1px solid var(--line); overflow: hidden; }
.systems-intro { padding-top: clamp(72px, 11vh, 132px); }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; margin-top: 36px;
}
.stat { background: var(--surface); padding: 26px 22px; }
.stat .big { font-family: var(--head); font-weight: 800; font-size: clamp(36px, 6vw, 58px); line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.stat .big .suffix { color: var(--accent); }
.stat .lbl { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

.h-scroll-pin { position: relative; }
.h-track { display: flex; gap: 22px; padding: clamp(48px, 7vh, 90px) 28px; will-change: transform; }
.sys-head-card { flex: 0 0 auto; width: min(78vw, 380px); display: flex; flex-direction: column; justify-content: center; }
.sys-head-card .eyebrow { margin-bottom: 16px; }
.sys-head-card h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; max-width: 14ch; }
.sys-head-card p { margin-top: 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 36ch; }
.sys-card {
  flex: 0 0 auto; width: min(80vw, 340px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-16); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.sys-card .sys-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.sys-card .sys-ic { width: 46px; height: 46px; border-radius: var(--r-12); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 14px 0 16px; }
.sys-card .sys-ic svg { width: 23px; height: 23px; }
.sys-card h3 { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.22; }
.sys-card p { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.58; }
.sys-card .tag { margin-top: auto; padding-top: 16px; }
.sys-card .tag span { font-family: var(--mono); font-size: 11px; color: var(--accent); border: 1px solid var(--accent-line); border-radius: var(--r-full); padding: 3px 10px; }
.h-hint { display: flex; align-items: center; gap: 9px; padding: 0 28px; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.h-hint svg { width: 15px; height: 15px; }

/* ============================================================
   CONSEQUENCES
   ============================================================ */
.cons-list { margin-top: 44px; display: grid; gap: 0; }
.cons {
  position: relative; padding: clamp(34px, 5vh, 54px) 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.cons:first-child { border-top: none; }
.cons-n { font-family: var(--head); font-weight: 800; font-size: clamp(40px, 6vw, 72px); color: var(--ink-4); line-height: 0.9; letter-spacing: -0.03em; }
.cons-body h3 { font-family: var(--head); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); color: var(--ink); letter-spacing: -0.01em; line-height: 1.24; }
.cons-body p { margin-top: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 60ch; }
.cons-quote {
  margin-top: 18px; font-family: var(--emph); font-style: italic; font-size: 16px; color: var(--ink);
  padding-left: 16px; border-left: 3px solid var(--accent); max-width: 52ch; line-height: 1.5;
}
.cons-copy {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-full);
  padding: 6px 13px; cursor: pointer; transition: all 180ms var(--ease);
}
.cons-copy:hover { border-color: var(--accent); color: var(--accent); }
.cons-copy.done { border-color: var(--ok); color: var(--ok); }
.cons-copy svg { width: 13px; height: 13px; }
@media (min-width: 760px) { .cons { grid-template-columns: 120px 1fr; gap: 24px; align-items: start; } }

/* ============================================================
   MISCONCEPTIONS
   ============================================================ */
.miscon-list { margin-top: 40px; display: grid; gap: 16px; }
.miscon {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.miscon .x { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: clamp(17px, 2.2vw, 22px); color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
.miscon .x .xi { width: 26px; height: 26px; border-radius: var(--r-8); background: var(--stop-soft); color: var(--stop); display: grid; place-items: center; flex: none; }
.miscon .x .xi svg { width: 15px; height: 15px; }
.miscon p { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.66; max-width: 64ch; }
.miscon p .yep { color: var(--ok); font-weight: 600; }

/* ============================================================
   CLOSING
   ============================================================ */
.closing { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.closing-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.closing .h-sec { max-width: 24ch; }
.closing .prose p { font-size: 16.5px; }
.closing-grid.cta-split { align-items: start; gap: 48px; }
.cta-main { max-width: 760px; }
.cta-main .h-sec,
.cta-main .prose,
.cta-main .cta-form,
.cta-main .leit { width: 100%; }
.cta-main .h-sec { max-width: 640px; }
.cta-main .prose { max-width: 640px; }
.cta-main .cta-form { max-width: 640px; }
.cta-main .leit { max-width: 700px; }
.leit {
  font-family: var(--emph); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 3.4vw, 38px); line-height: 1.3; color: var(--ink);
  margin: 36px 0; text-align: left; letter-spacing: -0.01em;
}
.leit .hl { color: var(--accent); }
.closing-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 8px; }
.closing-figure { position: relative; display: flex; justify-content: center; }
.closing-figure .disc { position: absolute; width: 340px; height: 340px; border-radius: 50%; top: 4%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 64%); }
.closing-figure img { position: relative; z-index: 1; max-height: 460px; width: auto; filter: drop-shadow(0 24px 34px rgba(0,0,0,0.22)); }
@media (min-width: 1000px) { .closing-grid { grid-template-columns: 1.2fr 0.8fr; } .closing-grid.cta-split { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.7fr); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-deep); color: var(--ink); padding: 64px 0 34px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand .brand-name { font-size: 21px; }
.foot-brand p { color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 320px; margin: 12px 0 0; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink-2);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.foot-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.foot-social svg { width: 17px; height: 17px; }
.foot-mascot { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.foot-mascot .av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.foot-mascot .note { font-family: var(--emph); font-style: italic; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; max-width: 360px; }
.foot-col h4 { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.foot-col a { display: block; font-family: var(--sans); font-size: 14px; color: var(--ink-2); padding: 6px 0; border: none; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.foot-bottom a { color: var(--ink-2); border: none; }

/* ============================================================
   CREDIBILITY STRIP
   ============================================================ */
.cred { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(44px, 6vh, 72px) 0; }
.cred-lead { font-family: var(--mono); font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.cred-lead .hl { color: var(--accent); }
.cred-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; margin-top: 24px; }
.cred-stat .big { font-family: var(--head); font-weight: 800; font-size: clamp(30px, 4.8vw, 50px); line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.cred-stat .big .suffix { color: var(--accent); }
.cred-stat .lbl { margin-top: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.cred-note { margin-top: 32px; color: var(--ink-2); font-size: 15.5px; line-height: 1.72; max-width: 64ch; }
.cred-note strong { color: var(--ink); font-weight: 700; }
@media (min-width: 720px) { .cred-stats { grid-template-columns: repeat(4, 1fr); } }
.pipo-proof-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-24);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-sm);
}
.pipo-proof-card {
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-2));
  padding: 28px 24px;
  min-width: 0;
}
.pipo-proof-card .big {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.98;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.pipo-proof-card .big.big-word {
  font-size: clamp(28px, 3.7vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.pipo-proof-card .big .suffix {
  color: var(--accent);
  display: inline-block;
  margin-left: 8px;
}
.pipo-proof-card .lbl {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 18ch;
}
.pipo-proof-card-accent .big { color: var(--ink); }
.pipo-proof-card-accent .big .suffix { color: var(--accent); }
@media (min-width: 720px) {
  .pipo-proof-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   WHAT IS — definition box + inline flow + negation list
   ============================================================ */
.def-box { margin: 32px 0; padding: 26px 30px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-16); box-shadow: var(--shadow-sm); }
.def-box .q { font-family: var(--emph); font-style: italic; font-size: clamp(18px, 2.5vw, 25px); color: var(--ink); line-height: 1.4; }
.flow-inline { font-family: var(--mono); font-weight: 600; font-size: clamp(16px, 2.5vw, 24px); letter-spacing: 0.01em; color: var(--ink); margin: 28px 0; display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 14px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-12); background: var(--surface-2); }
.flow-inline .a { color: var(--accent); }
.flow-inline .sepx { color: var(--ink-3); }
.neg-list { margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.neg-list li { list-style: none; padding-left: 28px; position: relative; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.neg-list li::before { content: "✕"; position: absolute; left: 0; top: 1px; font-family: var(--mono); color: var(--stop); font-weight: 700; font-size: 13px; }
.neg-list li strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   ============================================================ */
/* ============================================================
   PRINCIPLE PUNCHLINE (big statement band)
   ============================================================ */
.statement { text-align: center; padding: clamp(48px, 9vh, 110px) 0; }
.statement .s-big { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 5vw, 60px); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); max-width: 18ch; margin: 0 auto; }
.statement .s-big .hl { color: var(--accent); }
.statement .s-sub { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-top: 18px; letter-spacing: 0.04em; }
.statement--split { text-align: left; padding: clamp(24px, 5vh, 60px) 0; }
.statement--split .s-big { margin: 0; font-size: clamp(26px, 4vw, 48px); line-height: 1.25; }

/* ============================================================
   HOME — hero wordmark (Pie Of Mind), wraps by word
   ============================================================ */
.hero-wordmark.wm-home { font-size: clamp(44px, 10vw, 138px); flex-wrap: wrap; gap: 0 0.12em; line-height: 0.94; }
.hero-wordmark.wm-home .word { display: inline-flex; }
.hero-wordmark.wm-home .ltr.of { color: var(--ink-3); }

/* ============================================================
   HOME — layer map (The Gap)
   ============================================================ */
.layer-map { display: grid; gap: 16px; margin-top: 32px; }
.layer-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.layer-group.deep { border-color: var(--accent-line); }
.layer-group .lg-h { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.layer-group .lg-h .pip { width: 8px; height: 8px; border-radius: 50%; }
.layer-group.surface .pip { background: var(--ink-4); }
.layer-group.deep .pip { background: var(--accent); }
.layer-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.layer-row:first-of-type { border-top: none; }
.layer-row .ln { font-family: var(--head); font-weight: 800; color: var(--ink-3); font-size: 16px; flex: none; width: 22px; }
.layer-group.deep .layer-row .ln { color: var(--accent); }
.layer-row .lt { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.layer-row .lt strong { color: var(--ink); font-weight: 700; }
@media (min-width: 760px) { .layer-map { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   HOME — pain checklist (clickable)
   ============================================================ */
.check-list { margin-top: 30px; display: grid; gap: 12px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color 200ms var(--ease); }
.check-item:hover { border-color: var(--line-2); }
.check-item .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-2); flex: none; margin-top: 1px; display: grid; place-items: center; color: #fff; transition: all 200ms var(--ease); }
.check-item .box svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.6); transition: all 200ms var(--ease); }
.check-item.checked .box { background: var(--accent); border-color: var(--accent); }
.check-item.checked .box svg { opacity: 1; transform: none; }
:root[data-theme="dark"] .check-item.checked .box { color: #0D1014; }
.check-item .ct { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.check-item.checked .ct { color: var(--ink); }

/* ============================================================
   HOME — path cards (start here / get started / bob)
   ============================================================ */
.path-grid { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 760px) { .path-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .path-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.path-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 26px; box-shadow: var(--shadow-sm); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.path-card .pc-n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.path-card .pc-ic { width: 46px; height: 46px; border-radius: var(--r-12); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 12px 0 16px; }
.path-card .pc-ic svg { width: 23px; height: 23px; }
.path-card h3 { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.24; }
.path-card .pc-for { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.path-card p { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.path-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.path-card ul li { padding-left: 16px; position: relative; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.path-card ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber-spark); }
.path-card .pc-cta { margin-top: auto; padding-top: 18px; }

/* ============================================================
   HOME — reframe
   ============================================================ */
.reframe-list { margin-top: 36px; display: grid; gap: 0; }
.reframe { padding: clamp(26px, 4vh, 42px) 0; border-top: 1px solid var(--line); }
.reframe:first-child { border-top: none; }
.reframe .no { font-family: var(--head); font-weight: 800; font-size: clamp(19px, 2.8vw, 28px); color: var(--ink-3); letter-spacing: -0.02em; }
.reframe .no .s { text-decoration: line-through; text-decoration-color: var(--stop); }
.reframe .yes { font-family: var(--head); font-weight: 800; font-size: clamp(22px, 3.4vw, 34px); color: var(--ink); letter-spacing: -0.02em; margin-top: 8px; line-height: 1.18; }
.reframe .yes .hl { color: var(--accent); }

/* ============================================================
   HOME — stuck cards (4 khâu)
   ============================================================ */
.stuck-list { margin-top: 36px; display: grid; gap: 18px; }
.stuck-list[hidden] { display: none; }
.stuck-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 28px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--accent); }
.stuck-card.peak { border-left-color: var(--amber-spark); }
.stuck-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stuck-head .sk { font-family: var(--head); font-weight: 800; font-size: 28px; color: var(--accent); letter-spacing: -0.02em; }
.stuck-card.peak .stuck-head .sk { color: var(--amber); }
.stuck-head h3 { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.stuck-quote { margin: 14px 0 20px; font-family: var(--emph); font-style: italic; color: var(--ink); font-size: 16px; padding-left: 14px; border-left: 3px solid var(--amber-spark); line-height: 1.45; }
.stuck-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .stuck-grid { grid-template-columns: repeat(3, 1fr); } }
.stuck-cell .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.stuck-cell .lbl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.stuck-cell.sym .lbl { color: var(--stop); } .stuck-cell.sym .lbl::before { background: var(--stop); }
.stuck-cell.kt .lbl { color: var(--ink-3); } .stuck-cell.kt .lbl::before { background: var(--ink-4); }
.stuck-cell.fix .lbl { color: var(--ok); } .stuck-cell.fix .lbl::before { background: var(--ok); }
.stuck-cell p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.stuck-cell p strong { color: var(--ink); }

/* ============================================================
   HOME — 7-up stats + CTA form
   ============================================================ */
.stat-grid7 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; margin-top: 32px; }
.stat-grid7 .stat { background: var(--surface); padding: 24px 18px; }
@media (min-width: 720px) { .stat-grid7 { grid-template-columns: repeat(4, 1fr); } }
.stat-grid6 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; margin-top: 32px; }
.stat-grid6 .stat { background: var(--surface); padding: 24px 18px; }
@media (min-width: 720px) { .stat-grid6 { grid-template-columns: repeat(3, 1fr); } }

.cta-form { margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 28px; box-shadow: var(--shadow-sm); max-width: 640px; }
.cta-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cta-form label { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-2); }
.cta-form input { font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-12); padding: 12px 14px; width: 100%; transition: border-color 150ms; }
.cta-form input:focus { outline: none; border-color: var(--accent); }
.cta-form input::placeholder { color: var(--ink-3); }
.cta-form .btn { width: 100%; margin-top: 6px; }
.cta-form .fine { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.cta-form .form-ok { margin-top: 12px; font-size: 14px; color: var(--ok); min-height: 18px; }

/* ============================================================
   HOME — Starter Vault preview (CTA visual)
   ============================================================ */
.vault-figure { display: flex; align-items: center; justify-content: center; }
.cta-side { flex-direction: column; align-items: stretch; gap: 16px; max-width: 220px; margin-left: auto; margin-top: 28px; align-self: center; }
.cta-side-note { display: grid; gap: 10px; padding: 4px 4px 0; }
.cta-side-note p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.zalo-card { width: 100%; max-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; padding: 12px; display: grid; gap: 10px; }
.zalo-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.zalo-qr { width: 100%; height: auto; border-radius: var(--r-16); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.zalo-caption { text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 999px) { .vault-figure { margin-top: 36px; } .cta-side { max-width: 420px; margin-left: 0; margin-top: 24px; align-self: auto; } .zalo-card { max-width: 420px; } }
@media (max-width: 999px) {
  .cta-main { max-width: none; }
  .cta-main .h-sec,
  .cta-main .prose,
  .cta-main .cta-form,
  .cta-main .leit { max-width: none; }
}

/* ============================================================
   KB — sticky PIPO progress strip
   ============================================================ */
.pipo-progress { position: sticky; top: 66px; z-index: 90; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.pp-inner { display: flex; align-items: center; gap: 8px; height: 46px; overflow-x: auto; }
.pp-stage { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; transition: color 250ms var(--ease); }
.pp-stage .ppk { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); transition: all 250ms var(--ease); flex: none; }
.pp-stage.active { color: var(--ink); }
.pp-stage.done { color: var(--ink-2); }
.pp-stage.done .ppk { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.pp-stage.active .ppk { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .pp-stage.active .ppk { color: #0D1014; }
.pp-arrow { color: var(--ink-4); font-family: var(--mono); font-size: 13px; }

/* ============================================================
   KB — Problem Map (clickable accordion cards)
   ============================================================ */
.pmap { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; align-items: start; }
@media (min-width: 680px) { .pmap { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pmap { grid-template-columns: repeat(3, 1fr); } }
.pm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 22px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), border-color 250ms var(--ease); display: flex; flex-direction: column; }
.pm-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.pm-card.open { border-color: var(--accent); }
.pm-top { display: flex; align-items: center; gap: 12px; }
.pm-ic { width: 40px; height: 40px; border-radius: var(--r-12); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.pm-ic svg { width: 20px; height: 20px; }
.pm-title { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.pm-chev { margin-left: auto; color: var(--ink-3); transition: transform 250ms var(--ease); }
.pm-card.open .pm-chev { transform: rotate(180deg); color: var(--accent); }
.pm-desc { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.pm-body { overflow: hidden; }
.pm-body-in { overflow: hidden; max-height: 0; transition: max-height 400ms var(--ease); }
.pm-card.open .pm-body-in { max-height: 760px; }
.pm-section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.pm-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pm-list li { padding-left: 18px; position: relative; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pm-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--stop); }
.pm-list.found li::before { background: var(--ok); }
.pm-cta { margin-top: 16px; }

/* ============================================================
   KB — orientation entry grid (4)
   ============================================================ */
.path-grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .path-grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .path-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.entry-glyph { font-family: var(--head); font-weight: 800; font-size: 22px; }

/* ============================================================
   KB — Learning Paths accordion
   ============================================================ */
.lp-list { margin-top: 36px; display: grid; gap: 14px; align-items: start; }
@media (min-width: 820px) { .lp-list { grid-template-columns: 1fr 1fr; } }
.lp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); box-shadow: var(--shadow-sm); overflow: hidden; }
.lp-head { display: flex; align-items: center; gap: 14px; padding: 22px; cursor: pointer; }
.lp-n { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--accent); flex: none; }
.lp-h { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.lp-aud { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.lp-chev { margin-left: auto; color: var(--ink-3); transition: transform 250ms var(--ease); flex: none; }
.lp.open .lp-chev { transform: rotate(180deg); color: var(--accent); }
.lp-body { overflow: hidden; }
.lp-body-in { overflow: hidden; max-height: 0; transition: max-height 400ms var(--ease); }
.lp.open .lp-body-in { max-height: 600px; }
.lp-steps { list-style: none; margin: 0; padding: 0 22px 22px; display: grid; gap: 0; }
.lp-steps li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.lp-steps li .si { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: none; width: 18px; }

/* ============================================================
   KB — Featured cases (click to reveal)
   ============================================================ */
.case-grid { display: grid; gap: 16px; margin-top: 36px; align-items: start; }
@media (min-width: 860px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; cursor: pointer; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case-type { font-family: var(--mono); font-size: 11px; color: var(--accent); border: 1px solid var(--accent-line); border-radius: var(--r-full); padding: 3px 10px; align-self: flex-start; }
.case-card h3 { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.26; margin-top: 14px; }
.case-meta { margin-top: 12px; display: grid; gap: 5px; font-size: 13px; color: var(--ink-2); }
.case-meta b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 11px; }
.case-more { overflow: hidden; }
.case-more-in { overflow: hidden; max-height: 0; transition: max-height 400ms var(--ease); }
.case-card.open .case-more-in { max-height: 400px; }
.case-more .cm { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.case-more .cm .l { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 5px; }
.case-toggle { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.case-card.open .case-toggle .ct-txt::after { content: " ngắn lại"; }

/* ============================================================
   KB — Input Hub tabs
   ============================================================ */
.tabs { margin-top: 32px; }
.tab-bar { display: inline-flex; gap: 6px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-full); flex-wrap: wrap; }
.tab-btn { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 9px 18px; border-radius: var(--r-full); border: none; background: transparent; cursor: pointer; transition: all 200ms var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.tab-btn .cnt { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tab-btn.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .tab-btn.active { color: #0D1014; }
.tab-btn.active .cnt { color: inherit; opacity: 0.8; }
.tab-panel { display: none; margin-top: 28px; }
.tab-panel.active { display: block; animation: tabin 320ms var(--ease); }
@keyframes tabin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mind-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 680px) { .mind-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mind-grid { grid-template-columns: repeat(3, 1fr); } }
.mind-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.mind-cell .mn { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.mind-cell h4 { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; }
.mind-cell p { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.read-first { margin-top: 24px; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-12); }
.read-first .rf-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 10px; }
.read-first a { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; border: none; }
.read-first a::before { content: "→"; font-family: var(--mono); color: var(--accent); }
.tool-pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.tool-pillar .tp-h { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); }
.tool-pillar .tp-tools { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.tool-pillar .tp-role { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.warn-note { margin-top: 22px; padding: 18px 22px; border-radius: var(--r-12); background: var(--stop-soft); border: 1px solid color-mix(in srgb, var(--stop) 30%, transparent); }
.warn-note p { font-size: 14px; color: var(--ink); line-height: 1.6; }
.warn-note p strong { color: var(--stop); }

/* ============================================================
   KB — Browse All (search + filter)
   ============================================================ */
.browse-bar { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 7px 14px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: all 180ms var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .chip.active { color: #0D1014; }
.chip.st { font-family: var(--mono); font-size: 12px; }
.kb-search { position: relative; max-width: 460px; }
.kb-search input { width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 12px 16px 12px 42px; transition: border-color 150ms; }
.kb-search input:focus { outline: none; border-color: var(--accent); }
.kb-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.kb-counter { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.kb-counter b { color: var(--ink); }
.kb-counter .ok { color: var(--ok); } .kb-counter .draft { color: var(--amber); } .kb-counter .plan { color: var(--ink-3); }
.kb-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
@media (min-width: 680px) { .kb-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .kb-grid { grid-template-columns: repeat(3, 1fr); } }
.kb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.kb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kb-card .kc-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }
.kb-card h4 { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.26; margin-top: 12px; }
.kb-card p { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.kb-card .kc-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kb-status { font-family: var(--mono); font-size: 11.5px; display: inline-flex; align-items: center; gap: 6px; }
.kb-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.kb-status.published { color: var(--ok); } .kb-status.published::before { background: var(--ok); }
.kb-status.drafting { color: var(--amber); } .kb-status.drafting::before { background: var(--amber); }
.kb-status.planned { color: var(--ink-3); } .kb-status.planned::before { background: var(--ink-4); }
.kb-card .kc-act { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.kb-empty { display: none; text-align: center; padding: 60px 20px; }
.kb-empty.show { display: block; }
.kb-empty p { color: var(--ink-2); font-size: 16px; }
.kb-empty .btn { margin-top: 20px; }

/* ============================================================
   RESOURCE — sticky resource bar
   ============================================================ */
.res-bar { position: sticky; top: 66px; z-index: 90; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.res-bar-in { display: flex; align-items: center; gap: 10px; height: 56px; overflow-x: auto; }
.res-bar .chip { flex: none; }
.res-bar .rb-search { margin-left: auto; flex: none; }
.res-bar .rb-search input { width: 200px; font-family: var(--sans); font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 8px 14px; transition: border-color 150ms, width 200ms var(--ease); }
.res-bar .rb-search input:focus { outline: none; border-color: var(--accent); width: 240px; }

/* ============================================================
   RESOURCE — quick filter rows (hero)
   ============================================================ */
.qf { margin-top: 26px; }
.qf-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.qf-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.qf-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); padding: 9px 16px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: all 180ms var(--ease); text-decoration: none; }
.qf-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.qf-pill .qf-ic { width: 18px; height: 18px; color: var(--accent); }
.qf-pill.small { font-size: 13px; padding: 8px 14px; color: var(--ink-2); }

/* ============================================================
   RESOURCE — generic resource card (+ accordion + copy)
   ============================================================ */
.res-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; align-items: start; }
@media (min-width: 680px) { .res-grid.c2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .res-grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow 250ms var(--ease), transform 250ms var(--ease); }
.rcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rc-head { display: flex; align-items: center; gap: 10px; }
.rc-type { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 11px; border-radius: var(--r-full); }
.rc-type svg { width: 13px; height: 13px; }
.rc-new { margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; color: var(--amber); border: 1px solid var(--amber); border-radius: var(--r-full); padding: 2px 8px; }
.rcard h3 { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.26; margin-top: 14px; }
.rcard .rc-desc { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.rc-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.rc-meta span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-full); padding: 3px 9px; }
.rc-preview { overflow: hidden; }
.rc-preview-in { overflow: hidden; max-height: 0; transition: max-height 420ms var(--ease); }
.rcard.open .rc-preview-in { max-height: 720px; }
.rc-preview .blk { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.rc-preview .blk .l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); display: block; margin-bottom: 7px; }
.rc-preview .blk p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.rc-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.rc-fields li { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.rc-fields li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); }
.rc-actions { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn-mini { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; transition: all 160ms var(--ease); }
.btn-mini:hover { border-color: var(--accent); color: var(--accent); }
.btn-mini.primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn-mini.primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn-mini svg { width: 14px; height: 14px; }
.copybtn.copied { border-color: var(--ok); color: var(--ok); }
.copybtn .cb-default, .copybtn .cb-done { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.copybtn.copied .cb-default { display: none; }
.copybtn .cb-done { display: none; }
.copybtn.copied .cb-done { display: inline-flex; }

/* code block */
.codeblock { margin-top: 14px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; }
.codeblock-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.codeblock-bar .dots { display: flex; gap: 5px; }
.codeblock-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.codeblock-bar .cb-lbl { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.codeblock pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.codeblock code { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink); white-space: pre-wrap; }

/* ============================================================
   RESOURCE — packs (expand)
   ============================================================ */
.pack-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; align-items: start; }
@media (min-width: 680px) { .pack-grid { grid-template-columns: 1fr 1fr; } }
.pack { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 24px; box-shadow: var(--shadow-sm); }
.pack-top { display: flex; align-items: flex-start; gap: 14px; }
.pack-ic { width: 44px; height: 44px; border-radius: var(--r-12); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.pack-ic svg { width: 22px; height: 22px; }
.pack h3 { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.pack .pack-aud { margin-top: 5px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pack-count { font-family: var(--mono); font-size: 11.5px; color: var(--accent); margin-top: 8px; }
.pack-items { overflow: hidden; max-height: 0; transition: max-height 420ms var(--ease); }
.pack.open .pack-items { max-height: 360px; }
.pack-items ul { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.pack-items li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.pack-items li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 1px; }
.pack-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   RESOURCE — cheatsheet thumbnails
   ============================================================ */
.sheet-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
@media (min-width: 600px) { .sheet-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .sheet-grid { grid-template-columns: repeat(4, 1fr); } }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.sheet:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sheet-thumb { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; background: var(--bg-deep); overflow: hidden; }
.sheet-thumb::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 11px, color-mix(in srgb, var(--accent) 8%, transparent) 11px 12px); }
.sheet-thumb .st-label { position: relative; font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full); padding: 5px 12px; }
.sheet-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.sheet-body h3 { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.28; }
.sheet-body .sf { margin-top: 7px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.sheet-body p { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.sheet-body .rc-actions { padding-top: 14px; }

/* ============================================================
   PRODUCT — status badges + product cards + roadmap
   ============================================================ */
.status-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 11px; border-radius: var(--r-full); }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-badge.available { color: var(--ok); background: var(--ok-soft); } .status-badge.available::before { background: var(--ok); }
.status-badge.progress { color: var(--amber); background: var(--amber-soft); } .status-badge.progress::before { background: var(--amber); }
.status-badge.waitlist { color: var(--accent); background: var(--accent-soft); } .status-badge.waitlist::before { background: var(--accent); }
.status-badge.planned { color: var(--ink-3); background: var(--surface-2); } .status-badge.planned::before { background: var(--ink-4); }

.prod-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; align-items: start; }
@media (min-width: 760px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
.prod-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.prod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.prod-card.muted { opacity: 0.82; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod-type { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.prod-card h3 { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; margin-top: 14px; }
.prod-fields { margin-top: 14px; display: grid; gap: 10px; }
.prod-field { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.prod-field .l { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); display: block; margin-bottom: 3px; }
.prod-field strong { color: var(--ink); font-weight: 600; }
.prod-card .rc-actions { padding-top: 18px; }

/* roadmap */
.roadmap { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
@media (min-width: 680px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .roadmap { grid-template-columns: repeat(4, 1fr); } }
.rm-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 20px; box-shadow: var(--shadow-sm); }
.rm-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.rm-col h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.rm-col.c-av h4::before { background: var(--ok); } .rm-col.c-pr h4::before { background: var(--amber); }
.rm-col.c-fb h4::before { background: var(--accent); } .rm-col.c-la h4::before { background: var(--ink-4); }
.rm-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rm-col li { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.rm-col li b { color: var(--ink); font-weight: 600; font-family: var(--head); }

/* workflow tiles (Bob) */
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
@media (min-width: 760px) { .wf-grid { grid-template-columns: repeat(4, 1fr); } }
.wf-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); padding: 18px; box-shadow: var(--shadow-sm); }
.wf-tile .wk { font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--accent); letter-spacing: 0.02em; }
.wf-tile p { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ============================================================
   BLOG — featured article, post rows, series, tag pills
   ============================================================ */
.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-pill { font-family: var(--mono); font-size: 11px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 4px 11px; }
.tag-pill.type { color: var(--accent); border-color: var(--accent-line); }
.tag-pill.rt { color: var(--ink-3); border: none; padding-left: 0; }

.feat-article { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-24); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); }
.feat-article h3 { font-family: var(--head); font-weight: 800; font-size: clamp(24px, 3.6vw, 40px); letter-spacing: -0.02em; color: var(--ink); line-height: 1.12; margin-top: 18px; max-width: 24ch; }
.feat-article .fa-excerpt { margin-top: 18px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); max-width: 64ch; }
.feat-article .fa-excerpt strong { color: var(--ink); font-weight: 700; }
.feat-read { display: grid; gap: 8px; margin: 22px 0; padding: 0; }
.feat-read li { padding-left: 18px; position: relative; font-size: 14px; color: var(--ink-2); line-height: 1.5; list-style: none; }
.feat-read li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber-spark); }

.post-list { margin-top: 32px; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding-left 250ms var(--ease); text-decoration: none; border-left: none; }
.post-row:hover { padding-left: 12px; }
.post-row h3 { font-family: var(--head); font-weight: 700; font-size: clamp(19px, 2.3vw, 26px); letter-spacing: -0.01em; color: var(--ink); line-height: 1.22; }
.post-row:hover h3 { color: var(--accent); }
.post-row p { font-size: 15px; color: var(--ink-2); line-height: 1.6; max-width: 70ch; margin-top: 4px; }
@media (min-width: 760px) { .post-row { grid-template-columns: 210px 1fr; gap: 28px; align-items: baseline; } }

.series-posts { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: sp; display: grid; gap: 8px; }
.series-posts li { padding-left: 24px; position: relative; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; counter-increment: sp; }
.series-posts li::before { content: counter(sp); position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 700; }

/* ============================================================
   ARTICLE — reading layout, prose, callouts, sidebar
   ============================================================ */
.article-wrap { max-width: 1080px; margin: 0 auto; display: block; padding-top: 96px; padding-bottom: 88px; }
@media (min-width: 1100px) {
  .article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
}
.article-main { max-width: 720px; width: 100%; margin: 0 auto; }
.article-side { display: none; }
@media (min-width: 1100px) {
  .article-side { display: block; position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
}

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-3); border: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--ink-4); }
.breadcrumb .cur { color: var(--ink); font-weight: 600; }

.art-h1 { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.28; letter-spacing: -0.02em; color: var(--ink); margin-top: 18px; }
.art-h1 .sub { display: block; font-weight: 400; font-size: clamp(18px, 2.4vw, 24px); color: var(--ink-3); letter-spacing: -0.01em; margin-top: 6px; }
.art-deck { font-family: var(--emph); font-style: italic; font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--ink-2); margin-top: 18px; max-width: 60ch; }
.meta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.meta-strip .av { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; }
.meta-strip .sep { color: var(--ink-4); }
.meta-strip b { color: var(--ink-2); font-weight: 600; }

/* prose reading */
.art-prose { margin-top: 28px; }
.art-prose > p { font-size: 18px; line-height: 1.8; color: var(--ink); margin: 0 0 1.4em; }
.art-prose > p:first-child { margin-top: 0; }
.art-prose strong { font-weight: 700; }
.art-prose .lead-line { font-size: 20px; line-height: 1.6; color: var(--ink); }
.art-prose h2 { font-family: var(--head); font-weight: 700; font-size: clamp(22px, 2.6vw, 27px); letter-spacing: -0.01em; color: var(--ink); margin: 48px 0 16px; scroll-margin-top: 90px; }
.art-prose h3 { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); margin: 30px 0 10px; scroll-margin-top: 90px; }
.art-prose code:not(pre code) { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink); }

/* definition block */
.def-block { margin: 28px 0; background: var(--bg-2); border-left: 4px solid var(--accent); border-radius: 0 var(--r-12) var(--r-12) 0; padding: 22px 26px; }
.def-block p { font-family: var(--emph); font-style: italic; font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0 0 10px; }
.def-block p:last-child { margin-bottom: 0; }
.def-block strong { font-style: normal; color: var(--ink); }

/* callouts */
.callout { margin: 28px 0; border-radius: var(--r-12); padding: 22px 24px; border: 1px solid var(--line-2); }
.callout .co-title { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.callout p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }
.callout.c-example { background: var(--accent-soft); border-color: var(--accent-line); }
.callout.c-apply { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.callout.c-warning { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 38%, transparent); }
.callout.c-info { background: var(--stop-soft); border-color: color-mix(in srgb, var(--stop) 30%, transparent); }
.callout .co-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.c-example .co-ic { background: var(--accent); color: #fff; } .c-apply .co-ic { background: var(--ok); color: #fff; }
.c-warning .co-ic { background: var(--amber); color: #2A1B06; } .c-info .co-ic { background: var(--stop); color: #fff; }
.callout .co-ic svg { width: 13px; height: 13px; }

/* numbered steps */
.steps { margin: 24px 0; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.step .sn { font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--accent); line-height: 1; }
.step .st { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); }
.step p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

/* inline related */
.inline-related { margin: 30px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-12); background: var(--surface); }
.inline-related .ir-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 12px; }
.inline-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.inline-related li { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; padding-left: 20px; position: relative; }
.inline-related li::before { content: "→"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent); }
.inline-related li strong { color: var(--ink); }

/* takeaways */
.takeaways { margin: 40px 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-16); padding: 28px 32px; }
.takeaways .tk-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 16px; }
.takeaways ol { list-style: none; margin: 0; padding: 0; counter-reset: tk; display: grid; gap: 16px; }
.takeaways li { counter-increment: tk; display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.takeaways li::before { content: counter(tk); font-family: var(--mono); font-weight: 700; font-size: 17px; color: var(--accent); }

/* apply now */
.apply-now { margin: 36px 0; background: var(--ok-soft); border: 2px solid color-mix(in srgb, var(--ok) 55%, transparent); border-radius: var(--r-16); padding: 28px 32px; }
.apply-now .an-t { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.apply-now .an-d { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }

/* byline */
.byline { display: flex; gap: 16px; align-items: flex-start; margin: 40px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.byline .av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; }
.byline .bn { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); }
.byline .br { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.byline .bq { font-family: var(--emph); font-style: italic; font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--line-2); padding-left: 12px; margin-top: 10px; line-height: 1.5; }

/* related cards */
.rel-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
@media (min-width: 640px) { .rel-cards { grid-template-columns: repeat(3, 1fr); } }
.rel-card { border: 1px solid var(--line); border-radius: var(--r-12); padding: 16px 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); display: block; }
.rel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.rel-card .rc-pill { font-family: var(--mono); font-size: 10.5px; color: var(--accent); }
.rel-card h4 { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.25; margin: 8px 0 0; letter-spacing: -0.01em; }
.rel-card .rt { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 8px; }

/* prev/next */
.prevnext { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.pn { border: 1px solid var(--line); border-radius: var(--r-12); padding: 16px 18px; transition: border-color 200ms var(--ease); display: block; }
.pn:hover { border-color: var(--accent); }
.pn .pl { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.pn .pt { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 5px; }
.pn.next { text-align: right; }

/* article cta */
.art-cta { margin: 40px 0 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-16); padding: 34px 32px; text-align: center; }
.art-cta h3 { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.art-cta p { font-size: 15px; color: var(--ink-2); margin: 10px auto 22px; max-width: 44ch; line-height: 1.6; }

/* sidebar widgets */
.toc-side .tw-l, .side-widget .tw-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 12px; }
.toc-side { border: 1px solid var(--line); border-radius: var(--r-12); padding: 18px 20px; background: var(--surface); }
.toc-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.toc-side a { display: block; font-size: 13px; color: var(--ink-3); border: none; padding: 5px 0 5px 12px; border-left: 2px solid transparent; line-height: 1.4; transition: color 180ms, border-color 180ms; }
.toc-side a.lvl3 { padding-left: 24px; font-size: 12.5px; }
.toc-side a:hover { color: var(--ink); }
.toc-side a.active { color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.side-widget { border: 1px solid var(--line); border-radius: var(--r-12); padding: 18px 20px; background: var(--surface); }
.side-widget .sw-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; color: var(--ink-2); }
.side-widget .sw-row .k { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.side-widget .sw-btn { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; font-family: var(--sans); font-weight: 600; font-size: 13px; padding: 9px 12px; border-radius: var(--r-8); border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; transition: all 160ms var(--ease); margin-top: 8px; }
.side-widget .sw-btn:first-of-type { margin-top: 0; }
.side-widget .sw-btn:hover { border-color: var(--accent); color: var(--accent); }
.side-widget .sw-btn.copied { border-color: var(--ok); color: var(--ok); }
.side-widget .sw-btn .cb-done { display: none; } .side-widget .sw-btn.copied .cb-default { display: none; } .side-widget .sw-btn.copied .cb-done { display: inline; }
.side-widget .sw-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-bottom: 12px; }

/* mobile ToC accordion */
.toc-mobile { margin: 24px 0; }
@media (min-width: 1100px) { .toc-mobile { display: none; } }
.toc-mobile summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: var(--ink); padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 8px; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary { border-radius: var(--r-12) var(--r-12) 0 0; }
.toc-mobile .toc-side { border-radius: 0 0 var(--r-12) var(--r-12); border-top: none; }

/* ============================================================
   ARTICLE — Obsidian-style wikilinks, backlinks, hover preview
   ============================================================ */
.wikilink { color: var(--accent); border: none; cursor: pointer; font-weight: 500; padding: 0 1px; border-bottom: 1px solid var(--accent-line); transition: background 160ms var(--ease), border-color 160ms; border-radius: 2px; }
.wikilink:hover { background: var(--accent-soft); border-bottom-color: var(--accent); }
.inline-related .wikilink { border-bottom: none; }

.backlinks { margin: 42px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.bl-head { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.bl-head svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.bl-count { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); background: var(--surface-2); border-radius: var(--r-full); padding: 2px 9px; }
.bl-sub { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.bl-item { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--r-12) var(--r-12) 0; padding: 16px 18px; margin-bottom: 12px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); display: block; }
.bl-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.bl-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bl-title { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); }
.bl-item:hover .bl-title { color: var(--accent); }
.bl-pill { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.bl-context { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.bl-context mark { background: var(--amber-soft); color: var(--ink); border-radius: 3px; padding: 0 4px; font-weight: 600; }

.link-preview { position: fixed; z-index: 300; width: 300px; max-width: 82vw; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-12); box-shadow: var(--shadow-lg); padding: 16px 18px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 150ms var(--ease), transform 150ms var(--ease); }
.link-preview.show { opacity: 1; transform: none; pointer-events: auto; }
.link-preview .lp-pill { font-family: var(--mono); font-size: 10.5px; color: var(--accent); }
.link-preview .lp-title { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; line-height: 1.2; }
.link-preview .lp-ex { margin-top: 9px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.link-preview .lp-meta { margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* related problems (Problem-Hub links) */
.rel-problems { margin: 40px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.rp-head { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.rp-head svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.rp-sub { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.rp-item { display: block; border: 1px solid var(--line); border-left: 3px solid var(--amber-spark); border-radius: 0 var(--r-12) var(--r-12) 0; padding: 16px 18px; margin-bottom: 12px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease), box-shadow 200ms; }
.rp-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.rp-q { font-family: var(--emph); font-style: italic; font-size: 15px; color: var(--ink); line-height: 1.5; }
.rp-q .pb { font-family: var(--head); font-style: normal; font-weight: 800; color: var(--amber); margin-right: 8px; }
.rp-help { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.rp-help strong { color: var(--ink); }
.rp-go { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   VAULT — comparison table, FAQ, folder grid, template chips
   ============================================================ */
.cmp-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-16); }
.cmp { width: 100%; border-collapse: collapse; min-width: 580px; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; vertical-align: top; }
.cmp thead th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-3); background: var(--surface-2); }
.cmp thead th:last-child { color: var(--accent); }
.cmp tbody td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.cmp tbody td.old { color: var(--ink-3); }
.cmp tbody td.new { color: var(--ink); }
.cmp tbody tr:last-child td { border-bottom: none; }

.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 14px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .fq-ic { flex: none; color: var(--ink-3); transition: transform 250ms var(--ease); }
.faq details[open] summary .fq-ic { transform: rotate(45deg); color: var(--accent); }
.faq .fq-body { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.faq .fq-body strong { color: var(--ink); }

.folder-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 680px) { .folder-grid { grid-template-columns: 1fr 1fr; } }
.folder { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-12); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.folder .fn { font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--accent); flex: none; width: 24px; line-height: 1.2; }
.folder .ft { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.folder p { margin: 5px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

.tpl-chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-chip { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full); padding: 6px 13px; }

/* video tutorials */
.vid-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
@media (min-width: 760px) { .vid-grid { grid-template-columns: 1fr 1fr; } }
.vid-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.vid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vid-embed { position: relative; aspect-ratio: 16 / 9; background: var(--bg-deep); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.vid-embed::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 11px, color-mix(in srgb, var(--accent) 7%, transparent) 11px 12px); }
.vid-embed iframe, .vid-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.vid-play { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform 200ms var(--ease); }
.vid-card:hover .vid-play { transform: scale(1.06); }
.vid-play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
:root[data-theme="dark"] .vid-play svg { color: #0D1014; }
.vid-note { position: absolute; z-index: 1; bottom: 12px; left: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full); padding: 4px 11px; }
.vid-body { padding: 16px 18px; }
.vid-body .vstep { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.vid-body h3 { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; }
.vid-body p { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* ============================================================
   FORWORK (B2B) — qualify grid, offering, form options
   ============================================================ */
.qualify { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; margin-top: 30px; box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .qualify { grid-template-columns: 1fr 1fr; } }
.q-cell { padding: 22px 24px; background: var(--surface); }
.q-cell.ok { background: var(--ok-soft); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .q-cell.ok { border-bottom: none; border-right: 1px solid var(--line); } }
.q-cell .q-h { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.q-cell.ok .q-h { color: var(--ok); } .q-cell.no .q-h { color: var(--stop); }
.q-cell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q-cell li { font-size: 14px; color: var(--ink-2); line-height: 1.5; padding-left: 16px; position: relative; }
.q-cell li::before { content: "·"; position: absolute; left: 2px; color: var(--ink-3); font-weight: 700; }

.offer { border-top: 3px solid var(--accent); }
.offer.green { border-top-color: var(--ok); }
.offer .grp-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 16px 0 8px; }
.offer .grp-l:first-of-type { margin-top: 14px; }
.offer ul { margin: 0; }
.offer .price { font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--ink); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.offer .price small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-weight: 400; margin-bottom: 3px; }
.offer .label-pill { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-3); }

.f-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.f-opts.stack { flex-direction: column; align-items: stretch; }
.f-opt { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-12); padding: 12px 16px; cursor: pointer; transition: border-color 160ms var(--ease), background 160ms; background: var(--bg-2); }
.f-opts.stack .f-opt { width: 100%; }
.f-opt:hover { border-color: var(--accent); background: var(--surface); }
.f-opt input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; flex: none; }
.f-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--accent); }

/* forwork form — cleaner card + readable labels */
#fwForm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: clamp(22px, 4vw, 32px); box-shadow: var(--shadow-sm); }
#fwForm .field { margin-bottom: 24px; }
#fwForm .field:last-of-type { margin-bottom: 8px; }
#fwForm .field > label:first-child { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -0.005em; text-transform: none; margin-bottom: 4px; display: block; }
#fwForm input, #fwForm textarea { background: var(--bg-2); }
#fwForm input:focus, #fwForm textarea:focus { background: var(--surface); }
#fwForm .f-opt { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; }
.cta-form .field textarea { font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-12); padding: 12px 14px; width: 100%; resize: vertical; min-height: 64px; transition: border-color 150ms; }
.cta-form .field textarea:focus { outline: none; border-color: var(--accent); }
.form-success { display: none; text-align: center; padding: 36px 28px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); border-radius: var(--r-16); }
.form-success.show { display: block; }
.form-success .fs-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.form-success h3 { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); }
.form-success p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-top: 10px; }

/* ============================================================
   ABOUT — hero, fail card, timeline, mini-flow, principles, connect
   ============================================================ */
.about-hero { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 640px) { .about-hero { flex-direction: row; align-items: center; gap: 32px; } }
.about-av { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); flex: none; box-shadow: var(--shadow-md); }
.about-av img { width: 100%; height: 100%; object-fit: cover; }

.fail-card { margin: 24px 0; border: 1px solid var(--line); border-left: 4px solid var(--stop); border-radius: var(--r-12); padding: 20px 24px; background: var(--stop-soft); }
.fail-card .fc-h { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); }
.fail-card .fc-x { width: 22px; height: 22px; border-radius: 6px; background: var(--stop); color: #fff; display: grid; place-items: center; flex: none; }
.fail-card .fc-x svg { width: 13px; height: 13px; }
.fail-card .fc-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.fail-card p { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.fail-card p strong { color: var(--ink); }

.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0; }
.mini-node { flex: 1; min-width: 110px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-8); padding: 14px 10px; }
.mini-node.peak { border-color: var(--accent); color: var(--accent); }
.mini-arrow { color: var(--ink-3); font-family: var(--mono); }

.timeline { margin: 30px 0 0; padding-left: 26px; border-left: 2px solid var(--line); display: grid; gap: 26px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item.abandoned::before { border-color: var(--ink-4); }
.tl-date { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tl-name { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 3px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-badge { font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-full); }
.tl-badge.run { color: var(--ok); background: var(--ok-soft); }
.tl-badge.gone { color: var(--stop); background: var(--stop-soft); }
.tl-item p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.princ-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .princ-grid { grid-template-columns: 1fr 1fr; } }
.princ { border: 1px solid var(--line); border-radius: var(--r-12); padding: 24px; background: var(--bg-2); font-family: var(--emph); font-style: italic; font-size: 16px; line-height: 1.6; color: var(--ink); transition: border-color 150ms; }
.princ:hover { border-color: var(--accent); }

.status-list { margin: 24px 0 0; display: grid; gap: 12px; max-width: 520px; }
.status-row { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.status-row .si { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; flex: none; }
.status-row .si svg { width: 12px; height: 12px; }
.status-row .si.run { background: var(--ok-soft); color: var(--ok); }
.status-row .si.wip { background: var(--amber-soft); color: var(--amber); }
.status-row .sub { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.connect-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .connect-grid { grid-template-columns: repeat(3, 1fr); } }
.connect-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-12); padding: 22px 18px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease), box-shadow 200ms, border-color 200ms; }
.connect-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.connect-opt.primary { border: 2px solid var(--accent); }
.connect-opt .co-ic { width: 40px; height: 40px; border-radius: var(--r-12); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.connect-opt .co-ic svg { width: 20px; height: 20px; }
.connect-opt .co-l { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--ink); }
.connect-opt .co-s { font-family: var(--mono); font-size: 11px; color: var(--ink-3); word-break: break-all; }

/* blog pager (prev/next) */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.pager-btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 10px 18px; cursor: pointer; transition: border-color 160ms var(--ease), color 160ms, background 160ms; }
.pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-info { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); min-width: 80px; text-align: center; }

/* blog hierarchical filters */
.blog-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 22px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); box-shadow: var(--shadow-sm); }
.bf-group { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; }
.bf-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.bf-l .bf-sub { text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: 10.5px; }
.bf-sel { font-family: var(--sans); font-size: 14px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-8); padding: 9px 12px; cursor: pointer; transition: border-color 150ms; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.bf-sel:focus { outline: none; border-color: var(--accent); }
.bf-sel:disabled { opacity: 0.5; cursor: not-allowed; }
.bf-clear { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-8); padding: 9px 16px; cursor: pointer; transition: all 150ms var(--ease); height: fit-content; }
.bf-clear:hover { border-color: var(--accent); color: var(--accent); }

/* filter toggle button (next to search) */
.filter-toggle { display: inline-flex; align-items: center; gap: 7px; flex: none; font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 8px 14px; cursor: pointer; transition: border-color 150ms var(--ease), color 150ms; position: relative; }
.filter-toggle:hover { border-color: var(--accent); color: var(--accent); }
.filter-toggle svg { width: 16px; height: 16px; }
.ft-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; }
:root[data-theme="dark"] .ft-badge { color: #0D1014; }

/* filter slide-in panel */
.filter-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.34); opacity: 0; pointer-events: none; transition: opacity 280ms var(--ease); z-index: 190; }
.filter-scrim.open { opacity: 1; pointer-events: auto; }
.filter-panel { position: fixed; top: 0; right: 0; height: 100%; width: min(340px, 88vw); background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 195; transform: translateX(100%); transition: transform 320ms var(--ease); display: flex; flex-direction: column; }
.filter-panel.open { transform: none; }
.fp-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.fp-head h3 { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.fp-close { width: 34px; height: 34px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color 150ms, color 150ms; }
.fp-close:hover { border-color: var(--accent); color: var(--accent); }
.fp-body { padding: 22px; display: grid; gap: 20px; align-content: start; overflow-y: auto; flex: 1; }
.fp-body .bf-group { min-width: 0; }
.fp-foot { padding: 18px 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ============================================================
   NAVY DARK BANDS — strong section separation (both themes)
   Remaps palette tokens locally so all children adapt contrast.
   Applied to recurring anchor sections + opt-in .band-dark.
   ============================================================ */
.band-dark,
.section.closing,
.cred {
  --bg:        #1B2433;
  --bg-2:      #1F2A3B;
  --bg-deep:   #161E2B;
  --surface:   #243047;
  --surface-2: #2A384D;
  --ink:       #ECEFF4;
  --ink-2:     rgba(236,239,244,0.70);
  --ink-3:     rgba(236,239,244,0.46);
  --ink-4:     rgba(236,239,244,0.20);
  --line:      rgba(236,239,244,0.12);
  --line-2:    rgba(236,239,244,0.22);
  --grid-line: rgba(236,239,244,0.05);
  --accent:    #6BA6DE;
  --accent-2:  #9CC6EE;
  --accent-soft: rgba(107,166,222,0.16);
  --accent-line: rgba(107,166,222,0.40);
  background: var(--bg);
  border-top: 1px solid rgba(236,239,244,0.10);
  border-bottom: 1px solid rgba(236,239,244,0.10);
  color: var(--ink);
}
:root[data-accent="amber"] .band-dark,
:root[data-accent="amber"] .section.closing,
:root[data-accent="amber"] .cred { --accent: #F0BE6A; --accent-2: #F3CC86; --accent-soft: rgba(239,174,55,0.18); --accent-line: rgba(239,174,55,0.42); }
:root[data-accent="burgundy"] .band-dark,
:root[data-accent="burgundy"] .section.closing,
:root[data-accent="burgundy"] .cred { --accent: #D98A8A; --accent-2: #E6A6A6; --accent-soft: rgba(217,138,138,0.16); --accent-line: rgba(217,138,138,0.40); }
/* primary button stays butter — ensure dark text on it inside bands */
.band-dark .btn-primary, .section.closing .btn-primary, .cred .btn-primary { color: #2A1B06; }

/* ============================================================
   Reveal base (JS toggles .in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); }

/* No-GSAP / failsafe — never leave content stuck hidden */
.no-gsap .reveal,
.no-gsap .reveal-group > *,
.no-gsap .reveal-lines .line-inner,
.no-gsap .hero-wordmark .ltr,
.no-gsap .flow-box,
.no-gsap .diagram-foot { opacity: 1 !important; transform: none !important; }
.no-gsap .flow-svg [data-draw] { stroke-dashoffset: 0 !important; }
.no-gsap .flow-arrowhead, .no-gsap .flow-loop-head, .no-gsap .flow-loop-label { opacity: 1 !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
  .wrap { padding: 0 40px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .miscon-list { gap: 18px; }
}
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .toc-rail { display: flex; }
  .stage-list { gap: 18px; }
}
@media (max-width: 999px) {
  .hero-figure { display: none !important; }
  .closing-figure { display: none; }
}
@media (max-width: 719px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
  .acr .node { min-width: 70px; padding: 10px; }
}

/* ============================================================
   WHY PIPOO SECTION
   ============================================================ */
.why-pom { background: var(--bg); border-top: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
@media (min-width: 760px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); padding: 24px; box-shadow: var(--shadow-sm); position: relative; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.why-card-num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.why-card h3 { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.why-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Dòng thời gian lịch sử */
.ipo-history { display: grid; gap: 16px; margin-top: 28px; border-left: 2px solid var(--line-2); padding-left: 20px; }
.ipo-hist-item { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: start; }
.ipo-hist-item .yr { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--accent); position: relative; }
.ipo-hist-item .yr::before { content: ""; position: absolute; left: -27px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.ipo-hist-item .det { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.ipo-hist-item .det strong { color: var(--ink); font-weight: 700; }

.double-loop-box { margin-top: 40px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r-16); padding: 28px; }
.dl-badge { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-full); margin-bottom: 14px; }
.double-loop-box h3 { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--ink); margin-bottom: 12px; }
.double-loop-box p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; margin: 0 0 14px; }
.dl-list { margin: 12px 0; padding-left: 20px; display: grid; gap: 8px; }
.dl-list li { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.dl-list li strong { color: var(--ink); }
.dl-note { font-style: italic; color: var(--ink); font-weight: 500; border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 18px !important; }

/* ============================================================
   Reduced motion — show everything, kill transforms
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal-lines .line-inner { transform: none !important; }
  .scroll-hint .mouse::after { animation: none; }
}
