/* ==========================================================================
   CTRL TRADING — HOMEPAGE (scoped under .home)
   Institutional, data-dense, calm. No emojis; inline SVG icons only.
   ========================================================================== */

.home {
    --h-bg: #f7f8fb;
    --h-surface: #ffffff;
    --h-ink: #0b1220;
    --h-ink-2: #111a2e;
    --h-ink-3: #1b2640;
    --h-text: #334155;
    --h-muted: #5b6678;
    --h-subtle: #8a94a6;
    --h-line: #e5e9f0;
    --h-line-dark: rgba(148, 163, 184, 0.16);
    --h-primary: #4f46e5;
    --h-primary-hover: #4338ca;
    --h-primary-soft: #eef0ff;
    --h-pos: #059669;
    --h-pos-soft: #e7f6f0;
    --h-neg: #e11d48;
    --h-radius: 14px;
    --h-radius-sm: 10px;
    --h-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px -12px rgba(11, 18, 32, 0.12);
    --h-mono: "JetBrains Mono", Menlo, Consolas, monospace;

    background: var(--h-bg);
    color: var(--h-text);
    font-feature-settings: "cv11", "ss01";
}

.home h1, .home h2, .home h3, .home h4 { color: var(--h-ink); letter-spacing: -0.025em; }
.home p { margin-bottom: 0; }
.home .tnum { font-variant-numeric: tabular-nums; }
.home a:focus-visible,
.home button:focus-visible,
.home input:focus-visible,
.home summary:focus-visible {
    outline: 2px solid var(--h-primary);
    outline-offset: 2px;
}

/* ---------- Shared section scaffolding ---------- */
.h-section { padding-block: 96px; }
.h-section + .h-section { border-top: 1px solid var(--h-line); }
.h-head { max-width: 680px; margin-bottom: 48px; }
.h-head.center { margin-inline: auto; text-align: center; }
.h-eyebrow {
    display: inline-block;
    font-family: var(--h-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--h-primary);
    margin-bottom: 14px;
}
.h-title { font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.h-lead { font-size: 1.0625rem; line-height: 1.65; color: var(--h-muted); }

.h-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px;
    border-radius: var(--h-radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: 0.9375rem; line-height: 1;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    cursor: pointer; white-space: nowrap;
}
.h-btn-primary { background: var(--h-primary); color: #fff; }
.h-btn-primary:hover { background: var(--h-primary-hover); color: #fff; }
.h-btn-ghost { background: var(--h-surface); color: var(--h-ink); border-color: var(--h-line); }
.h-btn-ghost:hover { border-color: #c9d0dc; color: var(--h-ink); }
.h-btn[disabled] { opacity: .65; cursor: progress; }

.h-check { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; color: var(--h-pos); }
.h-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.h-list li { display: flex; gap: 10px; font-size: 0.9375rem; line-height: 1.55; }
.h-list strong { color: var(--h-ink); font-weight: 600; }

/* ---------- Hero ---------- */
.h-hero { padding: 148px 0 88px; position: relative; overflow: hidden; }
.h-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to right, rgba(11,18,32,.035) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(to bottom, rgba(11,18,32,.035) 1px, transparent 1px) 0 0 / 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 40%, transparent 100%);
}
.h-hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 992px) { .h-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }

.h-status {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 12px 6px 10px; margin-bottom: 24px;
    background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 999px;
    font-size: 0.8125rem; font-weight: 500; color: var(--h-text);
}
.h-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h-pos); box-shadow: 0 0 0 4px var(--h-pos-soft); }
.h-hero h1 { font-size: clamp(2.125rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.06; margin-bottom: 20px; }
.h-hero h1 span { color: var(--h-primary); }
.h-hero .h-lead { font-size: 1.125rem; max-width: 540px; margin-bottom: 32px; }

.h-form { display: flex; gap: 8px; max-width: 480px; }
.h-form input {
    flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 16px;
    border: 1px solid #cfd6e2; border-radius: var(--h-radius-sm);
    background: var(--h-surface); color: var(--h-ink); font-size: 0.9375rem;
}
.h-form input::placeholder { color: var(--h-subtle); }
.h-form .h-btn { min-height: 48px; }
@media (max-width: 479px) { .h-form { flex-direction: column; } }
.h-form-note { font-size: 0.8125rem; color: var(--h-muted); margin-top: 12px; max-width: 480px; }
.h-form-note a { color: var(--h-text); text-decoration: underline; text-underline-offset: 2px; }
.h-feedback { display: none; margin-top: 12px; font-size: 0.875rem; font-weight: 500; padding: 10px 14px; border-radius: var(--h-radius-sm); max-width: 480px; }
.h-feedback.is-visible { display: block; }
.h-feedback.success { background: var(--h-pos-soft); color: #065f46; }
.h-feedback.info { background: var(--h-primary-soft); color: var(--h-primary-ink, #3730a3); }
.h-feedback.error { background: #fdecef; color: #9f1239; }

.h-perks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 0.875rem; color: var(--h-text); }
.h-perks span { display: inline-flex; align-items: center; gap: 8px; }
.h-perks svg { width: 16px; height: 16px; color: var(--h-primary); }

/* ---------- Product preview (terminal) ---------- */
.h-terminal {
    background: var(--h-ink); color: #cbd5e1;
    border-radius: 16px; border: 1px solid #1f2a44;
    box-shadow: 0 30px 60px -30px rgba(11, 18, 32, 0.55), 0 0 0 1px rgba(255,255,255,.02) inset;
    overflow: hidden;
}
.h-term-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--h-line-dark);
    font-family: var(--h-mono); font-size: 0.75rem; color: #94a3b8;
}
.h-term-bar strong { color: #e2e8f0; font-weight: 500; }
.h-term-tag {
    padding: 3px 8px; border-radius: 6px; background: rgba(5,150,105,.14); color: #34d399;
    font-size: 0.6875rem; letter-spacing: .04em; text-transform: uppercase;
}
.h-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--h-line-dark); }
.h-kpi { padding: 14px 16px; border-right: 1px solid var(--h-line-dark); min-width: 0; }
.h-kpi:last-child { border-right: 0; }
.h-kpi dt { font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; color: #8190a8; font-weight: 500; margin-bottom: 4px; }
.h-kpi dd { margin: 0; font-family: var(--h-mono); font-size: 1rem; color: #f1f5f9; font-variant-numeric: tabular-nums; }
.h-kpi dd.pos { color: #34d399; }
.h-kpi dd.neg { color: #fb7185; }
@media (max-width: 479px) {
    .h-kpis { grid-template-columns: repeat(2, 1fr); }
    .h-kpi:nth-child(2) { border-right: 0; }
    .h-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--h-line-dark); }
}
.h-chart { padding: 16px 16px 4px; }
.h-chart svg { display: block; width: 100%; height: auto; }
.h-chart-legend { display: flex; gap: 16px; font-size: 0.6875rem; color: #8190a8; padding: 0 16px 12px; font-family: var(--h-mono); }
.h-chart-legend i { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 6px; }
.h-trades { width: 100%; border-collapse: collapse; font-family: var(--h-mono); font-size: 0.75rem; }
.h-trades th, .h-trades td { padding: 9px 16px; text-align: left; border-top: 1px solid var(--h-line-dark); white-space: nowrap; }
.h-trades th { color: #8190a8; font-weight: 500; font-size: 0.6875rem; letter-spacing: .06em; text-transform: uppercase; }
.h-trades td { color: #cbd5e1; font-variant-numeric: tabular-nums; }
.h-trades td.r { text-align: right; } .h-trades th.r { text-align: right; }
.h-trades .pos { color: #34d399; } .h-trades .neg { color: #fb7185; }
.h-trades-wrap { overflow-x: auto; }
.h-term-caption { font-size: 0.75rem; color: var(--h-muted); margin-top: 12px; text-align: center; }

/* ---------- Facts strip ---------- */
.h-facts { border-block: 1px solid var(--h-line); background: var(--h-surface); }
.h-facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 992px) { .h-facts-grid { grid-template-columns: repeat(4, 1fr); } }
.h-fact { padding: 28px 24px; border-right: 1px solid var(--h-line); }
.h-fact:last-child { border-right: 0; }
@media (max-width: 991px) {
    .h-fact:nth-child(2n) { border-right: 0; }
    .h-fact:nth-child(-n+2) { border-bottom: 1px solid var(--h-line); }
}
@media (max-width: 575px) {
    .h-facts-grid { grid-template-columns: 1fr; }
    .h-fact { border-right: 0; border-bottom: 1px solid var(--h-line); }
    .h-fact:last-child { border-bottom: 0; }
}
.h-fact-k { font-family: var(--h-mono); font-size: 0.75rem; color: var(--h-subtle); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.h-fact-v { font-weight: 600; color: var(--h-ink); font-size: 1rem; line-height: 1.4; }

/* ---------- Steps ---------- */
.h-steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 768px) { .h-steps { grid-template-columns: repeat(3, 1fr); } }
.h-step {
    background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius);
    padding: 28px; box-shadow: var(--h-shadow);
}
.h-step-n { font-family: var(--h-mono); font-size: 0.8125rem; color: var(--h-primary); font-weight: 500; margin-bottom: 18px; display: block; }
.h-step h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 10px; }
.h-step p { font-size: 0.9375rem; line-height: 1.6; color: var(--h-muted); }
.h-step-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--h-line); font-family: var(--h-mono); font-size: 0.75rem; color: var(--h-subtle); }

/* ---------- Products ---------- */
.h-products { display: grid; gap: 20px; }
@media (min-width: 992px) { .h-products { grid-template-columns: 1fr 1fr; } }
.h-product {
    background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius);
    padding: 36px; display: flex; flex-direction: column; gap: 20px;
}
.h-product.dark { background: var(--h-ink); border-color: #1f2a44; color: #cbd5e1; }
.h-product.dark h3 { color: #f8fafc; }
.h-product.dark .h-product-sub { color: #94a3b8; }
.h-product.dark .h-list strong { color: #f1f5f9; }
.h-product.dark .h-check { color: #34d399; }
.h-product-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--h-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--h-primary); }
.h-product.dark .h-product-tag { color: #a5b4fc; }
.h-product-tag svg { width: 16px; height: 16px; }
.h-product h3 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.h-product-sub { font-size: 0.9375rem; line-height: 1.6; color: var(--h-muted); }
.h-platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.h-platforms span { font-family: var(--h-mono); font-size: 0.6875rem; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--h-line); color: var(--h-muted); }
.h-product.dark .h-platforms span { border-color: var(--h-line-dark); color: #94a3b8; }

/* ---------- Analytics grid ---------- */
.h-analytics { display: grid; gap: 20px; }
@media (min-width: 768px) { .h-analytics { grid-template-columns: 1fr 1fr; } }
.h-an {
    background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius);
    overflow: hidden; display: flex; flex-direction: column;
}
.h-an-viz { background: #fbfcfe; border-bottom: 1px solid var(--h-line); padding: 20px; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.h-an-viz svg { width: 100%; height: auto; max-height: 170px; display: block; }
.h-an-body { padding: 24px; }
.h-an h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.h-an p { font-size: 0.9375rem; line-height: 1.6; color: var(--h-muted); }
.h-heat { display: grid; grid-template-columns: 34px repeat(12, 1fr); gap: 3px; width: 100%; font-family: var(--h-mono); font-size: 0.625rem; }
.h-heat span { display: flex; align-items: center; justify-content: center; height: 24px; border-radius: 3px; color: var(--h-ink); font-variant-numeric: tabular-nums; }
.h-heat .y { justify-content: flex-start; color: var(--h-subtle); }
.h-heat .m { height: 16px; color: var(--h-subtle); }
.h-heat .p3 { background: #059669; color: #fff; } .h-heat .p2 { background: #a7e3cb; } .h-heat .p1 { background: #e7f6f0; }
.h-heat .n1 { background: #fdecef; } .h-heat .n2 { background: #fbc4cf; } .h-heat .n3 { background: #e11d48; color: #fff; }

/* ---------- Security ---------- */
.h-sec-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 992px) { .h-sec-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.h-sec-items { display: grid; gap: 28px 32px; }
@media (min-width: 576px) { .h-sec-items { grid-template-columns: 1fr 1fr; } }
.h-sec-item svg { width: 22px; height: 22px; color: var(--h-primary); margin-bottom: 12px; }
.h-sec-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.h-sec-item p { font-size: 0.9rem; line-height: 1.6; color: var(--h-muted); }

.h-arch { background: var(--h-ink); border-radius: 16px; padding: 28px; color: #cbd5e1; border: 1px solid #1f2a44; }
.h-arch-title { font-family: var(--h-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: #8190a8; margin-bottom: 20px; }
.h-arch-zone { border: 1px solid var(--h-line-dark); border-radius: 12px; padding: 18px; }
.h-arch-zone.local { border-color: rgba(52, 211, 153, .35); background: rgba(5, 150, 105, .06); }
.h-arch-zone h4 { font-size: 0.875rem; font-weight: 600; color: #f1f5f9; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; letter-spacing: 0; }
.h-arch-zone h4 small { font-family: var(--h-mono); font-weight: 400; font-size: 0.6875rem; color: #8190a8; }
.h-arch-zone.local h4 small { color: #34d399; }
.h-arch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h-arch-chips span { font-family: var(--h-mono); font-size: 0.6875rem; padding: 5px 8px; border-radius: 6px; background: rgba(148,163,184,.08); color: #cbd5e1; }
.h-arch-chips span.key { background: rgba(52,211,153,.12); color: #6ee7b7; }
.h-arch-link { display: flex; align-items: center; gap: 12px; padding: 14px 4px; font-family: var(--h-mono); font-size: 0.6875rem; color: #8190a8; }
.h-arch-link::before { content: ""; width: 1px; height: 28px; background: repeating-linear-gradient(to bottom, #64748b 0 4px, transparent 4px 8px); margin-left: 18px; }
.h-arch-note { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--h-line-dark); font-size: 0.8125rem; color: #94a3b8; }
.h-arch-note strong { color: #fda4af; font-weight: 600; }

/* ---------- Pricing ---------- */
.h-plans { display: grid; gap: 20px; }
@media (min-width: 768px) { .h-plans { grid-template-columns: repeat(3, 1fr); } }
.h-plan {
    background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius);
    padding: 28px; display: flex; flex-direction: column;
}
.h-plan.featured { border-color: var(--h-primary); box-shadow: 0 0 0 1px var(--h-primary), var(--h-shadow); }
.h-plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.h-plan-name { font-weight: 700; font-size: 1.0625rem; color: var(--h-ink); }
.h-plan-badge { font-family: var(--h-mono); font-size: 0.6875rem; padding: 3px 8px; border-radius: 6px; background: var(--h-primary-soft); color: var(--h-primary); text-transform: uppercase; letter-spacing: .04em; }
.h-plan-desc { font-size: 0.875rem; color: var(--h-muted); min-height: 2.8em; }
.h-price { margin: 20px 0 22px; display: flex; align-items: baseline; gap: 4px; color: var(--h-ink); }
.h-price b { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.h-price span { color: var(--h-muted); font-size: 0.875rem; }
.h-plan .h-list { margin-bottom: 28px; }
.h-plan .h-list li { font-size: 0.875rem; }
.h-plan .h-list li.off { color: var(--h-subtle); }
.h-plan .h-list li.off svg { color: #b6bfcc; }
.h-plan .h-btn { width: 100%; margin-top: auto; }
.h-plan .h-btn { margin-top: auto; width: 100%; }
.h-plans-foot { text-align: center; margin-top: 28px; font-size: 0.9375rem; }
.h-plans-foot a { color: var(--h-primary); font-weight: 600; }

/* ---------- FAQ ---------- */
.h-faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--h-line); }
.h-faq details { border-bottom: 1px solid var(--h-line); }
.h-faq summary {
    list-style: none; cursor: pointer; padding: 22px 4px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-weight: 600; color: var(--h-ink); font-size: 1rem;
}
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--h-muted); transition: transform .2s ease; }
.h-faq details[open] summary svg { transform: rotate(45deg); }
.h-faq .h-faq-a { padding: 0 4px 22px; font-size: 0.9375rem; line-height: 1.7; color: var(--h-muted); max-width: 720px; }

/* ---------- Final CTA ---------- */
.h-cta { padding-block: 88px; background: var(--h-ink); color: #cbd5e1; }
.h-cta-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) { .h-cta-inner { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.h-cta h2 { color: #f8fafc; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 12px; }
.h-cta p { color: #94a3b8; font-size: 1.0625rem; line-height: 1.6; }
.h-cta .h-form input { background: #0f1729; border-color: #2a3654; color: #f1f5f9; }
.h-cta .h-form input::placeholder { color: #64748b; }
.h-cta .h-form-note { color: #8190a8; }
.h-cta .h-form-note a { color: #cbd5e1; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* Only hidden once JS has opted in, so content never disappears without JS. */
    .home.js-reveal .h-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
    .home.js-reveal .h-reveal.is-in { opacity: 1; transform: none; }
    .h-equity { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: h-draw 1.6s ease-out .2s forwards; }
    @keyframes h-draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Responsive guards ----------
   Grid items default to min-width:auto, so a wide child (the trades table, the heatmap)
   would stretch its column past the viewport on small screens. */
.h-hero-grid > *, .h-products > *, .h-analytics > *, .h-sec-grid > *,
.h-plans > *, .h-steps > *, .h-cta-inner > * { min-width: 0; }
.h-heat { grid-template-columns: 34px repeat(12, minmax(0, 1fr)); }
/* When the card is too narrow for 12 legible columns (phones, and the 2-column tablet layout),
   transpose the matrix: months down, years across. Driven by the card width, not the screen. */
.h-an-viz:has(.h-heat) { container-type: inline-size; }
@container (max-width: 460px) {
    .h-heat { grid-auto-flow: column; grid-template-rows: repeat(13, auto); grid-template-columns: 34px repeat(3, minmax(0, 1fr)); font-size: 0.6875rem; }
    .h-heat span { height: 22px; }
    .h-heat .m { height: 22px; justify-content: flex-start; }
    .h-heat .y { justify-content: center; }
}
.h-an-viz svg { overflow: visible; }                /* chart labels sit just past the viewBox edge */
@media (max-width: 575px) {
    .h-section { padding-block: 64px; }
    .h-hero { padding: 112px 0 64px; }
    .h-head { margin-bottom: 32px; }
    .h-cta { padding-block: 64px; }
    .h-product, .h-arch { padding: 24px; }
    .h-step, .h-plan, .h-an-body { padding: 22px; }
    .h-an-viz { padding: 16px; }
}
@media (max-width: 479px) {
    .h-trades th:nth-child(2), .h-trades td:nth-child(2) { display: none; }   /* drop "Side" so price and PnL fit */
    .h-trades th, .h-trades td { padding-inline: 12px; }
}

/* ---------- Sticky phone call to action ----------
   Only on phones; shown by JS between the hero form and the final CTA. */
.h-sticky-cta { display: none; }
@media (max-width: 767.98px) {
    .h-sticky-cta {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; z-index: 1030;
        left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        padding: 10px 10px 10px 16px;
        background: var(--h-ink); color: #cbd5e1;
        border: 1px solid #1f2a44; border-radius: var(--h-radius);
        box-shadow: 0 12px 32px -8px rgba(11, 18, 32, 0.45);
        transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden;
        transition: transform .28s cubic-bezier(.16, 1, .3, 1), opacity .2s ease, visibility 0s linear .28s;
    }
    .h-sticky-cta.is-visible {
        transform: none; opacity: 1; visibility: visible;
        transition: transform .28s cubic-bezier(.16, 1, .3, 1), opacity .2s ease, visibility 0s;
    }
    .h-sticky-cta-text { display: flex; flex-direction: column; min-width: 0; font-size: 0.75rem; line-height: 1.35; }
    .h-sticky-cta-text strong { color: #f8fafc; font-size: 0.8125rem; font-weight: 600; }
    .h-sticky-cta-text span { color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .h-sticky-cta .h-btn { flex: 0 0 auto; min-height: 44px; padding: 0 16px; }
    .h-sticky-cta .h-btn:focus-visible { outline-color: #a5b4fc; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .h-sticky-cta, .h-sticky-cta.is-visible { transition: none; transform: none; }
}

/* ---------- Waitlist pop-up (native <dialog>) ----------
   Bottom sheet on phones, centred card on larger screens. */
.h-sheet {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(460px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 28px 24px;
    border: 1px solid var(--h-line);
    border-radius: 18px;
    background: var(--h-surface);
    color: var(--h-text);
    box-shadow: 0 24px 64px -16px rgba(11, 18, 32, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 2000;
}
.h-sheet::backdrop {
    background: rgba(11, 18, 32, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.h-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.h-sheet-head h2 { font-size: 1.375rem; font-weight: 700; margin: 0; color: var(--h-ink); }
.h-sheet-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--h-primary-soft, #eef0ff);
    color: var(--h-primary, #4f46e5);
    border: 1px solid rgba(79, 70, 229, 0.2);
}
.h-sheet-close {
    flex: 0 0 auto; width: 38px; height: 38px; margin-right: -6px; margin-top: -4px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: transparent; color: var(--h-muted); cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.h-sheet-close:hover { background: #f1f3f7; color: var(--h-ink); }
.h-sheet-close svg { width: 20px; height: 20px; }
.h-sheet-lead { color: var(--h-muted); font-size: 0.9375rem; line-height: 1.5; margin-bottom: 20px; }
.h-sheet .h-form { max-width: none; }
body:has(.h-sheet[open]) { overflow: hidden; }

@media (max-width: 767.98px) {
    .h-sheet {
        width: 100%;
        max-width: 100%;
        inset: auto 0 0 0;
        margin: 0;
        border-radius: 20px 20px 0 0;
        border-bottom: 0;
        border-left: 0;
        border-right: 0;
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -10px 40px rgba(11, 18, 32, 0.35);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .h-sheet[open] { animation: h-sheet-in .25s cubic-bezier(.16, 1, .3, 1); }
    .h-sheet[open]::backdrop { animation: h-fade-in .2s ease; }
    @keyframes h-sheet-in {
        from { transform: translateY(16px) scale(0.98); opacity: 0; }
        to { transform: translateY(0) scale(1); opacity: 1; }
    }
    @keyframes h-fade-in { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    .h-sheet[open] { animation: h-sheet-in-mobile .28s cubic-bezier(.16, 1, .3, 1); }
    @keyframes h-sheet-in-mobile {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}
