/* Marketing pages. Tokens, header, footer, buttons and bands live in
   assets/shared/theme.css; this file is the page sections. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--text-strong); }
.band--dark a:not(.btn) { color: var(--brand); }
.band--dark a:not(.btn):hover { color: #fff; }
/* A light card inside a dark band (the signup form) keeps light-band colours. */
.band--dark .form-card .muted { color: var(--muted); }
.band--dark .form-card a:not(.btn) { color: var(--brand-text); }
.band--dark .form-card a:not(.btn):hover { color: var(--text-strong); }
p { margin: 0; }
code, pre { font-family: var(--font-mono); }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.035em;
    color: var(--text-strong);
}
h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.25rem + 2vw, 2.9rem); }
h3 { font-size: 1.18rem; letter-spacing: -.02em; line-height: 1.2; }
.hl { color: var(--brand); }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-text);
}
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.stack { display: grid; gap: 16px; }
.stack--lg { gap: 28px; }
.section-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.section-foot--center { justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 3rem + 4vw, 112px) clamp(56px, 3rem + 3vw, 100px); overflow: hidden; }
/* The hero card is as wide as one card of the three-card row below (its 20px gaps). */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) calc((100% - 40px) / 3); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { display: grid; gap: 26px; align-content: center; }
.hero h1 { font-size: clamp(2.7rem, 1.6rem + 4vw, 4.8rem); line-height: 1; letter-spacing: -.045em; }
.hero__sub { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.hero__sub .hero__price-num { color: var(--brand); font-weight: 700; }
.hero__sub span { color: var(--on-ink-muted); font-weight: 500; }
.hero .lede { color: #b8c3d4; max-width: 46ch; }
.hero__price { color: var(--on-ink-muted); font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hero__price strong { color: #fff; }

/* Feature chips: same look for all, the icon tells them apart. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--ink-line-strong);
    background: rgba(255, 255, 255, .04);
    color: var(--on-ink);
    font-size: .84rem;
    font-weight: 700;
}
.chips li svg { color: var(--brand); flex: 0 0 auto; }

.coins { display: inline-flex; align-items: center; gap: 6px; }
.coin {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .74rem;
    font-weight: 800;
    color: #fff;
    background: var(--ink-700);
    border: 1px solid var(--ink-line-strong);
}
.coin--btc { background: #f7931a; border-color: #f7931a; }
.coin--ln { background: #7b3fe4; border-color: #7b3fe4; }
.coin--usdt { background: #26a17b; border-color: #26a17b; }
.coin--eth { background: #627eea; border-color: #627eea; }

/* ---------- Feed card (real event, dark) ---------- */
.feed-card {
    position: relative;
    display: grid;
    /* One column no wider than the card: long league or player names wrap or clip instead of pushing it wider. */
    grid-template-columns: minmax(0, 1fr);
    background:
        radial-gradient(420px 180px at 50% -40px, rgba(245, 166, 35, .10), transparent 70%),
        linear-gradient(180deg, #152036, #0e1729);
    color: var(--on-ink);
    border-radius: 18px;
    border: 1px solid var(--ink-line-strong);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}
.feed-card--hero { box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 166, 35, .12); }
.feed-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ink-line);
    font-size: .78rem;
    font-weight: 700;
    color: var(--on-ink-muted);
}
.feed-card__league { display: flex; align-items: center; gap: 8px; min-width: 0; }
.feed-card__league span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.state--live { background: rgba(225, 29, 56, .16); color: #ff6b81; }
.state--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: live-pip 1.6s ease-out infinite; }
.state--upcoming { background: rgba(147, 197, 253, .14); color: #a9cdfd; }
.state--settled { background: rgba(245, 166, 35, .16); color: var(--brand); }

.match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 22px 18px 18px; }
.match__team { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.match__team span:last-child { font-weight: 700; color: #fff; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.crest {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
    border: 1px solid var(--ink-line-strong);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
}
.match__mid { display: grid; justify-items: center; gap: 6px; }
.match__score {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.match__score i { font-style: normal; color: var(--on-ink-muted); margin: 0 6px; font-weight: 500; }
.match__when { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; white-space: nowrap; }
.match__clock { font-size: .76rem; font-weight: 800; color: #ff6b81; letter-spacing: .04em; white-space: nowrap; }
.match__clock--muted { color: var(--on-ink-muted); }

.feed-card__market { padding: 0 18px 14px; }
.feed-card__mname { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 8px; }
/* Prices read like a sportsbook's odds buttons: the pick (1 / X / 2, Over / Under) left, the price right. */
.odds-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 34px;
    min-width: 0;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid var(--ink-line);
    background: rgba(255, 255, 255, .055);
    font-size: .8rem;
    transition: background .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.price__name { min-width: 0; color: var(--on-ink-muted); font-size: .72rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price__val { flex: 0 0 auto; font-family: var(--font-display); font-size: .86rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 3px; }
.price.up { background: rgba(5, 150, 105, .18); border-color: rgba(52, 211, 153, .55); box-shadow: 0 0 18px rgba(52, 211, 153, .15); }
.price.up .price__val { color: #6ee7b7; }
.price.up .price__val::after { content: "▲"; font-size: .6rem; }
.price.down { background: rgba(225, 29, 56, .16); border-color: rgba(251, 113, 133, .5); box-shadow: 0 0 18px rgba(251, 113, 133, .12); }
.price.down .price__val { color: #fda4af; }
.price.down .price__val::after { content: "▼"; font-size: .6rem; }
.price.is-suspended { opacity: .6; }
.price.is-suspended .price__val { color: transparent; position: relative; }
.price.is-suspended .price__val::after { content: "🔒"; position: absolute; left: 50%; transform: translateX(-50%); color: var(--on-ink-muted); font-size: .8rem; }
/* Settled: the pick and its result in words; every box alike, only the chip is coloured. */
.price--settled { flex-wrap: wrap; row-gap: 3px; padding: 5px 6px 5px 10px; }
.price--settled .price__name { flex: 1 1 3em; }
.price[data-result="W"] .price__name { color: #fff; }
.result-chip {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(148, 163, 184, .16);
    color: #cbd5e1;
}
.result-chip--won { background: rgba(52, 211, 153, .2); color: #6ee7b7; }
.result-chip--lost { background: rgba(225, 29, 56, .16); color: #ff6b81; } /* the live card's period red */
.feed-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid var(--ink-line);
    font-size: .8rem;
    color: var(--on-ink-muted);
}
.feed-card__foot a { font-weight: 800; color: var(--brand); }
.feed-card__foot a:hover { color: #fff; }
.stream { display: inline-flex; align-items: center; gap: 8px; }
.stream::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); animation: stream-pip 2s ease-out infinite; }
@keyframes stream-pip {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
    70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.feed-card--empty { padding: 32px 22px; gap: 12px; place-content: center; text-align: center; min-height: 260px; color: var(--on-ink-muted); }
.feed-card--empty .state { justify-self: center; }
.feed-card--empty a { color: var(--brand); font-weight: 800; }

/* The whole card opens the event: the foot link is stretched over it.
   A column, foot at the bottom: cards side by side stretch to one height. */
.feed-card--link { display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feed-card--link .feed-card__foot { margin-top: auto; }
.feed-card--link:hover { transform: translateY(-3px); border-color: rgba(245, 166, 35, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(245, 166, 35, .25); }
.feed-card--link:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.feed-card__open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.feed-card__open:focus-visible { outline: none; }
.feed-card__foot a.feed-card__open {
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(245, 166, 35, .14);
    color: var(--brand);
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.feed-card__open svg { transition: transform .2s ease; }
.feed-card--link:hover .feed-card__open { background: var(--brand); color: var(--brand-ink); }
.feed-card--link:hover .feed-card__open svg { transform: translateX(3px); }

/* Live card: a red line on top and a soft red glow. */
.feed-card--live::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--live) 30%, #ff6b81 70%, transparent);
}
.feed-card--live {
    background:
        radial-gradient(420px 180px at 50% -40px, rgba(225, 29, 56, .14), transparent 70%),
        linear-gradient(180deg, #152036, #0e1729);
}
.feed-card__sport { font-size: 1rem; line-height: 1; }
.match__clock--live { padding: 3px 10px; border-radius: 999px; background: rgba(225, 29, 56, .16); font-variant-numeric: tabular-nums; }

/* Team shirts in the crest (same drawing as the event page). */
.crest .sb-kit { width: 34px; height: 34px; display: block; overflow: visible; }
.crest .sb-kit-body { fill: var(--kit, #94a3b8); }
.crest .sb-kit-trim { fill: var(--kit-2, var(--kit, #64748b)); }
.crest .sb-kit-sheen { fill: #fff; opacity: .2; }
.crest .sb-kit-line { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) {
    .feed-card--link, .feed-card--link:hover, .feed-card__open svg { transition: none; transform: none; }
}

/* Sports strip under the live cards */
.sport-strip { margin-top: 36px; display: grid; gap: 14px; }
.sport-strip__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; color: var(--on-ink-muted); font-weight: 700; }
.sport-strip__stats strong { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-right: 6px; letter-spacing: -.02em; }
.sport-strip__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sport-strip__list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid var(--ink-line-strong);
    background: rgba(255, 255, 255, .04);
    color: var(--on-ink);
    font-weight: 700;
    font-size: .88rem;
}
.sport-strip__list a:hover { border-color: var(--brand); color: #fff; }
.sport-strip__list .live-n { color: #ff6b81; font-size: .76rem; font-weight: 800; }
.sport-strip__list a.sport-strip__all { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.sport-strip__soon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sport-strip__soon-label { color: var(--on-ink-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.sport-strip__soon-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 10px;
    border: 1px dashed var(--ink-line-strong);
    color: var(--on-ink-muted);
    font-weight: 700;
    font-size: .82rem;
}
.sport-strip__soon-more { color: var(--brand); font-weight: 700; font-size: .84rem; margin-left: 4px; }
.sport-strip__soon-more:hover { text-decoration: underline; }

/* Crypto block */
.crypto {
    margin: 36px auto 0;
    max-width: 920px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ink-line-strong);
    background: var(--ink-line);
}
.crypto > div { background: var(--ink-800); padding: 22px 20px; display: grid; gap: 8px; align-content: start; }
.crypto h3, .crypto__title { font-size: 1.15rem; }
.crypto p { color: var(--on-ink-muted); font-size: .9rem; }
.crypto__head { background: linear-gradient(160deg, rgba(245, 166, 35, .16), rgba(245, 166, 35, .04)) !important; }
.crypto__head .coins { margin-top: 4px; }
.crypto__item strong { color: #fff; font-size: .98rem; }
.band--light .crypto { border-color: var(--line); background: var(--line); }
.band--light .crypto > div { background: var(--card); }
.band--light .crypto__head { background: linear-gradient(160deg, var(--brand-soft), #fff) !important; }
.band--light .crypto p { color: var(--muted); }
.band--light .crypto__item strong { color: var(--text-strong); }

.chips--light li { border-color: var(--line); background: var(--card); color: var(--text); }
.chips--light li svg { color: var(--brand-text); }

/* ---------- Three steps ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
    position: relative;
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 28px 24px 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.step__num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--ink-900);
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}
.step__tag { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--up-text); }
.step:last-child .step__tag { color: var(--brand-text); }
.step p { color: var(--muted); }
.step .btn { justify-self: start; margin-top: 6px; }
/* The old way: plain grey pills, a soft grey strike, nothing red. */
.oldway {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 600;
}
.oldway strong { color: var(--text-strong); font-weight: 800; margin-right: 4px; }
.oldway s {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--muted);
    text-decoration-color: rgba(95, 110, 131, .55);
    text-decoration-thickness: 1.5px;
}

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--top { align-items: start; }
.card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.card p { color: var(--muted); }
.card--feature-main { border-color: #f3cf8b; box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-card); }
.card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--ink-900);
    color: var(--brand);
}
/* A card that ends in a link: the button sits on the card's bottom edge. */
.card--action { display: flex; flex-direction: column; }
.card__foot { margin-top: auto; padding-top: 6px; }
.card--dark {
    background: var(--ink-800);
    border-color: var(--ink-line);
    color: var(--on-ink);
    box-shadow: none;
}
.card--dark p { color: var(--on-ink-muted); }
.card--dark h3 { color: #fff; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg { flex: 0 0 auto; margin-top: 3px; color: var(--up); }
.band--dark .ticks li svg { color: var(--brand); }

/* ---------- Settlement block ---------- */
.inplay { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 90px; }
.inplay:first-child { margin-top: 0; }
.inplay__head { margin-bottom: 28px; }
.inplay__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.inplay__stat { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .95rem; justify-self: start; }
.inplay__stat strong { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.inplay__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(22, 163, 106, .18); animation: inplayPulse 1.6s ease-in-out infinite; }
@keyframes inplayPulse { 50% { box-shadow: 0 0 0 7px rgba(22, 163, 106, 0); } }
.inplay .steps3 { counter-reset: none; }
.inplay .step:last-child .step__tag { color: var(--brand-text); }
.compare {
    width: 100%;
    margin-top: 36px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .95rem;
}
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: #f6f8fb; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .is-us th, .compare .is-us td { background: var(--brand-soft); color: var(--text-strong); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ---------- Code (light, like an editor window) ---------- */
.code {
    border-radius: 14px;
    background: #fbfcfe;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    color: #1f2a3d;
}
.code__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 9px 14px;
    background: #f2f5f9;
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
}
.code__bar > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.code__bar > span:first-child::before {
    content: "";
    width: 34px;
    height: 10px;
    flex: 0 0 auto;
    background:
        radial-gradient(circle at 5px 5px, #f87171 4px, transparent 4.5px),
        radial-gradient(circle at 17px 5px, #fbbf24 4px, transparent 4.5px),
        radial-gradient(circle at 29px 5px, #34d399 4px, transparent 4.5px);
}
.code__bar > span:last-child {
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .04em;
}
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: .84rem; line-height: 1.7; tab-size: 2; }
.tok-key { color: #0b5cad; }
.tok-str { color: #9f3e0a; }
.tok-num { color: #0b6a4a; }
.tok-lit { color: #7c3aed; font-weight: 600; }
.tok-cmd { color: #0b5cad; font-weight: 700; }
.tok-flag { color: #7c3aed; }

.tabs { display: grid; gap: 0; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs__bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs__bar label {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--ink-line-strong);
    color: var(--on-ink-muted);
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}
.tabs__panel { display: none; }
#tab-rest:checked ~ .tabs__bar label[for="tab-rest"],
#tab-ws:checked ~ .tabs__bar label[for="tab-ws"],
#tab-settle:checked ~ .tabs__bar label[for="tab-settle"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
#tab-rest:checked ~ .tabs__panel--rest,
#tab-ws:checked ~ .tabs__panel--ws,
#tab-settle:checked ~ .tabs__panel--settle { display: block; }
.tabs > input:focus-visible ~ .tabs__bar label { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Live numbers strip ---------- */
.numbers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--ink-line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-line); }
.number { padding: 22px 20px; background: var(--ink-800); display: grid; gap: 4px; }
.number__value { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.number__value--brand { color: var(--brand); }
.number__label { font-size: .84rem; color: var(--on-ink-muted); font-weight: 600; }
.numbers-note { margin-top: 12px; font-size: .8rem; color: var(--on-ink-muted); }

/* ---------- Sports grid ---------- */
.headline-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-bottom: 28px; }
.headline-stats strong { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--text-strong); letter-spacing: -.03em; }
.headline-stats span { color: var(--muted); font-weight: 700; margin-left: 6px; }
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sport-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--text);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sport-tile:hover { border-color: var(--brand-strong); transform: translateY(-1px); box-shadow: var(--shadow-card); color: var(--text); }
.sport-tile__ico { grid-row: span 2; font-size: 1.5rem; line-height: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--page); }
.sport-tile__name { font-weight: 800; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sport-tile__meta { font-size: .76rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.sport-tile__live { color: var(--live); font-weight: 800; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 920px; margin-inline: auto; }
.plan {
    display: grid;
    gap: 18px;
    align-content: start;
    padding: 30px 28px;
    border-radius: 16px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.plan--pro { position: relative; border: 2px solid var(--brand); box-shadow: 0 0 0 6px rgba(245, 166, 35, .12), var(--shadow-card); }
.plan__badge {
    position: absolute;
    top: -13px;
    left: 26px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--brand-ink);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.plan__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-strong); }
.plan__for { color: var(--muted); font-size: .95rem; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--text-strong); letter-spacing: -.04em; line-height: 1; }
.plan__per { color: var(--muted); font-weight: 700; }
.plan__then { font-size: .9rem; color: var(--muted); margin-top: -8px; }
.plan__then strong { color: var(--text-strong); }
.plan .ticks { font-size: .94rem; }
.plan .ticks li.is-key { font-weight: 800; color: var(--text-strong); }
/* Pro card: the API and settlement lines lead, in the display face and a touch larger. */
.plan .ticks li.is-lead { font-family: var(--font-display, "Space Grotesk", sans-serif); font-size: 1.04rem; font-weight: 700; color: var(--text-strong); letter-spacing: -.01em; }
.plan .ticks li.is-lead svg { color: var(--brand-strong, var(--brand)); }
.plan .ticks li.is-lead + li:not(.is-lead) { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan .btn { width: 100%; }
.plan__pay { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: -6px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.plan-notes { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.band--dark .plan-notes { color: var(--on-ink-muted); }
.plan-notes span::before { content: "✓ "; color: var(--brand); }

/* ---------- Facts table ---------- */
.facts { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts th { width: 36%; color: var(--muted); font-weight: 700; background: #f8fafc; }
.facts td { color: var(--text-strong); font-weight: 600; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-weight: 800;
    color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; line-height: 1; color: var(--brand-text); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Page head (sub pages) ---------- */
.page-head { padding-block: clamp(48px, 3rem + 3vw, 96px) clamp(40px, 2.5rem + 2vw, 72px); }
/* A short head where the page itself is the point (pricing). */
.page-head--compact { padding-block: clamp(32px, 2rem + 1.5vw, 56px) clamp(28px, 1.6rem + 1vw, 44px); }
.page-head--compact h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
.page-head--compact .lede { max-width: 640px; }
.band--tight-top { padding-top: 28px; }
/* Pricing: the same left edge and width as every other page, the plan table included. */
.page-head--pricing { padding-block: clamp(28px, 1.6rem + 1.2vw, 48px) clamp(24px, 1.4rem + 1vw, 40px); }
.pricing-plans { padding-top: 36px; }
.pricing-plans .pro-card, .pricing-plans .crypto { max-width: none; }
.page-head__inner { display: grid; gap: 16px; justify-items: start; }
.page-head__inner > * { max-width: 820px; }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); }

/* ---------- Final CTA ---------- */
.cta-final__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-final h2 { max-width: 18ch; }
.cta-final .lede { margin-top: 12px; }

/* ---------- Notices, forms ---------- */
.notice { padding: 18px 20px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); display: grid; gap: 6px; }
.notice p { color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 10px; background: #e7f7f1; border: 1px solid #9fdcc4; color: #065f46; display: grid; gap: 4px; }
.alert--error { background: #fdecec; border-color: #f2b2b4; color: #8f1d22; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: .9rem; color: var(--text-strong); }
.field input, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--card);
    color: var(--text-strong);
    font: inherit;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-glow); }
.field__hint { font-size: .82rem; color: var(--muted); }
.field__error { font-size: .82rem; color: var(--down); font-weight: 700; }
.field--error input, .field--error textarea { border-color: var(--down); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { padding: clamp(22px, 3vw, 34px); border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* ---------- Prose (terms, privacy, docs) ---------- */
.prose { max-width: 780px; display: grid; gap: 14px; }
/* A page body (terms, privacy, glossary, checklist, compare): the page's full width so it lines up
   with the title on the left; only the lines are kept short to read. */
.container.prose { max-width: none; justify-items: start; }
.container.prose > * { max-width: 780px; width: 100%; }
.container.prose > table, .container.prose > .compare, .container.prose > div { max-width: 100%; }
.prose h2 { font-size: 1.5rem; margin-top: 18px; }
.checklist-qa { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.checklist-qa h2 { font-size: 1.15rem; margin: 0 0 6px; }
.checklist-qa p { margin: 0; }
.prose h3 { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--text); }
.prose code { background: var(--page-2); padding: 1px 6px; border-radius: 5px; font-size: .88em; }

/* ---------- Docs ---------- */
.docs-head { padding-block: clamp(36px, 2rem + 2vw, 64px); }
.docs-head__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.docs-head h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); margin: 8px 0 10px; }
.docs-head__side { display: grid; gap: 8px; justify-items: start; max-width: 340px; }
.docs-head__side .muted { color: var(--on-ink-muted); }
.docs-band { padding-top: 36px; }
.docs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 3vw, 56px); align-items: start; }
.docs__nav {
    position: sticky; top: calc(var(--top-h) + 20px);
    display: grid; gap: 2px; padding: 12px; font-size: .92rem;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card);
}
.docs__nav-title { margin: 10px 10px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.docs__nav-title:first-child { margin-top: 2px; }
.docs__nav a { padding: 7px 10px; border-radius: 8px; color: var(--text); font-weight: 700; border-left: 3px solid transparent; }
.docs__nav a:hover { background: var(--page); color: var(--text-strong); }
.docs__nav a.active { background: var(--brand-soft); color: var(--text-strong); border-left-color: var(--brand-strong); }
.docs__body { display: grid; gap: 52px; min-width: 0; }
.docs__body section { display: grid; gap: 16px; scroll-margin-top: calc(var(--top-h) + 16px); }
.docs__body h2 { font-size: 1.7rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.docs__body p code, .docs-steps code { background: var(--page-2); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.soon { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: .74rem; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }

.docs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.docs-facts > div { background: var(--card); padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.docs-facts span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.docs-facts code { font-size: .86rem; color: var(--text-strong); overflow-wrap: anywhere; }

.docs-steps { list-style: none; margin: 0; padding: 0; counter-reset: dstep; display: grid; gap: 10px; }
.docs-steps li { counter-increment: dstep; position: relative; padding: 12px 14px 12px 52px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.docs-steps li::before {
    content: counter(dstep); position: absolute; left: 14px; top: 11px;
    width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
    background: var(--ink-900); color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}

.key-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.key-types > div { display: grid; gap: 8px; align-content: start; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.key-types p { color: var(--muted); }
.key-pill { justify-self: start; padding: 2px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: .78rem; font-weight: 700; }
.key-pill--sandbox { background: #e8eef8; color: #2b4a7a; }
.key-pill--live { background: var(--brand-soft); color: var(--brand-text); }

.endpoints { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.endpoint { display: grid; grid-template-columns: 58px minmax(0, auto) minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.endpoint:last-child { border-bottom: 0; }
.endpoint code { font-size: .86rem; color: var(--text-strong); font-weight: 600; overflow-wrap: anywhere; }
.endpoint > span:last-child { color: var(--muted); }
.method, .status { justify-self: start; padding: 3px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.method { background: #e7f7f1; color: #0f7a55; }
.status--4 { background: #fdecec; color: #a3242a; }

.callout { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; background: #eef4ff; border: 1px solid #cfdcf6; border-left: 4px solid #3b6fd8; }
.callout strong { color: var(--text-strong); }
.callout span { color: var(--text); }

.results-ref { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.results-ref > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.results-ref p { color: var(--muted); font-size: .92rem; }
.res { padding: 2px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: .78rem; font-weight: 800; color: #fff; }
.res--won { background: var(--up); }
.res--lost { background: var(--down); }
.res--void { background: #64748b; }
.res--pending { background: #fff7e3; color: #8a5a07; border: 1px dashed #d6a64a; }

.code__copy {
    margin-left: auto; padding: 3px 10px; border-radius: 6px; cursor: pointer;
    border: 1px solid var(--line); background: #fff; color: var(--text);
    font: inherit; font-size: .74rem; font-weight: 700;
}
.code__copy:hover { border-color: var(--brand-strong); color: var(--brand-text); }
.docs .code__bar > span:last-of-type { margin-left: auto; }
.docs .code__bar > span:last-of-type + .code__copy { margin-left: 0; }

/* API reference on /docs: every endpoint open, built from the OpenAPI contract. */
/* Compact enough to fit a normal screen; on a short one it still moves with the wheel, without a scrollbar. */
.docs__nav { max-height: calc(100vh - var(--top-h) - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; gap: 3px; padding: 0 14px 16px; }
.docs__nav::-webkit-scrollbar { display: none; }
.docs__nav a { padding: 8px 12px; line-height: 1.45; }
.docs__nav-title { margin: 14px 12px 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.docs__nav-search + .docs__nav-empty + .docs__nav-title, .docs__nav-search + .docs__nav-title { margin-top: 4px; padding-top: 0; border-top: 0; }
.docs__nav a.docs__nav-group { margin-top: 8px; }
.docs__nav a.docs__nav-guide { padding: 7px 12px; font-size: .92rem; }
.docs__nav a.docs__nav-op { display: flex; align-items: flex-start; gap: 8px; padding: 6px 12px 6px 22px; font-size: .87rem; font-weight: 600; color: var(--muted); }
.docs__nav [hidden] { display: none !important; }
.docs__nav-search { position: sticky; top: 0; z-index: 1; margin: 0 -14px 6px; padding: 14px 14px 10px; background: var(--card); }
.docs__nav-search input {
    width: 100%; padding: 9px 34px 9px 12px; border-radius: 9px;
    border: 1px solid var(--line-strong); background: var(--page); color: var(--text-strong); font: inherit; font-size: .9rem;
}
.docs__nav-search input:focus { outline: none; border-color: var(--brand-strong); background: var(--card); box-shadow: 0 0 0 3px var(--brand-glow); }
.docs__nav-search kbd {
    position: absolute; right: 24px; top: 50%; transform: translateY(-40%);
    padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--card);
    font-family: var(--font-mono); font-size: .72rem; color: var(--muted); pointer-events: none;
}
.docs__nav-search input:focus + kbd, .docs__nav-search input:not(:placeholder-shown) + kbd { display: none; }
.docs__nav-empty { margin: 4px 12px; font-size: .88rem; color: var(--muted); }
.docs__nav-toggle { display: none; }
.docs__nav-op__text { min-width: 0; overflow-wrap: anywhere; }
.docs__nav-op .method--sm { flex: 0 0 auto; margin-top: 2px; }
.docs__nav a.docs__nav-op:hover, .docs__nav a.docs__nav-op.active { color: var(--text-strong); }
.method--sm { padding: 1px 5px; font-size: .6rem; }
.docs__body article[id] { scroll-margin-top: calc(var(--top-h) + 16px); }
.api-group { gap: 22px !important; }
.api-op { display: grid; gap: 14px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); min-width: 0; }
.api-op__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.api-op__head code { font-size: 1rem; font-weight: 700; color: var(--text-strong); overflow-wrap: anywhere; }
.api-op__auth { margin-left: auto; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.api-op h3 { margin: 0; font-size: 1.3rem; }
.docs-prose { display: grid; gap: 10px; color: var(--text); }
.docs-prose p, .docs-prose ul, .docs-prose ol { margin: 0; }
.docs-prose ul, .docs-prose ol { padding-left: 1.3em; display: grid; gap: 4px; }
.docs-prose code, .api-table code, .api-statuses__text code { background: var(--page-2); padding: 1px 6px; border-radius: 5px; font-size: .86em; }
.docs-prose strong { color: var(--text-strong); }
/* Links inside running text need more than colour to stand out (WCAG 1.4.1). */
.docs-prose p a, .docs-prose li a, .docs__body p a:not(.btn), .docs__body li a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.api-op > *, .docs-prose > * { min-width: 0; }
.docs-prose pre { margin: 0; padding: 14px 16px; overflow-x: auto; background: var(--page-2); border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; line-height: 1.65; tab-size: 2; }
.docs-prose pre code { display: block; padding: 0; background: none; border-radius: 0; font-size: inherit; white-space: pre; }
.docs-guide .docs-prose h3 { margin: 12px 0 0; font-size: 1.15rem; color: var(--text-strong); }
.docs-guide .docs-prose li > p { margin: 0; }
.docs-guide .api-table td:first-child { white-space: normal; min-width: 9em; }
.api-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.api-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.api-table th { text-align: left; padding: 9px 14px; background: #f2f5f9; border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.api-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.api-table tr:last-child td { border-bottom: 0; }
.api-table td:first-child { white-space: nowrap; }
.api-table td:not(:first-child), .api-table td:not(:first-child) code { overflow-wrap: anywhere; }
#websocket-connect td:first-child { white-space: normal; }
.api-table td:first-child code { color: var(--text-strong); font-weight: 700; background: none; padding: 0; }
.api-type { font-family: var(--font-mono); font-size: .78rem; color: #3b4b63; min-width: 120px; }
.api-in, .api-req { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.api-in { background: var(--page-2); color: var(--muted); }
.api-req { background: var(--brand-soft); color: var(--brand-text); }
.code__bar--tabs { justify-content: flex-start; padding-block: 6px; }
.code__bar--tabs button { padding: 4px 10px; border-radius: 6px; border: 1px solid transparent; background: none; font: inherit; font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.code__bar--tabs button:hover { color: var(--text-strong); }
.code__bar--tabs button.is-on { background: #fff; border-color: var(--line); color: var(--text-strong); }
.status--2 { background: #e7f7f1; color: #0f7a55; }
.api-statuses .endpoint { grid-template-columns: 58px minmax(0, 1fr); padding-block: 9px; }
.api-statuses__text { color: var(--text); }
.api-object { display: grid; gap: 8px; scroll-margin-top: calc(var(--top-h) + 16px); }
.api-object h3 { margin: 10px 0 0; font-size: 1.1rem; font-family: var(--font-mono); }

@media (max-width: 920px) {
    .docs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .docs-facts, .key-types, .results-ref { grid-template-columns: minmax(0, 1fr); }
    .endpoint { grid-template-columns: auto minmax(0, 1fr); }
    .endpoint > span:last-child { grid-column: 1 / -1; }
}

/* ---------- Coverage list ---------- */
.cov-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cov-search {
    flex: 0 1 360px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--card);
    font: inherit;
}
.cov-search:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-glow); }
.cov { display: grid; gap: 10px; }
.cov-sport { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.cov-sport > summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
}
.cov-sport > summary::-webkit-details-marker { display: none; }
.cov-sport__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-strong); }
.cov-sport__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); font-weight: 700; }
.cov-sport__open { color: var(--brand-text); font-weight: 800; font-size: .86rem; white-space: nowrap; }
.cov-sport[open] .cov-sport__open::after { content: " ▴"; }
.cov-sport:not([open]) .cov-sport__open::after { content: " ▾"; }
.cov-body { padding: 0 20px 20px; display: grid; gap: 16px; }
.cov-markets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--text); }
.cov-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cov-country { padding: 12px 14px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); }
.cov-country h4 { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .92rem; letter-spacing: 0; margin-bottom: 6px; }
.cov-country h4 img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.cov-country h4 span { color: var(--muted); font-weight: 700; margin-left: auto; font-size: .8rem; }
.cov-country ul { margin: 0; padding: 0; list-style: none; font-size: .84rem; color: var(--text); display: grid; gap: 2px; }
.cov-sport.hidden, .cov-country.hidden, .cov-country li.hidden { display: none; }
.cov-empty { padding: 24px; text-align: center; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    .hero__grid, .split, .docs { grid-template-columns: minmax(0, 1fr); }
    .hero__card { width: min(100%, 420px); justify-self: center; }
    .crypto { grid-template-columns: minmax(0, 1fr); }
    /* Docs on a phone: the menu folds into a bar that stays under the header. */
    .docs { gap: 20px; }
    .docs__nav { top: calc(var(--top-h) + 8px); z-index: 20; padding: 0; max-height: calc(100dvh - var(--top-h) - 16px); }
    .docs__nav:not(.is-open) > :not(.docs__nav-toggle) { display: none; }
    .docs__nav.is-open { padding: 0 12px 14px; box-shadow: 0 18px 40px rgba(11, 18, 32, .22); }
    .docs__nav-toggle {
        position: sticky; top: 0; z-index: 2;
        display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px;
        border: 0; border-radius: 14px; background: var(--card); color: var(--text-strong); font: inherit; text-align: left; cursor: pointer;
    }
    .docs__nav.is-open .docs__nav-toggle { margin: 0 -12px; width: calc(100% + 24px); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
    .docs__nav-toggle__label { flex: 0 0 auto; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
    .docs__nav-toggle__current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
    .docs__nav-toggle::after {
        content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 4px 0 0;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s;
    }
    .docs__nav.is-open .docs__nav-toggle::after { margin-top: 4px; transform: rotate(-135deg); }
    .docs__nav-search { position: static; margin: 0 0 4px; padding: 12px 0 6px; }
    .docs__nav-search kbd { display: none; }
    .docs__nav a { padding-block: 10px; }
    .docs__nav a.docs__nav-op { padding-block: 8px; }
    .docs__body section, .docs__body article[id], .api-object { scroll-margin-top: calc(var(--top-h) + 72px); }
    .docs__body { gap: 40px; }
    .api-op { padding: 16px; }
    .docs__body h2 { font-size: 1.45rem; }
    .docs-head__side { max-width: none; }
    .api-table th, .api-table td { padding: 8px 10px; }
    .steps3, .grid--3 { grid-template-columns: minmax(0, 1fr); }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { max-width: none; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .grid--2, .grid--4, .form-row { grid-template-columns: minmax(0, 1fr); }
    .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .match__score { font-size: 2.1rem; }
    .crest { width: 40px; height: 40px; }
    .compare th, .compare td { padding: 12px; }
    .facts th { width: 44%; }
    .cov-sport > summary { grid-template-columns: auto minmax(0, 1fr); }
    .cov-sport__open { display: none; }
}

/* Accounts: auth forms and the dashboard (website-plan tasks 11, 12, 14). */
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.field--check label { font-weight: 600; font-size: .9rem; }
.auth-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: .9rem; }
.dash { padding-block: 0; }
.dash-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dash-head h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; overflow-wrap: anywhere; }
.dash > .alert { margin-bottom: 18px; }
.dash-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.dash-card { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: grid; gap: 12px; align-content: start; }
.dash-card h2 { margin: 0; font-size: 1.1rem; }
.dash-card p { margin: 0; }
.plan-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem; background: var(--page); border: 1px solid var(--line); }
.plan-pill--pro { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.key-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.key-box code, .code-line { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; padding: 10px 12px; border-radius: 10px; background: #0b1220; color: #e2e8f0; overflow-x: auto; max-width: 100%; white-space: nowrap; }
.code-line { display: block; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-who { display: flex; gap: 16px; align-items: center; min-width: 0; }
.dash-avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ink-900); color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.dash-sub { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.dash-nav { display: flex; flex-wrap: wrap; gap: 8px; }

.dash-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 18px; }
.dash-stat { position: relative; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: grid; gap: 2px; }
.dash-stat__label { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dash-stat__value { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.2; color: var(--text-strong); display: flex; align-items: center; gap: 8px; }
.dash-stat__note { font-size: .88rem; color: var(--muted); }
.dash-stat__link { position: absolute; top: 18px; right: 20px; font-size: .86rem; font-weight: 800; }
@media (max-width: 600px) {
    .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .dash-stat { padding: 12px; border-radius: 12px; }
    .dash-stat__label { font-size: .64rem; letter-spacing: .05em; }
    .dash-stat__value { font-size: 1.15rem; gap: 6px; }
    .dash-stat__note { font-size: .74rem; line-height: 1.35; }
    .dash-stat__link { position: static; font-size: .76rem; margin-top: 4px; }
    .dash-avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dash-dot--on { background: var(--up); box-shadow: 0 0 0 4px rgba(5, 150, 105, .15); }

.dash-main { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; margin-bottom: 18px; }
@media (max-width: 900px) { .dash-main { grid-template-columns: minmax(0, 1fr); } }
.dash-card { min-width: 0; }
.dash-card__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: space-between; }
.dash-card__head p { margin-top: 4px; max-width: 70ch; }
.dash-card__foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; margin-top: 2px; border-top: 1px solid var(--line); }
.dash-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--page); border: 1px solid var(--line); color: var(--muted); }
.dash-chip--ok { background: #e7f7f1; border-color: #9fdcc4; color: #065f46; }
.dash-callout { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); border: 1px solid #f3cf8a; color: #6b3f05; font-size: .92rem; }
.dash-field { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dash-field__value { flex: 1 1 260px; min-width: 0; font-family: var(--font-mono); font-size: .9rem; padding: 11px 14px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); color: var(--text-strong); overflow-wrap: anywhere; word-break: break-all; }
.dash-ip { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dash-ip label { font-size: .92rem; }
.dash-ip input { flex: 1 1 220px; min-width: 0; font-family: var(--font-mono); font-size: .9rem; padding: 10px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-strong); color: var(--text-strong); }
.dash-ip input:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-glow); }
.dash-ip p { margin: 0; }
.dash-warn { color: var(--down); font-weight: 600; }
.dash-mask { color: var(--muted); letter-spacing: .05em; }
.dash-code { border-radius: 12px; background: var(--ink-900); overflow: hidden; }
.dash-code__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #95a3b8; }
.dash-code__copy { font: inherit; letter-spacing: .04em; cursor: pointer; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #e7ecf4; }
.dash-code__copy:hover, .dash-code__copy.is-copied { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.dash-code pre { margin: 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dash-code code { font-family: var(--font-mono); font-size: .86rem; line-height: 1.7; color: #e2e8f0; }
.dash-inline { font-family: var(--font-mono); font-size: .8rem; padding: 1px 6px; border-radius: 6px; background: var(--page); border: 1px solid var(--line); overflow-wrap: anywhere; }
.dash-danger { color: var(--down); }
.dash-danger:hover { border-color: var(--down); }

.dash-progress { height: 6px; border-radius: 999px; background: var(--page); overflow: hidden; }
.dash-progress span { display: block; height: 100%; border-radius: inherit; background: var(--up); }
.dash-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dash-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.dash-step + .dash-step { border-top: 1px dashed var(--line); }
.dash-step__mark { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; border: 2px solid var(--line-strong); color: var(--muted); }
.dash-step.is-done .dash-step__mark { background: var(--up); border-color: var(--up); color: #fff; }
.dash-step__body { display: grid; gap: 1px; font-size: .9rem; color: var(--muted); }
.dash-step__body strong { color: var(--text-strong); font-size: .95rem; }
.dash-step.is-done .dash-step__body strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.dash-step__body a { font-weight: 800; white-space: nowrap; }

.dash-sports { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.dash-sport { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.dash-sport h3 { margin: 0 0 6px; font-size: .98rem; display: flex; align-items: center; gap: 8px; }
.dash-sport ul { list-style: none; margin: 0; padding: 0; }
.dash-ev { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.dash-ev__side { display: grid; justify-items: end; gap: 3px; }
.dash-ev + .dash-ev { border-top: 1px solid var(--line); }
.dash-ev__teams { display: grid; min-width: 0; font-size: .9rem; line-height: 1.35; font-weight: 700; color: var(--text-strong); }
.dash-ev__teams > span, .dash-ev__teams small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-ev__teams small { font-weight: 600; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.dash-ev__score { font-family: var(--font-mono); font-weight: 800; font-size: .88rem; }
.dash-ev__code { font-family: var(--font-mono); font-size: .76rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--page); color: var(--text); cursor: pointer; }
.dash-ev__code:hover, .dash-ev__code.is-copied, .dash-ev__curl:hover, .dash-ev__curl.is-copied { border-color: var(--brand); background: var(--brand-soft); }
.dash-ev__curl { font-family: var(--font-mono); font-size: .7rem; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
a.dash-ev__teams:hover > span { text-decoration: underline; }
.dash-quick { margin-bottom: 18px; }
.dash-quick__calls { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.dash-quick__call { display: grid; gap: 8px; align-content: start; min-width: 0; }
.dash-quick__call p { margin: 0; }
.dash-quick__socket { margin: 0; }
.dash-state { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: .74rem; font-weight: 800; white-space: nowrap; background: #eef1f4; color: var(--muted); }
.dash-state--live { background: #fde8eb; color: var(--live); }
.dash-state--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.dash-state--upcoming { background: #e8f0fe; color: #1d4ed8; }
.danger-zone { border-color: #f2b2b4; }
.btn--danger { background: #b91c1c; color: #fff; }
.btn--danger:hover { background: #991b1b; color: #fff; }

/* How you start: three steps with arrows (sign up, first call, pay). */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.flow__step { position: relative; }
.flow__step:not(:last-child)::after {
    content: "→"; position: absolute; top: 34px; right: -23px; z-index: 1;
    color: var(--muted); font-size: 1.2rem; font-weight: 700;
}
.flow__step--pro { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-card); }
.flow__step--pro .step__num { background: var(--brand); color: var(--brand-ink); }
.flow__step h3 { margin: 0; }
.pro-card + .flow { margin-top: 28px; }
@media (max-width: 760px) {
    .flow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .flow__step:not(:last-child)::after { content: "↓"; top: auto; bottom: -22px; right: 50%; transform: translateX(50%); }
}

/* Pricing: the one plan, Pro, as one card (trial-plan → The pricing page). Price, trial
   chip and button on the left; Data, Delivery and Access on the right. */
.pro-card {
    max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    background: var(--card); border: 2px solid var(--brand); border-radius: 16px;
    box-shadow: 0 0 0 6px rgba(245, 166, 35, .12), var(--shadow-card); overflow: hidden;
}
.pro-card__head { display: grid; gap: 10px; align-content: start; padding: clamp(22px, 3vw, 32px); background: color-mix(in srgb, var(--brand) 7%, var(--card)); border-right: 1px solid var(--line); }
.pro-card__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pro-card__name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--brand-text); }
.pro-card__chip { padding: 4px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .78rem; font-weight: 800; }
.pro-card__line { margin: 0; color: var(--text-strong); font-weight: 700; }
.pro-card__price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--text-strong); letter-spacing: -.04em; line-height: 1; }
.pro-card__per { color: var(--muted); font-weight: 700; }
.pro-card .pc__billed { font-size: .86rem; margin-top: 6px; }
.pro-card__go { width: 100%; margin-top: 6px; }
.pro-card__under { text-align: center; font-size: .84rem; font-weight: 700; color: var(--muted); }
.pro-card__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: clamp(22px, 3vw, 32px); }
.pro-card__group h3 { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pro-card__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pro-card__group li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; color: var(--text-strong); }
.pro-card__tick { flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e7f7f1; color: var(--up); }
.pro-card__tick svg { width: 13px; height: 13px; }
.pro-card__more { margin: 18px 0 0; text-align: center; font-weight: 700; }
@media (max-width: 980px) {
    .pro-card { grid-template-columns: minmax(0, 1fr); }
    .pro-card__head { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
    .pro-card__groups { grid-template-columns: minmax(0, 1fr); }
}
.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; }

/* The positioning checklist and the facts block (seo-plan → The pitch, task 6). */
.needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.needs__item { display: flex; gap: 12px; align-items: flex-start; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.needs__check { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); }
.needs__item h3 { font-size: .98rem; margin: 2px 0 4px; color: var(--text-strong); }
.needs__item p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.needs__note { margin: 18px auto 0; max-width: 760px; text-align: center; }
.compare__save { font-size: .8rem; font-weight: 800; color: var(--brand-text); }
.facts { margin: 0 0 clamp(40px, 5vw, 64px); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.facts__title { font-size: 1.25rem; margin: 0 0 14px; }
.facts dl { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 10px 20px; margin: 0; }
.facts dt { font-weight: 800; color: var(--text-strong); }
.facts dd { margin: 0; color: var(--text); }
@media (max-width: 1080px) {
    .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .needs { grid-template-columns: 1fr; }
    .facts dl { grid-template-columns: 1fr; gap: 2px; }
    .facts dd { margin-bottom: 10px; }
}

/* Search pages (seo-plan task 7): link cards, small code boxes, the glossary, the tools. */
.card--link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--brand-strong); transform: translateY(-2px); }
.card--link h3 { color: var(--text-strong); }
.card__more { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--brand-text); }
.code-mini { margin: 8px 0 0; padding: 12px 14px; background: var(--ink-900, #0b1220); color: #e6edf6; border-radius: 10px; font-size: .78rem; line-height: 1.5; overflow-x: auto; }
.glossary dl { display: grid; gap: 6px 0; margin: 0; }
.glossary dt { font-weight: 800; color: var(--text-strong); margin-top: 14px; font-size: 1.05rem; }
.glossary dd { margin: 0; color: var(--text); }
.tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 860px; }
.tool label { display: grid; gap: 6px; font-weight: 800; color: var(--text-strong); font-size: .9rem; }
.tool input { font: inherit; font-weight: 600; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text-strong); }
.tool input:focus { outline: 2px solid var(--brand); border-color: var(--brand-strong); }
.tool input[readonly] { background: var(--brand-soft); }
.tool__note { margin-top: 12px; }
.tool__result { margin-top: 18px; max-width: 860px; }
.tool__result ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.tool__big { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--text-strong); margin: 0; }

/* Billing (billing-plan task 6): status screens, Monthly / Yearly, history, usage bars. */
.bill-status { margin-bottom: 18px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line-strong); display: grid; gap: 6px; }
.bill-status--live { border-left-color: var(--brand); }
.bill-status--done { border-left-color: var(--up); }
.bill-status--alert { border-left-color: var(--down); background: #fdf3f3; }
.bill-status__headline { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-strong); }
.bill-status__text, .bill-status__meta { margin: 0; color: var(--muted); max-width: 72ch; }
.bill-status__meta a { font-weight: 800; }
.bill-chip--red { background: #fdecec; border-color: #f2b2b4; color: #8f1d22; }
.bill-stat--red { border-color: #f2b2b4; }
.bill-stat--warn { border-color: #f3cf8a; }
.bill-strip { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bill-strip a { font-weight: 800; }
.bill-choose { display: grid; gap: 12px; }
.bill-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); justify-self: start; }
.bill-switch__opt { position: relative; cursor: pointer; }
.bill-switch__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bill-switch__opt span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .92rem; color: var(--muted); white-space: nowrap; }
.bill-switch__opt input:checked + span { background: var(--card); color: var(--text-strong); box-shadow: var(--shadow-card); }
.bill-switch__opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.bill-badge { font-style: normal; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.bill-price { display: grid; gap: 2px; }
.bill-price[hidden] { display: none; }
.bill-price__main { font-size: 1.05rem; color: var(--text-strong); }
.bill-price__main s { color: var(--muted); font-weight: 600; margin-left: 4px; }
.bill-price__note { font-size: .9rem; color: var(--muted); }
.bill-verify { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; }
.bill-reminders { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.bill-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: .94rem; }
.bill-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: .94rem; }
.bill-facts dt { color: var(--muted); font-weight: 700; }
.bill-facts dd { margin: 0; color: var(--text-strong); overflow-wrap: anywhere; }
.bill-send { display: grid; gap: 6px; }
.bill-send + .bill-send { padding-top: 12px; border-top: 1px dashed var(--line); }
.bill-send__amount { font-size: 1.05rem; }
.dash-callout .bill-steps { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.dash-callout .bill-steps--stack { grid-template-columns: minmax(0, 1fr); }
.bill-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid #f3cf8a; }
.bill-steps b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: .8rem; }
.bill-steps span { display: grid; gap: 2px; font-size: .86rem; color: var(--muted); }
.bill-steps strong { color: var(--text-strong); }
.bill-progress { display: grid; gap: 6px; margin: 0 0 14px; }
.bill-progress__track { height: 10px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); overflow: hidden; }
.bill-progress__track span { display: block; height: 100%; width: var(--p); min-width: 6px; border-radius: inherit; background: var(--brand); }
.bill-payment { display: grid; gap: 2px; }
.bill-payment + .bill-payment { padding-top: 10px; border-top: 1px dashed var(--line); }
.bill-table-wrap { overflow-x: auto; }
.bill-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bill-table th, .bill-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.bill-table th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bill-table tr.is-alert td { background: #fdf3f3; }
@media (max-width: 640px) {
    .bill-table thead { display: none; }
    .bill-table, .bill-table tbody, .bill-table tr, .bill-table td { display: block; width: 100%; }
    .bill-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .bill-table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
    .bill-table td::before { content: attr(data-label); color: var(--muted); font-weight: 700; font-size: .8rem; }
    .bill-switch__opt span { padding: 8px 12px; }
}
.bill-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: 3px; height: 160px; padding-top: 8px; }
.bill-bars__bar { height: max(2px, var(--h)); border-radius: 4px 4px 0 0; background: var(--brand); }
.bill-bars__axis { display: flex; justify-content: space-between; }

/* Pricing: Monthly / Yearly on the Pro card (billing-plan task 11). */
.pc__billed { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pc__billed s { margin-left: 2px; }
.pc__offer { display: block; }
.pc__offer[hidden] { display: none; }
.pc__switch { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; padding: 3px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); width: max-content; max-width: 100%; }
.pc__switch label { position: relative; cursor: pointer; }
.pc__switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pc__switch label > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.pc__switch input:checked + span { background: var(--card); color: var(--text-strong); box-shadow: var(--shadow-card); }
.pc__switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc__badge { font-style: normal; font-size: .66rem; padding: 1px 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
/* Pictures in the docs guides (the exchange guide's steps): drawn on their own white card. */
.docs-prose img { display: block; max-width: 100%; height: auto; margin: 4px 0; border: 1px solid var(--line); border-radius: 14px; }

/* ---------- Product hero: one match on the socket ---------- */
.hero--product h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.2rem); }
.wire {
    background:
        radial-gradient(420px 180px at 50% -40px, rgba(245, 166, 35, .10), transparent 70%),
        linear-gradient(180deg, #152036, #0e1729);
    color: var(--on-ink);
    border-radius: 18px;
    border: 1px solid var(--ink-line-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 166, 35, .12);
    overflow: hidden;
}
.wire__head { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--ink-line); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-muted); }
.wire__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(5, 150, 105, .2); }
.wire__tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ink-line-strong); font-size: .66rem; letter-spacing: .08em; }
.wire__list { list-style: none; margin: 0; padding: 6px 18px; }
.wire__list li { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.wire__list li + li { border-top: 1px dashed var(--ink-line); }
.wire__when { font-family: var(--font-mono); font-size: .76rem; font-weight: 700; color: var(--on-ink-muted); padding-top: 2px; }
.wire__name { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand); }
.wire__list p { margin: 2px 0 6px; font-size: .86rem; color: #c9d3e1; line-height: 1.4; }
.wire__data { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--ink-900); border: 1px solid var(--ink-line); font-size: .76rem; color: #fff; }
.wire__win .wire__data { background: rgba(5, 150, 105, .16); border-color: rgba(5, 150, 105, .5); color: #6ee7b7; font-weight: 700; }
.wire__foot { padding: 12px 18px; border-top: 1px solid var(--ink-line); font-size: .82rem; color: var(--on-ink-muted); }
.wire__foot a { font-weight: 800; white-space: nowrap; }
.wire__names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wire__names code { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--ink-900); border: 1px solid var(--ink-line-strong); font-size: .76rem; color: var(--brand); }
.card--wide { grid-column: 1 / -1; }
