/*
 * Electro-Host main stylesheet
 * Sections:
 * 1) Reset & variables
 * 2) Layout & typography
 * 3) Header & navigation
 * 4) Hero & plans
 * 5) Product / platform sections
 * 6) Modals (compare, login, contact)
 * 7) Live chat theme
 * 8) Utilities & animations
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html {
    /* Fallback paint colour during repaints / scroll jumps */
    background-color: #020817;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

:root {
    --bg: #020817;
    --bg-soft: #050b1c;
    --bg-softer: #0b1120;
    --card: #020817;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --brand: #0ea5e9;
    --brand-soft: #38bdf8;
    --accent: #60a5fa;
    --radius: 20px;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, .55);
    --border-subtle: 1px solid rgba(148, 163, 253, .18);
    --transition-fast: 0.25s ease;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", -system-ui, sans-serif;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(56, 189, 248, .18), transparent 65%),
        radial-gradient(900px 500px at 5% -20%, rgba(79, 70, 229, .16), transparent 70%),
        linear-gradient(180deg, #020817, #020817 32%, #020817 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-soft);
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* Progress bar */
#progressBar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 80;
    pointer-events: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 70;
    backdrop-filter: saturate(160%) blur(14px);
    background: rgba(2, 6, 23, .82);
    border-bottom: 1px solid rgba(148, 163, 253, .16);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: var(--text);
}

.logo svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, .7));
    vertical-align: middle;
}

.logo span {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .3px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .86rem;
}

.main-menu a {
    color: #fff !important;
    padding: .3rem 0;
}

.main-menu a:hover {
    color: #e2e8f0 !important;
    /* soft white */
}

.main-menu .btn-nav {
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, .3);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, .16), transparent);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .65);
}

.main-menu .btn-nav:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, .26), rgba(15, 23, 42, 1));
    color: #eff6ff;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 253, .35);
    background: rgba(2, 6, 23, .98);
    color: var(--text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-toggle svg {
    width: 22px;
    height: 22px;
}

.mobile-toggle:focus {
    outline: none;
}

body:not(.show-focus) .mobile-toggle:focus-visible {
    outline: none;
}

/* Base: hide the details marker */
.mobile-nav summary {
    list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}

/* Desktop: show desktop menu, hide mobile */
.mobile-nav {
    display: none;
}

@media (max-width: 840px) {

    /* Hide desktop menu; show mobile trigger */
    .main-menu {
        display: none !important;
    }

    .mobile-nav {
        display: block;
        position: static;
    }

    /* key: static so child uses .nav as anchor */

    /* Hide native marker */
    .mobile-nav summary {
        list-style: none;
    }

    .mobile-nav summary::-webkit-details-marker {
        display: none;
    }

    /* Your existing toggle styles apply */
    .mobile-toggle {
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: 14px;
        border: 1px solid rgba(148, 163, 253, .35);
        background: rgba(2, 6, 23, .98);
        color: var(--text);
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Slide-down sheet anchored to the full header row (.nav) */
    .mobile-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;

        /* make it animate height smoothly */
        overflow: hidden;
        max-height: 0;
        /* collapsed */
        transition: max-height .25s ease, opacity .2s ease, transform .25s ease;
        transform: translateY(-6px);
        opacity: 0;

        /* visual styling */
        padding: 0 18px;
        /* start collapsed; vertical padding appears after open via content spacing */
        background: rgba(2, 6, 23, 0.98);
        border-top: 1px solid rgba(148, 163, 253, 0.22);
        box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
        display: block;
        /* always block; height controls visibility */
        z-index: 9999;
    }

    /* When <details> is open, expand to fit content */
    .mobile-nav[open] .mobile-menu {
        max-height: 80vh;
        /* enough room for links; auto-fit effect */
        padding: 18px 18px 22px;
        /* real padding when open */
        transform: translateY(0);
        opacity: 1;
    }

    /* Links inside sheet */
    .mobile-menu a,
    .mobile-menu .btn-nav {
        display: block;
        width: 100%;
        padding: 0.9rem 0;
        font-size: 0.95rem;
        text-align: left;
    }

    .mobile-menu .btn-nav {
        margin-top: 0.4rem;
        border-radius: 999px;
        text-align: center;
    }

    /* Optional: prevent background scroll (where :has is supported) */
    body:has(.mobile-nav[open]) {
        overflow: hidden;
    }
}

/* nice little slide feel for first paint (outside media so keyframes exist) */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero */
.hero {
    padding: 70px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, .96);
    border: 1px solid rgba(56, 189, 248, .32);
    color: var(--brand-soft);
    font-size: .74rem;
    box-shadow: var(--shadow-soft);
}

.eyebrow img {
    width: 16px;
    height: 16px;
}

h1 {
    margin: .9rem auto .5rem;
    font-size: clamp(2.1rem, 3.6vw + .4rem, 3.6rem);
    line-height: 1.05;
    letter-spacing: .01em;
}

.hero-sub {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: .95rem;
}

.hero-sub strong {
    color: var(--brand-soft);
    font-weight: 600;
}

.hero-cta {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .85rem 1.25rem;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .03em;
    text-transform: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #020817;
    box-shadow: 0 18px 50px rgba(56, 189, 248, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .95);
}

.btn-ghost {
    background: rgba(2, 6, 23, 1);
    color: var(--brand-soft);
    border: 1px solid rgba(148, 163, 253, .35);
}

.btn-ghost:hover {
    background: radial-gradient(circle at top, rgba(56, 189, 248, .16), transparent);
    color: #eff6ff;
    transform: translateY(-1px);
}

.hero-grid {
    margin-top: 26px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: .72rem;
    color: var(--muted);
}

.hero-pill {
    padding: .6rem .7rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 1);
    border: 1px solid rgba(75, 85, 99, .6);
    display: flex;
    align-items: center;
    gap: .4rem;
}

.hero-pill img {
    width: 14px;
    height: 14px;
}

@media(max-width:720px) {
    .hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* === Improved Hero === */
.hero-pro {
    padding: 82px 0 40px;
    position: relative;
}

.hero-grid-pro {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
}

@media (max-width: 960px) {
    .hero-grid-pro {
        grid-template-columns: 1fr;
    }
}



/* Headline polish */
.hero-headline {
    margin: .9rem 0 .4rem;
    font-size: clamp(2.3rem, 3.9vw + .3rem, 3.9rem);
    line-height: 1.05;
    letter-spacing: .005em;
}

.hero-spark {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-spark-alt {
    color: var(--brand-soft);
}

/* Chips */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: .9rem 0 .3rem;
}

.chip {
    padding: .32rem .6rem;
    font-size: .72rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, .35);
    color: var(--brand-soft);
    background: rgba(2, 6, 23, .9);
}

/* Proof */
.hero-proof {
    display: flex;
    gap: 16px;
    margin: 14px 0 0;
    flex-wrap: wrap;
}

.proof-item {
    min-width: 120px;
}

.proof-num {
    font-weight: 800;
    font-size: 1.2rem;
    color: #e5e7eb;
}

.proof-label {
    font-size: .76rem;
    color: var(--muted);
}

/* Status ticker */
.status-ticker {
    margin: 14px 0 0;
    font-size: .78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .5rem .7rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, .9);
    border: 1px solid rgba(148, 163, 253, .25);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .55);
}

.status-ticker .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(34, 197, 94, .7);
}

.status-ticker .dot.ok {
    background: #22c55e;
}

.status-ticker .sep {
    opacity: .5;
}

.ok-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .04rem .4rem;
    font-size: .68rem;
    background: rgba(34, 197, 94, .16);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, .35);
}

.ticker-link {
    margin-left: auto;
    font-size: .78rem;
}

@media (max-width:680px) {
    .ticker-link {
        margin-left: 0;
    }
}

/* Visual mock device */
.hero-visual {
    display: flex;
    justify-content: center;
}

.device.pro {
    width: min(520px, 90vw);
    border-radius: 26px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, .12), transparent),
        #020817;
    border: 1px solid rgba(148, 163, 253, .32);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 1);
    overflow: hidden;
    position: relative;
}

.device-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .68rem;
    color: var(--muted);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(75, 85, 99, .7);
}

.device-topbar .dots {
    display: flex;
    gap: 4px;
}

.device-topbar .dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 253, .5);
}

.device-topbar .title {
    opacity: .9;
}

.device-pane {
    max-height: 360px;
    overflow: auto;
    padding: 10px;
    scrollbar-width: thin;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    margin: 8px 0;
    background: rgba(5, 11, 28, 1);
    border: 1px solid rgba(31, 41, 55, .9);
    border-radius: 12px;
}

.metric .m-meta span {
    display: block;
    font-size: .72rem;
}

.metric .muted {
    color: var(--muted);
    opacity: .9;
}

.metric .m-val {
    font-weight: 800;
    font-size: 1.05rem;
    color: #e5e7eb;
}

/* Make the label/subline layout consistent */
.metric .m-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Ensure there’s no weird margin/padding sneaking in */
.metric .m-meta span {
    display: block;
    margin: 0;
    padding: 0;
}

/* Keep the tag looking like a pill, but treat it as a block under the label */
.metric .m-meta .tag {
    display: inline-flex;
    /* keep pill style */
    margin-top: 2px;
    /* small gap under the label */
    align-self: flex-start;
    /* align to the same left edge as the label */
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .12rem .45rem;
    font-size: .68rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, .35);
    color: var(--brand-soft);
}

.tag.good {
    border-color: rgba(34, 197, 94, .35);
    color: #86efac;
}

.tag.free {
    border-color: rgba(14, 165, 233, .45);
    color: var(--brand-soft);
}

/* reflection */
.device-reflect {
    position: absolute;
    inset: auto 10% -14px 10%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(56, 189, 248, .20), transparent);
    filter: blur(10px);
    opacity: .5;
    pointer-events: none;
}

/* Demo CTA looks like a linky button */
.demo-cta {
    border-style: dashed;
}


/* Generic section */
.section {
    padding: 25px 0;
    position: relative;
    scroll-margin-top: 75px;
    /* adjust to match your header height */
}

.section h2 {
    font-size: clamp(1.5rem, 2vw + .6rem, 2.2rem);
    margin: 0 0 .4rem;
}

.section .muted {
    color: var(--muted);
    font-size: .9rem;
}

/* Cinematic product section (Apple-esque) */
.product-cinematic {
    padding-top: 18px;
}

.cinematic-wrap {
    position: relative;
    margin-top: 14px;
    padding: 18px 18px 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .16), transparent),
        radial-gradient(circle at top right, rgba(96, 165, 250, .12), transparent),
        rgba(2, 6, 23, 0.98);
    border: 1px solid rgba(148, 163, 253, 0.22);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.98);
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 2.2fr);
    gap: 18px;
    align-items: center;
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.cinematic-copy h3 {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
}

.cinematic-copy p {
    margin: 0;
    font-size: .85rem;
    color: var(--muted);
}

.cinematic-pills {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .7rem;
}

.cinematic-pill {
    padding: .24rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, .32);
    color: var(--brand-soft);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.cinematic-pill img {
    width: 14px;
    height: 14px;
}

.cinematic-mock {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinematic-screen {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 14px 14px 12px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, .16), transparent),
        #020817;
    border: 1px solid rgba(148, 163, 253, .32);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 1);
    overflow: hidden;
}

.cinematic-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .62rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.cinematic-screen-dots {
    display: flex;
    gap: 4px;
}

.cinematic-screen-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 253, .5);
}

.cinematic-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
    font-size: .65rem;
}

.cinematic-metric {
    padding: 5px 6px;
    border-radius: 10px;
    background: rgba(5, 11, 28, 1);
    border: 1px solid rgba(31, 41, 55, .9);
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cinematic-metric strong {
    font-size: .8rem;
    color: var(--brand-soft);
    font-weight: 600;
}

.cinematic-reflection {
    position: absolute;
    bottom: -14px;
    left: 10%;
    right: 10%;
    height: 24px;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0.18), transparent);
    opacity: .4;
    filter: blur(10px);
}

@media(max-width:800px) {
    .cinematic-wrap {
        grid-template-columns: 1fr;
    }

    .cinematic-mock {
        order: -1;
    }
}

/* Plans carousel & interactive highlight */
.carousel {
    position: relative;
    margin-top: 20px;
}

.track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(min(96vw, 1100px)/1.32);
    gap: 16px;
    padding: 8px 4px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.track::-webkit-scrollbar {
    height: 8px;
}

.track::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 253, .35);
    border-radius: 999px;
}

.plan-card {
    scroll-snap-align: center;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.10), transparent),
        var(--bg-soft);
    border-radius: var(--radius);
    border: var(--border-subtle);
    padding: 32px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.72);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 1);
}

.plan-card:hover .best-badge {
    animation: badgePulse 1.4s ease-in-out infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 22px rgba(56, 189, 248, 0.85);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    }
}

.plan-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background: rgba(2, 6, 23, 1);
    color: var(--brand-soft);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 1;
}

.plan-label img {
    width: 14px;
    height: 14px;
}

.plan-title {
    margin: .5rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.plan-price {
    margin: .4rem 0 .1rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: #eff6ff;
}

.plan-price span {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 400;
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: .4rem 0 0;
    display: grid;
    gap: .25rem;
    font-size: .78rem;
    color: var(--muted);
}

.plan-list li {
    display: flex;
    gap: .35rem;
    align-items: flex-start;
}

.plan-list img {
    width: 12px;
    height: 12px;
    margin-top: 2px;
}

.plan-cta {
    margin-top: .9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .4rem;
}

.best-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #020817;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
    z-index: 2;
    pointer-events: none;
    transform-origin: center;
}

/* Plan mini highlight row */
.plans-highlight-row {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: flex-start;
    font-size: .78rem;
    color: var(--muted);
}

.plans-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plans-toggle button {
    padding: .28rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, .32);
    background: rgba(2, 6, 23, 1);
    color: var(--muted);
    font-size: .68rem;
    cursor: pointer;
    transition: all .18s ease;
}

.plans-toggle button.active {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #020817;
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .9);
}

.plans-highlight {
    font-size: .78rem;
    color: var(--muted);
}

.car-ctrl {
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.car-ctrl button {
    pointer-events: auto;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 253, .5);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
    color: var(--brand-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .9);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.car-ctrl button:hover {
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 18px 60px rgba(15, 23, 42, .98);
}

.car-ctrl .prev {
    left: -26px;
}

.car-ctrl .next {
    right: -26px;
}

@media(max-width:840px) {
    .car-ctrl button {
        display: none;
    }

    .track {
        grid-auto-columns: 80%;
    }

    .plans-highlight-row {
        grid-template-columns: 1fr;
    }
}

/* Stripes & features */
.stripe {
    margin-top: 26px;
    padding: 18px 18px 16px;
    border-radius: var(--radius);
    border: var(--border-subtle);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, .10), transparent),
        rgba(2, 6, 23, 1);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
    gap: 14px;
    align-items: center;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .9);
    position: relative;
}

.stripe-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    filter: drop-shadow(0 4px 18px rgba(15, 23, 42, .9));
}

.stripe h3 {
    margin: 0 0 .25rem;
    font-size: 1rem;
}

.stripe p {
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
}

.stripe img.stripe-ill {
    width: 86px;
    margin-left: auto;
    opacity: .98;
}

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

    .stripe img.stripe-ill {
        margin: 0 auto;
    }
}

.grid-3 {
    margin-top: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.feature {
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: var(--border-subtle);
    padding: 14px 14px 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .88);
    font-size: .8rem;
    position: relative;
    overflow: hidden;
}

.feature-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    filter: drop-shadow(0 4px 16px rgba(15, 23, 42, 1));
}

.feature h3 {
    margin: 0 0 .15rem;
    font-size: .9rem;
    font-weight: 600;
}

.feature p {
    margin: 0;
    color: var(--muted);
}

/* Datacenters stripe */
.datacenters {
    margin-top: 14px;
    padding: 16px 16px 12px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 1);
    border: var(--border-subtle);
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 2.1fr);
    gap: 10px 18px;
    align-items: flex-start;
    font-size: .76rem;
    color: var(--muted);
}

.datacenters-title {
    font-weight: 600;
    color: var(--brand-soft);
    font-size: .82rem;
    margin-bottom: 2px;
}

/* Datacentre pills — make them look clickable */
.dc-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dc-pill {
    appearance: none;
    border: none;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.6), rgba(4, 9, 20, 0.7));
    border-radius: 14px;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.93rem;
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.45),
        inset 0 0 0 rgba(56, 189, 248, 0);

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.2s ease,
        transform 0.12s ease;
}

.dc-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.55);

    box-shadow:
        0 0 12px rgba(56, 189, 248, 0.35),
        0 0 28px rgba(56, 189, 248, 0.18),
        inset 0 0 0 rgba(56, 189, 248, 0.25);

    transform: translateY(-2px);
}

.dc-pill:active {
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

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

/* Strong CTA */
.btn-secondary-strong {
    border-radius: 18px;
    padding: .9rem 1.6rem;
    border: 1px solid var(--brand-soft);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .18), transparent),
        rgba(2, 6, 23, 1);
    color: var(--brand-soft);
    box-shadow: 0 16px 50px rgba(15, 23, 42, .9);
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.btn-secondary-strong span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.btn-secondary-strong:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, .25), rgba(15, 23, 42, 1));
    color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 1);
}

/* FAQ */
details {
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: var(--border-subtle);
    padding: 10px 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .9);
    font-size: .8rem;
}

summary {
    cursor: pointer;
    font-weight: 600;
    color: #e5e7eb;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    margin: .3rem 0 0;
    color: var(--muted);
}

/* Modals (order/compare/login) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .94);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 90;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    width: min(1040px, 94vw);
    max-height: 88vh;
    background: #020817;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 253, .35);
    box-shadow: 0 40px 120px rgba(15, 23, 42, 1);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.modal-sub {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 2px;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, .4);
    background: rgba(2, 6, 23, 1);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
}

.full-compare-wrap {
    margin-top: 4px;
    padding: 8px;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(56, 189, 248, .10), transparent),
        #020817;
    overflow: auto;
    max-height: 70vh;
    font-size: .7rem;
    border: 1px solid rgba(75, 85, 99, .7);

}

/* Override scroll behaviour for contact modal */
#contactModal .full-compare-wrap {
    overflow: visible !important;
    max-height: none !important;
}

#contactModal .modal-dialog {
    max-height: 92vh;
    overflow: visible;
}

.full-compare-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 760px;
}

.full-compare-table th,
.full-compare-table td {
    padding: 6px 6px;
    border-bottom: 1px solid rgba(31, 41, 55, .9);
    text-align: left;
    white-space: nowrap;
}

.full-compare-table thead th {
    font-size: .72rem;
    color: #9ca3af;
    font-weight: 600;
    border-bottom: 1px solid rgba(75, 85, 99, 1);
}

.full-compare-cat {
    background: rgba(9, 9, 11, 1);
    color: var(--brand-soft);
    font-weight: 600;
    font-size: .7rem;
}

.ok-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #22c55e;
    color: #020817;
    font-size: 10px;
    font-weight: 700;
}

@media(max-width:600px) {
    .modal-dialog {
        width: 96%;
        max-height: 88vh;
    }

    .full-compare-wrap {
        max-height: 72vh;
    }
}

/* Login Modal */
.login-wrap {
    margin-top: 6px;
    padding: 12px 10px 14px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent),
        var(--bg-soft);
    border: 1px solid rgba(75, 85, 99, 0.9);
    font-size: 0.8rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--muted);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 253, 0.35);
    background: #020817;
    color: var(--text);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: #6b7280;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--brand-soft);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
    background: #020817;
}

.login-form button[type="submit"] {
    width: 100%;
    margin-top: 6px;
}

.conf-faq-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conf-faq-contact .conf-faq-text h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.conf-faq-contact .conf-faq-text p {
    margin: 0;
}

.conf-faq-contact .btn {
    align-self: flex-start;
}

@media (max-width: 600px) {
    .conf-faq-contact {
        align-items: stretch;
    }

    .conf-faq-contact .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Login modal — fix dots + meta alignment */
.login-intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.login-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 3px;
    flex-shrink: 0;
}

.login-dots span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
}

.login-dots span:nth-child(1) {
    background: #ef4444;
}

/* red */
.login-dots span:nth-child(2) {
    background: #facc15;
}

/* yellow */
.login-dots span:nth-child(3) {
    background: #22c55e;
}

/* green */

.login-meta {
    flex: 1;
}

.login-meta p {
    margin: 0;
    font-size: 0.76rem;
    color: var(--muted);
}

.login-meta .login-hint {
    margin-top: 3px;
    opacity: .85;
}

.login-footer-row {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.login-small {
    font-size: 0.72rem;
    color: var(--muted);
}

/* Field error state */
.login-form input.field-error {
    border-color: rgba(248, 113, 113, 0.85);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3);
}

/* === Mac-style glassy notifications (shared) === */
.eh-toast-stack {
    position: fixed;
    top: 16px;
    right: max(18px, calc((100vw - 1200px) / 2));
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 99998;
}

.eh-toast {
    min-width: 260px;
    max-width: 340px;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(148, 163, 253, 0.55);
    box-shadow: 0 22px 65px rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.78rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    transform: translateY(-8px);
    animation: eh-toast-in 0.16s ease-out forwards;
}

.eh-toast--success {
    border-color: rgba(34, 197, 94, 0.85);
}

.eh-toast--error {
    border-color: rgba(248, 113, 113, 0.9);
}

.eh-toast--info {
    border-color: rgba(56, 189, 248, 0.85);
}

.eh-toast-icon {
    font-size: 1.05rem;
    line-height: 1;
    margin-top: 2px;
}

.eh-toast-body {
    flex: 1;
}

.eh-toast-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.eh-toast-text {
    opacity: 0.9;
}

.eh-toast-close {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
    margin-left: 4px;
}

.eh-toast-close:hover {
    color: #e5e7eb;
}

@keyframes eh-toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes eh-toast-out {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.eh-toast.eh-toast-out {
    animation: eh-toast-out 0.15s ease-in forwards;
}

/* Keep toasts off the hard edge on mobile */
@media (max-width: 640px) {
    .eh-toast-stack {
        right: 12px;
        left: 12px;
        align-items: flex-end;
    }

    .eh-toast {
        max-width: 100%;
    }
}

/* Contact form inside modal */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.contact-form .field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label {
    font-weight: 500;
    color: #e5e7eb;
    font-size: 0.85rem;
}

.contact-form label span {
    color: #f97316;
}

.contact-form input,
.contact-form textarea {
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 0.55rem 0.8rem;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand, #38bdf8);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
    background: rgba(15, 23, 42, 1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-actions {
    margin-top: 4px;
}

#contactSubmitBtn {
    min-width: 140px;
}

.form-status {
    min-height: 20px;
    font-size: 0.82rem;
    margin-top: 4px;
}

.form-status.error {
    color: #fecaca;
}

.form-status.success {
    color: #bbf7d0;
}

/* Contact mini-section replacing FAQ */
.conf-faq-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conf-faq-contact .conf-faq-text h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.conf-faq-contact .conf-faq-text p {
    margin: 0;
}

.conf-faq-contact .btn {
    align-self: flex-start;
}

@media (max-width: 600px) {
    .conf-faq-contact {
        align-items: stretch;
    }

    .conf-faq-contact .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Label above recaptcha to match other fields */
.recaptcha-row .recaptcha-label {
    font-weight: 500;
    color: #e5e7eb;
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: inline-block;
}

.recaptcha-row .recaptcha-label span {
    color: #f97316;
}

/* Shell around the widget to blend with your UI */
.recaptcha-shell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 8px;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.75);
}

/* Optional: scale the recaptcha slightly so it fits tighter */
.recaptcha-shell .g-recaptcha {
    transform: scale(0.92);
    transform-origin: 0 0;
}

/* On very small screens, scale a bit more */
@media (max-width: 480px) {
    .recaptcha-shell .g-recaptcha {
        transform: scale(0.86);
    }
}

/* Toast-style notification (Mac-ish) */
.form-toast {
    position: absolute;
    right: 18px;
    top: 18px;
    min-width: 220px;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    font-size: 0.8rem;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 160ms ease-out, transform 160ms ease-out;
    z-index: 20;
}

.form-toast::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f97316;
    /* default orange dot */
    flex-shrink: 0;
}

.form-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.form-toast.error {
    border-color: rgba(248, 113, 113, 0.7);
}

.form-toast.error::before {
    background: #f97373;
}

.form-toast.success {
    border-color: rgba(34, 197, 94, 0.7);
}

.form-toast.success::before {
    background: #22c55e;
}

/* Position relative so toast anchors inside dialog */
.modal-dialog {
    position: relative;
}

/* Success overlay with animated tick */
.contact-success-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 220ms ease-out, transform 220ms ease-out;
    z-index: 25;
}

.contact-success-overlay.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.contact-success-overlay .success-inner {
    text-align: center;
    max-width: 260px;
}

.contact-success-overlay .success-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, rgba(34, 197, 94, 0.7), rgba(21, 128, 61, 0.9));
    box-shadow: 0 20px 45px rgba(22, 163, 74, 0.6);
    animation: success-pop 420ms ease-out forwards;
}

.contact-success-overlay .success-icon span {
    font-size: 2.1rem;
    color: #ecfdf5;
}

.contact-success-overlay p {
    margin: 0;
    font-size: 0.92rem;
    color: #e5e7eb;
}

/* Pop animation for tick */
@keyframes success-pop {
    0% {
        transform: scale(0.2);
        opacity: 0;
    }

    60% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* Parallax base */
.parallax {
    will-change: transform;
}

/* Footer */
footer {
    border-top: 1px solid rgba(75, 85, 99, .9);
    padding: 22px 0 26px;
    font-size: .72rem;
    color: var(--muted);
    margin-top: 8px;
}

footer .foot-wrap {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.foot-brand svg {
    width: 20px;
    height: 20px;
}

.foot-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.foot-col-title {
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
    font-size: .74rem;
}

.foot-col p {
    margin: 0;
    font-size: .7rem;
    color: var(--muted);
    line-height: 1.5;
}

.show-focus :focus-visible {
    outline: 2px solid var(--brand-soft);
    outline-offset: 3px;
}

/* === Electro-Host tooltip (translucent version) === */
.eh-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;

    /* Much lighter glassy background */
    background: rgba(2, 6, 23, 0.45);
    /* 45% transparent */
    backdrop-filter: blur(8px) saturate(160%);

    color: #e5e7eb;
    padding: 0.32rem 0.6rem;
    font-size: 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.35);

    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.55);
    opacity: 0;

    transform: translate(-50%, -6px) scale(0.96);
    transition:
        opacity 0.12s ease,
        transform 0.12s ease;

    white-space: nowrap;
    color-scheme: dark;
}

.eh-tooltip.show {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1);
}

/* Pay + tech badges (wrappers for icons) */
.pay-badge,
.foot-tech-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(148, 163, 253, 0.35);
}

.pay-badge img,
.foot-tech-icon img {
    width: 24px;
    height: 24px;
    display: block;
    filter: grayscale(100%) opacity(0.9);
}

/* On very small screens, allow wrapping */
@media (max-width: 480px) {
    .eh-tooltip {
        white-space: normal;
    }
}

/* Enable 3D context on cards */
.plan-card,
.feature {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
}

/* Specular shine layer */
.plan-card::after,
.feature::after {
    content: "";
    position: absolute;
    inset: -40% -40%;
    /* oversize so it doesn’t clip */
    background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%),
            rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

@media (hover:hover) and (pointer:fine) {

    .plan-card:hover,
    .feature:hover {
        box-shadow: 0 22px 60px rgba(15, 23, 42, 1);
    }

    .plan-card:hover::after,
    .feature:hover::after {
        opacity: .5;
    }
}

/* Fixed stage layer under content */
.stage {
    position: fixed;
    inset: -10vh -10vw;
    z-index: 0;
    /* behind header (70) and progress (80) */
    pointer-events: none;
    filter: blur(60px) saturate(140%);
    opacity: 0.9;
    transition: opacity .4s ease, transform .6s ease;
}

/* Default look controlled by CSS vars */
.stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(42% 50% at 60% 10%, rgba(56, 189, 248, .20), transparent 60%),
        radial-gradient(38% 46% at 20% 75%, rgba(96, 165, 250, .16), transparent 60%),
        radial-gradient(60% 60% at 80% 50%, rgba(14, 165, 233, .10), transparent 70%);
    transform: translateZ(0) scale(1.05);
    transition: filter .6s ease, transform .6s ease;
    filter: hue-rotate(var(--stage-hue, 0deg)) brightness(var(--stage-bright, 1));
}

/* Optional: a soft vignette for depth */
.stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 20%, transparent 50%, rgba(2, 6, 23, .35) 100%);
}

/* Body-level switches (IO will set these) */
body[data-stage="home"] {
    --stage-hue: 0deg;
    --stage-bright: 1;
}

body[data-stage="plans"] {
    --stage-hue: 12deg;
    --stage-bright: 1.05;
}

body[data-stage="platform"] {
    --stage-hue: 38deg;
    --stage-bright: 1.08;
}

body[data-stage="control"] {
    --stage-hue: 68deg;
    --stage-bright: 1.03;
}

body[data-stage="why"] {
    --stage-hue: 120deg;
    --stage-bright: 1.06;
}

body[data-stage="faq"] {
    --stage-hue: 200deg;
    --stage-bright: 1;
}

/* Respect reduced motion: just fade changes */
@media (prefers-reduced-motion: reduce) {

    .stage,
    .stage::before {
        transition: none;
    }
}

/* === Spotlight Cursor (subtle ambient glow) === */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    /* behind header (70), ahead of stage (0) */
    background: radial-gradient(180px circle at var(--x, 50%) var(--y, 50%),
            rgba(56, 189, 248, 0.10),
            rgba(96, 165, 250, 0.05) 35%,
            transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    will-change: background-position;
}

/* Show only on hover-capable devices */
@media (hover:hover) and (pointer:fine) {
    body:hover .spotlight {
        opacity: 1;
    }
}

/* Reduced motion? Disable it */
@media (prefers-reduced-motion: reduce) {
    .spotlight {
        display: none;
    }
}

.feature-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, .08), transparent);
    border: 1px solid rgba(148, 163, 253, .18);
    border-radius: 20px;
    padding: 20px 18px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .6);
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .9);
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.feature-card p {
    font-size: .85rem;
    color: var(--muted);
}

/* === Testimonials === */
.t-carousel {
    position: relative;
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius);
    border: var(--border-subtle);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, .10), transparent), rgba(2, 6, 23, 1);
    box-shadow: 0 18px 55px rgba(15, 23, 42, .9);
}

.t-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(min(96vw, 1100px)/2.2);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.t-track::-webkit-scrollbar {
    height: 8px;
}

.t-track::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 253, .35);
    border-radius: 999px;
}

/* Cards reuse your tilt + shine affordances */
.t-card {
    scroll-snap-align: center;
    background: var(--bg-soft);
    border: var(--border-subtle);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .88);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

.t-card::after {
    content: "";
    position: absolute;
    inset: -40% -40%;
    background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

@media (hover:hover) and (pointer:fine) {
    .t-card:hover {
        box-shadow: 0 22px 60px rgba(15, 23, 42, 1);
    }

    .t-card:hover::after {
        opacity: .45;
    }
}

.t-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.t-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 253, .35);
}

.t-name {
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.2;
}

.t-role {
    font-size: .72rem;
    color: var(--muted);
}

.t-stars {
    margin-left: auto;
    font-size: .86rem;
    letter-spacing: .08em;
    color: #fde68a;
}

.t-quote {
    margin: 10px 0 8px;
    color: #e5e7eb;
    font-size: .92rem;
    line-height: 1.5;
}

.t-quote em {
    color: var(--brand-soft);
    font-style: normal;
}

.t-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.t-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .16rem .5rem;
    font-size: .68rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, .35);
    color: var(--brand-soft);
    background: rgba(2, 6, 23, .9);
}

/* Controls */
.t-ctrl button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 253, .5);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
    color: var(--brand-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .9);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.t-prev {
    left: -22px;
}

.t-next {
    right: -22px;
}

.t-ctrl button:hover {
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 18px 60px rgba(15, 23, 42, .98);
}

@media (max-width: 860px) {
    .t-track {
        grid-auto-columns: 86%;
    }

    .t-prev,
    .t-next {
        display: none;
    }
}

/* CTA grid */
.cta-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

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

.cta-card {
    background: var(--bg-soft);
    border: var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .9);
    position: relative;
    transform-style: preserve-3d;
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

.cta-card::after {
    content: "";
    position: absolute;
    inset: -40% -40%;
    background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 42%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

@media (hover:hover) and (pointer:fine) {
    .cta-card:hover {
        box-shadow: 0 22px 60px rgba(15, 23, 42, 1);
    }

    .cta-card:hover::after {
        opacity: .4;
    }
}

.cta-headline {
    margin: 0 0 .25rem;
    font-size: 1rem;
}

.cta-sub {
    margin: 0 0 .7rem;
    color: var(--muted);
    font-size: .9rem;
}

.cta-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin: .4rem 0 .6rem;
}

/* Points list */
.cta-points {
    list-style: none;
    padding: 0;
    margin: .4rem 0 .6rem;
    display: grid;
    gap: .35rem;
    font-size: .85rem;
    color: var(--muted);
}

.cta-points li {
    display: flex;
    gap: .4rem;
    align-items: center;
}

.cta-points img {
    width: 14px;
    height: 14px;
}

/* Pay + help row */
.cta-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cta-pay {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .75rem;
    color: var(--muted);
}

.cta-pay img {
    width: 24px;
    height: 24px;
    filter: grayscale(100%) opacity(.9);
}

.cta-help {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Mini plans */
.mini-plans {
    display: grid;
    gap: 10px;
}

.mini-plan {
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 12px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(56, 189, 248, .10), transparent), #020817;
    border: 1px solid rgba(75, 85, 99, .7);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .85);
    transition: transform .18s ease, box-shadow .18s ease;
}

.mini-plan:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 1);
}

.mini-plan-top {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.mini-badge {
    padding: .14rem .45rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #020817;
}

.mini-title {
    font-weight: 800;
}

.mini-price {
    font-size: 1.35rem;
    font-weight: 800;
    margin: .2rem 0 .2rem;
    color: #eff6ff;
}

.mini-price span {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 400;
}

.mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .18rem;
    font-size: .8rem;
    color: var(--muted);
}

.mini-note {
    margin: .45rem 0 0;
}

/* Trust */
.trust-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: .2rem 0 .6rem;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, .35);
    color: var(--brand-soft);
    font-size: .72rem;
    background: rgba(2, 6, 23, .9);
}

.trust-chip img {
    width: 14px;
    height: 14px;
}

/* Micro FAQ */
.cta-faq details {
    margin: 6px 0;
}

.cta-bottom {
    margin-top: .6rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cta-note {
    font-size: .72rem;
}

/* === Confidence Builder === */
.confidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

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

.conf-live,
.conf-cta,
.conf-faq {
    background: var(--bg-soft);
    border: var(--border-subtle);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .9);
}

.conf-row {
    font-size: .9rem;
    color: var(--muted);
    padding: .35rem 0;
    border-bottom: 1px solid rgba(148, 163, 253, .15);
}

.conf-row:last-child {
    border: none;
}

.conf-cta h3 {
    margin: 0 0 .4rem;
    font-size: 1.1rem;
}

.conf-cta p {
    font-size: .9rem;
    color: var(--muted);
    margin: 0 0 .8rem;
}

.conf-cta .cta-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.conf-faq details {
    margin: .4rem 0;
}

.conf-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.conf-faq p {
    font-size: .85rem;
    color: var(--muted);
    margin: .2rem 0 0;
}

.cta-pay {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    font-size: .75rem;
    color: var(--muted);
}

.cta-pay img {
    width: 26px;
    height: 26px;
    filter: grayscale(1) opacity(.9);
}

/* Payment badges */
.cta-pay {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.pay-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Footer tech icons */
.foot-tech .tech-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 4px;
}

.foot-tech .pay-badge {
    /* reuse existing pay-badge look, but slightly smaller if you like */
    width: 32px;
    height: 32px;
}

.foot-tech .pay-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* === 3D Hosting Rack Viewer ================================= */
.rack-layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

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

.rack-copy h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
}

.rack-copy p {
    margin: 0 0 .4rem;
    font-size: .9rem;
    color: var(--muted);
}

.rack-points {
    list-style: none;
    padding: 0;
    margin: .25rem 0 .65rem;
    display: grid;
    gap: .25rem;
    font-size: .85rem;
    color: var(--muted);
}

.rack-points li {
    display: flex;
    gap: .4rem;
    align-items: center;
}

/* The viewer itself */
.rack-viewer {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.rack-frame {
    width: min(360px, 88vw);
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    padding: 16px 12px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .12), transparent),
        radial-gradient(circle at bottom right, rgba(96, 165, 250, .10), transparent),
        #020817;
    border: 1px solid rgba(148, 163, 253, .35);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 1);
    overflow: hidden;
    position: relative;
}

/* Rack “tower” */
.rack-stack {
    height: 100%;
    border-radius: 16px;
    padding: 10px;
    background: linear-gradient(180deg, #020617, #020617 60%, #020617);
    border: 1px solid rgba(30, 64, 175, .7);
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, .9),
        0 18px 40px rgba(15, 23, 42, .9);
    display: grid;
    grid-template-rows: 2.2fr 1.6fr 1.5fr .9fr;
    gap: 8px;
    transform-style: preserve-3d;
    transition: transform .2s ease, box-shadow .2s ease;
}

/* Individual rack layers */
.rack-unit {
    border-radius: 10px;
    padding: 8px 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    position: relative;
    overflow: hidden;
    font-size: .75rem;
    color: #e5e7eb;
    border: 1px solid rgba(30, 64, 175, .6);
}

.rack-unit::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .0;
    background: radial-gradient(circle at var(--rx, 50%) var(--ry, 0%),
            rgba(56, 189, 248, .35),
            transparent 52%);
    transition: opacity .2s ease;
}

.ru-label {
    font-weight: 600;
    letter-spacing: .02em;
}

.ru-meta {
    font-size: .7rem;
    color: var(--muted);
}

/* Layer colours */
.ru-app {
    background: radial-gradient(circle at top, rgba(56, 189, 248, .16), transparent),
        #020617;
    border-color: rgba(56, 189, 248, .65);
}

.ru-net {
    background: radial-gradient(circle at top, rgba(96, 165, 250, .18), transparent),
        #020617;
    border-color: rgba(96, 165, 250, .6);
}

.ru-power {
    background: radial-gradient(circle at top, rgba(34, 197, 94, .22), transparent),
        #020617;
    border-color: rgba(34, 197, 94, .6);
}

.rack-base {
    border-radius: 10px;
    padding: 6px 9px;
    font-size: .7rem;
    color: var(--muted);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 1), #020617);
    border: 1px solid rgba(31, 41, 55, .9);
}

/* Small front “LED strip” hint */
.rack-unit::after {
    content: "";
    position: absolute;
    inset: auto 10px 4px 10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(56, 189, 248, .3),
            rgba(96, 165, 250, .5),
            rgba(34, 197, 94, .4));
    opacity: .6;
}

/* Mobile: keep it calm */
@media (max-width: 640px) {
    .rack-frame {
        box-shadow: 0 18px 55px rgba(15, 23, 42, .9);
    }
}

/* === Plans 2-column layout (carousel left, quiz right + highlights) ====== */
.plans-main-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    grid-template-areas:
        "left right"
        "highlight highlight";
    gap: 18px;
    align-items: flex-start;
}

.plans-left {
    min-width: 0;
    grid-area: left;
    /* carousel */
}

.plans-right {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    grid-area: right;
    /* quiz */
}

/* New: highlights row spanning full width */
.plans-highlight-wrap {
    grid-area: highlight;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Stack on mobile / tablet */
@media (max-width: 900px) {
    .plans-main-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "highlight"
            "left"
            "right";
    }

    .plans-right {
        justify-content: flex-start;
    }

    .plans-right .plan-quiz {
        max-width: 100%;
    }
}

/* Make carousel cards size nicely inside the left column */
#plans .carousel .track {
    grid-auto-columns: minmax(260px, 1fr);
}

/* === Smart Plan Recommender Quiz (smaller card) ============= */
.plan-quiz {
    padding: 14px 14px 12px;
    border-radius: var(--radius);
    border: var(--border-subtle);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .10), transparent),
        rgba(2, 6, 23, 1);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .9);
    max-width: 360px;
    width: 100%;
    font-size: .85rem;
}

.plan-quiz h3 {
    margin: 0 0 .25rem;
    font-size: .95rem;
}

.plan-quiz p {
    margin: 0 0 .55rem;
    font-size: .83rem;
    color: var(--muted);
}

.plan-quiz-form {
    display: grid;
    gap: 8px;
}

.pq-row {
    display: grid;
    gap: 3px;
    font-size: .8rem;
}

.pq-row label {
    font-weight: 500;
    color: #e5e7eb;
}

.pq-row select {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 253, .35);
    background: #020817;
    color: var(--text);
    padding: .4rem .55rem;
    font-size: .8rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.pq-row select:focus-visible {
    border-color: var(--brand-soft);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22);
}

.pq-actions {
    margin-top: .2rem;
}

.pq-result {
    margin-top: .4rem;
    font-size: .8rem;
    color: var(--brand-soft);
    font-weight: 500;
}

/* Quiz result: smooth reveal */
.pq-result {
    margin-top: .4rem;
    font-size: .8rem;
    color: var(--brand-soft);
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .22s ease, transform .22s ease;
}

.pq-result.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Recommended plan highlight on carousel card */
.plan-card--recommended {
    position: relative;
    border-color: rgba(56, 189, 248, .85);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 1);
}

.plan-card--recommended::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 1px solid rgba(56, 189, 248, .7);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45);
    pointer-events: none;
    animation: planRecommendPulse 1.1s ease-out 2;
}

@keyframes planRecommendPulse {
    0% {
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
    }

    100% {
        opacity: 0;
        box-shadow: 0 0 0 14px rgba(56, 189, 248, 0);
    }
}

/* === Dynamic Savings Meter === */

.eh-section {
    margin: 4rem auto;
    padding: 0 1.5rem;
    max-width: 1100px;
}

/* Tighten spacing just for the savings meter under the plans */
#savings-meter.eh-section {
    margin-top: 1rem;
    /* was 4rem via .eh-section */
    margin-bottom: 1rem;
    /* optional: keep a bit of space under it */
}

.savings-meter {
    position: relative;
    border-radius: 1.75rem;
    padding: 2rem 2.25rem;
    background: radial-gradient(circle at top left, rgba(138, 180, 255, 0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(94, 234, 212, 0.25), transparent 55%),
        rgba(10, 12, 24, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.8),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    color: #e5e7eb;
    overflow: hidden;
}

.savings-meter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.18), rgba(56, 189, 248, 0.08), transparent 40%);
    opacity: 0.45;
    mix-blend-mode: screen;
    pointer-events: none;
}

.savings-meter-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    z-index: 1;
}

.savings-title {
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.25rem;
}

.savings-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #9ca3af;
}

.eh-highlight {
    background: linear-gradient(120deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
}

.savings-current-plan {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at top left, rgba(55, 65, 81, 0.8), rgba(17, 24, 39, 0.9));
}

.savings-current-plan span {
    color: #e5e7eb;
    font-weight: 600;
}

/* Host toggle */

.savings-host-toggle {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    z-index: 1;
}

.savings-host-toggle .host-pill {
    position: relative;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    background: transparent;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.12s ease;
}

.savings-host-toggle .host-pill:hover {
    color: #e5e7eb;
    transform: translateY(-1px);
}

.savings-host-toggle .host-pill.active {
    color: #f9fafb;
    background: linear-gradient(120deg, #38bdf8, #8b5cf6);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 1), 0 12px 25px rgba(56, 189, 248, 0.35);
}

/* Layout */

.savings-body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 1.75rem;
    z-index: 1;
}

@media (max-width: 900px) {
    .savings-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Main meter */

.savings-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.savings-figure {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.savings-amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: linear-gradient(120deg, #f97316, #facc15, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

.savings-caption {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Progress bar */

.savings-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.savings-bar-track {
    position: relative;
    width: 100%;
    height: 0.9rem;
    border-radius: 999px;
    background: radial-gradient(circle at top, rgba(31, 41, 55, 0.85), rgba(15, 23, 42, 0.95));
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 1);
}

.savings-bar-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #facc15, #f97316);
    background-size: 200% 100%;
    border-radius: inherit;
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease;
}

.savings-bar-fill.is-visible {
    opacity: 1;
}

.savings-bar-fill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent 40%, transparent 60%, rgba(255, 255, 255,
                0.2));
    mix-blend-mode: screen;
    animation: savingsBarSheen 2.5s linear infinite;
}

.savings-bar-glow {
    position: absolute;
    inset: -25px;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(52, 211, 153, 0.28), transparent 60%);
    transition: opacity 0.55s ease;
}

.savings-bar-fill.is-visible~.savings-bar-glow {
    opacity: 1;
}

.savings-bar-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Breakdown */

.savings-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 1.3rem;
    background: radial-gradient(circle at top left, rgba(55, 65, 81, 0.9), rgba(17, 24, 39, 0.97));
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
}

.savings-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.9);
}

.savings-pill .label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #9ca3af;
}

.savings-pill .value {
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.savings-pill.competitor {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(127, 29, 29, 0.9));
}

.savings-pill.competitor .value {
    color: #fecaca;
}

.savings-pill.neutral {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(22, 163, 74, 0.9));
}

.savings-pill.neutral .value {
    color: #bbf7d0;
    font-weight: 600;
}

/* Disclaimer */

.savings-disclaimer {
    position: relative;
    margin: 1.5rem 0 0;
    font-size: 0.78rem;
    color: #6b7280;
    z-index: 1;
}

/* Animation keyframes */

@keyframes savingsBarSheen {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* === Plans Promo Banner (10% Off) ========================== */
.plans-promo {
    margin: 10px 0 12px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 253, 0.55);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.16), transparent 55%),
        rgba(2, 6, 23, 0.96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.9);
    font-size: 0.82rem;
}

.plans-promo-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plans-promo-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9ca3af;
}

.plans-promo-main strong {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.plans-promo-highlight {
    background: linear-gradient(120deg, #f97316, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.plans-promo-note {
    color: #9ca3af;
    font-size: 0.78rem;
}

.plans-promo-cta {
    flex-shrink: 0;
}

.plans-promo-cta .btn-promo {
    padding: 0.6rem 1.05rem;
    font-size: 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.18);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
        rgba(2, 6, 23, 1);
    color: #e5e7eb;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.9);
}

.plans-promo-cta .btn-promo:hover {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #020817;
    border-color: transparent;
}

/* === Promo codes in banner =================================== */
.plans-promo-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.promo-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.75);
    background: rgba(15, 23, 42, 0.98);
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #facc15;
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.0);
    transition:
        transform 160ms ease-out,
        box-shadow 220ms ease-out,
        border-color 220ms ease-out,
        background 220ms ease-out;
    animation: promoPulse 3.2s ease-in-out infinite;
}

.promo-code:nth-of-type(2) {
    animation-delay: 1.2s;
    /* stagger the second one slightly */
}

.promo-code:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.75),
        0 12px 30px rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top, rgba(250, 204, 21, 0.24), rgba(15, 23, 42, 1));
}

.promo-code-label {
    font-weight: 700;
}

.promo-code-hint {
    font-size: 0.68rem;
    text-transform: none;
    letter-spacing: 0;
    color: #e5e7eb;
    opacity: 0.75;
}

/* When copied */
.promo-code.copied {
    border-color: rgba(34, 197, 94, 0.85);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.85),
        0 10px 26px rgba(22, 163, 74, 0.4);
}

.promo-code.copied .promo-code-hint {
    color: #bbf7d0;
}

/* Gentle pulse to draw attention */
@keyframes promoPulse {

    0%,
    60%,
    100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }

    30% {
        box-shadow: 0 0 0 8px rgba(250, 204, 21, 0.25);
    }
}

/* Mobile tightening */
@media (max-width: 540px) {
    .plans-promo-note {
        gap: 4px;
    }

    .promo-code {
        padding: 0.16rem 0.55rem;
    }

    .promo-code-hint {
        display: none;
        /* keep it simple on very small screens */
    }
}


/* Small promo label on individual plan cards */
.plan-discount {
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.96);
    border: 1px solid rgba(250, 204, 21, 0.7);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #facc15;
}

/* Stack nicely on mobile */
@media (max-width: 720px) {
    .plans-promo {
        flex-direction: column;
        align-items: flex-start;
    }

    .plans-promo-cta {
        width: 100%;
    }

    .plans-promo-cta .btn-promo {
        width: 100%;
        justify-content: center;
    }
}

/* === Order page layout ===================================================== */

.order-shell {
    padding: 40px 0 26px;
    position: relative;
    z-index: 1;
}

.order-header {
    margin-bottom: 18px;
}

.order-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.35);
    background:
        radial-gradient(circle at left, rgba(56, 189, 248, 0.18), transparent 60%),
        rgba(15, 23, 42, 0.96);
    font-size: 0.7rem;
    color: var(--muted);
}

.order-kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand-soft);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.18);
}

.order-title {
    margin: 8px 0 4px;
    font-size: clamp(1.6rem, 2.4vw, 1.9rem);
}

.order-sub {
    max-width: 640px;
    color: var(--muted);
    font-size: 0.9rem;
}

.order-meta {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.order-meta-pill {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.32);
    background: rgba(2, 6, 23, 0.98);
    font-size: 0.76rem;
    color: var(--brand-soft);
}

.order-layout {
    margin-top: 18px;
}

.order-frame-wrap {
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent),
        rgba(2, 6, 23, 0.98);
    border: 1px solid rgba(148, 163, 253, 0.22);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.98);
    overflow: hidden;
    position: relative;
    min-height: min(80vh, 900px);
}

.order-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 0.7rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(75, 85, 99, 0.7);
    background: rgba(15, 23, 42, 0.98);
}

.order-dots {
    display: flex;
    gap: 4px;
}

.order-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 253, 0.5);
}

.order-frame-inner {
    position: relative;
    width: 100%;
    height: calc(100% - 32px);
}

.order-iframe {
    border: none;
    width: 100%;
    height: 1200px;
    display: block;
    background: #020817;
}

.order-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.7rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.98));
    color: var(--muted);
    font-size: 0.85rem;
    transition: opacity 0.25s ease;
    pointer-events: auto;
}

.order-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.order-spinner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.45);
    border-top-color: var(--brand);
    animation: spin 0.7s linear infinite;
}

.order-loading-note {
    margin-top: 0.5rem;
    font-size: 0.76rem;
    color: var(--muted);
}

/* Optional aside styling if you bring it back later */
.order-aside {
    background: var(--bg-soft);
    border-radius: 20px;
    border: var(--border-subtle);
    padding: 14px 14px 12px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
    font-size: 0.8rem;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .order-shell {
        padding-top: 30px;
    }

    .order-frame-wrap {
        border-radius: 18px;
        min-height: calc(100vh - 190px);
    }
}

/* Shared spin animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Mobile redirect overlay for order page ================================ */

#mobileRedirectScreen {
    position: fixed;
    inset: 0;
    background: #020617;
    background-image: radial-gradient(circle at top, #0f172a 0, #020617 60%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    z-index: 99999;
    color: #f8fafc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobileRedirectScreen h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

#mobileRedirectScreen p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.mobile-redirect-spinner {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #38bdf8;
    animation: spin 0.7s linear infinite;
    margin-bottom: 16px;
}

/* ============================================================
   ELECTRO-HOST ORDER FORM STYLING
   Matches contact form + modal UI visually
   ============================================================ */

.order-form-section {
    margin-bottom: 34px;
    padding: 18px 20px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
}

.order-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: #e5e7eb;
}

/* Labels */
.order-field label,
.order-field-label {
    display: block;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 6px;
    font-size: 0.86rem;
}

.order-required {
    color: #f97316;
    font-weight: 600;
}

/* Inputs (reusing .input base styles) */
.order-field .input,
.order-field textarea.input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.order-field .input:focus,
.order-field textarea.input:focus {
    border-color: var(--brand, #0ea5e9);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.5);
    background: rgba(15, 23, 42, 1);
}

/* Spacing per field */
.order-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

/* Field helper text */
.order-field-help {
    font-size: 0.78rem;
    margin-top: 4px;
    color: #94a3b8;
}

/* Radio rows */
.order-radio-row {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.order-radio-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 0.86rem;
}

/* Submit button area */
.order-form-actions {
    margin-top: 28px;
    text-align: left;
}

.order-form-actions .btn {
    padding: 0.75rem 1.4rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Form container inside frame */
.order-frame-inner {
    padding: 20px;
}

/* Order form error highlight */
.order-field .input.has-error {
    border-color: #f97373;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
}

@keyframes eh-pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
        transform: translateY(0);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(14, 165, 233, 0);
        transform: translateY(-1px);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
        transform: translateY(0);
    }
}

.btn-primary.btn-pulse {
    position: relative;
    animation: eh-pulse-ring 1.9s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary.btn-pulse {
        animation: none;
    }
}

.faq-search {
    margin: 12px 0 10px;
    max-width: 420px;
}

.faq-search-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
    opacity: 0.8;
}

.faq-search-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.7);
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.faq-search-input::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.faq-search-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 1);
}

.faq-search-empty {
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.95);
}

/* Desktop-only for this comparison strip */
.section-speed-compare {
    display: none;
}

@media (min-width: 900px) {
    .section-speed-compare {
        display: block;
    }
}

.speed-compare {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.93), #020617);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.speed-side {
    position: relative;
    padding: 24px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition:
        background 260ms ease,
        transform 260ms ease,
        opacity 200ms ease;
}

.speed-side--eh {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), transparent);
}

.speed-side--other {
    background: radial-gradient(circle at 80% 20%, rgba(15, 23, 42, 0.85), #020617);
}

.speed-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.8;
}

.speed-time {
    font-size: 1rem;
    font-weight: 500;
}

.speed-time-value {
    font-size: 1.3rem;
    font-weight: 600;
    margin-right: 4px;
}

.speed-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    overflow: hidden;
}

.speed-bar-fill {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform: scaleX(0.4);
    opacity: 0.9;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.speed-bar--eh .speed-bar-fill {
    background: linear-gradient(90deg, #22d3ee, #38bdf8, #4f46e5);
}

.speed-bar--other .speed-bar-fill {
    background: linear-gradient(90deg, #f97316, #ea580c, #991b1b);
    transform-origin: right center;
    transform: scaleX(0.9);
}

.speed-meta {
    font-size: 0.8rem;
    color: #cbd5f5;
    opacity: 0.9;
}

/* Divider + handle */
.speed-divider {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.speed-divider::before {
    content: "";
    width: 1px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(148, 163, 184, 0.8),
            transparent);
    opacity: 0.75;
}

.speed-handle {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.85);
    background:
        radial-gradient(circle at 30% 20%, rgba(226, 232, 240, 0.95), rgba(15, 23, 42, 1));
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 1),
        0 0 18px rgba(56, 189, 248, 0.25);
    transform: translateX(0);
    transition: transform 200ms ease-out;
}

/* State: focus Electro-Host side */
.speed-compare--focus-eh .speed-side--eh {
    transform: translateY(-1px);
}

.speed-compare--focus-eh .speed-side--other {
    opacity: 0.7;
}

.speed-compare--focus-eh .speed-bar--eh .speed-bar-fill {
    transform: scaleX(0.6);
}

.speed-compare--focus-eh .speed-bar--other .speed-bar-fill {
    transform: scaleX(0.95);
}

/* State: focus Other Host side */
.speed-compare--focus-other .speed-side--other {
    transform: translateY(-1px);
}

.speed-compare--focus-other .speed-side--eh {
    opacity: 0.75;
}

.speed-compare--focus-other .speed-bar--eh .speed-bar-fill {
    transform: scaleX(0.45);
}

.speed-compare--focus-other .speed-bar--other .speed-bar-fill {
    transform: scaleX(1);
}

/* Wide dialog for long legal text */
.modal-dialog-wide {
    max-width: 960px;
}

/* Top "bookmark" navigation for sections */
.terms-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    margin-bottom: 8px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg, #020817);
}

.terms-nav-link {
    font: inherit;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.terms-nav-link:hover {
    border-color: rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
}

.terms-nav-link.active {
    border-color: var(--brand, #0ea5e9);
    background: rgba(56, 189, 248, 0.12);
    color: #e5f4ff;
}

/* Scrollable legal text area */
.terms-body {
    max-height: min(70vh, 620px);
    overflow: auto;
    padding-right: 6px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.terms-section+.terms-section {
    margin-top: 16px;
}

/* Typography inside imported content */
.terms-body h3,
.terms-body h4 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

.terms-body p {
    margin: 8px 0;
}

.terms-body ul,
.terms-body ol {
    margin: 6px 0 10px 1.25rem;
}

.terms-body li {
    margin: 3px 0;
}

/* Loading / error text */
.terms-loading {
    font-size: 0.9rem;
    color: #9ca3af;
}

.terms-error {
    font-size: 0.9rem;
    color: #fca5a5;
}

/* Footer text hyperlink (not always underlined; underline on hover) */
.terms-link,
.link-ghost {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--brand, #0ea5e9);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s ease, text-decoration-color 0.15s ease;
}

.terms-link:hover,
.link-ghost:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    opacity: 0.85;
}