/* IPAM — site styles.
   Type: one Noto system for all three scripts (Latin, Cyrillic, Armenian) so a
   page reads the same in every language; Iosevka Charon Mono only for figures
   and the Telegram bars, which are monospace in the real bot too. */

:root {
  --paper: #EEF2F1;
  --sheet: #FFFFFF;
  --ink: #10233B;
  --ink-2: #2B3D52;
  --muted: #56677A;
  --line: #CBD5D3;
  --line-soft: #DDE4E2;
  --ledger: #1E6656;
  --ledger-soft: #DCEBE6;
  --signal: #9A6408;
  --signal-soft: #F6EAD2;
  --chat: #E6ECEF;
  --focus: #1E6656;

  --serif: "Noto Serif Display", "Noto Serif Armenian", Georgia, serif;
  --sans: "Noto Sans", "Noto Sans Armenian", system-ui, sans-serif;
  --mono: "Iosevka Charon Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: 16px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1822; --sheet: #14222E; --ink: #E4EAEE; --ink-2: #C3CED6; --muted: #93A4B2;
    --line: #2A3B48; --line-soft: #1F2E3A; --ledger: #5FB59E; --ledger-soft: #17332D;
    --signal: #E0AA4C; --signal-soft: #382C14; --chat: #1A2A37; --focus: #5FB59E;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1822; --sheet: #14222E; --ink: #E4EAEE; --ink-2: #C3CED6; --muted: #93A4B2;
  --line: #2A3B48; --line-soft: #1F2E3A; --ledger: #5FB59E; --ledger-soft: #17332D;
  --signal: #E0AA4C; --signal-soft: #382C14; --chat: #1A2A37; --focus: #5FB59E;
}

* { box-sizing: border-box; }
/* Components set their own display; the hidden attribute must still win. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ledger); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--ledger); color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--radius-s); z-index: 50; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--serif); margin: 0; color: var(--ink); font-optical-sizing: auto; }
h1 { font-weight: 300; letter-spacing: -0.025em; }
h2 { font-weight: 350; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.018em; max-width: 20ch; text-wrap: balance; }
h3 { font-weight: 500; font-size: 22px; line-height: 1.28; letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
:lang(hy) h1, :lang(hy) h2 { letter-spacing: 0; }
:lang(hy) h2 { max-width: 24ch; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line-soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark svg { width: 30px; height: 30px; }
.mark b { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: 0.04em; }
.mark small { font-size: 13px; color: var(--muted); margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
@media (max-width: 899px) { .mark small { display: none; } }
.top nav { display: flex; gap: 22px; align-items: center; white-space: nowrap; }
.top nav .nav-link { color: var(--ink-2); text-decoration: none; font-size: 15px; display: none; }
.top nav .nav-link:hover { color: var(--ink); }
@media (min-width: 1060px) { .top nav .nav-link { display: inline; } }
@media (max-width: 559px) { .top nav .btn { display: none; } }

/* Language menu: flag button opening a listbox */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  font: 500 13px/1 var(--sans); letter-spacing: .03em; transition: border-color .15s, background .15s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--ink-2); background: var(--sheet); }
.lang-btn .chev { width: 12px; height: 12px; color: var(--muted); transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.flag-icon { width: 20px; height: 14px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(16, 35, 59, .14); overflow: hidden; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--radius-m);
  box-shadow: 0 18px 40px -18px rgba(16, 35, 59, .35); z-index: 30;
}
.lang-list:focus { outline: none; }
.lang-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.lang-list li:hover, .lang-list li.active { background: var(--paper); }
.lang-list li .lang-code { font: 500 13px/1 var(--sans); letter-spacing: .03em; color: var(--ink); min-width: 22px; }
.lang-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.lang-list li[aria-selected="true"]::after { background: var(--ledger); }
.lang-list:focus-visible li.active { box-shadow: inset 0 0 0 2px var(--focus); }
@media (prefers-reduced-motion: no-preference) {
  .lang-list:not([hidden]) { animation: menu-in .14s ease-out; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 500 15px/1.2 var(--sans);
  text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--ledger); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--sheet); color: var(--ink); }
.top .btn { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 120px); }
/* One sentence per line, so the first screen also shows the lede and the call to action. */
.hero h1 { font-size: clamp(42px, 6.2vw, 90px); line-height: 1.02; }
.hero h1 span { display: block; }
:lang(hy) .hero h1 { font-size: clamp(34px, 5.2vw, 76px); line-height: 1.1; }
.hero-grid { display: grid; gap: 48px; margin-top: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 32em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nightly statement */
.statement { background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--radius-l); padding: 24px 24px 18px; margin: 0; box-shadow: 0 1px 0 var(--line-soft), 0 24px 48px -32px rgba(16, 35, 59, .35); }
.statement-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.sources { list-style: none; margin: 0; padding: 0; }
.sources li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); font-size: 15px; }
.sources .via { color: var(--muted); font-size: 13px; white-space: nowrap; }
/* On a phone the channel moves under the source name so the name keeps its width. */
@media (max-width: 559px) {
  .sources li { grid-template-columns: 1fr auto; row-gap: 2px; }
  .sources .via { grid-column: 1; grid-row: 2; }
}
.sources .ok { color: var(--ledger); font-size: 13px; font-weight: 500; text-align: right; white-space: nowrap; }
.sources .ok::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 2px; }
.merge { margin: 16px 0 0; padding: 14px 16px; border-radius: 4px 16px 16px 16px; background: var(--ledger-soft); font-size: 15px; line-height: 1.5; }
.merge b { display: block; font-weight: 600; margin-bottom: 4px; }
.merge .flag { display: block; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--signal-soft); }
.merge .flag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 1px; }
.caption { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Shared section rhythm */
.block { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line-soft); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; } }
.prose { max-width: 36em; }
.muted { color: var(--muted); }
.section-intro { color: var(--ink-2); font-size: 18px; max-width: 34em; margin: 24px 0 0; }

/* Scroll scene: sources converge into one portfolio */
.scene { border-top: 1px solid var(--line-soft); }
.scene-inner { min-height: 100vh; display: grid; align-content: center; gap: clamp(32px, 5vw, 56px); padding-top: clamp(80px, 9vw, 120px); padding-bottom: clamp(80px, 9vw, 120px); }
.scene-copy { display: grid; gap: 20px; }
@media (min-width: 900px) { .scene-copy { grid-template-columns: 7fr 5fr; align-items: end; gap: 72px; } .scene-copy p { margin: 0; } }
.scene-copy p { color: var(--ink-2); font-size: 18px; max-width: 30em; }
.scene-stage { position: relative; display: grid; grid-template-columns: minmax(160px, 1fr) 1.6fr minmax(220px, 1fr); align-items: center; }
.scene-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; z-index: 1; }
.scene-sources li { justify-self: start; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--paper); color: var(--ink-2); transition: none; }
.scene-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scene-lines path { fill: none; stroke: var(--ledger); stroke-width: 1.25; opacity: .7; }
.scene-lines path.trunk { stroke-width: 2.5; opacity: 1; }
.scene-node { grid-column: 3; position: relative; z-index: 1; padding-left: 28px; }
.scene-dot { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--ledger); box-shadow: 0 0 0 6px var(--ledger-soft); }
.scene-total { font-family: var(--serif); font-weight: 350; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin: 0 0 8px; }
.scene-meta { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 759px) {
  .scene-inner { min-height: 0; }
  .scene-stage { grid-template-columns: 1fr; gap: 28px; }
  .scene-sources { display: flex; flex-wrap: wrap; gap: 6px; }
  .scene-lines { display: none; }
  .scene-node { grid-column: 1; }
}

/* Product screens */
.product-head { display: grid; gap: 20px; }
@media (min-width: 900px) { .product-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 72px; } .product-head p { margin: 0; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(32px, 4vw, 48px) 0 24px; }
.tabs button {
  font: 500 15px/1 var(--sans); padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); transition: background .15s, color .15s, border-color .15s;
}
.tabs button:hover { border-color: var(--ink-2); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stagebox {
  border-radius: var(--radius-l); background: var(--sheet); border: 1px solid var(--line-soft);
  padding: clamp(20px, 4vw, 56px); display: grid; gap: 32px; align-items: center; min-height: 560px;
}
@media (min-width: 980px) { .stagebox { grid-template-columns: 4fr 7fr; gap: 64px; } }
.panel[hidden] { display: none; }
.panel-copy h3 { font-size: 28px; font-weight: 400; margin-bottom: 14px; }
.panel-copy p { color: var(--ink-2); max-width: 26em; }
.demo-tag { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; margin-top: 8px; }
.panel-shot { justify-self: center; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) .panel-shot > * { animation: shot-in .5s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes shot-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Phone with the Telegram bot */
.phone {
  width: min(100%, 380px); margin: 0 auto; border-radius: 40px; padding: 10px;
  background: #0B1622; box-shadow: 0 30px 60px -30px rgba(16, 35, 59, .55);
}
.phone-screen { border-radius: 31px; overflow: hidden; background: var(--chat); }
.tg-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--sheet); border-bottom: 1px solid var(--line-soft); }
.tg-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.tg-avatar svg { width: 20px; height: 20px; color: var(--paper); }
.tg-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.tg-status { font-size: 12px; color: var(--muted); }
.tg-body { padding: 16px 12px 18px; display: grid; gap: 10px; }
.bubble { max-width: 92%; padding: 9px 12px 7px; border-radius: 16px; font-size: 14px; line-height: 1.45; position: relative; }
.bubble.me { justify-self: end; background: var(--ledger); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { justify-self: start; background: var(--sheet); border-bottom-left-radius: 4px; width: 100%; max-width: 100%; }
.bubble time { display: block; text-align: right; font-size: 11px; opacity: .65; margin-top: 2px; }
.snap-title { font-weight: 600; margin-bottom: 6px; }
.snap-kv { display: flex; justify-content: space-between; gap: 12px; }
.snap-kv .num { font-size: 13.5px; }
.snap-bar { font-family: var(--mono); font-size: 11.5px; letter-spacing: -0.04em; color: var(--ledger); white-space: nowrap; overflow: hidden; }
.snap-label { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; }
.alloc { display: grid; grid-template-columns: auto 1fr auto auto; column-gap: 8px; row-gap: 2px; align-items: center; margin-top: 4px; font-size: 12.5px; }
.alloc .snap-bar { font-size: 10.5px; }
.alloc .num { font-size: 12px; text-align: right; }
.alloc .mark-ok { color: var(--ledger); }
.alloc .mark-warn { color: var(--signal); }
.snap-flag { margin-top: 10px; padding: 7px 10px; border-radius: 8px; background: var(--signal-soft); font-size: 13px; }

/* Browser window with a report */
.window { width: 100%; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--paper); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(16, 35, 59, .45); }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--sheet); }
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window-bar .url { flex: 1; text-align: center; font-size: 12px; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 4px 12px; }
.window-body { padding: clamp(16px, 3vw, 28px); }
.rep-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rep-head h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0; }
.rep-head span { color: var(--muted); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
@media (min-width: 600px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--sheet); padding: 12px 14px; }
.kpi dt { font-size: 12px; color: var(--muted); }
.kpi dd { margin: 4px 0 0; font-size: 20px; white-space: nowrap; }
@media (max-width: 599px) { .kpi dd { font-size: 17px; } }
.kpi .up { color: var(--ledger); }
.kpi .down { color: var(--signal); }
.chart { margin-top: 16px; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px 8px; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.chart-legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--ledger); }
.chart-legend i.bench { background: none; border-top: 2px dashed var(--muted); height: 0; }
.chart svg { width: 100%; height: 130px; }
.chart .p-line { fill: none; stroke: var(--ledger); stroke-width: 2; }
.chart .p-area { fill: var(--ledger-soft); opacity: .7; }
.chart .b-line { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.todo { margin-top: 16px; }
.todo h5 { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.todo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.todo li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: 8px; padding: 9px 12px; }
.todo li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); transform: translateY(-1px); }

/* Actions table */
.acts { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--sheet); border-radius: 10px; overflow: hidden; }
.acts th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.acts td { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.acts tr:last-child td { border-bottom: 0; }
.acts .num, .acts .r { text-align: right; }
.acts th:nth-child(n+3) { text-align: right; }
.acts tr.hot td { background: var(--signal-soft); }
.acts .tkr { font-family: var(--mono); font-weight: 500; }
.signal { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; }
.signal svg { width: 18px; height: 18px; flex: none; color: var(--signal); }
@media (max-width: 520px) { .acts th:nth-child(4), .acts td:nth-child(4) { display: none; } }

/* Capabilities */
.caps { margin-top: clamp(40px, 5vw, 64px); display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .caps { grid-template-columns: repeat(3, 1fr); } }
.cap { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .cap { padding-right: 40px; } }
.cap svg { width: 40px; height: 40px; color: var(--ledger); margin-bottom: 22px; }
.cap h3 { margin-bottom: 10px; }
.cap p { color: var(--muted); margin: 0; max-width: 30em; }

/* Steps: a real sequence */
.steps { list-style: none; counter-reset: s; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
@media (min-width: 900px) { .steps li { padding-right: 32px; } }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 400 18px/1 var(--serif); background: var(--sheet); border: 1px solid var(--line);
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: 12px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
@media (max-width: 899px) { .steps li::after { display: none; } }
.steps li:last-child::before { background: var(--ledger); color: var(--paper); border-color: var(--ledger); }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* Proof */
.proof { margin-top: 40px; display: grid; border-top: 1px solid var(--ink); }
.proof div { display: grid; grid-template-columns: minmax(140px, 230px) 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.proof dt { font-family: var(--serif); font-size: 26px; line-height: 1.2; font-weight: 350; }
.proof dd { margin: 0; color: var(--muted); }

/* Principles */
.principles { display: grid; gap: 40px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.principles > div { border-top: 2px solid var(--ink); padding-top: 22px; }
.principles h3 { margin-bottom: 12px; }
.principles p { color: var(--muted); margin: 0; }

/* Roadmap */
.road { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 900px) { .road { grid-template-columns: repeat(4, 1fr); } }
.road li { position: relative; padding: 30px 28px 32px 0; border-top: 1px solid var(--line); }
.road li::before { content: ""; position: absolute; left: 0; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--muted); }
.road li.now::before { background: var(--ledger); border-color: var(--ledger); box-shadow: 0 0 0 5px var(--ledger-soft); }
.road time { font-size: 14px; color: var(--muted); }
.road h3 { margin: 6px 0 8px; font-size: 21px; }
.road p { margin: 0; color: var(--muted); font-size: 16px; }

/* Plans */
.plans { margin-top: clamp(40px, 5vw, 56px); display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plan { padding: 30px; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--radius-l); display: flex; flex-direction: column; }
.plan.main { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan.main h3, .plan.main ul { color: var(--paper); }
.plan.main .for, .plan.main .price span { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }
.plan h3 { margin-bottom: 6px; font-size: 26px; font-weight: 400; }
.plan .for { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.plan ul { margin: 0 0 28px; padding: 0; list-style: none; font-size: 16px; display: grid; gap: 8px; }
.plan ul li { padding-left: 22px; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 1px; background: currentColor; opacity: .6; }
.plan .price { margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.plan.main .price { border-top-color: color-mix(in srgb, var(--paper) 20%, var(--ink)); }
.plan .price b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.01em; }
/* A price given in words ("on request") is long in Armenian; keep it inside the card. */
.plan .price b[data-i18n] { font-size: 24px; overflow-wrap: anywhere; }
.plan .price span { font-size: 14px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin-top: 24px; max-width: 52em; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan.main { background: var(--ledger-soft); border-color: var(--ledger); color: var(--ink); }
  :root:not([data-theme="light"]) .plan.main .price { border-top-color: color-mix(in srgb, var(--ledger) 40%, transparent); }
  :root:not([data-theme="light"]) .plan.main h3, :root:not([data-theme="light"]) .plan.main ul { color: var(--ink); }
  :root:not([data-theme="light"]) .plan.main .for, :root:not([data-theme="light"]) .plan.main .price span { color: var(--muted); }
}

/* Waitlist */
.join { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); margin: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 100px); display: grid; gap: 32px; }
@media (min-width: 900px) { .join { grid-template-columns: 6fr 5fr; align-items: end; gap: 72px; } }
.join h2 { color: var(--paper); }
.join p { color: color-mix(in srgb, var(--paper) 74%, var(--ink)); max-width: 32em; margin: 18px 0 0; }
.join form { display: flex; flex-wrap: wrap; gap: 10px; }
.join label { width: 100%; font-size: 14px; color: color-mix(in srgb, var(--paper) 74%, var(--ink)); }
.join input { flex: 1 1 220px; padding: 14px 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); }
.join .btn { background: var(--ledger); color: #fff; }
.join .btn:hover { background: color-mix(in srgb, var(--ledger) 80%, #fff); }
.join :focus-visible { outline-color: var(--paper); }
.join .status { width: 100%; margin: 0; font-size: 15px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .join { background: var(--sheet); border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .join h2 { color: var(--ink); }
  :root:not([data-theme="light"]) .join p, :root:not([data-theme="light"]) .join label { color: var(--muted); }
  :root:not([data-theme="light"]) .join :focus-visible { outline-color: var(--focus); }
}

footer { border-top: 1px solid var(--line-soft); padding: 36px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 20px; }
@media (min-width: 900px) { footer .wrap { grid-template-columns: 1fr 3fr; } }
footer .mark b { font-size: 19px; }
footer .mark svg { width: 24px; height: 24px; }
footer p { max-width: 60em; margin: 0 0 8px; }

/* Hero entrance: the one orchestrated moment on load */
@media (prefers-reduced-motion: no-preference) {
  /* Rows are visible by default and only fade in from a short offset: if scripts or animation never run,
     the card is still full rather than an empty frame. No JS class is needed to start it. */
  .sources li, .merge { animation: settle-in .4s ease-out backwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
}
@keyframes settle-in { from { opacity: 0; transform: translateY(4px); } }

/* Dark theme: surfaces that sit on the light accent need dark text, and the frame and field need an edge. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .6); }
  :root:not([data-theme="light"]) .bubble.me,
  :root:not([data-theme="light"]) .join .btn,
  :root:not([data-theme="light"]) .steps li:last-child::before { color: var(--paper); }
  :root:not([data-theme="light"]) .join input { border-color: var(--line); }
}

/* Brokers: connection channels, API list and the "is my broker supported" check */
.scene-sources li.open { border-style: dashed; border-color: var(--ledger); color: var(--ledger); background: transparent; }
.channels { margin-top: clamp(40px, 5vw, 56px); display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .channels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .channels { grid-template-columns: repeat(4, 1fr); } }
.channel { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.channel svg { width: 36px; height: 36px; color: var(--ledger); margin-bottom: 18px; }
.channel h3 { font-size: 20px; margin-bottom: 8px; }
.channel p { color: var(--muted); margin: 0; font-size: 16px; }
.brokers-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 900px) { .brokers-grid { grid-template-columns: 7fr 5fr; } }
.api-box, .check-box { background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px); }
.api-box h3, .check-box h3 { margin-bottom: 16px; }
.api-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.api-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.api-table td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.api-table td:first-child { font-weight: 500; }
.api-table td:last-child, .api-table th:last-child { text-align: right; color: var(--muted); }
.tm { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.check-box label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.check-box input {
  width: 100%; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; font-size: 16px; background: var(--paper); color: var(--ink);
}
.check-result { min-height: 3.2em; margin: 16px 0; font-size: 16px; }
.check-result.ok::before, .check-result.none::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px;
}
.check-result.ok::before { background: var(--ledger); }
.check-result.none::before { background: var(--signal); }

/* Waitlist form: two fields stacked, button under them */
.join form { display: grid; gap: 10px; }
.join form .btn { justify-self: start; margin-top: 6px; padding: 14px 30px; font-size: 16px; }
.join label + input + label { margin-top: 6px; }
.join .consent { font-size: 13px; line-height: 1.5; margin: 0; max-width: 36em; }
.join .consent a { color: inherit; text-decoration: underline; }

/* Security: what the system can and cannot do, then four facts */
.access { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
@media (min-width: 900px) { .access { grid-template-columns: 1fr 1fr; gap: 20px; } }
.access-col { border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-soft); background: var(--sheet); }
.access-col h3 { margin-bottom: 18px; }
.access-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.access-col li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.access-col li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.access-col.can li::before {
  background-color: var(--ledger-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%231E6656' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.access-col.cannot li::before {
  background-color: var(--signal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3 3 9' fill='none' stroke='%239A6408' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .access-col.can li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%235FB59E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .access-col.cannot li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3 3 9' fill='none' stroke='%23E0AA4C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
}
.sec-facts { margin-top: clamp(40px, 5vw, 56px); display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .sec-facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sec-facts { grid-template-columns: repeat(4, 1fr); } }
.sec-facts > div { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.sec-facts svg { width: 36px; height: 36px; color: var(--ledger); margin-bottom: 18px; }
.sec-facts h3 { font-size: 20px; margin-bottom: 8px; }
.sec-facts p { color: var(--muted); margin: 0; font-size: 16px; }

/* Founder: a short letter with a signature */
.founder { margin: 0; }
.founder blockquote { margin: 0; padding: 0 0 0 clamp(20px, 3vw, 32px); border-left: 2px solid var(--ledger); }
.founder blockquote p { font-family: var(--serif); font-weight: 350; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.founder figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; padding-left: clamp(22px, 3vw, 34px); }
.monogram, .founder-photo { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; }
.monogram { display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.monogram svg { width: 30px; height: 30px; }
.founder-who { display: grid; line-height: 1.35; margin-right: auto; }
.founder-who b { font-weight: 600; }
.founder-who span { color: var(--muted); font-size: 15px; }
.founder-mail { padding: 10px 18px; font-size: 14px; }

/* FAQ: native disclosure, one question per row */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 20px; align-items: center;
  padding: 22px 0; font: 500 19px/1.4 var(--sans); color: var(--ink);
  overflow: hidden; /* the rotated plus icon must not stick out of the row */
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  color: var(--ink-2); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ledger); }
.faq details p { color: var(--ink-2); margin: -6px 0 24px; max-width: 40em; }

/* Footer links */
.foot-links { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink-2); }

/* Tooltips: a dotted term or an (i) button; the bubble is positioned by site.js (fixed, so mockups with overflow:hidden don't clip it) */
.tip { display: inline; }
.term {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-align: inherit;
  text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: 3px;
}
.term:hover, .term[aria-expanded="true"] { text-decoration-color: currentColor; }
.tip-i {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; margin-left: 2px; vertical-align: -5px;
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.tip-i svg { width: 16px; height: 16px; }
.tip-i:hover, .tip-i[aria-expanded="true"] { color: var(--ledger); }
.tip-body {
  position: fixed; z-index: 60; max-width: min(300px, calc(100vw - 24px)); padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font: 400 14px/1.5 var(--sans); text-align: left; letter-spacing: 0;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) { .tip-body:not([hidden]) { animation: menu-in .12s ease-out; } }

/* Who the product is for, right under the hero buttons */
.hero-for { display: flex; gap: 10px; align-items: baseline; margin: 24px 0 0; font-size: 15px; color: var(--muted); max-width: 30em; }
.hero-for::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ledger); transform: translateY(-2px); }

/* Mobile menu: a button in the header opens a panel with the section links */
.menu-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-btn path { transition: transform .2s; transform-box: view-box; }
.menu-btn .l1 { transform-origin: 12px 8px; }
.menu-btn .l2 { transform-origin: 12px 16px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1060px) { .menu-btn, .menu { display: none !important; } }
/* Overlays the page (not in flow), so closing it doesn't shift the content an anchor link is scrolling to. */
.menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 72px); overflow-y: auto; border-top: 1px solid var(--line-soft); background: var(--paper); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .4); }
/* .top .wrap is the 72px header row; the panel inside the header needs its own box. */
.top .menu .wrap { display: grid; height: auto; justify-content: stretch; align-items: stretch; gap: 0; padding-top: 8px; padding-bottom: 24px; }
.menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font: 400 22px/1.2 var(--serif); }
.menu .btn { justify-self: start; margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) { .menu:not([hidden]) { animation: menu-in .16s ease-out; } }

/* Sticky call to action on phones */
.sticky-cta {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 25;
  justify-content: center; padding: 15px 22px; font-size: 16px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transform: translateY(calc(100% + 40px)); transition: transform .25s ease, background .2s;
}
.sticky-cta.show { transform: none; }
.menu-open .sticky-cta { transform: translateY(calc(100% + 40px)); }
@media (min-width: 560px) { .sticky-cta { display: none; } }

/* Broker table: a channel tag in front of each method */
.api-table td:last-child { white-space: nowrap; }
.via-tag {
  display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: 1px;
  font: 500 11px/1.4 var(--sans); letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
}
.via-tag.api { color: var(--ledger); border-color: color-mix(in srgb, var(--ledger) 45%, transparent); background: var(--ledger-soft); }
@media (max-width: 520px) {
  .api-table td:last-child { white-space: normal; }
  .via-tag { display: table; margin: 0 0 4px auto; }
}
.api-note { font-size: 15px; color: var(--muted); margin: -6px 0 18px; max-width: 34em; }
/* Ways to connect a broker without an API: numbered steps under the search */
.ways-h { margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); font: 600 15px/1.35 var(--sans); }
.ways { list-style: none; counter-reset: way; margin: 0; padding: 0; display: grid; gap: 14px; }
.ways li { counter-increment: way; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; font-size: 14.5px; line-height: 1.45; }
.ways li::before {
  content: counter(way); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px/1 var(--sans); color: var(--ledger); background: var(--ledger-soft); margin-top: 1px;
}
.ways b { font-weight: 600; color: var(--ink); }
.ways span { color: var(--muted); }
.ways-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
#broker-add { margin-bottom: 4px; }
.check-result:empty { min-height: 0; margin: 0; }

/* Tax package preview */
.tax-status { font-size: 12px !important; color: var(--ledger) !important; border: 1px solid color-mix(in srgb, var(--ledger) 45%, transparent); background: var(--ledger-soft); border-radius: 999px; padding: 3px 10px; }
.tax-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.tax-sub h5 { margin: 0; font-size: 13px; font-weight: 600; }
.tax-sub span { font-size: 12px; color: var(--muted); }
.tax-odds th:nth-child(n+2), .tax-odds td:nth-child(n+2) { text-align: right; }
.tax-odds td:first-child { font-weight: 500; }
@media (max-width: 520px) {
  .tax-odds th:nth-child(4), .tax-odds td:nth-child(4) { display: table-cell; }
  .tax-odds { font-size: 12.5px; }
  .tax-odds th, .tax-odds td { padding: 8px 6px; }
}
.tax-calc { margin: 0; background: var(--sheet); border-radius: 10px; padding: 4px 14px; font-size: 14px; }
.tax-calc > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.tax-calc > div:last-child { border-bottom: 0; }
.tax-calc dt { color: var(--ink); }
.tax-calc dd { margin: 0; white-space: nowrap; }
.tax-calc .sub dt { color: var(--muted); padding-left: 14px; }
.tax-calc .total { border-top: 1px solid var(--ink-2); margin-top: 2px; }
.tax-calc .total dt, .tax-calc .total dd { font-weight: 600; }
.tax-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* Comparison table: IPAM column highlighted; scrolls sideways on phones with the task column pinned */
/* position:relative keeps the visually hidden .sr labels inside the scroll box; otherwise they widen the page on phones. */
.cmp-wrap { position: relative; margin-top: clamp(40px, 5vw, 56px); overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-l); background: var(--sheet); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); text-align: center; vertical-align: middle; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 14px; font-weight: 500; color: var(--muted); }
.cmp thead th.me { font: 500 18px/1 var(--serif); letter-spacing: .04em; color: var(--ledger); }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink); width: 34%; }
.cmp th:first-child { position: sticky; left: 0; background: var(--sheet); z-index: 1; }
.cmp .me { background: var(--ledger-soft); }
.v { display: inline-block; font-size: 14px; color: var(--muted); }
.v.yes, .v.no { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; background-repeat: no-repeat; background-position: center; }
.v.yes { background-color: var(--ledger); background-size: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.v.no { background-size: 10px 2px; background-image: linear-gradient(var(--line), var(--line)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .v.yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%230D1822' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* A single-column stage must not grow to a wide table's min-content width on phones. */
@media (max-width: 979px) { .stagebox { grid-template-columns: minmax(0, 1fr); } }
.tax-scroll { overflow-x: auto; border-radius: 10px; }

/* Waitlist honeypot: off screen, never focused */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join form { position: relative; }
.join .btn:disabled { opacity: .7; cursor: progress; }

/* One line under the card title explaining what the card is */
.statement-sub { margin: 12px 0 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.statement-head { border-bottom: 0; padding-bottom: 0; }
.statement-sub { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }

/* Broker table grouped by country: a quiet group label, flag next to each broker */
.api-table tr.grp th { padding: 18px 0 6px; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
.api-table tbody:first-of-type tr.grp th { padding-top: 12px; }
.api-table .broker { display: inline-flex; align-items: center; gap: 10px; }
