/* ==========================================================================
   Qanterion — design system
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f7f9fc;
  --bg-3: #eef2f8;
  --ink: #0a1628;
  --text: #101828;
  --muted: #4a5568;
  --faint: #667085;
  --line: #e6ebf2;
  --line-2: #d6dde8;
  --brand: #1d4ed8;
  --brand-600: #1a3fb5;
  --brand-50: #eff4ff;
  --brand-100: #dbe5fe;
  --up: #12a150;
  --down: #e5484d;
  --amber: #f5a524;
  --wa: #128c4a;
  --wa-600: #0e733c;
  --wa-50: #ecfbf2;
  --navy: #0a1628;
  --navy-2: #111f38;
  --navy-line: rgba(255, 255, 255, .09);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .14);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 32px 64px -24px rgba(16, 24, 40, .26);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(29, 78, 216, .08); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.18rem; letter-spacing: -.015em; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--font-mono); font-feature-settings: normal; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --bg-btn: var(--brand); --fg-btn: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  background: var(--bg-btn); color: var(--fg-btn);
  font: 600 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { color: var(--fg-btn); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { box-shadow: 0 1px 2px rgba(16, 24, 40, .1), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .55); }
.btn-wa { --bg-btn: var(--wa); box-shadow: 0 1px 2px rgba(16, 24, 40, .1), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-wa:hover { background: var(--wa-600); box-shadow: 0 8px 20px -8px rgba(18, 140, 74, .55); }
.btn-wa svg:not(.arrow) { fill: currentColor; }
.btn-ghost { --bg-btn: #fff; --fg-btn: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: #b8c3d3; background: var(--bg-2); }
.btn-dark { --bg-btn: var(--ink); }
.btn-dark:hover { background: #1b2a44; }
.btn-light { --bg-btn: #fff; --fg-btn: var(--ink); }
.btn-light:hover { background: #eef2f8; }
.btn-outline-light { --bg-btn: transparent; --fg-btn: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-btn:hover { color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the
   header itself would trap the fixed-position phone menu inside the header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 24, 40, .25); }
.site-header.scrolled::before { background: rgba(255, 255, 255, .9); }
body.nav-open .site-header::before { background: #fff; }
body.nav-open .site-header { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.2rem/1 var(--font-display); letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .94rem; transition: color .2s, background .2s; }
.site-nav ul a:hover { color: var(--ink); background: var(--bg-3); }
.site-nav ul a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 44px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle .bar { width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px;
    background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; margin: 0; gap: 0; }
  .site-nav ul a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .site-nav ul a:hover { background: none; }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .nav-cta .btn { height: 50px; }
  body.nav-open { overflow: hidden; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: 112px 0; position: relative; }
.section-sm { padding: 72px 0; }
.section-alt { background: var(--bg-2); }
.section-line { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font: 600 .8rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }
.eyebrow-wa { color: var(--wa); }
@media (max-width: 760px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* Reveal animation -------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 120px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 78% 18%, rgba(29, 78, 216, .09), transparent 70%), radial-gradient(40% 40% at 10% 0%, rgba(18, 161, 80, .05), transparent 70%), linear-gradient(180deg, #f6f8fc, #fff 72%); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(16, 24, 40, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 24, 40, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.announce {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 5px 14px 5px 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-xs);
  color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.announce:hover { color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.announce .pill { background: var(--wa-50); color: var(--wa); font-weight: 600; font-size: .75rem; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.announce .pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: ping 2.4s var(--ease) infinite; }
.announce svg { width: 14px; height: 14px; stroke: var(--faint); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero h1 .accent { background: linear-gradient(92deg, var(--brand) 10%, #4f7cff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 36px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font: 600 .95rem/1.3 var(--font); color: var(--ink); }
.hero-meta span { font-size: .84rem; color: var(--faint); }

.hero-visual { position: relative; padding: 0 0 84px 0; }
.terminal {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: linear-gradient(#fcfdfe, #f8fafc); font-size: .8rem; color: var(--muted); }
.terminal-bar .dots { display: inline-flex; gap: 6px; }
.terminal-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe4ec; }
.terminal-bar .sym { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.terminal-bar .sym b { font-family: var(--font-mono); font-weight: 600; font-size: .78rem; letter-spacing: .02em; }
.terminal-bar .tf { font-family: var(--font-mono); font-size: .74rem; padding: 2px 7px; border-radius: 5px; background: var(--bg-3); color: var(--muted); }
.terminal-bar .ohlc { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--faint); white-space: nowrap; }
.terminal-bar .ohlc em { font-style: normal; color: var(--up); }
.terminal-legend { position: absolute; top: 58px; left: 16px; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted); background: rgba(255, 255, 255, .86); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); }
.terminal-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.terminal-legend b { color: var(--ink); font-weight: 600; }
.terminal svg.term-chart { width: 100%; height: auto; padding: 6px 0 0; }
.terminal svg.term-chart.mob { display: none; }

/* chart internals */
.term-chart .grid line { stroke: #eef1f6; stroke-width: 1; }
.term-chart .grid .sep { stroke: #e3e8ef; }
.term-chart .axis text { font: 500 11px var(--font-mono); fill: #8a94a6; }
.term-chart .axis .edge { stroke: #e3e8ef; }
.term-chart .c line { stroke-width: 1.4; }
.term-chart .c.up line, .term-chart .c.up rect { stroke: var(--up); fill: var(--up); }
.term-chart .c.down line, .term-chart .c.down rect { stroke: var(--down); fill: var(--down); }
.term-chart .vol rect { opacity: .22; }
.term-chart .vol .up { fill: var(--up); }
.term-chart .vol .down { fill: var(--down); }
.term-chart .ma { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round; opacity: .75; }
.term-chart .last line { stroke: var(--up); stroke-dasharray: 2 3; opacity: .8; }
.term-chart .last rect { fill: var(--up); }
.term-chart .last text { font: 600 11px var(--font-mono); fill: #fff; }
.term-chart .lbl rect { fill: #fff; stroke-width: 1; }
.term-chart .lbl text { font: 600 10.5px var(--font); }
.term-chart .lbl.bull path { fill: var(--up); }
.term-chart .lbl.bull rect { stroke: rgba(18, 161, 80, .45); }
.term-chart .lbl.bull text { fill: #0b7a3b; }
.term-chart .lbl.bear path { fill: var(--down); }
.term-chart .lbl.bear rect { stroke: rgba(229, 72, 77, .45); }
.term-chart .lbl.bear text { fill: #b4232a; }
.term-dark .grid line { stroke: rgba(255, 255, 255, .06); }
.term-dark .grid .sep, .term-dark .axis .edge { stroke: rgba(255, 255, 255, .1); }
.term-dark .axis text { fill: #6f7d95; }
.term-dark .ma { stroke: #6f9bff; }
.term-dark .vol rect { opacity: .3; }
.term-dark .lbl rect { fill: #0f1c33; }
.term-dark .lbl.bull text { fill: #4ade80; }
.term-dark .lbl.bear text { fill: #fb7185; }

/* chart animation: plays once the chart scrolls into view */
.motion .term-chart .c, .motion .term-chart .vol rect, .motion .term-chart .lbl, .motion .term-chart .last { opacity: 0; }
.motion .term-chart.play .c { opacity: 1; transform-box: fill-box; transform-origin: 50% 50%; animation: candle-in .55s var(--ease-out) both; animation-delay: calc(var(--i) * 32ms + 150ms); }
.motion .term-chart.play .vol rect { opacity: .22; transform-box: fill-box; transform-origin: 50% 100%; animation: vol-in .6s var(--ease-out) both; animation-delay: calc(var(--i) * 32ms + 220ms); }
.motion .term-dark.play .vol rect { opacity: .3; }
.motion .term-chart .ma { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .term-chart.play .ma { animation: draw 1.6s var(--ease) 1s forwards; }
.motion .term-chart.play .lbl { animation: label-in .5s var(--ease-out) forwards; animation-delay: calc(var(--k) * 260ms + 1.5s); }
.motion .term-chart.play .last { animation: fade .5s var(--ease) 1.3s forwards; }
.motion .term-chart.play .c.live rect { animation: breathe 2.6s ease-in-out 2.4s infinite; }
@keyframes candle-in { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
@keyframes vol-in { from { transform: scaleY(0); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes label-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

.toast {
  position: absolute; z-index: 3; bottom: 64px; right: -32px; width: 284px;
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 40px -18px rgba(16, 24, 40, .35); font-size: .82rem; line-height: 1.45;
}
.motion .toast { opacity: 0; }
.motion .toast.play { animation: toast-in .6s var(--ease-out) 2.4s forwards; }
.toast .ic { width: 34px; height: 34px; border-radius: 10px; background: #fff6e5; color: #b97700; display: grid; place-items: center; flex: none; }
.toast .ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast strong { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); font-size: .84rem; }
.toast strong time { font: 500 .72rem var(--font-mono); color: var(--faint); }
.toast span { color: var(--muted); }

.hero-visual .book3d { position: absolute; left: -40px; bottom: 0; z-index: 4; }
.motion .hero-visual .book3d { animation: float 7s ease-in-out 1s infinite; }
.visual-note { position: absolute; right: 0; bottom: 14px; margin: 0; font-size: .74rem; color: var(--faint); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 760px; }
  .toast { right: 12px; }
  .hero-visual .book3d { left: 8px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 72px; }
  .hero-lead { font-size: 1.08rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .terminal-bar .ohlc, .terminal-bar .dots { display: none; }
  .terminal-legend { top: 54px; left: 10px; font-size: .68rem; }
  .toast { display: none; }
  .hero-visual { padding-bottom: 96px; }
  .hero-visual .book3d { --bw: 100px; --bd: 14px; left: 4px; }
  .visual-note { position: static; margin-top: 10px; padding-left: 124px; text-align: right; }
}

/* 3D book ---------------------------------------------------------------- */
.book3d { --bw: 168px; --bd: 22px; perspective: 1400px; width: var(--bw); }
.book3d .b { position: relative; width: var(--bw); aspect-ratio: 5 / 7; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(4deg); transition: transform .8s var(--ease-out); }
.book3d:hover .b { transform: rotateY(-12deg) rotateX(2deg); }
.book3d .front, .book3d .back { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; }
.book3d .front {
  transform: translateZ(calc(var(--bd) / 2)); overflow: hidden;
  background: radial-gradient(120% 80% at 100% 0%, #2d5bd8 0%, transparent 55%), linear-gradient(160deg, #13295e 0%, #0a1733 100%);
  color: #fff; padding: 12% 11%; display: flex; flex-direction: column;
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, .12), inset 10px 0 14px -10px rgba(0, 0, 0, .5);
}
.book3d .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, transparent 32%); pointer-events: none; }
.book3d .back { transform: translateZ(calc(var(--bd) / -2)); background: #0a1733; box-shadow: 18px 26px 40px -14px rgba(10, 22, 40, .55); }
.book3d .pages {
  position: absolute; top: 2%; bottom: 2%; left: calc(100% - var(--bd) / 2); width: var(--bd);
  transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fbfbf8 0 1px, #e4e4dc 1px 2px); box-shadow: inset 0 0 6px rgba(0, 0, 0, .14);
}
.book3d .spine { position: absolute; top: 0; bottom: 0; left: calc(var(--bd) / -2); width: var(--bd); transform: rotateY(-90deg); background: #0c1b3f; }
.book3d .kicker { position: relative; font: 600 calc(var(--bw) * .045)/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #f5c451; }
.book3d .title { position: relative; margin-top: 10%; font: 700 calc(var(--bw) * .11)/1.05 var(--font-display); letter-spacing: -.02em; }
.book3d .sub { position: relative; margin-top: 6%; font-size: calc(var(--bw) * .052); line-height: 1.35; color: rgba(255, 255, 255, .7); }
.book3d .art { position: relative; margin-top: auto; display: flex; align-items: flex-end; gap: 7%; height: 24%; padding-bottom: 6%; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.book3d .art i { position: relative; flex: 1; border-radius: 1px; background: #22c55e; }
.book3d .art i::before { content: ""; position: absolute; left: 50%; top: -18%; bottom: -12%; width: 1px; background: inherit; }
.book3d .art i.d { background: #f43f5e; }
.book3d .foot { position: relative; margin-top: 6%; display: flex; justify-content: space-between; font: 600 calc(var(--bw) * .04)/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.book3d.lg { --bw: min(236px, 52vw); --bd: 30px; }

/* Trust bar -------------------------------------------------------------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trustbar-item { display: flex; gap: 14px; align-items: center; padding: 26px 24px; border-left: 1px solid var(--line); }
.trustbar-item:first-child { border-left: 0; padding-left: 0; }
.trustbar-item .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); flex: none; }
.trustbar-item svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trustbar-item strong { display: block; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.trustbar-item span { display: block; font-size: .82rem; color: var(--faint); line-height: 1.4; }
@media (max-width: 960px) {
  .trustbar-inner { grid-template-columns: 1fr 1fr; }
  .trustbar-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trustbar-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trustbar-inner { grid-template-columns: 1fr; }
  .trustbar-item { border-left: 0; padding: 18px 0; }
  .trustbar-item + .trustbar-item { border-top: 1px solid var(--line); }
}

/* Method (3 steps) -------------------------------------------------------- */
.method { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.method-item { padding: 40px 36px; border-left: 1px solid var(--line); position: relative; }
.method-item:first-child { border-left: 0; }
.method-item .num { font: 600 .8rem/1 var(--font-mono); color: var(--brand); letter-spacing: .04em; margin-bottom: 28px; display: block; }
.method-item .glyph { height: 64px; margin-bottom: 24px; display: flex; align-items: flex-end; gap: 6px; }
.method-item h3 { font-size: 1.3rem; }
.method-item p { color: var(--muted); margin: 0; }
.glyph-learn { align-items: center !important; gap: 12px !important; }
.glyph-learn span { width: 46px; height: 60px; border-radius: 3px 6px 6px 3px; background: linear-gradient(160deg, #1b3a86, #0a1733); box-shadow: 6px 8px 16px -8px rgba(10, 22, 40, .5); }
.glyph-learn em { font-style: normal; display: grid; gap: 6px; }
.glyph-learn em b { display: block; height: 6px; border-radius: 3px; background: var(--line); }
.glyph-learn em b:nth-child(1) { width: 90px; background: var(--line-2); }
.glyph-learn em b:nth-child(2) { width: 70px; }
.glyph-learn em b:nth-child(3) { width: 80px; }
.glyph-spot i { width: 12px; border-radius: 2px; }
.glyph-spot i.u { background: var(--up); }
.glyph-spot i.d { background: var(--down); }
.glyph-spot i.tag { width: auto; font: 600 .68rem/1 var(--font); color: #0b7a3b; border: 1px solid rgba(18, 161, 80, .45); padding: 4px 6px; border-radius: 4px; align-self: flex-start; font-style: normal; background: #fff; }
.glyph-review { flex-direction: column; align-items: flex-start !important; justify-content: flex-end; gap: 8px !important; }
.glyph-review b { display: flex; align-items: center; gap: 8px; font: 500 .78rem/1 var(--font); color: var(--muted); }
.glyph-review b::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: #fff; border: 1px solid var(--line-2); }
.glyph-review b.ok::before { background: var(--up) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--up); }
@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; }
  .method-item { border-left: 0; border-top: 1px solid var(--line); padding: 32px 28px; }
  .method-item:first-child { border-top: 0; }
}

/* Pattern explorer ------------------------------------------------------- */
.explorer { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.explorer-tabs { display: flex; flex-direction: column; gap: 6px; }
.explorer-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer;
  font: 500 1rem/1.3 var(--font); color: var(--muted); transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.explorer-tab small { font: 600 .7rem/1 var(--font); padding: 4px 8px; border-radius: 999px; }
.explorer-tab small.bull { color: #0b7a3b; background: var(--wa-50); }
.explorer-tab small.bear { color: #b4232a; background: #fff0f0; }
.explorer-tab small.neutral { color: var(--muted); background: var(--bg-3); }
.explorer-tab:hover { color: var(--ink); background: #fff; }
.explorer-tab[aria-selected="true"] { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); font-weight: 600; }
.explorer-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.explorer-panel[hidden] { display: none; }
.explorer-figure { background: var(--bg-2); border-right: 1px solid var(--line); display: grid; place-items: center; padding: 32px 28px 44px; position: relative; }
.explorer-figure .caption { position: absolute; left: 20px; bottom: 14px; font-size: .74rem; color: var(--faint); }
.pattern-svg { width: 100%; max-width: 380px; height: auto; }
.pattern-svg line { stroke-width: 2; }
.pattern-svg .up line, .pattern-svg .up rect { stroke: var(--up); fill: var(--up); }
.pattern-svg .down line, .pattern-svg .down rect { stroke: var(--down); fill: var(--down); }
.pattern-svg .dim { opacity: .28; }
.pattern-svg .focus { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 5; }
.motion .explorer-panel:not([hidden]) .pattern-svg g { animation: candle-in .5s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); transform-box: fill-box; transform-origin: 50% 50%; }
.explorer-body { padding: 40px; }
.explorer-body h3 { font-size: 1.6rem; margin-bottom: .35em; }
.explorer-body .lede { color: var(--muted); }
.explorer-body dl { margin: 24px 0 0; display: grid; gap: 18px; }
.explorer-body dt { font: 600 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.explorer-body dd { margin: 0; color: var(--text); font-size: .96rem; }
.explorer-body .chapter { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
@media (max-width: 1000px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px 6px; }
  .explorer-tabs::-webkit-scrollbar { display: none; }
  .explorer-tab { width: auto; white-space: nowrap; flex: none; padding: 12px 16px; }
  .explorer-tab small { display: none; }
}
@media (max-width: 720px) {
  .explorer-panel { grid-template-columns: 1fr; }
  .explorer-figure { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 20px 40px; }
  .explorer-body { padding: 28px 24px; }
}

/* Product showcase -------------------------------------------------------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.showcase.reverse .showcase-visual { order: 2; }
.showcase-visual { position: relative; }
.stage { position: relative; border-radius: var(--r-xl); background: radial-gradient(80% 70% at 50% 40%, #fff 0%, var(--bg-3) 100%); border: 1px solid var(--line); min-height: 520px; padding: 72px 24px; display: grid; place-items: center; overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 24, 40, .08) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); }
.stage .chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 500; color: var(--ink); }
.stage .chip svg { width: 15px; height: 15px; stroke: var(--up); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stage .chip.c1 { top: 28px; left: 28px; }
.stage .chip.c2 { bottom: 28px; right: 28px; }
.showcase-copy .price-tag { display: inline-flex; align-items: baseline; gap: 8px; margin: 4px 0 20px; }
.showcase-copy .price-tag b { font: 700 2rem/1 var(--font-display); color: var(--ink); letter-spacing: -.03em; }
.showcase-copy .price-tag span { color: var(--faint); font-size: .9rem; }
.showcase-copy > p { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--wa-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128c4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; gap: 48px; }
  .showcase.reverse .showcase-visual { order: 0; }
  .stage { min-height: 380px; }
}

/* Dark band -------------------------------------------------------------- */
.dark { background: var(--navy); color: #c9d3e3; position: relative; overflow: hidden; isolation: isolate; }
.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 10%, rgba(59, 108, 255, .22), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(18, 161, 80, .12), transparent 70%); }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #7ea2ff; }
.dark .section-head p, .dark .showcase-copy > p { color: #9fb0c8; }
.dark .checks li { color: #dbe3ef; }
.dark .checks li::before { background-color: rgba(18, 161, 80, .16); }
.dark .price-tag b { color: #fff; }
.dark .price-tag span { color: #8796ae; }
.terminal.dark-term { background: #0d1a30; border-color: var(--navy-line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.terminal.dark-term .terminal-bar { background: #0f1e37; border-color: var(--navy-line); color: #8796ae; }
.terminal.dark-term .terminal-bar .sym { color: #fff; }
.terminal.dark-term .terminal-bar .tf { background: rgba(255, 255, 255, .06); color: #a9b6ca; }
.terminal.dark-term .terminal-bar .dots i { background: rgba(255, 255, 255, .12); }
.terminal.dark-term .terminal-legend { background: rgba(13, 26, 48, .9); border-color: var(--navy-line); color: #8796ae; }
.terminal.dark-term .terminal-legend b { color: #fff; }

.settings {
  position: absolute; z-index: 3; right: -28px; bottom: -112px; width: 250px;
  background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); overflow: hidden; color: var(--text); font-size: .82rem;
}
.settings header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.settings header span { font-weight: 500; color: var(--faint); font-size: .74rem; }
.settings ul { list-style: none; margin: 0; padding: 6px 0; }
.settings li { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.settings li em { font-style: normal; color: var(--faint); font-family: var(--font-mono); font-size: .74rem; }
.switch { width: 30px; height: 18px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(12px); }
@media (max-width: 960px) { .settings { right: 8px; bottom: -96px; width: 240px; } .dark .showcase.reverse { padding-bottom: 72px; } }
@media (max-width: 560px) { .settings { position: relative; right: auto; bottom: auto; width: auto; margin: 16px 0 0; } }

/* Free trial band ------------------------------------------------------- */
.trial { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px; border-radius: 28px; background: linear-gradient(135deg, #f3fbf6 0%, #f4f7ff 100%); border: 1px solid #d7efe0; position: relative; overflow: hidden; isolation: isolate; }
.trial::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(18, 161, 80, .14), transparent); }
.trial h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.trial > div > p { color: var(--muted); font-size: 1.06rem; }
.trial .hero-cta { margin-bottom: 0; }
.chat { position: relative; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.chat header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat header .av { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.chat header .av svg { width: 20px; height: 20px; }
.chat header strong { display: block; font-size: .9rem; color: var(--ink); line-height: 1.2; }
.chat header span { font-size: .74rem; color: var(--wa); }
.chat .msgs { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #f6f5f1; min-height: 260px; }
.chat .m { max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.45; box-shadow: var(--shadow-xs); color: var(--text); }
.chat .m.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.chat .m.out { background: #d9f7e3; align-self: flex-end; border-top-right-radius: 4px; }
.chat .m.file { display: flex; align-items: center; gap: 10px; }
.chat .m.file i { width: 30px; height: 36px; border-radius: 4px; background: #e5484d; color: #fff; font: 700 .58rem/36px var(--font); text-align: center; font-style: normal; flex: none; }
.chat .m.file b { display: block; font-size: .82rem; color: var(--ink); }
.chat .m.file small { color: var(--faint); font-size: .72rem; }
.motion .chat .m { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.motion .chat.in .m { opacity: 1; transform: none; }
.motion .chat.in .m:nth-child(2) { transition-delay: .6s; }
.motion .chat.in .m:nth-child(3) { transition-delay: 1.2s; }
.motion .chat.in .m:nth-child(4) { transition-delay: 1.8s; }
@media (max-width: 900px) { .trial { grid-template-columns: 1fr; padding: 36px 24px; gap: 36px; border-radius: 22px; } }

/* Pricing ---------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pricing.pricing-single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { background: var(--navy); border-color: var(--navy); color: #c9d3e3; box-shadow: 0 30px 60px -28px rgba(10, 22, 40, .6); }
.plan.featured h3, .plan.featured .amount { color: #fff; }
.plan .badge { position: absolute; top: 22px; right: 22px; font: 600 .72rem/1 var(--font); padding: 6px 10px; border-radius: 999px; background: rgba(126, 162, 255, .16); color: #a9c1ff; letter-spacing: .02em; }
.plan h3 { font-size: 1.1rem; margin-bottom: 6px; }
.plan .desc { font-size: .92rem; color: var(--muted); min-height: 3em; margin-bottom: 20px; }
.plan.featured .desc { color: #9fb0c8; }
.plan .amount { font: 700 3rem/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); display: flex; align-items: flex-start; gap: 2px; }
.plan .amount sup { font-size: 1.3rem; margin-top: 6px; font-weight: 600; }
.plan .per { display: flex; gap: 10px; align-items: center; margin: 10px 0 28px; font-size: .86rem; color: var(--faint); }
.plan .per s { color: #8796ae; }
.plan .per .save { color: #4ade80; font-weight: 600; }
.plan ul { list-style: none; padding: 24px 0 0; margin: 0 0 32px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .94rem; }
.plan.featured ul { border-color: var(--navy-line); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: var(--up); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan.featured li svg { stroke: #4ade80; }
.plan .btn { margin-top: auto; }
.plan .try { margin: 14px 0 0; text-align: center; font-size: .86rem; }
.plan .try a { color: var(--muted); }
.plan.featured .try a { color: #9fb0c8; }
.pay-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; margin-top: 40px; color: var(--faint); font-size: .86rem; }
.pay-note span { display: inline-flex; align-items: center; gap: 8px; }
.pay-note svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .plan .desc { min-height: 0; } }

/* Timeline ---------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; top: 20px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--line-2) 60%, transparent); }
.tl { position: relative; padding-top: 64px; }
.tl::before { counter-increment: tl; content: counter(tl, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); font: 600 .78rem/1 var(--font-mono); color: var(--brand); box-shadow: 0 0 0 6px var(--bg); }
.section-alt .tl::before { box-shadow: 0 0 0 6px var(--bg-2); }
.tl h3 { font-size: 1.15rem; }
.tl p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 20px; bottom: 20px; left: 20px; right: auto; width: 1px; height: auto; background: var(--line-2); }
  .tl { padding: 0 0 32px 64px; }
}

/* Principles -------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.principle { background: #fff; padding: 32px 28px; }
.principle svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.principle h3 { font-size: 1.05rem; margin-bottom: .4em; }
.principle p { color: var(--muted); font-size: .92rem; margin: 0; }
.principles.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles, .principles.two { grid-template-columns: 1fr; } }

/* FAQ --------------------------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside p { color: var(--muted); }
.help-card { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.help-card strong { display: block; color: var(--ink); margin-bottom: 4px; }
.help-card p { font-size: .9rem; margin-bottom: 14px; }
.help-card .row { display: flex; flex-wrap: wrap; gap: 8px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 600 1.04rem/1.4 var(--font); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: background .25s, border-color .25s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; transition: transform .35s var(--ease), background .25s; }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: #fff; }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .plus { border-color: var(--ink); }
.faq .answer { color: var(--muted); padding: 0 52px 24px 0; overflow: hidden; }
.faq .answer p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } .faq-aside { position: static; } .faq .answer { padding-right: 0; } }

/* Final CTA ---------------------------------------------------------------- */
.final { text-align: center; padding-top: 120px; padding-bottom: 120px; }
.final h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 760px; margin: 0 auto .4em; }
.final p { max-width: 580px; margin: 0 auto 36px; font-size: 1.12rem; color: #9fb0c8; }
.final .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final .fine { margin: 24px auto 0; font-size: .84rem; color: #6f7d95; }

/* Product page hero -------------------------------------------------------- */
.p-hero { padding: 48px 0 96px; position: relative; overflow: hidden; isolation: isolate; }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.p-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.p-hero .hero-lead { margin-bottom: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--faint); margin-bottom: 28px; }
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.buy { margin-top: 32px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.buy-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.buy-top .amount { font: 700 2.4rem/1 var(--font-display); color: var(--ink); letter-spacing: -.04em; }
.buy-top .terms { font-size: .86rem; color: var(--faint); }
.buy .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy .fine { margin: 16px 0 0; font-size: .84rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.buy .fine span { display: inline-flex; align-items: center; gap: 6px; }
.buy .fine svg { width: 14px; height: 14px; stroke: var(--up); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.p-visual { position: relative; }
.p-visual .stage { min-height: 520px; }
@media (max-width: 960px) { .p-hero-grid { grid-template-columns: 1fr; gap: 48px; } .p-visual .stage { min-height: 420px; } }
@media (max-width: 480px) { .buy .row { grid-template-columns: 1fr; } }

/* Feature grid --------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.feature:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); margin-bottom: 20px; }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.06rem; margin-bottom: .4em; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Chapters (playbook) --------------------------------------------------------- */
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.chapter-row { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.chapter-row .n { grid-row: span 2; font: 600 .86rem/1.6 var(--font-mono); color: var(--brand); }
.chapter-row strong { color: var(--ink); font-size: 1.04rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chapter-row span { color: var(--muted); font-size: .93rem; }
.chapter-row .free { font: 600 .7rem/1 var(--font); color: var(--wa); background: var(--wa-50); padding: 4px 8px; border-radius: 999px; letter-spacing: .02em; }
@media (max-width: 760px) { .chapters { grid-template-columns: 1fr; } }

/* Generic cards ---------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-xs); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.notice { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #f1dfb3; background: #fffbf0; border-radius: var(--r); padding: 16px 18px; color: #5f4b1c; font-size: .92rem; line-height: 1.6; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; stroke: #b97700; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice strong { color: #3f300d; }
.notice p { margin: 0; color: inherit !important; }
.notice a { color: #7a5600; }

/* Simple page head & legal ---------------------------------------------------- */
.page-head { position: relative; padding: 72px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin-bottom: .3em; }
.page-head p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 680px; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: .86rem; color: var(--faint); }
.page-head .meta span { display: inline-flex; gap: 6px; align-items: center; }
.page-head .meta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 112px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow: auto; scrollbar-width: thin; }
.legal-nav .nav-title { font: 600 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.toc-list { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc-list a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1.5px solid transparent; color: var(--muted); text-decoration: none; font-size: .87rem; line-height: 1.4; transition: color .2s, border-color .2s; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 500; }
.legal-docs { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-docs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .87rem; }
.legal-docs a { color: var(--muted); text-decoration: none; }
.legal-docs a:hover, .legal-docs a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin: 2.4em 0 .7em; letter-spacing: -.02em; }
.prose h3 { font-size: 1.08rem; margin: 1.8em 0 .5em; }
.prose p, .prose li { color: #344054; font-size: 1rem; line-height: 1.75; }
.prose li { margin-bottom: .45em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose .summary { padding: 24px 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 8px; }
.prose .summary h2 { margin: 0 0 .7em; font-size: 1.05rem; }
.prose .summary ul { margin: 0; }
.prose .caps { font-size: .88rem; letter-spacing: .01em; }
.prose address { font-style: normal; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); line-height: 1.8; color: #344054; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.8em; border: 1px solid var(--line); border-radius: var(--r); }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: #344054; line-height: 1.6; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--bg-2); font-weight: 600; color: var(--ink); }
@media (max-width: 960px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; } .legal-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; } }

/* Contact ------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-xs); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); margin-bottom: 14px; }
.contact-card .ic svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card .ic.wa { background: var(--wa-50); }
.contact-card .ic.wa svg { stroke: none; fill: var(--wa); }
.contact-card .label { font: 600 .72rem/1 var(--font); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.contact-card .value { font: 600 1.15rem/1.4 var(--font-display); color: var(--ink); word-break: break-word; }
.contact-card .value a { color: var(--ink); text-decoration: none; }
.contact-card p { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }
.contact-card .btn { align-self: flex-start; margin-top: 16px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Thank you ---------------------------------------------------------------- */
.thanks { text-align: center; padding: 96px 0 112px; }
.thanks .check { width: 76px; height: 76px; margin: 0 auto 28px; border-radius: 50%; background: var(--wa-50); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(18, 161, 80, .06); }
.thanks .check svg { width: 36px; height: 36px; stroke: var(--up); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-check .7s var(--ease) .2s forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.thanks .lead { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.next-steps .card { display: flex; flex-direction: column; }
.next-steps .card .tag { font: 600 .74rem/1 var(--font-mono); color: var(--brand); margin-bottom: 16px; }
.next-steps .card p { font-size: .94rem; }
.next-steps .card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .next-steps { grid-template-columns: 1fr; } }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #8796ae; padding: 88px 0 40px; font-size: .92rem; border-top: 1px solid var(--navy-line); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--navy-line); }
.site-footer .logo { color: #fff; }
.footer-tagline { margin: 18px 0 24px; max-width: 320px; color: #8796ae; }
.footer-h { font: 600 .72rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer ul a, .site-footer ul .link-btn { color: #8796ae; text-decoration: none; font-size: .92rem; }
.site-footer ul a:hover, .site-footer ul .link-btn:hover { color: #fff; }
.footer-contact { font-style: normal; display: grid; gap: 6px; color: #8796ae; line-height: 1.6; }
.footer-contact a { color: #c9d3e3; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-legal { padding-top: 40px; display: grid; gap: 14px; }
.footer-legal p { margin: 0; font-size: .8rem; line-height: 1.7; color: #6f7d95; }
.footer-legal strong { color: #9fb0c8; font-weight: 600; }
.footer-legal a { color: #9fb0c8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--navy-line); font-size: .82rem; color: #6f7d95; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a, .footer-bottom .link-btn { color: #8796ae; text-decoration: none; font-size: .82rem; }
.footer-bottom a:hover, .footer-bottom .link-btn:hover { color: #fff; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Floating WhatsApp --------------------------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(18, 140, 74, .65), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .35s var(--ease-out), opacity .35s, background .2s, bottom .35s var(--ease-out);
}
.wa-float:hover { color: #fff; background: var(--wa-600); transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; }
.js .wa-float:not(.show) { opacity: 0; transform: translateY(16px); pointer-events: none; }
body.consent-open .wa-float { bottom: 20px; right: 20px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { width: 54px; height: 54px; padding: 0; justify-content: center; right: 16px; bottom: 16px; } body.consent-open .wa-float { opacity: 0; pointer-events: none; } }

/* Consent ------------------------------------------------------------------ */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 110; width: min(380px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-lg);
  font-size: .84rem; color: var(--muted);
}
.consent[hidden] { display: none; }
.consent strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.consent p { margin: 0 0 16px; line-height: 1.55; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.js .consent:not([hidden]) { animation: toast-in .5s var(--ease-out) .8s both; }
@media (max-width: 600px) { .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; } }

/* Reduced motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.prose code { font-family: var(--font-mono); font-size: .84em; background: var(--bg-3); padding: 2px 6px; border-radius: 5px; color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) {
  /* Only tables with three or more columns need sideways scrolling */
  .table-wrap table:has(tr > :nth-child(3)) { min-width: 560px; }
  .table-wrap th, .table-wrap td { padding: 12px 14px; }
  /* Edge shadows show that a wide table scrolls sideways */
  .table-wrap {
    background:
      linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left / 32px 100% no-repeat local,
      linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(16, 24, 40, .16), transparent) left / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(16, 24, 40, .16), transparent) right / 12px 100% no-repeat scroll;
  }
  .final .row .btn, .showcase-actions .btn { flex: 1 1 100%; }
  .final { padding-top: 72px; padding-bottom: 72px; }
}

/* ==========================================================================
   Phone refinements (≤ 760px unless noted)
   ========================================================================== */
/* Touch screens: no "stuck" hover lifts after a tap; a light press feedback instead */
@media (hover: none) {
  .btn:hover, .plan:hover, .feature:hover, .wa-float:hover { transform: none; }
  .feature:hover { box-shadow: none; border-color: var(--line); }
  .btn:active { transform: scale(.98); }
}

/* Floating elements clear the iPhone home indicator */
.wa-float { bottom: calc(20px + env(safe-area-inset-bottom)); }
.consent { bottom: calc(20px + env(safe-area-inset-bottom)); }

/* Sticky buy bar on product pages: a floating pill on desktop, a full-width
   bar on phones (see the 760px media query) */
.buybar {
  display: flex; align-items: center; gap: 24px; position: fixed; z-index: 95;
  left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 40px));
  padding: 10px 10px 10px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(16, 24, 40, .35);
  transition: transform .4s var(--ease-out);
}
.buybar.on { transform: translate(-50%, 0); }
.buybar-info { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.buybar-info strong { font: 700 1.2rem/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.buybar-info span { font-size: .88rem; color: var(--muted); }
.buybar .btn { height: 42px; padding: 0 22px; }
body.consent-open .buybar, body.lb-open .buybar { transform: translate(-50%, calc(100% + 40px)); }

/* Legal contents list: a plain sidebar on desktop, collapsible on phones */
.toc summary { list-style: none; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc-count { display: none; }

@media (max-width: 1000px) {
  .pricing .plan.featured { order: -1; }
  /* Fade whichever edge still has more tabs to scroll to */
  .explorer-tabs.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .explorer-tabs.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
  .explorer-tabs.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
}

@media (max-width: 960px) {
  .legal { gap: 24px; padding-top: 28px; padding-bottom: 72px; }
  .legal-nav { padding: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow-xs); }
  .legal-docs { display: none; }
  .legal-nav .toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 20px; cursor: pointer; color: var(--ink); font-size: .78rem; }
  .toc-count { display: inline-flex; align-items: center; gap: 8px; font: 500 .8rem/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--faint); }
  .toc-count::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
  .toc[open] .toc-count::after { transform: rotate(-135deg); margin-top: 3px; }
  .toc[open] summary { border-bottom: 1px solid var(--line); }
  .toc-list { margin: 12px 20px 16px; }
  .toc-list a { padding: 8px 0 8px 16px; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 1.04rem; }

  /* Product pages */
  .p-hero { padding: 24px 0 64px; }
  .breadcrumb { margin-bottom: 20px; }
  .p-visual .stage { min-height: 360px; padding: 64px 16px; }
  .buy { padding: 20px; }

  .buybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 32px -20px rgba(16, 24, 40, .35);
    transform: translateY(110%); transition: transform .4s var(--ease-out);
    border-radius: 0; border-width: 1px 0 0;
  }
  .buybar.on { transform: none; }
  body.consent-open .buybar, body.lb-open .buybar { transform: translateY(110%); }
  .buybar-info { min-width: 0; display: block; }
  .buybar-info strong { display: block; font: 700 1.3rem/1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
  .buybar-info span { display: block; font-size: .78rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { height: 46px; padding: 0 28px; flex: none; }
  body.buybar-on .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .page-product .site-footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }

  /* Compact cards: icon beside the text instead of above it */
  .feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 16px; padding: 20px; }
  .feature .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; margin: 0; }
  .feature .ic svg { width: 20px; height: 20px; }
  .features { gap: 12px; }
  .contact-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; padding: 20px; }
  .contact-card > * { grid-column: 2; }
  .contact-card .ic { grid-column: 1; grid-row: 1 / span 3; width: 40px; height: 40px; margin: 0; }
  .contact-card .btn { margin-top: 10px; justify-self: start; }
  .contact-grid { gap: 12px; }

  .chapter-row { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; }

  /* Legal & simple pages */
  .page-head { padding: 40px 0 32px; }
  .page-head p { font-size: 1.04rem; }
  .prose h2 { font-size: 1.3rem; margin-top: 2em; }
  .prose .summary { padding: 20px; }
  .card { padding: 22px 20px; }
  .thanks { padding: 56px 0 72px; }
  .next-steps { margin-top: 40px; gap: 12px; }

  /* Footer: two link columns and larger tap targets */
  .site-footer { padding-top: 64px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-bottom: 40px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .site-footer ul { gap: 2px; }
  .site-footer ul a, .site-footer ul .link-btn { display: inline-block; padding: 7px 0; }
  .footer-h { margin-bottom: 10px; }
  .footer-bottom nav { gap: 4px 20px; }
  .footer-bottom a, .footer-bottom .link-btn { display: inline-block; padding: 8px 0; }
  .footer-contact a { display: inline-block; padding: 4px 0; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .consent { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .hero { padding: 28px 0 56px; }
  .announce { margin-bottom: 22px; font-size: .82rem; }
  .hero-meta { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; padding-top: 22px; }
  .hero-meta strong { font-size: .86rem; }
  .hero-meta span { font-size: .76rem; line-height: 1.35; }
  .hero-cta { margin-bottom: 32px; }

  /* Charts: swap in the large-text version and lift the legend out of the plot */
  .terminal svg.term-chart.desk { display: none; }
  .terminal svg.term-chart.mob { display: block; }
  .term-chart.mob .axis text { font-size: 19px; }
  .term-chart.mob .last text { font-size: 19px; }
  .term-chart.mob .lbl text { font-size: 18.4px; }
  .term-chart.mob .lbl rect { stroke-width: 1.6; }
  .term-chart.mob .c line { stroke-width: 2.4; }
  .term-chart.mob .ma { stroke-width: 2.8; }
  .terminal-legend { position: static; display: inline-flex; margin: 12px 12px 0; font-size: .72rem; }
  .terminal-bar { height: 42px; }
  /* The book already appears in the Playbook section just below; on phones it
     only crowds the chart, so the hero shows the chart alone */
  .hero-visual { padding-bottom: 0; }
  .hero-visual .book3d { display: none; }
  .visual-note { padding-left: 0; }

  .method-item { padding: 28px 22px; }
  .method-item .num { margin-bottom: 20px; }
  .method-item .glyph { margin-bottom: 18px; }
  .explorer-body { padding: 24px 20px; }
  .explorer-body h3 { font-size: 1.4rem; }
  .trial { padding: 32px 20px; }
  .plan { padding: 28px 24px; }
  .pay-note { flex-direction: column; gap: 10px; margin-top: 28px; }
  .principle { padding: 24px 22px; }
  .principle svg { margin-bottom: 14px; }
  .faq summary { padding: 20px 0; font-size: 1rem; }
  .final h2 { font-size: 1.9rem; }
  .final p { font-size: 1.04rem; margin-bottom: 28px; }
}

@media (max-width: 560px) {
  .dark .showcase.reverse { padding-bottom: 0; }
}

@media (max-width: 480px) {
  .hide-sm { display: none; }
}

/* Thank-you page: delivery details form ----------------------------------- */
.order-card { max-width: 560px; margin: 48px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 32px; }
.of-head { margin-bottom: 24px; }
.of-head .tag, .next-steps .card .tag { font: 600 .74rem/1 var(--font-mono); color: var(--brand); letter-spacing: .02em; }
.of-head h2 { font-size: 1.45rem; margin: 12px 0 6px; }
.of-head p { color: var(--muted); margin: 0; font-size: .95rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--faint); font-size: .82rem; margin-left: 4px; }
.field input, .field select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  font: 16px/1.2 var(--font); color: var(--text); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 78, 216, .12); }
.field input[aria-invalid="true"] { border-color: var(--down); }
.field .help { margin: 6px 0 0; font-size: .84rem; color: var(--faint); }
.err { margin: 6px 0 0; font-size: .86rem; color: #b4232a; }
.err:empty { display: none; }
.form-err { margin: 0 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.of-fine { margin: 14px 0 0; font-size: .84rem; color: var(--faint); text-align: center; }
.order-form button[disabled] { opacity: .7; cursor: progress; }
.order-done { text-align: center; padding: 12px 0; outline: none; }
.order-done .done-ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--wa-50); display: grid; place-items: center; }
.order-done .done-ic svg { width: 28px; height: 28px; stroke: var(--up); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.order-done h2 { font-size: 1.4rem; margin-bottom: 8px; }
.order-done p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .order-card { padding: 24px 20px; margin-top: 36px; } }

/* Candlestick pattern guide pages ---------------------------------------- */
.explorer-more { text-align: center; margin: 40px 0 0; }
.pg-hero { padding: 40px 0 56px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.pg-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
.pg-hero .hero-lead { margin-bottom: 20px; }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; font-size: .9rem; color: var(--faint); }
.pg-tag { display: inline-block; font: 600 .74rem/1 var(--font); padding: 6px 10px; border-radius: 999px; color: var(--muted); background: var(--bg-3); white-space: nowrap; }
.pg-tag.bull { color: #0b7a3b; background: var(--wa-50); }
.pg-tag.bear { color: #b4232a; background: #fff0f0; }
.pg-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 24px 20px; box-shadow: var(--shadow-sm); text-align: center; }
.pg-figure .pg-svg { max-width: 420px; }
.pg-figure figcaption { margin-top: 12px; font-size: .8rem; color: var(--faint); }
.pg-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; }
.pg-jump a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; }
.pg-jump a:hover { border-color: #b8c3d3; background: var(--bg-2); }

.pg-body { padding: 64px 0 96px; }
.pg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.pg-layout .prose h2:first-child { margin-top: 0; }
.pg-note { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem !important; line-height: 1.6 !important; color: var(--faint) !important; }
.pg-side { position: sticky; top: calc(var(--header-h) + 24px); }
.pg-side .nav-title { font: 600 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.pg-related { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 4px; }
.pg-related a { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--r); color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; }
.pg-related a:hover { background: var(--bg-2); }
.pg-related small { font-size: .78rem; font-weight: 400; color: var(--faint); }
.pg-related small.bull { color: #0b7a3b; }
.pg-related small.bear { color: #b4232a; }
.pg-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; padding: 0 12px; }
.pg-all svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pg-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pg-variant { margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: #fff; }
.pg-variant .pg-svg-sm { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto; }
.pg-variant figcaption { display: grid; gap: 4px; margin-top: 8px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.pg-variant strong { color: var(--ink); }

.pg-book { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; margin: 64px 0 0; padding: 40px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-xl); }
.pg-book h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .4em; }
.pg-book p { color: var(--muted); margin: 0 0 12px; }
.pg-book-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; color: var(--text); }
.pg-book-list li { display: flex; gap: 10px; align-items: flex-start; }
.pg-book-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--up); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pg-book .row { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-book .book3d { margin-right: 24px; }

.pg-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.pg-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); font-weight: 600; text-decoration: none; background: #fff; }
.pg-pager a:hover { border-color: var(--line-2); background: var(--bg-2); }
.pg-pager small { font-weight: 400; font-size: .8rem; color: var(--faint); }
.pg-pager .next { text-align: right; }

.pg-howto { max-width: 760px; padding: 20px 24px; margin-bottom: 56px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.pg-howto h2 { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: .4em; }
.pg-howto p { margin: 0; color: var(--muted); font-size: .96rem; }
.pg-group { margin-bottom: 72px; }
.pg-group .section-head { margin-bottom: 28px; }
.pg-group .section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pg-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pg-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); color: var(--text); }
.pg-card-fig { display: grid; place-items: center; padding: 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.pg-card-fig .pattern-svg { max-width: 240px; }
.pg-card-body { display: grid; gap: 8px; justify-items: start; padding: 16px 20px 20px; }
.pg-card-body strong { font-size: 1.05rem; color: var(--ink); }
.pg-card-sum { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.pg-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px 40px; margin: 0; }
.pg-terms dt { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pg-terms dd { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }

@media (max-width: 900px) {
  .pg-hero-grid, .pg-layout { grid-template-columns: 1fr; gap: 32px; }
  .pg-side { position: static; }
  .pg-book { grid-template-columns: 1fr; padding: 28px 24px; }
  .pg-book .book3d { display: none; }
}
@media (max-width: 560px) {
  .pg-hero { padding: 28px 0 40px; }
  .pg-body { padding: 40px 0 72px; }
  .pg-pager { grid-template-columns: 1fr; }
  .pg-pager .next { text-align: left; }
  .pg-book .row .btn { width: 100%; }
  .pg-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pg-card-fig { padding: 8px; }
  .pg-card-body { padding: 12px 12px 16px; gap: 6px; }
  .pg-card-body strong { font-size: .96rem; }
  .pg-card-sum { font-size: .84rem; }
  .pg-card .pg-tag { white-space: normal; line-height: 1.25; }
}

/* Checkout paused page (reuses the thank-you page layout) */
.thanks .check.wait { background: var(--brand-50, #eef3ff); box-shadow: 0 0 0 10px rgba(29, 78, 216, .06); }
.thanks .check.wait svg { stroke: var(--brand); stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.thanks .reopen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; max-width: 560px; margin: 28px auto 0; padding: 14px 18px; border: 1px solid rgba(18, 161, 80, .3); background: var(--wa-50); border-radius: var(--r-lg, 14px); color: var(--ink); font-weight: 500; }
.thanks .reopen[hidden] { display: none; }
.next-steps .card .btn svg { width: 18px; height: 18px; }

/* Product page: "Look inside" gallery */
.inside-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.inside-grid li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.inside-thumb { display: block; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: var(--shadow-xs, 0 1px 2px rgba(16, 24, 40, .06)); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.inside-thumb img { display: block; width: 100%; height: auto; }
.inside-thumb:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(16, 24, 40, .35); }
.inside-thumb:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.inside-cap { font-size: .84rem; line-height: 1.35; color: var(--muted); }
.inside-cap b { font: 600 .74rem/1 var(--font-mono); color: var(--faint); margin-right: 4px; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px 72px; border: 0; background: rgba(10, 22, 40, .92); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 22, 40, .6); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox img { display: block; width: auto; height: auto; max-width: min(100%, 820px); max-height: calc(100vh - 96px); border-radius: 6px; background: #fff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.lightbox figcaption { font-size: .9rem; color: rgba(255, 255, 255, .8); text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background-color .2s var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

@media (max-width: 1000px) {
  .inside-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* Phones: a sideways-scrolling strip of pages */
  .inside-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 4px 24px 12px; scroll-padding: 0 24px; scrollbar-width: none; }
  .inside-grid::-webkit-scrollbar { display: none; }
  .inside-grid li { flex: 0 0 58%; scroll-snap-align: center; }
  .lightbox { padding: 64px 12px 72px; }
  .lightbox img { max-height: calc(100vh - 160px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* Checkout open / paused copy (html.ck-paused is set from Admin → 设置 via /api/site-config) */
.if-paused { display: none; }
html.ck-paused .if-paused { display: inline; }
html.ck-paused .if-open { display: none; }
/* the " on WhatsApp" suffix joins the button text (one flex item, so no extra gap) */
html.ck-paused .btn .if-paused.via { display: contents; }
html.ck-paused .btn .if-paused:not(.via) { display: inline-flex; align-items: center; gap: .55em; }
.btn .if-paused svg { width: 18px; height: 18px; fill: currentColor; }

/* Checkout-paused page: WhatsApp first */
.wa-card .tag-wa { color: var(--wa-600, #128c4a); }
.wa-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.wa-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); line-height: 1.5; }
.wa-steps svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--up); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wa-card .btn-wa svg { width: 20px; height: 20px; }
.no-wa { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.no-wa summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: .95rem; list-style: none; text-align: center; }
.no-wa summary::-webkit-details-marker { display: none; }
.no-wa summary::after { content: " +"; color: var(--brand); }
.no-wa[open] summary::after { content: " −"; }
.no-wa[open] summary { margin-bottom: 18px; }

/* Blocks shown only while checkout is open / paused (keeps natural display) */
html.ck-paused .only-open { display: none !important; }
html:not(.ck-paused) .only-paused { display: none !important; }
.cta-note { flex: 1 1 100%; margin: 2px 0 0; font-size: .88rem; color: var(--faint); }
.cta-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.btn-wa.btn-lg svg:not(.arrow) { width: 20px; height: 20px; }
.buybar .btn-wa { gap: 8px; }
@media (max-width: 600px) { html.ck-paused body.buybar-on .wa-float { opacity: 0; pointer-events: none; } }

/* Home: page previews directly under the hero */
.section-tight { padding-top: 56px; }
.showcase-actions .btn-wa svg { fill: currentColor; }
.next-steps.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .next-steps.two { grid-template-columns: 1fr; } }

/* ==========================================================================
   Theme v2 (2026-11-11): warm monochrome, editorial type, black pill buttons.
   This layer re-maps the tokens above and overrides components; it sits last
   so it wins without !important.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #faf9f7;
  --bg-3: #f5f5f4;
  --ink: #1c1917;
  --text: #292524;
  --muted: #57534e;
  --faint: #78716c;
  --dim: #a8a29e;
  --line: #e7e5e4;
  --line-2: #d6d3d1;
  --brand: #1c1917;
  --brand-600: #0c0a09;
  --brand-50: #f5f5f4;
  --brand-100: #e7e5e4;
  --accent: #059669;
  --up: #10b981;
  --down: #f43f5e;
  --wa: #059669;
  --wa-600: #047857;
  --wa-50: #ecfdf5;
  --wa-brand: #25d366;
  --navy: #1c1917;
  --navy-2: #292524;
  --navy-line: rgba(255, 255, 255, .08);
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(28, 25, 23, .04);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .04), 0 4px 12px -6px rgba(28, 25, 23, .06);
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 16px 40px -20px rgba(28, 25, 23, .14);
  --shadow-lg: 0 4px 8px rgba(28, 25, 23, .04), 0 24px 48px rgba(28, 25, 23, .08), 0 48px 96px -24px rgba(28, 25, 23, .18);
  --header-h: 64px;
}
html { -webkit-tap-highlight-color: rgba(28, 25, 23, .06); }
body { color: var(--text); }
::selection { background: #e7e5e4; color: var(--ink); }

/* Type: big, tight, quiet */
h1, h2, h3, h4 { color: var(--ink); }
h1 { font-size: clamp(2.7rem, 7vw, 5.25rem); line-height: .98; letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.04; letter-spacing: -.045em; }
h3 { letter-spacing: -.02em; }
h2 .dim, h1 .dim { color: var(--dim); }
.section-head { margin-bottom: 64px; }
.section-head p { font-size: 1.15rem; line-height: 1.65; color: var(--faint); }
.eyebrow { font: 600 .75rem/1 var(--font); letter-spacing: .2em; color: var(--accent); margin-bottom: 20px; }
.eyebrow::before { display: none; }
.eyebrow-wa { color: var(--accent); }
.section-alt { background: var(--bg-2); border-top: 1px solid rgba(231, 229, 228, .6); border-bottom: 1px solid rgba(231, 229, 228, .6); }
.section { padding: 128px 0; }
@media (max-width: 760px) { .section { padding: 88px 0; } .section-head { margin-bottom: 44px; } }

/* Buttons: pills */
.btn { border-radius: 999px; height: 46px; padding: 0 24px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 999px; }
.btn-primary, .btn-dark, .btn-wa { --bg-btn: var(--ink); --fg-btn: #fff; box-shadow: 0 1px 2px rgba(28, 25, 23, .2), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-primary:hover, .btn-dark:hover, .btn-wa:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(28, 25, 23, .55); }
.btn-wa svg:not(.arrow) { fill: var(--wa-brand); }
.btn-ghost { --bg-btn: #fff; --fg-btn: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--line-2); }
.btn-light { --fg-btn: var(--ink); }
.btn-light:hover { background: #f5f5f4; }
.btn-outline-light { border-color: rgba(255, 255, 255, .2); }

/* Header */
.site-header::before { background: rgba(255, 255, 255, .8); }
.site-header.scrolled { border-bottom-color: rgba(231, 229, 228, .8); box-shadow: none; }
.site-nav ul a { color: var(--muted); font-size: .9rem; padding: 8px 12px; border-radius: 999px; }
.site-nav ul a:hover { background: var(--bg-3); }
.nav-toggle { border-color: var(--line); border-radius: 999px; }
.logo { font-size: 1.12rem; letter-spacing: -.035em; }
.logo-mark { width: 28px; height: 28px; }

/* Hero (home): centred, editorial */
.page-home .hero { padding: 104px 0 96px; }
.page-home .hero-bg { background: radial-gradient(60% 45% at 50% 0%, rgba(28, 25, 23, .045), transparent 70%), linear-gradient(180deg, #faf9f7, #fff 60%); }
.page-home .hero-bg::after { background-image: linear-gradient(rgba(28, 25, 23, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 25, 23, .04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(55% 45% at 50% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(55% 45% at 50% 20%, #000 10%, transparent 75%); }
.page-home .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 80px; text-align: center; }
.page-home .hero-grid > div:first-child { max-width: 860px; margin: 0 auto; }
.page-home .hero h1 { margin-bottom: .32em; }
.page-home .hero-lead { margin: 0 auto 40px; max-width: 600px; font-size: 1.22rem; color: var(--faint); }
.page-home .hero .hero-cta { justify-content: center; margin-bottom: 0; }
.page-home .cta-note { text-align: center; margin-top: 6px; }
.page-home .hero-meta { margin: 48px auto 0; justify-content: center; gap: 12px 56px; border-top: 0; padding-top: 0; }
.page-home .hero-meta div { align-items: center; }
.page-home .hero-visual { max-width: 1000px; margin: 0 auto; width: 100%; padding-bottom: 72px; }
.page-home .hero-visual .book3d { left: -56px; }
.hero h1 .accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--dim); }
.announce { border-color: var(--line); box-shadow: none; background: rgba(255, 255, 255, .85); font-size: .84rem; color: var(--muted); }
.announce .pill { background: var(--wa-50); color: var(--accent); }
.announce .pill i { background: var(--up); }
@media (max-width: 1080px) { .page-home .hero-visual .book3d { left: 8px; } }
@media (max-width: 640px) {
  .page-home .hero { padding: 56px 0 64px; }
  .page-home .hero-lead { font-size: 1.08rem; margin-bottom: 32px; }
  .page-home .hero-grid { gap: 56px; }
  .page-home .hero-meta { margin-top: 36px; gap: 12px; justify-content: space-between; }
  .page-home .hero-visual { padding-bottom: 96px; }
}

/* Terminal chart: neutral chrome */
.terminal { border-color: var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.terminal-bar { background: #fafaf9; border-bottom-color: var(--line); }
.terminal-bar .dots i { background: #e7e5e4; }
.terminal-bar .tf { background: var(--bg-3); }
.terminal-legend { border-color: var(--line); }
.terminal-legend i { background: var(--ink); }
.term-chart .grid line { stroke: #f2f1ef; }
.term-chart .grid .sep, .term-chart .axis .edge { stroke: #e7e5e4; }
.term-chart .axis text { fill: #a8a29e; }
.term-chart .ma { stroke: var(--ink); opacity: .45; }
.term-chart .lbl.bull text { fill: #047857; }
.term-chart .lbl.bull rect { stroke: rgba(16, 185, 129, .45); }
.term-chart .lbl.bear text { fill: #be123c; }
.term-chart .lbl.bear rect { stroke: rgba(244, 63, 94, .45); }
.toast { border-color: var(--line); box-shadow: var(--shadow); }
.visual-note { color: var(--dim); }

/* Cards & panels: hairline borders, almost no shadow */
.trustbar { background: #fff; border-color: rgba(231, 229, 228, .8); }
.trustbar-item { border-color: rgba(231, 229, 228, .8); }
.trustbar-item .ic { background: var(--bg-2); border-color: var(--line); border-radius: 12px; }
.trustbar-item svg { stroke: var(--ink); stroke-width: 1.6; }
.method, .explorer-panel, .principles, .card, .contact-card, .help-card, .plan, .buy, .feature, .chat { border-color: rgba(231, 229, 228, .9); box-shadow: none; }
.method { border-radius: var(--r-xl); }
.method-item .num { color: var(--accent); }
.glyph-learn span { background: linear-gradient(160deg, #44403c, #1c1917); box-shadow: 6px 8px 16px -8px rgba(28, 25, 23, .5); }
.glyph-spot i.tag { color: #047857; border-color: rgba(16, 185, 129, .45); }
.explorer-tab { border-radius: 14px; }
.explorer-tab[aria-selected="true"] { border-color: var(--line); box-shadow: none; }
.explorer-tab small.bull { color: #047857; background: var(--wa-50); }
.explorer-tab small.bear { color: #be123c; background: #fff1f2; }
.explorer-figure { background: var(--bg-2); border-color: var(--line); }
.explorer-body dt { letter-spacing: .14em; color: var(--dim); }
.pattern-svg .focus { stroke: #d97706; }
.stage { background: radial-gradient(80% 70% at 50% 40%, #fff 0%, #f5f5f4 100%); border-color: rgba(231, 229, 228, .9); }
.stage::before { background-image: radial-gradient(rgba(28, 25, 23, .08) 1px, transparent 1px); }
.stage .chip { border-color: var(--line); box-shadow: var(--shadow-sm); }
.checks li::before { background-color: var(--wa-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E"); }
.inside-thumb { border-radius: 10px; }

/* Free chapter band: calm, warm */
.trial { background: var(--bg-2); border: 1px solid rgba(231, 229, 228, .9); border-radius: 28px; }
.trial::after { display: none; }
.chat header .av { background: var(--ink); }
.chat header span { color: var(--accent); }
.chat .m.out { background: #dcfce7; }

/* Timeline */
.timeline::before { background: linear-gradient(90deg, var(--line), var(--line) 60%, transparent); }
.tl::before { border-color: var(--line); color: var(--ink); font-weight: 600; }

/* Pricing + dark surfaces: warm black instead of navy */
.dark { background: #1c1917; color: #d6d3d1; }
.dark::before { background: radial-gradient(50% 60% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%); }
.dark .eyebrow { color: #34d399; }
.dark .section-head p, .dark .showcase-copy > p, .final p { color: #a8a29e; }
.dark .checks li { color: #e7e5e4; }
.dark .price-tag span, .final .fine { color: #78716c; }
.dark .btn-wa, .dark .btn-primary { --bg-btn: #fff; --fg-btn: var(--ink); }
.dark .btn-wa:hover, .dark .btn-primary:hover { background: #f5f5f4; }
.plan.featured { background: #1c1917; border-color: #1c1917; color: #d6d3d1; box-shadow: 0 30px 60px -28px rgba(28, 25, 23, .55); }
.plan.featured .desc, .plan.featured .try a { color: #a8a29e; }
.plan.featured li svg { stroke: #34d399; }
.plan .badge { background: rgba(255, 255, 255, .08); color: #e7e5e4; }
.plan:hover { transform: none; box-shadow: none; }
.terminal.dark-term { background: #1c1917; }
.terminal.dark-term .terminal-bar { background: #232120; color: #a8a29e; }
.terminal.dark-term .terminal-legend { background: rgba(28, 25, 23, .9); color: #a8a29e; }
.term-dark .axis text { fill: #78716c; }
.term-dark .ma { stroke: #e7e5e4; }
.term-dark .lbl rect { fill: #1c1917; }
.term-dark .lbl.bull text { fill: #34d399; }

/* FAQ */
.faq summary { font-weight: 600; font-size: 1.02rem; padding: 26px 0; }
.faq summary .plus { border-color: var(--line); }

/* Footer: light, quiet */
.site-footer { background: var(--bg-2); color: var(--faint); border-top: 1px solid var(--line); }
.footer-top, .footer-bottom { border-color: var(--line); }
.site-footer .logo { color: var(--ink); }
.footer-tagline, .footer-contact { color: var(--faint); }
.footer-h { color: var(--ink); letter-spacing: .14em; }
.site-footer ul a, .site-footer ul .link-btn, .footer-bottom a, .footer-bottom .link-btn { color: var(--faint); }
.site-footer ul a:hover, .site-footer ul .link-btn:hover, .footer-bottom a:hover, .footer-bottom .link-btn:hover, .footer-contact a:hover { color: var(--ink); }
.footer-contact a { color: var(--muted); }
.footer-legal p, .footer-bottom { color: var(--dim); }
.footer-legal strong, .footer-legal a { color: var(--muted); }

/* Floating WhatsApp + sticky bar */
.wa-float { background: var(--ink); box-shadow: 0 14px 30px -12px rgba(28, 25, 23, .6); }
.wa-float:hover { background: #000; }
.wa-float svg { fill: var(--wa-brand); }
.buybar { border-color: rgba(231, 229, 228, .9); box-shadow: 0 18px 40px -18px rgba(28, 25, 23, .3); }

/* Text pages */
.prose p, .prose li, .prose address, .table-wrap th, .table-wrap td { color: #44403c; }
.page-head { border-bottom-color: rgba(231, 229, 228, .8); }
.toc-list a.active { color: var(--ink); border-left-color: var(--ink); }
.thanks .check { background: var(--wa-50); box-shadow: 0 0 0 10px rgba(16, 185, 129, .06); }
.feature .ic, .contact-card .ic { background: var(--bg-3); }
.feature .ic svg, .contact-card .ic svg { stroke: var(--ink); }
.contact-card .ic.wa svg { fill: var(--accent); }
.next-steps .card .tag { color: var(--accent); }
.dark h2 .dim { color: #78716c; }
html.ck-paused body.buybar-on .wa-float { opacity: 0; pointer-events: none; }
.btn-light svg:not(.arrow) { fill: #059669; }
.trial .hero-cta { justify-content: flex-start; }
/* Other page heads: same warm wash as the home hero */
.hero-bg { background: radial-gradient(60% 50% at 50% 0%, rgba(28, 25, 23, .04), transparent 70%), linear-gradient(180deg, #faf9f7, #fff 70%); }
.hero-bg::after { background-image: linear-gradient(rgba(28, 25, 23, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 25, 23, .035) 1px, transparent 1px); }

/* Theme v2.1 polish ------------------------------------------------------- */
h1, h2, .section-head p, .hero-lead { text-wrap: balance; }
p { text-wrap: pretty; }
html.ck-paused .only-open-i { display: none; }
html:not(.ck-paused) .only-paused-i { display: none; }

/* Announcement bar */
.topbar { position: relative; z-index: 101; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 8px 16px; background: var(--ink); color: #d6d3d1; font-size: .8rem; font-weight: 500; text-decoration: none; text-align: center; }
.topbar:hover { color: #fff; }
.topbar .tb-tag { flex: none; padding: 2px 8px; border-radius: 999px; background: rgba(52, 211, 153, .14); color: #34d399; font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.topbar svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.topbar:hover svg { transform: translateX(3px); }
@media (max-width: 1020px) { .site-nav { top: calc(var(--header-h)); } }
@media (max-width: 520px) { .topbar { font-size: .74rem; justify-content: flex-start; text-align: left; } }

/* Hero details */
.cta-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: .84rem; color: var(--faint); margin-top: 14px !important; }
.cta-note span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 3px; border-radius: 50%; background: var(--dim); vertical-align: middle; }
.page-home .hero-meta { gap: 0; }
.page-home .hero-meta div { padding: 0 36px; }
.page-home .hero-meta div + div { border-left: 1px solid var(--line); }
.page-home .hero-meta strong { font-size: .92rem; }
.page-home .hero-meta span { font-size: .8rem; color: var(--dim); }
.page-home .hero-visual .terminal { max-width: 940px; margin: 0 auto; }
@media (max-width: 640px) {
  .page-home .hero-meta div { padding: 0 10px; }
  .cta-note span + span::before { margin: 0 8px 3px; }
}

/* Trust bar: contained row, no full-bleed rules */
.trustbar { border: 0; background: transparent; padding: 8px 0 0; }
.trustbar-inner { border: 1px solid rgba(231, 229, 228, .9); border-radius: 20px; background: #fff; padding: 0 8px; }
.trustbar-item { padding: 24px 22px; }
.trustbar-item:first-child { padding-left: 22px; }
.trustbar-item strong { font-size: .9rem; }
.trustbar-item span { font-size: .8rem; color: var(--faint); white-space: nowrap; }
@media (max-width: 960px) { .trustbar-item:nth-child(3) { padding-left: 22px; } .trustbar-item span { white-space: normal; } }
@media (max-width: 560px) { .trustbar-inner { padding: 0 18px; } .trustbar-item, .trustbar-item:first-child, .trustbar-item:nth-child(3) { padding: 18px 0; } }

/* Look inside */
.section-tight { padding-top: 112px; padding-bottom: 104px; }
.inside-grid { gap: 22px; }
.inside-thumb { border-color: rgba(231, 229, 228, .9); border-radius: 12px; box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 12px 28px -18px rgba(28, 25, 23, .25); }
.inside-thumb:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28, 25, 23, .04), 0 24px 40px -20px rgba(28, 25, 23, .35); }
.inside-cap { font-size: .8rem; color: var(--faint); }
.inside-cap b { color: var(--dim); }

/* Steps: numbered cards with large quiet numerals */
.timeline { gap: 16px; counter-reset: tl; }
.timeline::before { display: none; }
.tl { padding: 32px 30px 34px; background: #fff; border: 1px solid rgba(231, 229, 228, .9); border-radius: 20px; }
.tl::before { position: static; display: block; width: auto; height: auto; margin-bottom: 26px; background: none; border: 0; box-shadow: none !important; font: 700 3.4rem/1 var(--font-display); letter-spacing: -.05em; color: #e7e5e4; text-align: left; }
.tl h3 { font-size: 1.12rem; margin-bottom: .45em; }
.section-alt .tl { background: #fff; }
@media (max-width: 860px) { .timeline { gap: 12px; } .tl { padding: 26px 24px 28px; } .tl::before { font-size: 2.8rem; margin-bottom: 18px; } }

/* Principles: icon tiles */
.principle { padding: 34px 30px; }
.principle svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); stroke-width: 1.6; margin-bottom: 22px; }

/* Pricing */
.plan.featured { border-radius: 24px; padding: 40px 36px; }
.plan .amount { font-size: 4rem; letter-spacing: -.05em; }
.plan .amount sup { font-size: 1.4rem; margin-top: 10px; color: #a8a29e; }
.plan.featured ul { gap: 14px; }

/* Final band: quiet glow + fine grid */
.dark::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(50% 70% at 50% 0%, #000, transparent); mask-image: radial-gradient(50% 70% at 50% 0%, #000, transparent); }
.final .btn-light svg:not(.arrow) { fill: #059669; }

/* FAQ */
.faq summary:hover { color: #000; }
.help-card { border-radius: 20px; background: var(--bg-2); }
.page-home .hero-meta strong, .page-home .hero-meta span { white-space: nowrap; }
@media (max-width: 400px) { .page-home .hero-meta span { white-space: normal; } }
.announce, .announce span { white-space: nowrap; }
.trustbar-inner { width: calc(100% - 48px); max-width: calc(var(--max) - 48px); }
@media (max-width: 400px) { .page-home .hero-meta span { white-space: nowrap; } .announce { font-size: .78rem; } }

/* Notices in the warm palette */
.notice { background: var(--bg-2); border-color: var(--line); color: var(--muted); border-radius: 14px; }
.notice svg { stroke: var(--accent); }
.notice strong { color: var(--ink); }
.notice a { color: var(--ink); }

/* Contact: WhatsApp card leads */
.contact-card.wa-feature { grid-column: 1 / -1; padding: 36px; background: var(--bg-2); }
.contact-card.wa-feature .value { font-size: 1.5rem; letter-spacing: -.02em; }
.contact-card.wa-feature p { font-size: 1rem; max-width: 560px; }
.contact-card.wa-feature .btn { margin-top: 20px; }
@media (max-width: 760px) {
  .contact-card.wa-feature { display: flex; flex-direction: column; padding: 24px; }
  .contact-card.wa-feature .ic { margin-bottom: 10px; }
  .contact-card.wa-feature .value { font-size: 1.3rem; }
  .contact-card.wa-feature .btn { align-self: stretch; }
}
/* Hero book sits clear of the chart's first month label */
@media (min-width: 1081px) { .page-home .hero-visual .book3d { left: -88px; bottom: 8px; } }
@media (max-width: 640px) { .page-home .hero-visual { padding-bottom: 0; } .page-home .hero { padding-bottom: 40px; } }

/* Theme v2.2: overlays and menu in the warm palette */
.lightbox { background: rgba(20, 18, 17, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox::backdrop { background: rgba(20, 18, 17, .7); }
.lightbox img { border-radius: 10px; }
.lb-btn { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); }
@media (max-width: 1020px) {
  .site-nav { padding: 8px 24px 32px; }
  .site-nav ul a, .site-nav ul a:hover { border-radius: 0; padding: 18px 2px; font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink); background: none; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { color: var(--accent); }
  .nav-cta { margin-top: 28px; }
  .nav-cta .btn { height: 52px; font-size: 16px; }
}
/* Interaction details */
.btn:active { transform: translateY(0) scale(.985); }
.prose a, .faq .answer a, .section-head p a { text-decoration-color: rgba(28, 25, 23, .3); }
.prose a:hover, .faq .answer a:hover { text-decoration-color: currentColor; }
.explorer-tab:focus-visible, .inside-thumb:focus-visible, .faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
:focus-visible { outline-color: var(--ink); }
.faq details[open] .answer { animation: faq-in .35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   v3 restraint pass (2026-11-11): fewer effects, quieter labels, clearer
   hierarchy. Sits last on purpose.
   ========================================================================== */

/* Type: one strong level for headlines, everything else steps down by size */
h1, h2 { font-weight: 600; }
h1 { letter-spacing: -.045em; }
h2 { letter-spacing: -.035em; }
.btn, .btn-sm, .btn-lg { letter-spacing: 0; }

/* Labels in sentence case, no wide tracking, no colour */
.eyebrow { margin-bottom: 12px; font: 500 .875rem/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--faint); }
.eyebrow-wa { color: var(--faint); }
.dark .eyebrow { color: #a8a29e; }
.explorer-body dt, .legal-nav .nav-title, .contact-card .label { text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 500; color: var(--faint); }
.footer-h { text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--ink); }

/* Surfaces: no washes, grids, dots or glows behind content */
.hero-bg, .page-home .hero-bg { background: linear-gradient(180deg, #faf9f7, #fff 72%); }
.hero-bg::after, .page-home .hero-bg::after, .dark::before, .dark::after, .stage::before { display: none; }
.stage { background: var(--bg-3); }
.stage .chip { border-radius: 8px; box-shadow: none; }

/* Section heads: headline left, supporting line beside it, not everything centred */
.section-head { text-align: left; margin-left: 0; margin-right: 0; }
@media (min-width: 900px) {
  .section-head:not(.left):not(.center) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 64px; max-width: none; align-items: end; }
  .section-head:not(.left):not(.center) > .eyebrow { grid-column: 1; justify-self: start; }
  .section-head:not(.left):not(.center) > h2 { grid-column: 1; margin-bottom: 0; }
  .section-head:not(.left):not(.center) > p { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; font-size: 1.0625rem; }
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero: one quiet line under the buttons, no chips */
.cta-note { display: block; text-align: center; font-size: .875rem; }

/* Trust facts: a plain ruled row, no icon tiles */
.trustbar-item .ic { display: none; }
.trustbar-inner { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 0; }
.trustbar-item, .trustbar-item:first-child, .trustbar-item:nth-child(3) { padding: 20px 24px; }
.trustbar-item:first-child { padding-left: 0; }
@media (max-width: 960px) { .trustbar-item:nth-child(3) { padding-left: 0; } }
@media (max-width: 560px) { .trustbar-item, .trustbar-item:first-child, .trustbar-item:nth-child(3) { padding: 16px 0; } }

/* Principles and product features: ruled text columns, not icon cards */
.principles, .principles.two { gap: 0 48px; background: none; border: 0; border-radius: 0; overflow: visible; }
.principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principle { padding: 24px 0 28px; background: none; border-top: 1px solid var(--line); }
.principle svg { display: none; }
.principle h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.principle p { font-size: .9375rem; max-width: 46ch; }
.features { gap: 0 40px; }
.feature, .feature:hover { padding: 24px 0 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; transform: none; }
.feature .ic { display: none; }
@media (max-width: 600px) { .principles, .principles.two { grid-template-columns: 1fr; } .features { gap: 24px; } }

/* Steps: a numbered row with a rule, not three boxes */
.timeline { gap: 32px; }
.tl, .section-alt .tl { padding: 20px 0 0; background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; }
.tl::before { margin-bottom: 16px; font: 500 .8125rem/1 var(--font-mono); letter-spacing: 0; color: var(--faint); }
@media (max-width: 860px) { .timeline { gap: 24px; } .tl { padding: 16px 0 0; } .tl::before { font-size: .8125rem; margin-bottom: 12px; } }

/* Radius by size: pills only for buttons */
.explorer-tab { border-radius: 10px; }
.trial { border-radius: 20px; }
.inside-thumb { border-radius: 8px; }

/* Motion: nothing loops, small entrances, small hovers */
.motion .hero-visual .book3d, .motion .term-chart.play .c.live rect { animation: none; }
.js [data-reveal] { transform: translateY(8px); transition-duration: .5s; }
.btn:hover { transform: none; }
.inside-thumb:hover { transform: translateY(-2px); }
.method-item .num { color: var(--faint); }
.glyph-spot i.tag, .explorer-body .chapter a { color: var(--ink); }
@media (max-width: 640px) {
  h1 { font-size: 2.5rem; letter-spacing: -.04em; }
  .page-home .hero-grid { text-align: left; }
  .page-home .hero-lead { margin-left: 0; }
  .page-home .cta-note { text-align: left; }
}
@media (min-width: 641px) {
  .page-home .hero-grid > div:first-child { max-width: 1120px; }
  .page-home .hero h1 { font-size: clamp(2.75rem, 5.4vw, 4.5rem); }
  .page-home .hero-grid { gap: 64px; }
  .page-home .hero { padding-top: 88px; }
}

/* ==========================================================================
   v3.1 one type scale (2026-11-11)
   13 meta · 14 UI · 15 secondary · 16/17 body · 17 card title · 20 lead
   · 24 sub-heading · h2 · h1. Weights 400 / 500 / 600 only.
   Text colours: ink (primary), muted (secondary), faint (meta); dim only
   for the second half of headlines.
   ========================================================================== */
:root { --text: var(--ink); --fs-meta: .8125rem; --fs-ui: .875rem; --fs-2nd: .9375rem; --fs-body: 1rem; --fs-title: 1.0625rem; --fs-lead: 1.25rem; --fs-sub: 1.5rem; }

/* Weights */
h3, h4, .faq summary, .explorer-tab[aria-selected="true"], .logo, .plan .amount, .buy-top .amount, .showcase-copy .price-tag b, .buybar-info strong, .contact-card .value, .chapter-row strong { font-weight: 600; }

/* Meta: captions, notes, small labels */
.inside-cap, .trustbar-item span, .visual-note, .explorer-figure .caption, .pay-note, .chat header span, .page-head .meta, .breadcrumb, .buy .fine, .buy-top .terms, .plan .per, .showcase-copy .price-tag span, .stage .chip, .explorer-body dt, .tl::before, .footer-bottom, .final .fine, .contact-card .label, .chapter-row .free, .buybar-info span { font-size: var(--fs-meta); }
.footer-legal p { font-size: .75rem; }

/* UI text */
.cta-note, .eyebrow, .site-nav ul a, .btn-sm, .help-card p, .chat .m, .explorer-tab, .announce, .topbar { font-size: var(--fs-ui); }

/* Secondary text */
.principle p, .tl p, .method-item p, .feature p, .explorer-body dd, .explorer-body .lede, .checks li, .plan ul, .plan .desc, .card p, .contact-card p, .next-steps .card p, .chapter-row span, .site-footer ul a, .footer-tagline, .footer-contact, .trial > div > p { font-size: var(--fs-2nd); }

/* Body and leads */
.faq .answer, .prose p, .prose li, .section-head p, .showcase-copy > p, .page-head p { font-size: var(--fs-body); }
@media (min-width: 900px) { .section-head:not(.left):not(.center) > p { font-size: 1.0625rem; } }
.hero-lead, .page-home .hero-lead { font-size: var(--fs-lead); line-height: 1.6; }
@media (max-width: 640px) { .hero-lead, .page-home .hero-lead { font-size: 1.0625rem; } }

/* Titles */
.principle h3, .tl h3, .feature h3, .help-card strong, .plan h3, .faq summary, .next-steps .card h3, .chapter-row strong { font-size: var(--fs-title); letter-spacing: -.01em; }
.method-item h3 { font-size: 1.25rem; }
.explorer-body h3 { font-size: var(--fs-sub); }
.trustbar-item strong { font-size: var(--fs-2nd); }
.trial h2, .showcase-copy h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.page-head h1, .p-hero h1 { font-size: clamp(2.25rem, 4.2vw, 3.25rem); }

/* Real chapter list in the showcase */
.toc-mini { list-style: none; margin: 24px 0 32px; padding: 0; border-top: 1px solid var(--line); }
.toc-mini li { display: flex; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-2nd); color: var(--ink); }
.toc-mini li span { flex: none; width: 20px; font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.toc-mini li em { margin-left: auto; font-style: normal; font-size: var(--fs-meta); color: var(--accent); }
/* Remaining one-off sizes onto the scale */
.inside-cap b, .method-item .num, .explorer-tab small, .glyph-spot i.tag, .glyph-review b, .explorer-body .chapter, .explorer-body .chapter a { font-size: var(--fs-meta); }
.explorer-tab small { font-size: .75rem; }
.plan .try, .plan .try a { font-size: var(--fs-ui); }
.final h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.final p { font-size: var(--fs-body); }
.buybar-info strong { font-size: var(--fs-title); }
.plan .amount sup { font-size: 1.5rem; }

/* ==========================================================================
   v3.2 spacing on a 4px grid, one radius per size (2026-11-11)
   Panels 20 · cards/thumbs 8–12 · tags 6 · buttons pill
   ========================================================================== */
/* Buttons */
.btn { gap: 8px; padding: 0 24px; }
.btn-lg { padding: 0 32px; }
.btn-sm { padding: 0 16px; }
/* Headings: fixed gaps instead of em-based ones */
h2 { margin-bottom: 24px; }
.section-head h2 { margin-bottom: 16px; }
h3, .principle h3, .tl h3, .feature h3, .card h3 { margin-bottom: 8px; }
.explorer-body h3 { margin-bottom: 8px; }
/* Hero and rows */
.cta-note { margin-top: 16px !important; }
.terminal-bar { gap: 16px; }
.trustbar-item { gap: 16px; }
.inside-grid { gap: 24px; }
.checks { gap: 12px; }
.checks li { gap: 12px; }
.toc-mini li { padding: 12px 0; }
/* Pattern explorer */
.explorer-tabs { gap: 4px; }
.explorer-tab { padding: 16px; }
.explorer-body .lede { margin-bottom: 16px; }
.explorer-body dl { gap: 20px; }
.explorer-body dt { margin-bottom: 8px; }
.explorer-tab small { border-radius: 6px; }
/* Chips and chat */
.stage .chip { padding: 8px 12px; }
.chat { border-radius: 16px; }
.chat header { padding: 12px 16px; }
.chat .msgs { padding: 16px; gap: 8px; }
.chat .m { padding: 8px 12px; border-radius: 12px; }
/* Pricing */
.plan.featured { border-radius: 20px; }
.plan .per { margin: 12px 0 28px; gap: 12px; }
.plan ul { gap: 12px; }
.plan .try { margin-top: 16px; }
.pay-note { gap: 12px 32px; }
/* Panels share one radius */
.terminal, .method, .explorer-panel, .stage, .trial, .help-card, .buy, .contact-card { border-radius: 20px; }
.help-card { padding: 24px; }
.help-card p { margin-bottom: 16px; }
/* FAQ rows */
.faq summary { padding: 24px 0; }
/* Sticky bar */
.buybar { padding: 8px 8px 8px 24px; gap: 24px; }
.buybar-info { gap: 8px; }
@media (max-width: 760px) { .buybar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); } }

/* Fewer repeats of the same prompt while checkout is paused: the pricing
   card already leads with WhatsApp, so its extra text link goes */
html.ck-paused .plan .try { display: none; }
p { margin-bottom: 16px; }
.page-home .hero h1 { margin-bottom: 24px; }
.plan li, .chat .m.file { gap: 12px; }
.plan.featured ul { gap: 12px; }
.plan .amount sup { margin-top: 8px; }
.final h2 { margin-bottom: 16px; }
.buybar .btn { padding: 0 24px; }
.inside-grid li { gap: 12px; }

/* ==========================================================================
   v3.3 inner pages on the same scale (2026-11-11)
   ========================================================================== */
/* Page titles: one size everywhere */
.page-head h1, .p-hero h1, .pg-hero h1, .thanks h1 { font-size: clamp(2.25rem, 4.2vw, 3.25rem); margin-bottom: 16px; }
.thanks .lead, .page-head p, .pg-hero .hero-lead { font-size: var(--fs-lead); }
@media (max-width: 640px) { .thanks .lead, .page-head p, .pg-hero .hero-lead { font-size: 1.0625rem; } }
.h-sub, .prose h2 { font-size: var(--fs-sub); letter-spacing: -.02em; }
.lead-sm { font-size: var(--fs-body-lg, 1.0625rem); }
.contact-card .value { font-size: 1.125rem; }
.contact-card .value.small { font-size: var(--fs-body); }
.contact-card.wa-feature .value { font-size: var(--fs-sub); }

/* Long-form text: fixed rhythm instead of em-based gaps */
.prose h2 { margin: 56px 0 16px; }
.prose h3 { margin: 32px 0 8px; font-size: var(--fs-title); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .summary h2 { margin: 0 0 12px; font-size: var(--fs-title); }
.table-wrap { margin: 20px 0 28px; border-radius: 12px; }
.table-wrap th, .table-wrap td, .prose table { font-size: var(--fs-2nd); }
.toc-list a, .legal-docs ul { font-size: var(--fs-ui); }
.legal-nav .nav-title { margin-bottom: 12px; }

/* Notices and small labels */
.notice { padding: 16px 20px; gap: 12px; border-radius: 12px; font-size: var(--fs-2nd); }
.chapter-row .free, .pg-tag { border-radius: 6px; font-size: .75rem; }
.chapter-row .n { font-size: var(--fs-meta); }
.chapter-row strong { gap: 8px; }
.tag, .next-steps .card .tag { text-transform: none; letter-spacing: 0; font: 500 var(--fs-meta)/1.3 var(--font); }
.of-fine, .pg-note, .pg-figure figcaption { font-size: var(--fs-meta); }
.of-fine { margin-top: 16px; }

/* Product page buy box */
.buy-top { margin-bottom: 16px; }
.buy-top .amount { font-size: 2.5rem; }
.buy .row { gap: 8px; }

/* Pattern guide pages */
.pg-card-sum, .pg-all, .pg-jump a { font-size: var(--fs-ui); }
.pg-card h2, .pg-card h3, .pg-group h2 { font-size: var(--fs-title); }
.pg-variant dd, .pg-body dd, .pg-terms dd { font-size: var(--fs-2nd); }
.pg-body h2, .pg-side h2 { margin: 0 0 12px; font-size: var(--fs-sub); }
.pg-body li { margin-bottom: 8px; }
.pg-tag { padding: 4px 8px; }
.pg-related a small, .pg-related small, .explorer-tab small { font-size: .75rem; }

/* Checkout-paused and thank-you cards */
.order-card .lead, p.lead { font-size: var(--fs-body); }
.next-steps .card p { font-size: var(--fs-2nd); }
.pg-howto p, .pg-howto a { font-size: var(--fs-2nd); }
.pg-card-body strong { font-size: var(--fs-title); }
.pg-meta span { font-size: var(--fs-ui); }
.pg-side .nav-title { font-size: var(--fs-meta); }
.pg-side li a { padding-top: 8px; padding-bottom: 8px; font-size: var(--fs-2nd); }
.pg-pager small { font-size: var(--fs-meta); }
.pg-jump li a, .pg-terms li a { padding-left: 16px; padding-right: 16px; }
.pg-book-list li { gap: 8px; }
.pg-book .row, .final .row, .p-hero .row { gap: 8px; }
.section-head.left h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.of-head .tag { text-transform: none; letter-spacing: 0; font: 500 var(--fs-meta)/1.3 var(--font); }
.of-head h2 { font-size: var(--fs-sub); }
.of-head p, .order-card p { font-size: var(--fs-2nd); }
.thanks .muted, .thanks .muted a { font-size: var(--fs-ui); }
.reopen { padding: 12px 16px; }
.contact-card .ic { margin-bottom: 16px; }
.pg-side .nav-title, .pg-related h2, .pg-side h2 { text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   v3.4 contrast and tap targets (WCAG AA), 2026-11-11
   dim: headline second halves only, >= 3:1 on white and on the warm grey
   faint: smallest text, >= 4.5:1 on both page backgrounds
   accent-text: green used as text, >= 4.5:1
   ========================================================================== */
:root { --dim: #8b847d; --faint: #6f6862; --accent-text: #047857; }
.hero h1 .accent, h1 .dim, h2 .dim { color: var(--dim); }
/* Small text never uses the headline grey */
.visual-note, .inside-cap, .inside-cap b, .footer-legal p, .footer-bottom, .footer-bottom a, .footer-bottom .link-btn, .explorer-figure .caption, .pg-figure figcaption { color: var(--faint); }
/* Green as text: the darker shade */
.toc-mini li em, .chat header span, .chapter-row .free, .contact-card .ic.wa svg, .tag-wa, .of-head .tag, .next-steps .card .tag { color: var(--accent-text); }
.contact-card .ic.wa svg { fill: var(--accent-text); }
.terminal-bar .ohlc em { color: var(--accent-text); }
.chat .m.file i { background: #dc2626; }
/* Grey on the dark bands */
.dark .price-tag span, .final .fine, .plan .per, .plan.featured .per { color: #a8a29e; }
/* Tap targets: at least 24px tall */
.footer-bottom a, .footer-bottom .link-btn, .breadcrumb a, .explorer-body .chapter a, .pg-all, .contact-card .value a { display: inline-block; padding: 4px 0; }
.pay-note a { display: inline-block; padding: 4px 0; }
