/* DhanAlpha website — ledger-inspired design. Tokens first; components below. */
:root {
  --paper: #FBFCFE;
  --paper-2: #F2F5FA;
  --surface: #FFFFFF;
  --ink: #10203F;
  --ink-2: #3A4A68;
  --muted: #66738C;
  --rule: #DCE3EF;
  --rule-2: #C9D3E3;
  --brand: #2F74EB;
  --brand-ink: #1E5BC6;
  --accounts: #2F74EB;
  --tax: #E8590C;
  --wealth: #0E9F6E;
  --ok: #0E9F6E;
  --err: #C93A2E;
  --hero-bg: #10203F;
  --hero-ink: #F3F6FC;
  --hero-muted: #A9B6CF;
  --hero-rule: rgba(255,255,255,.12);
  --shadow: 0 1px 2px rgba(16,32,63,.06), 0 8px 24px -12px rgba(16,32,63,.18);
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1200px;
  --display: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1222; --paper-2: #0F182B; --surface: #131D33; --ink: #ECF1FA; --ink-2: #C2CCDD; --muted: #8C99B2;
    --rule: #22304A; --rule-2: #2E3D5A; --brand: #5B93F2; --brand-ink: #8DB4F7; --accounts: #5B93F2; --tax: #F07A3A; --wealth: #2FBF8A;
    --hero-bg: #070D1A; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1222; --paper-2: #0F182B; --surface: #131D33; --ink: #ECF1FA; --ink-2: #C2CCDD; --muted: #8C99B2;
  --rule: #22304A; --rule-2: #2E3D5A; --brand: #5B93F2; --brand-ink: #8DB4F7; --accounts: #5B93F2; --tax: #F07A3A; --wealth: #2FBF8A;
  --hero-bg: #070D1A; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.num, .tab { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.ic { flex: none; vertical-align: middle; }

/* ---------- buttons ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid var(--b); background: var(--b); color: #fff; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { color: #fff; filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { color: var(--ink); background: var(--paper-2); filter: none; }
.btn-light { background: #fff; color: var(--hero-bg); border-color: #fff; }
.btn-light:hover { color: var(--hero-bg); }
.btn-outline-light { background: transparent; color: var(--hero-ink); border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.08); filter: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover .ic { transform: translateX(2px); }
.link-arrow .ic { transition: transform .15s; }

/* ---------- announcement + header ---------- */
.announce { background: var(--hero-bg); color: var(--hero-ink); font-size: 14px; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; text-align: center; }
.announce a { color: #fff; font-weight: 600; }
.announce-stripe { display: inline-flex; gap: 3px; }
.announce-stripe i { width: 14px; height: 4px; border-radius: 2px; }

.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 21px/1 var(--display); letter-spacing: -.02em; }
.brand b { font-weight: 800; }
.brand-mark { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; flex: none; }
.brand--image .brand-mark { max-width: 260px; }
.brand-mark--auto { border-radius: 9px; }
.brand-chip { display: inline-grid; place-items: center; padding: 4px; background: #fff; border-radius: 10px; }
.brand-chip-auto { display: inline-grid; place-items: center; border-radius: 10px; }
:root[data-theme="dark"] .brand-chip-auto { background: #fff; padding: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-chip-auto { background: #fff; padding: 4px; } }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-on-light { display: none; } :root:not([data-theme="light"]) .logo-on-dark { display: block; } }
@media (max-width: 520px) { .site-head .brand-mark { max-height: 36px; max-width: 150px; } .site-head .brand { font-size: 19px; } }
.brand-mark--auto { display: inline-grid; place-items: center; color: #fff; background: conic-gradient(from 210deg, var(--accounts) 0 33%, var(--tax) 0 66%, var(--wealth) 0); }
.brand-link { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav > .nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-link:hover, .nav-link.active, .nav-item.open > .nav-link { color: var(--ink); background: var(--paper-2); }
.nav-link .ic { transition: transform .15s; }
.nav-item.open > .nav-link .ic { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.nav-item.open > .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dropdown a:hover { background: var(--paper-2); }
.mega { width: 640px; padding: 10px; }
.mega-grid { display: grid; gap: 2px; }
.mega a.mega-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 12px; }
.mega-item strong { display: block; font-size: 15px; color: var(--ink); }
.mega-item span:not(.p-icon) { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); margin-top: 8px; padding: 10px 12px 4px; font-size: 14px; }
.p-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--a, var(--brand)); background: color-mix(in srgb, var(--a, var(--brand)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a, var(--brand)) 22%, transparent); }
.p-icon .ic { display: block; margin: 0; }
.mega-item .p-icon, .article-list .p-icon { margin-top: 0; }
.p-icon.lg { width: 52px; height: 52px; border-radius: 13px; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 9px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: inline; } }
.menu-toggle { display: none; }

/* mobile drawer */
@media (max-width: 980px) {
  .head-row { gap: 12px; }
  .menu-toggle { display: inline-grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px); z-index: 60; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 40px; overflow-y: auto; display: none; margin: 0; border-top: 1px solid var(--rule); }
  .nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .site-head .wrap.head-row { position: static; }
  .nav-link { width: 100%; height: 50px; justify-content: space-between; font-size: 17px; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0 4px; }
  .nav-link:hover, .nav-item.open > .nav-link { background: none; }
  .dropdown, .mega { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 10px; background: none; }
  .mega-foot { display: none; }
  .head-actions .btn-ghost { display: none; }
  .head-row > .head-actions { margin-left: auto; }
  .nav-mobile-cta { display: flex !important; gap: 10px; margin-top: 18px; }
  .nav-mobile-cta .btn { flex: 1; }
}
@media (min-width: 981px) { .nav-mobile-cta { display: none !important; } }
@media (max-width: 520px) { .head-actions .btn-demo { display: none; } }

/* ---------- hero (home): the ledger ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--hero-rule) 1px, transparent 1px); background-size: 100% 44px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); opacity: .55; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: #fff; margin-bottom: 22px; font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 14ch; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--hero-muted); font-size: 15px; margin-bottom: 22px; }
.tri { display: inline-flex; gap: 3px; }
.tri i { display: block; width: 18px; height: 4px; border-radius: 2px; background: var(--accounts); }
.tri i:nth-child(2) { background: var(--tax); }
.tri i:nth-child(3) { background: var(--wealth); }
.tri i:nth-child(4) { background: #7C3AED; }
.hero .lead { color: var(--hero-muted); font-size: 1.15rem; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, max-content); justify-content: start; gap: 14px 32px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hero-rule); list-style: none; }
.hero-facts li { font-size: 14px; color: var(--hero-muted); }
.hero-facts strong { display: block; color: #fff; font: 700 1.15rem/1.3 var(--display); }

.ledger { background: #FCFDFF; color: #10203F; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; font-size: 14px; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #DCE3EF; background: #F2F5FA; }
.ledger-head strong { font: 700 15px/1 var(--display); }
.ledger-head span { color: #66738C; font-size: 13px; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-weight: 600; color: #66738C; font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid #DCE3EF; }
.ledger th:last-child, .ledger td:last-child { text-align: right; }
.ledger td { padding: 8px 14px; height: 58px; border-bottom: 1px solid #E8EDF5; vertical-align: middle; }
.ledger tr.row { position: relative; }
.ledger tr.row td:first-child { box-shadow: inset 4px 0 0 var(--a, var(--brand)); }
.ledger .p-name { font-weight: 700; display: flex; align-items: center; gap: 10px; color: #10203F; text-decoration: none; }
.ledger .p-name:hover { color: var(--a, var(--brand)); }
.ledger .p-dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--a, var(--brand)); background: color-mix(in srgb, var(--a, var(--brand)) 12%, #fff); }
.ledger .entry { color: #3A4A68; font-size: 13.5px; line-height: 1.35; }
.ledger td:first-child { white-space: nowrap; }
.ledger .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--a, var(--brand)) 14%, #fff); color: var(--a, var(--brand)); margin-left: 8px; vertical-align: -4px; }
.ledger-foot { display: flex; justify-content: space-between; padding: 14px 18px; font-weight: 700; background: #F7F9FC; }
.ledger-foot span:first-child { color: #66738C; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .js .ledger tr.row { opacity: 0; transform: translateY(6px); }
  .js .ledger.posted tr.row { animation: post .5s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .ledger.posted tr.row:nth-child(2) { animation-delay: .35s; }
  .js .ledger.posted tr.row:nth-child(3) { animation-delay: .7s; }
  .js .ledger .tick { transform: scale(0); }
  .js .ledger.posted tr.row .tick { animation: tick .3s ease-out forwards; animation-delay: inherit; }
  .js .ledger.posted tr.row:nth-child(1) .tick { animation-delay: .45s; }
  .js .ledger.posted tr.row:nth-child(2) .tick { animation-delay: .8s; }
  .js .ledger.posted tr.row:nth-child(3) .tick { animation-delay: 1.15s; }
}
@keyframes post { to { opacity: 1; transform: none; } }
@keyframes tick { 70% { transform: scale(1.2); } to { transform: scale(1); } }
@media (max-width: 640px) { .hero-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 40px; } }
@media (max-width: 560px) { .ledger td { padding: 0 12px; height: 60px; } .ledger th { padding: 10px 12px; } .ledger .col-entry { display: none; } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.soft { background: var(--paper-2); }
.section.tight { padding: 56px 0; }
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 44px; }
.sec-head p { color: var(--ink-2); max-width: 60ch; margin: 0; font-size: 1.07rem; }
.sec-head h2 { margin-bottom: 12px; }
@media (max-width: 720px) { .section { padding: 60px 0; } .sec-head { grid-template-columns: 1fr; margin-bottom: 30px; } }

/* product columns (home + products index) */
.prod-cols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.prod-col { padding: 34px 26px 30px; border-left: 1px solid var(--rule); position: relative; display: flex; flex-direction: column; }
.prod-col:first-child { border-left: 0; padding-left: 0; }
.prod-col::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--a, var(--brand)); }
.prod-col:first-child::before { left: 0; }
.prod-col .cat { color: var(--a, var(--brand)); font-weight: 600; font-size: 14px; margin: 18px 0 6px; }
.prod-col h3 { font-size: 1.6rem; margin-bottom: 10px; }
.prod-col h3 a { color: inherit; text-decoration: none; }
.prod-col p { color: var(--ink-2); }
.prod-col ul { list-style: none; padding: 0; margin: 6px 0 26px; }
.prod-col li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--rule); font-size: 15px; color: var(--ink-2); }
.prod-col li .ic { color: var(--a, var(--brand)); margin-top: 3px; }
.prod-col { container-type: inline-size; }
.prod-col .actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod-col .actions .btn { width: 100%; min-width: 0; padding: 0 12px; }
@container (max-width: 280px) { .prod-col .actions { grid-template-columns: 1fr; } }
.prod-host { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--muted); text-decoration: none; }
.prod-host:hover { color: var(--a, var(--brand)); }
.prod-col .btn { --b: var(--a, var(--brand)); }
@media (max-width: 1180px) and (min-width: 981px) { .prod-cols[style*="--n:4"] { grid-template-columns: 1fr 1fr; } .prod-cols[style*="--n:4"] .prod-col:nth-child(3) { border-left: 0; padding-left: 0; } .prod-cols[style*="--n:4"] .prod-col:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 980px) { .prod-cols { grid-template-columns: 1fr; border-bottom: 0; } .prod-col { border-left: 0; padding: 30px 0; border-bottom: 1px solid var(--rule); } }

/* flow: books → tax; wealth */
.flow { display: flex; align-items: stretch; }
.flow-node { flex: 1 1 0; min-width: 0; text-decoration: none; color: inherit; transition: border-color .15s; }
a.flow-node:hover { border-color: var(--a, var(--brand)); color: inherit; }
.flow-node h4 { color: var(--ink); }
.flow-node { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); padding: 22px; }
.flow-node h4 { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.flow-node h4 .ic { color: var(--a, var(--brand)); }
.flow-node p { color: var(--muted); font-size: 15px; margin: 0; }
.flow-arrow { display: grid; place-items: center; width: 44px; flex: none; color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 1020px) { .flow { flex-direction: column; } .flow-arrow { width: auto; height: 40px; transform: rotate(90deg); } }

/* rule list: features without card boxes */
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.rule-item { padding: 26px 0; border-top: 1px solid var(--rule); }
.rule-item .ic { color: var(--a, var(--brand)); margin-bottom: 12px; }
.rule-item h3 { font-size: 1.08rem; margin-bottom: 6px; font-family: var(--sans); font-weight: 650; letter-spacing: -.01em; }
.rule-item p { color: var(--muted); margin: 0; font-size: 15px; }
.rule-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.rule-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .rule-grid, .rule-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rule-grid, .rule-grid.cols-2, .rule-grid.cols-4 { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat-row > div { padding: 22px 20px; border-left: 1px solid var(--rule); }
.stat-row > div:first-child { border-left: 0; padding-left: 0; }
.stat-row strong { display: block; font: 700 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.stat-row span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .stat-row > div:nth-child(3) { border-left: 0; padding-left: 0; } .stat-row > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* ---------- page hero ---------- */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--rule); background: linear-gradient(var(--paper-2), var(--paper)); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.page-hero .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; padding: 0; list-style: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-2); }

/* ---------- product page ---------- */
.p-hero { padding: 64px 0 0; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, color-mix(in srgb, var(--a, var(--brand)) 7%, var(--paper)), var(--paper) 70%); overflow: hidden; }
.p-hero .grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: end; }
.p-hero .copy { padding-bottom: 64px; }
.p-hero .cat { display: inline-flex; align-items: center; gap: 10px; color: var(--a, var(--brand)); font-weight: 600; margin-bottom: 18px; }
.p-hero h1 { margin-bottom: 18px; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.p-hero .btn { --b: var(--a, var(--brand)); }
.p-hero .btn-ghost { --b: var(--rule-2); }
.p-hero .login { display: block; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.p-hero .login a { color: var(--ink); font-weight: 600; }
.shot { border-radius: 14px 14px 0 0; border: 1px solid var(--rule); border-bottom: 0; background: var(--surface); box-shadow: 0 -10px 50px -20px color-mix(in srgb, var(--a, var(--brand)) 50%, transparent); overflow: hidden; }
.shot-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-2); }
.p-highlights { display: grid; grid-template-columns: repeat(3, 1fr); }
.p-highlights > div { padding: 24px 0; border-top: 1px solid var(--rule); padding-right: 20px; }
.p-highlights strong { display: block; font: 700 1.3rem/1.2 var(--display); color: var(--a, var(--brand)); }
.p-highlights span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .p-hero .grid { grid-template-columns: 1fr; gap: 10px; } .p-hero .copy { padding-bottom: 20px; } .p-highlights { grid-template-columns: 1fr; } .p-highlights > div { padding: 14px 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 14.5px; color: var(--ink-2); background: var(--surface); text-decoration: none; }
a.chip:hover, .chip.active { border-color: var(--a, var(--brand)); color: var(--a, var(--brand)); }
.chip .ic { color: var(--a, var(--brand)); }
.modules { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.modules > div { padding: 24px; border-left: 1px solid var(--rule); }
.modules > div:first-child { border-left: 0; }
.modules h3 { font-size: 1.05rem; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--a, var(--brand)); display: inline-block; }
.modules ul { list-style: none; padding: 0; margin: 0; }
.modules li { padding: 6px 0; color: var(--ink-2); font-size: 15px; border-bottom: 1px dashed var(--rule); }
.modules li:last-child { border: 0; }
@media (max-width: 900px) { .modules { grid-template-columns: repeat(2, 1fr); } .modules > div:nth-child(3) { border-left: 0; } .modules > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 520px) { .modules { grid-template-columns: 1fr; } .modules > div { border-left: 0 !important; border-top: 1px solid var(--rule); } .modules > div:first-child { border-top: 0; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery a { display: block; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.video { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- pricing ---------- */
.billing-toggle { display: inline-flex; padding: 4px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; gap: 2px; }
.billing-toggle button { border: 0; background: none; font: 600 14px/1 var(--sans); color: var(--muted); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16,32,63,.12); }
.billing-toggle .save { color: var(--ok); font-weight: 600; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px 24px; display: flex; flex-direction: column; }
.plan.hl { border-color: var(--a, var(--brand)); box-shadow: 0 0 0 1px var(--a), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 22px; background: var(--a, var(--brand)); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.plan .tagline { color: var(--muted); font-size: 14.5px; min-height: 2.6em; }
.plan .price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price strong { font: 700 2.2rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .price-note { color: var(--muted); font-size: 13px; min-height: 1.4em; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.plan li .ic { color: var(--a, var(--brand)); margin-top: 3px; }
.plan .btn { margin-top: auto; --b: var(--a, var(--brand)); }
.plan .btn-ghost { --b: var(--rule-2); }
[data-billing="monthly"] .yearly-only, [data-billing="yearly"] .monthly-only { display: none; }
.price-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.price-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; font-weight: 600; background: var(--surface); }
.price-tabs a[aria-selected="true"] { border-color: var(--a, var(--brand)); color: var(--a, var(--brand)); box-shadow: inset 0 -3px 0 var(--a, var(--brand)); }
.price-panel[hidden] { display: none; }
.pricing-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.quote { padding: 28px 0; border-top: 1px solid var(--rule); }
.quote blockquote { margin: 0 0 18px; font: 500 1.12rem/1.55 var(--display); color: var(--ink); letter-spacing: -.005em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); display: block; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--paper-2); display: grid; place-items: center; font-weight: 700; color: var(--ink-2); flex: none; }
.stars { color: #E5A400; display: inline-flex; gap: 1px; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .ans { padding: 0 40px 20px 0; color: var(--ink-2); }
.faq .ans p:last-child { margin: 0; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.post-card { display: flex; flex-direction: column; }
.post-card .cover { text-decoration: none; display: block; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 16px; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card .cover:hover img { transform: scale(1.03); }
.cover-ph { text-decoration: none; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: repeating-linear-gradient(var(--surface) 0 31px, var(--rule) 31px 32px); color: var(--a, var(--brand)); }
.cover-ph .ph-type { font: 600 13px/1 var(--sans); display: inline-flex; gap: 8px; align-items: center; }
.cover-ph .ph-mark { align-self: flex-end; opacity: .9; }
.cover-ph .ph-title { font: 700 1.05rem/1.3 var(--display); color: var(--ink); max-width: 90%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; border-left: 3px solid var(--a, var(--brand)); padding-left: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.post-meta a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.post-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--rule); }
.post-feature .cover { margin: 0; }
.post-feature h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.post-feature h2 a { color: var(--ink); text-decoration: none; }
.post-feature p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } .post-feature { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.cat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
@media (max-width: 980px) { .layout-side { grid-template-columns: 1fr; } }

/* article */
.article-head { padding: 56px 0 36px; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 22ch; }
.article-head .lead { margin-bottom: 26px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); }
.byline strong { color: var(--ink); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); margin-bottom: 48px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 720px) 1fr; gap: 48px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc h4 { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--rule); color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a.l3 { padding-left: 24px; }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--brand); }
@media (max-width: 1080px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .toc { position: static; border: 1px solid var(--rule); border-radius: 12px; padding: 16px; } }
.prose { font-size: 1.075rem; line-height: 1.75; color: var(--ink-2); }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 1.7rem; margin: 1.8em 0 .55em; color: var(--ink); scroll-margin-top: 90px; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; color: var(--ink); scroll-margin-top: 90px; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font: 500 1.2rem/1.55 var(--display); color: var(--ink); }
.prose img { border-radius: 12px; border: 1px solid var(--rule); margin: 1.6em 0; }
.prose pre { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 14px; }
.prose code { background: var(--paper-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper-2); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.prose a { font-weight: 500; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; }
.prose > :first-child { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.share { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.author-box { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); margin: 32px 0; }
.author-box .avatar { width: 56px; height: 56px; }
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.pn a { display: block; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pn a small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.pn a:hover { border-color: var(--brand); }
.pn .next { text-align: right; grid-column: 2; }
.side-cta { position: sticky; top: 92px; border: 1px solid var(--rule); border-top: 3px solid var(--a, var(--brand)); border-radius: 12px; padding: 20px; background: var(--surface); }
.side-cta h4 { margin-bottom: 6px; }
.side-cta p { color: var(--muted); font-size: 14.5px; }
.side-cta .btn { --b: var(--a, var(--brand)); }
@media (max-width: 1080px) { .side-cta { position: static; } }
.side-block { margin-bottom: 32px; }
.side-block h4 { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; font-size: 15px; }
.side-list a:hover, .side-list a.active { color: var(--brand); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--rule); border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager .cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- help centre ---------- */
.help-search { display: flex; gap: 8px; max-width: 620px; margin-top: 26px; }
.help-search .input { height: 52px; font-size: 16px; }
.help-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.help-cat { display: block; padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.help-cat:hover { border-color: var(--a, var(--brand)); color: var(--ink); }
.help-cat h3 { font-size: 1.08rem; margin: 14px 0 6px; font-family: var(--sans); font-weight: 650; }
.help-cat p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.help-cat small { color: var(--a, var(--brand)); font-weight: 600; }
.article-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.article-list a { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.article-list a:hover strong { color: var(--brand); }
.article-list .ic { color: var(--muted); margin-top: 3px; }
.article-list span:not(.p-icon) { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; margin-top: 40px; background: var(--paper-2); }
.feedback strong { margin-right: auto; }

/* downloads */
.dl-list { border-top: 1px solid var(--rule); }
.dl { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.dl .meta { color: var(--muted); font-size: 14px; }
.dl h3 { font-size: 1.05rem; margin: 0 0 2px; font-family: var(--sans); font-weight: 650; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl .p-icon { display: none; } }

/* careers */
.jobs { border-top: 1px solid var(--rule); }
.job { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.job h3 { font-size: 1.2rem; margin: 0 0 6px; }
.job:hover h3 { color: var(--brand); }
.job-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14.5px; }
.job-facts span { display: inline-flex; gap: 6px; align-items: center; }
.dept { font-size: 15px; color: var(--muted); font-weight: 600; margin: 40px 0 6px; font-family: var(--sans); }
.dept:first-child { margin-top: 0; }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; gap: 32px; } }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-card { padding: 20px; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field label, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--paper); color: var(--ink); font: 400 15.5px/1.4 var(--sans); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2366738C' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input[type="file"] { padding: 10px; height: auto; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 15px; background: var(--paper); }
.choice input { position: absolute; opacity: 0; }
.choice .ic { color: var(--a, var(--brand)); }
.choice:has(input:checked) { border-color: var(--a, var(--brand)); box-shadow: 0 0 0 1px var(--a, var(--brand)); background: color-mix(in srgb, var(--a, var(--brand)) 6%, var(--paper)); }
.choice:has(input:focus-visible) { outline: 2px solid var(--a, var(--brand)); outline-offset: 2px; }
.ticks { list-style: none; padding: 0; margin: 24px 0; }
.ticks li { display: flex; gap: 10px; padding: 8px 0; color: var(--ink-2); }
.ticks .ic { color: var(--ok); margin-top: 3px; }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.contact-lines li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-lines .ic { color: var(--brand); margin-top: 2px; }
.contact-lines small { display: block; color: var(--muted); font-size: 13px; }
.contact-lines a { color: var(--ink); font-weight: 600; text-decoration: none; }
.map { margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; }

.alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; border: 1px solid; }
.alert-error { background: color-mix(in srgb, var(--err) 8%, var(--surface)); border-color: color-mix(in srgb, var(--err) 30%, transparent); color: var(--err); }
.alert-success { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.flash-stack { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; max-width: 380px; }
.flash-stack .alert { box-shadow: var(--shadow); margin: 0; }

/* ---------- CTA band + newsletter + footer ---------- */
.cta-band { background: var(--hero-bg); color: var(--hero-ink); }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: var(--hero-muted); margin: 0; max-width: 58ch; font-size: 1.07rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.newsletter { border-top: 1px solid var(--rule); }
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.newsletter h3 { font-size: 1.4rem; margin-bottom: 6px; }
.newsletter p { margin: 0; color: var(--muted); }
.nl-form { display: flex; gap: 8px; }
.nl-form .input { height: 46px; }
.nl-msg { font-size: 14px; margin-top: 8px; min-height: 1.4em; }
@media (max-width: 820px) { .newsletter .wrap { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .nl-form { flex-direction: column; } }
.site-foot { background: var(--hero-bg); color: var(--hero-muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 64px 0 40px; }
.site-foot .brand { color: #fff; }
.site-foot h4 { font-family: var(--sans); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 9px; }
.site-foot a { color: var(--hero-muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-about { margin: 16px 0 20px; max-width: 36ch; }
.socials { display: flex; gap: 6px; }
.socials a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--hero-rule); }
.socials a:hover { border-color: rgba(255,255,255,.4); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--hero-rule); font-size: 14px; }
.foot-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-bottom li { margin: 0; }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
.wa-float:hover { color: #fff; filter: brightness(1.05); }
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 420px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-2); }
.cookie[hidden] { display: none; }
@media (max-width: 520px) { .cookie { left: 12px; right: 12px; bottom: 84px; } }

/* misc */
.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--rule-2); border-radius: var(--radius-lg); color: var(--muted); }
.empty .ic { color: var(--rule-2); margin-bottom: 10px; }
.empty h3 { color: var(--ink); font-family: var(--sans); font-size: 1.1rem; }
.result { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.result small { color: var(--brand); font-weight: 600; }
.result h3 { font-size: 1.15rem; margin: 4px 0; }
.result h3 a { color: var(--ink); text-decoration: none; }
.result p { margin: 0; color: var(--muted); font-size: 15px; }
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.center-page .big { font: 800 clamp(4rem, 12vw, 8rem)/1 var(--display); letter-spacing: -.05em; color: var(--rule-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; }
.team-card img, .team-card .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 12px; display: grid; place-items: center; font: 700 2.4rem/1 var(--display); color: var(--rule-2); }
.team-card h3 { font-size: 1.05rem; margin: 0 0 2px; font-family: var(--sans); font-weight: 650; }
.team-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--rule); }
.preview-bar { background: #FFF4D6; color: #6B4E00; text-align: center; font-size: 14px; padding: 8px; }
@media print { .site-head, .site-foot, .newsletter, .cta-band, .wa-float, .cookie, .announce { display: none !important; } }

/* ---------- featured-product hero (e.g. TradeBook) ---------- */
.hero--feature { --a: #7C3AED; background:
  radial-gradient(900px 520px at 78% 30%, color-mix(in srgb, var(--a) 34%, transparent), transparent 62%),
  radial-gradient(600px 400px at 8% 100%, color-mix(in srgb, var(--a) 16%, transparent), transparent 70%),
  var(--hero-bg); }
.hero--feature::before { opacity: .35; }
.hero--feature .wrap { grid-template-columns: 1fr 1.02fr; padding-top: 72px; padding-bottom: 64px; }
.hero--feature h1 { max-width: 16ch; font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
.hero--feature .lead { margin-bottom: 22px; }
.hf-badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; margin-bottom: 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--hero-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.hf-badge:hover { color: #fff; border-color: color-mix(in srgb, var(--a) 70%, white); }
.hf-badge > span { background: var(--a); color: #fff; font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.hf-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 9px; }
.hf-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--hero-ink); font-size: 15.5px; }
.hf-points .ic { color: color-mix(in srgb, var(--a) 55%, white); margin-top: 3px; }
.hf-primary { --b: var(--a); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--a) 80%, transparent); }
.hf-note { margin: 14px 0 0; font-size: 13.5px; color: var(--hero-muted); }

.hf-visual { position: relative; padding: 0 0 72px 0; }
.tj { position: relative; background: #0E1730; color: #E7ECF7; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px color-mix(in srgb, var(--a) 25%, transparent); overflow: hidden; }
.tj-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.tj-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 25%, transparent); }
.tj-sub { margin-left: auto; color: #8C99B2; font-size: 12.5px; }
.tj-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(255,255,255,.08); }
.tj-stats > div { padding: 14px 18px; border-left: 1px solid rgba(255,255,255,.08); }
.tj-stats > div:first-child { border-left: 0; }
.tj-stats span { display: block; color: #8C99B2; font-size: 12px; margin-bottom: 3px; }
.tj-stats strong { font: 700 1.35rem/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.tj-stats strong.pos, .tj .pnl.pos { color: #34D399; }
.tj-stats strong.neg, .tj .pnl.neg { color: #F87171; }
.tj-chart { display: block; width: 100%; height: 170px; color: color-mix(in srgb, var(--a) 60%, white); }
.tj-grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 3 5; }
.tj-trades { padding: 6px 18px 78px; }
.tj-trades > div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 13.5px; }
.tj-trades > div:first-child { border-top: 0; }
.tj .sym { font-weight: 600; }
.tj .tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tj .tag.ok { background: rgba(52,211,153,.14); color: #6EE7B7; }
.tj .tag.bad { background: rgba(248,113,113,.14); color: #FCA5A5; }
.tj .pnl { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.tj-insight { position: absolute; left: -28px; bottom: 0; z-index: 2; width: min(330px, 86%); display: flex; gap: 12px; padding: 14px 16px; background: #fff; color: #10203F; border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); }
.tj-insight b { display: block; font-size: 13px; color: var(--a); margin-bottom: 2px; }
.tj-insight p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #3A4A68; }
.tj-ai { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--a); background: color-mix(in srgb, var(--a) 12%, #fff); }
.hf-shot { border-radius: 14px; border-bottom: 1px solid var(--rule); }

.hf-family { position: relative; border-top: 1px solid rgba(255,255,255,.1); background: rgba(5,10,24,.35); }
.hf-family .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.hf-family-label { display: inline-flex; align-items: center; gap: 10px; color: var(--hero-muted); font-size: 14px; }
.hf-family-links { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.hf-family-links a { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); color: var(--hero-ink); text-decoration: none; }
.hf-family-links a:hover { border-color: color-mix(in srgb, var(--a) 70%, transparent); background: rgba(255,255,255,.04); color: #fff; }
.hf-family-links .dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: color-mix(in srgb, var(--a) 70%, white); background: color-mix(in srgb, var(--a) 22%, transparent); }
.hf-family-links b { display: block; font-size: 14px; }
.hf-family-links small { display: block; font-size: 12px; color: var(--hero-muted); }

@media (prefers-reduced-motion: no-preference) {
  .js .tj-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tjdraw 1.6s .3s cubic-bezier(.4,.1,.2,1) forwards; }
  .js .tj-area, .js .tj-end { opacity: 0; animation: tjfade .6s 1.6s ease-out forwards; }
  .js .tj-insight { opacity: 0; transform: translateY(10px); animation: post .5s 1.9s cubic-bezier(.2,.7,.2,1) forwards; }
}
@keyframes tjdraw { to { stroke-dashoffset: 0; } }
@keyframes tjfade { to { opacity: 1; } }
@media (max-width: 980px) {
  .hero--feature .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hf-visual { padding-bottom: 0; }
  .tj-trades { padding-bottom: 12px; }
  .tj-insight { position: relative; left: auto; bottom: auto; width: auto; margin: 12px 0 0; }
  .hf-family-links { margin-left: 0; }
}
@media (max-width: 520px) {
  .tj-chart { height: 120px; }
  .tj-stats strong { font-size: 1.1rem; }
  .tj-stats > div, .tj-head, .tj-trades { padding-left: 12px; padding-right: 12px; }
  .tj .tag { display: none; }
  .tj-trades > div { grid-template-columns: 1fr auto; }
  .hf-family-links a { flex: 1 1 calc(50% - 8px); }
}

/* ---------- product carousel hero (light) ---------- */
.hc { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--rule); }
.hc-stage { display: grid; align-items: stretch; }
.hc-slide { display: flex; flex-direction: column; }
.hc-slide > .hc-grid { flex: 1; width: 100%; align-items: start; }
.hc-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s;
  background:
    radial-gradient(760px 460px at 82% 40%, color-mix(in srgb, var(--a) 16%, transparent), transparent 70%),
    radial-gradient(520px 360px at 0% 0%, color-mix(in srgb, var(--a) 9%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--a) 6%, var(--paper)), var(--paper) 92%); }
.hc-slide.is-active { opacity: 1; visibility: visible; transition: opacity .55s ease; }
.hc-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 28px; }
.hc-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 15px; color: var(--ink-2); }
.hc-kicker b { color: var(--ink); }
.hc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--a); background: color-mix(in srgb, var(--a) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--a) 24%, transparent); }
.hc-cat { color: var(--a); font-weight: 600; }
.hc-cat::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--rule-2); margin: 0 10px 3px 0; vertical-align: middle; }
.hc-badge { background: var(--a); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.hc h1, .hc .hc-h { font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; color: var(--ink); margin: 0 0 18px; max-width: 17ch; text-wrap: balance; }
.hc .lead { margin-bottom: 20px; }
.hc-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.hc-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.hc-points .ic { color: var(--a); margin-top: 3px; }
.hc-primary { --b: var(--a); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--a) 70%, transparent); }
.hc .btn-ghost { background: var(--surface); }
.hc .btn-ghost .ic { color: var(--muted); }
.hc-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hc-note a { color: var(--a); font-weight: 600; text-decoration: none; }
.hc-note a:hover { text-decoration: underline; }
.hc-visual { position: relative; padding: 18px 0 30px 0; }
.hc-shot { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--rule);
  box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--a) 55%, rgba(16,32,63,.5)), 0 2px 6px rgba(16,32,63,.06); transform: perspective(1600px) rotateY(-4deg); transform-origin: left center; }
.hc-shot .shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.hc-shot .shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-2); }
.hc-shot .shot-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 2px 10px; }
.hc-shot img { display: block; width: 100%; height: auto; }
.hc-chip { position: absolute; display: grid; gap: 2px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(16,32,63,.35); max-width: 230px; }
.hc-chip strong { font: 700 1.05rem/1.2 var(--display); color: var(--a); letter-spacing: -.01em; }
.hc-chip span { font-size: 13px; color: var(--ink-2); }
.hc-chip-0 { left: -26px; bottom: 6px; }
.hc-chip-1 { right: -14px; top: 0; }

.hc-nav { display: flex; align-items: center; gap: 10px; padding-top: 6px; padding-bottom: 28px; }
.hc-tabs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.hc-tab { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px 14px; text-align: left; background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink-2); overflow: hidden; transition: border-color .15s, background .15s; }
.hc-tab:hover { border-color: color-mix(in srgb, var(--a) 45%, var(--rule)); background: var(--surface); }
.hc-tab.is-active { background: var(--surface); border-color: color-mix(in srgb, var(--a) 60%, var(--rule)); color: var(--ink); box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--a) 80%, transparent); }
.hc-tab-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--a); background: color-mix(in srgb, var(--a) 12%, transparent); }
.hc-tab-txt { min-width: 0; }
.hc-tab-txt b { display: block; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-tab-txt small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--a) 14%, transparent); overflow: hidden; opacity: 0; }
.hc-tab.is-active .hc-bar { opacity: 1; }
.hc-bar i { display: block; height: 100%; width: 100%; background: var(--a); transform: scaleX(0); transform-origin: left; }
.hc-tab.is-active .hc-bar i { transform: scaleX(1); }
.hc.is-playing .hc-tab.is-active .hc-bar i { animation: hcbar var(--hc-dur, 7s) linear forwards; }
.hc.is-paused .hc-tab.is-active .hc-bar i { animation-play-state: paused; }
@keyframes hcbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hc-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.hc-arrow:hover { color: var(--ink); border-color: var(--rule-2); }
.hc-arrow[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hc-slide.is-active .hc-copy > * { animation: hcin .6s cubic-bezier(.2,.7,.2,1) both; }
  .hc-slide.is-active .hc-copy > :nth-child(2) { animation-delay: .05s; }
  .hc-slide.is-active .hc-copy > :nth-child(3) { animation-delay: .1s; }
  .hc-slide.is-active .hc-copy > :nth-child(n+4) { animation-delay: .15s; }
  .hc-slide.is-active .hc-shot { animation: hcshot .8s cubic-bezier(.2,.7,.2,1) both; }
  .hc-slide.is-active .hc-chip { animation: hcin .6s .35s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes hcin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hcshot { from { opacity: 0; transform: perspective(1600px) rotateY(-4deg) translateX(24px); } to { opacity: 1; transform: perspective(1600px) rotateY(-4deg); } }
@media (prefers-reduced-motion: reduce) { .hc-slide { transition: none; } }

@media (max-width: 1100px) { .hc-tab-txt small { display: none; } }
@media (max-width: 980px) {
  .hc { display: flex; flex-direction: column; }
  .hc > * { min-width: 0; max-width: 100%; }
  .hc-slide { background:
    radial-gradient(420px 320px at 90% 60%, color-mix(in srgb, var(--a) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--a) 7%, var(--paper)) 120px, var(--paper) 94%); }
  .hc-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; padding-bottom: 32px; }
  .hc-shot { transform: none; }
  .hc-chip-0 { left: 10px; } .hc-chip-1 { right: 10px; }
  .hc-nav { order: -1; flex-wrap: nowrap; padding-top: 16px; padding-bottom: 0; position: relative; z-index: 2; }
  .hc-arrow:not(.hc-pause) { display: none; }
  .hc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 2px; }
  .hc-tabs::-webkit-scrollbar { display: none; }
  .hc-tab { flex: none; scroll-snap-align: start; padding: 7px 14px 11px 8px; border-radius: 999px; }
  .hc-tab-ic { width: 26px; height: 26px; border-radius: 50%; }
  .hc-tab-txt small { display: none; }
  .hc-tab-txt b { font-size: 13.5px; }
  .hc-bar { left: 14px; right: 14px; bottom: 4px; height: 2px; }
  .hc-pause { width: 36px; height: 36px; }
}
@media (max-width: 620px) {
  .hc-chip { padding: 8px 12px; } .hc-chip strong { font-size: .95rem; } .hc-chip span { font-size: 12px; }
  .hc-chip-1 { display: none; }
}


/* ---------- product logos (uploaded in Admin → Products) ---------- */
.p-logo { display: inline-block; flex: none; object-fit: contain; border-radius: 6px; vertical-align: middle; }
:is(.p-icon, .hc-ic, .hc-tab-ic, .p-dot, .dot):has(> .p-logo) { background: #fff; padding: 3px; box-shadow: inset 0 0 0 1px var(--rule); }
:is(.p-icon, .hc-ic, .hc-tab-ic, .p-dot, .dot) > .p-logo { width: 100%; height: 100%; border-radius: inherit; }
:is(.flow-node h4, .choice, .pricing-tabs a) > .p-logo { margin-right: 2px; }
