/* =============================================================================
   KOTOVA X · OVERVIEW PAGE (kotova.io/x, x/index.html) — xo-*
   -----------------------------------------------------------------------------
   Load order: /styles.css, /x/x.css (navbar + section bar, .xn-main offset),
   then this file. Built from the approved Design canvas (Main.dc.html), with
   the inline mockup styles turned into classes.

   Leak rules — this file is linked by /x only, but stays safe anyway:
     • every class is prefixed xo-; nothing styles bare elements, body or html;
     • :root only gains NEW custom properties (--xo-*), never redefines one;
     • site classes are reused only as script.js hooks, and only restyled
       under an xo- ancestor:
         .stat-value / .stat-inline [data-stat]  live counts (initLiveStats),
         .faq-accordion .faq-item .faq-question  single-open FAQ.

   Layout: mobile first. Breakpoints match the Kotova X navigation:
   phone < 600 · tablet 600–1023 · desktop ≥ 1024. Content max 1264px.

   Motion: only under prefers-reduced-motion: no-preference. Every animated
   element's STATIC style is its final state, so without motion the hero
   routing visual shows the result (winner gold, BEST/NEXT, result box).
   Nothing moves on its own for more than ~5 s (WCAG 2.2.2); the exchange
   tile's hub pulses only while the tile is hovered or focused.

   Sections
     0. Tokens
     1. Page primitives (wrap, sections, heads, text, buttons, links, badges)
     2. Hero + live counts
     3. Hero routing visual (figure) + its motion
     4. Directory (bento) tiles
     5. How a swap works
     6. Why Kotova X (feature cards)
     7. Liquidity sources
     8. Two audiences
     9. Trust strip
    10. FAQ
    11. Closing CTA
   ========================================================================== */


/* =============================================================================
   0. TOKENS
   ========================================================================== */

:root {
    --xo-canvas: #0a0f1c;
    --xo-band: #111827;
    --xo-surface: #151c2c;
    --xo-surface-2: #1b2335;
    --xo-surface-3: #222c42;
    --xo-surface-hover: #172036;
    --xo-navy: #1b2b4b;
    --xo-gold: #c5a572;
    --xo-gold-100: #e8d5b5;
    --xo-gold-200: #dcc196;
    --xo-ink: #f5f7fa;
    --xo-ink-2: #c3cbd8;
    --xo-ink-3: #8b95a5;
    --xo-ink-4: #5a6478;
    --xo-success: #00d4aa;
    --xo-info: #4fa8ff;
    --xo-line: rgba(255, 255, 255, 0.06);
    --xo-line-2: rgba(255, 255, 255, 0.10);
    --xo-line-gold: rgba(197, 165, 114, 0.22);
    --xo-grad: linear-gradient(135deg, #c5a572 0%, #e8d5b5 50%, #c5a572 100%);
    --xo-display: 'Space Grotesk', 'Inter', sans-serif;
    --xo-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --xo-pad: clamp(16px, 4vw, 32px);
    --xo-sec-y: clamp(64px, 9vw, 112px);
    --xo-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    --xo-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* Tile background as a typed property, so the hover can transition it even
   where it sits under a gradient layer. Browsers without @property just swap. */
@property --xo-tile-bg {
    syntax: '<color>';
    inherits: true;
    initial-value: #151c2c;
}


/* =============================================================================
   1. PAGE PRIMITIVES
   ========================================================================== */

.xo-wrap {
    width: 100%;
    max-width: 1264px;
    margin: 0 auto;
    padding: 0 var(--xo-pad);
}

.xo-sec {
    padding: var(--xo-sec-y) 0;
}

.xo-sec--band {
    background: var(--xo-band);
    border-top: 1px solid var(--xo-line);
    border-bottom: 1px solid var(--xo-line);
}

.xo-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
}

.xo-stack--center {
    align-items: center;
}

.xo-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    min-width: 0;
}

.xo-head--center {
    align-items: center;
    text-align: center;
}

.xo-eyebrow {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--xo-gold);
}

.xo-h1,
.xo-h2,
.xo-h3 {
    margin: 0;
    font-family: var(--xo-display);
    color: var(--xo-ink);
}

.xo-h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.xo-h3 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
}

.xo-h3--lg {
    font-size: clamp(22px, 2.2vw, 26px);
    line-height: 1.2;
}

.xo-h3--sm {
    font-size: 20px;
    line-height: 26px;
}

.xo-h3--xl {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 700;
}

.xo-lead {
    max-width: 640px;
    font-size: 16px;
    line-height: 26px;
    color: var(--xo-ink-2);
}

.xo-gold {
    background: var(--xo-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.xo-gold-text {
    color: var(--xo-gold);
}

.xo-mono {
    font-family: var(--xo-mono);
}

/* Same rule as the /x/api page: English copy reads badly with automatic
   hyphenation ("or-der"); other languages keep the site-wide hyphens:auto
   for their long compounds. script.js sets <html lang> before translating. */
html[lang="en"] :is(.xo-hero, .xo-sec, .xo-trust, .xo-closing) :is(h1, h2, h3, p, li, span, a, small, figcaption) {
    -webkit-hyphens: manual;
    hyphens: manual;
}

.xo-h1,
.xo-h2,
.xo-h3 {
    text-wrap: balance;
}

/* Auto-hyphenation (de, it, es, fr, ru) only for long words: it is there for
   compounds like "Liquiditätsanbieter", and was splitting the brand and the
   domain ("Ko-tova", "d'app.koto-va.io") in narrow cards. Shorter words fit
   every column at these sizes. Safari has no hyphenate-limit-chars; its own
   before/after limits keep a 6-letter word like "Kotova" whole. Lists never
   need it (their longest words fit the narrowest column). */
:is(.xo-hero, .xo-sec, .xo-trust, .xo-closing) :is(h1, h2, h3, p, li, span, a, small, figcaption) {
    hyphenate-limit-chars: 16 6 6;
    -webkit-hyphenate-limit-before: 6;
    -webkit-hyphenate-limit-after: 6;
}

.xo-minichecks li,
.xo-minichecks li * {
    -webkit-hyphens: manual;
    hyphens: manual;
}

/* Wide lead paragraphs never need hyphens, and auto-hyphenation would split
   the brand ("Ko-tova") in German; narrow cards keep the site default. */
.xo-lead,
.xo-hero-lead {
    -webkit-hyphens: manual;
    hyphens: manual;
}

.xo-lead,
.xo-hero-lead,
.xo-tile-text p,
.xo-step p,
.xo-feature p,
.xo-aud-text p,
.xo-faq-a p,
.xo-cta-text p,
.xo-minichecks li,
.xo-route-cap {
    text-wrap: pretty;
}

.xo-head--center .xo-lead,
.xo-cta-text p {
    text-wrap: balance;
}

/* Headings never auto-hyphenate (German split "Anbie-ter" across a balanced
   two-line h3); every heading word fits its narrowest box, so the site's
   break-word fallback never has to act. */
:is(.xo-h1, .xo-h2, .xo-h3),
:is(.xo-h1, .xo-h2, .xo-h3) * {
    -webkit-hyphens: manual;
    hyphens: manual;
}

.xo-dim {
    font-weight: 400;
    color: var(--xo-ink-3);
}

/* Focus: one gold ring for everything interactive on the page body. */
.xo-hero :focus-visible,
.xo-sec :focus-visible,
.xo-trust :focus-visible,
.xo-closing :focus-visible {
    outline: 2px solid var(--xo-gold);
    outline-offset: 3px;
}

/* Buttons (own classes: the site's .btn lifts on hover, the mockup glows) */
.xo-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.xo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--xo-grad);
    color: var(--xo-canvas);
    font-family: inherit;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.xo-btn svg {
    flex: none;
}

.xo-btn:hover {
    box-shadow: 0 4px 20px rgba(197, 165, 114, 0.3);
}

/* Phones: a wrapped button pair reads as a deliberate stack, not a leftover. */
@media (max-width: 599.98px) {
    .xo-ctas .xo-btn {
        flex: 1 1 auto;
    }
}

.xo-btn--ghost {
    background: transparent;
    border-color: rgba(197, 165, 114, 0.45);
    color: var(--xo-ink);
}

.xo-btn--ghost:hover {
    box-shadow: none;
    border-color: rgba(197, 165, 114, 0.7);
    background-color: rgba(197, 165, 114, 0.08);
    color: var(--xo-gold-100);
}

.xo-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    color: var(--xo-gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.xo-link:hover {
    color: var(--xo-gold-100);
}

.xo-link svg {
    flex: none;
}

.xo-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--xo-ink-2);
    text-align: center;
}

.xo-inline-cta--center {
    gap: 0 16px;
}

/* Badges: 12–15 % tint + 25–30 % border of the same hue */
.xo-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    white-space: nowrap;
}

.xo-badge--live {
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.12);
    color: var(--xo-success);
}

.xo-badge {
    height: 22px;
    padding: 0 9px;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.xo-badge--live {
    height: 20px;
    padding: 0 8px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
}

.xo-dex {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    border: 1px solid rgba(79, 168, 255, 0.3);
    background: rgba(79, 168, 255, 0.12);
    color: var(--xo-info);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}


/* =============================================================================
   2. HERO + LIVE COUNTS
   ========================================================================== */

.xo-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 104px) 0 clamp(56px, 8vw, 112px);
    background:
        radial-gradient(820px 520px at 82% 18%, rgba(197, 165, 114, 0.10), rgba(197, 165, 114, 0) 70%),
        radial-gradient(1000px 640px at 6% -12%, rgba(27, 43, 75, 0.75), rgba(27, 43, 75, 0) 70%),
        var(--xo-canvas);
}

/* Faint grid, masked to the visual's side */
.xo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 38%, #000 15%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 65% at 72% 38%, #000 15%, transparent 72%);
}

.xo-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5vw, 64px);
}

.xo-hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.xo-tagrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.xo-kicker {
    font-size: 13px;
    line-height: 20px;
    color: var(--xo-ink-3);
}

.xo-hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xo-h1 {
    font-size: clamp(34px, 4.6vw + 14px, 52px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.xo-hero-lead {
    max-width: 520px;
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.6;
    color: var(--xo-ink-2);
}

.xo-checks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    line-height: 20px;
    color: var(--xo-ink-2);
}

.xo-checks li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.xo-checks svg {
    flex: none;
    color: var(--xo-gold);
}

/* Live counts: .stat-value [data-stat] = script.js live value + count-up.
   Styled like the kotova.io homepage hero stats (owner): no card, no border,
   no ground; three equal columns, centred number over an uppercase label,
   short hairline dividers between them. Same max width as the routing figure,
   so on tablets (one column) both end on the same line. */
.xo-stats {
    max-width: 640px;
    /* A little more air above than the hero column's 28px gap (owner). */
    margin-top: 16px;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.xo-stat {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px clamp(8px, 1.6vw, 16px);
    text-align: center;
}

.xo-stat + .xo-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 50px;
    transform: translateY(-50%);
    background: var(--xo-line-2);
}

.xo-stat .stat-value {
    margin: 0;
    font-family: var(--xo-display);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--xo-ink);
}

/* Failsafe: if script.js never reaches initLiveStats, show the fallback after
   4 s instead of an empty cell (the live path clears .is-pending within 2 s). */
.xo-stat .stat-value.is-pending {
    animation: xo-pending-failsafe 0s linear 4s forwards;
}

@keyframes xo-pending-failsafe {
    to { visibility: visible; }
}

.xo-stat-label {
    max-width: 100%;
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--xo-ink-3);
    overflow-wrap: break-word;
}

/* Narrow phones: a little less tracking so "BLOCKCHAINS" and the Russian
   labels keep to one line in a third of the row. */
@media (max-width: 400px) {
    .xo-stat-label {
        font-size: 12px;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 359.98px) {
    .xo-stat {
        padding-left: 4px;
        padding-right: 4px;
    }

    .xo-stat-label {
        font-size: 11px;
        letter-spacing: 0.02em;
    }
}

@media (min-width: 1024px) {
    .xo-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    .xo-h1 {
        font-size: clamp(44px, 4.6vw, 58px);
    }
}


/* =============================================================================
   3. HERO ROUTING VISUAL
   One order (BTC -> USDT on Ethereum) fans out to the nine sources; the middle
   row is the winner, joined by the straight gold line. The fan SVG is 390px
   tall = 9 rows x 38px + 8 gaps x 6px, so lines end on the row centres.
   ========================================================================== */

.xo-route {
    container-type: inline-size;
    width: 100%;
    max-width: 640px;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--xo-line-gold);
    background: var(--xo-surface);
    box-shadow: 0 48px 96px -48px rgba(0, 0, 0, 0.8), 0 0 120px -40px rgba(197, 165, 114, 0.25);
}

.xo-route-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--xo-line);
    background: var(--xo-band);
}

.xo-route-dots {
    flex: none;
    display: flex;
    gap: 6px;
}

/* Balances the three dots on the right, so the URL pill sits in the middle. */
.xo-route-bar::after {
    content: "";
    flex: none;
    width: 39px;                             /* 3 x 9px dots + 2 x 6px gaps */
}

.xo-route-dots span {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--xo-surface-3);
}

.xo-route-url {
    min-width: 0;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid var(--xo-line);
    background: var(--xo-canvas);
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-3);
    white-space: nowrap;
}

.xo-route-url svg {
    flex: none;
}

.xo-route-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(12px, 3vw, 24px);
}

.xo-route-pair {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--xo-line);
    background: var(--xo-band);
}

.xo-route-side {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xo-route-side--to {
    /* The receive side keeps its full width ("USDT · ERC20" never ellipsed);
       on narrow phones the send side gives way and its label wraps
       (Vous / envoyez, Вы / отправляете). */
    flex: 1 0 auto;
    justify-content: flex-end;
    text-align: right;
}

.xo-route-side img {
    flex: none;
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 999px;
}

.xo-route-side-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xo-route-side-text small {
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-3);
}

.xo-route-side-text .xo-mono {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    color: var(--xo-ink);
}

.xo-route-arrow {
    flex: none;
    color: var(--xo-gold);
}

.xo-route-fan {
    display: grid;
    grid-template-columns: clamp(32px, 8vw, 44px) clamp(28px, 8.5vw, 104px) minmax(0, 1fr);
    /* the fan widens with the FIGURE, not the viewport (the two-column hero at
       1024px has a narrow figure while 8.5vw is wide); the vw line = fallback */
    grid-template-columns: clamp(32px, 8vw, 44px) clamp(28px, 30cqi - 80px, 104px) minmax(0, 1fr);
    align-items: center;
}

.xo-route-hub {
    display: flex;
    justify-content: center;
}

.xo-route-orb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 8vw, 44px);
    height: clamp(32px, 8vw, 44px);
    border-radius: 12px;
    border: 1px solid rgba(197, 165, 114, 0.5);
    background: var(--xo-navy);
}

/* The logo IS the tile (icon.svg brings its own navy gradient), so it fills
   the frame; its corners follow the frame's radius minus the 1px border. */
.xo-route-orb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 11px;
}

.xo-route-lines {
    display: block;
    width: 100%;
    height: 390px;
    overflow: visible;
}

.xo-ln {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.25;
    vector-effect: non-scaling-stroke;
}

.xo-ln--none {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-dasharray: 3 4;
}

.xo-draw {
    fill: none;
    stroke: var(--xo-gold-100);
    stroke-width: 2;
    stroke-dasharray: 1;
}

.xo-draw--glow {
    stroke: rgba(197, 165, 114, 0.28);
    stroke-width: 7;
}

.xo-spark {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 0.18 2;
    stroke-dashoffset: 0.18;
    opacity: 0;
}

.xo-route-rows {
    list-style: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 clamp(7px, 2vw, 12px);
    border-radius: 10px;
    border: 1px solid var(--xo-line);
    background: var(--xo-surface-2);
}

.xo-row img {
    flex: none;
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.xo-row-name,
.xo-row-name-t {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xo-row-name {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 18px;
    color: var(--xo-ink-2);
}

.xo-row-name--dex {
    display: flex;
    align-items: center;
    gap: 5px;
}

.xo-row-q {
    flex: none;
    font-size: 13px;
    line-height: 18px;
    color: var(--xo-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* The winner: its static look IS the end state of the xo-win animation. */
.xo-row--win {
    gap: 6px;
    border-color: rgba(197, 165, 114, 0.55);
    background: rgba(197, 165, 114, 0.13);
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.08), 0 12px 32px -12px rgba(197, 165, 114, 0.5);
}

.xo-row--win .xo-row-name {
    font-weight: 600;
    color: var(--xo-ink);
}

.xo-row--win .xo-row-q {
    font-weight: 500;
    color: var(--xo-gold-100);
}

.xo-row--none {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(27, 35, 53, 0.5);
}

.xo-row--none img {
    opacity: 0.6;
}

.xo-row--none .xo-row-name,
.xo-row--none .xo-row-q {
    color: var(--xo-ink-3);
}

.xo-row--none .xo-row-q {
    font-size: 12px;
    line-height: 16px;
}

/* Flags (BEST / NEXT) sit LEFT of the amount, so every amount ends on the same
   right edge: one column of figures. Visual order only; the markup keeps
   name, amount, flag (a screen reader hears "FixedFloat 3,376.20 NEXT"). */
.xo-row .xo-flag {
    order: 1;
}

.xo-row .xo-row-q {
    order: 2;
}

.xo-flag {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.xo-flag--next {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--xo-ink-3);
}

.xo-flag--best {
    background: var(--xo-grad);
    color: var(--xo-canvas);
    font-weight: 700;
}

.xo-route-result {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(197, 165, 114, 0.35);
    background: linear-gradient(135deg, rgba(197, 165, 114, 0.16) 0%, rgba(197, 165, 114, 0.04) 100%);
}

.xo-route-result-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xo-route-amount {
    font-family: var(--xo-display);
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--xo-gold-100);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.xo-route-amount span {
    font-size: 0.6em;
    font-weight: 600;
    color: var(--xo-gold);
}

.xo-route-cap {
    padding: 12px clamp(12px, 3vw, 24px);
    border-top: 1px solid var(--xo-line);
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-3);
}

/* -- Hero card: two clicks to the app (x/overview.js) --
   The card is covered by one link (.xo-launch). First click: .is-armed, the
   content flies out (rows to the right, pair up, result down, all blurring)
   and the stage appears in the middle: the Kotova X mark with two rings
   spreading out, "Click to start a swap" in a gold shimmer, app.kotova.io.
   Second click: the link. .is-back replays the content in. The card keeps its
   size the whole time (the content stays in place, only invisible). */
.xo-route {
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.xo-route:hover,
.xo-route.is-armed {
    border-color: rgba(197, 165, 114, 0.45);
}

.xo-launch {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.xo-launch:focus {
    outline: none;
}

.xo-launch:focus-visible {
    outline: 2px solid var(--xo-gold);
    outline-offset: -3px;
}

.xo-launch-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 100%;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.xo-route.is-armed .xo-launch-stage {
    opacity: 1;
}

.xo-launch-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    border: 1px solid rgba(197, 165, 114, 0.55);
    background: var(--xo-navy);
    box-shadow: 0 0 56px rgba(197, 165, 114, 0.28);
}

.xo-launch-orb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 21px;
}

.xo-launch-ring {
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    border: 1px solid rgba(197, 165, 114, 0.6);
    opacity: 0;
    pointer-events: none;
}

.xo-launch-text {
    max-width: 16ch;
    font-family: var(--xo-display);
    font-size: clamp(22px, 1.6vw + 14px, 32px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-wrap: balance;
    color: var(--xo-gold-100);
    background: linear-gradient(100deg, #c5a572 0%, #c5a572 38%, #f5eddc 50%, #c5a572 62%, #c5a572 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xo-launch-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--xo-mono);
    font-size: 13px;
    line-height: 18px;
    color: var(--xo-ink-3);
}

.xo-launch-url svg {
    flex: none;
}

@media (prefers-reduced-motion: no-preference) {
    .xo-route.is-armed .xo-route-pair {
        animation: xo-out-up 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    .xo-route.is-armed .xo-route-hub,
    .xo-route.is-armed .xo-route-lines {
        animation: xo-out-fade 0.3s ease-in 0.05s both;
    }

    .xo-route.is-armed .xo-row {
        animation: xo-out-row 0.36s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    .xo-route.is-armed .xo-row:nth-child(2) { animation-delay: 0.025s; }
    .xo-route.is-armed .xo-row:nth-child(3) { animation-delay: 0.05s; }
    .xo-route.is-armed .xo-row:nth-child(4) { animation-delay: 0.075s; }
    .xo-route.is-armed .xo-row:nth-child(5) { animation-delay: 0.1s; }
    .xo-route.is-armed .xo-row:nth-child(6) { animation-delay: 0.125s; }
    .xo-route.is-armed .xo-row:nth-child(7) { animation-delay: 0.15s; }
    .xo-route.is-armed .xo-row:nth-child(8) { animation-delay: 0.175s; }
    .xo-route.is-armed .xo-row:nth-child(9) { animation-delay: 0.2s; }

    .xo-route.is-armed .xo-route-result {
        animation: xo-out-down 0.38s cubic-bezier(0.4, 0, 0.2, 1) 0.12s both;
    }

    .xo-route.is-armed .xo-launch-stage {
        animation: xo-stage-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
    }

    .xo-route.is-armed .xo-launch-orb {
        animation: xo-orb-pop 0.65s cubic-bezier(0.2, 1.45, 0.4, 1) 0.3s both;
    }

    .xo-route.is-armed .xo-launch-ring {
        animation: xo-launch-ring 2.2s cubic-bezier(0.2, 0.6, 0.3, 1) 0.85s infinite;
    }

    .xo-route.is-armed .xo-launch-ring--2 {
        animation-delay: 1.95s;
    }

    .xo-route.is-armed .xo-launch-text {
        animation: xo-launch-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both,
                   xo-shimmer 2.8s linear 0.9s infinite;
    }

    .xo-route.is-armed .xo-launch-url {
        animation: xo-launch-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.58s both;
    }

    .xo-route.is-armed .xo-launch-url svg {
        animation: xo-nudge 1.4s ease-in-out 1.2s infinite;
    }

    .xo-route.is-back .xo-route-pair,
    .xo-route.is-back .xo-route-hub,
    .xo-route.is-back .xo-route-lines,
    .xo-route.is-back .xo-row,
    .xo-route.is-back .xo-route-result {
        animation: xo-back 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .xo-route.is-back .xo-row:nth-child(2) { animation-delay: 0.02s; }
    .xo-route.is-back .xo-row:nth-child(3) { animation-delay: 0.04s; }
    .xo-route.is-back .xo-row:nth-child(4) { animation-delay: 0.06s; }
    .xo-route.is-back .xo-row:nth-child(5) { animation-delay: 0.08s; }
    .xo-route.is-back .xo-row:nth-child(6) { animation-delay: 0.1s; }
    .xo-route.is-back .xo-row:nth-child(7) { animation-delay: 0.12s; }
    .xo-route.is-back .xo-row:nth-child(8) { animation-delay: 0.14s; }
    .xo-route.is-back .xo-row:nth-child(9) { animation-delay: 0.16s; }
    .xo-route.is-back .xo-route-result { animation-delay: 0.12s; }
}

/* Reduced motion: a plain cross-fade, no movement. */
@media (prefers-reduced-motion: reduce) {
    .xo-route-body {
        transition: opacity 0.2s ease;
    }

    .xo-route.is-armed .xo-route-body {
        opacity: 0;
    }

    .xo-launch-stage {
        transition: opacity 0.2s ease 0.1s;
    }
}

@keyframes xo-out-up {
    to { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
}

@keyframes xo-out-down {
    to { opacity: 0; transform: translateY(14px); filter: blur(6px); }
}

@keyframes xo-out-row {
    to { opacity: 0; transform: translateX(32px); filter: blur(6px); }
}

@keyframes xo-out-fade {
    to { opacity: 0; transform: scale(0.85); }
}

@keyframes xo-back {
    from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes xo-stage-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes xo-orb-pop {
    from { opacity: 0; transform: scale(0.4) rotate(-12deg); }
    to { opacity: 1; transform: none; }
}

@keyframes xo-launch-ring {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

@keyframes xo-launch-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes xo-shimmer {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

@keyframes xo-nudge {
    0%, 100% { transform: none; }
    50% { transform: translateX(3px); }
}

/* Narrow phones (iPhone SE 1st gen, 320px): give names and amounts room. */
@media (max-width: 379.98px) {
    .xo-route-dots,
    .xo-route-bar::after {
        display: none;
    }

    .xo-route-pair {
        gap: 4px;
        padding: 10px 8px;
    }

    .xo-route-side {
        gap: 6px;
    }

    .xo-route-side img {
        width: 22px;
        height: 22px;
    }

    .xo-route-side-text .xo-mono {
        font-size: 12px;
    }

    .xo-row,
    .xo-row--win {
        gap: 4px;
        padding: 0 7px;
    }

    .xo-row img {
        margin-right: 2px;
    }

    .xo-row-name,
    .xo-row-q {
        font-size: 12px;
    }

    .xo-row--win .xo-dex {
        display: none;
    }
}

/* Flags: words where the rows have room, otherwise BEST becomes a gold check
   and NEXT goes (the fallback is named in the result box below). Decided by
   the rows' own width, which is narrow on phones AND in the two-column hero
   at 1024-1060px. The longest words (MEILLEUR, MIGLIORE, BESTES) need ~300px
   rows, English (BEST, NEXT) ~270px. font-size 0 keeps the word for screen
   readers. */
.xo-route-rows {
    container: xorows / inline-size;
}

@container xorows (max-width: 309px) {
    :root:not([lang="en"]) .xo-flag--next {
        display: none;
    }

    :root:not([lang="en"]) .xo-flag--best {
        justify-content: center;
        width: 20px;
        padding: 0;
        font-size: 0;
    }

    :root:not([lang="en"]) .xo-flag--best::before {
        content: "";
        width: 10px;
        height: 10px;
        background: var(--xo-canvas);
        -webkit-mask: var(--xo-check) center / 10px 10px no-repeat;
        mask: var(--xo-check) center / 10px 10px no-repeat;
    }
}

@container xorows (max-width: 275px) {
    .xo-flag--next {
        display: none;
    }

    .xo-flag--best {
        justify-content: center;
        width: 20px;
        padding: 0;
        font-size: 0;
    }

    .xo-flag--best::before {
        content: "";
        width: 10px;
        height: 10px;
        background: var(--xo-canvas);
        -webkit-mask: var(--xo-check) center / 10px 10px no-repeat;
        mask: var(--xo-check) center / 10px 10px no-repeat;
    }
}

@media (min-width: 1024px) {
    .xo-route {
        max-width: none;
    }
}

/* Motion: replays once how the result came about. Delays are per element so
   quotes "arrive" out of order, the way real sources answer. */
@media (prefers-reduced-motion: no-preference) {
    .xo-route .xo-anim-rise {
        animation: xo-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .xo-route .xo-route-pair { animation-delay: 0.1s; }
    .xo-route .xo-route-hub { animation-delay: 0.3s; }
    .xo-route .xo-route-result { animation-delay: 2.45s; }

    .xo-route .xo-ln {
        animation: xo-fade 0.5s ease-out both;
    }

    .xo-route .xo-ln:nth-child(1) { animation-delay: 0.40s; }
    .xo-route .xo-ln:nth-child(2) { animation-delay: 0.44s; }
    .xo-route .xo-ln:nth-child(3) { animation-delay: 0.48s; }
    .xo-route .xo-ln:nth-child(4) { animation-delay: 0.52s; }
    .xo-route .xo-ln:nth-child(5) { animation-delay: 0.60s; }
    .xo-route .xo-ln:nth-child(6) { animation-delay: 0.64s; }
    .xo-route .xo-ln:nth-child(7) { animation-delay: 0.68s; }
    .xo-route .xo-ln:nth-child(8) { animation-delay: 0.72s; }

    .xo-route .xo-row {
        animation: xo-slide 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .xo-route .xo-row:nth-child(1) { animation-delay: 0.55s; }
    .xo-route .xo-row:nth-child(2) { animation-delay: 0.60s; }
    .xo-route .xo-row:nth-child(3) { animation-delay: 0.65s; }
    .xo-route .xo-row:nth-child(4) { animation-delay: 0.70s; }
    .xo-route .xo-row:nth-child(5) { animation-delay: 0.75s; }
    .xo-route .xo-row:nth-child(6) { animation-delay: 0.80s; }
    .xo-route .xo-row:nth-child(7) { animation-delay: 0.85s; }
    .xo-route .xo-row:nth-child(8) { animation-delay: 0.90s; }
    .xo-route .xo-row:nth-child(9) { animation-delay: 0.95s; }

    /* the winner keeps its slot delay (0.75s) but lights up gold at the end */
    .xo-route .xo-row--win {
        animation-name: xo-win;
        animation-duration: 1.9s;
        animation-timing-function: ease-out;
    }

    .xo-route .xo-row-q {
        animation: xo-fade 0.35s ease-out both;
    }

    .xo-route .xo-row:nth-child(1) .xo-row-q { animation-delay: 1.12s; }
    .xo-route .xo-row:nth-child(2) .xo-row-q { animation-delay: 1.40s; }
    .xo-route .xo-row:nth-child(3) .xo-row-q { animation-delay: 1.05s; }
    .xo-route .xo-row:nth-child(4) .xo-row-q { animation-delay: 1.26s; }
    .xo-route .xo-row:nth-child(5) .xo-row-q { animation-delay: 1.33s; }
    .xo-route .xo-row:nth-child(6) .xo-row-q { animation-delay: 1.54s; }
    .xo-route .xo-row:nth-child(7) .xo-row-q { animation-delay: 1.19s; }
    .xo-route .xo-row:nth-child(8) .xo-row-q { animation-delay: 1.47s; }
    .xo-route .xo-row:nth-child(9) .xo-row-q { animation-delay: 1.62s; }

    .xo-route .xo-flag {
        animation: xo-pop 0.4s cubic-bezier(0.2, 1.5, 0.4, 1) both;
    }

    .xo-route .xo-flag--best { animation-delay: 2.35s; }
    .xo-route .xo-flag--next { animation-delay: 2.45s; }

    .xo-route .xo-draw {
        animation: xo-draw 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.85s both;
    }

    /* One glint along the winning line, one pulse of the hub: then still.
       No fill mode, so before and after they sit at their static style. */
    .xo-route .xo-spark {
        animation: xo-spark 1.6s ease-in-out 2.6s 1;
    }

    .xo-route .xo-route-orb {
        animation: xo-orb 2.4s ease-out 2.4s 1;
    }
}

@keyframes xo-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes xo-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes xo-slide {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: none; }
}

@keyframes xo-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

@keyframes xo-win {
    0% {
        opacity: 0;
        transform: translateX(-8px);
        background-color: #1b2335;
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 0 0 0 rgba(197, 165, 114, 0), 0 0 0 0 rgba(197, 165, 114, 0);
    }
    24% {
        opacity: 1;
        transform: none;
        background-color: #1b2335;
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 0 0 0 rgba(197, 165, 114, 0), 0 0 0 0 rgba(197, 165, 114, 0);
    }
    70% {
        background-color: #1b2335;
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow: 0 0 0 0 rgba(197, 165, 114, 0), 0 0 0 0 rgba(197, 165, 114, 0);
    }
    100% {
        opacity: 1;
        transform: none;
        background-color: rgba(197, 165, 114, 0.13);
        border-color: rgba(197, 165, 114, 0.55);
        box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.08), 0 12px 32px -12px rgba(197, 165, 114, 0.5);
    }
}

@keyframes xo-pop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: none; }
}

@keyframes xo-spark {
    0% { stroke-dashoffset: 0.2; opacity: 1; }
    70% { stroke-dashoffset: -1; opacity: 1; }
    100% { stroke-dashoffset: -1; opacity: 0; }
}

@keyframes xo-orb {
    0% { box-shadow: 0 0 0 0 rgba(197, 165, 114, 0.45); }
    70%, 100% { box-shadow: 0 0 0 12px rgba(197, 165, 114, 0); }
}


/* =============================================================================
   4. DIRECTORY (BENTO)
   phone: 1 column · tablet: 2 (wide tiles and Docs span both) ·
   desktop: 6 (wide = 4, narrow = 2). Each tile is one <a>; its accessible name
   is title + call to action (aria-labelledby), the text is its description.
   ========================================================================== */

.xo-dir-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 48px;
}

.xo-dir-head .xo-head {
    flex: 1 1 420px;
}

.xo-dir-intro {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 460px;
}

.xo-bento {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.xo-tile {
    --xo-tile-bg: var(--xo-surface);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(20px, 2.4vw, 28px);
    border-radius: 20px;
    border: 1px solid var(--xo-line);
    background: var(--xo-tile-bg);
    color: var(--xo-ink);
    text-decoration: none;
    transition: border-color 0.2s ease, --xo-tile-bg 0.2s ease;
}

.xo-tile:hover {
    --xo-tile-bg: var(--xo-surface-hover);
    border-color: rgba(197, 165, 114, 0.45);
}

.xo-tile--gold {
    border-color: var(--xo-line-gold);
}

.xo-tile--wide {
    container: xotile / inline-size;
}

/* Wide tiles (Swap app, API) decide their layout by their OWN width, not the
   viewport's: narrow = one column with the visual above the call to action
   (the body box dissolves so its parts can be reordered), wide = text column
   beside the visual. */
.xo-tile-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xo-tile--wide .xo-tile-body {
    display: contents;
}

.xo-tile--wide .xo-swapmock,
.xo-tile--wide .xo-code {
    order: 1;
}

.xo-tile--wide .xo-go {
    order: 2;
}

@container xotile (min-width: 560px) {
    .xo-tile-inner {
        flex-direction: row;
        align-items: stretch;
        gap: 24px;
    }

    .xo-tile--wide .xo-tile-body {
        display: flex;
    }

    .xo-tile--wide .xo-go {
        order: 0;
    }

    .xo-tile--wide .xo-swapmock {
        flex: 1 1 300px;
    }

    .xo-tile--wide .xo-code {
        flex: 1.6 1 340px;
    }
}

.xo-tile--swap {
    background: radial-gradient(520px 320px at 100% 100%, rgba(197, 165, 114, 0.10), rgba(197, 165, 114, 0) 70%), var(--xo-tile-bg);
}

.xo-tile--api {
    background: radial-gradient(520px 320px at 100% 0%, rgba(27, 43, 75, 0.8), rgba(27, 43, 75, 0) 70%), var(--xo-tile-bg);
}

.xo-tile-body {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xo-tile-body--api {
    flex-basis: 220px;
}

.xo-tile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.xo-ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(197, 165, 114, 0.25);
    background: rgba(197, 165, 114, 0.10);
    color: var(--xo-gold);
}

.xo-tile-label {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--xo-ink-3);
}

.xo-tile-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xo-tile-text p {
    font-size: 14px;
    line-height: 22px;
    color: var(--xo-ink-2);
}

/* Text flow, not flex: when a long label wraps ("Voraussetzungen und
   Kaution" in a 600px tablet tile) the arrow follows its last word instead of
   sitting at the far edge of the tile. */
.xo-go {
    margin-top: auto;
    align-self: flex-start;
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--xo-gold);
    transition: color 0.15s ease;
}

.xo-arr {
    display: inline-block;
    margin-left: 2px;
    vertical-align: -3px;
    transition: transform 0.2s ease;
}

.xo-tile:hover .xo-go {
    color: var(--xo-gold-100);
}

.xo-tile:hover .xo-arr {
    transform: translate(2px, -2px);
}

.xo-tile:focus-visible {
    outline-offset: 4px;
}

/* -- Swap app mock -- */
.xo-swapmock {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--xo-line);
    background: var(--xo-band);
}

.xo-swapmock-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--xo-surface-2);
}

.xo-swapmock-field img {
    flex: none;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 999px;
}

.xo-swapmock-field > svg {
    flex: none;
    color: var(--xo-ink-3);
}

.xo-swapmock-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.xo-swapmock-text small {
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-3);
}

.xo-swapmock-text > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    color: var(--xo-ink);
}

.xo-swapmock-flip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xo-swapmock-flip > span:not(.xo-swapmock-flipbtn) {
    flex: 1 1 auto;
    height: 1px;
    background: var(--xo-line);
}

.xo-swapmock-flipbtn {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(197, 165, 114, 0.35);
    background: var(--xo-surface);
    color: var(--xo-gold);
}

.xo-swapmock-opts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
}

.xo-seg {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--xo-line);
    background: var(--xo-surface-2);
}

.xo-seg > span {
    min-width: 0;
    padding: 4px 12px;
    overflow: hidden;
    border-radius: 999px;
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-3);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.xo-seg > .is-on {
    font-weight: 600;
    background: rgba(197, 165, 114, 0.16);
    color: var(--xo-gold-100);
}

.xo-seg--lg {
    border-color: rgba(255, 255, 255, 0.08);
}

.xo-seg--lg > span {
    padding: 6px 16px;
    font-size: 13px;
}

/* 320-379px phones: long rate words (Фиксированный / Плавающий) */
@media (max-width: 379.98px) {
    .xo-seg > span {
        padding: 4px 8px;
    }

    .xo-seg--lg > span {
        padding: 6px 8px;
        font-size: 12px;
    }
}

.xo-swapmock-dex {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--xo-ink-2);
}

.xo-switch {
    position: relative;
    flex: none;
    display: block;
    width: 30px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid var(--xo-line-2);
    background: var(--xo-surface-3);
}

.xo-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--xo-ink-3);
}

.xo-switch--on {
    width: 40px;
    height: 24px;
    border: 0;
    background: var(--xo-grad);
}

.xo-switch--on::after {
    top: 3px;
    left: auto;
    right: 3px;
    width: 18px;
    height: 18px;
    background: var(--xo-canvas);
}

.xo-swapmock-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 10px;
    background: var(--xo-grad);
    color: var(--xo-canvas);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

/* -- Assets: token wall -- */
.xo-coins {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.xo-coins li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--xo-surface-2);
}

/* No round clip: the TRX logo fills its square to the corners (the other
   coin logos are round artwork anyway). */
.xo-coins img {
    display: block;
    width: 28px;
    height: 28px;
}

.xo-coins span {
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-3);
}

/* -- Guides: pair chips (sized so two fit per row in the narrowest desktop
   tile, 258px at 1024; below ~250px the coin icons drop so it stays two) -- */
.xo-pairs {
    container-type: inline-size;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.xo-pairs li {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* also between "BTC", the arrow and "USDT" (flex items) */
    height: 34px;
    padding: 0 10px 0 5px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--xo-surface-2);
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-2);
    white-space: nowrap;
}

.xo-pair-ic {
    display: grid;
    grid-template-columns: 12px 20px;
    align-items: center;
    margin-right: 2px;
}

.xo-pair-arr {
    color: var(--xo-ink-3);
}

@container (max-width: 251px) {
    .xo-pair-ic {
        display: none;
    }

    .xo-pairs li {
        padding: 0 10px;
    }
}

.xo-pair-ic img {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 999px;
}

.xo-pair-ic img + img {
    box-shadow: 0 0 0 2px var(--xo-surface-2);
}

/* TRX's artwork reaches the corners of its square, so a round clip cuts its
   tips: inset it inside the circle instead (the pair icons stay round). */
.xo-pair-ic img[src$="/TRX.svg"] {
    box-sizing: border-box;
    padding: 2px;
}

/* -- API: chips + code card -- */
.xo-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.xo-chips li {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--xo-line-2);
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-2);
    white-space: nowrap;
}

.xo-code {
    container: xocode / inline-size;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--xo-line);
    background: #0b1120;
}

.xo-code-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--xo-line);
}

.xo-code-method {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.12);
    color: var(--xo-success);
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

.xo-code-path {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-2);
}

.xo-code-ok {
    flex: none;
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-success);
}

.xo-code-pre {
    flex: 1 1 auto;
    margin: 0;
    padding: 14px 16px;
    overflow: hidden;
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 20px;
    color: var(--xo-ink-3);
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}

.xo-code-pre span {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.xo-c-key { color: var(--xo-ink-2); }
.xo-c-str { color: var(--xo-gold-200); }
.xo-c-arrow { color: var(--xo-gold); }

/* narrow box: one key per line (default); wide box: one line per leg */
.xo-code-pre .xo-sp { display: none; }

@container xocode (min-width: 400px) {
    .xo-code-pre .xo-sp { display: inline; }
    .xo-code-pre .xo-nl { display: none; }
}

.xo-code-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 10px 14px;
    border-top: 1px solid var(--xo-line);
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-3);
}

/* -- Docs: schematic docs page --
   A wireframe of a docs page, no text: the sidebar (group headings as short dim bars, entries as
   longer bars, the current one in gold) next to an article (heading, text lines, a code block). */
.xo-docmap {
    /* Takes the height the bento row leaves free (the neighbouring tile is taller on
       desktop), so no gap opens above the link: the "page window" just gets taller. */
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    border-radius: 14px;
    border: 1px solid var(--xo-line);
    background: var(--xo-band);
    overflow: hidden;
}

.xo-docmap-side,
.xo-docmap-page {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.xo-docmap-side {
    border-right: 1px solid var(--xo-line);
}

.xo-dm {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.xo-dm--group {
    width: 45%;
    height: 4px;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.06);
}

.xo-dm--group:first-child {
    margin-top: 0;
}

.xo-dm--item {
    width: 80%;
}

.xo-dm--item.is-on {
    width: 88%;
    background: var(--xo-gold);
    box-shadow: 0 0 12px rgba(197, 165, 114, 0.35);
}

.xo-dm--h {
    width: 62%;
    height: 9px;
    margin-bottom: 3px;
    background: rgba(255, 255, 255, 0.22);
}

.xo-dm--line {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.xo-dm--short {
    width: 55%;
}

.xo-docmap-code {
    display: flex;
    gap: 6px;
    margin-top: 5px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--xo-line);
    background: rgba(10, 15, 28, 0.6);
}

.xo-dm--key {
    width: 30%;
    height: 5px;
    background: rgba(197, 165, 114, 0.55);
}

.xo-dm--str {
    width: 42%;
    height: 5px;
    background: rgba(0, 212, 170, 0.45);
}

/* -- Token listing: "your token" card -- */
.xo-yourtoken {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px dashed rgba(197, 165, 114, 0.4);
    background: linear-gradient(160deg, rgba(197, 165, 114, 0.10) 0%, rgba(197, 165, 114, 0) 60%), var(--xo-band);
}

.xo-yourtoken-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xo-yourtoken-ic {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(197, 165, 114, 0.35);
    background: rgba(197, 165, 114, 0.12);
    color: var(--xo-gold);
}

.xo-yourtoken-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xo-yourtoken-text > span:first-child {
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    color: var(--xo-ink);
}

.xo-yourtoken-text .xo-mono {
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-3);
    word-break: normal;
    overflow-wrap: anywhere;
    -webkit-hyphens: none;
    hyphens: none;
}

.xo-minichecks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    line-height: 18px;
    color: var(--xo-ink-2);
}

.xo-minichecks li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.xo-minichecks svg {
    flex: none;
    margin-top: 2px;
    color: var(--xo-gold);
}

/* -- Exchange listing: nine sources around an open slot -- */
/* The fan is centred on the hub (38px above the bottom edge): radius --xo-orb-r,
   logos --xo-orb-i. The full fan is 1.97 r + i + 6 px wide (245px), so a tile
   narrower than that (600px tablet, 320px phone) gets a smaller fan instead of
   clipped outer logos. */
.xo-orbit {
    container-type: inline-size;
    position: relative;
    height: 170px;
    overflow: hidden;
}

.xo-orbit > * {
    --xo-orb-r: 104px;
    --xo-orb-i: 34px;
}

@container (max-width: 251px) {
    .xo-orbit > * {
        --xo-orb-r: 92px;
        --xo-orb-i: 30px;
    }
}

.xo-orbit-ring {
    position: absolute;
    left: calc(50% - var(--xo-orb-r));
    bottom: calc(38px - var(--xo-orb-r));
    width: calc(2 * var(--xo-orb-r));
    height: calc(2 * var(--xo-orb-r));
    border-radius: 999px;
    border: 1px dashed rgba(197, 165, 114, 0.25);
}

.xo-orbit img {
    position: absolute;
    left: calc(50% - var(--xo-orb-i) / 2);
    bottom: calc(38px - var(--xo-orb-i) / 2);
    display: block;
    width: var(--xo-orb-i);
    height: var(--xo-orb-i);
    border-radius: 999px;
    background: var(--xo-surface-2);
    box-shadow: 0 0 0 3px var(--xo-tile-bg);
    transform: rotate(var(--a, 0deg)) translateY(calc(-1 * var(--xo-orb-r))) rotate(calc(-1 * var(--a, 0deg)));
}

.xo-orbit-hub {
    position: absolute;
    left: calc(50% - 30px);
    bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: 1.5px dashed var(--xo-gold);
    background: rgba(197, 165, 114, 0.12);
    color: var(--xo-gold);
}

.xo-orbit-hub span {
    font-size: 12px;
    line-height: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
    .xo-tile:hover .xo-orbit-hub,
    .xo-tile:focus-visible .xo-orbit-hub {
        animation: xo-orb 2.4s ease-out infinite;
    }
}

@media (min-width: 600px) {
    .xo-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xo-w4,
    .xo-w2t {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .xo-bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .xo-w4 {
        grid-column: span 4;
    }

    .xo-w2,
    .xo-w2t {
        grid-column: span 2;
    }
}


/* =============================================================================
   5. HOW A SWAP WORKS
   ========================================================================== */

.xo-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
}

.xo-step {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(22px, 3vw, 28px);
    border-radius: 16px;
    border: 1px solid var(--xo-line);
    background: var(--xo-surface);
}

.xo-step-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.xo-step-num {
    flex: none;
    font-family: var(--xo-display);
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    background: var(--xo-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.xo-step-line {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 165, 114, 0.45), rgba(197, 165, 114, 0));
}

.xo-step-ic {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--xo-line-2);
    background: var(--xo-surface-2);
    color: var(--xo-gold);
}

.xo-step p {
    max-width: 60ch;
    font-size: 15px;
    line-height: 24px;
    color: var(--xo-ink-2);
}

@media (min-width: 600px) and (max-width: 1023.98px) {
    .xo-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xo-step:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}


/* =============================================================================
   6. WHY KOTOVA X
   ========================================================================== */

/* No card around each feature (owner): the vignette is the only box, so there
   is no box in a box. The features sit on a faint gold lattice instead: one
   hairline through the middle of every gutter (owner, 23 Nov: Kotova gold; it
   was blue before). Light sits at the crossings: each line glows where two
   lines cross and fades out from there, almost to nothing halfway to the next
   crossing and at the outer ends of the lattice (owner's marked screenshot).

   The lines are pseudo-elements of the cards, so the column count is fixed per
   breakpoint (1 / 2 / 3) and each card is told which of its sides face a
   neighbour (1 = yes, 0 = no):
     --xo-nl / --xo-nr   a card to the left / right in the same row
     --xo-nt / --xo-nb   a row above / below
   A card draws the vertical line in the gutter on its left and the horizontal
   line in the gutter above it, plus the glow where those two meet. Each line
   reaches half a gutter into the crossing gutters, so every segment runs from
   a crossing (or the outer edge) to the next one. An end that is a crossing
   starts at full strength, an outer end and the segment's middle at
   --xo-faint. A flag of 0 makes a line fully transparent rather than
   removing it. In one column there is no crossing: the glow sits on the
   middle of each line, which fades out towards both ends. */
.xo-features {
    --xo-gx: 0px;
    --xo-gy: 56px;
    --xo-fa: 0.6;               /* line opacity at a crossing, as the site's gold rules */
    --xo-faint: 0.04;           /* at an outer end and halfway between crossings */
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--xo-gy) var(--xo-gx);
}

.xo-feature {
    --xo-nl: 0;
    --xo-nr: 0;
    --xo-nt: 1;
    --xo-nb: 1;
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xo-feature:first-child { --xo-nt: 0; }
.xo-feature:last-child { --xo-nb: 0; }

@media (min-width: 720px) and (max-width: 1119.98px) {
    .xo-features {
        --xo-gx: 56px;
        --xo-gy: 64px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .xo-feature:nth-child(2n) { --xo-nl: 1; }
    .xo-feature:nth-child(2n+1):not(:last-child) { --xo-nr: 1; }
    .xo-feature:nth-child(-n+2) { --xo-nt: 0; }
    .xo-feature:nth-child(2n+1):nth-last-child(-n+2),
    .xo-feature:nth-child(2n+1):nth-last-child(-n+2) ~ .xo-feature { --xo-nb: 0; }
}

@media (min-width: 1120px) {
    .xo-features {
        --xo-gx: 64px;
        --xo-gy: 80px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .xo-feature:not(:nth-child(3n+1)) { --xo-nl: 1; }
    .xo-feature:not(:nth-child(3n)):not(:last-child) { --xo-nr: 1; }
    .xo-feature:nth-child(-n+3) { --xo-nt: 0; }
    .xo-feature:nth-child(3n+1):nth-last-child(-n+3),
    .xo-feature:nth-child(3n+1):nth-last-child(-n+3) ~ .xo-feature { --xo-nb: 0; }
}

.xo-feature::before,
.xo-feature::after {
    content: "";
    position: absolute;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(197, 165, 114, 0.5));
}

/* Each line: strength at its two ends (--xo-a1 / --xo-a2: full at a crossing,
   faint at an outer end), a quick fall-off, and faint across the middle. */
.xo-feature::before,
.xo-feature::after {
    --xo-a1: calc(var(--xo-faint) + (var(--xo-fa) - var(--xo-faint)) * var(--xo-e1));
    --xo-a2: calc(var(--xo-faint) + (var(--xo-fa) - var(--xo-faint)) * var(--xo-e2));
    --xo-b1: calc(var(--xo-faint) + (var(--xo-fa) - var(--xo-faint)) * var(--xo-e1) * 0.35);
    --xo-b2: calc(var(--xo-faint) + (var(--xo-fa) - var(--xo-faint)) * var(--xo-e2) * 0.35);
    background: linear-gradient(var(--xo-dir),
        rgb(197 165 114 / calc(var(--xo-a1) * var(--xo-on))),
        rgb(197 165 114 / calc(var(--xo-b1) * var(--xo-on))) 18%,
        rgb(197 165 114 / calc(var(--xo-faint) * var(--xo-on))) 50%,
        rgb(197 165 114 / calc(var(--xo-b2) * var(--xo-on))) 82%,
        rgb(197 165 114 / calc(var(--xo-a2) * var(--xo-on))));
}

/* Vertical line, in the gutter on the card's left. Its ends are crossings
   where there is a row above / below. */
.xo-feature::before {
    --xo-dir: 180deg;
    --xo-on: var(--xo-nl);
    --xo-e1: var(--xo-nt);
    --xo-e2: var(--xo-nb);
    left: calc(var(--xo-gx) / -2);
    top: calc(var(--xo-gy) / -2 * var(--xo-nt));
    bottom: calc(var(--xo-gy) / -2 * var(--xo-nb));
    width: 1px;
}

/* Horizontal line, in the gutter above the card. Its ends are crossings
   where there is a card to the left / right. */
.xo-feature::after {
    --xo-dir: 90deg;
    --xo-on: var(--xo-nt);
    --xo-e1: var(--xo-nl);
    --xo-e2: var(--xo-nr);
    top: calc(var(--xo-gy) / -2);
    left: calc(var(--xo-gx) / -2 * var(--xo-nl));
    right: calc(var(--xo-gx) / -2 * var(--xo-nr));
    height: 1px;
}

/* The glow where the card's two lines cross (top left corner of its gutters),
   with a short cross of light along both lines so they brighten towards it.
   The dot at its centre is 0px (owner, 23 Nov): only the glow shows. Both hang
   off the text block because the card's own two pseudo-elements are the
   lines; the card is still their containing block. In one column there is no
   crossing, so the glow sits on the middle of each line instead, and that
   line is brightest in its middle. */
.xo-feature {
    --xo-node-x: calc(var(--xo-gx) / -2);
    --xo-node-on: calc(var(--xo-nl) * var(--xo-nt));
    --xo-flare-v: rgba(232, 213, 181, 0.85);
}

@media (max-width: 719.98px) {
    .xo-feature {
        --xo-node-x: 50%;
        --xo-node-on: var(--xo-nt);
        --xo-flare-v: transparent;
    }
    .xo-feature::after {
        background: linear-gradient(90deg,
            rgb(197 165 114 / calc(var(--xo-faint) * var(--xo-nt))),
            rgb(197 165 114 / calc(var(--xo-fa) * var(--xo-nt))),
            rgb(197 165 114 / calc(var(--xo-faint) * var(--xo-nt))));
    }
}

.xo-feature > .xo-feature-text::before,
.xo-feature > .xo-feature-text::after {
    content: "";
    position: absolute;
    opacity: var(--xo-node-on);
    pointer-events: none;
}

.xo-feature > .xo-feature-text::before {
    left: var(--xo-node-x);
    top: calc(var(--xo-gy) / -2);
    width: 0;
    height: 0;
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(197, 165, 114, 0.14),
        0 0 6px 1px rgba(232, 213, 181, 0.7),
        0 0 32px 6px rgba(197, 165, 114, 0.14);
    z-index: 1;
}

.xo-feature > .xo-feature-text::after {
    left: calc(var(--xo-node-x) - 48px);
    top: calc(var(--xo-gy) / -2 - 48px);
    width: 97px;
    height: 97px;
    background:
        linear-gradient(90deg, transparent, rgba(232, 213, 181, 0.85), transparent) center / 100% 1px no-repeat,
        linear-gradient(180deg, transparent, var(--xo-flare-v), transparent) center / 1px 100% no-repeat;
}

/* Draw-in (x/overview.js): the script marks the list .is-armed, which folds
   every line to nothing and every glow to a point, and gives each card
   .is-drawn once it scrolls into view. Its lines then grow from their middles
   until they meet, and the glows light up where they do. Without the script,
   and with reduced motion, the lattice simply stands. (Not a scroll-driven
   animation: body's overflow-x makes it a scroll container of its own here,
   so a view timeline never moves.) */
@media (prefers-reduced-motion: no-preference) {
    .xo-features.is-armed .xo-feature::before {
        transform: scaleY(0);
    }
    .xo-features.is-armed .xo-feature::after {
        transform: scaleX(0);
    }
    .xo-features.is-armed .xo-feature > .xo-feature-text::before,
    .xo-features.is-armed .xo-feature > .xo-feature-text::after {
        transform: scale(0);
    }
    .xo-features.is-armed .xo-feature.is-drawn::before,
    .xo-features.is-armed .xo-feature.is-drawn::after {
        transform: none;
        transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.24, 1);
    }
    .xo-features.is-armed .xo-feature.is-drawn > .xo-feature-text::before,
    .xo-features.is-armed .xo-feature.is-drawn > .xo-feature-text::after {
        transform: none;
        transition: transform 0.5s cubic-bezier(0.34, 1.6, 0.64, 1) 0.6s;
    }
}

/* Each card spans two rows of the list's grid (vignette, text), so in a row
   of cards the vignettes share one height and the headings one baseline. */
@supports (grid-template-rows: subgrid) {
    .xo-feature {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-row: span 2;
        grid-template-rows: subgrid;
        row-gap: 16px;
    }
}

.xo-feature-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xo-feature p {
    font-size: 14px;
    line-height: 22px;
    color: var(--xo-ink-2);
}

.xo-vignette {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid var(--xo-line);
    background: var(--xo-band);
}

/* Bare vignette (owner): no box at all, the illustration sits straight on the
   page. No side padding either, so it lines up with the heading below. */
.xo-vignette--bare {
    border-color: transparent;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.xo-vignette--wrap {
    flex-wrap: wrap;
    gap: 8px;
}

/* The arrow travels with the second state: if the pair wraps, the next line
   starts "-> Next best takes it" instead of the arrow dangling at a line end. */
.xo-state-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.xo-vg-ic {
    flex: none;
    color: var(--xo-gold);
}

.xo-vg-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--xo-ink);
}

.xo-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
}

.xo-state svg {
    flex: none;
}

.xo-state--bad {
    border-color: rgba(255, 71, 87, 0.28);
    background: rgba(255, 71, 87, 0.10);
    color: #ff8a95;
}

.xo-state--good {
    border-color: rgba(0, 212, 170, 0.3);
    background: rgba(0, 212, 170, 0.12);
    color: var(--xo-success);
}

.xo-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 8px 0 5px;
    border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

.xo-pick.is-on {
    border-style: solid;
    border-color: rgba(197, 165, 114, 0.35);
    background: var(--xo-surface-2);
}

.xo-pick img {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    opacity: 0.45;
}

.xo-pick.is-on img {
    opacity: 1;
}

.xo-pick-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid var(--xo-ink-4);
}

.xo-pick.is-on .xo-pick-box {
    border: 0;
    background: var(--xo-gold);
    color: var(--xo-canvas);
}

.xo-wallet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink-2);
}

.xo-wallet svg {
    flex: none;
    color: var(--xo-gold);
}

.xo-wallet-line {
    flex: 1 1 auto;
    min-width: 16px;
    height: 1px;
    background: linear-gradient(90deg, rgba(197, 165, 114, 0.5), rgba(197, 165, 114, 0.15));
}

.xo-vg-order {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 16px;
    color: var(--xo-ink);
}

.xo-progress {
    flex: none;
    display: flex;
    gap: 4px;
}

.xo-progress span {
    display: block;
    width: 16px;
    height: 4px;
    border-radius: 2px;
    background: var(--xo-surface-3);
}

.xo-progress .is-on {
    background: var(--xo-gold);
}


/* =============================================================================
   7. LIQUIDITY SOURCES
   phone: 3 per row (3 x 3) · tablet: 5 + 4, centred · desktop: all 9 in a row
   ========================================================================== */

.xo-sources {
    align-self: stretch;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.xo-sources li {
    position: relative;
    flex: 0 0 calc((100% - 24px) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 6px 16px;
    border-radius: 16px;
    border: 1px solid var(--xo-line);
    background: var(--xo-surface);
}

.xo-sources li.is-dex {
    border-color: rgba(79, 168, 255, 0.25);
}

/* DEX badge: an overlay on the card's top right corner, out of the text flow,
   so a DEX card is exactly as wide and as padded as every other card. */
.xo-sources .xo-dex {
    position: absolute;
    top: -9px;
    right: 8px;
    box-shadow: 0 0 0 3px var(--xo-band);
}

.xo-sources img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.xo-sources li > span:not(.xo-dex) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--xo-ink);
    text-align: center;
}

/* 320px phones: "ChangeNOW" at 13px is wider than its cell and broke mid-word */
@media (max-width: 379.98px) {
    .xo-sources li {
        padding-inline: 2px;
    }

    .xo-sources li > span:not(.xo-dex) {
        font-size: 12px;
    }
}

@media (min-width: 600px) {
    .xo-sources li {
        flex-basis: calc((100% - 48px) / 5);
    }
}

@media (min-width: 1024px) {
    .xo-sources li {
        flex: 1 1 0;
    }
}


/* =============================================================================
   8. TWO AUDIENCES
   ========================================================================== */

.xo-aud {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 16px;
}

.xo-aud-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: 24px;
    border: 1px solid var(--xo-line-gold);
}

.xo-aud-card--exchange {
    background: radial-gradient(480px 300px at 100% 0%, rgba(27, 43, 75, 0.95), rgba(27, 43, 75, 0) 70%), var(--xo-surface);
}

.xo-aud-card--token {
    background: radial-gradient(480px 300px at 100% 0%, rgba(197, 165, 114, 0.16), rgba(197, 165, 114, 0) 70%), var(--xo-surface);
}

.xo-aud-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

@media (max-width: 599.98px) {
    .xo-aud-top {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

.xo-aud-stack {
    flex: none;
    display: grid;
    grid-template-columns: repeat(4, 20px) 28px;
    align-items: center;
}

.xo-aud-stack img {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--xo-surface-2);
    box-shadow: 0 0 0 2px var(--xo-surface);
}

.xo-aud-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1.5px dashed var(--xo-gold);
    background: var(--xo-surface);
    color: var(--xo-gold);
}

.xo-aud-pair {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xo-aud-pair img {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 999px;
}

.xo-aud-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xo-aud-text p {
    font-size: 16px;
    line-height: 26px;
    color: var(--xo-ink-2);
}

.xo-aud-cta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =============================================================================
   9. TRUST STRIP
   ========================================================================== */

.xo-trust {
    padding: clamp(32px, 4vw, 48px) 0;
    background: #0c1220;
    border-top: 1px solid var(--xo-line);
    border-bottom: 1px solid var(--xo-line);
}

.xo-trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 32px;
}

.xo-trust-label {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--xo-ink-3);
    text-align: center;
}

/* =============================================================================
   10. FAQ
   Hooks: .faq-accordion / .faq-item / .faq-question (script.js toggles
   .faq-item-open + aria-expanded, one item open at a time). The site's own
   look for those classes is overridden here, under .xo-faq-list only.
   ========================================================================== */

.xo-faq {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 64px;
}

.xo-faq-intro {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xo-faq-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    font-size: 14px;
    line-height: 20px;
}

.xo-faq-list {
    flex: 2 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xo-faq-list .xo-faq-item {
    border-radius: 16px;
    border: 1px solid var(--xo-line);
    background: var(--xo-surface);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.xo-faq-list .xo-faq-item.faq-item-open {
    border-color: rgba(197, 165, 114, 0.30);
    background: var(--xo-surface-hover);
}

.xo-faq-h {
    margin: 0;
    font-size: inherit;
}

.xo-faq-list .xo-faq-q {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 60px;
    padding: 16px 20px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--xo-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease;
}

.xo-faq-list .xo-faq-q:hover {
    color: var(--xo-gold-100);
}

.xo-faq-num {
    flex: none;
    font-family: var(--xo-mono);
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--xo-ink-3);
}

.xo-faq-text {
    flex: 1 1 auto;
    min-width: 0;
    -webkit-hyphens: manual;
    hyphens: manual;
}

.xo-faq-icon {
    flex: none;
    color: var(--xo-ink-3);
    transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item-open .xo-faq-icon {
    transform: rotate(45deg);
    color: var(--xo-gold);
}

.xo-faq-a {
    padding: 0 20px 20px clamp(20px, 5vw, 56px);
}

.xo-faq-a p {
    font-size: 15px;
    line-height: 24px;
    color: var(--xo-ink-2);
}

.xo-faq-item:not(.faq-item-open) .xo-faq-a {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .faq-item-open .xo-faq-a {
        animation: xo-fade 0.25s ease-out both;
    }
}


/* =============================================================================
   11. CLOSING CTA
   ========================================================================== */

.xo-closing {
    padding: 0 0 var(--xo-sec-y);
}

.xo-cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 40px;
    padding: clamp(24px, 5vw, 56px);
    border-radius: 24px;
    border: 1px solid var(--xo-line-gold);
    background:
        radial-gradient(640px 360px at 90% 50%, rgba(197, 165, 114, 0.18), rgba(197, 165, 114, 0) 70%),
        linear-gradient(135deg, #1b2b4b 0%, #151c2c 65%);
}

.xo-cta-copy {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.xo-cta-copy > img {
    flex: none;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(197, 165, 114, 0.3);
}

.xo-cta-text {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xo-h2--cta {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
}

.xo-cta-text p {
    font-size: 16px;
    line-height: 26px;
    color: var(--xo-ink-2);
}
