/* ML Markets Consultancy: shared styles
   Layout concept: a trading desk at night. A live tape runs across the top, editorial serif headlines sit
   over dark chart footage, and every figure is set in mono like a terminal readout. Gold is the brand,
   green and red are reserved strictly for market direction. */
:root {
  --ink-0: #070a12;          /* page */
  --ink-1: #0c1222;          /* bands */
  --ink-2: #121a2f;          /* raised surfaces */
  --ink-3: #1a243d;          /* inputs, hovers */
  --line: #233052;           /* hairlines, slate with a blue bias */
  --fg: #ebeff7;
  --muted: #94a0bb;
  --faint: #8490ae;
  --gold: #f5c518;           /* brand: signal yellow */
  --gold-hi: #ffd84a;
  --gold-ink: #141100;       /* text on yellow */
  --bull: #2fc995;
  --bear: #ff6378;
  --wa: #25d366;

  --display: 'Sora', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Geist', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.85rem, 3.4vw, 2.65rem);
  --step-4: clamp(2.4rem, 5.2vw, 4.25rem);
  --radius: 10px;
  --gutter-l: max(clamp(16px, 3.6vw, 64px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 3.6vw, 64px), env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink-0); color: var(--fg);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink-0); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
h1 em, h2 em { color: var(--gold-hi); font-style: normal; font-weight: 300; }
p { margin: 0; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1800px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  background: transparent; color: var(--fg);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border-color: rgba(235, 239, 247, .32); color: var(--fg); background: rgba(7, 10, 18, .35); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--fg); padding-inline: 6px; }
.btn-ghost:hover { color: var(--gold-hi); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- labels ---------- */
.eyebrow { font: 500 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.free { color: var(--bull); border-color: rgba(47, 201, 149, .4); }
.pill.lock { color: var(--gold-hi); border-color: rgba(245, 197, 24, .4); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 0 0 rgba(47, 201, 149, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(47, 201, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 201, 149, 0); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(7, 10, 18, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.brand b { font: 600 1.12rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand small { display: block; font: 500 .62rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .94rem; color: var(--muted); white-space: nowrap; }
.nav-links .only-sm { display: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 1040px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px var(--gutter-r) 20px var(--gutter-l); background: var(--ink-1); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links .only-sm { display: list-item; }
  .nav-links a { display: block; padding: 10px 0; font-size: 1.05rem; color: var(--fg); }
  .menu-btn { display: grid; }
  .nav-actions .hide-sm { display: none; }
}
@media (max-width: 460px) { .nav { gap: 10px; } .brand { gap: 8px; } .brand small { display: none; } .brand b { font-size: 1.05rem; } .nav-actions .btn-gold { padding: 10px 14px; font-size: .85rem; } }

/* ---------- ticker tape ---------- */
.tape { border-bottom: 1px solid var(--line); background: var(--ink-1); overflow: hidden; position: relative; }
.tape-track { display: flex; width: max-content; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 9px 22px; border-right: 1px solid var(--line); font: 500 .8rem/1 var(--mono); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.tape-item .sym { color: var(--fg); }
.tape-item .px { color: var(--muted); }
.up { color: var(--bull); }
.down { color: var(--bear); }
.tape-src { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 28px; background: linear-gradient(90deg, transparent, var(--ink-1) 30%); font: 500 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 7vw, 104px); position: relative; }
.band { background: var(--ink-1); border-block: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; margin-bottom: 48px; }
.sec-head h2 { font-size: var(--step-3); margin-top: 14px; }
.sec-head p { color: var(--muted); max-width: 54ch; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } section { padding-block: 72px; } }

/* video backgrounds */
.has-video { overflow: hidden; isolation: isolate; }
.bg-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.bg-shade { position: absolute; inset: 0; z-index: -1; }

/* ---------- hero ---------- */
.hero { padding-block: 88px 96px; }
.hero .bg-shade { background:
  linear-gradient(90deg, rgba(7, 10, 18, .96) 0%, rgba(7, 10, 18, .82) 46%, rgba(7, 10, 18, .45) 100%),
  linear-gradient(0deg, var(--ink-0) 0%, rgba(7, 10, 18, 0) 40%); }
.hero { min-height: min(920px, calc(100svh - 150px)); display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero h1 { font-size: var(--step-4); margin: 22px 0 24px; }
.hero-lead { font-size: clamp(1.05rem, 1.1vw, 1.22rem); color: #c9d1e3; max-width: 58ch; margin-bottom: 32px; }
.hero-call { margin-top: 22px; font-size: .92rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero-call a { color: var(--fg); font-family: var(--mono); text-decoration: none; border-bottom: 1px solid var(--gold); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-block: 56px 72px; } }

/* level ladder (hero) */
.ladder { background: rgba(12, 18, 34, .82); border: 1px solid var(--line); border-radius: 14px; padding: 22px; backdrop-filter: blur(6px); }
.ladder-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ladder-head span { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rung { display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px; gap: 14px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); text-decoration: none; }
.rung:hover h3 { color: var(--gold-hi); }
.rung .lv { font: 500 .78rem/1 var(--mono); color: var(--gold); border: 1px solid rgba(245, 197, 24, .45); border-radius: 8px; height: 40px; display: grid; place-items: center; }
.rung h3 { font-size: 1.15rem; transition: color .15s; }
.rung .pill { justify-self: end; }
.rung p { font: 400 .78rem/1.3 var(--mono); color: var(--muted); margin-top: 3px; }
.depth { height: 4px; border-radius: 2px; background: var(--ink-3); margin-top: 8px; overflow: hidden; }
.depth i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stats div { padding: 22px 18px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 600 1.9rem/1 var(--display); letter-spacing: -0.03em; color: var(--fg); }
.stats span { font-size: .86rem; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div { border-left: 0; border-top: 1px solid var(--line); } .stats div:nth-child(even) { border-left: 1px solid var(--line); } .stats div:first-child, .stats div:nth-child(2) { border-top: 0; } .stats div:last-child { grid-column: span 2; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; list-style: none; padding: 0; margin: 0 0 64px; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 22px 22px 0 0; }
.steps li::before { content: "Step " counter(s); display: block; font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.steps b { display: block; font: 600 1.15rem/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.steps span { font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- level cards ---------- */
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.level { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.level.is-free { border-color: rgba(47, 201, 149, .35); }
.level-top { display: flex; justify-content: space-between; align-items: center; }
.level-top .num { color: var(--faint); font-size: .8rem; }
.level h3 { font-size: 1.55rem; }
.level > p { color: var(--muted); font-size: .94rem; }
.level ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.level li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; display: flex; gap: 10px; }
.level li .num { color: var(--gold); font-size: .78rem; padding-top: 2px; }
.level-meta { font: 500 .78rem/1.4 var(--mono); color: var(--muted); }
@media (max-width: 1040px) { .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .levels { grid-template-columns: 1fr; } }

/* ---------- demo ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-width: 0; }
.panel.primary { border-color: rgba(245, 197, 24, .5); background: linear-gradient(160deg, rgba(245, 197, 24, .08), rgba(245, 197, 24, 0) 45%), var(--ink-2); }
.panel h3 { font-size: 1.55rem; margin: 14px 0 10px; }
.panel > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: .96rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.olist { counter-reset: o; list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.olist li { counter-increment: o; position: relative; padding: 3px 0 0 40px; min-height: 28px; font-size: .95rem; }
.olist li::before { content: counter(o); position: absolute; left: 0; top: 0; width: 28px; height: 28px; font: 500 .8rem/26px var(--mono); text-align: center; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); }
.broker-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; padding: 0; list-style: none; }
.broker-list li { font: 500 .78rem/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.fine { font-size: .84rem; color: var(--faint); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

/* ---------- markets ---------- */
.markets .bg-shade { background: linear-gradient(180deg, rgba(7, 10, 18, .94), rgba(7, 10, 18, .88)); }
.mkt-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.board { background: rgba(12, 18, 34, .9); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.board-head h3 { font-size: 1.1rem; }
.board-head .src { display: flex; align-items: center; gap: 8px; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table.quotes { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.quotes th { text-align: left; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 18px; border-bottom: 1px solid var(--line); }
.quotes td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.quotes tr:last-child td { border-bottom: 0; }
.quotes td.r, .quotes th.r { text-align: right; }
.quotes td .mono { font-size: .92rem; }
.quotes .asset b { font-weight: 600; }
.quotes .asset small { color: var(--faint); margin-left: 6px; font: 400 .78rem var(--mono); }
.quotes a.trade { font: 500 .78rem/1 var(--mono); color: var(--gold-hi); text-decoration: none; white-space: nowrap; }
.quotes a.trade:hover { text-decoration: underline; }
.flash-up { animation: fu .8s; } .flash-down { animation: fd .8s; }
@keyframes fu { from { background: rgba(47, 201, 149, .18); } }
@keyframes fd { from { background: rgba(255, 99, 120, .18); } }
.gf-groups { display: grid; gap: 14px; padding: 18px; }
.gf-group h4 { margin: 0 0 8px; font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.gf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gf-tile { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--ink-1); font-size: .9rem; }
.gf-tile span { font: 500 .72rem/1 var(--mono); color: var(--faint); }
.gf-tile:hover { border-color: var(--gold); }
.gf-tile:hover span { color: var(--gold-hi); }
.tv-wrap { margin-top: 20px; background: rgba(12, 18, 34, .9); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tv-tabs { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tv-tabs button { font: 500 .78rem/1 var(--mono); padding: 9px 12px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tv-tabs button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
#tv-chart { height: 460px; }
.tv-fallback { height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
@media (max-width: 960px) { .mkt-grid { grid-template-columns: 1fr; } #tv-chart { height: 360px; } }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.svc.feature { border-color: var(--gold); }
.svc h3 { font-size: 1.45rem; }
.price { font: 600 2.5rem/1 var(--display); letter-spacing: -0.04em; margin-top: 6px; }
.price small { font: 400 .9rem var(--body); color: var(--muted); margin-left: 6px; }
.svc .sub { color: var(--muted); font-size: .94rem; }
.svc .checks { flex: 1; margin: 12px 0 18px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }

/* ---------- community band ---------- */
.community .bg-shade { background: linear-gradient(90deg, rgba(7, 10, 18, .95), rgba(7, 10, 18, .72)); }
.community h2 { font-size: var(--step-3); max-width: 20ch; margin: 16px 0 16px; }
.community p { color: #c9d1e3; max-width: 52ch; margin-bottom: 28px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; background: rgba(7, 10, 18, .5); }
.social:hover { border-color: var(--gold); color: var(--gold-hi); }
.social svg { width: 16px; height: 16px; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.person img, .person .initials { width: 150px; height: 150px; border-radius: 8px; object-fit: cover; object-position: 50% 25%; }
.person .initials { display: grid; place-items: center; background: var(--ink-3); font: 300 2.6rem/1 var(--display); color: var(--gold); }
.person h3 { font-size: 1.35rem; }
.role { font: 500 .74rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 6px 0 12px; }
.person p { color: var(--muted); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.tags li { font: 500 .72rem/1 var(--mono); padding: 6px 9px; border-radius: 6px; background: var(--ink-3); color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.principles div { padding: 20px 20px 0 0; }
.principles b { display: block; font: 600 1.05rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--gold-hi); margin-bottom: 6px; }
.principles span { font-size: .92rem; color: var(--muted); }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .principles { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--ink-1); color: var(--fg); font: 400 1rem var(--body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, .18); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.agree input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.err { color: var(--bear); font-size: .9rem; min-height: 1.3em; }
.ok { color: var(--bull); font-size: .9rem; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.pay-row:last-of-type { border-bottom: 0; }
.pay-row b { color: var(--muted); font-weight: 500; }
.pay-row code { font: 500 .84rem var(--mono); background: var(--ink-1); border: 1px solid var(--line); padding: 6px 8px; border-radius: 6px; word-break: break-all; }
.copy { background: var(--ink-3); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font: 500 .76rem var(--mono); cursor: pointer; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* ---------- faq + terms ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.3rem/1 var(--mono); color: var(--gold); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin-top: 10px; font-size: .95rem; }
details p + p { margin-top: 8px; }
.terms { max-height: 560px; overflow: auto; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.terms h3 { font: 600 1rem var(--body); margin: 22px 0 6px; }
.terms h3:first-child { margin-top: 0; }
.terms p { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px calc(96px + env(safe-area-inset-bottom, 0px)); background: var(--ink-1); }
.risk { border: 1px solid rgba(255, 99, 120, .35); background: rgba(255, 99, 120, .06); border-radius: var(--radius); padding: 18px 20px; font-size: .9rem; color: #d9dfee; margin-bottom: 40px; }
.risk strong { color: var(--bear); }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.foot a:hover { color: var(--gold-hi); }
.foot p { color: var(--muted); font-size: .92rem; margin-top: 10px; max-width: 36ch; }
.copyline { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > div:first-child { grid-column: span 2; } }

/* ---------- floating buttons ---------- */
.fab { position: fixed; z-index: 45; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 999px; font: 600 .92rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.fab svg { width: 20px; height: 20px; }
.fab-wa { right: calc(18px + env(safe-area-inset-right, 0px)); background: var(--wa); color: #06210f; }
.fab-news { left: calc(18px + env(safe-area-inset-left, 0px)); background: var(--ink-2); color: var(--fg); border: 1px solid var(--line); }
.fab-news .live-dot { margin-left: 2px; }
@media (max-width: 520px) { .fab span.lbl { display: none; } .fab { padding: 14px; } }

/* ---------- news drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(3, 5, 10, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; z-index: 71; top: 0; bottom: 0; left: 0; width: min(440px, 100%); background: var(--ink-1); border-right: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .28s ease; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); }
.drawer.open { transform: none; }
.drawer.open + .drawer-scrim, .drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.drawer-head h2 { font-size: 1.45rem; }
.drawer-close { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; font: 400 1.2rem var(--mono); }
.news-tabs { display: flex; gap: 6px; padding: 0 20px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.news-tabs button { font: 500 .76rem/1 var(--mono); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.news-tabs button[aria-selected="true"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.news-list { flex: 1; overflow-y: auto; padding: 4px 20px 20px; list-style: none; margin: 0; }
.news-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item a { text-decoration: none; display: block; }
.news-item a:hover h3 { color: var(--gold-hi); }
.news-item h3 { font: 600 .98rem/1.35 var(--body); transition: color .15s; }
.news-meta { display: flex; gap: 10px; align-items: center; font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.news-meta .cat { color: var(--gold); }
.news-item p { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.news-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--faint); }
.news-empty { padding: 24px 0; color: var(--muted); font-size: .94rem; }
.news-empty a { color: var(--gold-hi); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; background: var(--ink-3); border: 1px solid var(--line); padding: 12px 16px; border-radius: 8px; font-size: .92rem; max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- partner referral modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(3, 5, 10, .7); opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 81; left: 50%; top: 50%; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; background: var(--ink-1); border: 1px solid rgba(245, 197, 24, .5); border-radius: 14px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal h2 { font-size: 1.6rem; margin: 10px 0 8px; }
.modal-x { position: absolute; top: 16px; right: 16px; }
.ref-lead { color: var(--muted); font-size: .95rem; }
.ref-codes { display: grid; gap: 10px; margin: 20px 0 4px; }
.ref-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }
.ref-code span { grid-column: 1 / -1; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ref-code b { font-size: 1.25rem; font-weight: 500; letter-spacing: .06em; color: var(--gold-hi); }
.ref-steps { margin: 18px 0 22px; }
.modal .fine { margin-top: 16px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plan.feature { border-color: var(--gold); background: linear-gradient(165deg, rgba(245, 197, 24, .1), rgba(245, 197, 24, 0) 40%), var(--ink-2); box-shadow: 0 20px 60px rgba(245, 197, 24, .08); }
.plan h3 { font-size: 1.45rem; }
.plan .sub { color: var(--muted); font-size: .94rem; }
.plan .checks { flex: 1; margin: 12px 0 18px; }
.plan .pill { align-self: flex-start; }
.pill.hot { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

.credits-band { margin-top: 20px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-1); }
.credits-band h3 { font-size: 1.45rem; margin: 10px 0 8px; }
.credits-band p { color: var(--muted); font-size: .95rem; }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.credit-list li { padding: 16px; border-radius: 8px; background: var(--ink-2); border: 1px solid var(--line); }
.credit-list b { display: block; font: 600 1.8rem/1 var(--display); color: var(--gold); letter-spacing: -0.03em; margin-bottom: 8px; }
.credit-list span { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .credits-band { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .credit-list { grid-template-columns: 1fr; } }

.paybar { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.paybar .pm { font: 500 .8rem/1 var(--mono); color: var(--muted); padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; }
.addons { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.addons div { display: grid; gap: 6px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.addons b { font: 600 1.05rem/1.2 var(--display); letter-spacing: -0.02em; }
.addons span { color: var(--muted); font-size: .92rem; }
.addons a { color: var(--gold-hi); font-size: .92rem; text-decoration: none; font-weight: 600; }
.addons a:hover { text-decoration: underline; }
@media (max-width: 700px) { .addons { grid-template-columns: 1fr; } }
.plan .checks, .svc .checks, .panel .checks { align-content: start; }

/* ---------- small-screen header ---------- */
.nav-cta .lbl-short { display: none; }
.brand { flex: 0 1 auto; }
.nav-actions { flex: none; }
@media (max-width: 480px) {
  .nav-cta .lbl-long { display: none; }
  .nav-cta .lbl-short { display: inline; }
  .nav-actions .nav-cta { padding: 10px 14px; font-size: .85rem; }
  .tape-src { padding-left: 18px; font-size: 0; gap: 0; }
  .tape-src .live-dot { margin: 0; }
}
@media (max-width: 360px) {
  .brand img { width: 32px; height: 32px; }
  .brand b { font-size: .98rem; }
  .menu-btn { width: 38px; }
}
@media (max-width: 520px) {
  .quotes th, .quotes td { padding: 12px 10px; }
  .quotes .asset small { display: none; }
  .quotes a.trade { font-size: 0; }
  .quotes a.trade::after { content: "\2197"; font-size: 1rem; }
  .fab { padding: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 520px) {
  /* Stack both floating buttons on the right so left-aligned content and buttons stay clear */
  .fab-news { left: auto; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .fab-wa { right: calc(14px + env(safe-area-inset-right, 0px)); }
  .fab-news .live-dot { position: absolute; top: 6px; right: 6px; margin: 0; }
  .fab-news { position: fixed; }
}
.fab { transition: opacity .2s ease, transform .2s ease; }
@media (max-width: 520px) {
  body.fabs-rest .fab { opacity: 0; transform: translateY(12px); pointer-events: none; }
}
.rung .rung-t { display: block; font: 600 1.15rem/1.1 var(--display); letter-spacing: -0.02em; transition: color .15s; }
.rung:hover .rung-t { color: var(--gold-hi); }
.curriculum-link { margin: -28px 0 28px; }
.curriculum-link a { color: var(--gold-hi); font-weight: 600; text-decoration: none; }
.curriculum-link a:hover { text-decoration: underline; }
