/* ============================================================
   TradeStrike homepage — pixel implementation of Figma
   "Home - Kish" (node 2445:11516, 1920w reference frame)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
    font-family: "Neue Haas Grotesk Text Pro";
    src: url("assets/fonts/NHaasGroteskTXPro-55Rg.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Neue Haas Grotesk Text Pro";
    src: url("assets/fonts/NHaasGroteskTXPro-65Md.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --ash: #7b7c84;
    --glacier: #b2cdff;
    --ultra-blue: #1800f7;
    --panel: rgba(54, 59, 67, 0.3);
    --panel-border: #31363d;
    --grey: #e5e5e5;
    --panel-text-light: #c8c8cd;
    --step-grey: #adb5c3;
    --font: "Neue Haas Grotesk Text Pro", "Helvetica Neue", Arial, sans-serif;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

body {
    font-family: var(--font);
    font-weight: 400;
    background: #000;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.container {
    width: 1200px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}

/* Shared type ramp */
.h3 { font-size: 55px; line-height: 1.2; letter-spacing: -0.55px; font-weight: 400; }
.h4 { font-size: 40px; line-height: 1.2; letter-spacing: -0.4px; font-weight: 400; }

/* ============================================================
   Hero banner
   ============================================================ */
.beta-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 44px;
    background: var(--ultra-blue);
    /* Covers the sliver Safari can open above a sticky bar while its toolbar collapses. */
    box-shadow: 0 -40px 0 var(--ultra-blue);
}

/* Whole-pixel line heights keep the sticky bar on pixel boundaries, so no seam flickers through it. */
.beta-banner p {
    max-width: 1200px;
    margin: 0;
    font-size: 12px;
    line-height: 17px;
    color: #fff;
    text-align: center;
}

.beta-banner a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.beta-banner-close {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.beta-banner-close:hover,
.beta-banner-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.lockup {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #06070b;
}

.lockup--cobalt {
    background: #000;
}

.lockup--cobalt .download-cta,
.lockup--cobalt .site-footer {
    background: transparent;
    position: relative;
    z-index: 1;
}

.lockup--cobalt .download-cta {
    padding-bottom: 0;
}

.lockup--cobalt .site-footer {
    padding-top: 0;
}

.lockup .hero,
.lockup .trade--dark {
    background: transparent;
}

/* Figma "Top Gradient": three blurred ellipses over black, placed as in the 1920px frame. */
.lockup--void { background: #000; }
.lockup--void::before {
    content: "";
    position: absolute;
    left: calc(50% - 971.4px);
    top: -697px;
    width: 1993.32px;
    height: 2127px;
    z-index: 0;
    pointer-events: none;
    background: url("assets/figma/hero-top-gradient.svg") no-repeat 0 0 / 100% 100%;
}

.lockup--void .trade--dark {
    isolation: auto;
    overflow: visible;
    padding: 220px 0 160px;
}

/* Swap backdrop — large, faint onboarding tiles drifting in the margins. */

/* Flat logos get the same puffy squircle as the 3D tiles: brand fill, top-left gloss, soft base shade. */

.hero {
    position: relative;
    height: 900px;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

.site-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    --sx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --sx-header-speed: 0.32s;
    transform: translate3d(0, var(--sx-header-offset, 0px), 0);
    will-change: transform;
}
/* Scrolls away with the page past 120px, slides back on any scroll up (header script in site-header.php). */
.site-top.is-returning { transition: transform var(--sx-header-speed) var(--sx-ease); }
.site-top--overlay { margin-bottom: -88px; }
.site-header {
    position: relative;
    display: flex;
    align-items: center;
    height: 88px;
}

.site-nav {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 48px));
    height: 41px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    border-radius: 1000px;
    transition: width var(--sx-header-speed) var(--sx-ease), height var(--sx-header-speed) var(--sx-ease), padding var(--sx-header-speed) var(--sx-ease), box-shadow 0.22s var(--sx-ease);
}
/* Bare at the top; once scrolled, an icon-only glass pill. */
.site-nav::before,
.site-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.22s var(--sx-ease), background 0.35s ease;
}
.site-nav::before {
    background:
        radial-gradient(at 7% 0%, rgba(255, 255, 255, 0.7), transparent 48%),
        radial-gradient(at 96% 100%, rgba(228, 240, 255, 0.45), transparent 42%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.57), rgba(255, 255, 255, 0.2) 43%, rgba(222, 234, 249, 0.18) 72%, rgba(255, 255, 255, 0.46));
    -webkit-backdrop-filter: blur(26px) saturate(1.75) contrast(1.04);
    backdrop-filter: blur(26px) saturate(1.75) contrast(1.04);
}
.site-nav::after {
    --rim-light: rgba(0, 0, 0, 0.11);
    --rim-fade: rgba(0, 0, 0, 0.03);
    padding: 1px;
    background: linear-gradient(var(--rim-light), var(--rim-fade) 50%, var(--rim-light));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.site-header.is-on-dark .site-nav::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    backdrop-filter: blur(22px) saturate(1.8);
}
.site-header.is-on-dark .site-nav::after {
    --rim-light: rgba(150, 158, 196, 0.55);
    --rim-fade: rgba(116, 111, 130, 0.15);
}
.site-header.is-scrolled .site-nav {
    height: 53px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 12px 36px rgba(24, 48, 86, 0.106), 0 2px 6px rgba(24, 48, 86, 0.067);
}
.site-header.is-scrolled.is-on-dark .site-nav { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.2); }
.site-header.is-scrolled .site-nav::before,
.site-header.is-scrolled .site-nav::after { opacity: 1; }
@media (min-width: 1001px) {
    .site-header.is-scrolled .site-nav { width: min(836px, calc(100% - 64px)); }
}

.nav-logo { --logo-w: 171.2px; --logo-h: 23.98px; position: relative; display: block; width: var(--logo-w); height: var(--logo-h); flex-shrink: 0; transition: width var(--sx-header-speed) var(--sx-ease); }
.nav-logo-mark,
.nav-logo-word { position: absolute; left: 0; top: 0; height: 100%; }
.nav-logo-mark { width: var(--logo-h); overflow: hidden; }
.nav-logo img { width: var(--logo-w); height: var(--logo-h); max-width: none; }
.nav-logo-word { clip-path: inset(0 0 0 16.8%); will-change: opacity, transform; transition: opacity 0.2s ease-out 0.12s, transform 0.3s var(--sx-ease) 0.12s; }
.site-header.is-scrolled .nav-logo { width: var(--logo-h); transition-delay: 0.06s; }
.site-header.is-scrolled .nav-logo-word { opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity 0.06s linear, transform 0s linear 0.06s; }
@media (prefers-reduced-motion: reduce) {
    .site-top.is-returning, .site-nav, .nav-logo, .nav-logo-word { transition: none; }
}
.nav-logo-dark,
.site-header.is-on-dark .nav-logo-light { display: none; }
.site-header.is-on-dark .nav-logo-dark { display: block; }

.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

/* Dropdown menus — glass panels that follow the header's light/dark theme. */
.nav-menus {
    display: flex;
    justify-self: start;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-item { position: relative; }
.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 41px;
    padding: 0;
    border: 0;
    border-radius: 1000px;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
    color: #0c0d11;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.35s ease;
}
.nav-chevron { width: 12px; height: 12px; transition: rotate 0.2s ease; }
@media (min-width: 900px) {
    .nav-trigger:hover,
    .nav-item.is-open .nav-trigger { opacity: 0.7; }
    .nav-menus .nav-chevron { display: none; }
}
.nav-item.is-open .nav-chevron { rotate: 180deg; }

.nav-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    translate: 0 6px;
    display: grid;
    gap: 2px;
    min-width: 270px;
    padding: 8px;
    border: 0.5px solid rgba(12, 13, 17, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    backdrop-filter: blur(24px) saturate(1.6);
    box-shadow: 0 20px 50px rgba(24, 48, 86, 0.16), 0 2px 8px rgba(24, 48, 86, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, translate 0.18s ease, visibility 0s linear 0.18s;
}
/* Bridges the gap under the trigger so hover isn't lost on the way down. */
.nav-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}
.nav-menu--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 560px; }
.nav-item.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition: opacity 0.18s ease, translate 0.18s ease;
}
@media (hover: hover) and (min-width: 900px) {
    .nav-item:hover .nav-menu {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        transition: opacity 0.18s ease, translate 0.18s ease;
    }
    .nav-item:hover .nav-trigger { opacity: 0.7; }
}
.nav-menu a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #0c0d11;
    text-decoration: none;
    transition: background 0.15s ease;
}
.nav-menu a:hover,
.nav-menu a:focus-visible { background: rgba(12, 13, 17, 0.05); }
.nav-menu strong { font-size: 15px; font-weight: 500; line-height: 1.3; }
.nav-menu span { font-size: 13px; line-height: 1.35; color: rgba(12, 13, 17, 0.56); }

.site-header.is-on-dark .nav-trigger { color: #fff; }
.site-header.is-on-dark .nav-menu {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(16, 17, 22, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.site-header.is-on-dark .nav-menu a { color: #fff; }
.site-header.is-on-dark .nav-menu a:hover,
.site-header.is-on-dark .nav-menu a:focus-visible { background: rgba(255, 255, 255, 0.08); }
.site-header.is-on-dark .nav-menu span { color: rgba(255, 255, 255, 0.58); }

/* Language picker — a group in the burger panel on phones; on desktop it lives in the footer. */
.nav-item--lang { display: none; }
.nav-menu--lang { min-width: 240px; }
.nav-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: start;
    color: #0c0d11;
    cursor: pointer;
    transition: background 0.15s ease;
}
.nav-lang-option:hover,
.nav-lang-option:focus-visible { background: rgba(12, 13, 17, 0.05); }
.nav-lang-flag { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; }
.site-header .nav-menu .nav-lang-option span { flex: 1; font-size: 15px; line-height: 1.3; color: inherit; }
/* The app's own selection circles: empty ring when idle, blue tick when chosen. */
.nav-lang-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: url("assets/flags/check-inactive-light.png") center / contain no-repeat;
}
.site-header.is-on-dark .nav-lang-check { background-image: url("assets/flags/check-inactive-dark.png"); }
.site-header .nav-lang-option[aria-pressed="true"] .nav-lang-check { background-image: url("assets/flags/check-active.png"); }
.site-header.is-on-dark .nav-lang-option { color: #fff; }
.site-header.is-on-dark .nav-lang-option:hover,
.site-header.is-on-dark .nav-lang-option:focus-visible { background: rgba(255, 255, 255, 0.08); }

.nav-burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: 1000px;
    background: rgba(12, 13, 17, 0.06);
    cursor: pointer;
}
.nav-burger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    border-radius: 2px;
    background: #0c0d11;
    transition: transform 0.25s ease, background 0.35s ease;
}
.nav-burger span:first-child { top: 18px; }
.nav-burger span:last-child { top: 25px; }
.site-nav.is-menu-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-nav.is-menu-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.site-header.is-on-dark .nav-burger { background: rgba(255, 255, 255, 0.12); }
.site-header.is-on-dark .nav-burger span { background: #fff; }

/* Below 900px the menus fold into one panel opened by the burger, with every group expanded. */
@media (max-width: 899px) {
    .site-nav { grid-template-columns: 1fr auto; }
    .nav-burger { display: block; }
    .nav-menus {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        margin: 0;
        right: 0;
        max-height: calc(100svh - 180px);
        overflow-y: auto;
        padding: 10px 8px 14px;
        border: 0.5px solid rgba(12, 13, 17, 0.08);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(24px) saturate(1.6);
        backdrop-filter: blur(24px) saturate(1.6);
        box-shadow: 0 20px 50px rgba(24, 48, 86, 0.18);
    }
    .site-nav.is-menu-open .nav-menus { display: block; }
    .site-header.is-on-dark .nav-menus {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(16, 17, 22, 0.94);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }
    /* An accordion: each group is one row, tapping it opens that group and closes the others. */
    .nav-menus { justify-self: stretch; padding: 6px 8px 8px; }
    .nav-menus .nav-item + .nav-item { border-top: 0.5px solid rgba(12, 13, 17, 0.08); }
    .site-header.is-on-dark .nav-menus .nav-item + .nav-item { border-top-color: rgba(255, 255, 255, 0.08); }
    .site-header .nav-menus .nav-trigger,
    .site-header.is-on-dark .nav-menus .nav-trigger {
        width: 100%;
        height: 56px;
        padding: 0 12px;
        gap: 10px;
        border-radius: 14px;
        font-size: 17px;
        color: #0c0d11;
        background: transparent;
    }
    .site-header.is-on-dark .nav-menus .nav-trigger { color: #fff; }
    .nav-menus .nav-chevron { width: 14px; height: 14px; margin-inline-start: auto; opacity: 0.45; }
    .site-header .nav-lang-current { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; font-size: 15px; font-weight: 400; opacity: 0.6; }
    .site-header .nav-lang-current + .nav-chevron { margin-inline-start: 0; }
    .site-header .nav-lang-current .nav-lang-flag { width: 20px; height: 20px; }
    .nav-menus .nav-menu,
    .site-header.is-on-dark .nav-menus .nav-menu {
        position: static;
        translate: none;
        display: none;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        min-width: 0;
        padding: 0 0 10px;
        border: 0;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    .nav-menus .nav-item.is-open .nav-menu { display: grid; animation: nav-group-in 0.22s ease-out both; }
    .nav-menus .nav-menu::before { display: none; }
    .nav-menus .nav-menu a { padding: 11px 12px 11px 24px; border-radius: 12px; }
    .nav-menus .nav-menu strong { font-size: 15px; font-weight: 400; opacity: 0.8; }
    .nav-menus .nav-menu a span { display: none; }
    .nav-item--lang { display: block; }
    .nav-menus .nav-lang-option { padding: 10px 12px 10px 24px; }
    .nav-panel-cta { display: block; padding: 8px 4px 2px; }
    .nav-panel-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        border-radius: 1000px;
        background: #0c0d11;
        color: #fff;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
    }
    .site-header.is-on-dark .nav-panel-cta a { background: #fff; color: #0c0d11; }
}
.nav-panel-cta { display: none; }
@media (max-width: 899px) {
    .nav-panel-cta { display: block; }
}
@keyframes nav-group-in {
    from { opacity: 0; translate: 0 -4px; }
    to { opacity: 1; translate: 0 0; }
}
@media (min-width: 900px) {
    .site-header .nav-lang-current { display: none; }
}

section[id], [data-trade-steps][id] { scroll-margin-top: 136px; }
@media (max-width: 767px) {
    section[id], [data-trade-steps][id] { scroll-margin-top: 170px; }
}

.nav-cta {
    border-radius: 1000px;
    height: 41px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    position: relative;
    isolation: isolate;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fill sits on ::before so the glow on ::after can stay beneath it. */
.nav-cta::before {
    content: "";
    position: absolute;
    pointer-events: none;
}

.nav-cta::before {
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: var(--ultra-blue);
    box-shadow: inset 0 0 0 0 rgba(64, 36, 255, 0);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: scale(1.08) translateY(-2px);
}

/* Hover — the pill lights up from within: same blue, more vivid. */
.nav-cta:hover::before,
.nav-cta:focus-visible::before {
    background-color: #2408ff;
    box-shadow: inset 0 0 14px 1px rgba(64, 36, 255, 0.95);
}

@media (prefers-reduced-motion: reduce) {
    .nav-cta:hover,
    .nav-cta:focus-visible {
        transform: none;
    }
}

/* Figma "Phone": a 455 x 771 box faded out by its mask. --s scales the whole mockup on smaller screens. */
.hero-iphone {
    --s: 1;
    position: absolute;
    left: calc(50% + 70px);
    top: 119px;
    width: calc(455px * var(--s));
    height: calc(771px * var(--s));
    z-index: 3;
    pointer-events: none;
    user-select: none;
}
.hero-iphone-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 455px;
    height: 771px;
    overflow: hidden;
    transform: scale(var(--s));
    transform-origin: 0 0;
    -webkit-mask: url("assets/figma/hero-phone-mask.svg") 0 0 / 100% 100% no-repeat;
    mask: url("assets/figma/hero-phone-mask.svg") 0 0 / 100% 100% no-repeat;
}
.hero-iphone-frame,
.hero-iphone-screen { position: absolute; }
.hero-iphone-frame { left: 5.916px; top: 13px; width: 437.759px; height: 907.019px; opacity: 0.4; }
.hero-iphone-screen { left: 22.753px; top: 26.85px; width: 404.357px; height: 878.505px; }
.hero-iphone-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero-text {
    position: absolute;
    left: calc(50% - 600px);
    top: calc(50% + 0.5px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 4;
}

.release-pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 20px;
    border: 1px solid #749bff;
    border-radius: 1000px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.22px;
    color: #749bff;
    background: rgba(116, 155, 255, 0.1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.release-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(162, 189, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-110%);
}
@media (prefers-reduced-motion: no-preference) {
    .release-pill::after { animation: release-pill-sweep 4.5s ease-in-out 1s infinite; }
}
@keyframes release-pill-sweep {
    0% { transform: translateX(-110%); }
    40%, 100% { transform: translateX(110%); }
}

.hero-text h1 {
    width: 550px;
    font-size: 70px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.7px;
    color: #fff;
}

.hero-line2 {
    white-space: nowrap;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), #a2bdff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Rotating first word — every word shares one grid cell, so the line
   never reflows as they swap. */
.hero-rotate,
.steps-rotate {
    display: inline-grid;
    vertical-align: top;
}

.hero-rotate > span,
.steps-rotate > span {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(0.3em);
    filter: blur(8px);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}

.steps-rotate { transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.steps-rotate > span { justify-self: start; white-space: nowrap; }

.hero-rotate > span.is-active,
.steps-rotate > span.is-active {
    opacity: 1;
    transform: none;
    filter: none;
}

.hero-rotate > span.is-leaving,
.steps-rotate > span.is-leaving {
    opacity: 0;
    transform: translateY(-0.3em);
    filter: blur(8px);
}

.hero-sub {
    width: 480px;
    font-size: 26px;
    line-height: 1.4;
    letter-spacing: -0.26px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}
/* Breaks the English line after "assets." as in the design; translations wrap at the full width. */
@media (min-width: 1280px) {
    html[lang="en"] .hero-sub { width: 390px; }
}

/* Store badges + ratings (hero + download CTA) */
.store-badges {
    display: flex;
    gap: 20.975px;
    align-items: flex-start;
}

.beta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px 0 14px;
    border-radius: 12px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
button.beta-btn { position: relative; overflow: hidden; font: inherit; text-align: left; cursor: not-allowed; }
.store-badges .beta-btn .beta-soon {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.store-badges .beta-btn:hover .beta-soon,
.store-badges .beta-btn:focus-visible .beta-soon,
.store-badges .beta-btn.is-tapped .beta-soon { opacity: 1; }
.beta-btn svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.beta-btn span {
    display: flex;
    flex-direction: column;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.2px;
}
.beta-btn small { font-size: 10.5px; font-weight: 400; letter-spacing: 0; opacity: 0.8; }
.hero .beta-btn { height: 47.69px; }
.hero .beta-btn span { gap: 2px; line-height: 18.7px; }
.hero .beta-btn small { font-size: 10.3px; font-weight: 500; line-height: 11.55px; }

.download-cta .beta-btn { height: 60px; gap: 12.6px; padding: 0 25px 0 17.7px; border-radius: 15px; border-color: rgba(255, 255, 255, 0.3); }
.download-cta .beta-btn svg { width: 27.8px; height: 27.8px; }
.download-cta .beta-btn span { gap: 2.5px; font-size: 21.5px; line-height: 23.65px; letter-spacing: -0.25px; }
.download-cta .beta-btn small { font-size: 13px; font-weight: 500; line-height: 14.6px; }

/* ============================================================
   Trade everything (white)
   ============================================================ */
.trade {
    background: #fff;
    padding: 150px 0 120px;
}

.trade--dark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #05060a;
}

.trade--dark .trade-block {
    position: relative;
}

.trade--dark .trade-block > * {
    position: relative;
    z-index: 1;
}

.trade-block + .trade-block {
    margin-top: 140px;
}

/* Aperture — one phone-sized field per block. Theme 1 Void, theme 3 Cobalt. */

.reveal {
    opacity: 0;
    translate: 0 14px;
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-revealed { opacity: 1; translate: 0 0; }

/* Hero only: each light field drifts on its own out-of-phase cycle, always
   to the right of its resting place so the glow stays clear of the copy.
   Uses the individual translate/scale/rotate properties so each layer's
   base transform is untouched. */

.trade--dark .tp-mini .tp-excellent,
.trade--dark .tp-mini .tp-score,
.trade--dark .trade-title h2 {
    color: #fff;
}

.trade--dark .trade-demo::before {
    content: "";
    position: absolute;
    inset: -12% -55%;
    z-index: 0;
    pointer-events: none;
}

.trade-block--void .trade-demo::before {
    background: radial-gradient(
        ellipse 68% 58% at 50% 46%,
        rgba(143, 168, 216, 0.38) 0%,
        rgba(110, 134, 176, 0.16) 40%,
        transparent 76%
    );
}

.trade--dark + .trade--dark {
    padding-top: 60px;
}

.trade--dark:has(+ .trade--dark) {
    padding-bottom: 60px;
}

.trade-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 60px;
}

.tp-mini {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
.tp-mini .tp-excellent {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.16px;
    color: #000;
}
.tp-mini .tp-score-group { display: flex; gap: 10px; align-items: center; }
.tp-mini .tp-score {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.16px;
    color: #000;
}
.tp-stars { display: flex; align-items: center; }
.tp-mini .tp-stars { width: 85.33px; height: 16px; gap: 1.15px; }
.tp-mini .tp-stars img { width: 16px; height: 16px; }
.tp-mini .tp-logo { position: relative; width: 94px; height: 21px; flex-shrink: 0; }
.tp-mini .tp-logo img { position: absolute; left: -1.07px; top: -2.07px; width: 95.07px; height: 23.18px; max-width: none; }

.trade-title h2 {
    font-size: 55px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.55px;
    color: #000;
    text-align: center;
    white-space: nowrap;
}

.trade-row {
    display: flex;
    gap: 96px;
    align-items: center;
    justify-content: center;
    padding-left: 80px;
}

.trade-demo {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Tesla asset page (Figma "Image", 580 x 846 with the 430 x 687 card inset 75 / 79). */
.trade-row:has(.trade-demo--asset) { gap: 30px; padding-left: 0; }
.trade-demo--asset { --s: 1; width: calc(580px * var(--s)); height: calc(846px * var(--s)); }
/* Figma "Bottom Gradient" aura (1915 x 1965 export), placed from the 1920 frame relative to the Image frame. */
.trade--dark .trade-demo.trade-demo--asset::before {
    inset: auto;
    left: calc(-667.5px * var(--s));
    top: calc(-584.6px * var(--s));
    width: calc(1825.9px * var(--s));
    height: calc(1965.07px * var(--s));
    background: url("assets/figma/trade-bottom-gradient.svg") no-repeat 0 0 / 100% 100%;
}
.trade-demo--asset .asset-card { z-index: 1; }
.asset-card {
    position: absolute;
    left: calc(75px * var(--s));
    top: calc(79px * var(--s));
    width: 430px;
    height: 687px;
    transform: scale(var(--s));
    transform-origin: 0 0;
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    user-select: none;
}
.asset-card img { display: block; max-width: none; }
.asset-card b, .asset-card strong { font-weight: 500; }
.asset-card small { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0.12px; color: rgba(255, 255, 255, 0.4); }
.asset-card .up { color: #16c861; }
.asset-card .muted { color: rgba(255, 255, 255, 0.5); }

.asset-card-top { position: absolute; left: 0; top: 0; width: 430px; height: 180px; overflow: hidden; }
.asset-card-blur { position: absolute; left: -100px; top: -427px; width: 630px; height: 630px; }
.asset-card-details {
    position: absolute;
    inset: 0 0 auto;
    padding: 19px 12px 8px;
    display: flex;
    align-items: flex-end;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
}
.asset-card-left { flex: 1 0 0; display: flex; flex-direction: column; gap: 16px; }
.asset-card-asset { display: flex; gap: 10px; align-items: center; }
.asset-icon { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.asset-icon-back {
    position: absolute;
    left: 0;
    top: 4px;
    width: 46px;
    height: 46px;
    -webkit-mask: url("assets/figma/asset-page/icon-mask.svg") 0 0 / 46px 46px no-repeat;
    mask: url("assets/figma/asset-page/icon-mask.svg") 0 0 / 46px 46px no-repeat;
}
.asset-icon-bg { position: absolute; inset: 0; width: 46px; height: 46px; }
.asset-icon-img { position: absolute; left: -1px; top: -1px; width: 48px; height: 48px; border-radius: 111.315px; object-fit: cover; }
.asset-icon-chain { position: absolute; left: 30px; top: 0; width: 20px; height: 20px; }
.asset-card-name { display: flex; flex-direction: column; gap: 2px; }
.asset-card-name strong { font-size: 24px; letter-spacing: 0.24px; }
.asset-card-ticker { display: flex; gap: 4px; align-items: center; padding: 2px 8px 2px 0; font-size: 14px; letter-spacing: 0.14px; color: rgba(255, 255, 255, 0.5); }
.asset-card-ticker img { width: 12px; height: 12px; }
.asset-card-price { display: flex; flex-direction: column; gap: 4px; }
.asset-card-price-row { display: flex; gap: 12px; align-items: center; }
.asset-card-price-row b { font-size: 36px; letter-spacing: 0.36px; }
.asset-card-hours { display: flex; padding: 6px; border: 1px solid rgba(91, 114, 245, 0.15); border-radius: 100px; background: rgba(91, 114, 245, 0.1); }
.asset-card-hours img { width: 14px; height: 14px; }
.asset-card-change { display: flex; gap: 6px; align-items: center; font-size: 14px; letter-spacing: 0.14px; }
.asset-card-change .up:first-child { display: flex; align-items: center; }
.asset-card-change .up:first-child img { width: 18px; height: 18px; }
.asset-card-change .muted { margin-left: 4px; }
.asset-card-right { flex: 1 0 0; display: flex; gap: 8px; align-items: flex-end; justify-content: flex-end; align-self: flex-end; }
.asset-card-right img { width: 34px; height: 34px; }

.asset-card-chart { position: absolute; left: 0; top: 190px; width: 417px; height: 317px; }
.asset-card-line { position: absolute; left: 1px; top: 0; width: 350.5px; height: 250.5px; transform: scaleY(-1); }
.asset-card-line img { position: absolute; left: -5.78px; top: -4.93px; width: 362.37px; height: 261.25px; }
.asset-card-echo { position: absolute; left: 324.51px; top: 3.49px; width: 60.36px; height: 60px; transform: scaleY(-1); }
.asset-card-frames { position: absolute; left: 14px; top: 259px; width: 403px; display: flex; gap: 29px; align-items: center; }
.asset-card-frames span {
    flex: 1 0 0;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.12px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.3);
}
.asset-card-frames span.is-on { background: rgba(255, 255, 255, 0.05); color: #fff; }
.asset-card-frames img { width: 4px; height: 4px; }

.asset-card-holdings {
    position: absolute;
    left: 12px;
    top: 487px;
    width: 406px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 16px;
    background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.09));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.asset-card-holdings-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.asset-card-holdings-head strong { flex: 1 0 0; font-size: 16px; letter-spacing: 0.16px; }
.asset-card-share { display: flex; gap: 2px; align-items: center; padding: 4px 14px 4px 9px; border: 0.5px solid rgba(255, 255, 255, 0.2); border-radius: 1000px; font-size: 12px; letter-spacing: 0.12px; }
.asset-card-share img { width: 24px; height: 24px; }
.asset-card-holdings-top { display: flex; gap: 12px; align-items: center; }
.asset-card-total { display: flex; gap: 10px; align-items: center; width: 190px; }
.asset-card-total img { width: 30px; height: 30px; border-radius: 100px; object-fit: cover; }
.asset-card-total b { display: block; font-size: 16px; letter-spacing: 0.16px; }
.asset-card-pnl { flex: 1 0 0; display: flex; flex-direction: column; gap: 2px; }
.asset-card-pnl > span { display: flex; gap: 6px; align-items: center; }
.asset-card-pnl b { font-size: 14px; letter-spacing: 0.14px; }
.asset-card-pct { display: flex; align-items: center; font-size: 12px; letter-spacing: 0.12px; }
.asset-card-pct img { width: 14px; height: 14px; }
.asset-card-rule { width: 374px; height: 0.5px; }
.asset-card-holdings-bottom { display: flex; flex-direction: column; gap: 6px; }
.asset-card-stats { display: flex; gap: 2px; }
.asset-card-stats > span { display: flex; flex-direction: column; gap: 2px; }
.asset-card-stats > span:first-child { width: 200px; }
.asset-card-stats > span:last-child { flex: 1 0 0; gap: 0; }
.asset-card-stats b { font-size: 14px; letter-spacing: 0.14px; }

.asset-card-cta {
    position: absolute;
    left: 0;
    top: 574.5px;
    width: 430px;
    padding: 50px 12px 30px;
    display: flex;
    gap: 6px;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0), #000 25.781%);
}
.asset-card-buy,
.asset-card-sell { flex: 1 0 0; display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 100px; font-size: 18px; letter-spacing: 0.18px; }
.asset-card-buy { background: linear-gradient(90deg, #16c861, #096422); }
.asset-card-sell { background: linear-gradient(90deg, #f95461, #9c1823); }
.asset-card-more { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 100px; }
.asset-card-more img { width: 24px; height: 24px; }

/* The app's "iOS Glass FX" round button: a translucent fill with a bright rim on the top-left and bottom-right edges. */
.ts-glass {
    position: relative;
    border-radius: 100px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07) 55%, rgba(255, 255, 255, 0.1));
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
}
.ts-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.14) 78%, rgba(255, 255, 255, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Motion: home.js draws the 1D line each time the asset page comes up; the live dot keeps pulsing. */
.asset-card-echo-wrap { position: absolute; inset: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
    .asset-card-echo { animation: asset-echo 2.4s ease-out infinite both; }
}

/* The card's three views: passkey onboarding, the asset page, then its section tabs. */
.ac-view, .ac-scroll { position: absolute; inset: 0; }
.ac-scroll { will-change: transform; }
.ac-tabs { position: absolute; left: 0; top: 700px; width: 430px; padding: 30px 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.ac-nav { position: relative; display: flex; gap: 16px; height: 27px; overflow: hidden; }
.ac-tab { display: flex; flex-direction: column; gap: 8px; align-items: center; flex-shrink: 0; height: 24px; justify-content: center; }
.ac-tab b { font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: 0.17px; color: rgba(255, 255, 255, 0.4); white-space: nowrap; }
.ac-tab img { width: 0; min-width: 100%; height: 2px; margin-top: -2px; opacity: 0; }
.ac-tab:nth-child(2) b { color: #fff; }
.ac-tab:nth-child(2) img { opacity: 1; }
.ac-nav-fade { position: absolute; top: 0; right: 0; width: 15px; height: 18px; background: linear-gradient(90deg, rgba(1, 1, 4, 0) 1.3%, #010104); }
.ac-panes { margin-top: 24px; padding-bottom: 120px; }
.ac-head { display: flex; align-items: center; justify-content: space-between; }
.ac-head strong { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: 0.18px; }
.ac-head span { display: flex; gap: 4px; align-items: center; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0.14px; color: rgba(255, 255, 255, 0.6); }
.ac-head span img { width: 24px; height: 24px; }
.ac-head--insights { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 60px; }
.ac-head small { font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: 0.14px; color: rgba(255, 255, 255, 0.3); white-space: nowrap; }
.ac-events { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.ac-events li { display: flex; gap: 16px; align-items: center; padding: 10px; border-radius: 100px; background: rgba(255, 255, 255, 0.05); }
.ac-events li.is-upcoming { background: rgba(255, 255, 255, 0.08); }
.ac-ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 100px; background: #000; line-height: 1.3; text-align: center; color: rgba(255, 255, 255, 0.5); }
.is-upcoming .ac-ev-date { background: rgba(255, 255, 255, 0.7); color: #000; }
.asset-card .ac-ev-date small { margin-bottom: -4px; font-size: 12px; font-weight: 400; letter-spacing: 0.12px; color: inherit; }
.ac-ev-date b { font-size: 18px; font-weight: 500; letter-spacing: 0.18px; }
.ac-events li > i { width: 2px; height: 38px; flex-shrink: 0; margin-right: -4px; border-radius: 10px; }
.ac-ev-text { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.ac-ev-text > span { display: flex; gap: 8px; align-items: center; }
.ac-ev-text b { font-size: 16px; font-weight: 500; letter-spacing: 0.16px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.is-upcoming .ac-ev-text b { color: #fff; }
.ac-ev-text em { padding: 2px 6px; border: 0.5px solid rgba(255, 255, 255, 0.15); border-radius: 100px; font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: 0.12px; color: rgba(255, 255, 255, 0.5); }
.is-upcoming .ac-ev-text em { border-color: rgba(116, 155, 255, 0.15); background: rgba(116, 155, 255, 0.1); color: #749bff; }
.ac-ev-text small { font-size: 12px; font-weight: 400; letter-spacing: 0.12px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.ac-rating { display: flex; flex-direction: column; gap: 30px; margin-top: 20px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.ac-rating-top { display: flex; flex-direction: column; gap: 5px; font-size: 16px; line-height: 1.3; letter-spacing: 0.16px; }
.ac-rating-top b { font-weight: 500; }
.ac-rating-top > span { display: flex; gap: 8px; align-items: center; font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.ac-rating-top em { display: flex; align-items: center; font-style: normal; font-weight: 500; color: #16c861; }
.ac-rating-top em img { width: 22px; height: 22px; }
.ac-rating-split { display: flex; gap: 20px; align-items: center; }
.ac-rating-orb { display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; flex-shrink: 0; border-radius: 1000px; background: rgba(7, 61, 28, 0.5); font-size: 24px; font-weight: 500; letter-spacing: 0.24px; color: #16c861; }
.ac-bars { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ac-bar { display: flex; gap: 10px; align-items: center; }
.ac-bar b { width: 81px; flex-shrink: 0; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: 0.16px; text-align: right; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.ac-bar span { flex: 1 0 0; height: 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.ac-bar i { display: block; height: 6px; border-radius: 10px 0 0 10px; background: rgba(255, 255, 255, 0.5); transform-origin: left center; }
.ac-bar.is-buy b { color: #16c861; }
.ac-bar.is-buy i { background: #16c861; }
.ac-sec { margin-top: 60px; }
.ac-pct { display: inline-flex; align-items: center; font-size: 14px; font-style: normal; font-weight: 500; line-height: 1.3; letter-spacing: 0.14px; white-space: nowrap; }
.ac-pct img { width: 18px; height: 18px; }
.ac-pct--up { color: #16c861; }
.ac-pct--down { color: #f95461; }
.ac-pct--flat { color: rgba(255, 255, 255, 0.5); }
.ac-pct--lg { font-size: 16px; letter-spacing: 0.16px; }
.ac-pct--lg img { width: 22px; height: 22px; }
.ac-box { margin-top: 20px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.ac-box-title { display: block; font-size: 18px; line-height: 1.3; letter-spacing: 0.18px; }
.ac-seg { position: relative; display: flex; gap: 10px; margin-top: 20px; padding: 4px; border-radius: 100px; background: rgba(255, 255, 255, 0.05); box-shadow: 0 4px 4px rgba(0, 0, 0, 0.06); }
.ac-seg span { position: relative; z-index: 1; flex: 1 0 0; padding: 6px 12px; border-radius: 100px; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0.14px; text-align: center; color: rgba(255, 255, 255, 0.5); }
.ac-seg span.is-on { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ac-seg span.is-soft { background: rgba(255, 255, 255, 0.05); }
.ac-sum { display: flex; flex-direction: column; gap: 5px; margin-top: 30px; font-size: 16px; line-height: 1.3; letter-spacing: 0.16px; }
.ac-sum > span { display: flex; gap: 8px; align-items: center; font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.ac-stats { display: flex; gap: 10px; margin-top: 20px; }
.ac-stat { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ac-stat i { width: 16px; height: 16px; border-radius: 100px; }
.asset-card .ac-stat small { margin-top: 10px; color: rgba(255, 255, 255, 0.7); }
.ac-stat b { margin-top: 4px; font-size: 16px; line-height: 1.3; letter-spacing: 0.16px; }
.ac-stat .ac-pct { margin-top: 6px; }
.ac-stats--eps .ac-stat { flex: none; }
.ac-stats--eps .ac-stat:first-child { width: 118px; }
.ac-stats--eps .ac-stat b { font-size: 14px; letter-spacing: 0.14px; }
.ac-chart { position: relative; height: 200px; margin-top: 30px; }
.ac-chart > img { position: absolute; }
.ac-chart-row { position: absolute; left: 0; top: 0; display: flex; align-items: center; width: 372px; height: 200px; }
.ac-axis { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 33px; height: 200px; font-size: 12px; line-height: 1.3; letter-spacing: 0.12px; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.ac-axis--l { flex: none; width: 40.5px; }
.ac-col { position: relative; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: flex-end; width: 60px; height: 190px; }
.ac-col::after { content: ""; position: absolute; top: 0; right: -0.25px; width: 0.5px; height: 190px; background: rgba(255, 255, 255, 0.02); }
.ac-col.is-on::before { content: ""; position: absolute; left: -0.5px; top: -10px; width: 60px; height: 210px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.ac-col.is-on::after { background: rgba(255, 255, 255, 0.05); }
.ac-perf .ac-col:nth-child(5)::after { content: none; }
.ac-col-bars { position: relative; display: flex; gap: 2px; align-items: flex-end; }
.ac-col-bars i { width: 10px; border-radius: 1px; background: #749bff; transform-origin: bottom; }
.ac-col-bars i + i { background: rgba(255, 255, 255, 0.3); }
.ac-col-label { position: relative; display: flex; flex-direction: column; gap: 2px; width: 100%; font-size: 12px; line-height: 1.3; letter-spacing: 0.12px; text-align: center; }
.asset-card .ac-col-label small { font-size: 10px; font-weight: 500; line-height: 1.2; letter-spacing: 0.1px; color: rgba(255, 255, 255, 0.7); }
.ac-chart-grid { left: 32px; top: 7.5px; width: 350px; height: 147.5px; }
.ac-chart-grid--eps { left: 0; width: 330px; }
.ac-perf-line { left: 73.13px; top: 70.49px; width: 237.606px; height: 14.015px; }
.ac-perf-dot { width: 6px; height: 6px; }
.ac-chart-row--eps .ac-col { flex: 1 0 0; width: auto; min-width: 0; }
.ac-chart-row--eps .ac-col.is-on { flex: none; width: 41.333px; }
.ac-chart-row--eps .ac-col.is-on::before { left: -0.33px; top: -4px; width: 42px; height: 200px; }
.ac-chart-row--eps .ac-col:nth-child(4)::after, .ac-chart-row--eps .ac-col.is-on::after { content: none; }
.ac-chart-row--eps .ac-col img { position: relative; width: 16px; }
.ac-metrics { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ac-metrics-tags { display: flex; gap: 16px; margin-bottom: 6px; }
.ac-metrics-tags span { flex: 1 0 0; padding: 6px 10px; border-radius: 100px; background: rgba(255, 255, 255, 0.05); font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: 0.12px; color: rgba(255, 255, 255, 0.5); }
.ac-metrics-row { display: flex; gap: 16px; align-items: center; }
.ac-metrics-row + .ac-metrics-row { padding-top: 10px; border-top: 0.5px solid rgba(255, 255, 255, 0.08); }
.ac-metrics-row > div { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.asset-card .ac-metrics-row small { color: rgba(255, 255, 255, 0.6); }
.ac-metrics-row > div > span { display: flex; gap: 8px; align-items: flex-end; }
.ac-metrics-row b { font-size: 18px; line-height: 1.3; letter-spacing: 0.18px; }
.ac-metrics-tags + .ac-metrics-row > div:first-child b { font-size: 16px; letter-spacing: 0.16px; }
.ac-own-bar { display: flex; height: 8px; margin-top: 20px; background: rgba(255, 255, 255, 0.3); }
.ac-own-bar i { width: 23px; background: #03f; }
.ac-own-legend { display: flex; gap: 20px; margin-top: 12px; font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: 0.12px; color: rgba(255, 255, 255, 0.7); }
.ac-own-legend span { display: flex; gap: 6px; align-items: center; }
.ac-own-legend i { width: 10px; height: 10px; border-radius: 100px; background: #03f; }
.ac-own-legend span + span i { background: rgba(255, 255, 255, 0.3); }
.ac-own-legend b { color: #fff; }
.ac-own-seg { margin-top: 40px; }
.ac-own-seg span.is-on { background: none; }
.ac-seg-pill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 9px); border-radius: 100px; background: rgba(255, 255, 255, 0.1); }
.ac-chips { display: flex; gap: 8px; margin-top: 20px; }
.ac-chips span { padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 100px; font-size: 14px; line-height: 1.3; letter-spacing: 0.14px; }
.ac-chips span.is-on { border-color: #fff; background: #fff; color: #000; }
.ac-own-lists { position: relative; margin-top: 30px; }
.ac-own-list--moves { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; }
.ac-own-th, .ac-own-list li { display: flex; gap: 20px; align-items: center; padding: 0 10px; }
.ac-own-th { padding-bottom: 10px; border-bottom: 0.5px solid rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: 0.12px; color: rgba(255, 255, 255, 0.7); }
.ac-own-th span:first-child, .ac-own-list li > :first-child { width: 170px; flex-shrink: 0; }
.ac-own-th span:nth-child(2), .ac-own-list li > :nth-child(2) { flex: 1 0 0; text-align: right; }
.ac-own-th span:last-child, .ac-own-list li > :last-child { width: 80px; flex-shrink: 0; text-align: right; }
.ac-own-list ul { margin: 0; padding: 0; list-style: none; }
.ac-own-list li { padding-top: 10px; padding-bottom: 10px; border-bottom: 0.5px solid rgba(255, 255, 255, 0.08); font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: 0.16px; }
.ac-own-list li:last-child { opacity: 0.5; border-bottom: 0; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 80%); mask-image: linear-gradient(180deg, #000 10%, transparent 80%); }
.ac-own-list li > span { display: flex; flex-direction: column; }
.ac-own-list li > span:nth-child(2) { align-items: flex-end; }
.ac-own-list li > span:last-child { align-items: flex-end; }
.asset-card .ac-own-list li small { color: rgba(255, 255, 255, 0.5); }
.ac-own-list em { padding: 2px 6px; border-radius: 100px; font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: 0.12px; }
.ac-own-list em.is-buy { background: rgba(7, 61, 28, 0.5); color: #16c861; }
.ac-own-list em.is-sell { background: rgba(88, 3, 35, 0.5); color: #f95461; }
.ac-own-all { display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 30px; border-radius: 100px; background: rgba(255, 255, 255, 0.08); font-size: 18px; line-height: 1.3; letter-spacing: 0.18px; }
.ac-rel { position: relative; }
.ac-rel ul { display: flex; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ac-rel li { flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; align-items: center; width: 120px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.09)); }
.ac-rel-logo, .ac-ibkr { width: 48px; height: 48px; border-radius: 100px; }
.ac-ibkr { position: relative; background: #000; }
.ac-ibkr img { position: absolute; }
.ac-ibkr img:nth-child(1) { left: 29.41%; top: 51.18%; width: 35.55%; height: 39.04%; }
.ac-ibkr img:nth-child(2) { left: 49.32%; top: 50.05%; width: 21.27%; height: 21.27%; }
.ac-ibkr img:nth-child(3) { left: 29.41%; top: 10%; width: 35.55%; height: 80.22%; }
.ac-rel li > span:last-child { display: flex; flex-direction: column; gap: 4px; align-items: center; width: 100%; line-height: 1.3; white-space: nowrap; }
.asset-card .ac-rel small { font-size: 14px; letter-spacing: 0.14px; color: rgba(255, 255, 255, 0.6); }
.ac-rel li b { font-size: 16px; letter-spacing: 0.16px; }
.ac-rel sup { font-size: 10px; }
.ac-rel .ac-pct { font-size: 12px; letter-spacing: 0.12px; }
.ac-rel .ac-pct img { width: 14px; height: 14px; }
.ac-rel-fade { position: absolute; right: -12px; bottom: 0; width: 46px; height: 159px; background: linear-gradient(90deg, rgba(1, 1, 4, 0), #010104); }

.ob-view { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: inherit; background: #000; }
.ob-field { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 0; }
.ob-dim, .ob-subdue { position: absolute; inset: 0; pointer-events: none; }
/* IntroScreen: bright tiles across the top, a heavy dim just above the lockup, black before the buttons. */
.ob-dim { background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.6) 33%, rgba(0, 0, 0, 0.9) 41%, rgba(0, 0, 0, 0.93) 66%, #000 80%); }
.ob-subdue { background: #000; opacity: 0; }
.ob-lockup { position: absolute; top: 292px; left: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ob-lockup img { width: 214px; height: auto; }
.ob-lockup span { font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.ob-foot { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ob-powered { margin: 0 0 6px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.ob-terms { margin: 2px 0 0; font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.ob-terms u { color: #fff; text-decoration: none; }
.ob-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 100px; font-size: 16px; font-weight: 600; letter-spacing: 0.16px; }
.ob-btn--main { background: #0033ff; color: #fff; }
.ob-btn--alt { background: #fff; color: #000; }
.ob-sheet {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: 330px;
    padding: 30px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 34px;
    background: #161618;
    transform: translateY(104%);
}
.ob-close { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.ob-close img { width: 18px; height: 18px; }
.ob-key { width: 54px; height: auto; mix-blend-mode: lighten; }
.ob-sheet strong { margin-top: 14px; font-size: 24px; font-weight: 600; letter-spacing: 0.24px; }
.ob-sheet p { width: 300px; margin: 6px 0 22px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.5); }
.ob-input { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; background: #19181c; font-size: 15px; }
.ob-passkey { margin-top: 12px; }
.ob-faceid { position: absolute; top: 150px; left: 50%; display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; margin-left: -60px; border-radius: 30px; background: rgba(28, 28, 30, 0.94); opacity: 0; }
.ob-faceid svg { width: 64px; height: 64px; }
.ob-faceid { will-change: transform, opacity; }
.ob-face, .ob-face-tick { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ob-face-tick { stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ob-ready { position: absolute; top: 206px; left: 24px; right: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; opacity: 0; }
.ob-orb { position: relative; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: #0033ff; }
.ob-orb svg { position: absolute; width: 44px; height: 44px; }
.ob-spin { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.22 1; animation: ob-spin 0.9s linear infinite; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-tick { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ob-ready-title { display: grid; }
.ob-ready-title b { grid-area: 1 / 1; font-size: 26px; font-weight: 600; letter-spacing: 0.26px; }
.ob-ready-title b + b { opacity: 0; }
.ob-ready-sub { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.6); opacity: 0; }
.ob-ready-sub u { color: #fff; text-decoration: none; font-weight: 600; }
.ob-go { position: absolute; left: 16px; right: 16px; bottom: 24px; width: auto; opacity: 0; }
@keyframes asset-echo {
    0% { opacity: 0; transform: scaleY(-1) scale(0.35); }
    25% { opacity: 1; }
    100% { opacity: 1; transform: scaleY(-1) scale(1); }
}

/* Trade Everything: Figma spacing (120 top and bottom, 100 between title and row). */
.lockup--void .trade--everything { padding: 120px 0; }
.trade--everything .trade-title { margin-bottom: 100px; }
.trade--everything .trade-title h2 { white-space: normal; text-wrap: balance; }

/* Numbered carousel copy (Figma "Carousel Text"): the active item is white, the rest at 40%. */
.steps {
    width: 590px;
    flex-shrink: 0;
    padding: 70px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: center;
    text-align: left;
}
.steps .steps-title {
    width: 450px;
    max-width: 100%;
    margin: 0;
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.44px;
    color: #e5e5e5;
    white-space: normal;
    text-align: left;
}
.steps { container-type: inline-size; }
/* A long first line: the type scales with the column, and on desktop it may run into the empty right padding, so it stays at two lines. */
.steps .steps-title--fit { width: auto; max-width: none; margin-right: -70px; font-size: min(44px, 8.6cqi); }
.steps-list { display: flex; flex-direction: column; gap: 50px; }
.steps-item { width: 450px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; cursor: pointer; }
.steps-line { display: block; width: 100%; height: 1px; margin-top: -1px; }
.steps-line--on,
.steps-item.is-active .steps-line:not(.steps-line--on) { display: none; }
.steps-item.is-active .steps-line--on { display: block; }
.steps-row { display: flex; gap: 20px; align-items: center; }
.steps-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.3px;
    color: #000;
    transition: background 0.35s ease;
}
.steps-body { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.steps-copy { display: flex; flex-direction: column; gap: 10px; color: rgba(255, 255, 255, 0.4); transition: color 0.35s ease; }
.steps-copy h4 { margin: 0; font-size: 25px; font-weight: 500; line-height: 1.4; letter-spacing: -0.25px; white-space: nowrap; }
.steps-trigger { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer; }
.steps-copy p { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.4; transition: color 0.35s ease; }
.steps-item.is-active .steps-num { background: #fff; }
.steps-item.is-active .steps-copy { color: #fff; }
.steps-item.is-active .steps-copy p { color: rgba(255, 255, 255, 0.7); }
.steps-more {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 6px 0 20px;
    overflow: hidden;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.steps-more-label { display: block; min-width: 0; overflow: hidden; }
.steps-more-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.steps-more-icon svg { width: 32px; height: 32px; fill: #fff; }
.steps-more:hover,
.steps-more:focus-visible { background-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.steps-more:hover .steps-more-icon,
.steps-more:focus-visible .steps-more-icon { transform: rotate(90deg); }

/* Know the market (light panel): 150 top, 50 between title and rows, 120 bottom. */
.markets { position: relative; z-index: 1; overflow-x: clip; padding: 150px 0 120px; background: #fff; color: #000; }
.markets-title {
    margin: 0 auto 50px;
    padding: 0 24px;
    font-size: 55px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.55px;
    text-align: center;
    color: #000;
}
.markets-row { width: 1200px; max-width: calc(100% - 48px); margin: 0 auto; display: flex; gap: 30px; align-items: stretch; }
.markets-row + .markets-row { margin-top: 150px; }
.markets-row + .markets-title { margin-top: 150px; }
.markets-image { flex: 1 0 0; min-width: 0; display: flex; align-items: center; justify-content: center; }

.steps--light .steps-title { color: #000; }
.steps--light .steps-num { background: rgba(0, 0, 0, 0.4); color: #fff; }
.steps--light .steps-copy { color: rgba(0, 0, 0, 0.4); }
.steps--light .steps-item.is-active .steps-num { background: #000; }
.steps--light .steps-item.is-active .steps-copy { color: #000; }
.steps--light .steps-item.is-active .steps-copy p { color: rgba(0, 0, 0, 0.7); }
.steps-more--light {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    color: #000;
}
.steps-more--light .steps-more-icon svg { fill: #000; }
.steps-more--light:hover,
.steps-more--light:focus-visible { background-color: rgba(0, 0, 0, 0.07); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }

/* Category rail sits 26px above the dark list; tiles past the image column fade out. */
/* Same footprint as the Insights card above: 98px tiles, a 24px gap, then a 565px sheet. */
.markets-image--browse { align-items: flex-start; margin-top: 90px; }
.mk-browse { --mk-slide: 0.9s cubic-bezier(0.45, 0, 0.2, 1); --mk-select: 0.45s cubic-bezier(0.45, 0, 0.2, 1); position: relative; width: 430px; height: 687px; }
.mk-browse .mk-cats,
.mk-browse .mk-sheet { transition: opacity 0.35s ease; }
.mk-browse.is-fading .mk-cats,
.mk-browse.is-fading .mk-sheet { opacity: 0; }
.mk-browse.is-snapping * { transition: none !important; }
.mk-cats {
    position: absolute;
    left: -12px;
    top: 0;
    width: 430px;
    display: flex;
    gap: 8px;
    padding: 0 0 24px 24px;
    overflow: hidden;
}
.mk-cat {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    width: 130px;
    height: 98px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24, 48, 86, 0.06), 0 8px 20px rgba(24, 48, 86, 0.1);
    transform: translateX(var(--cats-x, 0px));
    transition: transform var(--mk-slide), opacity var(--mk-select), background-color var(--mk-select), border-color var(--mk-select), box-shadow var(--mk-select);
}
.mk-cat.is-on {
    border-color: #d5d8dd;
    background: linear-gradient(180deg, #fafbfd, #f6f7f9);
}
.mk-cat i { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 750px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.mk-cat i img { width: 18px; height: 18px; }
.mk-cat i { transition: background-color var(--mk-select); }
.mk-cat i svg { width: 18px; height: 18px; color: #000; transition: color var(--mk-select); }
.mk-cat i img { transition: filter var(--mk-select); }
.mk-cat.is-on i { background: #000; box-shadow: none; }
.mk-cat:not(.is-on) i,
.mk-cat:not(.is-on) b,
.mk-cat:not(.is-on) em { opacity: 0.64; }
.mk-cat.is-on i svg { color: #fff; }
.mk-cat.is-on i img { filter: invert(1); }
.mk-cat b { font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0.14px; color: #000; }
.mk-cat em,
.mk-price em { display: flex; align-items: center; font-style: normal; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0.14px; }
.mk-cat em img,
.mk-price em img { width: 18px; height: 18px; }
.mk-cat em { margin-top: -4px; color: #08b637; }
.mk-cat em.dn { color: #f95461; }

/* Scrolling down to By Issuer shrinks the tiles to one-line pills and lifts the sheet into the
   space, matching the Insights card's collapse (home.js: 0.6s power2.inOut); the list fades out under them. */
.mk-browse { --mk-squish: 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955); }
.mk-cat { position: relative; display: block; transition: transform var(--mk-slide), height var(--mk-squish), opacity var(--mk-select), background-color var(--mk-select), border-color var(--mk-select), box-shadow var(--mk-select); }
.mk-cat i,
.mk-cat b,
.mk-cat em { position: absolute; left: 11px; transform-origin: 0 0; white-space: nowrap; transition: transform var(--mk-squish), opacity 0.3s ease, background-color var(--mk-select); }
.mk-cat i { top: 13px; }
.mk-cat b { top: 48px; }
.mk-cat em { top: 66px; margin-top: 0; }
/* Tiles the rail has slid past fade out, so it always starts on the selected one. */
.mk-cat.is-past { opacity: 0; }
.mk-browse[data-mk-step="2"] .mk-cat { height: 36px; }
.mk-browse[data-mk-step="2"] .mk-cat i { transform: translate(-4px, -8px) scale(0.8); }
.mk-browse[data-mk-step="2"] .mk-cat b { transform: translate(26px, -40px); }
.mk-browse[data-mk-step="2"] .mk-cat em { opacity: 0; transform: translateY(-12px); }
/* Long names are clipped by the pill rather than reflowed mid-move. */
.mk-browse[data-mk-step="2"] .mk-cat { overflow: hidden; }
.mk-browse[data-mk-step="2"] .mk-cat b { -webkit-mask-image: linear-gradient(90deg, #000 76px, transparent 88px); mask-image: linear-gradient(90deg, #000 76px, transparent 88px); }
.mk-sheet { position: relative; height: 565px; margin-top: 122px; transition: transform var(--mk-squish), height var(--mk-squish); }
.mk-browse[data-mk-step="2"] .mk-sheet { height: 639px; transform: translateY(-74px); }
.mk-view { margin-top: -10px; padding-top: 10px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 14px); mask-image: linear-gradient(180deg, transparent, #000 14px); }

.mk-sheet {
    box-sizing: border-box;
    width: 430px;
    padding: 12px;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(24, 48, 86, 0.06), 0 16px 32px rgba(24, 48, 86, 0.1), 0 40px 80px rgba(24, 48, 86, 0.16);
    color: #000;
}
.mk-cols { display: flex; padding: 0 12px 0 18px; font-size: 10px; line-height: 1.2; letter-spacing: 0.1px; color: rgba(0, 0, 0, 0.5); }
.mk-cols span:nth-child(1) { width: 79px; }
.mk-cols span:nth-child(2) { width: 196px; }
.mk-cols span:nth-child(3) { flex: 1; text-align: right; }
.mk-asset { display: flex; align-items: center; gap: 20px; box-sizing: border-box; height: 65px; padding: 10px 12px 12px; border-radius: 16px; }
.mk-rank { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 18px; height: 18px; border-radius: 100px; background: rgba(0, 0, 0, 0.05); font-size: 10px; font-weight: 500; line-height: 1.2; color: rgba(0, 0, 0, 0.5); }
.mk-icon { position: relative; flex-shrink: 0; width: 34px; height: 34px; margin-right: -8px; }
.mk-coin { display: block; width: 34px; height: 34px; border-radius: 100px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.mk-coin-strx { position: relative; display: block; width: 34px; height: 34px; overflow: hidden; border-radius: 100px; background: #03f; }
.mk-coin-strx img { position: absolute; inset: 19.6% 19.79% 19.79% 19.6%; width: 60.61%; height: 60.61%; }
.mk-name b img,
.mk-rule { filter: invert(1); }
.mk-name { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-name b { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: 0.16px; }
.mk-name b img { width: 16px; height: 16px; }
.mk-name small { font-size: 14px; line-height: 1.3; letter-spacing: 0.14px; color: rgba(0, 0, 0, 0.5); }
.mk-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mk-price b { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: 0.16px; }
.mk-price em { color: #08b637; }
.mk-price em.dn { color: #f95461; }
.mk-rule { display: block; width: 406px; height: 0.5px; }

/* Market browse states (set from the step carousel): tiles slide to Stocks, feed chips slide to
   Gainers and the list pages across, then the view scrolls down to By Issuer and loads xStocks. */
.mk-sheet { padding-top: 16px; }
/* What's Hot shows five rows with By Issuer's header beneath, as in the app; step 3 scrolls up by
   What's Hot's height (--mk-up, measured in home.js). */
.mk-view { box-sizing: border-box; height: calc(100% + 10px); overflow: hidden; }
/* Each category is its own panel, as in the app: only the tiles slide and the new panel shows at once. */
.mk-pager { display: grid; height: 100%; }
.mk-panel { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.mk-panel:not(.is-on) { visibility: hidden; }
.mk-sec { flex-shrink: 0; min-width: 0; transition: transform var(--mk-slide); }
.mk-browse[data-mk-step="2"] .mk-sec { transform: translateY(var(--mk-up, 0px)); }
.mk-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 6px; }
.mk-sec-head strong { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: 0.16px; }
.mk-sec-head strong svg { width: 16px; height: 16px; }
.mk-viewall { display: flex; align-items: center; gap: 2px; font-size: 13px; line-height: 1.3; color: #5c5c5c; }
.mk-viewall svg { width: 14px; height: 14px; }
.mk-chips { margin-bottom: 14px; padding: 0 6px; overflow: hidden; }
.mk-chips-track { display: flex; gap: 6px; transition: transform var(--mk-slide); }
.mk-chip {
    flex-shrink: 0;
    padding: 7px 11px;
    border-radius: 100px;
    background: #f4f4f4;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    color: #000;
    transition: background-color var(--mk-select), color var(--mk-select);
}
.mk-chip.is-on { background: #000; color: #fff; }
.mk-cols { margin-bottom: 4px; }
/* The app's screener lists: five-row pages that swipe across with dots beneath. A chip or tile tap
   swaps the list instantly and starts it back on page one, as the app does. */
.mk-feeds { display: grid; }
.mk-feed { grid-area: 1 / 1; min-width: 0; }
.mk-feed:not(.is-on) { visibility: hidden; }
.mk-pages { overflow: hidden; }
.mk-pages-track { display: flex; transform: translateX(calc(var(--page, 0) * -100%)); transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.mk-feed:not(.is-on) .mk-pages-track { transition: none; }
.mk-page { flex: 0 0 100%; min-width: 0; }
.mk-dots { display: flex; justify-content: center; align-items: center; gap: 4px; height: 6px; margin-top: 14px; }
.mk-dots i { width: 5px; height: 5px; border-radius: 100px; background: #000; opacity: 0.3; }
.mk-dots i.is-on { width: 6px; height: 6px; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .mk-browse *,
    .mk-browse *::before { transition: none !important; animation: none !important; }
}

/* Markets Insights card (Figma 21198:170830): the app's light Insights screen, scrolled by home.js. */
.markets-image--insights { --s: 1; height: calc(687px * var(--s)); margin-top: 90px; }
.ins-card {
    position: relative;
    flex-shrink: 0;
    width: 430px;
    height: 687px;
    color: #000;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    user-select: none;
    transform: scale(var(--s));
}
.ins-card img { display: block; max-width: none; }
.ins-card ul { margin: 0; padding: 0; list-style: none; }
.ins-card b, .ins-card strong { font-weight: 500; }
.ins-card small { font-size: 12px; letter-spacing: 0.12px; }
.ins-card em { font-style: normal; }
/* Search and the section tiles float on the page; Insights scrolls inside a sheet, as Markets does below. */
.ins-sheet {
    position: absolute;
    left: 0;
    top: 122px;
    width: 430px;
    height: 565px;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(24, 48, 86, 0.06), 0 16px 32px rgba(24, 48, 86, 0.1), 0 40px 80px rgba(24, 48, 86, 0.16);
}
.ins-sheet::after { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 28px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0)); pointer-events: none; }
.ins-sheet::before { content: ""; position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; height: 64px; background: linear-gradient(0deg, #fff 12%, rgba(255, 255, 255, 0)); pointer-events: none; }
.ins-scroll { position: absolute; left: 12px; top: 16px; width: 406px; padding-bottom: 40px; will-change: transform; }

/* Tiles shrink to one-line pills once the sheet scrolls (home.js), as the app's section tabs do. */
.ins-cats { position: absolute; z-index: 1; left: 12px; top: 0; display: flex; gap: 8px; width: 406px; }
.ins-cat {
    position: relative;
    flex: 1 0 0;
    box-sizing: border-box;
    height: 98px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24, 48, 86, 0.06), 0 8px 20px rgba(24, 48, 86, 0.1);
}
.ins-cat.is-on { border-color: #d5d8dd; background: linear-gradient(180deg, #fafbfd, #f6f7f9); }
.ins-cat:not(.is-on) b { color: rgba(0, 0, 0, 0.64); }
.ins-cat:not(.is-on) small { color: rgba(0, 0, 0, 0.4); }
.ins-cat:not(.is-on) i img { opacity: 0.64; }
.ins-cat i { position: absolute; left: 11px; top: 13px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); transform-origin: 0 0; }
.ins-cat.is-on i { background: #000; box-shadow: none; }
.ins-cat i img { width: 18px; height: 18px; }
.ins-cat b { position: absolute; left: 11px; top: 48px; font-size: 14px; letter-spacing: 0.14px; white-space: nowrap; }
.ins-cat small { position: absolute; left: 11px; top: 66px; color: rgba(0, 0, 0, 0.5); white-space: nowrap; }

.ins-sa {
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
    min-height: 271px;
    padding: 16px;
    border: 1px solid #d7d8dc;
    border-radius: 16px;
    background: linear-gradient(180deg, #fdfdfd, #fafbfd);
}
.ins-sa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ins-sa-head p { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: 0.2px; color: rgba(0, 0, 0, 0.5); }
.ins-sa-head p b { color: #000; }
.ins-bull { flex-shrink: 0; padding: 4px 10px; border-radius: 100px; background: rgba(197, 243, 200, 0.5); font-size: 14px; letter-spacing: 0.14px; color: #08b637; }
.ins-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ins-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f3f3f3; }
.ins-tile > span { display: flex; flex-direction: column; }
.ins-tile b { font-size: 14px; letter-spacing: 0.14px; }
.ins-tile small { color: rgba(0, 0, 0, 0.5); }
.ins-tile em { font-size: 19px; font-weight: 500; letter-spacing: 0.19px; color: #08b637; }
.ins-tile em.is-warn { color: #edc152; }
.ins-sa-foot { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; }
.ins-sa-foot > span:first-child { display: flex; flex-direction: column; color: rgba(0, 0, 0, 0.4); }
.ins-sa-foot i { font-style: normal; color: rgba(0, 0, 0, 0.5); }
.ins-explore { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border: 1px solid #dcdcde; background: #fff; border-radius: 100px; font-size: 12px; font-weight: 500; letter-spacing: 0.12px; }
.ins-explore img { width: 12px; height: 12px; }
/* Carousels run edge to edge of the card, so a page leaves fully before the next lands. */
.ins-swipe { margin: 0 -12px; padding: 0 12px; overflow: hidden; }
.ins-swipe-track { display: flex; gap: 24px; }
.ins-swipe-track > * { flex: 0 0 406px; box-sizing: border-box; }
.ins-dots { display: flex; align-items: center; justify-content: center; gap: 3.5px; height: 6px; margin: 10px auto 0; }
.ins-dots i { width: 6px; height: 6px; border-radius: 100px; background: #000; opacity: 0.3; transform: scale(0.833); }
.ins-dots i:first-child { opacity: 1; transform: none; }
.ins-top > .ins-dots { margin-bottom: 30px; }

.ins-h { display: block; font-size: 18px; font-weight: 500; letter-spacing: 0.18px; }
.ins-sent { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid #dcdcde; border-radius: 12px; }
.ins-sent-cols { display: flex; gap: 20px; }
.ins-sent-cols > * { flex: 1 0 0; min-width: 0; }
.ins-sent-cols > span { font-size: 14px; font-weight: 500; letter-spacing: 0.14px; color: rgba(0, 0, 0, 0.5); }
.ins-sent-cols + .ins-sent-cols { margin-top: -4px; }
.ins-gauge { display: flex; flex-direction: column; }
.ins-gauge-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ins-score { display: flex; align-items: flex-end; gap: 6px; font-size: 16px; color: rgba(0, 0, 0, 0.7); }
.ins-score b { font-size: 40px; line-height: 0.9; color: #000; font-variant-numeric: tabular-nums; }
.ins-gauge-top em { font-size: 16px; letter-spacing: 0.16px; }
.ins-gauge-top em.up { color: #08b637; }
.ins-gauge-top em.warn { color: #edc152; }
.ins-gauge-bar { height: 14px; }
.ins-gauge-bar img { width: 100%; height: 14px; }
.ins-gauge-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: rgba(0, 0, 0, 0.5); }

.ins-sec { display: flex; flex-direction: column; gap: 20px; margin-top: 60px; }
.ins-mkts { display: flex; flex-direction: column; gap: 8px; }
.ins-mkts-row { display: flex; gap: 8px; }
.ins-mkt { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; box-sizing: border-box; height: 159px; padding: 16px; border-radius: 16px; background: #f3f3f3; }
.ins-mkt-name { display: flex; align-items: center; gap: 4px; font-size: 14px; letter-spacing: 0.14px; color: rgba(0, 0, 0, 0.6); white-space: nowrap; }
.ins-mkt-name img { width: 18px; height: 18px; border-radius: 100px; object-fit: cover; }
.ins-mkt > b { margin-top: 6px; font-size: 16px; letter-spacing: 0.16px; white-space: nowrap; }
.ins-mkt > em { display: flex; align-items: center; margin-top: 2px; font-size: 12px; font-weight: 500; color: #16c861; }
.ins-mkt > em img { width: 14px; height: 14px; }
.ins-spark { position: relative; height: 46px; margin-top: auto; }
.ins-spark img { width: 100%; height: 100%; }
.ins-snap > .ins-dots { margin-top: 0; }
.ins-stats { margin: 0 20px !important; }
.ins-stats li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; letter-spacing: 0.14px; }
.ins-stats { border-bottom: 0.5px solid rgba(0, 0, 0, 0.08); }
.ins-stats li { border-top: 0.5px solid rgba(0, 0, 0, 0.08); }
.ins-stats i { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; }
.ins-stats li.is-sm i img { width: 13px; height: 13px; }
.ins-stats > li > span { flex: 1 0 0; color: rgba(0, 0, 0, 0.7); white-space: nowrap; }
.ins-stats em { display: flex; align-items: center; font-weight: 500; }
.ins-stats em.up { color: #08b637; }
.ins-stats em.dn { color: #f95461; }
.ins-stats em img { width: 18px; height: 18px; }
.ins-stats b { width: 50px; text-align: right; }
.ins-stats li.is-wide b { width: 70px; }

.ins-events { position: relative; display: flex; flex-direction: column; gap: 8px; }
.ins-events::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.ins-events li { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 100px; background: #f3f3f3; }
.ins-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 50px; height: 50px; border-radius: 100px; background: rgba(0, 0, 0, 0.7); color: #fff; }
.ins-date small { margin-bottom: -4px; }
.ins-date b { font-size: 18px; letter-spacing: 0.18px; }
.ins-ev { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-left: 14px; }
.ins-ev::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 38px; border-radius: 10px; background: #03f; transform: translateY(-50%); }
.ins-ev > span { display: flex; align-items: center; gap: 8px; }
.ins-ev b { font-size: 16px; letter-spacing: 0.16px; white-space: nowrap; }
.ins-ev em { padding: 2px 6px; border: 0.5px solid rgba(0, 51, 255, 0.15); border-radius: 100px; background: rgba(0, 51, 255, 0.1); font-size: 12px; color: #03f; }
.ins-ev small { color: rgba(0, 0, 0, 0.5); white-space: nowrap; }
.ins-btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 100px; background: #f3f3f3; font-size: 16px; font-weight: 500; letter-spacing: 0.16px; }

.ins-box { display: flex; flex-direction: column; gap: 30px; padding: 16px; border-radius: 12px; background: #f3f3f3; }
.ins-box--mom { margin-top: -4px; }
.ins-box-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.ins-box-top b { font-size: 18px; letter-spacing: 0.18px; }
.ins-box-top span { font-size: 16px; letter-spacing: 0.16px; color: rgba(0, 0, 0, 0.5); }
.ins-trend,
.ins-mom { position: relative; height: 141px; }
.ins-mom { height: 161px; }
.ins-names,
.ins-trend-pct { position: absolute; top: 0; display: flex; flex-direction: column; gap: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.12px; color: rgba(0, 0, 0, 0.5); white-space: nowrap; }
.ins-names { left: 0; }
.ins-mom .ins-names { top: 21px; }
.ins-trend-pct { right: 0; align-items: flex-end; }
.ins-trend-pct .is-up { color: #03f; }
.ins-trend-hl { position: absolute; left: -10px; top: 84px; width: 394px; height: 28px; border-radius: 12px; background: rgba(0, 0, 0, 0.05); }
.ins-trend-bars { position: absolute; left: 89px; top: 3px; width: 230px; height: 130px; transform-origin: 115px 50%; }
.ins-trend-bars span { position: absolute; left: 50px; top: -50px; width: 130px; height: 230px; transform: rotate(90deg); }
.ins-trend-bars img { position: absolute; left: -7px; top: 0; width: 145px; height: 230px; }
.ins-mom-zone { position: absolute; top: 9px; font-size: 10px; letter-spacing: 0.1px; color: rgba(0, 0, 0, 0.5); transform: translate(-50%, -50%); }
.ins-mom-zone:nth-child(1) { left: 136.5px; }
.ins-mom-zone:nth-child(2) { left: 231.5px; }
.ins-mom-zone:nth-child(3) { left: 326.5px; }
.ins-mom-lines i { position: absolute; left: 89px; width: 285px; border-top: 0.5px solid rgba(0, 0, 0, 0.1); }
.ins-mom-lines i:nth-child(1) { top: 29px; }
.ins-mom-lines i:nth-child(2) { top: 59px; }
.ins-mom-lines i:nth-child(3) { top: 89px; }
.ins-mom-lines i:nth-child(4) { top: 119px; }
.ins-mom-lines i:nth-child(5) { top: 149px; }
.ins-card .ins-mom-split { position: absolute; top: 0; width: 160px; height: 0.5px; transform: rotate(90deg); transform-origin: 0 0; }
.ins-mom-dot { position: absolute; display: flex; align-items: center; gap: 4px; box-sizing: border-box; height: 25px; padding: 4px 6px; border: 0.5px solid rgba(0, 0, 0, 0.08); border-radius: 12px; background: rgba(0, 0, 0, 0.04); font-size: 12px; font-weight: 500; }
.ins-mom-dot i { width: 10px; height: 10px; border-radius: 100px; background: #000; }
.ins-mom-dot.is-blue i { background: #03f; }

.ins-h--row { display: flex; align-items: center; justify-content: space-between; }
.ins-h--row span { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 400; letter-spacing: 0.14px; color: rgba(0, 0, 0, 0.6); }
.ins-h--row img { width: 20px; height: 20px; }
.ins-insider-th { display: flex; justify-content: space-between; margin: 0 12px -10px; font-size: 12px; color: rgba(0, 0, 0, 0.7); }
.ins-insider-list { margin: 0 12px !important; }
.ins-insider-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.ins-insider-list li:first-child { padding-top: 0; }
.ins-insider-list li + li { border-top: 0.5px solid rgba(0, 0, 0, 0.08); }
.ins-insider-list img { flex-shrink: 0; width: 34px; height: 34px; border-radius: 100px; object-fit: cover; }
.ins-who { flex: 1 0 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ins-who b,
.ins-chg b { font-size: 16px; letter-spacing: 0.16px; }
.ins-who > span { display: flex; align-items: center; gap: 6px; }
.ins-who small,
.ins-chg small { color: rgba(0, 0, 0, 0.5); }
.ins-who em { padding: 2px 6px; border-radius: 100px; font-size: 12px; }
.ins-who em.is-buy { background: rgba(197, 243, 200, 0.5); color: #08b637; }
.ins-who em.is-sell { background: rgba(250, 194, 210, 0.5); color: #f95461; }
.ins-chg { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

/* 3 Bar: three columns of 293.33px across the 1200 container, blue hairline above each text block. */
.three-bar { position: relative; z-index: 1; }
.three-bar-grid {
    width: 1200px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 293.333px);
    justify-content: space-between;
}
.three-bar-item { display: flex; flex-direction: column; gap: 30px; }
.three-bar-icon { position: relative; width: 80px; height: 80px; }
.three-bar-icon img,
.three-bar-icon svg { position: absolute; left: 4px; top: 4px; width: 72px; height: 72px; max-width: none; overflow: visible; }
.three-bar-text { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 0.5px solid #2b33ff; }
.three-bar-text h3 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.4; letter-spacing: -0.22px; color: #fff; }
.three-bar-text p { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.4; color: rgba(255, 255, 255, 0.7); }
/* The light twin sits between the two light Markets rows, as the dark one splits the dark sections, with
   the dark one's 120px either side (its neighbours' padding). The wrapper carries the spacing: pinned, the
   strip moves into a spacer and sibling selectors stop matching. */
.markets-strip { margin: 120px 0; }
.three-bar--light .three-bar-text h3 { color: #000; }
.three-bar--light .three-bar-text p { color: rgba(0, 0, 0, 0.6); }

/* Apple next to Eth: copy (590) | 30 gap | image (flex), 120 top and bottom. */
.apple-eth { position: relative; padding: 120px 0; }
/* Figma "Bottom Gradient" (4469:32471): the features aura flipped, centred 743.5px right of the card column's
   centre and ending 495px below the section's last row. It sits under the 3 Bar copy above; the lockup clips it at the bottom. */
.apple-eth::before {
    content: "";
    position: absolute;
    left: calc(50% + 310px - 743.5px);
    bottom: calc(120px - 495.2px);
    width: 1825.9px;
    height: 1965.07px;
    z-index: 0;
    pointer-events: none;
    background: url("assets/figma/trade-bottom-gradient.svg") no-repeat 0 0 / 100% 100%;
    transform: scaleX(-1);
}
.apple-eth-row { position: relative; z-index: 1; width: 1200px; max-width: calc(100% - 48px); margin: 0 auto; display: flex; gap: 30px; align-items: stretch; }
.apple-eth-image { --s: 1; flex: 1 0 0; display: flex; align-items: center; justify-content: center; min-height: calc(740px * var(--s)); }
.buy-card {
    position: relative;
    flex-shrink: 0;
    width: 430px;
    height: 450px;
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    user-select: none;
    transform: scale(var(--s));
}
.buy-card img { display: block; max-width: none; }
.buy-card-sheet {
    position: absolute;
    left: -0.5px;
    top: -0.5px;
    width: 430px;
    height: 450px;
    padding: 20px 0;
    border-radius: 30px;
    background: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9));
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
}
.buy-card-bar { display: flex; gap: 10px; align-items: flex-start; padding: 0 12px; }
.buy-card-btn { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; flex-shrink: 0; }
.buy-card-btn img { width: 24px; height: 24px; }
.buy-card-head { flex: 1 0 0; display: flex; gap: 6px; align-items: center; justify-content: center; padding-top: 12px; font-size: 18px; letter-spacing: 0.18px; }
.buy-card-head img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.buy-card-content { display: flex; flex-direction: column; align-items: center; padding-top: 60px; }
.buy-card-amount { width: 100%; font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: 0.44px; text-align: center; }
.buy-card-conv { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 16px; letter-spacing: 0.16px; color: rgba(255, 255, 255, 0.5); }
.buy-card-swap { display: flex; align-items: center; justify-content: center; width: 28px; height: 20px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.buy-card-swap img { width: 14px; height: 14px; }
.buy-card-pay { display: flex; gap: 4px; align-items: center; margin-top: 20px; padding: 6px 8px 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); font-size: 14px; letter-spacing: 0.14px; }
.buy-card-pay > span { display: flex; gap: 8px; align-items: center; white-space: pre; }
.buy-card-pay i { font-style: normal; color: rgba(255, 255, 255, 0.5); }
.buy-card-pay img { width: 16px; height: 16px; }
.buy-card-pay > img { width: 12px; height: 12px; }
.buy-card-slider-inner { position: relative; width: 428px; height: 114.4px; }
.buy-card-cap { position: absolute; left: 14px; top: 48px; width: 5px; height: 3px; }
.buy-card-track { position: absolute; left: 17px; top: 48px; width: 395px; height: 3px; }
.buy-card-thumb { position: absolute; left: 90px; top: 0; width: 58px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.buy-card-thumb b { width: 81.878px; flex-shrink: 0; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: 0.24px; text-align: center; }
.buy-card-thumb img { width: 24px; height: 24px; }
.buy-card-presets { position: absolute; left: 0; top: 75px; width: 428px; padding: 0 12px; display: flex; gap: 4px; }
.buy-card-presets span { flex: 1 0 0; display: flex; justify-content: center; padding: 8px 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); font-size: 18px; letter-spacing: 0.18px; white-space: nowrap; }

/* One-tap buy: the app's buy sheet, quote and portfolio as loose pieces, stepped by home.js. */
.tap { position: relative; flex-shrink: 0; width: 430px; height: 740px; overflow: hidden; border: 0.5px solid rgba(255, 255, 255, 0.2); border-radius: 30px; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 500; line-height: 1.3; text-align: left; user-select: none; transform: scale(var(--s)); }
.tap img { display: block; max-width: none; }
.tap-buy { position: absolute; inset: 0; }
.tap-card {
    position: absolute;
    left: 0;
    width: 430px;
}
.tap .tap-sheet { position: absolute; top: 0; left: 0; height: 268px; border: 0; border-radius: 0; transform: none; }
.tap-sheet .buy-card-sheet { height: calc(100% + 1px); border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* The app's AssetEnterAura: the logo as a 430 square (radius 100) parked at -207, 50% and lightly
   blurred, under a black veil that ramps late — the mark stays faintly legible in the glow. */
.tap-aura { position: absolute; inset: 0 0 auto; height: 223px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tap-aura img { position: absolute; top: -207px; left: 0; width: 430px; height: 430px; border-radius: 100px; object-fit: cover; opacity: 0.5; filter: blur(10px); transform: translateZ(0); }
.tap-aura i { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.86) 70%, #000 92%); }
.tap-sheet .buy-card-content { padding-top: 52px; }
.tap-sheet .buy-card-amount { font-variant-numeric: tabular-nums; }
.tap-pay .tap-pay-stack { display: grid; }
.tap-pay-opt { grid-area: 1 / 1; display: flex; gap: 8px; align-items: center; white-space: pre; opacity: 0; }
.tap-pay-opt:first-child { opacity: 1; }
.tap-pay-opt i { font-style: normal; color: rgba(255, 255, 255, 0.5); }
.tap-pay-opt img { width: 16px; height: 16px; border-radius: 50%; }

.tap-slider { top: 268px; height: 124px; padding-top: 6px; display: flex; justify-content: center; }
.tap-slider .buy-card-cap { left: 36px; }
.tap-slider .buy-card-track { left: 39px; width: 373px; }
.tap-fill { position: absolute; left: 37px; top: 48px; width: 4px; height: 3px; border-radius: 3px; background: #fff; }
.tap-thumb { left: -12px; }
/* Left-aligned so the first digit, not the whole label, sits centred over the knob; --digit is set by home.js. */
.tap-thumb b { width: auto; align-self: flex-start; margin-left: calc(29px - var(--digit, 14px) / 2); text-align: left; font-variant-numeric: tabular-nums; }
.tap-knob { display: block; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }

.tap-quote { top: 400px; height: 200px; border-top: 0.5px solid rgba(255, 255, 255, 0.12); padding: 22px 24px; opacity: 0; }
.tap-quote-rows, .tap-quote-skel { position: absolute; inset: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
.tap-quote-rows { opacity: 0; }
.tap-quote-rows > div { display: flex; justify-content: space-between; align-items: center; font-size: 14px; letter-spacing: 0.14px; }
.tap-quote-rows dt { display: flex; gap: 6px; align-items: center; color: rgba(255, 255, 255, 0.6); }
.tap-quote-rows dd { margin: 0; }
.tap-quote-rows dd i { font-style: normal; color: rgba(255, 255, 255, 0.5); }
.tap-quote-rows u { text-underline-offset: 3px; }
.tap-info { width: 12px; height: 12px; color: rgba(255, 255, 255, 0.35); }
.tap-quote-skel span { display: flex; justify-content: space-between; height: 14px; }
.tap-quote-skel i {
    width: 26%;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.06) 100%) 0 0 / 200% 100%;
    animation: mk-shimmer 1.2s linear infinite;
}
.tap-quote-skel i + i { width: 44%; }
@keyframes mk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.tap-cta { position: absolute; top: 632px; left: 16px; width: 398px; height: 56px; border-radius: 100px; overflow: hidden; background: #002911; }
/* The app's Buy CTA: accent → the same hue at 20.5% (#16C861 → #002911), white label, always this fill. */
.tap-cta-grad, .tap-cta-fetch { position: absolute; inset: 0; border-radius: inherit; }
.tap-cta-grad { background: linear-gradient(90deg, #16c861, #002911); }
.tap-cta-fetch { background: #19181c; opacity: 0; }
.tap-cta-l { position: absolute; inset: 0; display: flex; gap: 10px; align-items: center; justify-content: center; border-radius: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.18px; }
.tap-cta-fetch .tap-cta-l { color: #7b7c84; opacity: 0; }
.tap-cta-proc { color: #000; font-weight: 500; opacity: 0; }
.tap-cta-ok { background: #16c861; opacity: 0; }
.tap-cta-ok svg { width: 30px; height: 30px; }
.tap-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tap-refresh { position: absolute; top: 700px; left: 0; width: 100%; margin: 0; font-size: 13px; text-align: center; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; opacity: 0; }

.tap-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: tap-spin 0.8s linear infinite; }
@keyframes tap-spin { to { transform: rotate(360deg); } }

.tap-toast {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 18px 8px 10px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    background: rgba(24, 24, 27, 0.92);
    translate: -50% 0;
    white-space: nowrap;
    opacity: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.tap-toast-icon { display: flex; width: 22px; height: 22px; border-radius: 50%; background: #16c861; }
.tap-toast-icon svg { width: 22px; height: 22px; }
.tap-toast-icon .tap-tick { stroke-width: 2.6; }
.tap-toast > span:last-child { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.tap-toast em { font-size: 12px; font-style: normal; color: #16c861; }

.trade-step {
    display: flex;
    gap: 10px;
    align-items: center;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

/* Banner carousel (900x510 slides) */
.carousel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Scrolling rails fade only the edge that has more content past it (toggled by home.js). */

.up { color: #16c861; }
.dn { color: #f95461; }
.caution { color: #ffd15e; }

/* Stock SVGs are bare brand glyphs, so they sit on a coin-sized badge. */

/* Two identical lists; shifting by exactly one list width (-50%) loops seamlessly. */

/* ============================================================
   Trustpilot reviews (white)
   ============================================================ */
.reviews {
    background: #fff;
    padding: 120px 0 60px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    overflow: hidden;
}

.reviews-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.reviews-tp {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.reviews-tp .tp-row1 {
    display: flex;
    gap: 14px;
    align-items: center;
}

.reviews-tp .tp-row1 .tp-excellent {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.24px;
    color: #000;
}

.reviews-tp .tp-stars-lg {
    width: 133.33px;
    height: 25px;
    display: flex;
    gap: 2.08px;
    align-items: center;
}
.reviews-tp .tp-stars-lg img { width: 25px; height: 25px; }

.reviews-tp .tp-row2 {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.reviews-tp .tp-row2 p {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.18px;
    color: #000;
    white-space: nowrap;
}
.reviews-tp .tp-row2 p strong { font-weight: 500; }
.reviews-tp .tp-row2 .tp-logo { width: 98px; height: 24px; }

.reviews-head h2 {
    font-size: 55px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.55px;
    color: #000;
    white-space: nowrap;
}

.reviews-strip {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    overflow: hidden;
}

/* Continuous marquee: JS appends a duplicate set of cards, then the row
   drifts right by exactly one set (50% + half the 12px gap) per cycle. */
.review-boxes {
    display: flex;
    gap: 12px;
    width: max-content;
    flex-shrink: 0;
    align-self: flex-start; /* anchor left so the loop always covers the viewport */
    animation: reviews-marquee 70s linear infinite;
    pointer-events: none;
}

@keyframes reviews-marquee {
    from { transform: translateX(calc(-50% - 6px)); }
    to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .review-boxes { animation: none; }
}

.review-boxes.is-draggable {
    animation: none;
    pointer-events: auto;
    touch-action: pan-y; /* horizontal drags move the row, vertical ones scroll the page */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.review-boxes.is-dragging { cursor: grabbing; }
.review-boxes.is-draggable img { -webkit-user-drag: none; pointer-events: none; }

.review-box {
    width: 400px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--grey);
    border-radius: 16px;
    padding: 31px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    filter: drop-shadow(0px 1px 1.5px rgba(30, 26, 22, 0.04));
}

.review-box .rb-top {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rb-stars {
    width: 66.72px;
    height: 12.51px;
    display: flex;
    gap: 1.04px;
}
.rb-stars img { width: 12.5px; height: 12.5px; }

.rb-invited {
    display: flex;
    gap: 4px;
    align-items: center;
}
.rb-invited img { width: 16px; height: 16px; }
.rb-invited span {
    font-size: 14px;
    line-height: 1.4;
    color: #000;
}

.review-box .rb-mid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
}
.review-box .rb-mid .rb-title { font-weight: 500; }

.review-box .rb-bottom {
    border-top: 0.5px solid #c8c8cd;
    padding-top: 20px;
}
.review-box .rb-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #000;
}
.review-box .rb-date {
    font-size: 14px;
    line-height: 1.4;
    color: var(--ash);
}

/* ============================================================
   FAQs (white)
   ============================================================ */
.faqs {
    background: #fff;
    padding: 120px 0;
}

.faqs-inner {
    display: flex;
    gap: 100px;
    align-items: stretch;
}

.faqs-side {
    width: 440px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.faq-help {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    border-radius: 36px;
    background: rgba(0, 0, 0, 0.03);
}

.faq-help-copy { display: flex; flex-direction: column; gap: 6px; }

.faq-help h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.22px;
    color: #000;
}

.faq-help p {
    font-size: 18px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.5);
}

.faq-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 12px 20px;
    border-radius: 100px;
    background: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.faq-help-btn img { width: 24px; height: 24px; transition: transform 0.2s ease; }
.faq-help-btn:hover { background: #222; }
.faq-help-btn:hover img { transform: translateX(2px); }

.faqs-inner h2 {
    font-size: 55px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.55px;
    color: #000;
}

.faq-list {
    flex: 1;
    min-width: 0;
}

.faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.faq-item:first-child { border-top: none; }
.faq-item:last-of-type { border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.faq-list.is-collapsed .faq-item:nth-of-type(n+6) { display: none; }
.faq-list.is-collapsed .faq-item:nth-of-type(5) { border-bottom: 1px solid rgba(0, 0, 0, 0.05); }

.faq-more {
    margin-top: 28px;
    padding: 12px 20px;
    border: 0;
    border-radius: 100px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
    color: #000;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-more:hover,
.faq-more:focus-visible { background: rgba(0, 0, 0, 0.04); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28); }
.faq-more[hidden] { display: none; }

.faq-question {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    text-align: left;
}
.faq-item:first-child .faq-question { padding-top: 0; }

.faq-question > span:first-child {
    flex: 1;
    min-width: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.22px;
    color: #000;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}
.faq-icon img { position: absolute; inset: 0; width: 20px; height: 20px; transition: opacity 0.2s ease; }
.faq-icon .icon-close { opacity: 0; }
.faq-item.is-open .faq-icon .icon-plus { opacity: 0; }
.faq-item.is-open .faq-icon .icon-close { opacity: 1; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    margin-top: -4px;
    padding-bottom: 24px;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-answer-inner a { font-weight: 500; color: #2b33ff; text-decoration: none; }
.faq-answer-inner a:hover,
.faq-answer-inner a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Download CTA
   ============================================================ */
.download-cta {
    position: relative;
    padding: 169px 0 120px;
    background: transparent;
    overflow-x: clip;
}

.download-cta .dl-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.download-cta h2 {
    font-size: 55px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.55px;
    color: #fff;
    white-space: nowrap;
}

.download-cta .dl-sub {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: -0.22px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

/* The eclipse stays at Figma's 1920px on narrower screens, so it runs off the edges instead of shrinking under the content.
   eclipse.js draws it live on a canvas; the SVG is the fallback without WebGL. */
.dl-eclipse {
    position: relative;
    width: max(1920px, 100vw);
    aspect-ratio: 1920 / 300;
    margin: 0 0 0 50%;
    transform: translateX(-50%);
    overflow: hidden;
    background: url("assets/figma/footer/eclipse.svg") center top / 100% 100% no-repeat;
    pointer-events: none;
}
.dl-eclipse.is-live { background: none; }
.dl-eclipse canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* ============================================================
   Footer (black)
   ============================================================ */
.site-footer {
    background: transparent;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-top {
    width: 1200px;
    max-width: calc(100% - 48px);
    padding: 20px 0 120px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.footer-nav {
    display: flex;
    gap: 50px;
    align-items: center;
}

.footer-nav a {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.2px;
    color: #fff;
    white-space: nowrap;
}
.footer-nav a.accent { color: #749bff; }

.footer-mid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 400px;
}

.social-icons a {
    padding: 3px 2px;
    display: flex;
}

.social-icons img { width: 20px; height: 18px; }
.social-icons a:nth-child(2) img { width: 18px; height: 18px; }
.social-icons a:nth-child(4) img { width: 22px; height: 18px; }
.footer-copy {
    font-size: 15px;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.5);
}

.footer-logo-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.footer-logo-col img { width: 178.49px; height: 25px; }

.footer-tagline {
    font-size: 15px;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.5);
}

.footer-lang { position: relative; display: flex; }
.footer-lang-trigger {
    display: flex;
    align-items: center;
    padding: 3px 2px;
    border: 0;
    background: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.footer-lang-trigger:hover,
.footer-lang.is-open .footer-lang-trigger { opacity: 1; }
.footer-lang-trigger .nav-lang-flag { width: 18px; height: 18px; }
.footer-lang-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 240px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(16, 17, 22, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.footer-lang.is-open .footer-lang-menu { display: flex; }
.footer-lang .nav-lang-option { color: #fff; }
.footer-lang .nav-lang-option:hover,
.footer-lang .nav-lang-option:focus-visible { background: rgba(255, 255, 255, 0.08); }
.footer-lang .nav-lang-option span { flex: 1; }
.footer-lang .nav-lang-check { background-image: url("assets/flags/check-inactive-dark.png"); }
.footer-lang .nav-lang-option[aria-pressed="true"] .nav-lang-check { background-image: url("assets/flags/check-active.png"); }
[dir="rtl"] .footer-lang-menu { left: auto; right: 0; }

.footer-legal-row {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-risk {
    max-width: 777px;
    font-size: 10px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
}
.footer-risk-col { display: flex; flex-direction: column; gap: 10px; }
.footer-notice { scroll-margin-top: 140px; }

.fn { margin-left: 0.04em; font-size: 0.85em; font-weight: 600; line-height: 0; vertical-align: 0.3em; }
.fn a { color: inherit; text-decoration: none; }
.fn a:hover,
.fn a:focus-visible { text-decoration: underline; }

.footer-legal-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-shrink: 0;
}

.footer-legal-links a {
    font-size: 10px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}
.footer-legal-links a.accent { color: #749bff; }

/* Giant wordmark with a cursor-following spotlight (clerk.com / Robinhood
   Legend style). The SVG is used as an alpha mask so gradients paint the type. */
.footer-giant {
    position: relative;
    width: 1596px;
    max-width: calc(100% - 48px);
    aspect-ratio: 1596 / 175;
    -webkit-mask-image: url("assets/figma/footer-giant-logo.svg");
    mask-image: url("assets/figma/footer-giant-logo.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.footer-giant .fg-base {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #35363c, #17181b 85%);
}

.footer-giant .fg-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(
        340px circle at var(--mx, 50%) var(--my, 50%),
        #fbf8f5 0%,
        #dce9ff 20%,
        #6f9be0 40%,
        rgba(44, 102, 164, 0.75) 56%,
        transparent 78%
    );
    pointer-events: none;
}

.footer-giant:hover .fg-glow { opacity: 1; }

/* ============================================================
   Legal pages (terms, privacy, cookies, risk)
   ============================================================ */
.legal-body { background: #fff; color: #000; }
.legal-main {
    background: #fff;
    padding: 40px 0 120px;
}
.legal-doc {
    width: 860px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}
.legal-doc .legal-kicker {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 1000px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--ultra-blue);
    margin-bottom: 20px;
}
.legal-doc h1 {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.44px;
    margin-bottom: 12px;
}
.legal-updated {
    font-size: 15px;
    color: var(--ash);
    margin-bottom: 36px;
}
.legal-doc h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.22px;
    margin: 36px 0 12px;
}
.legal-doc p {
    font-size: 17px;
    line-height: 1.5;
    color: #3a3a40;
    margin-bottom: 14px;
}
.legal-doc a { color: var(--ultra-blue); text-decoration: underline; }
.legal-doc h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 24px 0 8px;
}
.legal-doc ul {
    margin: 0 0 14px;
    padding-left: 22px;
    list-style: disc;
}
.legal-doc li {
    font-size: 17px;
    line-height: 1.5;
    color: #3a3a40;
    margin-bottom: 6px;
}

.audit-table-wrap {
    margin: 8px 0 24px;
    overflow-x: auto;
    border: 1px solid rgba(17, 24, 64, 0.08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 64, 0.06);
}
.audit-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
    color: #3a3a40;
}
.audit-table th {
    padding: 14px 18px;
    background: #f6f7fb;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    color: #000;
    white-space: nowrap;
}
.audit-table td {
    padding: 14px 18px;
    border-top: 1px solid rgba(17, 24, 64, 0.07);
    vertical-align: top;
}
.audit-table td:first-child { font-weight: 500; color: #000; }
.audit-table td:nth-child(4),
.audit-table td:last-child { white-space: nowrap; }
.audit-table .audit-missing td:nth-child(3) { font-weight: 500; color: #b4232a; }
.legal-footer { padding-top: 64px; background: #000; }
.footer-risk a { color: #749bff; text-decoration: underline; }

@media (max-width: 767px) {
    .legal-doc h1 { font-size: 32px; }
}

/* ============================================================
   Tutorials library: video cards, played in a dialog
   ============================================================ */
.tut-body { background: #000; color: #fff; }
.tut-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 24px; }
.tut-chip {
    padding: 9px 16px;
    border: 1px solid var(--panel-border);
    border-radius: 100px;
    background: transparent;
    color: var(--panel-text-light);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tut-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.tut-chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #000; }
.tut-chip:focus-visible { outline: 2px solid var(--glacier); outline-offset: 2px; }
.tut-grid li[hidden] { display: none; }
.tut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tut-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 10px 10px 18px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    color: #fff;
    text-decoration: none;
    transition: transform 0.35s var(--sx-ease), border-color 0.25s ease, background 0.25s ease;
}
.legal-doc .tut-card { color: #fff; text-decoration: none; }
.tut-card:hover { transform: translateY(-3px); border-color: rgba(178, 205, 255, 0.35); background: rgba(54, 59, 67, 0.45); }
.tut-card:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; }
.tut-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
    border-radius: 14px;
    overflow: hidden;
    background: #05060a;
}
.tut-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--sx-ease); }
.tut-card:hover .tut-thumb img { transform: scale(1.03); }
.tut-play {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 100px;
    background: var(--ultra-blue);
    box-shadow: 0 6px 18px rgba(24, 0, 247, 0.45);
    transition: transform 0.35s var(--sx-ease);
}
.tut-play svg { width: 20px; height: 20px; margin-left: 2px; fill: #fff; }
.tut-card:hover .tut-play { transform: scale(1.1); }
.tut-len {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    background: rgba(0, 0, 0, 0.65);
}
.tut-tag { padding: 0 6px; font-size: 13px; color: var(--glacier); }
.tut-name { padding: 0 6px; font-size: 18px; font-weight: 500; letter-spacing: -0.18px; }
.tut-about { padding: 0 6px; font-size: 15px; line-height: 1.45; color: var(--panel-text-light); }

html.tut-lock { overflow: hidden; }
/* The page opens like a homepage pop-up: the Security modal's panel, rise and glass close button. */
.tut-pop-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #1c16f0 0, rgba(24, 0, 247, 0.55) 70px, rgba(8, 4, 60, 0.35) 150px, rgba(0, 0, 0, 0) 260px) no-repeat,
        #000;
}
.tut-pop { padding: 60px 0 73px; }
.tut-pop-panel {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    animation: tut-pop-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both, tut-pop-fade 0.45s ease both;
}
.tut-pop-panel h1 { margin: 0 0 16px; font-size: 55px; font-weight: 400; line-height: 1.2; letter-spacing: -0.55px; text-align: center; color: #fff; }
.tut-pop-panel .legal-updated { max-width: 640px; margin: 0; font-size: 18px; line-height: 1.4; text-align: center; color: var(--ash); }
.tut-pop-panel .tut-chips { justify-content: center; margin: 40px 0 40px; }
.tut-pop-panel .tut-grid { width: 100%; }
.tut-pop-close {
    position: fixed;
    left: 50%;
    bottom: 55px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    transform: translate3d(-50%, 0, 0);
    animation: tut-pop-close-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.tut-pop-close img { position: relative; width: 24px; height: 24px; transition: filter 0.25s ease; }
.tut-pop-close:hover { transform: translate3d(-50%, -3px, 0) scale(1.04); box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 10px 26px rgba(0, 0, 0, 0.4), inset 0 0 0 100px rgba(255, 255, 255, 0.1); }
.tut-pop-close:hover img { filter: brightness(1.5); }
.tut-pop-close:active { transform: translate3d(-50%, 0, 0) scale(0.96); transition-duration: 0.12s; }
.tut-pop-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html.tut-pop-closing .tut-pop-panel { animation: tut-pop-out 0.35s ease both; }
html.tut-pop-closing .tut-pop-close { opacity: 0; transition: opacity 0.2s ease; }
@keyframes tut-pop-rise { from { transform: translate3d(0, 120px, 0); } }
@keyframes tut-pop-fade { from { opacity: 0; } }
@keyframes tut-pop-out { to { opacity: 0; transform: translate3d(0, 120px, 0); } }
@keyframes tut-pop-close-in { from { opacity: 0; transform: translate3d(-50%, 24px, 0); } }
/* Help centre in the same pop-up, light: the homepage's light pop-up panel and FAQ list. */
.help-pop-body {
    background:
        linear-gradient(180deg, #1c16f0 0, rgba(43, 51, 255, 0.35) 70px, rgba(43, 51, 255, 0.08) 150px, rgba(244, 244, 246, 0) 260px) no-repeat,
        #f4f4f6;
}
.help-pop-body .tut-pop-panel { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 40px 80px rgba(0, 0, 0, 0.12); }
.help-pop-body .tut-pop-panel h1 { color: #000; }
.help-pop-body .tut-pop-panel .legal-updated { color: rgba(0, 0, 0, 0.5); }
.help-pop-body .tut-pop-close { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 100px; }
.help-pop-body .tut-pop-close::before { display: none; }
.help-pop-body .tut-pop-close:hover { box-shadow: 0 0 0 1px rgba(43, 51, 255, 0.18), 0 14px 32px rgba(43, 51, 255, 0.16), inset 0 0 0 100px rgba(255, 255, 255, 0.9); }
.help-pop-body .tut-pop-close img { filter: invert(1); }
.help-pop-body .tut-pop-close:hover img { filter: invert(1) brightness(0.45); }
.help-pop-body .tut-pop-close:focus-visible { outline-color: #000; }
.help-sections { width: 100%; max-width: 860px; margin-top: 56px; }
.help-pop h2 { margin: 56px 0 8px; font-size: 25px; font-weight: 500; line-height: 1.4; letter-spacing: -0.25px; color: #000; }
.help-sections > h2:first-child { margin-top: 0; }
.help-pop .faq-item:first-child .faq-question { padding-top: 24px; }
.help-watch { font-size: 16px; }
.help-support {
    width: 100%;
    max-width: 860px;
    margin-top: 72px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.03);
}
.help-support p { margin: 0; font-size: 18px; line-height: 1.4; color: rgba(0, 0, 0, 0.5); }
.help-support .help-support-title { margin-bottom: 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.22px; color: #000; }
.help-support-btn {
    flex-shrink: 0;
    padding: 14px 22px;
    border-radius: 100px;
    background: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.help-support-btn:hover { background: #222; }
@media (max-width: 1439px) { .tut-pop-panel { padding: 80px 60px; } }
@media (max-width: 1023px) {
    .tut-pop-panel { padding: 64px 40px; }
    .tut-pop-panel h1 { font-size: 44px; letter-spacing: -0.44px; }
}
@media (max-width: 767px) {
    .tut-pop { padding: 16px 0 112px; }
    .tut-pop-panel { width: calc(100% - 24px); padding: 40px 16px; border-radius: 24px; }
    .tut-pop-panel h1 { font-size: 32px; letter-spacing: -0.32px; }
    .tut-pop-panel .legal-updated { font-size: 16px; }
    .tut-pop-panel .tut-chips { margin: 28px 0; }
    .tut-pop-close { bottom: 24px; width: 56px; height: 56px; }
    .help-sections { margin-top: 36px; }
    .help-pop h2 { margin-top: 40px; font-size: 21px; }
    .help-pop .faq-question > span:first-child { font-size: 18px; }
    .help-pop .faq-answer-inner { font-size: 16px; }
    .help-support { margin-top: 48px; padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .tut-pop-panel, html.tut-pop-closing .tut-pop-panel, .tut-pop-close { animation: none; }
    .tut-pop-close, .tut-pop-close:hover, .tut-pop-close:active { transform: translate3d(-50%, 0, 0); transition: none; }
}
dialog.tut-player {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}
dialog.tut-player[open] { display: flex; padding: 24px 0; overflow-y: auto; overscroll-behavior: contain; }
dialog.tut-player::backdrop { background: transparent; }
.tut-player-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.tut-player-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(1280px, calc(100% - 48px), calc((100vh - 220px) * 16 / 9));
    min-width: min(100% - 32px, 320px);
    margin: auto;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.5s var(--sx-ease);
}
.tut-player.is-open .tut-player-bg,
.tut-player.is-open .tut-player-panel { opacity: 1; }
.tut-player.is-open .tut-player-panel { transform: none; }
.tut-player-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tut-player-count { margin: 0 0 4px; font-size: 14px; color: var(--ash); font-variant-numeric: tabular-nums; }
.tut-player-title { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.28px; }
.tut-player-close {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    cursor: pointer;
}
.tut-player-close img { position: relative; width: 20px; height: 20px; }
.tut-player-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tut-player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.tut-player-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.tut-player-about { margin: 0; font-size: 16px; line-height: 1.5; color: var(--panel-text-light); }
.tut-player-nav { display: flex; flex-shrink: 0; gap: 10px; }
.tut-player-step {
    padding: 10px 18px;
    border: 1px solid var(--panel-border);
    border-radius: 100px;
    background: var(--panel);
    color: #fff;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.tut-player-step:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.tut-player-step:disabled { opacity: 0.35; cursor: default; }
.tut-player-step:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 1023px) {
    .tut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .tut-grid { grid-template-columns: 1fr; }
    .tut-player-title { font-size: 22px; }
    .tut-player-foot { flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .tut-card, .tut-thumb img, .tut-play, .tut-player-panel { transition: none; }
}

/* ============================================================
   Responsive fallbacks (design reference is 1920)
   ============================================================ */
@media (max-width: 1279px) {
    .hero-text { left: 24px; }
    .trade-row { flex-direction: column; align-items: center; gap: 48px; padding-left: 0; }
    .trade-demo { width: 100%; }
    .trade-demo.trade-demo--asset { --s: 0.85; width: calc(580px * var(--s)); }
    .steps { width: 100%; max-width: 590px; padding: 0; gap: 40px; }
    .steps .steps-title--fit { width: 100%; margin-right: 0; font-size: min(44px, 7.5cqi); }
    .apple-eth-row { flex-direction: column; align-items: center; gap: 56px; }
    .apple-eth-image { width: 100%; }
    .apple-eth::before { left: calc(50% - 743.5px); }
    .markets-row { flex-direction: column; align-items: center; gap: 56px; }
    .markets-row + .markets-row { margin-top: 120px; }
    .markets-row + .markets-title { margin-top: 120px; }
    .markets-image { width: 100%; }
    .markets-image--insights { margin-top: 0; }
    .markets-image--browse { margin-top: 0; }
    .three-bar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
    .trade-title h2 { font-size: 40px; white-space: normal; text-align: center; }
    .faqs-inner { flex-direction: column; gap: 40px; }
    .faqs-inner h2 { width: auto; font-size: 40px; }
    .faqs-side { width: auto; display: contents; }
    .faq-help { order: 3; }
    .reviews-head h2 { font-size: 40px; white-space: normal; text-align: center; }
    .download-cta h2 { font-size: 40px; white-space: normal; }
    .footer-nav { flex-wrap: wrap; gap: 24px; }
    .footer-brand-row { flex-direction: column; align-items: flex-start; gap: 30px; }
    .footer-logo-col { align-items: flex-start; }
    .footer-legal-row { flex-direction: column; gap: 24px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-text h1 { width: 480px; font-size: 60px; }
    .hero-sub { width: 440px; font-size: 20px; }
}

/* Tablets: the side-by-side hero needs ~1100px, so stack it and centre. */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero { display: flex; flex-direction: column; align-items: center; height: auto; padding: 150px 0 0; }
    .hero-text {
        order: 1;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        align-items: center;
        text-align: center;
        padding: 0 40px;
    }
    .release-pill { align-self: center; }
    .hero-text h1 { width: auto; font-size: 64px; }
    .hero-rotate { justify-items: center; }
    .hero-sub { width: auto; max-width: 520px; }
    .hero .store-badges { justify-content: center; }
    .hero-iphone {
        order: 2;
        position: relative;
        left: auto;
        top: auto;
        margin: 48px auto 0;
        --s: 0.8352;
    }
}

@media (max-width: 767px) {
    .hero { display: flex; flex-direction: column; height: auto; min-height: 720px; padding: 140px 0 0; }
    .hero-text { order: 1; position: relative; left: auto; top: auto; transform: none; padding: 0 24px; }
    .hero-text h1 { width: auto; font-size: 44px; }
    .hero-iphone {
        order: 2;
        position: relative;
        left: auto;
        top: auto;
        margin: 36px auto 0;
        --s: 0.6593;
    }
    .hero-sub { width: auto; font-size: 18px; }
    .site-nav { width: calc(100% - 40px); }
    .nav-cta { display: none; }
    .nav-cta { padding: 0 18px; font-size: 14px; }
}

/* ============================================================
   Mobile and tablet — breakpoints follow strikex.com
   (1024 tablet, 767 phone, 480 small phone, 360 compact)
   ============================================================ */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (max-width: 1024px) {
    .container { max-width: calc(100% - 40px); }
    .trade { padding: 110px 0 90px; }
    .trade-block + .trade-block { margin-top: 110px; }
    .trade-title { margin-bottom: 44px; }
    .trade--everything .trade-title { margin-bottom: 64px; }
    .download-cta { padding: 110px 0 90px; }
}

@media (max-width: 767px) {
    .container { max-width: calc(100% - 40px); }

    .beta-banner { padding: 8px 40px 8px 16px; }
    .beta-banner p { font-size: 11.5px; line-height: 16px; }
    .beta-banner-close { right: 6px; }

    .site-header { height: 76px; padding: 10px 0; }
    .site-top--overlay { margin-bottom: -76px; }
    .site-nav { height: 44px; }
    .site-header.is-scrolled .site-nav { height: 56px; }
    .nav-logo { --logo-w: 128px; --logo-h: 17.93px; }
    .nav-cta { height: 44px; }

    .hero { min-height: 0; padding: 112px 0 0; }
    .hero-text { gap: 16px; padding: 0 20px; }
    .hero-text h1 { font-size: clamp(36px, 11vw, 46px); line-height: 1.1; }
    .hero-sub { font-size: 17px; }
    .release-pill { padding: 8px 16px; font-size: 15px; }
    .hero .store-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
    .hero .beta-btn { justify-content: center; padding: 0 12px; }
    .beta-btn small { white-space: nowrap; }

    .trade { padding: 88px 0 72px; }
    .trade-block + .trade-block { margin-top: 88px; }
    .trade-title { gap: 16px; margin-bottom: 36px; }
    .trade--everything .trade-title { margin-bottom: 48px; }
    .trade-title h2,
    .reviews-head h2,
    .faqs-inner h2,
    .download-cta h2 { font-size: clamp(30px, 8.6vw, 38px); line-height: 1.12; letter-spacing: -0.4px; }
    .tp-mini { flex-wrap: wrap; row-gap: 6px; }

    .reviews-tp .tp-row1 .tp-excellent { font-size: 20px; }
    .reviews-tp .tp-row2 { flex-wrap: wrap; justify-content: center; text-align: center; }
    .reviews-tp .tp-row2 p { font-size: 16px; white-space: normal; }

    .faqs-inner { gap: 28px; }
    .faq-help { padding: 28px; gap: 28px; border-radius: 28px; }
    .faq-question { padding: 24px 0; gap: 16px; font-size: 17px; }

    .download-cta { padding: 88px 0 72px; }
    .download-cta .store-badges { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 360px; margin: 0 auto; }
    .download-cta .beta-btn { height: 58px; justify-content: center; }
    .download-cta .beta-btn svg { width: 26px; height: 26px; }
    .download-cta .beta-btn span { font-size: 20px; }
    .download-cta .beta-btn small { font-size: 12px; }
    .dl-eclipse { width: 240vw; }

    .footer-social-col,
    .footer-copy { max-width: 100%; }
    .social-icons { width: auto; max-width: 100%; flex-wrap: wrap; gap: 4px; }
    .social-icons a,
    .footer-lang-trigger { width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }

    .beta-banner-close { width: 40px; height: 40px; }
    .trade-step { min-height: 40px; }
    .footer-nav { gap: 8px 28px; }
    .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; }
    .footer-legal-links a { display: inline-flex; align-items: center; min-height: 40px; }
}

@media (max-width: 480px) {
    .hero .beta-btn { gap: 8px; padding: 0 10px; }
    .hero .beta-btn svg { width: 20px; height: 20px; }
    .hero .beta-btn span { font-size: 16px; }
    .hero .beta-btn small { font-size: 10px; }
    .mk-browse { zoom: 0.74; }
}
@media (max-width: 767px) {
    .steps .steps-title { font-size: clamp(30px, 8.6vw, 38px); }
    .steps .steps-title--fit { font-size: min(clamp(30px, 8.6vw, 38px), 7.5cqi); }
    .steps-copy h4 { font-size: 22px; white-space: normal; }
    .steps-copy p { font-size: 16px; }
    /* Phones: the three become cards in a sideways swipe, the next one peeking in at the edge. */
    .three-bar-grid {
        width: auto;
        max-width: none;
        display: flex;
        gap: 12px;
        padding: 8px 24px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 24px;
        scrollbar-width: none;
    }
    .three-bar-grid::-webkit-scrollbar { display: none; }
    .three-bar-grid { gap: 32px; }
    .three-bar-item {
        flex: 0 0 78%;
        gap: 24px;
        scroll-snap-align: start;
    }
    .three-bar { padding: 40px 0 48px; }
    /* A hairline halfway across the 136px between the step cards above and these. */
    .three-bar::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 24px;
        right: 24px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.4) 80%, transparent);
    }
    .three-bar--light::before { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2) 20%, rgba(0, 0, 0, 0.2) 80%, transparent); }
    /* Phones: each feature row reads title, animation, then its steps as swipe cards (home.js
       initStepCarousels keeps the selected card and the animation together). */
    [data-trade-steps] > .steps { display: contents; }
    [data-trade-steps] .steps-title { order: -1; align-self: stretch; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.24px; color: rgba(255, 255, 255, 0.7); }
    [data-trade-steps] .steps--light .steps-title { color: rgba(0, 0, 0, 0.6); }
    .trade--everything .trade-title,
    .markets .markets-title { margin-bottom: 88px; }
    [data-trade-steps] .steps-list {
        order: 1;
        position: relative;
        align-self: center;
        width: 100vw;
        display: flex;
        flex-direction: row;
        gap: 12px;
        padding: 0 24px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 24px;
        scrollbar-width: none;
    }
    [data-trade-steps] .steps-list::-webkit-scrollbar { display: none; }
    [data-trade-steps] .steps-item {
        flex: 0 0 82%;
        width: auto;
        min-width: 0;
        padding: 20px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        scroll-snap-align: start;
        transition: box-shadow 0.3s ease, background-color 0.3s ease;
    }
    [data-trade-steps] .steps-item.is-active { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
    [data-trade-steps] .steps--light .steps-item { background: rgba(0, 0, 0, 0.03); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
    [data-trade-steps] .steps--light .steps-item.is-active { background: rgba(0, 0, 0, 0.05); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
    [data-trade-steps] .steps-item .steps-line { display: none; }
    [data-trade-steps] .steps-row { align-items: flex-start; }
    [data-trade-steps] .steps-item { gap: 28px; }
    [data-trade-steps] .steps-item > .steps-more { align-self: stretch; margin-top: auto; }
    .lockup--void .trade--everything,
    .apple-eth { padding: 88px 0; }
    .apple-eth::before { bottom: calc(88px - 495.2px); }
    .apple-eth-image { --s: 0.8; height: calc(740px * var(--s)); }
    .markets { padding: 88px 0; }
    .markets-title { margin-bottom: 64px; font-size: clamp(32px, 9vw, 44px); }
    .markets-row + .markets-row { margin-top: 88px; }
    .markets-row + .markets-title { margin-top: 88px; }
    .markets-strip { margin: 88px 0; }
    .markets-image--insights { --s: 0.8; }
    .buy-card { transform-origin: 50% 50%; }
    .trade-demo.trade-demo--asset { --s: 0.74; width: calc(430px * var(--s)); height: calc(687px * var(--s)); }
    .trade-demo--asset .asset-card { left: 0; top: 0; }
}
@media (max-width: 374px) {
    .trade-demo.trade-demo--asset { --s: 0.66; }
}

@media (max-width: 360px) {
    .container { max-width: calc(100% - 32px); }
    .hero-text { padding: 0 16px; }
    .hero .store-badges { grid-template-columns: minmax(0, 1fr); }
    .hero .beta-btn small { font-size: 12px; }
    .nav-cta { padding: 0 14px; font-size: 13px; }
    .nav-logo { --logo-w: 116px; --logo-h: 16.25px; }
}

/* Phones held sideways: keep the hero compact and the header out of the way. */
@media (max-height: 500px) and (orientation: landscape) {
    .site-header { height: 64px; padding: 6px 0; }
    .site-top--overlay { margin-bottom: -64px; }
    .site-nav { height: 44px; }
    .hero { min-height: 0; padding-top: 104px; }
    .hero-text { gap: 12px; }
    .hero-text h1 { font-size: 42px; line-height: 1.1; }
    .hero-sub { font-size: 17px; margin-bottom: 4px; }
    .release-pill { padding: 7px 16px; font-size: 14px; }
    .beta-banner { padding-top: 6px; padding-bottom: 6px; }
}

/* Arabic: the page mirrors, but the app has no RTL layout, so its mocks (and the scrolling tracks) stay LTR */

[dir="rtl"] .review-boxes {
    direction: ltr;
}

/* Arabic keeps the header pill in its usual order; only the menu copy reads right-to-left */
[dir="rtl"] .site-header.is-scrolled .site-nav { padding: 6px 18px 6px 6px; }
[dir="rtl"] .site-header {
    direction: ltr;
}
[dir="rtl"] .nav-menu a,
[dir="rtl"] .nav-trigger {
    direction: rtl;
}
[dir="rtl"] .nav-menu a {
    text-align: right;
}

/* ==================== "More about Security" modal (Figma 4577:28781) ==================== */
html.sec-modal-lock { overflow: hidden; }
dialog.sec-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}
dialog.sec-modal::backdrop { background: transparent; }
.sec-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.01);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    opacity: 0;
    transition: opacity 0.45s ease;
}
.sec-modal-scroll {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 60px 0 73px;
}
/* The dialog's autofocus target: without it Safari focuses the first link and scrolls the modal down to it. */
.sec-modal-scroll:focus { outline: none; }
.sec-modal-panel {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 100px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    opacity: 0;
    transform: translate3d(0, 120px, 0);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.sec-modal-title { margin: 0; font-size: 55px; font-weight: 400; line-height: 1.2; letter-spacing: -0.55px; text-align: center; color: #fff; }
.sec-modal-close {
    position: fixed;
    left: 50%;
    bottom: 55px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    padding: 0;
    border: 0;
    cursor: pointer;
    opacity: 0;
    transform: translate3d(-50%, 24px, 0);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, box-shadow 0.25s ease;
}
.sec-modal-close img { position: relative; width: 24px; height: 24px; transition: filter 0.25s ease; }
/* Hover lifts the button and lays a highlight over its glass; the glass gradient itself never changes,
   since a gradient can't fade into a flat colour and would blink through to the backdrop. */
.sec-modal.is-open .sec-modal-close:hover { transform: translate3d(-50%, -3px, 0) scale(1.04); transition-delay: 0s; box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 10px 26px rgba(0, 0, 0, 0.4), inset 0 0 0 100px rgba(255, 255, 255, 0.1); }
.sec-modal.is-open .sec-modal-close:active { transform: translate3d(-50%, 0, 0) scale(0.96); transition-duration: 0.12s; }
.sec-modal-close:hover img { filter: brightness(1.5); }
.sec-modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sec-modal.is-open .sec-modal-bg,
.sec-modal.is-open .sec-modal-panel { opacity: 1; }
.sec-modal.is-open .sec-modal-panel { transform: none; }
.sec-modal.is-open .sec-modal-close { opacity: 1; transform: translate3d(-50%, 0, 0); transition-delay: 0.15s; }

.sec-rows { width: 100%; display: flex; flex-direction: column; gap: 30px; }
.sec-row { display: flex; gap: 30px; align-items: center; }
/* --k is set from JS so the 770 x 430 artwork scales down with its box instead of clipping. */
.sec-art-box {
    --k: 1;
    position: relative;
    flex: 1 0 0;
    min-width: 0;
    height: calc(430px * var(--k));
    overflow: hidden;
    border-radius: calc(36px * var(--k));
    background: rgba(255, 255, 255, 0.05);
}
.sec-art {
    position: absolute;
    left: 50%;
    top: 0;
    width: 770px;
    height: 430px;
    margin-left: -385px;
    transform: scale(var(--k));
    transform-origin: 50% 0;
}
.sec-art img { display: block; max-width: none; }
.sec-glow { position: absolute; left: -100px; top: -203px; width: 773px; height: 733px; }
.sec-glow--flip { left: 97px; top: -100px; transform: scaleX(-1); }
.sec-wave { position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); transform: translate(-50%, -50%); }
.sec-bgart { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); opacity: 0.6; transform: translate(-50%, -50%); }
.sec-glass {
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 297 277.55' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23g)' opacity='0.1'/><defs><radialGradient id='g' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(25.45 26.97 -28.86 20.091 22.5 7.8502)'><stop stop-color='rgb(255,255,255)' offset='0.13945'/><stop stop-color='rgb(188,215,255)' offset='0.48345'/><stop stop-color='rgb(154,195,255)' offset='0.65546'/><stop stop-color='rgb(121,174,255)' offset='0.82746'/><stop stop-color='rgb(137,164,204)' offset='0.91373'/><stop stop-color='rgb(153,153,153)' offset='1'/></radialGradient></defs></svg>") 0 0 / 100% 100%;
    -webkit-backdrop-filter: blur(12.5px);
    backdrop-filter: blur(12.5px);
}
.sec-passkey {
    position: absolute;
    left: calc(50% + 0.5px);
    top: calc(50% - 0.23px);
    width: 297px;
    padding: 40px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    transform: translate(-50%, -50%);
}
.sec-passkey-icon { position: relative; width: 106.116px; height: 73.102px; flex-shrink: 0; }
.sec-passkey-faceid { position: absolute; left: 17.686px; top: -8.253px; width: 70.744px; height: 70.744px; }
.sec-passkey-faceid svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sec-btn-label { display: block; }
.sec-btn-spinner,
.sec-btn-tick { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; opacity: 0; }
.sec-passkey-badge {
    position: absolute;
    left: 58.95px;
    top: 25.94px;
    width: 47.163px;
    height: 47.163px;
    overflow: hidden;
    border: 0.59px solid #323139;
    border-radius: 18.865px;
    background: linear-gradient(135deg, #2b33ff 52.554%, #4e7eff 100%);
}
.sec-passkey-badge img { position: absolute; left: calc(26.67% - 0.28px); top: calc(25% - 0.29px); width: 22.774px; height: 23.883px; }
.sec-passkey-text { width: 100%; padding: 0 31.442px; display: flex; flex-direction: column; gap: 4.716px; align-items: center; text-align: center; line-height: 1.3; }
.sec-passkey-text b { font-size: 20px; font-weight: 500; letter-spacing: 0.2px; white-space: nowrap; }
.sec-passkey-text span { font-size: 14px; letter-spacing: 0.14px; }
.sec-passkey-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 278px;
    height: 37.73px;
    margin: 10px 0 10px;
    flex-shrink: 0;
    border-radius: 78.605px;
    background: #2b33ff;
    font-size: 14.15px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.1415px;
}
.sec-limits {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 514px;
    padding: 30px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform: translate(-50%, -50%);
}
.sec-limits-head { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.sec-limits-cap { font-size: 14px; line-height: 1.3; letter-spacing: 0.14px; color: rgba(255, 255, 255, 0.45); }
.sec-limits-note { display: flex; gap: 6px; align-items: center; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, 0.6); opacity: 0; }
.sec-limits-note i { width: 6px; height: 6px; border-radius: 50%; background: #4e7eff; box-shadow: 0 0 8px #4e7eff; }
.sec-limits-value { margin: 6px 0 24px; font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -0.96px; color: #fff; font-variant-numeric: tabular-nums; }
.sec-slider { position: relative; width: 100%; height: 22px; }
.sec-slider-track,
.sec-slider-fill { position: absolute; left: 0; top: 10px; width: 100%; height: 2px; border-radius: 2px; }
.sec-slider-track { background: rgba(255, 255, 255, 0.15); }
.sec-slider-fill { background: linear-gradient(90deg, #2b33ff, #4e7eff); box-shadow: 0 0 12px rgba(78, 126, 255, 0.8); transform: scaleX(0.1); transform-origin: 0 50%; }
.sec-slider-thumb {
    position: absolute;
    left: -11px;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(78, 126, 255, 0.22), 0 0 18px rgba(78, 126, 255, 0.9);
    transform: translateX(45px);
}
.sec-slider-ends { display: flex; justify-content: space-between; width: 100%; margin: 10px 0 34px; font-size: 12px; color: rgba(255, 255, 255, 0.3); }
.sec-chips { position: relative; display: flex; gap: 8px; margin-top: 12px; }
.sec-chip { position: relative; z-index: 1; padding: 9px 14px; border-radius: 100px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); font-size: 13px; line-height: 1.2; white-space: nowrap; color: rgba(255, 255, 255, 0.5); }
.sec-chip.is-on { color: #fff; background: linear-gradient(135deg, #2b33ff 52.554%, #4e7eff 100%); box-shadow: 0 0 18px rgba(43, 51, 255, 0.6); }
.sec-chip-on { display: none; position: absolute; left: 0; top: 0; height: 100%; border-radius: 100px; background: linear-gradient(135deg, #2b33ff 52.554%, #4e7eff 100%); box-shadow: 0 0 18px rgba(43, 51, 255, 0.6); }
.sec-chips--live .sec-chip-on { display: block; }
.sec-chips--live .sec-chip.is-on { background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0); }
.sec-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sec-link-track { stroke: rgba(255, 255, 255, 0.15); stroke-width: 1.5; }
.sec-link-glow { stroke: url(#sec-link-grad); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px #4e7eff); opacity: 0; }
.sec-node { position: absolute; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; color: #fff; }
.sec-emblem { width: 84px; height: 84px; overflow: visible; }
.sec-pair { position: absolute; left: 50%; top: 50%; width: 500px; height: 310px; transform: translate(-50%, -50%); }
.sec-node-label { position: absolute; font-size: 14px; line-height: 1; letter-spacing: 0.14px; white-space: nowrap; color: rgba(255, 255, 255, 0.5); }
.sec-account {
    position: absolute;
    left: 330px;
    top: 95px;
    width: 110px;
    height: 110px;
    border: 0.59px solid #323139;
    border-radius: 40px;
    background: linear-gradient(135deg, #2b33ff 52.554%, #4e7eff 100%);
    box-shadow: 0 0 40px rgba(43, 51, 255, 0.35);
}
.sec-account img { position: absolute; left: 26.67%; top: 25%; width: 48.29%; height: 50.64%; }
.sec-account-label { position: absolute; left: 385px; top: 222px; font-size: 14px; line-height: 1; letter-spacing: 0.14px; white-space: nowrap; color: rgba(255, 255, 255, 0.5); transform: translateX(-50%); }
.sec-coowners { position: absolute; left: 385px; top: 250px; display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; color: #34c759; opacity: 0; transform: translateX(-50%); }
.sec-coowners svg { width: 18px; height: 18px; }
.sec-copy { width: 500px; flex-shrink: 0; padding: 0 30px; display: flex; flex-direction: column; gap: 10px; }
.sec-copy h3 { margin: 0; font-size: 25px; font-weight: 500; line-height: 1.4; letter-spacing: -0.25px; color: #fff; }
.sec-copy p { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.4; color: #7b7c84; }
.sec-copy p + p { margin-top: 1.4em; }
.sec-copy p > a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sec-modal--light .sec-copy p > a { color: #000; }

/* "More about Issuers": the Security modal's shell in light mode. The issuer pill is white in difference
   mode, so the chip under it reads black with white text wherever it slides. */
.sec-modal--light { color: #000; }
.sec-modal--light .sec-modal-bg { background: rgba(255, 255, 255, 0.3); }
.sec-modal--light .sec-modal-panel { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 40px 80px rgba(0, 0, 0, 0.12); }
.sec-modal--light .sec-modal-title,
.sec-modal--light .sec-copy h3 { color: #000; }
.sec-modal--light .sec-art-box { background: #f4f4f6; }
/* The Security line art is drawn light-on-dark; inverted it reads as grey linework on the light boxes. */
.sec-modal--light .sec-wave,
.sec-modal--light .sec-bgart { filter: invert(1); opacity: 0.35; }
.sec-modal--light .sec-modal-close { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 100px; }
.sec-modal--light.is-open .sec-modal-close:hover { box-shadow: 0 0 0 1px rgba(43, 51, 255, 0.18), 0 14px 32px rgba(43, 51, 255, 0.16), inset 0 0 0 100px rgba(255, 255, 255, 0.9); }
.sec-modal--light .sec-modal-close:hover img { filter: brightness(0.45); }
.sec-modal--light .sec-modal-close:focus-visible { outline-color: #000; }
.iss-glass {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(12.5px);
    backdrop-filter: blur(12.5px);
    color: #000;
    line-height: 1.3;
    transform: translate(-50%, -50%);
}

.iss-net { position: absolute; inset: 0; }
.iss-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.iss-link-track { stroke: rgba(0, 0, 0, 0.12); stroke-width: 1.5; }
.iss-link-glow { stroke: url(#iss-link-grad); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(78, 126, 255, 0.8)); opacity: 0; }
.iss-node { position: absolute; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 100px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.08); }
.iss-node > img { width: 100%; height: 100%; border-radius: 100px; }
/* Issuer marks are bare glyphs, so the white node is their circle. */
.iss-node > img[src*="/issuers/"] { width: 32px; height: 32px; border-radius: 0; object-fit: contain; }
.iss-node-label { position: absolute; font-size: 13px; line-height: 1; white-space: nowrap; color: rgba(0, 0, 0, 0.5); transform: translateX(-50%); }
.iss-hub { position: absolute; left: 330px; top: 160px; width: 110px; height: 110px; border-radius: 40px; background: linear-gradient(135deg, #2b33ff 52.554%, #4e7eff 100%); box-shadow: 0 20px 40px rgba(43, 51, 255, 0.3); }
.iss-hub img { position: absolute; left: 26.67%; top: 25%; width: 48.29%; height: 50.64%; }
.iss-hub-label { position: absolute; left: 385px; top: 286px; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; color: rgba(0, 0, 0, 0.6); transform: translateX(-50%); }

.iss-lists { width: 400px; padding: 18px 18px 16px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; }
.iss-l-chips { position: relative; display: flex; width: 100%; padding: 4px; box-sizing: border-box; border-radius: 100px; background: rgba(0, 0, 0, 0.05); }
.iss-l-chip { position: relative; flex: 1 0 0; padding: 8px 0; text-align: center; font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, 0.5); transition: color 0.3s; }
.iss-l-chip.is-on { color: #000; }
.iss-l-pill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 100px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.iss-l-panels { display: grid; width: 100%; margin-top: 18px; }
.iss-l-grid { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
.iss-l-grid + .iss-l-grid .iss-l-tile { opacity: 0; }
.iss-l-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.iss-l-tile i { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; overflow: hidden; border-radius: 100px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.06); }
.iss-l-tile img { width: 100%; height: 100%; object-fit: cover; }
.iss-l-tile img[src$=".svg"] { width: 56%; height: 56%; object-fit: contain; }
.iss-l-tile small { font-size: 12px; color: rgba(0, 0, 0, 0.5); }
.iss-l-more { margin-top: 16px; font-size: 13px; font-weight: 500; color: #2b33ff; }

.iss-node--tok em { position: absolute; right: -2px; bottom: -2px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; box-sizing: border-box; border: 2px solid #fff; border-radius: 100px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.1); }
.iss-node--tok em img { width: 100%; height: 100%; border-radius: 100px; }
.iss-node--tok em img[src*="/issuers/"] { width: 15px; height: 15px; border-radius: 0; object-fit: contain; }
.iss-prem-label { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; }
.iss-prem-label b,
.iss-prem-hub b { font-weight: 500; color: #000; font-variant-numeric: tabular-nums; }
.iss-prem-label b { font-size: 15px; }
.iss-hub--asset { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(43, 51, 255, 0.18); }
.iss-hub--asset { overflow: hidden; }
.iss-hub--asset img { left: 0; top: 0; width: 100%; height: 100%; }
.iss-prem-hub { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: rgba(0, 0, 0, 0.5); }
.iss-prem-hub b { font-size: 20px; letter-spacing: -0.2px; }
.iss-prem-pct { position: absolute; padding: 4px 8px; border-radius: 100px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #f4f4f6; }
.iss-prem-pct.is-up { background: #e3f7e9; color: #08872c; }
.iss-prem-pct.is-down { background: #fde8e8; color: #c62828; }

/* "More about Transactions": the dark Security shell carrying the Issuers modal's hub-and-spoke art. */
.tx-fees { position: absolute; left: 50%; top: 50%; width: 400px; padding: 26px 24px 20px; box-sizing: border-box; display: flex; flex-direction: column; color: #fff; line-height: 1.3; transform: translate(-50%, -50%); }
.tx-fees-title { font-size: 20px; font-weight: 500; letter-spacing: 0.2px; text-align: center; }
.tx-fees-sub { margin: 4px 0 18px; font-size: 13px; text-align: center; color: rgba(255, 255, 255, 0.45); }
.tx-fee-rows { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tx-fee-on { position: absolute; left: 0; right: 0; top: 0; height: 58px; border-radius: 16px; background: linear-gradient(135deg, rgba(43, 51, 255, 0.55), rgba(78, 126, 255, 0.35)); box-shadow: inset 0 0 0 1px rgba(78, 126, 255, 0.8), 0 0 24px rgba(43, 51, 255, 0.45); }
.tx-fee-row { position: relative; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px 0 12px; box-sizing: border-box; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tx-fee-row > img { width: 34px; height: 34px; border-radius: 100px; }
.tx-fee-row > span { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.tx-fee-row b { font-size: 15px; font-weight: 500; }
.tx-fee-row small { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.tx-radio { position: relative; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 100px; transition: border-color 0.3s; }
.tx-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 100px; background: #fff; transform: scale(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tx-fee-row.is-on .tx-radio { border-color: #fff; }
.tx-fee-row.is-on .tx-radio::after { transform: none; }
.tx-fee-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.tx-fee-paid b { display: inline-block; min-width: 36px; font-weight: 500; color: #fff; }

.tx-net { position: absolute; inset: 0; }
.tx-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tx-link-track { stroke: rgba(255, 255, 255, 0.15); stroke-width: 1.5; }
.tx-link-glow { stroke: url(#tx-link-grad); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px #4e7eff); opacity: 0; }
.tx-hub { position: absolute; left: 330px; top: 160px; width: 110px; height: 110px; box-sizing: border-box; border: 0.59px solid #323139; border-radius: 40px; background: linear-gradient(135deg, #2b33ff 52.554%, #4e7eff 100%); box-shadow: 0 0 40px rgba(43, 51, 255, 0.35); }
.tx-hub img { position: absolute; left: 26.67%; top: 25%; width: 48.29%; height: 50.64%; }
.tx-hub-label { position: absolute; left: 385px; top: 286px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, 0.5); transform: translateX(-50%); }
.tx-best { display: flex; gap: 6px; align-items: center; font-weight: 500; color: #34c759; opacity: 0; }
.tx-best svg { width: 18px; height: 18px; }
.tx-venue { position: absolute; padding: 12px 18px; border-radius: 100px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; color: #fff; transition: color 0.3s; }
.tx-venue.is-best { color: #34c759; }
.tx-quote { position: absolute; font-size: 13px; line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.tx-quote.is-best { color: #34c759; font-weight: 500; }
.tx-chain { position: absolute; width: 52px; height: 52px; border-radius: 100px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tx-chain img { width: 100%; height: 100%; border-radius: 100px; }
.tx-chain-label { position: absolute; font-size: 13px; line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, 0.5); transform: translateY(-50%); }
.tx-chain-label.is-left { transform: translate(-100%, -50%); }
.tx-route { flex-direction: row; gap: 8px; top: 290px; color: rgba(255, 255, 255, 0.75); }
.tx-route svg { width: 14px; height: 14px; color: #4e7eff; }

/* "More about Stock tokens": the Issuers modal's light shell. */
.stk-flow { position: absolute; inset: 0; }
.stk-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stk-link-track { stroke: rgba(0, 0, 0, 0.14); stroke-width: 1.5; stroke-dasharray: 4 6; }
.stk-link-glow { stroke: url(#stk-link-grad); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(78, 126, 255, 0.8)); opacity: 0; }
.stk-node { position: absolute; width: 84px; height: 84px; border-radius: 100px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.08); }
.stk-node > img { width: 100%; height: 100%; border-radius: 100px; }
.stk-node em { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; box-sizing: border-box; border: 2px solid #fff; border-radius: 100px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.stk-node em img { width: 100%; height: 100%; border-radius: 100px; }
.stk-hub { position: absolute; display: flex; align-items: center; justify-content: center; width: 110px; height: 110px; border-radius: 40px; background: linear-gradient(135deg, #2b33ff 52.554%, #4e7eff 100%); box-shadow: 0 20px 40px rgba(43, 51, 255, 0.3); }
.stk-hub svg { width: 48px; height: 48px; }
.stk-label { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; line-height: 1; white-space: nowrap; color: rgba(0, 0, 0, 0.5); transform: translateX(-50%); }
.stk-label b { font-size: 15px; font-weight: 500; color: #000; }
.stk-status { position: absolute; left: 385px; top: 350px; display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 100px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.06); font-size: 14px; line-height: 1; white-space: nowrap; color: #000; transform: translateX(-50%); }
.stk-status i { width: 6px; height: 6px; border-radius: 50%; background: #2b33ff; box-shadow: 0 0 6px rgba(43, 51, 255, 0.6); }

.stk-card { border: 0.5px solid rgba(0, 0, 0, 0.08); border-radius: 24px; background: rgba(255, 255, 255, 0.8); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); -webkit-backdrop-filter: blur(12.5px); backdrop-filter: blur(12.5px); color: #000; }
.stk-compare { position: absolute; left: 50%; top: 50%; width: 500px; padding: 20px; box-sizing: border-box; line-height: 1.3; transform: translate(-50%, -50%); }
.stk-cmp-head,
.stk-cmp-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: center; gap: 10px; }
.stk-cmp-head { padding: 0 14px 12px; font-size: 13px; font-weight: 500; color: rgba(0, 0, 0, 0.45); }
.stk-cmp-head span:nth-child(n+2),
.stk-cmp-row span:nth-child(n+2) { display: flex; justify-content: center; text-align: center; }
.stk-cmp-head span:last-child { color: #2b33ff; }
.stk-cmp-rows { position: relative; display: flex; flex-direction: column; gap: 4px; }
.stk-cmp-on { position: absolute; left: 0; right: 0; top: 0; height: 50px; border-radius: 14px; background: rgba(43, 51, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(43, 51, 255, 0.35); }
.stk-cmp-row { position: relative; height: 50px; padding: 0 14px; box-sizing: border-box; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); font-size: 14px; color: rgba(0, 0, 0, 0.55); transition: color 0.3s; }
.stk-cmp-row.is-on { color: #000; }
.stk-cmp-row span:nth-child(n+2) { font-weight: 500; color: #000; }
.stk-cmp-row svg { width: 20px; height: 20px; }

.stk-chart { position: absolute; left: 50%; top: 50%; width: 520px; padding: 22px 24px 18px; box-sizing: border-box; line-height: 1.3; transform: translate(-50%, -50%); }
.stk-chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.stk-chart-tok { display: flex; gap: 12px; align-items: center; }
.stk-chart-tok > img { width: 40px; height: 40px; border-radius: 100px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.stk-chart-tok > span,
.stk-chart-ref { display: flex; flex-direction: column; gap: 4px; }
.stk-chart-ref { align-items: flex-end; }
.stk-chart small { font-size: 13px; color: rgba(0, 0, 0, 0.5); }
.stk-chart-tok b { font-size: 26px; font-weight: 500; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.stk-chart-ref b { font-weight: 500; color: #000; font-variant-numeric: tabular-nums; }
.stk-prem { padding: 4px 8px; border-radius: 100px; font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; transition: background-color 0.3s, color 0.3s; }
.stk-prem.is-up { background: #e3f7e9; color: #08872c; }
.stk-prem.is-down { background: #fde8e8; color: #c62828; }
.stk-plot { display: block; width: 472px; height: 160px; overflow: visible; }
.stk-closed { fill: rgba(0, 0, 0, 0.035); }
.stk-edge { stroke: rgba(0, 0, 0, 0.2); stroke-width: 1; stroke-dasharray: 3 4; }
.stk-under { stroke: rgba(0, 0, 0, 0.4); stroke-width: 1.5; stroke-linecap: round; }
.stk-under--flat { stroke-dasharray: 4 5; }
.stk-tok { stroke: #2b33ff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 6px rgba(43, 51, 255, 0.35)); }
.stk-tok--track { stroke: rgba(43, 51, 255, 0.15); filter: none; }
.stk-dot { fill: #fff; stroke: #2b33ff; stroke-width: 2.5; filter: drop-shadow(0 2px 6px rgba(43, 51, 255, 0.5)); }
.stk-closed-label { position: absolute; left: 218px; top: 104px; font-size: 12px; color: rgba(0, 0, 0, 0.45); }
.stk-axis { position: relative; height: 14px; margin-top: 10px; font-size: 11px; color: rgba(0, 0, 0, 0.4); }
.stk-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.stk-axis span:nth-child(1) { left: 40px; }
.stk-axis span:nth-child(2) { left: 170px; }
.stk-axis span:nth-child(3) { left: 270px; }
.stk-axis span:nth-child(4) { left: 370px; }
.stk-axis span:nth-child(5) { left: 456px; }

@media (max-width: 1439px) {
    .sec-modal-panel { padding: 80px 60px; }
    .sec-copy { width: 440px; }
}
@media (max-width: 1023px) {
    .sec-modal-panel { padding: 64px 40px; gap: 48px; }
    .sec-modal-title { font-size: 44px; letter-spacing: -0.44px; }
    .sec-rows { gap: 48px; }
    .sec-row { flex-direction: column; align-items: stretch; gap: 24px; }
    .sec-art-box { flex: none; width: 100%; }
    .sec-copy { width: auto; padding: 0; }
}
@media (max-width: 767px) {
    .sec-modal-scroll { padding: 16px 0 112px; }
    .sec-modal-panel { width: calc(100% - 24px); padding: 40px 16px; gap: 32px; border-radius: 24px; }
    .sec-modal-title { font-size: 32px; letter-spacing: -0.32px; }
    .sec-copy h3 { font-size: 22px; letter-spacing: -0.22px; }
    .sec-copy p { font-size: 16px; }
    .sec-modal-close { bottom: 24px; width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .sec-modal-panel,
    .sec-modal-close { transform: none; transition: opacity 0.2s ease; }
    .sec-modal.is-open .sec-modal-close,
    .sec-modal.is-open .sec-modal-close:hover,
    .sec-modal.is-open .sec-modal-close:active { transform: translate3d(-50%, 0, 0); }
    .sec-modal-close { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 480px) {
    .apple-eth-image { --s: 0.72; height: calc(740px * var(--s)); }
    .markets-image--insights { --s: 0.72; }
}
