/* Qubit Exchange — landing.
   Tokens: paper #F5F7FB, ink #14182B, violet #6C5CE7, teal #14B8A6, line #DCE1EC.
   Type: Manrope only. Left-aligned, 1180px grid. Structure comes from rules and
   spacing, not from shadowed cards. One bold screen, and it is spent on privacy. */
:root {
  --paper: #f5f7fb; --paper-2: #eceff6; --ink: #14182b; --muted: #5f6478; --line: #dce1ec;
  --violet: #6c5ce7; --teal: #14b8a6; --teal-ink: #0f8f83; --violet-ink: #5344c8;
  --loss: #b4453b;
  --max: 1180px; --radius: 14px;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
/* Атрибут hidden обязан побеждать раскладку: строки панели итога скрываются им. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tick::before { animation: none; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--violet-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 24px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.lede { font-size: 19px; color: var(--muted); max-width: 46ch; }
.lede.narrow { max-width: 64ch; margin-bottom: 24px; }
.muted-note { font-size: 14px; color: var(--muted); }
code, pre { font-family: Manrope, monospace; }

/* nav */
.nav { max-width: var(--max); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 18px; }
.brand:hover { text-decoration: none; }
.logo { width: 26px; height: 26px; color: var(--violet); }
.links { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.links a { color: var(--ink); opacity: .78; }
.links a:hover { opacity: 1; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 2px solid transparent; transition: transform .12s ease, background .12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #24294a; }
.btn-quiet { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-invert { background: #fff; color: var(--ink); }

/* hero */
.hero { max-width: var(--max); margin: 36px auto 0; padding: 24px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.facts { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 14px; }

/* live board — the working product doing its job in the first screen */
.board { background: var(--ink); color: #eef0f7; border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: 0 30px 60px -30px rgba(20,24,43,.55); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; padding: 0 4px 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.bh-title { font-weight: 800; color: #fff; }
#board-pair { color: rgba(238,240,247,.75); }
.tick { color: var(--teal); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tick::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; font-weight: 600; color: rgba(238,240,247,.6); font-size: 12px; padding: 12px 6px 8px; }
.board td { padding: 10px 6px; border-top: 1px solid rgba(255,255,255,.07); white-space: nowrap; }
.board td:nth-child(2), .board td:nth-child(4) { font-variant-numeric: tabular-nums; }
.board tr.best td { color: #fff; font-weight: 700; }
.best-mark { font-size: 11px; font-weight: 800; color: var(--ink); background: var(--teal); padding: 2px 7px; border-radius: 999px; }
.loss { color: #ff9b90; font-weight: 600; }
.board tr.ghost td { color: rgba(238,240,247,.55); text-align: center; padding: 28px 6px; }
.board-foot { margin: 12px 4px 0; font-size: 12.5px; color: rgba(238,240,247,.6); }

/* sections */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 24px; }
.section.alt { max-width: none; background: var(--paper-2); }
.section.alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.two.tight { align-items: center; }
.list { padding-left: 18px; margin: 0 0 24px; }
.list li { margin-bottom: 8px; }

/* outcome panel — the single number a person came for */
.outcome { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.oc-head { font-weight: 800; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.oc-rows { margin: 0; padding: 6px 0 0; }
.oc-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.oc-rows dt { color: var(--muted); font-size: 15px; }
.oc-rows dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.oc-total { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; }
.oc-total span { color: var(--muted); font-size: 14px; }
.oc-total b { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* mode tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { font: inherit; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .12s ease, color .12s ease; }
.tab:hover { border-color: #c3cad9; }
.tab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pane { display: none; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.pane.is-on { display: grid; }
.pane-copy p { color: var(--muted); max-width: 54ch; }
.pane-copy .fact { color: var(--teal-ink); font-weight: 600; }
.pane-demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pane-demo.dim { opacity: .62; }
.pd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; }
.pd-row span { color: var(--muted); font-size: 14px; }
.pd-row b { font-variant-numeric: tabular-nums; }
.pd-arrow { text-align: center; color: var(--muted); }

/* stage labels — a rail that is not ready says so */
.stage { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; }
.stage.live { background: rgba(20,184,166,.16); color: var(--teal-ink); }
.stage.beta { background: rgba(108,92,231,.14); color: var(--violet-ink); }
.stage.soon { background: #e4e7ef; color: var(--muted); }

/* rails table */
.table-scroll { overflow-x: auto; }
.rails { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rails th, .rails td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rails th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--paper-2); }
.rails tr:last-child td { border-bottom: 0; }
.rails td:first-child { font-weight: 700; white-space: nowrap; }

/* the one bold screen */
.private { background: var(--ink); color: #eef0f7; margin: 0; padding: 96px 24px; position: relative; overflow: hidden; }
.private::after { content: ''; position: absolute; inset: auto -10% -60% 40%; height: 420px; background: radial-gradient(closest-side, rgba(108,92,231,.55), transparent 70%); pointer-events: none; }
.private-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.private .eyebrow { color: var(--teal); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.private h2 { color: #fff; font-size: clamp(34px, 5vw, 58px); margin-bottom: 22px; }
.private p { color: rgba(238,240,247,.78); max-width: 58ch; }
.private-cost { color: #fff !important; font-weight: 700; margin: 18px 0 26px; }

/* points */
.points-demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.pd-head { font-weight: 800; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pd-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pd-line span { color: var(--muted); font-size: 15px; }
.pd-line b { font-weight: 700; }
.points-demo p { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* builders */
pre { background: var(--ink); color: #eef0f7; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: 14px; line-height: 1.5; }
.addr { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; margin: 10px 0 14px; }
.addr dt { font-weight: 700; }
.addr dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-all; color: var(--muted); }

/* footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px 24px 60px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; font-size: 14px; color: var(--muted); }
.foot .brand-foot { font-weight: 800; color: var(--ink); margin-right: 10px; }
.foot nav { display: flex; gap: 18px; }
.foot p { grid-column: 1 / -1; max-width: 70ch; margin: 0; }

@media (max-width: 960px) {
  .hero, .two, .pane.is-on { grid-template-columns: 1fr; }
  .links { display: none; }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .section { padding: 48px 20px; }
  .private { padding: 64px 20px; }
  /* Время — один из двух вопросов, ради которых человек пришёл: колонку не
     прячем, а даём таблице прокрутиться внутри карточки. */
  .board table { display: block; overflow-x: auto; white-space: nowrap; }
}
