/* =========================
           TOKENS
           ========================= */
:root {
    color-scheme: light;
    --white: #fff;
    --white-rgb: 255, 255, 255;
    --black: #000;
    --black-rgb: 0, 0, 0;
    --grey-010: #fefefe;
    --grey-025: #fcfcfc;
    --grey-050: #fafafa;
    --grey-075: #f6f6f6;
    --grey-100: #f2f2f2;
    --grey-150: #ececec;
    --grey-200: #e6e6e6;
    --grey-250: #e0e0e0;
    --grey-300: #d9d9d9;
    --grey-350: #d0d0d0;
    --grey-400: #bfbfbf;
    --grey-500: #8c8c8c;
    --grey-600: #595959;
    --grey-700: #404040;
    --grey-800: #262626;
    --grey-900: #111111;

    --ink-900: var(--grey-900);
    --ink-800: var(--grey-800);
    --ink-700: var(--grey-700);
    --ink-600: var(--grey-600);
    --ink-500: var(--grey-500);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --pill: 999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-med: 220ms;
    --transition: all var(--t-med) var(--ease);

    --header-height: 62px;
    --focus-ring: 0 0 0 0.22rem rgba(0, 0, 0, 0.08);
    --control-bg-hover: var(--grey-075);
}

[hidden] {
    display: none !important;
}

.muted {
    color: var(--ink-600);
}

/* @media(prefers-color-scheme:dark) {
            :root {
                --grey-010: #0f0f0f;
                --grey-025: #111214;
                --grey-050: #151619;
                --grey-075: #1a1c20;
                --grey-100: #1f2227;
                --grey-150: #262a31;
                --grey-200: #2e333c;
                --grey-250: #373d48;
                --grey-300: #414958;
                --grey-350: #4c5567;
                --grey-400: #58637a;
                --grey-500: #7d89a2;
                --grey-600: #98a3ba;
                --grey-700: #c2c9d6;
                --grey-800: #e6ebf5;
                --grey-900: #f7f9fc;

                --ink-900: #f7f9fc;
                --ink-800: #e6ebf5;
                --ink-700: #c2c9d6;
                --ink-600: #98a3ba;
                --ink-500: #7d89a2;

                --control-bg-hover: rgba(255, 255, 255, .06);
                --focus-ring: 0 0 0 .22rem rgba(255, 255, 255, .16);
                --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
                --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
                --shadow-lg: 0 16px 40px rgba(0, 0, 0, .45);
            }
        } */

html,
body {
    height: 100%;
}

body {
    background: var(--grey-025);
    color: var(--ink-800);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
        Arial, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.container-narrow {
    max-width: 1120px;
    margin-inline: auto;
    padding: 0 1rem;
}

.section {
    padding: 2.5rem 0;
}

a,
button {
    transition: var(--transition);
}

a:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.mb-4 {
    margin-bottom: 2.5rem !important;
}

/* kinetic bg + progress bar */
.bg-kinetic {
    position: fixed;
    inset: -20vmax;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
            32vmax 26vmax at 15% 12%,
            rgba(0, 0, 0, 0.06),
            transparent 60%
        ),
        radial-gradient(
            38vmax 30vmax at 85% 0%,
            rgba(0, 0, 0, 0.05),
            transparent 60%
        ),
        radial-gradient(
            36vmax 32vmax at 80% 85%,
            rgba(0, 0, 0, 0.04),
            transparent 60%
        ),
        conic-gradient(
            from 0deg at 50% 50%,
            rgba(255, 255, 255, 0.08),
            rgba(0, 0, 0, 0.04),
            rgba(255, 255, 255, 0.08)
        );
    filter: blur(10px) saturate(110%);
    animation: bgDrift 28s linear infinite;
}

@keyframes bgDrift {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #bcbcbc, #8f8f8f);
    z-index: 1000;
}

/* header */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--grey-150);
    backdrop-filter: saturate(140%) blur(8px);
    background: color-mix(in srgb, var(--white) 86%, transparent);
    position: sticky;
    top: 0;
    z-index: 60;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 132px;
    height: 36px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.brand-logo::after {
    content: "";
    position: absolute;
    inset: -12%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.85) 12%,
        transparent 24%
    );
    transform: translateX(-130%);
    filter: blur(1px);
    animation: logoSheen 8.5s ease-in-out infinite 1.2s;
}

@keyframes logoSheen {
    0%,
    75% {
        transform: translateX(-130%);
    }

    88% {
        transform: translateX(130%);
    }

    100% {
        transform: translateX(130%);
    }
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-nav {
    margin-left: auto;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    border-radius: 0.5rem;
    border: 1px solid var(--grey-200);
    background: var(--white);
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.btn:hover {
    background: var(--control-bg-hover);
    border-color: var(--grey-250);
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
}

.btn-primary {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    background: var(--ink-800);
    border-color: var(--ink-800);
}

.magnet {
    position: relative;
    overflow: hidden;
}

.magnet .effect {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s var(--ease);
    background: radial-gradient(
        220px 120px at var(--x, 50%) var(--y, 50%),
        rgba(255, 255, 255, 0.22),
        transparent 60%
    );
    mix-blend-mode: soft-light;
}

.magnet:hover .effect {
    opacity: 1;
}

/* hero */
.hero {
    border-bottom: 1px solid var(--grey-150);
    padding: calc(var(--header-height) + 1.2rem) 0 1.6rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--pill);
    background: var(--grey-075);
    border: 1px solid var(--grey-150);
    font-weight: 700;
    background-size: 200% 100%;
    background-image: linear-gradient(
        90deg,
        var(--grey-075),
        var(--grey-100),
        var(--grey-075)
    );
    animation: kickerShimmer 2.6s var(--ease) infinite;
}

@keyframes kickerShimmer {
    0% {
        background-position: 0 0;
    }

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

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

.hero h1 {
    margin: 0.65rem 0 0.4rem;
    line-height: 1.12;
    letter-spacing: -0.0125em;
    font-size: clamp(1.9rem, 3.1vw, 2.6rem);
    color: var(--ink-900);
}

.hero p {
    color: var(--ink-600);
    max-width: 62ch;
}

.lottie-frame {
    width: 100%;
    aspect-ratio: 16/11;
    background: var(--grey-050);
    border: 1px solid var(--grey-150);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(4deg);
    transition: transform 0.35s var(--ease);
}

.lottie-frame:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.lottie-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ink-600);
    font-weight: 700;
}

/* features */
.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1100px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 780px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.flip {
    perspective: 1400px;
}

.flip-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s var(--ease);
    border-radius: 0.75rem;
}

.flip:hover .flip-inner,
.flip:focus-within .flip-inner {
    transform: rotateY(180deg);
}

.flip-face {
    position: relative;
    min-height: 180px;
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, var(--white), var(--grey-010));
    border: 1px solid var(--grey-150);
    box-shadow: var(--shadow-sm);
    backface-visibility: hidden;
}

.flip-face.back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
}

.f-title {
    margin: 0 0 0.35rem;
    font-weight: 800;
    color: var(--ink-900);
}

.f-text {
    color: var(--ink-600);
}

.f-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: var(--pill);
    background: linear-gradient(90deg, #e9e9e9, #f3f3f3);
    border: 1px solid var(--grey-150);
    font-weight: 700;
    color: var(--ink-700);
}

/* panel */
.panel {
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grey-150);
    background: var(--white);
}

.panel .hd {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--grey-150);
    font-weight: 800;
    color: var(--ink-900);
}

.panel .bd {
    padding: 1rem 1.1rem;
    color: var(--ink-700);
}

/* problem/solution (unchanged) */
.ps-wrap {
    background: var(--grey-050);
    border: 1px solid var(--grey-150);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.marquee {
    overflow: hidden;
    position: relative;
    background: var(--white);
    border: 1px dashed var(--grey-200);
    border-radius: var(--pill);
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    padding: 0.4rem 0.8rem;
    background: var(--grey-100);
    color: var(--ink-700);
    border-radius: var(--pill);
    font-weight: 700;
    white-space: nowrap;
    margin: 0 0.35rem;
}

.rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.diff-card {
    border-radius: 0.5rem;
    border: 1px solid var(--grey-150);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.diff-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--grey-150);
    color: var(--ink-800);
    font-weight: 700;
}

.email {
    padding: 0.85rem 0.95rem;
    color: var(--ink-700);
}

.email mark {
    background: linear-gradient(
        180deg,
        rgba(255, 230, 150, 0.6),
        rgba(255, 230, 150, 0.15)
    );
    border-radius: 6px;
    padding: 0.05rem 0.2rem;
}

.mini-flow {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    color: var(--ink-600);
}

.node {
    padding: 0.35rem 0.65rem;
    border-radius: var(--pill);
    border: 1px solid var(--grey-200);
    background: var(--grey-075);
    color: var(--ink-800);
    font-weight: 700;
}

.arrow {
    width: 22px;
    height: 2px;
    background: var(--grey-250);
}

.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: 0.8rem;
}

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

.kpi {
    border: 1px solid var(--grey-150);
    background: var(--white);
    border-radius: 0.5rem;
    padding: 0.8rem 0.95rem;
    color: var(--ink-700);
    text-align: center;
}

.kpi strong {
    font-size: 1.15rem;
    color: var(--ink-900);
}

/* HOW — compact numbered step cards */
.how-hd {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.how-hd .seg {
    margin-left: auto;
}

/* Segmented control container */
.seg {
    --seg-bg: color-mix(in srgb, var(--white) 88%, transparent);
    --seg-br: var(--grey-150);
    --seg-gap: 0.35rem;
    --seg-pad: 0.25rem;
    --seg-radius: var(--pill);
    display: inline-flex;
    align-items: center;
    gap: var(--seg-gap);
    padding: var(--seg-pad);
    border-radius: var(--seg-radius);
    background: var(--seg-bg);
    border: 1px solid var(--seg-br);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04) inset;
    backdrop-filter: saturate(140%) blur(6px);
}

/* Optionally smaller density */
.seg.seg--compact {
    --seg-gap: 0.25rem;
    --seg-pad: 0.2rem;
}

/* Button inside segmented */
.seg-btn {
    --btn-bg: transparent;
    --btn-br: transparent;
    --btn-fg: var(--ink-700);
    --btn-pad-y: 0.48rem;
    --btn-pad-x: 0.9rem;
    --btn-radius: var(--pill);

    appearance: none;
    border: 1px solid var(--btn-br);
    background: var(--btn-bg);
    color: var(--btn-fg);
    border-radius: var(--btn-radius);
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
        color 0.18s var(--ease), transform 0.08s ease;
}

/* Icon slot (optional) */
.seg-btn .ico {
    width: 1.05em;
    height: 1.05em;
    display: inline-grid;
    place-items: center;
    opacity: 0.9;
}

/* Badge slot (optional) */
.seg-btn .badge {
    font: inherit;
    font-weight: 800;
    font-size: 0.72em;
    line-height: 1;
    padding: 0.18rem 0.44rem;
    border-radius: 999px;
    background: var(--grey-100);
    color: var(--ink-700);
    border: 1px solid var(--grey-200);
}

/* Hover / active press */
.seg-btn:hover {
    background: var(--control-bg-hover);
    border-color: var(--grey-200);
}

.seg-btn:active {
    transform: translateY(1px);
}

/* Keyboard focus */
.seg-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Current selection */
.seg-btn.is-active {
    --btn-bg: #fff;
    --btn-br: var(--grey-200);
    --btn-fg: var(--ink-900);
    background: var(--btn-bg);
    border-color: var(--btn-br);
    color: var(--btn-fg);
    box-shadow: var(--shadow-sm);
}

/* Active also gets a subtle highlight ring */
.seg-btn.is-active::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: var(--btn-radius);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink-900) 6%, transparent);
    pointer-events: none;
}

/* Disabled state */
.seg-btn[disabled],
.seg-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Loading affordance (optional) */
.seg-btn.is-loading {
    color: transparent;
}

.seg-btn.is-loading::before {
    content: "";
    width: 1em;
    height: 1em;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--ink-700) 40%, transparent);
    border-top-color: var(--ink-900);
    animation: segSpin 0.8s linear infinite;
}

@keyframes segSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Dark mode tuning */
/* @media (prefers-color-scheme:dark) {
            .seg {
                --seg-bg: color-mix(in srgb, var(--grey-025) 88%, transparent);
                --seg-br: var(--grey-200);
                box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
            }

            .seg-btn:hover {
                background: rgba(255, 255, 255, .06);
                border-color: var(--grey-250);
            }

            .seg-btn.is-active {
                --btn-bg: var(--grey-025);
                --btn-br: var(--grey-250);
                --btn-fg: var(--ink-900);
            }

            .seg-btn .badge {
                background: color-mix(in srgb, var(--grey-050) 60%, transparent);
                border-color: var(--grey-250);
                color: var(--ink-800);
            }
        } */

.how-panel {
    display: block;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.step-card {
    position: relative;
    border: 1px solid var(--grey-150);
    background: linear-gradient(180deg, var(--white), var(--grey-010));
    border-radius: 0.65rem;
    box-shadow: var(--shadow-sm);
    padding: 0.9rem 0.95rem 0.9rem 3.1rem;
    min-height: 92px;
}

.step-card h4 {
    margin: 0.05rem 0 0.2rem;
    color: var(--ink-900);
}

.step-card p {
    margin: 0;
    color: var(--ink-600);
}

.badge {
    position: absolute;
    left: 0.8rem;
    top: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--white);
    background: linear-gradient(180deg, #3b3b3b, #0f0f0f);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* SECURITY */
.sec-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
}

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

.shield {
    border: 1px solid var(--grey-150);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, var(--white), var(--grey-010));
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.shield svg {
    width: 72%;
    height: auto;
}

.shield-stroke {
    fill: none;
    stroke: var(--grey-300);
    stroke-width: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.shield-tick {
    stroke: var(--ink-900);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: tickDraw 1.3s cubic-bezier(0.21, 0.69, 0.16, 1) forwards 0.3s;
}

@keyframes tickDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.sec-list {
    display: grid;
    gap: 0.65rem;
}

.sec-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: start;
    gap: 0.7rem;
    border: 1px solid var(--grey-150);
    background: var(--white);
    border-radius: 0.5rem;
    padding: 0.7rem 0.8rem;
    box-shadow: var(--shadow-sm);
}

.sec-item .ico {
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    background: var(--grey-100);
}

.sec-item h4 {
    margin: 0.05rem 0 0.15rem;
    color: var(--ink-900);
}

.sec-item p {
    margin: 0;
    color: var(--ink-600);
}

.sec-item .more {
    border: 1px solid var(--grey-200);
    background: var(--grey-075);
    border-radius: var(--pill);
    padding: 0.3rem 0.6rem;
    font-weight: 700;
}

.sec-item .more:hover {
    background: var(--control-bg-hover);
}

.sec-details {
    margin-top: 0.9rem;
    border: 1px solid var(--grey-150);
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.sec-details-inner {
    padding: 0.8rem 0.9rem;
    display: grid;
    gap: 0.5rem;
}

.sec-details .details-content code {
    font-weight: 700;
}

/* CTA */
.cta {
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, var(--white), var(--grey-010))
            padding-box,
        linear-gradient(135deg, #dcdcdc, #f3f3f3) border-box;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem;
    color: var(--ink-800);
}

/* animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

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

.nav-toggle {
    margin-left: auto;
    display: none;
    border: 1px solid var(--grey-200);
    background: var(--white);
    border-radius: 0.5rem;
    padding: 0.45rem 0.55rem;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}

.nav-toggle:hover {
    background: var(--control-bg-hover);
}

.nav-toggle:active {
    transform: translateY(1px);
}

/* Mobile dropdown: full-width bar that pushes page down */
.mobile-menu {
    display: block;
    position: sticky;
    top: var(--header-height);
    left: 0;
    /* ensure it’s anchored from the left edge */
    width: 100vw;
    /* full viewport width */
    margin-left: calc(50% - 50vw);
    /* neutralize any page centering so bar truly spans edge-to-edge */

    overflow: hidden;
    /* for height animation */
    max-height: 0;
    /* collapsed */
    opacity: 0;
    border-bottom: 1px solid var(--grey-150);
    background: color-mix(in srgb, var(--white) 96%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    transition: max-height 320ms var(--ease), opacity 220ms var(--ease);
    z-index: 59;
    /* just under the header (which is 60) */
}

.mobile-menu.open {
    max-height: 70vh;
    /* enough to show all items; adjust if needed */
    opacity: 1;
}

/* keep items aligned to the same width as header */
.mobile-menu .container-narrow {
    padding: 0 1rem;
    /* matches your header’s inner padding */
}

/* items (unchanged) */
.mobile-menu .m-item {
    display: block;
    padding: 0.85rem 0;
    /* vertical rhythm; horizontal comes from .container-narrow */
    border-top: 1px solid var(--grey-100);
    color: var(--ink-800);
    font-weight: 800;
    text-decoration: none;
}

.mobile-menu .m-item:hover {
    background: var(--control-bg-hover);
}

.mobile-menu .m-item.primary {
    margin: 0.6rem 0 1rem;
    border: 1px solid var(--grey-200);
    background: var(--ink-900);
    color: var(--white);
    border-radius: 0.6rem;
    text-align: center;
    padding: 0.85rem 1rem;
}

.mobile-menu .m-item.primary:hover {
    background: var(--ink-800);
    border-color: var(--ink-800);
}

/* responsive: hide desktop nav, show toggle button */
@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin-left: auto;
    }
}

/* never show the mobile menu on desktop */
@media (min-width: 901px) {
    #mobile-menu {
        max-height: 0 !important;
        opacity: 0 !important;
    }
}

/* Compact Dynamic Pricing Cards */
.dynamic-pricing-cards-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .dynamic-pricing-cards-compact {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.pricing-card-compact {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}

.pricing-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--grey-300);
}

.pricing-card-compact.featured {
    border-color: var(--grey-700);
    background: linear-gradient(135deg, var(--white) 0%, var(--grey-025) 100%);
}

.pricing-card-compact.enterprise {
    border-color: var(--ink-600);
    background: linear-gradient(135deg, var(--grey-050) 0%, var(--white) 100%);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grey-700);
    color: white;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.enterprise-badge {
    background: var(--ink-700);
}

/* Compact Plan Header */
.plan-header-compact {
    text-align: center;
    margin-bottom: 1rem;
}

.plan-header-compact h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 0.5rem;
}

.price-container-compact {
    margin-bottom: 0.25rem;
}

.price-compact {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1;
}

.period-compact {
    font-size: 0.9rem;
    color: var(--ink-600);
}

.user-info-compact {
    color: var(--ink-600);
    font-size: 0.85rem;
}

/* Compact User Counter */
.user-counter-compact {
    background: var(--grey-075);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.counter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-700);
    text-align: center;
    margin-bottom: 0.75rem;
}

.counter-controls-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.counter-btn-compact {
    width: 32px;
    height: 32px;
    border: 1px solid var(--grey-300);
    background: var(--white);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn-compact:hover {
    border-color: var(--grey-700);
    background: var(--grey-700);
    color: var(--white);
}

.user-count-display {
    font-weight: 600;
    color: var(--ink-800);
    min-width: 60px;
    text-align: center;
}

#userCountDisplay {
    color: var(--grey-700);
    font-weight: 700;
}

.user-slider-compact {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--grey-300);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.user-slider-compact::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--grey-700);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.user-slider-compact::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--grey-700);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.user-labels-compact {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--ink-500);
}

/* Compact Features */
.plan-features-compact {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.feature-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.8rem;
}

.feature-item-compact:not(:last-child) {
    border-bottom: 1px solid var(--grey-150);
}

.feature-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.feature-item-compact span:last-child {
    color: var(--ink-700);
}

/* Compact Value & Button */
.plan-value-compact {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--grey-100);
    border-radius: 6px;
}

.value-text {
    font-size: 0.8rem;
    color: var(--ink-600);
    font-weight: 500;
}

.pricing-btn-compact {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--grey-700);
    background: var(--grey-700);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    font-size: 0.85rem;
}

.pricing-btn-compact:hover {
    background: var(--grey-700-dark);
    border-color: var(--grey-700-dark);
    transform: translateY(-1px);
}

.enterprise-btn {
    background: var(--ink-900);
    border-color: var(--ink-900);
}

.enterprise-btn:hover {
    background: var(--ink-800);
    border-color: var(--ink-800);
}

/* Compact Pricing Info */
.pricing-info-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 640px) {
    .pricing-info-compact {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.info-item-compact {
    background: var(--grey-075);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--ink-700);
    border: 1px solid var(--grey-200);
}

.info-item-compact strong {
    color: var(--ink-900);
}
