/* =========================================================================
   TRADE GROW — DESIGN SYSTEM
   Light-first fintech. No external fonts, no CSS framework, no runtime deps.
   Tone: calm, precise, verifiable. Nothing here should feel like a sales page.
   ========================================================================= */

:root {
  color-scheme: light;

  /* --- palette ------------------------------------------------------- */
  --ink:        #0A2540;   /* primary text, deep navy */
  --ink-2:      #1E3A5F;
  --muted:      #5A6B87;
  --muted-2:    #617186;   /* 4.72:1 on tint, 5.24:1 on white — AA small text */

  --brand:      #1B4DFF;   /* primary action */
  --brand-700:  #1039CC;
  --brand-100:  #E8EEFF;
  --brand-50:   #F3F6FF;

  --teal:       #0FB5A5;   /* secondary accent, used sparingly */
  --teal-50:    #E9FAF8;

  --ok:         #0D7E57;   /* 4.59:1 on ok-50 — AA small text */
  --ok-50:      #E8F7F0;
  --warn:       #9F5E0A;   /* 4.72:1 on warn-50 — the .pending badge must be readable */
  --warn-50:    #FDF4E5;
  --danger:     #C0342B;
  --danger-50:  #FDEEED;

  --bg:         #FFFFFF;
  --bg-tint:    #F7F9FC;
  --bg-deep:    #071B31;
  --surface:    #FFFFFF;
  --line:       #E3E8F0;
  --line-2:     #EDF1F7;

  /* --- type ---------------------------------------------------------- */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* --- space / shape ------------------------------------------------- */
  --wrap: 1140px;
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --sh-1: 0 1px 2px rgba(10,37,64,.05), 0 1px 3px rgba(10,37,64,.04);
  --sh-2: 0 4px 12px rgba(10,37,64,.06), 0 1px 3px rgba(10,37,64,.04);
  --sh-3: 0 18px 44px rgba(10,37,64,.10), 0 2px 8px rgba(10,37,64,.05);
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ------------------------------------------------------------ typography */

h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.021em; font-weight: 700; }

.h1, h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.35rem); letter-spacing: -.032em; }
.h2, h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); letter-spacing: -.026em; }
.h3, h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
.h4, h4 { font-size: 1.125rem; }
.h5, h5 { font-size: 1rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .7em;
}
.lede { font-size: clamp(1.02rem, .97rem + .28vw, 1.16rem); color: var(--muted); max-width: 66ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.muted.small { display: inline-block; }

code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-tint); border: 1px solid var(--line);
  padding: .1em .4em; border-radius: 5px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.logo__mark { width: 30px; height: 30px; border-radius: 9px; }
.logo__text { font-weight: 800; font-size: 1.1rem; letter-spacing: -.028em; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a {
  padding: 8px 11px; border-radius: 8px; font-size: .925rem; font-weight: 550;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav > a:hover { background: var(--bg-tint); color: var(--ink); }
.nav > a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px; box-shadow: var(--sh-2);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 12px 12px; font-size: 1rem; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 650; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 15px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(27,77,255,.28); }
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: 0 6px 18px rgba(27,77,255,.26); }

.btn--secondary { background: var(--ink); color: #fff; }
.btn--secondary:hover { background: #06182c; color: #fff; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn--ghost:hover { background: var(--bg-tint); color: var(--ink); border-color: #D3DAE6; }

.btn--link { background: none; padding: 0; color: var(--brand); }

/* WhatsApp CTA — brand green, dark text (white on #25D366 is 1.98:1 and fails AA). */
.btn--wa { background: #25D366; border-color: #25D366; color: var(--ink); }
.btn--wa:hover { background: #1FB855; border-color: #1FB855; color: var(--ink); }

.ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 5vw, 84px) 0 clamp(40px, 4vw, 64px);
  background:
    radial-gradient(1100px 460px at 78% -12%, rgba(15,181,165,.11), transparent 62%),
    radial-gradient(860px 420px at 8% -18%, rgba(27,77,255,.13), transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 14px 6px 8px; font-size: .82rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-1); margin-bottom: 22px;
}
.hero__badge b { color: var(--brand); font-weight: 700; }
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }

.hero h1 { margin-bottom: .45em; }
.hero__sub { font-size: clamp(1.03rem, .98rem + .32vw, 1.19rem); color: var(--muted); max-width: 56ch; margin-bottom: 28px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero__points { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; font-size: .945rem; color: var(--ink-2); }
.hero__points svg { width: 19px; height: 19px; color: var(--ok); flex: 0 0 auto; margin-top: 2px; }

/* hero visual: a device frame, explicitly labelled illustrative */
.device {
  position: relative; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden;
}
.device__bar {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px;
  border-bottom: 1px solid var(--line-2); background: var(--bg-tint);
}
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D7DEE9; display: block; }
.device__bar span { margin-left: auto; font-size: .72rem; color: var(--muted-2); font-weight: 600; letter-spacing: .02em; }
.device__body { padding: 18px; display: grid; gap: 12px; }

.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; }
.mini-row strong { font-size: .92rem; }
.mini-row .sym { font-size: .72rem; color: var(--muted-2); display: block; font-weight: 600; letter-spacing: .04em; }
.mini-row .num { font-variant-numeric: tabular-nums; font-weight: 650; font-size: .92rem; }
.num--up { color: var(--ok); } .num--down { color: var(--danger); }

.mini-breakdown { border: 1px solid var(--line-2); border-radius: 10px; padding: 13px; background: var(--bg-tint); }
.mini-breakdown .mb-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 9px; }
.mini-breakdown dl { display: grid; gap: 5px; margin: 0; font-size: .82rem; }
.mini-breakdown div { display: flex; justify-content: space-between; gap: 10px; }
.mini-breakdown dt { color: var(--muted); }
.mini-breakdown dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.mini-breakdown .tot { border-top: 1px dashed #CFD8E6; padding-top: 6px; margin-top: 3px; }

.illustrative {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 650; color: var(--warn);
  background: var(--warn-50); border: 1px solid #F0DCB8;
  padding: 4px 10px; border-radius: 100px; margin-top: 12px;
}

/* -------------------------------------------------------------- sections */

.section { padding: clamp(48px, 5.5vw, 88px) 0; }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line-2); }
.section--deep { background: var(--bg-deep); color: #E8EFF7; }
.section--deep .h2, .section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .lede, .section--deep .muted { color: #9DB2CC; }

.section__head { max-width: 72ch; margin-bottom: clamp(28px, 3vw, 44px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lede { margin-inline: auto; }

/* ------------------------------------------------------------- trust bar */

.trustbar { background: var(--ink); color: #fff; padding: clamp(30px, 3.4vw, 48px) 0; }
.trustbar__heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8FA8C6; font-weight: 700; margin-bottom: 20px; }
.trustbar__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); overflow: hidden; margin: 0;
}
.trustbar__item { background: var(--ink); padding: 17px 18px; }
.trustbar__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .075em; color: #8FA8C6; font-weight: 650; margin-bottom: 5px; }
.trustbar__value { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
                   font-weight: 650; font-size: .96rem; color: #fff; word-break: break-word; }
.trustbar__verify {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 650; color: #7FE3D8; text-decoration: none;
  border-bottom: 1px solid rgba(127,227,216,.35); padding-bottom: 1px;
}
.trustbar__verify:hover { color: #A8F0E8; border-bottom-color: #A8F0E8; }
.trustbar__verify .ico { width: 14px; height: 14px; }
.trustbar__note { margin-top: 16px; font-size: .85rem; color: #8FA8C6; max-width: 70ch; }

.trustbar .pending { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #F0C88A; }

/* ---------------------------------------------------------------- pills */

.pending {
  display: inline-block; font-size: .8em; font-weight: 600;
  color: var(--warn); background: var(--warn-50);
  border: 1px solid #F0DCB8; border-radius: 6px; padding: 1px 8px;
  white-space: nowrap;
}

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 650; padding: 4px 11px; border-radius: 100px;
  border: 1px solid transparent; white-space: nowrap;
}
.pill--ok   { color: var(--ok);    background: var(--ok-50);    border-color: #C6E8D8; }
.pill--warn { color: var(--warn);  background: var(--warn-50);  border-color: #F0DCB8; }
.pill--na   { color: var(--muted); background: var(--bg-tint);  border-color: var(--line); }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}
.tag--tg   { background: var(--brand-100); color: var(--brand-700); }
.tag--stat { background: #EFF2F7; color: var(--ink-2); }

/* ---------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; box-shadow: var(--sh-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: #D3DAE6; }
.card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.card__num { font-size: .8rem; font-weight: 800; color: var(--muted-2); letter-spacing: .06em; }
.card__icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100);
}
.card__icon .ico { width: 20px; height: 20px; }
.card__title { font-size: 1.06rem; margin-bottom: .45em; }
.card__body { color: var(--muted); font-size: .93rem; margin-bottom: 16px; flex: 1; }
.card__link { font-size: .9rem; font-weight: 650; text-decoration: none; }
.card__link:hover { text-decoration: underline; }

.card--quote blockquote { margin: 0 0 16px; font-size: 1.02rem; color: var(--ink-2); }
.card--quote figcaption { display: grid; gap: 3px; font-size: .88rem; }

/* --------------------------------------------------------------- panels */

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--sh-1); margin-bottom: 16px;
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.panel__head h3 { margin: 0; display: flex; align-items: center; gap: 9px; }
.panel__head .ico { color: var(--brand); }

.kvlist { display: grid; gap: 0; margin: 0 0 16px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.kv { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 14px; padding: 11px 15px; border-bottom: 1px solid var(--line-2); }
.kv:last-child { border-bottom: 0; }
.kv:nth-child(odd) { background: #FBFCFE; }
.kv dt { color: var(--muted); font-size: .89rem; }
.kv dd { margin: 0; font-weight: 600; font-size: .93rem; word-break: break-word; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 3px; } }

/* --------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.table-scroll .table { border: 0; border-radius: 0; margin: 0; }

.table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  font-size: .92rem; margin-bottom: 18px;
}
.table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table thead th {
  background: var(--bg-tint); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); font-weight: 700; white-space: nowrap;
}
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 600; color: var(--ink); }
.table tbody th .small { display: block; font-weight: 400; margin-top: 2px; }
.table td { font-variant-numeric: tabular-nums; }

.table--pricing .row--brokerage { background: var(--brand-50); }
.table--pricing .row--brokerage th { color: var(--brand-700); }
.table--compare th[scope="col"].is-self { color: var(--brand-700); background: var(--brand-50); }
.table--compare th[scope="row"] { min-width: 210px; }
.table--checklist td:first-of-type { white-space: nowrap; }

.verify-link { font-size: .85rem; font-weight: 600; white-space: nowrap; }

/* -------------------------------------------------------------- notices */

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--brand-50); border-radius: var(--r-sm);
  padding: 16px 18px; margin-bottom: 22px; font-size: .93rem; color: var(--ink-2);
}
.notice--warn { background: var(--warn-50); border-color: #F0DCB8; border-left-color: var(--warn); }
.notice--danger { background: var(--danger-50); border-color: #F3CFCC; border-left-color: var(--danger); }
.notice--ok { background: var(--ok-50); border-color: #C6E8D8; border-left-color: var(--ok); }

.otp-warning {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--danger-50); border: 1px solid #F3CFCC; border-radius: var(--r);
  padding: 16px 18px; margin: 22px 0;
}
.otp-warning__icon {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: #fff; color: var(--danger); border: 1px solid #F3CFCC; flex: 0 0 auto;
}
.otp-warning p { margin: 0; font-weight: 600; font-size: .94rem; color: #8A2820; }

.claim { font-size: 1.02rem; font-weight: 600; padding: 14px 18px; background: var(--ok-50); border: 1px solid #C6E8D8; border-radius: var(--r-sm); margin-bottom: 22px; }
.claim--pending { background: var(--bg-tint); border-color: var(--line); font-weight: 400; color: var(--muted); }

.disclaimer, .risk-note { font-size: .84rem; color: var(--muted); max-width: 90ch; }
.risk-note { padding: 12px 15px; background: var(--bg-tint); border: 1px solid var(--line-2); border-radius: var(--r-sm); margin: 18px 0; }

.footnotes { font-size: .85rem; color: var(--muted); padding-left: 1.1em; margin: 18px 0 0; display: grid; gap: 6px; }

.split-note { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
@media (max-width: 760px) { .split-note { grid-template-columns: 1fr; } }
.split-note__col { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; }
.split-note__col p { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }
.split-note__col strong { color: var(--ink); }

/* ------------------------------------------------------------ checklist */

.checklist__summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.checklist__note { font-size: .92rem; color: var(--muted); max-width: 72ch; margin-bottom: 20px; }

/* ----------------------------------------------------------- calculator */

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 22px; align-items: start; }
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }

.calc__form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--sh-1);
}
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: .86rem; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.field input[type="number"], .field input[type="text"], .field input[type="tel"],
.field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,77,255,.12);
}
.field__hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.segbtns { display: flex; flex-wrap: wrap; gap: 7px; }
.segbtns input { position: absolute; opacity: 0; pointer-events: none; }
.segbtns label {
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 100px;
  font-size: .875rem; font-weight: 600; cursor: pointer; background: #fff;
  transition: all .15s; color: var(--ink-2);
}
.segbtns input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.segbtns input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

.calc__out { background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px; position: sticky; top: 84px; }
.calc__total { border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 16px; margin-bottom: 16px; }
.calc__total span { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: #8FA8C6; font-weight: 650; display: block; margin-bottom: 4px; }
.calc__total strong { font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem); font-variant-numeric: tabular-nums; letter-spacing: -.03em; display: block; }
.calc__total em { font-style: normal; font-size: .84rem; color: #8FA8C6; display: block; margin-top: 4px; }

.calc__lines { display: grid; gap: 8px; margin: 0; font-size: .9rem; }
.calc__lines div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.calc__lines dt { color: #B7C7DA; }
.calc__lines dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 650; }
.calc__lines .is-brokerage dt { color: #9FD8FF; }
.calc__lines .is-total { border-top: 1px solid rgba(255,255,255,.14); padding-top: 9px; margin-top: 5px; font-size: .98rem; }
.calc__lines .is-total dt { color: #fff; font-weight: 650; }
.calc__note { font-size: .8rem; color: #8FA8C6; margin-top: 16px; }
.calc__group { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: #7F97B5; font-weight: 700; margin: 12px 0 2px; }

/* ---------------------------------------------------------------- steps */

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps > li {
  counter-increment: s; position: relative; padding: 18px 20px 18px 62px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1);
}
.steps > li::before {
  counter-increment: none; content: counter(s);
  position: absolute; left: 18px; top: 17px;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100); font-weight: 750; font-size: .88rem;
}
.steps h3 { font-size: 1.02rem; margin-bottom: .3em; }
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }
.steps--compact > li { padding: 13px 16px 13px 54px; font-size: .92rem; color: var(--muted); }
.steps--compact > li::before { top: 12px; left: 15px; width: 26px; height: 26px; font-size: .82rem; }

.escalation { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.escalation__step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.escalation__n {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem;
}
.escalation h3 { margin-bottom: .2em; }
.escalation p { margin: 0; font-size: .89rem; }

/* ------------------------------------------------------------------ faq */

.faq__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.faq__nav a {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px;
  font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--ink-2); background: #fff;
}
.faq__nav a:hover { border-color: var(--brand); color: var(--brand); }
.faq__cat { margin-bottom: 40px; }
.faq__cat h2 { margin-bottom: .7em; padding-bottom: .4em; border-bottom: 1px solid var(--line); }

.qa { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; margin-bottom: 9px; }
.qa summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: .97rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa[open] summary { border-bottom: 1px solid var(--line-2); }
.qa__a { padding: 15px 18px; color: var(--muted); font-size: .94rem; }
.qa__a a { font-weight: 600; }

/* ------------------------------------------------------------ red flags */

.flags { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.flags li {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 18px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--danger); border-radius: var(--r-sm);
}
.flags__x {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--danger-50); color: var(--danger); font-weight: 800; font-size: .82rem; margin-top: 1px;
}
.flags strong { display: block; margin-bottom: 3px; font-size: .96rem; }
.flags p { margin: 0; font-size: .89rem; color: var(--muted); }

.never { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 11px; padding: 0; margin: 0 0 24px; list-style: none; }
.never li {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: #fff; border: 1px solid #F3CFCC; border-radius: var(--r-sm); font-weight: 650; font-size: .93rem;
}
.never li::before { content: "\2716"; color: var(--danger); font-size: .9rem; }

/* ------------------------------------------------------- platform mocks */

.mocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.mock {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #fff; box-shadow: var(--sh-1);
}
.mock__head { padding: 13px 16px; border-bottom: 1px solid var(--line-2); background: var(--bg-tint); }
.mock__head h3 { margin: 0; font-size: .97rem; }
.mock__head p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.mock__body { padding: 16px; display: grid; gap: 9px; min-height: 180px; }

.bar-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.bar-row .lbl { width: 76px; color: var(--muted); flex: 0 0 auto; }
.bar-row .bar { height: 8px; border-radius: 4px; background: var(--brand-100); flex: 1; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.bar-row .val { font-variant-numeric: tabular-nums; font-weight: 650; width: 62px; text-align: right; flex: 0 0 auto; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; font-weight: 650; padding: 4px 10px; border-radius: 100px; background: var(--bg-tint); border: 1px solid var(--line); color: var(--ink-2); }

.video-slot {
  border: 2px dashed var(--line); border-radius: var(--r); background: var(--bg-tint);
  padding: clamp(32px, 6vw, 64px) 24px; text-align: center; color: var(--muted);
}
.video-slot h3 { color: var(--ink); margin-bottom: .4em; }

/* --------------------------------------------------------- empty state */

.empty-state {
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--bg-tint);
  padding: clamp(30px, 4vw, 52px); text-align: center;
}
.empty-state .lede { margin: 0 auto 22px; }

.devnote {
  border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 12px 16px;
  background: var(--bg-tint); font-size: .88rem; color: var(--muted); margin-top: 26px;
}
.devnote summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.devnote ol { margin: 10px 0; padding-left: 1.3em; }
.devnote li { margin-bottom: 4px; }

/* -------------------------------------------------------------- footer */

.site-footer { background: var(--bg-deep); color: #9DB2CC; padding: clamp(40px, 4.5vw, 66px) 0 120px; font-size: .9rem; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 26px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.09);
}
@media (max-width: 1040px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 620px)  { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

.logo--footer { color: #fff; margin-bottom: 14px; }
.site-footer__entity { color: #C7D6E8; font-weight: 600; margin-bottom: 6px; }
.site-footer__addr { font-size: .85rem; line-height: 1.6; }

.site-footer__col h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: #6E88A8; font-weight: 700; margin-bottom: 12px; }
.site-footer__col a { display: block; color: #9DB2CC; text-decoration: none; padding: 4px 0; font-size: .875rem; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }

.site-footer__legal { padding-top: 26px; display: grid; gap: 16px; }
.site-footer__docs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__docs a { color: #C7D6E8; font-size: .85rem; font-weight: 600; text-decoration: none; }
.site-footer__docs a:hover { color: #fff; text-decoration: underline; }

.site-footer__reg { display: grid; gap: 4px; font-size: .84rem; }
.site-footer__reg p { margin: 0; }
.site-footer__reg strong { color: #C7D6E8; }

.site-footer .risk-note { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #9DB2CC; }
.site-footer__disc { font-size: .81rem; line-height: 1.6; max-width: 105ch; }
.site-footer__copy { font-size: .81rem; color: #6E88A8; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.09); }
.site-footer a { color: #8FD6CE; }

.site-footer .pending { background: rgba(240,200,138,.1); border-color: rgba(240,200,138,.3); color: #F0C88A; }

/* ------------------------------------------------------- sticky / fab */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; gap: 7px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sticky-cta__btn {
  flex: 1; text-align: center; padding: 12px 6px; border-radius: 10px;
  font-size: .855rem; font-weight: 650; text-decoration: none; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.sticky-cta__btn--ghost { background: var(--bg-tint); color: var(--ink); border: 1px solid var(--line); }
.sticky-cta__btn--primary { background: var(--brand); color: #fff; flex: 1.35; }

@media (max-width: 760px) { .sticky-cta { display: flex; } }

.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 46;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border-radius: 100px; text-decoration: none;
  font-weight: 650; font-size: .92rem; box-shadow: var(--sh-3);
}
.fab--wa { background: #25D366; color: var(--ink); }
.fab--wa:hover { background: #1FB855; color: var(--ink); }
.fab svg { width: 21px; height: 21px; }
@media (max-width: 760px) {
  .fab { bottom: 76px; padding: 12px; }
  .fab span { display: none; }
}

/* ---------------------------------------------------------------- misc */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .45em; }
.prose table { font-size: .9rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #9DB2CC; max-width: 60ch; margin-inline: auto; margin-bottom: 24px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; }

.pricing-seg { margin-bottom: 34px; }
.pricing-seg h3 { padding-bottom: .4em; border-bottom: 1px solid var(--line); margin-bottom: .8em; }

.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; }
.form-status--ok { color: var(--ok); }
.form-status--err { color: var(--danger); }

/* -------------------------------------------------------- legal layout */

.legal-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 36px; margin-top: 32px; align-items: start;
}
.legal-nav {
  position: sticky; top: 100px; background: var(--bg-tint); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px;
}
.legal-nav h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px;
}
.legal-nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .875rem; }
.legal-nav a { color: var(--ink-2); text-decoration: none; display: block; line-height: 1.4; }
.legal-nav a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; margin-bottom: 20px; }
}

/* ---------------------------------------------------- onboarding portal */

.portal {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); overflow: hidden; margin: 28px 0;
}
.portal__tabs {
  display: flex; border-bottom: 1px solid var(--line); background: var(--bg-tint); padding: 6px 12px 0; gap: 6px;
}
.portal__tab {
  background: transparent; border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0; padding: 12px 20px;
  font-size: .95rem; font-weight: 650; color: var(--muted); cursor: pointer; transition: all .2s;
}
.portal__tab:hover { color: var(--ink); }
.portal__tab.is-active { background: var(--surface); color: var(--brand); border-color: var(--line); margin-bottom: -1px; }
.portal__panel { display: none; padding: 28px 24px; }
.portal__panel.is-active { display: block; }

.portal-step { display: none; }
.portal-step.is-active { display: block; }

.stepper {
  display: flex; gap: 14px; margin-bottom: 28px; border-bottom: 1px solid var(--line-2);
  padding-bottom: 16px; overflow-x: auto;
}
.stepper__step {
  display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600;
  color: var(--muted-2); white-space: nowrap;
}
.stepper__step span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700;
}
.stepper__step.is-active { color: var(--brand); }
.stepper__step.is-active span { background: var(--brand); color: #fff; }
.stepper__step.is-done { color: var(--ok); }
.stepper__step.is-done span { background: var(--ok-50); color: var(--ok); }

.input-prefix-group {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: var(--surface);
}
.input-prefix {
  padding: 10px 14px; background: var(--bg-tint); color: var(--muted);
  font-size: .9rem; font-weight: 600; border-right: 1px solid var(--line);
}
.input-prefix-group input { border: 0 !important; border-radius: 0 !important; width: 100%; box-shadow: none !important; }
.check-label { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; cursor: pointer; user-select: none; }
.check-label input { margin-top: 3px; accent-color: var(--brand); }

.otp-box {
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-top: 18px; max-width: 520px;
}
.portal-success { text-align: center; max-width: 580px; margin: 0 auto; padding: 10px 0; }
.portal-success__icon {
  width: 58px; height: 58px; border-radius: 50%; background: var(--ok-50); color: var(--ok);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-weight: bold;
}
.app-ref-card {
  background: var(--bg-tint); border: 2px dashed var(--brand); border-radius: var(--r);
  padding: 18px 24px; margin: 20px 0; text-align: center;
}
.app-ref-card__label {
  display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; margin-bottom: 4px;
}
.app-ref-card__id {
  font-size: 1.6rem; color: var(--brand); font-family: var(--mono); letter-spacing: .05em;
}

.pipeline { display: grid; gap: 14px; margin: 20px 0; }
.pipeline__item { display: flex; gap: 14px; align-items: flex-start; }
.pipeline__dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.pipeline__item.is-done .pipeline__dot { background: var(--ok); color: #fff; }
.pipeline__item.is-active .pipeline__dot { background: var(--brand); color: #fff; }
.pipeline__content strong { display: block; font-size: .92rem; }
.track-summary {
  display: flex; flex-wrap: wrap; gap: 18px; padding: 14px 18px; background: var(--bg-tint);
  border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: 20px;
}

/* ---------------------------------------------------- terminal showcase */

.terminal-showcase {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3);
  border: 1px solid rgba(10,37,64,.15); margin: 28px 0;
}
.terminal-showcase__header {
  background: #071B31; display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; gap: 8px;
}
.terminal-showcase__tabs { display: flex; gap: 4px; overflow-x: auto; }
.terminal-tab {
  background: transparent; color: #8FA8C6; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 16px; font-weight: 650; font-size: .88rem; cursor: pointer; white-space: nowrap;
}
.terminal-tab:hover { color: #fff; }
.terminal-tab.is-active { color: #fff; border-bottom-color: #1B4DFF; }

.theme-toggle-btn {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 6px 14px; font-size: .78rem; font-weight: 650;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.terminal-showcase__screen { min-height: 460px; transition: background .2s, color .2s; }
.terminal-showcase__screen[data-theme="dark"] { background: #0B192C; color: #E3EAF2; }

/* The light-theme tokens (--muted, --ok, --danger) are tuned for white backgrounds and
   fall to ~3:1 on the dark terminal. Re-point them inside the dark screen only; each
   value below clears 4.5:1 against the darkest and lightest terminal surfaces. */
.terminal-showcase__screen[data-theme="dark"] {
  --muted:   #9DB2CC;   /* 6.73:1 */
  --muted-2: #8FA8C6;   /* 5.98:1 */
  --ok:      #2ECC8F;   /* 7.06:1 */
  --danger:  #FF8080;   /* 6.02:1 */
}
.terminal-showcase__screen[data-theme="light"] { background: #FFFFFF; color: #0A2540; }
.terminal-view { display: none; padding: 24px; }
.terminal-view.is-active { display: block; }

.market-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
@media (max-width: 820px) { .market-grid { grid-template-columns: 1fr; } }
.market-list { border-radius: 10px; overflow: hidden; }
[data-theme="dark"] .market-list { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
[data-theme="light"] .market-list { background: var(--bg-tint); border: 1px solid var(--line); }
.market-list__head { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; }
.market-item { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; justify-content: space-between; cursor: pointer; transition: background .15s; }
[data-theme="dark"] .market-item:hover, [data-theme="dark"] .market-item.is-selected { background: rgba(27,77,255,.15); }
[data-theme="light"] .market-item:hover, [data-theme="light"] .market-item.is-selected { background: var(--brand-50); }

.market-detail { display: grid; gap: 16px; }
.market-detail__head { display: flex; justify-content: space-between; align-items: flex-start; }
.mock-chart-container { height: 160px; border-radius: 8px; position: relative; overflow: hidden; padding-top: 10px; }
[data-theme="dark"] .mock-chart-container { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); }
[data-theme="light"] .mock-chart-container { background: var(--bg-tint); border: 1px solid var(--line); }
.mock-chart-svg { width: 100%; height: 120px; }
.chart-time-labels { display: flex; justify-content: space-between; padding: 4px 10px 0; font-size: .72rem; color: var(--muted); }
.market-depth { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: .82rem; }
.depth-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.05); }

.order-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .order-grid { grid-template-columns: 1fr; } }
.order-type-switch { display: inline-flex; border-radius: 8px; overflow: hidden; }
.ot-btn { padding: 8px 24px; font-weight: 700; border: 0; cursor: pointer; font-size: .88rem; }
.ot-btn.is-buy { background: rgba(14,138,95,.15); color: #0E8A5F; }
.ot-btn.is-buy.is-active { background: #0E8A5F; color: #fff; }
.ot-btn.is-sell { background: rgba(192,52,43,.15); color: #C0342B; }
.ot-btn.is-sell.is-active { background: #C0342B; color: #fff; }
.order-form-panel { padding: 18px; border-radius: 12px; }
[data-theme="dark"] .order-form-panel { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
[data-theme="light"] .order-form-panel { background: var(--bg-tint); border: 1px solid var(--line); }
.cost-stat-card { border-radius: 8px; padding: 14px; margin-top: 10px; }
[data-theme="dark"] .cost-stat-card { background: rgba(27,77,255,.1); border: 1px solid rgba(27,77,255,.25); }
[data-theme="light"] .cost-stat-card { background: var(--brand-50); border: 1px solid var(--brand-100); }
.cost-stat-row { display: flex; justify-content: space-between; font-size: .9rem; }
.cost-total-num { font-size: 1.3rem; color: var(--brand); }

.portfolio-header { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .portfolio-header { grid-template-columns: 1fr 1fr; } }
.portfolio-stat { padding: 12px 14px; border-radius: 8px; }
[data-theme="dark"] .portfolio-stat { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
[data-theme="light"] .portfolio-stat { background: var(--bg-tint); border: 1px solid var(--line); }
.portfolio-stat strong { display: block; font-size: 1.15rem; margin-top: 4px; }

.funds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .funds-grid { grid-template-columns: 1fr; } }
.funds-card { padding: 20px; border-radius: 12px; }
[data-theme="dark"] .funds-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
[data-theme="light"] .funds-card { background: var(--bg-tint); border: 1px solid var(--line); }

/* ---------------------------------------------------------- FAQ search */

.faq-search-box { margin-bottom: 24px; }
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-input-wrap input {
  width: 100%; padding: 12px 40px 12px 42px; font-size: .96rem;
  border: 1px solid var(--line); border-radius: 100px; box-shadow: var(--sh-1);
}
.search-clear-btn {
  position: absolute; right: 14px; background: transparent; border: 0;
  font-size: 1.3rem; color: var(--muted); cursor: pointer; line-height: 1; padding: 2px 6px;
}

