/*!
 * FxLayer public website — "fintech light" design system.
 * Used by every public page: home, solutions, pricing, workbench, partners,
 * terms, login, signup, partner-signup. Signed-in consoles keep theme.css.
 *
 * Layers (each depends only on the ones above):
 *   1 Tokens · 2 Base · 3 Layout · 4 Components (shared class names that the
 *   auth pages, common.js terms gate/toasts and site.js header/footer rely on)
 *   5 Marketing modules (one prefix each; drop into any page)
 *   6 Motion (CSS-only loops, paused under prefers-reduced-motion) · 7 Utilities
 * Header/footer markup is rendered by assets/js/site.js; interactive marketing
 * blocks are wired by assets/js/site-modules.js through data-module attributes.
 */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #F6F8FC; --bg-2: #FFFFFF; --bg-soft: #F1F4FA; --bg-tint: #EEF3FB;
  --ink: #0B1226; --text: #1B2440; --text-2: #3A4560; --text-3: #6B7590;
  --line: rgba(11, 18, 38, 0.08); --line-strong: rgba(11, 18, 38, 0.16);

  --blue: #2F6BFF; --blue-deep: #1D4ED8; --blue-soft: rgba(47,107,255,.10); --blue-line: rgba(47,107,255,.35);
  --mint: #17D3A0; --mint-deep: #0E9C76; --mint-soft: rgba(23,211,160,.12);
  --violet: #7C5CFF; --violet-deep: #6544F5; --violet-soft: rgba(124,92,255,.12);
  --amber: #B45309; --amber-soft: rgba(245,158,11,.12); --amber-line: rgba(245,158,11,.5);
  --green: #0E9C76; --green-soft: rgba(23,211,160,.12); --green-line: rgba(23,211,160,.5);
  --red: #E11D48; --red-soft: rgba(244,63,94,.10); --red-line: rgba(244,63,94,.4);
  --navy: #0B1226; --navy-2: #1D4ED8; --brand: #2F6BFF; --brand-2: #7C5CFF;
  --brand-soft: var(--blue-soft); --brand-line: var(--blue-line); --sky: #17D3A0; --sky-soft: var(--mint-soft);
  --grad-brand: linear-gradient(120deg, #2F6BFF 0%, #7C5CFF 55%, #17D3A0 120%);
  --brand-grad: var(--grad-brand);
  --grad-text: linear-gradient(95deg, #1D4ED8 0%, #7C5CFF 50%, #0EA37D 100%);

  --glass-bg: rgba(255,255,255,.62); --glass-bg-2: rgba(255,255,255,.84); --glass-line: rgba(255,255,255,.85); --glass-blur: 18px;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-xs: 8px; --radius-sm: 11px; --radius: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(11,18,38,.05); --shadow-sm: 0 2px 6px rgba(11,18,38,.06);
  --shadow: 0 8px 30px rgba(11,18,38,.07); --shadow-lg: 0 24px 60px rgba(11,18,38,.12);
  --glow-blue: 0 0 0 1px rgba(47,107,255,.18), 0 12px 40px rgba(47,107,255,.22);
  --glow-mint: 0 0 0 1px rgba(23,211,160,.18), 0 12px 40px rgba(23,211,160,.22);
  --glow-violet: 0 0 0 1px rgba(124,92,255,.18), 0 12px 40px rgba(124,92,255,.18);
  --ring: 0 0 0 4px rgba(47,107,255,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 72px; --topbar-h: 32px; --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text-2); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::before, body::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .5; }
body::before { width: 60vw; height: 60vw; left: -20vw; top: -20vw; background: radial-gradient(circle, rgba(47,107,255,.35), transparent 60%); animation: drift-a 26s ease-in-out infinite alternate; }
body::after { width: 50vw; height: 50vw; right: -18vw; bottom: -18vw; background: radial-gradient(circle, rgba(23,211,160,.30), transparent 60%); animation: drift-b 32s ease-in-out infinite alternate; }
img, svg { max-width: 100%; }
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(36px, 5.2vw, 62px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(47,107,255,.45); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .95em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.text-center { text-align: center; }
.text-sm { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.grad-text, .text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 1000; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow, .container--narrow { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-sm, .section--tight { padding: clamp(40px, 6vw, 72px) 0; position: relative; }
.section-soft, .section-tint, .section--tint { background: linear-gradient(180deg, transparent, rgba(238,243,251,.9) 18%, rgba(238,243,251,.9) 82%, transparent); }
.section-line { border-top: 0; }
.section-head, .section__head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head.left, .section__head--left { margin-left: 0; text-align: left; }
.section-head h2, .section__head h2 { margin-top: 10px; }
.section-head .lead, .section__head .lead { margin-top: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.eyebrow.blue { color: var(--blue-deep); }
.eyebrow.mint, .eyebrow--mint { color: var(--mint-deep); }
.eyebrow.violet, .eyebrow--violet { color: var(--violet-deep); }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.65; color: var(--text-2); }
.grid { display: grid; gap: 20px; }
.grid-2, .grid--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3, .grid--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4, .grid--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split.wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split--reverse > :first-child { order: 2; }
.stack-8 > * + * { margin-top: 8px; } .stack-12 > * + * { margin-top: 12px; } .stack-16 > * + * { margin-top: 16px; } .stack-24 > * + * { margin-top: 24px; }
.stack { display: grid; gap: 12px; }
.row, .flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between, .between { justify-content: space-between; }
.btn-row, .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1024px) {
  .grid-4, .grid--4, .grid-3, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.wide-left, .split.wide-right { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid--2, .grid-3, .grid--3, .grid-4, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- 4. Components ------------------------------------------------ */
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-family: var(--font-display); font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary, .btn--primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(11,18,38,.18); }
.btn-primary:hover, .btn--primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(11,18,38,.24); }
.btn-brand, .btn--brand { background: var(--grad-brand); background-size: 200% 200%; color: #fff; box-shadow: var(--glow-blue); animation: gradient-shift 8s ease infinite; }
.btn-brand:hover, .btn--brand:hover { color: #fff; }
.btn-ghost, .btn--ghost { background: var(--glass-bg-2); border-color: var(--line-strong); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover, .btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-soft { background: var(--blue-soft); color: var(--blue-deep); }
.btn-soft:hover { background: rgba(47,107,255,.16); color: var(--blue-deep); }
.btn-link { height: auto; padding: 0; background: none; color: var(--blue-deep); border: 0; }
.btn-sm, .btn--sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg, .btn--lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block, .btn--block { width: 100%; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--radius-pill); font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; border: 1px solid transparent; background: var(--blue-soft); color: var(--blue-deep); }
.badge-brand, .badge-blue { background: var(--blue-soft); color: var(--blue-deep); }
.badge-green, .badge--mint { background: var(--mint-soft); color: var(--mint-deep); }
.badge-violet, .badge--violet { background: var(--violet-soft); color: var(--violet-deep); }
.badge-amber, .badge--amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-neutral { background: rgba(11,18,38,.06); color: var(--text-2); }
.badge-navy, .badge--ink { background: var(--ink); color: #fff; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
.badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.pill-note { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--radius-pill); background: var(--glass-bg-2); border: 1px solid var(--line); box-shadow: var(--shadow-xs); font-size: 13.5px; color: var(--text-2); backdrop-filter: blur(8px); }
.pill-note .badge { height: 24px; }
@media (max-width: 600px) { .badge { white-space: normal; height: auto; min-height: 28px; padding: 5px 11px; line-height: 1.3; } .pill-note { align-items: flex-start; } }

/* Glass card (new) and classic card (legacy name, same look) */
.glass, .card, .aside-card, .form-card, .panel, .accordion-item, .step, .price-card, .doc-group { position: relative; background: var(--glass-bg); border: 1px solid var(--glass-line); border-radius: var(--radius); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9); min-width: 0; }
.glass { padding: 26px; }
.glass--lg, .card-lg { border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); }
.glass--solid { background: var(--glass-bg-2); }
.glass--hover, .card-hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.glass--hover:hover, .card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.9); border-color: var(--blue-line); text-decoration: none; }
.card { padding: 26px; }
.card h3 + p, .card h4 + p, .glass h3 + p, .glass h4 + p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.card-icon, .glass__icon { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--blue-soft); color: var(--blue-deep); }
.card-icon svg, .glass__icon svg { width: 22px; height: 22px; }
.card-icon.brand, .glass__icon--violet { background: var(--violet-soft); color: var(--violet-deep); }
.card-icon.sky, .card-icon.green, .glass__icon--mint { background: var(--mint-soft); color: var(--mint-deep); }
.card-icon.navy { background: var(--ink); color: #fff; }
.card-icon.amber, .glass__icon--amber { background: var(--amber-soft); color: var(--amber); }
.glass .glass__ribbon { position: absolute; top: -14px; right: 18px; box-shadow: var(--shadow-xs); }

/* Checklist: <li><i data-icon="check"></i><span>…</span></li> */
.checklist { list-style: none; display: grid; gap: 11px; }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-2); font-size: 14.5px; }
.checklist li > i, .checklist li > svg, .checklist li > [data-icon] { width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-deep); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.checklist li > [data-icon] > svg, .checklist li > svg { width: 12px; height: 12px; stroke-width: 3; }
.checklist li strong { color: var(--ink); font-weight: 600; }
.checklist.compact li, .checklist--tight li { font-size: 13.5px; gap: 8px; }

/* Stats */
.stat-strip, .stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-strip .stat, .stat-band .stat { display: grid; gap: 4px; padding: 22px 24px; }
.stat-value, .stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.stat-value small, .stat__value small { font-size: .45em; color: var(--text-3); margin-left: 4px; letter-spacing: 0; font-weight: 700; }
.stat-label, .stat__label { font-size: 13.5px; color: var(--text-3); line-height: 1.45; }
@media (max-width: 900px) { .stat-strip, .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stat-strip, .stat-band { grid-template-columns: minmax(0, 1fr); } }

/* Steps (numbered cards) */
.steps { counter-reset: step; display: grid; gap: 20px; }
.steps.row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 26px 24px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px; margin-bottom: 14px; box-shadow: var(--glow-blue); }
.step h4 + p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 1024px) { .steps.row-4, .steps.row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .steps.row-4, .steps.row-3 { grid-template-columns: minmax(0, 1fr); } }

/* Tabs / segmented / switch / range */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(11,18,38,.06); border: 1px solid var(--line); border-radius: var(--radius-pill); flex-wrap: wrap; max-width: 100%; }
.tab { border: 0; background: transparent; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-3); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs), 0 0 0 1px var(--line); }
.tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.segmented { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: rgba(11,18,38,.06); border: 1px solid var(--line); }
.segmented button { height: 38px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-3); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.segmented button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs), 0 0 0 1px var(--line); }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 50px; height: 28px; border-radius: 999px; background: rgba(11,18,38,.18); position: relative; transition: background .25s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.switch input:checked + .switch__track { background: var(--grad-brand); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid rgba(47,107,255,.45); outline-offset: 3px; }
input[type=range].range, .field input.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; padding: 0; border: 0; border-radius: 999px; box-shadow: none; background: linear-gradient(90deg, var(--blue) var(--fill, 0%), rgba(11,18,38,.12) var(--fill, 0%)); outline: none; cursor: pointer; }
input[type=range].range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 2px 8px rgba(47,107,255,.35); cursor: pointer; }
input[type=range].range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 2px 8px rgba(47,107,255,.35); cursor: pointer; }
input[type=range].range.brand::-webkit-slider-thumb { border-color: var(--violet); }
input[type=range].range.brand::-moz-range-thumb { border-color: var(--violet); }

/* Panels, tables, meters, kv, callouts */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 20px; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line-strong); font-size: 14.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv .k { color: var(--text-2); }
.kv .v { margin: 0; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass-bg-2); backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--shadow-xs); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-family: var(--font-display); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: rgba(238,243,251,.8); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .group td { background: rgba(238,243,251,.8); font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 16px; }
.table .yes { color: var(--mint-deep); font-weight: 700; }
.table .no { color: var(--text-3); }
.meter, .progress-bar { height: 8px; border-radius: var(--radius-pill); background: rgba(11,18,38,.08); overflow: hidden; }
.meter > span, .progress-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); background-size: 200% 100%; animation: gradient-shift 4s linear infinite; transition: width .45s var(--ease); }
.meter.green > span { background: var(--mint); animation: none; } .meter.amber > span { background: #F59E0B; animation: none; } .meter.red > span { background: var(--red); animation: none; }
.callout { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--blue-line); background: var(--blue-soft); color: #1E3A8A; font-size: 14px; line-height: 1.55; }
.callout svg { width: 20px; height: 20px; margin-top: 1px; }
.callout.green { border-color: var(--green-line); background: var(--green-soft); color: #065F46; }
.callout.amber { border-color: var(--amber-line); background: var(--amber-soft); color: #7A4A00; }
.callout.red { border-color: var(--red-line); background: var(--red-soft); color: #8A1C26; }
.callout.neutral { border-color: var(--line); background: rgba(238,243,251,.9); color: var(--text-2); }

/* Forms */
.form-card { border-radius: var(--radius-lg); padding: 36px; background: var(--glass-bg-2); }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.form-section-title .num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--grad-brand); color: #fff; font-size: 12px; }
.form-section-desc { font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.form-grid > * { grid-column: span 12; min-width: 0; }
.form-grid > .col-6 { grid-column: span 6; } .form-grid > .col-4 { grid-column: span 4; } .form-grid > .col-8 { grid-column: span 8; } .form-grid > .col-3 { grid-column: span 3; } .form-grid > .col-9 { grid-column: span 9; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid > .col-6, .form-grid > .col-4, .form-grid > .col-8, .form-grid > .col-3, .form-grid > .col-9 { grid-column: span 12; } .form-card { padding: 24px 18px; border-radius: var(--radius); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.field > label, .field .label { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.field .req { color: var(--red); margin-left: 2px; }
.field .optional { color: var(--text-3); font-weight: 500; }
.field input, .field select, .field textarea, .input { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(255,255,255,.9); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.4; transition: border-color .15s, box-shadow .15s, background .15s; text-overflow: ellipsis; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7590' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input::placeholder, .field textarea::placeholder { color: #9AA6BD; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(11,18,38,.3); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.field input[readonly] { background: var(--bg-soft); color: var(--text-2); }
.field input.err, .field select.err, .field textarea.err, .field.has-error input, .field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: #FFFBFB; }
.field input.err:focus { box-shadow: 0 0 0 4px rgba(244,63,94,.12); }
.field input[type=checkbox], .field input[type=radio] { width: 18px; height: 18px; min-width: 18px; padding: 0; flex: none; border-radius: 4px; accent-color: var(--blue); box-shadow: none; }
.field-hint, .field .hint { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.field-error, .field .error { font-size: 12.5px; color: var(--red); font-weight: 500; line-height: 1.4; }
.field-error:empty, .field .error:empty { display: none; }
.field .input-wrap { position: relative; }
.field .input-wrap input { padding-right: 76px; }
.field .input-addon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(11,18,38,.06); color: var(--text-2); font-family: var(--font-display); font-size: 12px; font-weight: 700; cursor: pointer; }
.field .input-addon:hover { color: var(--ink); background: rgba(11,18,38,.1); }
.field.is-valid input { border-color: rgba(23,211,160,.7); }
.code-input { font-family: var(--font-mono) !important; font-size: 26px !important; letter-spacing: .4em; text-align: center; height: 60px !important; }
.pw-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 2px; }
.pw-meter span { height: 4px; border-radius: 4px; background: rgba(11,18,38,.1); transition: background .2s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: #F59E0B; }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: var(--mint); }
.pw-meter[data-score="4"] span { background: var(--mint); }
.alert-banner { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; border: 1px solid transparent; }
.alert-banner.show { display: flex; }
.alert-banner.danger { background: var(--red-soft); border-color: var(--red-line); color: #8A1C26; }
.alert-banner.info { background: var(--blue-soft); border-color: var(--blue-line); color: #1E3A8A; }
.alert-banner.success { background: var(--green-soft); border-color: var(--green-line); color: #065F46; }
.alert-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 0; list-style: none; margin-bottom: 28px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text-3); }
.stepper li + li::before { content: ''; flex: 0 0 24px; height: 2px; background: rgba(11,18,38,.1); margin-right: 2px; border-radius: 2px; }
.stepper li .n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(11,18,38,.06); border: 1px solid var(--line-strong); color: var(--text-3); font-size: 12.5px; }
.stepper li .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.is-active { color: var(--ink); }
.stepper li.is-active .n { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--glow-blue); }
.stepper li.is-done { color: var(--mint-deep); }
.stepper li.is-done .n { background: var(--mint); border-color: var(--mint); color: #fff; }
.stepper li.is-done + li::before, .stepper li.is-active + li::before { background: var(--mint); }
@media (max-width: 560px) { .stepper li .t { display: none; } .stepper li.is-active .t { display: inline; } }

/* Auth layout */
.auth-main { padding: clamp(32px, 5vw, 56px) 0 88px; min-height: calc(100vh - var(--header-h)); position: relative; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.auth-grid.narrow { grid-template-columns: minmax(0, 480px) minmax(0, 400px); justify-content: center; }
.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.auth-head p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.aside-card { border-radius: var(--radius-lg); padding: 24px; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card h3 { font-size: 16px; }
.aside-card .aside-sub { font-size: 13.5px; color: var(--text-3); margin-top: 4px; margin-bottom: 16px; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.req-list { list-style: none; display: grid; gap: 14px; }
.req-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.req-list .req-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; }
.req-list .req-icon svg { width: 18px; height: 18px; }
.req-list strong { display: block; font-size: 14px; color: var(--ink); font-weight: 700; line-height: 1.35; }
.req-list span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.5; margin-top: 2px; }
.help-list { list-style: none; display: grid; gap: 14px; }
.help-list li strong { display: block; color: var(--ink); font-size: 14px; }
.help-list li span { display: block; color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.next-list { list-style: none; counter-reset: n; display: grid; gap: 12px; }
.next-list li { counter-increment: n; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.next-list li::before { content: counter(n); width: 26px; height: 26px; border-radius: 8px; background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.next-list li strong { color: var(--ink); }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: var(--glow-mint); }
.success-mark svg { width: 30px; height: 30px; }
@media (max-width: 1024px) { .auth-grid, .auth-grid.narrow { grid-template-columns: minmax(0, 1fr); } .aside-sticky { position: static; } }
.qr-box { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.qr-box img { width: 168px; height: 168px; display: block; }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.code-grid > div { font-family: var(--font-mono); font-weight: 600; text-align: center; padding: 10px; border-radius: 10px; background: var(--bg-soft); border: 1px dashed var(--line-strong); color: var(--ink); letter-spacing: .06em; }
.terms-gate { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(238,243,251,.9); transition: border-color .2s, background .2s; }
.terms-gate .tg-icon { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; }
.terms-gate .tg-icon svg { width: 20px; height: 20px; }
.terms-gate strong { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--ink); }
.terms-gate .tg-status { display: block; font-size: 13px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.terms-gate.is-accepted { border-color: var(--green-line); background: var(--green-soft); }
.terms-gate.is-accepted .tg-icon { color: var(--mint-deep); border-color: var(--green-line); }
.terms-gate.is-accepted .tg-status { color: #065F46; font-weight: 600; }
.terms-gate.has-error { border-color: var(--red); background: #FFFBFB; }
@media (max-width: 560px) { .terms-gate { grid-template-columns: 40px minmax(0, 1fr); } .terms-gate .btn { grid-column: 1 / -1; width: 100%; } }

/* Terms modal skin (common.js openTermsGate injects dark base styles) */
body .tfx-terms-overlay { background: rgba(11,18,38,.45); backdrop-filter: blur(6px); }
body .tfx-terms-modal { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
body .tfx-terms-head { border-bottom-color: var(--line); }
body .tfx-terms-head h3 { color: var(--ink); font-family: var(--font-display); font-size: 20px; }
body .tfx-terms-head p { color: var(--text-3); }
body .tfx-terms-close { color: var(--text-3); }
body .tfx-terms-close:hover { color: var(--ink); }
body .tfx-terms-body { color: var(--text); font-size: 14px; }
body .tfx-terms-body h4, body .tfx-terms-body strong { color: var(--ink); font-family: var(--font-display); }
body .tfx-terms-foot { border-top-color: var(--line); background: var(--bg-soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
body .tfx-terms-hint { color: var(--text-3); }
body .tfx-terms-hint.ready { color: var(--mint-deep); }
body .tfx-terms-accept { background: var(--grad-brand); border-radius: 12px; font-family: var(--font-display); }

/* Toasts (common.js) */
#toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); box-shadow: var(--shadow-lg); color: var(--ink); font-size: 14px; animation: toastIn .3s var(--ease); }
.toast-item.error { border-left-color: var(--red); }
.toast-item.success { border-left-color: var(--mint); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* Accordion (common.js initAccordions) */
.accordion-item { margin-bottom: 10px; overflow: hidden; background: var(--glass-bg-2); }
.accordion-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-display); font-size: 15.5px; font-weight: 700; color: var(--ink); }
.accordion-trigger .chev { flex-shrink: 0; width: 18px; height: 18px; color: var(--text-3); transition: transform .25s var(--ease); }
.accordion-item.open .accordion-trigger .chev { transform: rotate(180deg); color: var(--blue-deep); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.accordion-item.open .accordion-panel { max-height: 800px; }
.accordion-panel-inner { padding: 0 20px 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; }

/* Header */
.site-topbar { background: var(--ink); color: rgba(255,255,255,.72); font-size: 12.5px; }
.site-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--topbar-h); }
.site-topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-topbar a svg { width: 14px; height: 14px; }
.site-topbar a:hover { text-decoration: none; color: var(--mint); }
.site-topbar .topbar-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-topbar .topbar-links { display: flex; gap: 18px; flex-shrink: 0; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,248,252,.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -16px rgba(11,18,38,.35); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-logo, .brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; text-decoration: none !important; }
.brand__logo { height: 36px; width: auto; display: block; flex: none; }
.footer-brand .brand__logo { height: 32px; }
.brand em { font-style: normal; color: var(--blue-deep); }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-group { position: relative; }
.nav-trigger, .nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav-trigger:hover, .nav-link:hover, .nav-group.is-open .nav-trigger { background: rgba(11,18,38,.06); color: var(--ink); text-decoration: none; }
.nav-link.is-active, .nav-group.is-active > .nav-trigger { color: var(--ink); background: rgba(11,18,38,.06); }
.nav-link .badge, .nav-trigger .badge { height: 20px; padding: 0 7px; font-size: 10.5px; }
.nav-caret { width: 14px; height: 14px; transition: transform .2s; color: var(--text-3); }
.nav-group.is-open .nav-caret { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; background: rgba(255,255,255,.92); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .2s var(--ease), visibility .16s; }
.nav-panel.is-mega { width: 680px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-group:last-child .nav-panel { left: auto; right: -8px; }
@media (min-width: 1081px) { .site-nav { justify-content: center; } }
.nav-panel::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-group.is-open .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item { display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); align-items: flex-start; }
.nav-item:hover { background: rgba(11,18,38,.05); text-decoration: none; }
.nav-item .nav-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-item .nav-icon svg { width: 18px; height: 18px; }
.nav-item .nav-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.3; }
.nav-item .nav-desc { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.45; margin-top: 2px; }
.nav-panel-foot { grid-column: 1 / -1; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(238,243,251,.9); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.site-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--glass-bg-2); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.burger svg { width: 22px; height: 22px; }
.mobile-drawer { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: rgba(246,248,252,.97); backdrop-filter: blur(20px); z-index: 99; overflow-y: auto; padding: 16px var(--gutter) 40px; display: none; border-top: 1px solid var(--line); }
.mobile-drawer.is-open { display: block; }
.mobile-drawer .m-group { border-bottom: 1px solid var(--line); }
.mobile-drawer .m-group > button, .mobile-drawer .m-link { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 16px 4px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer; }
.mobile-drawer .m-link { border-bottom: 1px solid var(--line); }
.mobile-drawer .m-items { display: none; padding: 0 0 12px; }
.mobile-drawer .m-group.is-open .m-items { display: block; }
.mobile-drawer .m-items a { display: block; padding: 10px 8px; color: var(--text); font-size: 15px; border-radius: 8px; }
.mobile-drawer .m-items a:hover { background: rgba(11,18,38,.05); text-decoration: none; }
.mobile-drawer .m-actions { display: grid; gap: 10px; margin-top: 20px; }
.site-header.is-minimal .container { justify-content: space-between; }
.site-header.is-minimal .site-actions { margin-left: 0; }
@media (max-width: 1080px) { .site-nav, .site-actions .hide-md { display: none; } .burger { display: inline-flex; } }
@media (max-width: 640px) { .site-topbar .topbar-note { display: none; } .site-topbar .container { justify-content: flex-end; } .site-actions .btn-ghost { display: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: rgba(255,255,255,.55); backdrop-filter: blur(12px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--text-3); max-width: 360px; }
.footer-col h4 { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-2); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.footer-bottom a { color: var(--text-2); font-weight: 600; }
.corp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--glass-bg-2); color: var(--ink); font-weight: 700; font-size: 13.5px; }
.corp-link:hover { border-color: var(--ink); text-decoration: none; }
.corp-link svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Reveal, icons, system check */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1, .reveal[data-delay="1"] { transition-delay: .08s; } .reveal.d2, .reveal[data-delay="2"] { transition-delay: .16s; } .reveal.d3, .reveal[data-delay="3"] { transition-delay: .24s; }
:where([data-icon]) { display: inline-flex; align-items: center; justify-content: center; }
:where([data-icon]) > svg { width: 1.2em; height: 1.2em; }
.sys-list { list-style: none; display: grid; gap: 10px; }
.sys-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.sys-list li svg { width: 18px; height: 18px; margin-top: 1px; }
.sys-list li.ok svg { color: var(--mint-deep); } .sys-list li.warn svg { color: #D97706; } .sys-list li.pending svg, .sys-list li.info svg { color: var(--text-3); }
.sys-list li strong { color: var(--ink); font-weight: 600; }
.sys-list .note { display: block; font-style: normal; color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.sys-list .note:empty { display: none; }

/* Hero, page hero, CTA */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(11,18,38,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,18,38,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero > .container { position: relative; z-index: 1; }
.hero__grid, .hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 22px; max-width: 580px; }
.hero-proof, .hero__proof { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-size: 13.5px; color: var(--text-3); }
.hero-proof span, .hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg, .hero__proof svg { width: 16px; height: 16px; color: var(--mint-deep); flex-shrink: 0; }
@media (max-width: 960px) { .hero__grid, .hero-split { grid-template-columns: minmax(0, 1fr); } }
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 14px; }
.page-hero .lead { max-width: 740px; margin: 18px auto 0; }
.page-hero.left { text-align: left; } .page-hero.left .lead { margin-left: 0; }
.cta-band { text-align: center; padding: clamp(40px, 6vw, 72px); border-radius: var(--radius-lg); position: relative; overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 14px; max-width: 620px; margin-left: auto; margin-right: auto; font-size: 17px; }
.cta-band::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, rgba(47,107,255,.35), rgba(124,92,255,.25), rgba(23,211,160,.35), rgba(47,107,255,.35)); animation: spin 18s linear infinite; filter: blur(60px); opacity: .8; }
.cta-band > * { position: relative; }
.cta-band .btn-row, .cta-band .hero-actions { justify-content: center; }
.cta-band .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* App preview mock (legacy screenshot frame) */
.mock-window { background: var(--glass-bg-2); border: 1px solid var(--glass-line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; backdrop-filter: blur(var(--glass-blur)); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(11,18,38,.14); display: inline-block; }
.mock-bar i:nth-child(1) { background: #FF5F57; } .mock-bar i:nth-child(2) { background: #FEBC2E; } .mock-bar i:nth-child(3) { background: #28C840; }
.mock-bar .mock-url { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 18px; }
.mock-body.is-screenshot { padding: 0; line-height: 0; }
.mock-body.is-screenshot img { display: block; width: 100%; height: auto; }

/* Pricing cards (legacy names, new look) */
.price-card, .plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); }
.price-card.is-featured, .plan--featured { border-color: var(--blue-line); box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255,255,255,.9); }
.price-card .ribbon { position: absolute; top: -14px; right: 18px; box-shadow: var(--shadow-xs); }
.price-card h3, .plan__name { font-size: 22px; }
.plan__code, .price-card .code { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 4px; }
.price-card .price, .plan__price { margin-top: 18px; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 38px; letter-spacing: -0.03em; line-height: 1; }
.price-card .price small, .plan__price small { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-left: 4px; white-space: nowrap; }
.price-card .price-gst, .plan__gst { margin-top: 8px; font-size: 12.5px; color: var(--text-3); font-family: var(--font-mono); }
.price-card .price-total { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.price-card .per-month-note, .plan__save { font-size: 12.5px; color: var(--mint-deep); font-weight: 700; margin-top: 4px; min-height: 18px; }
.plan__cap, .price-card .cap { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(238,243,251,.9); font-size: 13.5px; color: var(--text-2); }
.plan__cap strong, .price-card .cap strong { color: var(--ink); }
.plan__modules, .price-card .mods { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.plan__modules .k { font-family: var(--font-display); font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.plan__modules ul { list-style: none; display: grid; gap: 7px; }
.plan__modules li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.plan__modules li a { color: inherit; }
.plan__modules li .badge { height: 22px; font-size: 11px; }
.plan__modules li.is-off { color: var(--text-3); }
.plan__modules li.is-off .badge { background: rgba(11,18,38,.06); color: var(--text-3); }
.price-card .checklist { margin-top: 16px; }
.price-card .price-foot, .plan__foot { margin-top: auto; padding-top: 22px; }
.free-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.free-band .plan__price { margin-top: 0; }
.addon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; }
.addon strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 16px; }
.addon span { font-size: 13.5px; color: var(--text-3); }
.addon .plan__price { margin-top: 0; font-size: 26px; text-align: right; }
.addon .plan__price small { display: block; margin: 4px 0 0; }
.addon.is-featured { border-color: rgba(124,92,255,.5); box-shadow: var(--glow-violet), inset 0 1px 0 rgba(255,255,255,.9); }
.volume { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; }
.volume__out { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--ink); }
.volume__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.volume__rec { display: grid; gap: 10px; }
.volume__rec .kv > div { padding: 8px 0; }
.volume__rec .summary-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 18px; }
@media (max-width: 960px) { .free-band { grid-template-columns: minmax(0, 1fr); } .volume { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 5. Marketing modules ----------------------------------------- */
/* Flow visualiser */
.flow-viz { position: relative; }
.flow-viz__svg { width: 100%; height: auto; overflow: visible; }
.flow-viz__frame { padding: 18px; }
.flow-viz .fv-link { fill: none; stroke: rgba(11,18,38,.14); stroke-width: 2; }
.flow-viz .fv-pulse { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 200; animation: dash-flow 3.2s linear infinite; }
.flow-viz .fv-pulse--blue { stroke: var(--blue); } .flow-viz .fv-pulse--mint { stroke: var(--mint); animation-delay: -1.1s; } .flow-viz .fv-pulse--violet { stroke: var(--violet); animation-delay: -2.1s; }
.flow-viz .fv-node { fill: rgba(255,255,255,.9); stroke: rgba(11,18,38,.12); stroke-width: 1.2; filter: drop-shadow(0 6px 14px rgba(11,18,38,.08)); }
.flow-viz .fv-node--core { fill: url(#fvCore); stroke: rgba(47,107,255,.5); animation: node-glow 3s ease-in-out infinite; }
.flow-viz .fv-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; fill: var(--ink); }
.flow-viz .fv-sub { font-family: var(--font-sans); font-size: 9.5px; fill: var(--text-3); }
.flow-viz .fv-core-label { fill: #fff; font-size: 12px; } .flow-viz .fv-core-sub { fill: rgba(255,255,255,.85); }
.flow-viz .fv-tick { fill: var(--mint); animation: pulse 2s ease-in-out infinite; }
.flow-viz__float { position: absolute; padding: 12px 14px; border-radius: 12px; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; align-items: center; width: 240px; font-size: 12px; animation: float 6s ease-in-out infinite; }
.flow-viz__float strong { display: block; font-family: var(--font-display); font-size: 12.5px; color: var(--ink); }
.flow-viz__float span { color: var(--text-3); font-size: 11.5px; }
.flow-viz__float .glass__icon { width: 30px; height: 30px; border-radius: 9px; margin: 0; }
.flow-viz__float .glass__icon svg { width: 15px; height: 15px; }
.flow-viz__float--a { right: -10px; top: -52px; }
.flow-viz__float--b { left: -14px; bottom: -44px; animation-delay: -3s; }
@media (max-width: 1100px) { .flow-viz__float--a { right: 0; } .flow-viz__float--b { left: 0; } }
@media (max-width: 600px) { .flow-viz__float { display: none; } }

/* Ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.5); backdrop-filter: blur(10px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; gap: 40px; width: max-content; padding: 14px 0; animation: ticker 40s linear infinite; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.ticker__item b { font-family: var(--font-display); color: var(--ink); }
.ticker__item .up { color: var(--mint-deep); } .ticker__item .down { color: var(--red); }
.ticker__item .led { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: pulse 1.6s ease-in-out infinite; }

/* Layer stack */
.layer-stack { display: grid; gap: 14px; }
.layer { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; }
.layer__tag { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.layer__body strong { display: block; color: var(--ink); font-family: var(--font-display); }
.layer__body span { font-size: 13.5px; color: var(--text-3); }
.layer--core { background: linear-gradient(120deg, rgba(47,107,255,.14), rgba(124,92,255,.14) 60%, rgba(23,211,160,.14)); border-color: rgba(47,107,255,.35); box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255,255,255,.9); }
.layer--core .layer__tag { color: var(--blue-deep); }
.layer .chip-row { margin-top: 8px; }
.layer .badge { height: 24px; font-size: 11.5px; }
@media (max-width: 560px) { .layer { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Scrollytelling */
.scrolly { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.scrolly__steps { display: grid; gap: 22vh; padding: 20vh 0 30vh; }
.scrolly__step { opacity: .35; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.scrolly__step.is-active { opacity: 1; transform: none; }
.scrolly__step .n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.scrolly__step.is-active .n { background: var(--grad-brand); box-shadow: var(--glow-blue); }
.scrolly__step h3 { font-size: 22px; }
.scrolly__step p { margin-top: 10px; font-size: 15px; }
.scrolly__step .chip-row { margin-top: 12px; }
.scrolly__stage { position: sticky; top: calc(var(--header-h) + 24px); }
.scrolly__screen { padding: 0; overflow: hidden; }
.scrolly__body { position: relative; min-height: 430px; }
.scrolly__panel { position: absolute; inset: 0; padding: 22px; opacity: 0; transform: scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.scrolly__panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scrolly__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(11,18,38,.08); }
.scrolly__progress i { display: block; height: 100%; width: 0; background: var(--grad-brand); transition: width .5s var(--ease); }
@media (max-width: 900px) { .scrolly { grid-template-columns: minmax(0, 1fr); } .scrolly__stage { position: relative; top: 0; order: -1; } .scrolly__steps { gap: 40px; padding: 24px 0 0; } .scrolly__step { opacity: 1; transform: none; } }

/* Mock UI primitives */
.mock-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.85); }
.mock-row + .mock-row { margin-top: 10px; }
.mock-row .glass__icon { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.mock-row .glass__icon svg { width: 17px; height: 17px; }
.mock-row strong { display: block; font-family: var(--font-display); font-size: 13.5px; color: var(--ink); }
.mock-row span { font-size: 12px; color: var(--text-3); }
.mock-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mock-kv div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.85); }
.mock-kv .k { display: block; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-family: var(--font-display); }
.mock-kv .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); margin-top: 2px; }
.mock-kv .v.mint { color: var(--mint-deep); } .mock-kv .v.blue { color: var(--blue-deep); } .mock-kv .v.violet { color: var(--violet-deep); }
.mock-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 14px; }
.mock-doc { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; position: relative; overflow: hidden; }
.mock-doc h5 { font-family: var(--font-display); font-size: 13px; margin: 0 0 8px; color: var(--ink); }
.mock-doc .line { height: 8px; border-radius: 4px; background: rgba(11,18,38,.08); margin: 8px 0; }
.mock-doc .line--short { width: 55%; }
.mock-doc .fill { color: var(--blue-deep); font-weight: 600; background: var(--blue-soft); border-radius: 4px; padding: 0 4px; }
.mock-doc .seal { position: absolute; right: 16px; bottom: 14px; width: 62px; height: 62px; border-radius: 50%; border: 2px dashed var(--mint); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 9px; color: var(--mint-deep); text-align: center; line-height: 1.2; animation: seal-in 3.5s ease-in-out infinite; }
.mock-doc .scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--mint), transparent); animation: scan 3s linear infinite; }
.timeline-dots { display: flex; align-items: center; gap: 0; margin: 14px 0 6px; }
.timeline-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(11,18,38,.14); position: relative; flex: none; }
.timeline-dots i.done { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.timeline-dots i.now { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); animation: pulse 1.6s ease-in-out infinite; }
.timeline-dots b { flex: 1; height: 2px; background: rgba(11,18,38,.12); }
.timeline-dots b.done { background: var(--mint); }
.timeline-labels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 10.5px; color: var(--text-3); text-align: center; }
.timeline-labels span:first-child { text-align: left; } .timeline-labels span:last-child { text-align: right; }

/* Feature tiles, modules hub */
.feature { padding: 22px; display: block; color: inherit; }
.feature:hover { text-decoration: none; }
.feature h4 { font-size: 15.5px; }
.feature p { font-size: 13.5px; margin-top: 6px; color: var(--text-3); }
.feature .glass__icon, .feature .card-icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px; }
.feature .glass__icon svg, .feature .card-icon svg { width: 19px; height: 19px; }
.module-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.module-nav a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass-bg-2); font-weight: 600; font-size: 13.5px; color: var(--text-2); text-decoration: none !important; }
.module-nav a:hover { border-color: var(--blue); color: var(--blue-deep); }
.module { scroll-margin-top: calc(var(--header-h) + 16px); }
.module + .module { margin-top: clamp(56px, 8vw, 96px); }
.module__visual { position: relative; }
.module__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.module__metrics .stat { display: grid; gap: 4px; }
.module__metrics .stat__value { font-size: 26px; }
@media (max-width: 560px) { .module__metrics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Rate board, knock-off, savings calculator, tax demo */
.rate-board { display: grid; gap: 8px; }
.rate-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 90px 60px; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.85); font-size: 13px; }
.rate-row .pair { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.rate-row .rate { font-family: var(--font-mono); font-weight: 600; color: var(--ink); text-align: right; }
.rate-row .spread { text-align: right; font-weight: 700; }
.rate-row .spread.good { color: var(--mint-deep); } .rate-row .spread.bad { color: var(--red); }
.rate-row.is-best { border-color: rgba(23,211,160,.6); box-shadow: var(--glow-mint); }
.sparkline { width: 100%; height: 26px; }
.sparkline path { fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 4s ease-in-out infinite; }
.gpi-track { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.85); }
.knock { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); gap: 10px; align-items: center; }
.knock__col { display: grid; gap: 8px; }
.knock__card { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.88); font-size: 12px; }
.knock__card strong { display: block; font-family: var(--font-display); font-size: 12.5px; color: var(--ink); }
.knock__card.is-matched { border-color: rgba(23,211,160,.7); background: var(--mint-soft); }
.knock__link { width: 60px; height: 100%; overflow: visible; }
.knock__link path { fill: none; stroke: var(--mint); stroke-width: 2; stroke-dasharray: 6 6; animation: dash-flow 2s linear infinite; }
.knock__score { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.knock__score .progress-bar { flex: 1; }
.lcalc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.lcalc__out { display: grid; gap: 12px; }
.lcalc__big { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.lcalc__big small { font-size: 14px; color: var(--text-3); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; align-items: center; }
.range-row output { font-family: var(--font-display); font-weight: 800; text-align: right; color: var(--ink); }
@media (max-width: 720px) { .lcalc { grid-template-columns: minmax(0, 1fr); } }
.tax-demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
.tax-demo__result { display: grid; gap: 12px; }
.tax-demo__verdict { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--blue-line); background: linear-gradient(120deg, rgba(47,107,255,.10), rgba(124,92,255,.10)); }
.tax-demo__verdict .k { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; font-family: var(--font-display); }
.tax-demo__verdict .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); margin-top: 2px; }
.tax-demo__reasons { list-style: none; display: grid; gap: 8px; font-size: 13.5px; }
.tax-demo__reasons li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.tax-demo__reasons li::before { content: ""; width: 8px; height: 8px; margin: 7px 5px 0; border-radius: 2px; background: var(--violet); }
.tax-demo__papers { display: flex; flex-wrap: wrap; gap: 8px; }
.paper { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.paper.ok { background: var(--mint-soft); color: #0E6B52; border-color: var(--green-line); }
.paper.missing { background: var(--amber-soft); color: #92400E; border-color: var(--amber-line); }
@media (max-width: 800px) { .tax-demo { grid-template-columns: minmax(0, 1fr); } }

/* Workbench inbox, pipeline, SWIFT */
.inbox { padding: 0; overflow: hidden; display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 460px; }
.inbox__side { border-right: 1px solid var(--line); padding: 16px; background: rgba(238,243,251,.6); }
.inbox__side .addr { font-family: var(--font-mono); font-size: 11px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); word-break: break-all; color: var(--text-2); }
.inbox__side ul { list-style: none; margin: 14px 0 0; display: grid; gap: 4px; }
.inbox__side li { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.inbox__side li.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.inbox__side li .badge { height: 20px; padding: 0 7px; font-size: 10.5px; }
.inbox__main { padding: 18px; position: relative; }
.inbox__item { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.9); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.inbox__item + .inbox__item { margin-top: 10px; }
.inbox__item.is-new { animation: slide-in .6s var(--ease) both; }
.inbox__item .glass__icon { width: 34px; height: 34px; border-radius: 10px; margin: 0; }
.inbox__item .glass__icon svg { width: 16px; height: 16px; }
.inbox__item .from { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink); }
.inbox__item .subj { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.inbox__item .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inbox__item .actions .badge { height: 22px; font-size: 11px; }
.inbox__item time { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); white-space: nowrap; }
.inbox__thinking { display: inline-flex; gap: 4px; align-items: center; height: 22px; }
.inbox__thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); animation: pulse 1s ease-in-out infinite; }
.inbox__thinking i:nth-child(2) { animation-delay: .2s; } .inbox__thinking i:nth-child(3) { animation-delay: .4s; }
@media (max-width: 720px) { .inbox { grid-template-columns: minmax(0, 1fr); } .inbox__side { border-right: 0; border-bottom: 1px solid var(--line); } }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.pipeline__step { position: relative; padding: 22px 18px; text-align: center; }
.pipeline__step .glass__icon { margin: 0 auto 14px; }
.pipeline__step h4 { font-size: 15px; }
.pipeline__step p { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.pipeline__step + .pipeline__step::before { content: ""; position: absolute; left: -14px; top: 40px; width: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: dash-bg 1.2s linear infinite; }
@media (max-width: 1000px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .pipeline__step + .pipeline__step::before { display: none; } }
@media (max-width: 520px) { .pipeline { grid-template-columns: minmax(0, 1fr); } }
.swift-msg { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; padding: 16px; border-radius: 12px; background: #0B1226; color: #C8D2F0; overflow: auto; position: relative; }
.swift-msg .tag { color: var(--mint); }
.swift-msg .hl { background: rgba(47,107,255,.35); border-radius: 3px; padding: 0 3px; color: #fff; }
.swift-msg .cursor { display: inline-block; width: 7px; height: 14px; background: var(--mint); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.extract { display: grid; gap: 8px; }
.extract div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 13px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.85); animation: slide-in .6s var(--ease) both; }
.extract div:nth-child(2) { animation-delay: .15s; } .extract div:nth-child(3) { animation-delay: .3s; } .extract div:nth-child(4) { animation-delay: .45s; } .extract div:nth-child(5) { animation-delay: .6s; }
.extract .k { color: var(--text-3); font-weight: 600; }
.extract .v { font-family: var(--font-mono); color: var(--ink); }

/* Compliance simulator (home) */
.sim { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; overflow: hidden; padding: 0; }
.sim-inputs { padding: 28px; border-right: 1px solid var(--line); background: rgba(238,243,251,.6); min-width: 0; }
.sim-output { padding: 28px; min-width: 0; }
.sim-inputs .field input, .sim-inputs .field select { height: 42px; font-size: 14.5px; }
.sim-verdict { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sim-verdict h3 { font-size: 20px; }
.timeline { margin-top: 20px; }
.timeline .bar { position: relative; height: 12px; border-radius: 999px; background: rgba(11,18,38,.08); overflow: visible; }
.timeline .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width .4s var(--ease), background .2s; }
.timeline .warn { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #E08A00; opacity: .6; }
.timeline .labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.sim-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.sim-metric { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; background: rgba(255,255,255,.85); }
.sim-metric .l { font-size: 12px; color: var(--text-3); }
.sim-metric .v { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-checks { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.sim-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.sim-checks li svg { width: 20px; height: 20px; margin-top: 1px; }
.sim-checks li.ok svg { color: var(--mint-deep); } .sim-checks li.warn svg { color: #E08A00; } .sim-checks li.bad svg { color: var(--red); } .sim-checks li.info svg { color: var(--blue-deep); }
.sim-checks li strong { color: var(--ink); }
.sim-docs { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.sim-docs .k, .sim-presets .k { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.sim-docs .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sim-docs .chips .badge { height: auto; min-height: 28px; padding: 5px 12px; white-space: normal; line-height: 1.35; }
.sim-foot { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.sim-presets { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.sim-presets .list { display: grid; gap: 8px; margin-top: 10px; }
.preset { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.85); cursor: pointer; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.preset:hover { border-color: var(--blue); }
.preset.is-active { border-color: var(--blue); background: var(--blue-soft); }
.preset strong { display: block; font-family: var(--font-display); font-size: 13.5px; color: var(--ink); }
.preset span { display: block; font-size: 12.5px; color: var(--text-3); }
.preset svg { width: 16px; height: 16px; color: var(--text-3); }
@media (max-width: 960px) { .sim { grid-template-columns: minmax(0, 1fr); } .sim-inputs { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .sim-inputs, .sim-output { padding: 20px 16px; } .sim-metrics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Partner console preview + practice projector */
.tier-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: linear-gradient(120deg, #0B1226, #1D4ED8 140%); color: rgba(255,255,255,.8); }
.tier-card .t { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 18px; }
.tier-card .s { font-size: 12.5px; margin-top: 2px; }
.tier-card .meter { margin-top: 10px; background: rgba(255,255,255,.16); }
.tier-card .rate { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; line-height: 1; }
.console-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.console-kpis > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; background: rgba(255,255,255,.85); }
.console-kpis .l { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-kpis .v { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); margin-top: 2px; }
.client-rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.85); }
.client-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.client-row:last-child { border-bottom: 0; }
.client-row b { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-row span.m { display: block; color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-row .badge { height: 22px; font-size: 11px; }
@media (max-width: 520px) { .console-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .console-kpis > div:last-child { grid-column: 1 / -1; } }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; padding: 0; }
.calc-in { padding: 30px; border-right: 1px solid var(--line); background: rgba(238,243,251,.6); min-width: 0; }
.calc-out { padding: 30px; min-width: 0; }
.slider-block + .slider-block { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.slider-head { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; align-items: start; }
.slider-head label { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 15px; display: block; }
.slider-head .sub { font-size: 13px; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.slider-head .sub strong { color: var(--text); }
.count-input { width: 96px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); background: #fff; }
.count-input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.slider-block input[type=range] { margin-top: 14px; }
.basis { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.basis .k { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 15px; }
.basis .sub { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.out-tier { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.out-tier .badge { height: 30px; padding: 0 14px; font-size: 13px; }
.out-big { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.out-big > div { border-radius: 14px; padding: 18px; min-width: 0; }
.out-big .primary { background: var(--ink); color: rgba(255,255,255,.8); }
.out-big .secondary { background: var(--violet-soft); border: 1px solid rgba(124,92,255,.35); color: var(--violet-deep); }
.out-big .l { font-size: 13px; font-weight: 600; }
.out-big .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin-top: 6px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out-big .primary .v { color: #fff; } .out-big .secondary .v { color: var(--ink); }
.out-big .n { font-size: 12.5px; margin-top: 4px; opacity: .9; }
.nudge { margin-top: 16px; }
.calc-note { margin-top: 14px; font-size: 12.5px; color: var(--text-3); line-height: 1.55; }
@media (max-width: 1024px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc-in { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .calc-in, .calc-out { padding: 22px 16px; } .out-big { grid-template-columns: minmax(0, 1fr); } .slider-head { grid-template-columns: minmax(0, 1fr) 76px; } .count-input { width: 76px; } }

/* Terms page */
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-brand); z-index: 200; }
.terms-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.page-hero.left .terms-meta { justify-content: flex-start; }
.terms-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding: 20px; }
.toc h3 { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: t; display: grid; gap: 2px; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.toc a::before { content: counter(t); font-family: var(--font-display); font-weight: 800; color: var(--text-3); }
.toc a:hover { background: rgba(11,18,38,.05); color: var(--ink); text-decoration: none; }
.toc a.active { background: var(--blue-soft); color: var(--blue-deep); font-weight: 600; }
.toc .btn { margin-top: 14px; }
.terms-body { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); background: var(--glass-bg-2); }
.terms-body section + section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.terms-body h2 { font-size: 22px; display: flex; align-items: baseline; gap: 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.terms-body h2 .num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--grad-brand); color: #fff; font-size: 14px; transform: translateY(-2px); }
.terms-body h3 { font-size: 16px; margin-top: 20px; }
.terms-body p { margin-top: 12px; color: var(--text); line-height: 1.75; font-size: 15.5px; }
.terms-body ul { margin: 12px 0 0 20px; display: grid; gap: 6px; color: var(--text); line-height: 1.7; }
.terms-body strong { color: var(--ink); }
@media (max-width: 960px) { .terms-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
@media print { #site-header, #site-footer, .toc, .reading-bar, .hero-actions, body::before, body::after { display: none !important; } .terms-layout { grid-template-columns: 1fr; } .terms-body { border: 0; box-shadow: none; padding: 0; } }

/* ---------- 6. Motion ---------------------------------------------------- */
@keyframes dash-flow { to { stroke-dashoffset: -214; } }
@keyframes dash-bg { to { background-position: 24px 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.85); } }
@keyframes node-glow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(47,107,255,.35)); } 50% { filter: drop-shadow(0 0 18px rgba(124,92,255,.6)); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drift-a { from { transform: translate(0, 0); } to { transform: translate(8vw, 6vw); } }
@keyframes drift-b { from { transform: translate(0, 0); } to { transform: translate(-6vw, -8vw); } }
@keyframes draw { 0% { stroke-dashoffset: 200; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes scan { from { top: 0; } to { top: 100%; } }
@keyframes seal-in { 0%, 20% { opacity: 0; transform: scale(1.4) rotate(-12deg); } 40%, 100% { opacity: 1; transform: scale(1) rotate(-12deg); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes blink { to { visibility: hidden; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .scrolly__step { opacity: 1; }
}

/* ---------- 7. Utilities ------------------------------------------------- */
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.w62 { width: 62%; } .w70 { width: 70%; } .w78 { width: 78%; } .w96 { width: 96%; }

/* ---------- Home hero: the lifecycle of one transaction (index.html) ---------- */
.lc-hero { position: relative; }
.lc-hero__frame { padding: 22px 22px 18px; }
.lc-hero__head { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line, rgba(11,18,38,.08)); }
.lc-hero__head strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.lc-hero__head span { font-size: 12px; color: var(--text-3); }
.lc-hero__doc { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(47,107,255,.14), rgba(124,92,255,.14)); color: var(--blue); }
.lc-hero__doc svg { width: 18px; height: 18px; }
.lc-hero__badge { padding: 4px 10px; border-radius: 999px; background: rgba(23,211,160,.14); color: #0B7A5C !important; font-weight: 600; font-size: 11.5px !important; white-space: nowrap; }
.lc-hero__steps { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.lc-hero__steps::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: rgba(11,18,38,.08); border-radius: 2px; }
.lc-hero__steps::after { content: ""; position: absolute; left: 11px; top: 14px; width: 2px; height: 0; background: linear-gradient(var(--blue), var(--violet), var(--mint)); border-radius: 2px; animation: lc-fill 10s ease-in-out infinite; }
.lc-hero__steps li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.lc-hero__steps li b { display: block; font-family: var(--font-display); font-size: 13.5px; color: var(--ink); font-weight: 700; }
.lc-hero__steps li div span { font-size: 12px; color: var(--text-3); }
.lc-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid rgba(11,18,38,.16); animation: lc-dot 10s ease-in-out infinite; animation-delay: calc(var(--i) * 1.6s); }
.lc-hero__steps li em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--text-3); background: rgba(11,18,38,.05); animation: lc-chip 10s ease-in-out infinite; animation-delay: calc(var(--i) * 1.6s); }
@keyframes lc-fill { 0% { height: 0; } 80%, 92% { height: calc(100% - 28px); } 100% { height: calc(100% - 28px); opacity: 0; } }
@keyframes lc-dot { 0%, 4% { background: #fff; border-color: rgba(11,18,38,.16); box-shadow: none; }
  10%, 86% { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 5px rgba(23,211,160,.18); }
  100% { background: #fff; border-color: rgba(11,18,38,.16); box-shadow: none; } }
@keyframes lc-chip { 0%, 4% { color: var(--text-3); background: rgba(11,18,38,.05); } 10%, 86% { color: #0B7A5C; background: rgba(23,211,160,.16); } 100% { color: var(--text-3); background: rgba(11,18,38,.05); } }
.lc-hero .flow-viz__float { position: absolute; }
.lc-hero { padding: 64px 0 104px; }
.lc-hero .flow-viz__float--a { top: 0; right: -10px; }
.lc-hero .flow-viz__float--b { bottom: 0; left: -14px; top: auto; }
.lc-hero-title { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.08; }
@media (max-width: 600px) { .lc-hero { padding: 0; } }
@media (prefers-reduced-motion: reduce) { .lc-hero__steps::after, .lc-dot, .lc-hero__steps li em { animation: none; } .lc-hero__steps::after { height: calc(100% - 28px); } .lc-dot { background: var(--mint); border-color: var(--mint); } }
@media (max-width: 600px) { .lc-hero__head { grid-template-columns: 38px minmax(0, 1fr); } .lc-hero__badge { display: none; } }

/* ---------- Insights (insights.html, insights-<slug>.html; built by scripts/build_insights.py) */
.ins-hero h1 { max-width: 880px; }
.ins-hero .lead { max-width: 760px; margin-top: 14px; }
.ins-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.ins-crumbs a { color: var(--text-2); font-weight: 600; }
.ins-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.ins-meta .badge [data-icon] svg { width: 13px; height: 13px; }
.ins-author { display: inline-flex; align-items: center; gap: 10px; margin-right: 6px; }
.ins-author strong { display: block; font-size: 14px; color: var(--ink); }
.ins-author small { display: block; font-size: 12.5px; color: var(--text-3); }
.ins-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ins-avatar svg { width: 18px; height: 18px; }
.ins-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.ins-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.ins-aside .toc { position: static; max-height: none; }
.ins-cta { padding: 20px; display: grid; gap: 10px; }
.ins-cta strong { font-family: var(--font-display); color: var(--ink); }
.ins-cta p { font-size: 13.5px; color: var(--text-2); margin: 0; }
.ins-body { max-width: 760px; font-size: 16.5px; line-height: 1.78; color: var(--text-2); }
.ins-body h2 { font-size: clamp(21px, 2.2vw, 26px); margin: 0 0 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.ins-body p { margin: 0 0 14px; }
.ins-body ul:not(.checklist) { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.ins-body li::marker { color: var(--blue); }
.ins-body strong { color: var(--ink); }
.ins-section { margin-top: 38px; scroll-margin-top: calc(var(--header-h) + 24px); }
.ins-takeaways { padding: 24px 26px; border-left: 4px solid var(--mint); }
.ins-takeaways h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-deep); margin-bottom: 14px; }
.ins-takeaways .checklist li { font-size: 15px; }
.ins-disclaimer { margin-top: 36px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--text-3); }
.ins-index-hero h1 { max-width: 820px; margin: 0 auto; }
.ins-index-hero .lead { max-width: 720px; margin: 16px auto 0; }
.ins-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.ins-topics .tab { height: 36px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px var(--line); }
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ins-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; color: var(--text-2); text-decoration: none !important; }
.ins-card[hidden] { display: none; }
.ins-card__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-deep); display: inline-flex; align-items: center; justify-content: center; }
.ins-card__icon svg { width: 21px; height: 21px; }
.ins-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ins-card strong { font-family: var(--font-display); font-size: 18px; line-height: 1.35; color: var(--ink); }
.ins-card__desc { font-size: 14px; line-height: 1.6; flex: 1; }
.ins-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--blue-deep); }
.ins-card__more svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.ins-card:hover .ins-card__more svg { transform: translateX(3px); }
.ins-card.is-featured { grid-column: span 2; background: linear-gradient(135deg, rgba(47,107,255,.10), rgba(124,92,255,.08) 55%, rgba(23,211,160,.10)), var(--glass-bg); }
.ins-card.is-featured strong { font-size: clamp(21px, 2.2vw, 26px); }
.ins-card.is-featured .ins-card__icon { background: var(--grad-brand); color: #fff; }
.ins-faq { max-width: 860px; margin: 0 auto; }
.ins-faq .accordion-panel-inner a { font-weight: 600; }
@media (max-width: 1080px) { .ins-layout { grid-template-columns: minmax(0, 1fr); } .ins-aside { position: static; } .ins-aside .toc { display: none; } .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ins-grid { grid-template-columns: minmax(0, 1fr); } .ins-card.is-featured { grid-column: auto; } .ins-body { font-size: 16px; } }

/* Article visuals (iv-*): HTML diagrams animated when the figure scrolls into view (.reveal). */
.iv { margin: 34px 0 0; }
.iv__frame { padding: clamp(18px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--glass-bg-2); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg), inset 0 1px 0 #fff; overflow: hidden; position: relative; }
.iv__frame::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at 0% 0%, rgba(47,107,255,.08), transparent 70%), radial-gradient(500px 220px at 100% 100%, rgba(23,211,160,.09), transparent 70%); pointer-events: none; }
.iv figcaption { margin-top: 10px; font-size: 13px; color: var(--text-3); text-align: center; }
.iv-chip { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--blue-soft); color: var(--blue-deep); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.iv-row__label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.iv-row + .iv-row { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }

.iv-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; position: relative; }
.iv-flow::before, .iv-flow::after { content: ''; position: absolute; top: 22px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 2px; border-radius: 2px; background: var(--line-strong); }
.iv-flow::after { background: var(--grad-brand); transform-origin: left; transform: scaleX(0); transition: transform 2.4s var(--ease); transition-delay: calc(var(--r, 0) * .3s); }
.iv-flow li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.iv-flow li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); margin: 15px 0 12px; box-sizing: border-box; transition: background .3s, border-color .3s, box-shadow .3s; transition-delay: calc(var(--i) * .45s + var(--r, 0) * .3s); }
.iv-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid var(--line); width: 100%; opacity: .35; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * .45s + var(--r, 0) * .3s); }
.iv-node .iv-chip { align-self: center; }
.iv-node strong { font-family: var(--font-display); font-size: 14px; line-height: 1.3; color: var(--ink); }
.iv-node small { font-size: 12px; line-height: 1.45; color: var(--text-3); }
.iv.is-visible .iv-flow::after { transform: none; }
.iv.is-visible .iv-flow li::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 5px var(--mint-soft); }
.iv.is-visible .iv-node { opacity: 1; transform: none; }
.iv.is-visible .iv-flow li:last-child .iv-node { border-color: var(--green-line); background: linear-gradient(180deg, rgba(23,211,160,.10), rgba(255,255,255,.8)); }

.iv-timeline { padding: 8px 4px 0; }
.iv-track { position: relative; height: 8px; border-radius: 8px; background: rgba(11,18,38,.07); margin: 10px 8px 0; overflow: hidden; }
.iv-track__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--mint) 55%, var(--amber-line) 80%, var(--red)); transform-origin: left; transform: scaleX(0); transition: transform 2.6s var(--ease); }
.iv.is-visible .iv-track__fill { transform: none; }
.iv-marks { list-style: none; margin: 0; padding: 0; position: relative; height: 96px; }
.iv-mark { position: absolute; left: var(--at); top: -14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; width: 120px; opacity: 0; transition: opacity .4s var(--ease); transition-delay: calc(var(--i) * .5s); }
.iv-mark:first-child { transform: none; align-items: flex-start; text-align: left; }
.iv-mark:last-child { transform: translateX(-100%); align-items: flex-end; text-align: right; }
.iv-mark__dot { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: var(--shadow); }
.iv-mark.is-mint .iv-mark__dot { border-color: var(--mint); } .iv-mark.is-amber .iv-mark__dot { border-color: #F59E0B; } .iv-mark.is-red .iv-mark__dot { border-color: var(--red); }
.iv-mark__text { margin-top: 8px; display: grid; gap: 2px; }
.iv-mark__text strong { font-family: var(--font-display); font-size: 13.5px; color: var(--ink); }
.iv-mark__text small { font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.iv.is-visible .iv-mark { opacity: 1; }
.iv-span { margin: 6px 0 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-3); }

.iv-tree { display: flex; flex-direction: column; align-items: center; }
.iv-question { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; text-align: left; max-width: 560px; }
.iv-question svg { width: 18px; height: 18px; color: var(--mint); flex: none; }
.iv-stem { width: 2px; height: 22px; background: var(--line-strong); }
.iv-leaves { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; width: 100%; border-top: 2px solid var(--line-strong); }
.iv-leaf { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-top: 3px solid var(--blue); opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(.3s + var(--i) * .35s); }
.iv-leaf strong { font-family: var(--font-display); font-size: 14px; line-height: 1.3; color: var(--ink); }
.iv-leaf small { font-size: 12px; line-height: 1.45; color: var(--text-3); }
.iv-leaf.is-mint { border-top-color: var(--mint); } .iv-leaf.is-mint .iv-chip { background: var(--mint-soft); color: var(--mint-deep); }
.iv-leaf.is-violet { border-top-color: var(--violet); } .iv-leaf.is-violet .iv-chip { background: var(--violet-soft); color: var(--violet-deep); }
.iv-leaf.is-amber { border-top-color: #F59E0B; } .iv-leaf.is-amber .iv-chip { background: var(--amber-soft); color: var(--amber); }
.iv.is-visible .iv-leaf { opacity: 1; transform: none; }

.iv-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iv-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.8); border: 1px solid var(--line); }
.iv-card + .iv-card .iv-chip { background: var(--violet-soft); color: var(--violet-deep); }
.iv-card > strong { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.iv-card ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.iv-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i) * .18s); }
.iv-card li svg { width: 16px; height: 16px; color: var(--mint-deep); flex: none; margin-top: 2px; stroke-width: 2.6; }
.iv.is-visible .iv-card li { opacity: 1; transform: none; }

.iv-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.iv-codes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iv-codes li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.8); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i) * .12s); }
.iv-codes code { font-family: var(--font-mono); font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-deep); }
.iv-codes__col + .iv-codes__col code { background: var(--mint-soft); color: var(--mint-deep); }
.iv.is-visible .iv-codes li { opacity: 1; transform: none; }

.iv-spread__mid { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mint-deep); margin-bottom: 14px; }
.iv-spread__mid svg { width: 16px; height: 16px; }
.iv-spread ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.iv-spread li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px; gap: 14px; align-items: center; }
.iv-bank strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.iv-bank small, .iv-cost small { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; }
.iv-bar { height: 12px; border-radius: 12px; background: rgba(11,18,38,.06); overflow: hidden; }
.iv-bar span { display: block; height: 100%; width: var(--w); border-radius: 12px; background: linear-gradient(90deg, #F59E0B, var(--red)); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * .25s); }
.iv-cost { font-family: var(--font-display); font-weight: 800; color: var(--ink); text-align: right; }
.iv.is-visible .iv-bar span { transform: scaleX(1); }

@media (max-width: 760px) {
  .iv-flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .iv-flow::before, .iv-flow::after { top: 18px; bottom: 18px; left: 7px; right: auto; width: 2px; height: auto; }
  .iv-flow::after { transform-origin: top; transform: scaleY(0); }
  .iv-flow li { flex-direction: row; align-items: flex-start; text-align: left; gap: 12px; }
  .iv-flow li::before { flex: none; margin: 14px 0 0; }
  .iv-node { align-items: flex-start; padding: 10px 12px; }
  .iv-node .iv-chip { align-self: flex-start; }
  .iv-leaves { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-top: 0; }
  .iv-compare, .iv-codes { grid-template-columns: minmax(0, 1fr); }
  .iv-track, .iv-span { display: none; }
  .iv-marks { height: auto; display: grid; gap: 12px; border-left: 2px solid var(--line-strong); margin-left: 9px; padding-left: 0; }
  .iv-mark, .iv-mark:first-child, .iv-mark:last-child { position: relative; left: auto; top: auto; transform: none; width: auto; flex-direction: row; align-items: center; text-align: left; gap: 12px; margin-left: -11px; }
  .iv-mark__text { margin-top: 0; }
  .iv-spread li { grid-template-columns: minmax(0, 1fr) auto; }
  .iv-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-flow::after, .iv-track__fill { transition: none !important; transform: none !important; }
  .iv-node, .iv-leaf, .iv-card li, .iv-codes li, .iv-mark, .iv-bar span { opacity: 1 !important; transform: none !important; transition: none !important; }
}
