/**
 * PlumePay — marketing site.
 *
 * Hand-written: no framework, no page-builder payload. The product visuals
 * are built in HTML/SVG rather than screenshots, so they stay crisp at any
 * density, animate, and show real data.
 */

/* ─── Tokens ──────────────────────────────────────────────────────────── */
:root {
    --blue: #1652F0;
    --blue-lift: #3D6FFF;
    --blue-deep: #0B36B8;
    --violet: #7B5CFF;
    --teal: #00D3A7;
    --amber: #FFB020;

    --ink: #0A0D1A;
    --ink-2: #2E3444;
    --muted: #656C82;
    --line: #E7EAF3;
    --bg: #FFFFFF;
    --bg-alt: #F6F8FD;
    --surface: #FFFFFF;

    --night: #05070F;
    --night-2: #0A0E1C;

    --r-lg: 22px;
    --r: 16px;
    --r-sm: 10px;

    --sh-sm: 0 1px 2px rgba(10, 13, 26, .05), 0 4px 12px -4px rgba(10, 13, 26, .08);
    --sh: 0 2px 4px rgba(10, 13, 26, .04), 0 18px 40px -16px rgba(10, 13, 26, .16);
    --sh-lg: 0 4px 8px rgba(10, 13, 26, .04), 0 40px 80px -28px rgba(10, 13, 26, .28);

    --max: 1180px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --ease: cubic-bezier(.22, .8, .3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #EEF0F6;
        --ink-2: #C2C7D6;
        --muted: #8E95AB;
        --line: #1E2333;
        --bg: #070911;
        --bg-alt: #0B0E1A;
        --surface: #0E1220;
        --sh-sm: 0 1px 2px rgba(0, 0, 0, .5);
        --sh: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px -16px rgba(0, 0, 0, .7);
        --sh-lg: 0 4px 8px rgba(0, 0, 0, .4), 0 40px 80px -28px rgba(0, 0, 0, .8);
    }
}

/* ─── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; }
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); letter-spacing: -.042em; line-height: 1.03; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.034em; }
h3 { font-size: 1.25rem; letter-spacing: -.022em; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.alt { background: var(--bg-alt); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.lede { max-width: 60ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.head { max-width: 740px; margin-bottom: 60px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow::before { display: none; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: linear-gradient(180deg, var(--blue-lift), var(--blue));
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 24px -8px rgba(22, 82, 240, .75);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 16px 32px -8px rgba(22, 82, 240, .85); }

.btn-ghost { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }

.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-lg { padding: 17px 32px; font-size: 16.5px; }

/* ─── Header ──────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--line);
}

.nav { display: flex; align-items: center; gap: 34px; height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 19.5px; font-weight: 800; letter-spacing: -.03em; }
.site-header.scrolled .brand { color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--blue-lift), var(--violet));
    box-shadow: 0 6px 16px -6px rgba(22, 82, 240, .8);
    flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; color: #fff; }

.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, .74); font-size: 15px; font-weight: 500; }
.site-header.scrolled .nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--blue-lift); text-decoration: none; }
.site-header.scrolled .nav-links a:hover { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .signin { color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 600; }
.site-header.scrolled .nav-actions .signin { color: var(--ink-2); }
.nav-actions .signin:hover { text-decoration: none; color: var(--blue-lift); }

.nav-toggle { display: none; padding: 9px; border: 0; background: none; color: #fff; cursor: pointer; }
.site-header.scrolled .nav-toggle { color: var(--ink); }

@media (max-width: 940px) {
    .nav-links { display: none; }
    .nav-links.open {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px 24px 22px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        display: flex;
    }
    .nav-links.open a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
    .nav-toggle { display: block; margin-left: auto; }
    .nav-actions .signin { display: none; }
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: clamp(140px, 17vw, 200px) 0 clamp(80px, 9vw, 120px);
    background: var(--night);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* Drifting aurora. Blurred blobs, so the gradient never bands. */
.aurora { position: absolute; inset: -25% -10%; z-index: -2; filter: blur(90px); opacity: .8; }
.aurora i {
    position: absolute;
    display: block;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; top: -6%;  left: 46%; background: #1D4ED8; animation: drift1 22s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; top: 18%;  left: 10%; background: #6D28D9; animation: drift2 26s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; top: 48%;  left: 62%; background: #0E7490; animation: drift3 30s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7%, 6%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(9%, -5%) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6%, -8%) scale(1.15); } }

/* Grid, masked so it dissolves behind the copy. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 10%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 10%, transparent 75%);
}

/* Fade into whatever follows. */
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 140px;
    z-index: -1;
    background: linear-gradient(180deg, transparent, var(--night));
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(40px, 5vw, 68px);
    align-items: center;
}
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lede { color: rgba(255, 255, 255, .68); margin-bottom: 34px; }

.gradient-text {
    background: linear-gradient(96deg, #7FA6FF 0%, #B58BFF 45%, #5FE3C4 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 6px 16px 6px 6px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .84);
    font-size: 13.5px;
    font-weight: 500;
}
.hero-badge b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(0, 211, 167, .16);
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.pulse {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(0, 211, 167, .7);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 211, 167, .7); }
    70%  { box-shadow: 0 0 0 8px rgba(0, 211, 167, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 211, 167, 0); }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 540px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .11);
}
.hero-metrics strong {
    display: block;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.1;
}
.hero-metrics span { color: rgba(255, 255, 255, .52); font-size: 13px; line-height: 1.35; }

/* ─── Hero stage: layered product cards ───────────────────────────────── */
.stage { position: relative; perspective: 1400px; }

.glass {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .1) inset;
}

.stage-main { position: relative; z-index: 2; overflow: hidden; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.card-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.card-bar span { color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); }

.bal { padding: 22px 20px 6px; }
.bal small { color: rgba(255, 255, 255, .5); font-size: 12.5px; }
.bal strong {
    display: block;
    margin: 5px 0 3px;
    /* Fluid, so a longer figure cannot overrun a narrow card. */
    font-size: clamp(1.9rem, 5.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.bal em {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--teal);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
}

/* Sparkline that draws itself in */
.spark { padding: 4px 8px 0; }
.spark svg { width: 100%; height: 74px; overflow: visible; }

.spark .line {
    fill: none;
    stroke: url(#sparkGrad);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* The viewBox is stretched to the card's width, which would squash the
       stroke horizontally and leave the line visibly thinner on the long
       segments. This keeps it an even 2.5px whatever the card is scaled to. */
    vector-effect: non-scaling-stroke;
    /* pathLength normalises the path to 1 unit, so the draw animation is
       exact rather than depending on a hand-guessed dash length that
       finished early or late. */
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.2s var(--ease) .4s forwards;
}

.spark .area { fill: url(#areaGrad); opacity: 0; animation: fadeArea .9s ease 1.6s forwards; }
.spark .knob { opacity: 0; animation: fadeArea .5s ease 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { to { opacity: 1; } }

.rows { padding: 6px 8px 12px; }
.row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background .18s var(--ease);
}
.row:hover { background: rgba(255, 255, 255, .06); }
.row .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; }
.row .ic svg { width: 15px; height: 15px; }
.row .ic.in  { background: rgba(0, 211, 167, .15); color: var(--teal); }
.row .ic.out { background: rgba(255, 122, 122, .13); color: #FF9B9B; }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who span { color: rgba(255, 255, 255, .44); font-size: 12px; }
.row .amt { font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .amt.in { color: var(--teal); }
.row .amt.out { color: rgba(255, 255, 255, .8); }

/* Floating satellite card */
/* Sits proud of the card corner for depth, but never far enough to overflow
   the hero and get clipped — which is what the old -18px/-26px did between
   the desktop and mobile breakpoints. */
.stage-chip {
    position: absolute;
    right: 0;
    bottom: -22px;
    max-width: calc(100% - 24px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--r);
    animation: float2 6s ease-in-out infinite;
}
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
.stage-chip .tick { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
                    background: rgba(0, 211, 167, .18); color: var(--teal); flex-shrink: 0; }
.stage-chip .tick svg { width: 18px; height: 18px; }
.stage-chip b { display: block; font-size: 14px; font-weight: 700; }
.stage-chip span { color: rgba(255, 255, 255, .5); font-size: 12px; }

@media (max-width: 560px) { .stage-chip { right: 8px; bottom: -20px; } }

/* ─── Marquee ─────────────────────────────────────────────────────────── */
.marquee-wrap {
    padding: 34px 0;
    background: var(--night);
    border-top: 1px solid rgba(255, 255, 255, .07);
    overflow: hidden;
}
.marquee-label {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
}
.marquee {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: scroll 38s linear infinite;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .78);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}
.chip .sym { color: var(--blue-lift); font-weight: 700; }

/* ─── Calculator ──────────────────────────────────────────────────────── */
.calc {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-lg);
    overflow: hidden;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.calc-form { padding: clamp(28px, 4vw, 42px); }
.calc-out {
    padding: clamp(28px, 4vw, 42px);
    background: linear-gradient(160deg, var(--night-2), var(--night));
    color: #fff;
}

.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 13px; font-weight: 600; }

.amount-box {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    background: var(--bg-alt);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.amount-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 82, 240, .12); }
.amount-box .cur {
    padding: 0 4px 0 18px;
    color: var(--muted);
    font-size: 1.5rem;
    font-weight: 600;
}
.amount-box input {
    flex: 1;
    width: 100%;
    padding: 16px 18px 16px 4px;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    outline: none;
    -moz-appearance: textfield;
}
.amount-box input::-webkit-outer-spin-button,
.amount-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.corridors { display: grid; gap: 9px; }
.corridor {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    cursor: pointer;
    transition: border-color .18s var(--ease), background .18s var(--ease);
}
.corridor:hover { border-color: var(--blue-lift); }
.corridor input { position: absolute; opacity: 0; pointer-events: none; }
.corridor .radio {
    display: grid;
    place-items: center;
    width: 19px; height: 19px;
    border: 2px solid var(--line);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color .18s var(--ease);
}
.corridor .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform .18s var(--ease); }
.corridor input:checked ~ .radio { border-color: var(--blue); }
.corridor input:checked ~ .radio::after { transform: scale(1); }
.corridor:has(input:checked) { border-color: var(--blue); background: rgba(22, 82, 240, .05); }
.corridor .txt { flex: 1; min-width: 0; }
.corridor .txt b { display: block; font-size: 14.5px; font-weight: 600; }
.corridor .txt span { color: var(--muted); font-size: 12.5px; }
.corridor .rate { color: var(--muted); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }

.out-head { color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.out-big {
    margin: 14px 0 4px;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.out-sub { color: rgba(255, 255, 255, .5); font-size: 14px; }

.out-rows { margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; font-size: 14.5px; }
.out-row span { color: rgba(255, 255, 255, .55); }
.out-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.out-row b.fee { color: var(--amber); }
.out-row b.net { color: var(--teal); }

/* Comparison bars */
.bars { margin-top: 26px; }
.bar-row { margin-bottom: 14px; }
.bar-row .bar-top { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; }
.bar-row .bar-top span { color: rgba(255, 255, 255, .55); }
.bar-row .bar-top b { font-variant-numeric: tabular-nums; }
.bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width .6s var(--ease); }
.bar-fill.us { background: linear-gradient(90deg, var(--teal), #4FD1C5); }
.bar-fill.them { background: linear-gradient(90deg, #FF7A7A, #FFB020); }

.calc-note { margin: 18px 0 0; color: rgba(255, 255, 255, .38); font-size: 12.5px; line-height: 1.5; }

/* ─── Feature rows (alternating) ──────────────────────────────────────── */
.feature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
    margin-bottom: clamp(64px, 8vw, 112px);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .feature-visual { order: -1; }
@media (max-width: 900px) {
    .feature-row { grid-template-columns: 1fr; gap: 36px; }
    .feature-row.flip .feature-visual { order: 0; }
}

.feature-list { margin: 22px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; padding: 9px 0; font-size: 15.5px; }
.feature-list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--teal); flex-shrink: 0; }

.feature-visual {
    position: relative;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--night-2), var(--night));
    box-shadow: var(--sh-lg);
    overflow: hidden;
}
.feature-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(61, 111, 255, .22), transparent 70%);
    pointer-events: none;
}

/* Ledger mock */
.mock-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    margin-bottom: 9px;
    color: #fff;
}
.mock-line:last-child { margin-bottom: 0; }
.mock-line .lbl { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mock-line .sq { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-weight: 700; }
.mock-line b { font-size: 13.5px; font-weight: 600; }
.mock-line small { display: block; color: rgba(255, 255, 255, .42); font-size: 11.5px; }
.mock-line .val { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pill.ok   { background: rgba(0, 211, 167, .16); color: var(--teal); }
.pill.wait { background: rgba(255, 176, 32, .16); color: var(--amber); }

/* Invoice mock */
.mock-inv { color: #fff; }
.mock-inv .inv-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mock-inv .inv-top b { font-size: 15px; }
.mock-inv .inv-top small { display: block; color: rgba(255, 255, 255, .45); font-size: 12px; }
.mock-inv .inv-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.mock-inv .inv-total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 16px; font-weight: 700; }

/* API mock */
.mock-code {
    color: #D6DCF0;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.75;
    white-space: pre;
    overflow-x: auto;
}
.mock-code .k { color: #7FA6FF; }
.mock-code .s { color: #5FE3C4; }
.mock-code .c { color: rgba(255, 255, 255, .32); }
.mock-code .n { color: #FFB020; }

/* ─── Steps ───────────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 34px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 52px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.step b { display: block; margin-bottom: 12px; color: var(--blue); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ─── Pricing ─────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 24px; align-items: start; }

.price {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 30px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.price.featured {
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(150deg, var(--blue), var(--violet)) border-box;
    border: 1.5px solid transparent;
    box-shadow: var(--sh);
}
.price-flag {
    position: absolute;
    top: -12px;
    left: 30px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--blue), var(--violet));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px -8px rgba(22, 82, 240, .9);
}

.price-tag { align-self: flex-start; margin-bottom: 18px; padding: 5px 13px; border-radius: 999px;
             background: var(--bg-alt); color: var(--muted); font-size: 11.5px; font-weight: 700;
             letter-spacing: .08em; text-transform: uppercase; }
.price .rate { display: flex; align-items: baseline; gap: 7px; margin-bottom: 7px; font-size: 2.7rem;
               font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.price .rate small { color: var(--muted); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.price .sub { margin-bottom: 24px; color: var(--muted); font-size: 14.5px; }
.price ul { flex: 1; margin: 0 0 26px; padding: 0; list-style: none; }
.price li { display: flex; gap: 11px; padding: 8px 0; font-size: 15px; }
.price li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--teal); flex-shrink: 0; }

/* ─── Fee table ───────────────────────────────────────────────────────── */
.table-shell { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
               box-shadow: var(--sh-sm); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th { padding: 16px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px;
           font-weight: 700; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
tbody td { padding: 15px 22px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: var(--bg-alt); }
.num { font-family: var(--mono); font-size: 13.5px; text-align: right; white-space: nowrap; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--bg-alt);
       color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.instant { background: rgba(0, 211, 167, .13); color: #0E9E7E; }
@media (prefers-color-scheme: dark) { .tag.instant { color: var(--teal); } }

/* ─── Quote ───────────────────────────────────────────────────────────── */
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote .mark { margin: 0 auto 20px; width: 44px; height: 44px; color: var(--blue); opacity: .35; }
.quote blockquote { margin: 0 0 28px; font-size: clamp(1.35rem, 2.7vw, 1.9rem); font-weight: 600;
                    line-height: 1.4; letter-spacing: -.025em; }
.quote figcaption { display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--muted); font-size: 15px; }
.quote .av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
             background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-weight: 700; font-size: 15px; }
.quote figcaption b { display: block; color: var(--ink); }
.quote figcaption span { font-size: 13.5px; }

/* ─── CTA ─────────────────────────────────────────────────────────────── */
.cta-panel {
    position: relative;
    padding: clamp(52px, 8vw, 88px) clamp(28px, 5vw, 68px);
    border-radius: 28px;
    background: var(--night);
    color: #fff;
    overflow: hidden;
    text-align: center;
    isolation: isolate;
}
.cta-panel .aurora { filter: blur(80px); opacity: .7; }
.cta-panel h2 { color: #fff; }
.cta-panel .lede { margin-inline: auto; margin-bottom: 32px; color: rgba(255, 255, 255, .68); }
.cta-panel .hero-cta { justify-content: center; margin-bottom: 0; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer { padding: 72px 0 38px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 44px; margin-bottom: 48px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-grid h4 { margin-bottom: 15px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; }
.foot-grid li { padding: 5px 0; }
.foot-grid li a { color: var(--ink-2); font-size: 15px; }
.foot-grid li a:hover { color: var(--blue); }
.foot-about { max-width: 330px; color: var(--muted); font-size: 15px; }
.foot-about .brand { margin-bottom: 16px; color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
             padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ─── Motion ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .spark .line { stroke-dashoffset: 0; }
    .spark .area, .spark .knob { opacity: 1; }
}

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 12px 20px; background: var(--blue); color: #fff; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
