/* The SG Investor — design system
   Palette: deep navy #0B1220 · cyan #36D9F5 · warm amber #F5B942 · soft white #F5F7FA · muted grey #94A3B8
   Cyan and amber are accents only. On light backgrounds they are used as fills/marks, never as body text. */
:root {
  --navy: #0B1220;
  --navy-2: #121B2E;
  --navy-3: #1C2740;
  --cyan: #36D9F5;
  --cyan-ink: #0B6E85;     /* cyan for text/links on light backgrounds (AA) */
  --amber: #F5B942;
  --amber-ink: #8A5A00;    /* amber for text on light backgrounds (AA) */
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --grey: #94A3B8;         /* on navy only */
  --ink: #0B1220;
  --ink-2: #334155;
  --ink-3: #526175;
  --rule: #DCE2EA;
  --rule-dark: rgba(148, 163, 184, .22);
  --tint: #ECF0F5;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 12px 32px -16px rgba(11, 18, 32, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
a { color: var(--cyan-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- placeholders (must be resolved before launch) ---------- */
.confirm { background: #FFF4D6; color: #6B4500; border: 1px dashed #C98A00; border-radius: 4px; padding: 0 4px; font-family: var(--font-mono); font-size: .82em; font-style: normal; line-height: 1.5; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: 16px; }
.eyebrow-light { color: var(--cyan); }
.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.02em; color: var(--white); }
.display em { font-style: italic; font-weight: 400; color: var(--amber); }
.display-sm { font-size: clamp(34px, 4.8vw, 56px); }
.h-page { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.015em; max-width: 22ch; }
.h-page em { font-style: italic; font-weight: 400; }
.h-section { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.015em; max-width: 24ch; }
.h-sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 0 0 18px; }
.label-h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: rgba(245, 247, 250, .84); max-width: 54ch; margin-top: 22px; }
.lede-dark { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--ink-2); max-width: 62ch; margin-top: 18px; }
.fine { font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.fine-center { text-align: center; margin: 32px auto 0; max-width: 62ch; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.text-link:hover { color: var(--cyan-ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 600 15px/1.2 var(--font-ui); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #FFCB66; color: var(--navy); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--rule); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(245, 247, 250, .45); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(245, 247, 250, .06); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row-center { justify-content: center; }
.cta-center { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 48px; text-align: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 247, 250, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-light, .brand-light:hover { color: var(--white); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-emblem { display: inline-flex; flex-shrink: 0; }
.logo-emblem img { display: block; width: auto; height: 46px; }
.logo-word { display: block; width: auto; height: 22px; }
.logo-dark .logo-emblem { background: #FDFDF7; border-radius: 10px; padding: 4px 6px; }
.logo-dark .logo-emblem img { height: 40px; }
@media (max-width: 380px) { .logo-word { height: 18px; } .logo-emblem img { height: 40px; } }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; padding: 0; }
.site-nav ul a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 10px; background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .25s var(--ease), background .25s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--cyan-ink); }
  .no-js .site-nav { display: flex; position: static; box-shadow: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head-center { text-align: center; }
.section-head-center .h-section { margin: 0 auto; }

/* hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 40%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
/* hero illustration: From Information to Understanding */
.ilu { background: var(--navy-2); border: 1px solid var(--rule-dark); border-radius: 18px; padding: clamp(18px, 2.4vw, 26px); color: var(--paper); }
.ilu-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.ilu-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin-top: 6px; color: var(--white); }
.ilu-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ilu-tabs button { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule-dark); background: transparent; color: rgba(245, 247, 250, .78); font: 500 13.5px/1.2 var(--font-ui); cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.ilu-tabs button:hover { border-color: var(--grey); color: var(--white); }
.ilu-tabs button[aria-selected="true"] { background: rgba(54, 217, 245, .12); border-color: var(--cyan); color: var(--white); }
.no-js .ilu-tabs { display: none; }
.ilu-panel { margin-top: 20px; }
.ilu-panel:not([hidden]) { animation: iluIn .4s var(--ease); }
@keyframes iluIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ilu-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: start; }
.ilu-stage { display: flex; flex-direction: column; gap: 4px; }
.ilu-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(54, 217, 245, .45); background: rgba(54, 217, 245, .06); margin-bottom: 6px; }
.ilu-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ilu-icon svg .hl { stroke: var(--cyan); stroke-width: 2; }
.ilu-decide .ilu-icon { border-color: rgba(245, 185, 66, .6); background: rgba(245, 185, 66, .08); }
.ilu-decide .ilu-icon svg .hl { stroke: var(--amber); }
.ilu-step { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--grey); }
.ilu-stage h3 { font: 600 14px/1.25 var(--font-ui); color: var(--white); }
.ilu-stage p { font-size: 12.5px; line-height: 1.45; color: rgba(245, 247, 250, .72); }
.ilu-flow { container-type: inline-size; }
.ilu-link { position: relative; padding-top: 21px; }
/* desktop: connector spans from the right edge of one icon to the next icon (stage width = (flow − 2×24px) / 3) */
@media (min-width: 561px) { .ilu-link span { position: absolute; top: 21px; right: 8px; width: calc((100cqw - 48px) / 3 - 44px + 24px - 16px); } }
.ilu-link span { display: block; height: 2px; background: repeating-linear-gradient(90deg, var(--cyan) 0 5px, transparent 5px 10px); background-size: 10px 2px; opacity: .8; animation: iluFlow 1.1s linear infinite; }
@keyframes iluFlow { to { background-position: 10px 0; } }
@media (max-width: 560px) {
  .ilu-flow { grid-template-columns: 1fr; }
  .ilu-stage { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; }
  .ilu-stage .ilu-icon { grid-row: span 3; margin: 0; }
  .ilu-link { padding: 4px 0 4px 21px; }
  .ilu-link span { width: 2px; height: 16px; background: repeating-linear-gradient(180deg, var(--cyan) 0 4px, transparent 4px 8px); background-size: 2px 8px; animation-name: iluFlowY; }
  @keyframes iluFlowY { to { background-position: 0 8px; } }
}
.ilu-insight { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule-dark); display: grid; gap: 12px; }
.ilu-split { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; }
.ilu-split .seg-cpf, .ilu-legend .k-cpf { background: var(--cyan); }
.ilu-split .seg-exp, .ilu-legend .k-exp { background: #475569; }
.ilu-split .seg-save, .ilu-legend .k-save { background: var(--amber); }
.ilu-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: rgba(245, 247, 250, .78); }
.ilu-legend li { display: inline-flex; align-items: center; gap: 7px; }
.ilu-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ilu-legend b, .ilu-bars b { font-family: var(--font-mono); font-weight: 500; color: var(--white); }
.ilu-bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; font-size: 12.5px; color: rgba(245, 247, 250, .78); }
.bar-row .bar { grid-column: 1 / -1; grid-row: 2; height: 10px; border-radius: 5px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 5px; transform-origin: left; animation: iluGrow .7s var(--ease); }
.fill-grey { background: #64748B; } .fill-amber { background: var(--amber); }
@keyframes iluGrow { from { transform: scaleX(0); } }
.ilu-key { border-left: 3px solid var(--amber); padding-left: 12px; font-size: 14.5px; line-height: 1.5; color: var(--white); }
.ilu-note { font-size: 11.5px; line-height: 1.5; color: var(--grey); }
.ilu-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cyan); text-decoration: none; }
.ilu-more:hover { color: var(--white); }

/* problem */
.concerns { list-style: none; padding: 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .concerns { grid-template-columns: repeat(3, 1fr); } }
.concern { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.concern::before { content: ""; position: absolute; left: 28px; top: 0; width: 40px; height: 3px; background: var(--amber); border-radius: 0 0 3px 3px; }
.concern-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.concern-q { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.25; margin-top: 12px; font-weight: 500; }
.concern-a { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }
.reassure { margin-top: 36px; max-width: 64ch; color: var(--ink-2); font-size: 17px; border-left: 3px solid var(--cyan); padding-left: 18px; }

/* cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:has(.card-link):hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #C5CEDA; }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--navy); }
.card-media .thumb-svg, .card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); }
.card-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.22; margin-top: 8px; }
.card-desc { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.card-meta { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.card-upcoming { background: transparent; border-style: dashed; }
.card-upcoming .card-media { filter: saturate(.25) brightness(.92); }
.card-large .card-title { font-size: clamp(24px, 2.6vw, 32px); }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--navy); color: var(--white); text-decoration: none; }
a.pill:hover { color: var(--amber); }
.pill-muted { background: var(--tint); color: var(--ink-2); }
.play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(11, 18, 32, .78); border: 1.5px solid rgba(245, 247, 250, .7); }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 15px solid var(--white); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.insights-grid { display: grid; gap: 20px; }
.insights-side { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .insights-grid { grid-template-columns: 1.25fr 1fr; }
  .insights-side .card { flex-direction: row; }
  .insights-side .card-media { width: 40%; flex-shrink: 0; aspect-ratio: auto; }
  .insights-side .card-title { font-size: 19px; }
  .insights-side .card-desc { display: none; }
}
.grid-cards { display: grid; gap: 20px; margin-bottom: 48px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

/* guide */
.guide { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .guide { grid-template-columns: 240px 1fr; gap: 64px; align-items: start; } }
.portrait { width: 168px; }
@media (min-width: 860px) { .portrait { width: 240px; margin-top: 8px; } }
.portrait-placeholder { aspect-ratio: 4 / 5; border-radius: 18px; background: var(--navy) radial-gradient(circle at 70% 20%, rgba(54, 217, 245, .14), transparent 55%); display: grid; place-items: center; border: 1px solid var(--rule); }
.portrait-placeholder span { font-family: var(--font-display); font-size: 72px; color: rgba(245, 247, 250, .3); }
.portrait-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #8E9196; box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--rule), var(--shadow); }
.guide-role { margin-top: 14px; color: var(--ink-2); }
.guide-quote { margin: 24px 0 28px; padding-left: 20px; border-left: 3px solid var(--amber); }
.guide-quote p { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--ink); }
.guide-quote p + p { margin-top: 12px; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; gap: 20px; counter-reset: s; position: relative; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps::before { content: ""; position: absolute; top: 27px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--grey) 0 6px, transparent 6px 12px); }
}
.plan-step { position: relative; text-align: center; padding: 0 12px; }
.step-num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--amber); font-family: var(--font-display); font-size: 24px; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--tint); flex-shrink: 0; }
.plan-step h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; margin: 20px 0 8px; }
.plan-step p { color: var(--ink-2); max-width: 32ch; margin: 0 auto; }

/* transformation */
.transform { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 860px) { .transform { grid-template-columns: 1fr auto 1fr; } }
.transform-col { border-radius: var(--radius); padding: 30px; }
.transform-col h3 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.transform-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.transform-col li { position: relative; padding-left: 26px; font-size: 17px; }
.before { background: var(--white); border: 1px solid var(--rule); color: var(--ink-2); }
.before h3 { color: var(--ink-3); }
.before li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 2px; background: var(--grey); }
.after { background: var(--navy); color: var(--white); }
.after h3 { color: var(--cyan); }
.after li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.transform-arrow { display: grid; place-items: center; color: var(--ink-3); }
.transform-arrow .i { width: 28px; height: 28px; }
@media (max-width: 859px) { .transform-arrow { transform: rotate(90deg); } }

/* final cta */
.final-cta { background: var(--navy); color: var(--white); padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.final-cta::after { content: ""; position: absolute; right: -10%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(54, 217, 245, .16); box-shadow: 0 0 0 60px rgba(54, 217, 245, .03), 0 0 0 140px rgba(54, 217, 245, .02); pointer-events: none; }
.final-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-inner .display { max-width: 20ch; }

.soft-cta { border-top: 1px solid var(--rule); }
.soft-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.soft-cta p { font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); }

/* ---------- page heads / breadcrumbs ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.page-head-navy { background: var(--navy); color: var(--white); padding-bottom: clamp(48px, 6vw, 80px); }
.page-head-navy .crumbs, .page-head-navy .crumbs a { color: var(--grey); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--ink-3); }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* ---------- learn ---------- */
.library-tools { display: grid; gap: 16px; margin-bottom: 40px; }
.search { position: relative; display: block; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.search input { width: 100%; min-height: 50px; padding: 12px 16px 12px 46px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--white); font: inherit; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--white); font: 500 14px var(--font-ui); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lib-empty { padding: 24px; border: 1px dashed var(--rule); border-radius: var(--radius); color: var(--ink-2); margin-bottom: 48px; }
[hidden] { display: none !important; }

/* ---------- article ---------- */
.draft-banner { background: #FFF4D6; color: #6B4500; text-align: center; padding: 10px var(--gutter); font-weight: 600; font-size: 14px; border-bottom: 1px solid #E8C877; }
.article-head { padding-top: clamp(40px, 6vw, 72px); }
.dek { margin-top: 18px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); font-family: var(--font-display); }
.article-meta { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--ink-3); }
.nature { margin-top: 14px; font-size: 14px; color: var(--ink-2); background: var(--tint); padding: 10px 14px; border-radius: 10px; }
.share { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--ink-3); }
.share a, .share button { color: var(--ink-2); font: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.article-body { padding-bottom: clamp(56px, 8vw, 96px); }
.article-body > * + * { margin-top: 36px; }
.article-body > :first-child { margin-top: 36px; }
.video { border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video-btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: var(--navy); }
.video-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-note { padding: 8px 14px; font-size: 12.5px; color: var(--grey); }
.video-empty { position: relative; }
.video-empty .thumb-svg { display: block; width: 100%; height: auto; opacity: .6; }
.video-empty p { position: absolute; left: 16px; bottom: 16px; right: 16px; }
.why p { font-size: 18px; line-height: 1.7; color: var(--ink); }
.key-findings { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: 24px 26px; }
.key-findings ul { padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.key-findings li::marker { color: var(--cyan-ink); }
.takeaway { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; }
.takeaway .label-h { color: var(--amber); }
.takeaway p { font-size: 17px; line-height: 1.7; }
.sources ul { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.src-date { color: var(--ink-3); }
.disclaimer-box { font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 20px; }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.article-cta p { color: var(--ink-2); }

/* article prose (incl. migrated "Just Stop Being Poor" chapter components) */
.article-content { color: var(--ink-2); }
.article-content .prose > p { margin-top: 18px; font-size: 17px; line-height: 1.8; max-width: 68ch; }
.article-content .prose > p:first-child { margin-top: 0; }
.article-content strong { color: var(--ink); font-weight: 600; }
.article-content em { color: var(--ink); }
.article-content h2.h2 { margin: clamp(48px, 7vw, 72px) 0 20px; padding-top: 28px; border-top: 1px solid var(--rule); font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; color: var(--ink); max-width: 30ch; }
.article-content > h2.h2:first-child { margin-top: 0; }
.article-content h3.h3 { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 27px); color: var(--ink); }
.article-content h3.h3 .num { font-family: var(--font-mono); font-size: 14px; color: var(--amber-ink); }
.article-content h4.h4 { margin-top: 32px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); font-weight: 500; }
.article-content h4.h4-story { margin-top: 32px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 20px; color: var(--ink); }
.article-content .quote { margin-top: 28px; padding-left: 22px; border-left: 3px solid var(--amber); font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.5; color: var(--ink); }
.article-content .quote cite { display: block; margin-top: 10px; font-family: var(--font-mono); font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.article-content .attach { margin-top: 36px; padding: 26px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.article-content .attach h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; color: var(--ink); }
.article-content .attach > p { margin-top: 12px; font-size: 16px; line-height: 1.75; }
.article-content .stat-row { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
@media (min-width: 640px) { .article-content .stat-row { grid-template-columns: repeat(3, 1fr); } }
.article-content .stat-row .k { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: 4px; }
.article-content .stat-row .v { display: block; font-size: 14.5px; }
.article-content .toc-grid { margin-top: 28px; display: grid; gap: 10px; }
@media (min-width: 640px) { .article-content .toc-grid { grid-template-columns: 1fr 1fr; } }
.article-content .toc-item { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink-2); }
.article-content .toc-item:hover { border-color: var(--ink-3); color: var(--ink); }
.article-content .toc-item .n { font-family: var(--font-mono); font-size: 12px; color: var(--amber-ink); }
.article-content .toc-item .t { font-size: 14.5px; }
.article-content .shadow { margin-top: clamp(48px, 7vw, 72px); padding-top: 36px; border-top: 1px solid var(--rule); }
.article-content .belief { margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--amber); background: #FFF8E8; border-radius: 0 10px 10px 0; max-width: 58ch; }
.article-content .belief .label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 6px; }
.article-content .belief p { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--ink); line-height: 1.5; }
.article-content ul.plain { margin-top: 14px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 66ch; }
.article-content ul.plain li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.7; }
.article-content ul.plain li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; height: 2px; background: var(--amber); }
.article-content .concept { margin-top: 22px; }
.article-content .concept .term { font-weight: 600; color: var(--ink); }
.article-content .concept .term .letter { font-family: var(--font-mono); color: var(--amber-ink); margin-right: 6px; font-weight: 400; }
.article-content .concept p { margin-top: 6px; font-size: 16px; line-height: 1.75; max-width: 66ch; }
.article-content .pull { margin-top: 28px; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 23px); color: var(--ink); line-height: 1.5; max-width: 46ch; }
.article-content .pull + .pull { margin-top: 12px; }
.toc-rail { display: none; position: fixed; top: 50%; right: 28px; transform: translateY(-50%); z-index: 40; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
@media (min-width: 1280px) { .toc-rail { display: flex; } }
.toc-rail .toc-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.toc-rail.active .toc-label { color: var(--ink); }
.toc-rail .toc-track { display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.toc-rail .toc-dot { width: 16px; height: 2px; background: #C5CEDA; transition: width .3s var(--ease), background .3s; }
.toc-rail .toc-dot.active { width: 28px; background: var(--amber); }
/* data tables & figures */
.figure { margin-top: 32px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.data-table caption { caption-side: top; text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 10px; }
.data-table th, .data-table td { padding: 10px 16px; border-bottom: 1px solid var(--rule); text-align: left; }
.data-table thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--tint); }
.data-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table tbody th { font-weight: 400; color: var(--ink-2); }
.data-table tr.sub th, .data-table tr.sub td { font-weight: 600; color: var(--ink); }
.data-table tr.total th, .data-table tr.total td { font-weight: 600; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 0; }
.figure figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- start here ---------- */
.path { list-style: none; padding: 0; display: grid; gap: 0; }
.path-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.path-step h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; }
.path-step p { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }
.path-step .step-num { box-shadow: none; }
.path-links { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; }
.path-links a { font-weight: 600; }
.path-links span { color: var(--ink-3); font-size: 14px; }
.ideas { display: grid; gap: 16px; padding: 8px 0 28px 76px; border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .ideas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ideas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ideas { padding-left: 0; } .path-step { grid-template-columns: 1fr; gap: 12px; } }
.idea { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.idea-num { font-family: var(--font-mono); font-size: 12px; color: var(--amber-ink); }
.idea h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.25; margin-top: 8px; }
.idea p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ---------- about ---------- */
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } }
.prose-block > * + * { margin-top: 16px; }
.prose-block p { color: var(--ink-2); font-size: 17px; line-height: 1.75; max-width: 66ch; }
.prose-block h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin-top: 36px; }
.standards { list-style: none; padding: 0; display: grid; gap: 14px; }
.standards li { padding: 16px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; color: var(--ink-2); }
.standards strong { color: var(--ink); display: block; }
.facts { display: grid; gap: 0; margin: 4px 0 20px; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.guide .label-h { margin-top: 32px; }

/* ---------- book ---------- */
.book-hero { display: grid; gap: 36px; align-items: end; }
@media (min-width: 960px) { .book-hero { grid-template-columns: 1.2fr .8fr; } }
.session-facts { display: grid; gap: 0; background: var(--navy-2); border: 1px solid var(--rule-dark); border-radius: var(--radius); padding: 6px 22px; }
.session-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
.session-facts div:last-child { border-bottom: 0; }
.session-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
.session-facts dd { margin: 0; color: var(--white); }
.book-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .book-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.book-info .h-sub + * { margin-bottom: 36px; }
.tick-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--cyan-ink); border-bottom: 2px solid var(--cyan-ink); transform: rotate(-45deg); }
.mini-steps { padding-left: 22px; display: grid; gap: 14px; color: var(--ink-2); }
.mini-steps strong { color: var(--ink); }
.mini-steps li::marker { font-family: var(--font-mono); color: var(--amber-ink); }
.book-form { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.book-form .h-sub { margin-bottom: 0; }
.book-form .field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.book-form .field label,.book-form .field legend { font-weight: 600; font-size: 15px; color: var(--ink); padding: 0; }
.book-form .field legend { margin-bottom: 8px; }
.book-form .optional { font-weight: 400; color: var(--ink-3); }
.book-form .field-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .book-form .field-row { grid-template-columns: 1fr 1fr; } }
.book-form .field input[type=text],.book-form .field input[type=email],.book-form .field input[type=tel],.book-form .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #C5CEDA; border-radius: 10px; background: var(--white); font: inherit; color: var(--ink); }
.book-form .field input:focus,.book-form .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(54, 217, 245, .35); }
.book-form .field [aria-invalid="true"] { border-color: #B42318 !important; }
.book-form .radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.book-form .radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid #C5CEDA; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.book-form .radio:has(input:checked) { border-color: var(--navy); background: var(--navy); color: var(--white); }
.book-form .field .radio { padding: 8px 16px 8px 14px; font-weight: 500; }
.book-form .radio input { accent-color: var(--amber); width: 16px; height: 16px; margin: 0; }
.book-form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 14.5px !important; color: var(--ink-2) !important; line-height: 1.55; cursor: pointer; }
.book-form .check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); flex-shrink: 0; }
.form-error { color: #B42318; font-weight: 600; font-size: 14.5px; }
.form-done { border: 1.5px solid var(--cyan-ink); background: #EAF9FC; border-radius: 12px; padding: 20px; display: grid; gap: 10px; }
.form-done h3 { font-family: var(--font-display); font-size: 21px; font-weight: 500; }
.form-done p { color: var(--ink-2); font-size: 15px; }
.form-done .btn { justify-self: start; }
.faq { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--ink-3); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin-top: 10px; color: var(--ink-2); max-width: 64ch; }

/* ---------- contact ---------- */
.contact-cards { display: grid; gap: 16px; margin-bottom: 24px; }
.contact-card { display: grid; gap: 6px; padding: 22px 24px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-card:hover { border-color: var(--ink-3); color: var(--ink); box-shadow: var(--shadow); }
.contact-card strong { font-family: var(--font-display); font-size: 21px; font-weight: 500; }

/* ---------- tools ---------- */
.calc input:focus-visible, .calc select:focus-visible { outline: none; }
.calc .radio input { accent-color: var(--amber); width: 16px; height: 16px; margin: 0; }
.calc .radio { align-items: center; }
.tool-shell { background: var(--navy); color: var(--paper); }
.tool-shell .calc { margin: 0 auto; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.tool-shell .calc .crumbs a { color: var(--grey); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(245, 247, 250, .78); padding: clamp(56px, 8vw, 88px) 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--rule-dark); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 14px; max-width: 40ch; }
.site-footer h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-legal { padding-top: 28px; display: grid; gap: 12px; font-size: 13px; line-height: 1.65; color: var(--grey); }
.footer-legal p { max-width: 110ch; }
.footer-base { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .share, .article-cta, .toc-rail { display: none; } body { background: #fff; } }

.guide-role + .prose-block { margin-top: 20px; }
