/*
 * apex.css: the enhancement layer, loaded after landing.css (the original design, kept as it is).
 *
 * landing.css is the brand: navy, gold calls to action, cyan accents, the neon logo, the candle
 * console. This file only adds what it lacked: the fonts it named but never loaded (the same
 * Sora and JetBrains Mono the desktop app uses), the logo's own crystal-violet and neon-green as
 * accents, motion that never hides content from a reader without JavaScript, a phone menu, and
 * the classes that replaced inline styles (the security policy blocks style="" attributes).
 */

/* ---------- Fonts (self-hosted, SIL Open Font License; see /fonts/LICENSE-*.txt) ---------- */
@font-face {
    font-family: "Sora";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Sora";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url("/fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url("/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    --font-heading: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-body: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    /* From the logo: the crystal "A" and the green arrow. */
    --crystal: #8b6cff;
    --crystal-deep: #4c2fd1;
    --neon: #2bee86;
    --gold: #f59e0b;
    --gold-soft: #fbbf24;
    --line: rgba(148, 163, 184, 0.14);
    --header-h: 76px;
    color-scheme: dark;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: -0.005em;
}

::selection {
    background: rgba(245, 158, 11, 0.85);
    color: #0a0e17;
}

.mono,
.eyebrow,
.proof-value,
.vault-price span,
.flow-number,
.mode-kicker,
.roster-label,
.strip-kicker {
    font-family: var(--font-mono);
}

.section-heading h2,
.hero h1,
.final-cta h2 {
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.section-heading p,
.hero-subtitle {
    text-wrap: pretty;
}

.section-heading h2 {
    line-height: 1.04;
}

.section {
    padding: clamp(4.25rem, 8vw, 6.75rem) 0;
}

ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link:focus {
    transform: translateY(0);
}

a.text-link,
.prose a,
.sales-final a {
    color: #67e8f9;
    text-decoration: underline;
    text-decoration-color: rgba(103, 232, 249, 0.35);
    text-underline-offset: 3px;
}

/* ---------- Header ---------- */
.brand-mark {
    filter: drop-shadow(0 0 14px rgba(139, 108, 255, 0.45));
}

.desktop-nav a[aria-current="page"] {
    color: var(--gold-soft);
}

.desktop-nav .nav-account {
    display: none;
}

.header-signin {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.header-signin:hover,
.header-signin[aria-current="page"] {
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
}

.nav-toggle i,
.nav-toggle i::before,
.nav-toggle i::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 200ms var(--ease-out), opacity 200ms ease;
}

.nav-toggle i {
    position: relative;
}

.nav-toggle i::before,
.nav-toggle i::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle i::before { top: -6px; }
.nav-toggle i::after { top: 6px; }

.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
    .nav-toggle {
        display: grid;
    }

    .header-signin {
        display: none;
    }

    .desktop-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 16px 1.25rem;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        background: #050a15;
        border-bottom: 1px solid rgba(245, 158, 11, 0.25);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    }

    .desktop-nav a {
        padding: 0.95rem 0.25rem;
        border-bottom: 1px solid var(--line);
        font-size: 1.02rem;
    }

    .desktop-nav .nav-account {
        display: block;
    }

    .site-header.is-open .desktop-nav {
        display: flex;
    }
}

@media (max-width: 430px) {
    .header-cta {
        padding-inline: 0.7rem;
        font-size: 0.72rem;
    }

    .lang-switch {
        padding-inline: 0.5rem;
    }
}

/* ---------- Motion that never hides content ----------
 * Everything is visible by default. Only when site.js has confirmed motion is welcome does it add
 * html.motion; the hero then rises in once, and cards rise as they scroll into view. */
@keyframes apexRise {
    from { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(5px); }
    to { opacity: 1; transform: none; filter: none; }
}

.motion .hero .rise {
    animation: apexRise 0.95s var(--ease-out) both;
}

.motion .hero .os-badge-group { animation-delay: 0.05s; }
.motion .hero h1 { animation-delay: 0.14s; }
.motion .hero .hero-subtitle { animation-delay: 0.24s; }
.motion .hero .hero-actions { animation-delay: 0.32s; }
.motion .hero .hero-microtrust { animation-delay: 0.38s; }
.motion .hero .hero-proof-grid { animation-delay: 0.46s; }
.motion .hero .broker-showcase-container { animation-delay: 0.56s; }
.motion .hero .hero-console { animation-delay: 0.62s; }

.motion .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}

.motion .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .motion .hero .rise,
    .motion .reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* landing.css hid [data-animate] for its old script; nothing uses it now, but never hide content. */
[data-animate] {
    opacity: 1;
    visibility: visible;
}

/* ---------- Hero ---------- */
/* The candle console used to hang off the bottom of the hero and was cut in half; it now sits
   whole under the broker cards, in the page's own flow. */
.hero {
    flex-direction: column;
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hero-console {
    position: relative;
    inset: auto;
    transform: none;
    width: min(1020px, calc(100% - 32px));
    margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
}

.os-badge-group {
    gap: 0.55rem;
    padding: 0.4rem;
}

.os-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.os-badge-item img {
    width: 16px;
    height: 16px;
}

.os-badge-item--trial {
    color: #bbf7d0;
    background: rgba(43, 238, 134, 0.08);
    box-shadow: inset 0 0 0 1px rgba(43, 238, 134, 0.22);
}

.os-badge-item .status-light {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: var(--neon);
    box-shadow: 0 0 14px rgba(43, 238, 134, 0.8);
}

.hero h1 {
    font-weight: 700;
    line-height: 1.08;
}

.hero-inline-logo {
    height: 1.05em;
    width: 1.05em;
    border-radius: 0.22em;
}

.hero-microtrust {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.hero-proof-grid .proof-label {
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.eyebrow--sky {
    color: #38bdf8;
}

.eyebrow--sky::before {
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

.broker-showcase-title h2 {
    margin: 0.5rem 0;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    letter-spacing: -0.02em;
}

.broker-showcase-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.broker-card-copy {
    margin: 0 0 1rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.55;
}

.broker-card-features svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.broker-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.1rem;
    color: #38bdf8;
    font-size: 0.84rem;
    font-weight: 700;
}

.broker-card-link--iq {
    color: #ff7d33;
}

.broker-card-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The candle console's shape, formerly inline styles: wick base/height, body base/height. */
.mini-chart .c1 { --wb: 13%; --wh: 8%; --bb: 15%; --bh: 3%; }
.mini-chart .c2 { --wb: 12%; --wh: 9%; --bb: 15%; --bh: 3%; }
.mini-chart .c3 { --wb: 14%; --wh: 6%; --bb: 17%; --bh: 1%; }
.mini-chart .c4 { --wb: 15%; --wh: 11%; --bb: 17%; --bh: 6%; }
.mini-chart .c5 { --wb: 21%; --wh: 12%; --bb: 23%; --bh: 7%; }
.mini-chart .c6 { --wb: 28%; --wh: 13%; --bb: 30%; --bh: 7%; }
.mini-chart .c7 { --wb: 35%; --wh: 13%; --bb: 37%; --bh: 7%; }
.mini-chart .c8 { --wb: 36%; --wh: 11%; --bb: 39%; --bh: 5%; }
.mini-chart .c9 { --wb: 37%; --wh: 8%; --bb: 39%; --bh: 3%; }
.mini-chart .c10 { --wb: 40%; --wh: 15%; --bb: 42%; --bh: 10%; }
.mini-chart .c11 { --wb: 50%; --wh: 18%; --bb: 52%; --bh: 12%; }
.mini-chart .c12 { --wb: 62%; --wh: 28%; --bb: 64%; --bh: 23%; }
.mini-chart .price-line { --last-close: 87; opacity: 0.85; }
.mini-chart .mc-pnl { opacity: 1; text-transform: uppercase; }

/* The console's live feel, in CSS: the newest candle forms, a shimmer passes, the price line breathes. */
@keyframes apexForm {
    0%, 100% { transform: scaleY(0.86); filter: brightness(1); }
    50% { transform: scaleY(1); filter: brightness(1.18); }
}

@keyframes apexShimmer {
    from { opacity: 0.45; transform: translateY(-90%); }
    to { opacity: 0; transform: translateY(120%); }
}

.motion .mini-chart .candle.last .body {
    transform-origin: center bottom;
    animation: apexForm 3.2s ease-in-out 1s infinite;
}

.motion .mini-chart .candle.last .shimmer {
    animation: apexShimmer 2s ease-in 1s infinite;
}

/* ---------- Real screenshot frame ---------- */
.app-shot {
    margin: 0;
}

.app-shot__frame {
    position: relative;
    padding: 10px;
    border-radius: 18px;
    background:
        linear-gradient(140deg, rgba(139, 108, 255, 0.55), rgba(6, 182, 212, 0.35) 45%, rgba(245, 158, 11, 0.5));
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(139, 108, 255, 0.18);
}

.app-shot__frame::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    background: #050811;
}

.app-shot__frame img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.app-shot figcaption {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.app-shot__badge,
.preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bbf7d0;
    background: rgba(43, 238, 134, 0.1);
    border: 1px solid rgba(43, 238, 134, 0.35);
}

.app-shot__badge::before,
.preview-badge--real::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--neon);
    box-shadow: 0 0 10px var(--neon);
}

.demo-promo__grid {
    align-items: center;
}

/* ---------- Command center tabs ---------- */
.preview-panel img {
    aspect-ratio: auto;
    object-fit: contain;
    background: #050811;
}

.preview-badge {
    position: absolute;
    right: 14px;
    top: 14px;
    color: #e2e8f0;
    background: rgba(5, 10, 21, 0.82);
    border-color: rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(8px);
}

.preview-panel--fade img {
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
    mask-image: linear-gradient(180deg, #000 80%, transparent);
}

.preview-badge--real {
    color: #bbf7d0;
    border-color: rgba(43, 238, 134, 0.4);
}

.cmd-icon svg,
.strip-icon svg,
.feature-icon svg,
.market-advisory svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Cards: a little more depth on hover ---------- */
.feature-card,
.settings-card,
.flow-card,
.step-card,
.roadmap-card,
.market-card {
    transition: transform 260ms var(--ease-out), border-color 260ms ease, box-shadow 260ms ease;
}

@media (hover: hover) {
    .feature-card:hover,
    .settings-card:hover,
    .roadmap-card:hover,
    .market-card:hover {
        transform: translateY(-4px);
        border-color: rgba(139, 108, 255, 0.38);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 108, 255, 0.12) inset;
    }
}

.feature-icon {
    color: #a5f3fc;
    background:
        radial-gradient(circle at 30% 20%, rgba(139, 108, 255, 0.28), transparent 70%),
        rgba(6, 182, 212, 0.08);
}

/* ---------- Markets (formerly inline styles) ---------- */
.market-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    border: 0;
    background: none;
    overflow: visible;
}

.market-card {
    --tint: 59, 130, 246;
    --ink: #93c5fd;
    padding: 20px;
    border-radius: 14px;
    background: rgba(var(--tint), 0.08);
    border: 1px solid rgba(var(--tint), 0.26);
}

.market-card--fx { --tint: 16, 185, 129; --ink: #6ee7b7; }
.market-card--commodity { --tint: 245, 158, 11; --ink: #fde047; }
.market-card--stocks { --tint: 168, 85, 247; --ink: #e9d5ff; }

.market-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.market-card__head span {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
}

.market-card__head em {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(var(--tint), 0.2);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.market-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.market-advisory {
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.market-advisory strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #f87171;
    font-size: 0.92rem;
}

.market-advisory strong svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.market-advisory p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
}

/* ---------- Pricing ---------- */
.pricing-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1040px;
    margin-inline: auto;
}

.price-card .price-main {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.pricing-footnote {
    margin: 0.9rem 0 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.8rem;
}

.founder-vault {
    max-width: 1040px;
    margin-inline: auto;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.founder-vault::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 420px;
    height: 420px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(139, 108, 255, 0.22), transparent 65%);
}

.vault-price strong {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.payment-panel {
    max-width: 1040px;
    margin-inline: auto;
}

.payment-panel img {
    height: 26px;
    width: auto;
}

.sales-final {
    max-width: 720px;
    margin-inline: auto;
    color: var(--text-muted);
    font-size: 0.86rem;
}

/* ---------- Roadmap ---------- */
.roadmap-card--phone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem;
}

.roadmap-card--phone img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.roadmap-card--phone p {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
}

/* ---------- FAQ: native disclosure, works without JavaScript ---------- */
details.faq-item > summary {
    list-style: none;
    cursor: pointer;
}

details.faq-item > summary::-webkit-details-marker {
    display: none;
}

details.faq-item > summary::after {
    content: "";
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    background: #67e8f9;
    mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 180ms ease;
}

details.faq-item[open] > summary::after {
    transform: rotate(45deg);
}

details.faq-item[open] {
    border-color: rgba(6, 182, 212, 0.3);
}

details.faq-item > summary:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: -2px;
}

.faq-col {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p {
    margin-top: 0.7rem;
}

.faq-answer ul {
    padding-left: 1.1rem;
}

.faq-answer li {
    list-style: disc;
    margin: 0.25rem 0;
}

/* ---------- Final call to action ---------- */
.final-cta-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 0 28px rgba(139, 108, 255, 0.55));
}

.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

/* ---------- Footer ---------- */
.footer-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
    align-items: start;
    gap: 2rem 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-columns h2 {
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-columns ul {
    display: grid;
    gap: 0.5rem;
}

.footer-columns a {
    color: var(--text-muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.footer-columns a:hover {
    color: #fff;
}

.footer-payments {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.footer-payments > span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-payments > div {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* ---------- Inner pages ---------- */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 3.5rem);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 108, 255, 0.16), transparent 32rem),
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.1), transparent 28rem);
}

.page-hero h1 {
    margin: 0;
    max-width: 900px;
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 5.4vw, 4rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.page-hero p {
    max-width: 720px;
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.page-hero .hero-actions {
    justify-content: flex-start;
    margin-top: 1.6rem;
}

.page-section {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.panel {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.56);
    box-shadow: var(--elev-1);
}

.prose {
    max-width: 780px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.prose h2 {
    margin: 2.4rem 0 0.8rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p,
.prose ul {
    margin: 0 0 1rem;
}

.prose ul {
    padding-left: 1.2rem;
}

.prose li {
    list-style: disc;
    margin: 0.35rem 0;
}

.prose strong {
    color: var(--text-primary);
}

.legal-meta {
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

/* ---------- Forms (account and checkout) ---------- */
.form-grid {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.7);
    color: var(--text-primary);
    font-size: 1rem;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.22);
}

.field small {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.check input {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--gold);
}

.notice {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.notice[data-tone="error"] {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
    color: #fecaca;
}

.notice[data-tone="ok"] {
    border-color: rgba(43, 238, 134, 0.4);
    background: rgba(43, 238, 134, 0.07);
    color: #bbf7d0;
}

.notice:empty {
    display: none;
}

.tabs-inline {
    display: inline-flex;
    gap: 0.3rem;
    padding: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.6);
}

.tabs-inline button {
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
}

.tabs-inline button[aria-pressed="true"] {
    background: rgba(245, 158, 11, 0.16);
    color: var(--gold-soft);
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: #67e8f9;
    font-size: 0.86rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

[hidden] {
    display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .pricing-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pricing-grid--three {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .roadmap-card--phone {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .footer-payments {
        justify-content: flex-start;
    }

    .hero-microtrust {
        font-size: 0.8rem;
    }
}

/* ---------- Free-trial section (moved here from the retired funnel.css) ---------- */
.demo-promo { position: relative; overflow: hidden; }
.demo-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(520px 360px at 78% 30%, rgba(139, 108, 255, 0.12), transparent 70%),
        radial-gradient(460px 320px at 12% 70%, rgba(59, 130, 246, 0.08), transparent 70%);
}
.demo-promo .container { position: relative; z-index: 1; }
.demo-promo__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; margin-top: 2.6rem; }
.demo-promo__points { display: grid; gap: 1rem; margin: 0 0 2rem; }
.demo-point { display: flex; gap: 0.8rem; align-items: flex-start; }
.demo-point__ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: #052e1a;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, #4ade80, var(--neon));
    box-shadow: 0 6px 16px -6px rgba(43, 238, 134, 0.6);
}
.demo-point strong { display: block; margin-bottom: 2px; font-size: 1rem; }
.demo-point span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.demo-promo__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.demo-promo__note { margin: 1.2rem 0 0; color: var(--text-soft); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em; }

.app-shot__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 6px 12px;
}
.app-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #313c4f; }
.app-shot__bar i:nth-child(1) { background: var(--gold); }
.app-shot__bar i:nth-child(2) { background: var(--crystal); }
.app-shot__bar i:nth-child(3) { background: var(--cyan); }
.app-shot__bar span { margin-left: 8px; color: var(--text-soft); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; }
.app-shot__frame img { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }

@media (min-width: 981px) and (hover: hover) {
    .app-shot__frame { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform 0.5s var(--ease-out); }
    .app-shot:hover .app-shot__frame { transform: perspective(1600px) rotateY(0) rotateX(0); }
}

.demo-boundary { position: relative; padding: 0 0 clamp(4.5rem, 9vw, 7rem); }
.demo-boundary__shell {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(8, 13, 25, 0.9) 42%, rgba(245, 158, 11, 0.06));
    box-shadow: 0 32px 90px -58px rgba(6, 182, 212, 0.9);
}
.demo-boundary__shell::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, #06b6d4, #f59e0b, transparent); }
.demo-boundary__intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr); column-gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.demo-boundary__intro .eyebrow { grid-column: 1 / -1; }
.demo-boundary__intro h2 { max-width: 650px; margin: 0.55rem 0 0; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.demo-boundary__intro p { margin: 0; color: var(--text-muted); }
.demo-boundary__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2rem; }
.demo-boundary__grid article { min-height: 190px; padding: 1.15rem; border: 1px solid rgba(148, 163, 184, 0.13); border-radius: 16px; background: rgba(2, 6, 23, 0.42); }
.demo-boundary__grid article > span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 1rem; border: 1px solid rgba(6, 182, 212, 0.3); border-radius: 9px; color: #67e8f9; background: rgba(6, 182, 212, 0.08); font: 700 0.68rem/1 var(--font-mono); }
.demo-boundary__grid strong { display: block; color: var(--text-primary); font-size: 0.94rem; line-height: 1.35; }
.demo-boundary__grid p { margin: 0.6rem 0 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; }

@media (max-width: 980px) {
    .demo-promo__grid { grid-template-columns: 1fr; }
    .demo-boundary__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .demo-boundary__intro { grid-template-columns: 1fr; }
    .demo-boundary__intro p { margin-top: 1rem; }
    .demo-boundary__grid { grid-template-columns: 1fr; }
    .demo-boundary__grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Sora is wide; the original 800-weight labels read as shouting in it. */
.mode-row strong,
.operation-list strong,
.command-proof-grid strong,
.prediction-row strong,
.console-metrics strong {
    font-weight: 600;
}

/* ---------- Phones: header and headline ---------- */
.desktop-nav .nav-cta {
    display: none;
}

@media (max-width: 600px) {
    /* The free-trial button lives in the hero and the menu; on a phone the header keeps logo, language and menu. */
    .header-cta {
        display: none;
    }

    .desktop-nav .nav-cta {
        display: flex;
        margin-top: 0.8rem;
        border-bottom: 0;
        color: #080c14;
    }

    .hero h1 {
        font-size: clamp(2rem, 9.4vw, 2.7rem);
    }

    .pocket-word {
        gap: 0.2em;
    }

    .hero-inline-logo {
        height: 0.95em;
        width: 0.95em;
    }
}


/* ---------- Polish ---------- */
.settings-card h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.demo-point__ic {
    font-size: 0;
}

.demo-point__ic::before {
    content: "";
    width: 14px;
    height: 14px;
    background: #052e1a;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.vault-copy > p {
    margin-bottom: 1.1rem;
}

/* ---------- Inner pages ---------- */
.strategy-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.page-hero-compact h1,
.download-hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 3.8rem);
    line-height: 1.04;
}

.strategy-hero p a,
.checkout-hint a,
.checkout-fine a,
.account-steps a,
.download-box a {
    color: #67e8f9;
    text-decoration: underline;
    text-decoration-color: rgba(103, 232, 249, 0.35);
    text-underline-offset: 3px;
}

.container.narrow {
    max-width: 860px;
}

.faq-answer table {
    width: 100%;
    margin: 0.4rem 0 0.8rem;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.faq-answer th,
.faq-answer td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.faq-answer th {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.faq-answer ol {
    padding-left: 1.2rem;
}

.faq-answer ol li {
    list-style: decimal;
    margin: 0.3rem 0;
}

.faq-answer a {
    color: #67e8f9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section .prose {
    margin-inline: auto;
}

.footer-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    align-items: center;
}

.footer-brand img {
    grid-row: 1 / span 2;
}

.footer-brand strong {
    align-self: end;
    white-space: nowrap;
}

.footer-brand span {
    align-self: start;
}

/* ---------- Checkout ---------- */
.checkout-section {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.checkout-plans {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.checkout-plans legend,
.checkout-account h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.checkout-step-number {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #080c14;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
}

.plan-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "radio name price" "radio note note";
    align-items: center;
    column-gap: 0.85rem;
    row-gap: 0.15rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.plan-option:hover {
    border-color: rgba(245, 158, 11, 0.45);
}

.plan-option input {
    grid-area: radio;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: var(--gold);
}

.plan-option:has(input:checked) {
    border-color: rgba(245, 158, 11, 0.8);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.7) 60%);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25) inset, 0 16px 40px rgba(0, 0, 0, 0.3);
}

.plan-option:has(input:focus-visible) {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.plan-option__name {
    grid-area: name;
    color: var(--text-primary);
    font-weight: 700;
}

.plan-option__name em {
    margin-left: 0.4rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: var(--gold-soft);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.plan-option__price {
    grid-area: price;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-option__note {
    grid-area: note;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.plan-option--lifetime {
    border-color: rgba(139, 108, 255, 0.35);
}

.checkout-hint {
    margin: 0 0 1.1rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.checkout-fine {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.checkout-account .tabs-inline {
    margin-bottom: 1.1rem;
}

.checkout-account .notice {
    margin-top: 1rem;
}

.checkout-summary {
    display: grid;
    margin: 0 0 1.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.checkout-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line);
}

.checkout-summary div:last-child {
    border-bottom: 0;
}

.checkout-summary dt {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.checkout-summary dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    overflow-wrap: anywhere;
    text-align: right;
}

.checkout-summary__total {
    background: rgba(245, 158, 11, 0.08);
}

.checkout-summary__total dd {
    color: var(--gold-soft);
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.checkout-account .link-button {
    margin-top: 0.8rem;
}

.checkout-after .payment-panel {
    margin-top: 1.5rem;
}

/* ---------- Order status (after paying) ---------- */
.order-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.4rem 1.5rem;
}

.order-status__light {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.8);
}

.motion .order-status[data-state="checking"] .order-status__light,
.motion .order-status[data-state="waiting"] .order-status__light,
.motion .order-status[data-state="processing"] .order-status__light {
    animation: apexPulse 1.6s ease-in-out infinite;
}

@keyframes apexPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.order-status[data-state="paid"] .order-status__light {
    background: var(--neon);
    box-shadow: 0 0 18px rgba(43, 238, 134, 0.85);
}

.order-status[data-state="failed"] .order-status__light,
.order-status[data-state="needs-support"] .order-status__light,
.order-status[data-state="unknown"] .order-status__light {
    background: var(--red);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.75);
}

.order-status__line {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

.order-status__done {
    grid-column: 2;
}

.step-grid--compact .step-card h3 {
    font-size: 1.1rem;
}

/* ---------- Account ---------- */
.account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.account-layout .tabs-inline {
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.account-layout .notice {
    margin-top: 1rem;
}

.account-next {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.account-aside h2,
.download-needs h2 {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.account-steps {
    display: grid;
    gap: 0.9rem;
    margin: 0 0 1.2rem;
    padding: 0;
    counter-reset: step;
}

.account-steps li {
    position: relative;
    padding-left: 2.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    counter-increment: step;
}

.account-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
}

.account-steps strong {
    color: var(--text-primary);
}

/* ---------- Download ---------- */
.download-hero .hero-media {
    background-image: url("/img/hero-market.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.download-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.download-box {
    display: grid;
    gap: 1rem;
    max-width: 520px;
    margin-top: 1.6rem;
}

.download-box__head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.download-box__head img {
    width: 40px;
    height: 40px;
}

.download-box__head strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.download-box__head span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.download-box__pending {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-box__hash {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

/* The account a download needs: the same tabs and fields as the account page, inside the box. */
.download-gate {
    display: grid;
    gap: 0.9rem;
}

.strategy-hero .download-box .download-box__lead {
    color: var(--text-secondary);
}

.download-gate .form-grid small,
.strategy-hero .download-gate .checkout-fine {
    font-size: 0.78rem;
}

.step-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.download-needs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.download-needs p {
    color: var(--text-secondary);
}

.tick-list {
    display: grid;
    gap: 0.7rem;
}

.tick-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--text-secondary);
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 5px;
    background: linear-gradient(135deg, #4ade80, var(--neon));
}

.tick-list li::after {
    content: "";
    position: absolute;
    left: 0.22rem;
    top: 0.52rem;
    width: 0.6rem;
    height: 0.6rem;
    background: #052e1a;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 1080px) {
    .step-grid--five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .checkout-layout,
    .account-layout,
    .download-layout,
    .download-needs__grid {
        grid-template-columns: 1fr;
    }

    .step-grid--five {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .step-grid--five {
        grid-template-columns: 1fr;
    }

    .plan-option {
        padding: 0.9rem;
    }
}

.strategy-hero .download-box p,
.strategy-hero .download-box span {
    max-width: none;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.tick-list a.text-link,
.account-steps a.text-link {
    display: inline;
    margin: 0;
}

@media (max-width: 540px) {
    .btn {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }
}

/* Inner pages that are tools (checkout, account, results, legal) need less hero. */
.strategy-hero.page-hero-compact {
    min-height: 0;
    padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 5vw, 3.5rem);
}

/* Sign-in forms work only through their script; without it they stay hidden and the page's
   <noscript> note says how to buy, so a password can never end up in an address. */
.no-js [data-form],
.no-js [data-download-form],
.no-js [data-step],
.no-js .tabs-inline {
    display: none !important;
}

/* ---------- Design review fixes (2026-10-14) ---------- */
/* Markets: two columns on mid-size screens, so no card sits alone and no badge is cut. */
.market-card__head {
    flex-wrap: wrap;
}

@media (min-width: 640px) and (max-width: 1180px) {
    .market-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* The trial checklist's tick: one tick, drawn, not the text glyph. */
.demo-point span.demo-point__ic {
    font-size: 0;
    color: transparent;
}

/* The roadmap label hugs its words. */
.roadmap-tag {
    align-self: flex-start;
    width: auto;
}

.roadmap-card h3 {
    display: block;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: -0.015em;
}

.roadmap-card p {
    margin: 0;
}

.roadmap-shot {
    margin: 0;
}

.roadmap-shot figcaption {
    margin-top: 0.5rem;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Badges sit under the picture, never over its window controls or its content. */
.preview-badge {
    position: static;
    margin: 0.75rem 0 0;
}

.preview-panel {
    overflow: visible;
    background: none;
}

.preview-panel img {
    border-radius: 12px;
}

/* The phone menu fills the screen, so the page's own buttons never show through below it. */
.site-header.is-open .desktop-nav {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
}

/* Nothing smaller than 12 px. */
.trial-pass__foot,
.trial-pass__badge,
.roster-label {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .proof-label {
        font-size: 0.75rem;
    }
}

/* Headings break evenly instead of leaving one word alone. */
h2,
h3 {
    text-wrap: balance;
}

/* Side margins grow with the screen instead of staying at 16 px. */
.container {
    width: min(1180px, calc(100% - 2 * clamp(16px, 4vw, 40px)));
}

/* Plans: three columns down to tablets; one only on phones. */
@media (max-width: 900px) {
    .pricing-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
    }
}

@media (max-width: 760px) {
    .pricing-grid--three {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

.price-save {
    margin: -0.35rem 0 0.9rem;
    color: #86efac;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Links that are tapped on phones are at least 40 px tall. */
.broker-card-link {
    min-height: 40px;
}

.partner-note {
    margin-left: 0.35rem;
    padding: 1px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .btn {
        padding-inline: 1rem;
        letter-spacing: 0.02em;
    }
}

/* ---------- Recovery-ladder calculator ---------- */
.ladder-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.ladder-note {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.ladder {
    display: grid;
    gap: 1.1rem;
}

.ladder-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.1rem;
}

.ladder-form output {
    color: var(--gold-soft);
    font-family: var(--font-mono);
    font-weight: 700;
}

.ladder-form input[type="range"] {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    accent-color: var(--gold);
}

.ladder-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 25%,
        rgba(2, 6, 23, 0.6);
}

.ladder-bars span {
    flex: 1;
    height: var(--h, 10%);
    min-height: 4px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
    transition: height 280ms var(--ease-out);
}

.ladder-bars span.is-beyond {
    background: repeating-linear-gradient(135deg, rgba(239, 68, 68, 0.65) 0 6px, rgba(239, 68, 68, 0.35) 6px 12px);
    box-shadow: none;
}

.ladder-table {
    overflow-x: auto;
}

.ladder-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.ladder-table th,
.ladder-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.ladder-table th:first-child,
.ladder-table td:first-child {
    text-align: left;
}

.ladder-table th {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ladder-table td {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.ladder-table td:last-child {
    color: #86efac;
}

.ladder-table tr.is-beyond td {
    color: #fca5a5;
}

@media (max-width: 900px) {
    .ladder-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .ladder-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    /* On a phone the table keeps step, stake and the result of a win; the running loss is in the summary. */
    .ladder-table th:nth-child(3),
    .ladder-table td:nth-child(3) {
        display: none;
    }
}

/* ---------- Download: the Windows warning, and passwords ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.trust-card h2 {
    margin: 0 0 0.9rem;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    letter-spacing: -0.02em;
}

.trust-card p {
    color: var(--text-secondary);
}

.trust-steps {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding-left: 1.3rem;
}

.trust-steps li {
    list-style: decimal;
    color: var(--text-secondary);
}

.trust-card .tick-list {
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}
