/* ==========================================================================
   CorpoHR — public site v2 ("instrument panel" design language)
   Tokens, base, the slab primitive, hover language, ambient background,
   and motion. Page-specific rules stay out of this file — see each page's
   own @push('styles') block.

   Font note: the reference design calls for a geometric sans + a technical
   mono pairing (Space Grotesk + JetBrains Mono in the source project). This
   build has no network access to fetch new webfonts, so it reuses
   Instrument Sans — already self-hosted for the portal's own design system
   at public/fonts/instrument-sans/ — for the display/UI face, and a
   system monospace stack for numerals/tags/chips (zero download, always
   available, and arguably more in the spirit of "self-hosted, no CDN"
   than fetching a new font would have been).
   ========================================================================== */

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../../../fonts/instrument-sans/instrument-sans-400.ttf) format('truetype');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../../../fonts/instrument-sans/instrument-sans-500.ttf) format('truetype');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../../../fonts/instrument-sans/instrument-sans-600.ttf) format('truetype');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../../../fonts/instrument-sans/instrument-sans-700.ttf) format('truetype');
}

/* ==========================================================================
   Tokens — three states, see the detailed note just below.
   ========================================================================== */
/* Theme: three states. No stored choice -> follow the OS/browser's
   prefers-color-scheme (handled by the @media block below, resolved
   synchronously at first paint, no JS/flash). An explicit in-app choice
   stamps data-theme="light"/"dark" on <html> (set by theme.js + the
   pre-paint script in partials/head) and wins over the OS setting in
   either direction. Bare :root below is therefore the LIGHT palette —
   it's both the fallback for browsers without prefers-color-scheme support
   and the base the dark overrides below sit on top of. */
:root {
    /* brand — CorpoHR's own public-site identity, independent of the
       tenant-configurable --primary-color used inside the authenticated
       portal (that one is untouched, per-company; this is fixed) */
    --brand-1: #0E6B5C;   /* deep, saturated — bottom-right glow, gradient start */
    --brand-2: #2FE6C4;   /* bright, airy — top-left glow, hover text, focus ring */
    --brand-support: #5B6EE8; /* third ambient orb only */
    --grad: linear-gradient(135deg, var(--brand-1), var(--brand-2));

    /* surfaces / text — light */
    --bg: #F8FAFC;
    --bg-2: #EEF2F9;
    --surface: #FFFFFF;
    --surface-2: #FFFFFF;
    --border: rgba(15, 23, 42, .09);
    --border-str: rgba(15, 23, 42, .16);
    --tx-1: #0F172A;
    --tx-2: rgba(15, 23, 42, .70);
    --tx-3: rgba(15, 23, 42, .62);
    --overlay: rgba(15, 23, 42, .4);

    /* bright accent fails contrast on white — use the deeper primary, and
       pull the glows/orbs back so the page doesn't look tinted */
    --accent-text: var(--brand-1);
    --glow-1-color: var(--brand-1);
    --glow-2-color: var(--brand-1);
    --orb-opacity: .08;

    /* spacing (4px base) */
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 96px;

    /* radius */
    --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px;
    --radius-tag: 6px; --radius-pill: 999px;

    --content-max: 1180px;
    --gutter: 24px;

    --ease: cubic-bezier(.4, 0, .2, 1);
    --transition: .32s var(--ease);

    --font-display: 'Instrument Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Code', 'Cascadia Mono', 'Consolas', 'SF Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #050F0D;
        --bg-2: #030B09;
        --surface: rgba(255, 255, 255, .032);
        --surface-2: rgba(255, 255, 255, .055);
        --border: rgba(255, 255, 255, .075);
        --border-str: rgba(255, 255, 255, .15);
        --tx-1: #EEF3FB;
        --tx-2: rgba(238, 243, 251, .70);
        --tx-3: rgba(238, 243, 251, .52);
        --overlay: rgba(0, 0, 0, .6);
        --accent-text: var(--brand-2);
        --glow-1-color: var(--brand-2);
        --glow-2-color: var(--brand-1);
        --orb-opacity: .16;
    }
}

:root[data-theme="dark"] {
    --bg: #050F0D;
    --bg-2: #030B09;
    --surface: rgba(255, 255, 255, .032);
    --surface-2: rgba(255, 255, 255, .055);
    --border: rgba(255, 255, 255, .075);
    --border-str: rgba(255, 255, 255, .15);
    --tx-1: #EEF3FB;
    --tx-2: rgba(238, 243, 251, .70);
    --tx-3: rgba(238, 243, 251, .52);
    --overlay: rgba(0, 0, 0, .6);
    --accent-text: var(--brand-2);
    --glow-1-color: var(--brand-2);
    --glow-2-color: var(--brand-1);
    --orb-opacity: .16;
}

/* ==========================================================================
   Base
   ========================================================================== */
.web2-scope {
    background: var(--bg);
    color: var(--tx-2);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.web2-scope * {
    box-sizing: border-box;
}

.web2-scope h1, .web2-scope h2, .web2-scope h3, .web2-scope h4 {
    color: var(--tx-1);
    letter-spacing: -.02em;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.web2-scope a {
    color: inherit;
    text-decoration: none;
}

.web2-scope .web2-shell {
    position: relative;
    z-index: 1;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/*.web2-scope .web2-hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); }*/
.web2-scope .web2-section-title { font-size: clamp(1.6rem, 3.1vw, 2.15rem); text-align: center; max-width: 60ch; margin: 0 auto; }
.web2-scope .web2-card-title { font-size: 1.32rem; }
.web2-scope .web2-body { font-size: 14.6px; line-height: 1.6; color: var(--tx-2); }

.web2-scope .web2-gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.web2-scope .web2-micro-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tx-3);
}

.web2-scope .web2-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--tx-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-tag);
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition), border-color var(--transition);
}

/* ==========================================================================
   Ambient background — fixed, never a body background, so it can be
   blurred/animated/masked independently and costs nothing in layout.
   ========================================================================== */
.web2-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg);
}

.web2-ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
    opacity: .6;
}

.web2-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: var(--orb-opacity);
    will-change: transform;
}

.web2-orb-1 { width: 520px; height: 520px; top: -120px; left: -80px; background: var(--brand-1); animation: web2-drift-1 18s ease-in-out infinite; }
.web2-orb-2 { width: 460px; height: 460px; top: 20%; right: -140px; background: var(--brand-2); animation: web2-drift-2 18s ease-in-out infinite; }
.web2-orb-3 { width: 420px; height: 420px; bottom: -160px; left: 30%; background: var(--brand-support); animation: web2-drift-3 18s ease-in-out infinite; }

@keyframes web2-drift-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes web2-drift-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 40px) scale(1.08); } }
@keyframes web2-drift-3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -30px) scale(1.08); } }

/* ==========================================================================
   The slab — bordered grid of cells, no gaps, dividers drawn with
   box-shadow (never `gap`) so the reveal never shows a coloured seam and
   the pattern is column-count agnostic.
   ========================================================================== */
.web2-slab {
    display: grid;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-2);
    --glow-size: 230px;
    --corner-size: 44px;
}

.web2-cell {
    position: relative;
    overflow: hidden;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border);
    transition: background-color var(--transition);
}

.web2-cell > * { position: relative; z-index: 1; }

.web2-cell::before,
.web2-cell::after {
    content: '';
    position: absolute;
    z-index: 0;
    width: var(--glow-size);
    height: var(--glow-size);
    border-radius: 50%;
    opacity: 0;
    filter: blur(40px);
    transition: opacity .45s var(--ease);
    pointer-events: none;
}

.web2-cell::before {
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    background: var(--glow-1-color);
}

.web2-cell::after {
    bottom: 0; right: 0;
    transform: translate(50%, 50%);
    background: var(--glow-2-color);
}

.web2-cell:hover {
    background-color: var(--surface);
}

.web2-cell:hover::before,
.web2-cell:hover::after {
    opacity: 1;
}

.web2-cell-bracket {
    position: absolute;
    z-index: 2;
    width: var(--corner-size);
    height: var(--corner-size);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}

.web2-cell-bracket-tl { top: var(--space-3); left: var(--space-3); border-top: 2px solid var(--brand-2); border-left: 2px solid var(--brand-2); }
.web2-cell-bracket-br { bottom: var(--space-3); right: var(--space-3); border-bottom: 2px solid var(--brand-1); border-right: 2px solid var(--brand-1); }
.web2-cell:hover .web2-cell-bracket { opacity: 1; }

.web2-cell-ghost-numeral {
    position: absolute;
    z-index: 0;
    right: -.15em;
    bottom: -.28em;
    font-family: var(--font-mono);
    font-size: 150px;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-str);
    transition: -webkit-text-stroke-color var(--transition);
    user-select: none;
    pointer-events: none;
}

.web2-cell:hover .web2-cell-ghost-numeral { -webkit-text-stroke-color: var(--brand-2); }

.web2-cell-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--tx-3);
    margin-bottom: var(--space-4);
    transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.web2-cell:hover .web2-cell-icon {
    border-color: var(--brand-2);
    color: var(--accent-text);
    background: color-mix(in srgb, var(--brand-2) 12%, transparent);
}

.web2-cell-tags {
    margin-top: auto;
    padding-top: var(--space-4);
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.web2-cell:hover .web2-tag {
    color: var(--accent-text);
    border-color: var(--brand-2);
}

/* Grid columns — auto-fit keeps most reflow query-free */
.web2-slab-features { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.web2-slab-features .web2-cell { min-height: 292px; --glow-size: 230px; --corner-size: 44px; }

.web2-slab-compact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.web2-slab-compact .web2-cell { min-height: 152px; --glow-size: 158px; --corner-size: 30px; padding: var(--space-4); }
.web2-slab-compact .web2-cell-ghost-numeral { display: none; }

/* ==========================================================================
   The console card — the single-card auth-flow primitive (login, register,
   verify, forgot/reset password, etc). Same visual language as the slab
   (square corners, hairline border) but a standalone panel, not a grid.
   ========================================================================== */
.web2-console {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .4);
    padding: var(--space-7) var(--space-6);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
}

.web2-console::before,
.web2-console::after {
    content: '';
    position: absolute;
    z-index: 0;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .5;
    pointer-events: none;
}
.web2-console::before { top: 0; left: 0; transform: translate(-50%, -50%); background: var(--glow-1-color); }
.web2-console::after { bottom: 0; right: 0; transform: translate(50%, 50%); background: var(--glow-2-color); }
.web2-console > * { position: relative; z-index: 1; }

.web2-console-step {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tx-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.web2-console-step span.dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand-2);
    display: inline-block;
}

/* ==========================================================================
   Form controls (console + general web2 forms)
   ========================================================================== */
.web2-scope .web2-field { margin-bottom: var(--space-5); }
.web2-scope .web2-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-1);
    margin-bottom: var(--space-2);
}
.web2-scope .web2-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--tx-1);
    font-family: var(--font-display);
    font-size: 15px;
    padding: 12px 14px;
    transition: border-color var(--transition), background-color var(--transition);
}
.web2-scope .web2-input::placeholder { color: var(--tx-3); }
.web2-scope .web2-input:focus {
    outline: none;
    border-color: var(--brand-2);
    background: var(--surface);
}
.web2-scope .web2-input.is-invalid { border-color: #e05252; }
.web2-scope .web2-field-error { color: #ff8080; font-size: 12.5px; margin-top: 6px; display: block; }

.web2-scope .web2-otp-input {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 28px;
    letter-spacing: .3em;
    font-variant-numeric: tabular-nums;
}

.web2-scope .web2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    padding: 13px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
    width: 100%;
}
.web2-scope .web2-btn-primary {
    background: var(--grad);
    color: #fff;
}
.web2-scope .web2-btn-primary:hover { opacity: .92; }
.web2-scope .web2-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.web2-scope .web2-btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--tx-1);
}
.web2-scope .web2-btn-ghost:hover { border-color: var(--border-str); background: var(--surface); }

.web2-scope .web2-link { color: var(--accent-text); transition: opacity var(--transition); }
.web2-scope .web2-link:hover { opacity: .8; text-decoration: underline; }

.web2-scope .web2-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--tx-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
}
.web2-scope .web2-badge .pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand-2);
    animation: web2-pulse 2s ease-in-out infinite;
}
@keyframes web2-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ==========================================================================
   Topbar / navigation — desktop hover+click dropdowns, mobile off-canvas.
   Dropdown panels sit flush against their trigger (no gap) so :hover stays
   continuous when the cursor moves from trigger to panel; .is-open (set by
   nav.js on click) covers touch/keyboard, and both drive the same
   visibility/opacity/transform so there's one visual language either way.
   ========================================================================== */
.web2-scope .web2-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.web2-scope .web2-nav {
    align-items: center;
    gap: var(--space-1);
}

.web2-scope .web2-nav-item {
    position: relative;
}

.web2-scope .web2-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-family: var(--font-display);
    font-size: 14.6px;
    color: var(--tx-2);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color var(--transition), background-color var(--transition);
}
.web2-scope .web2-nav-link:hover,
.web2-scope .web2-nav-item.is-open .web2-nav-link {
    color: var(--tx-1);
    background: var(--surface);
}
.web2-scope .web2-nav-link .bi-chevron-down {
    font-size: 11px;
    transition: transform var(--transition);
}
.web2-scope .web2-nav-item:hover .bi-chevron-down,
.web2-scope .web2-nav-item.is-open .bi-chevron-down {
    transform: rotate(180deg);
}

.web2-scope .web2-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
    z-index: 20;
}
.web2-scope .web2-nav-item:hover .web2-dropdown,
.web2-scope .web2-nav-item:focus-within .web2-dropdown,
.web2-scope .web2-nav-item.is-open .web2-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.web2-scope .web2-dropdown-panel {
    /* Solid, not translucent — var(--surface-2) is a low-alpha overlay in
       dark mode and lets whatever sits behind it (e.g. the hero title) bleed
       through. var(--bg-2) is an opaque hex in both themes. */
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 44px rgba(15, 23, 42, .14);
    overflow: hidden;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .web2-scope .web2-dropdown-panel { box-shadow: 0 20px 44px rgba(0, 0, 0, .28); }
}
:root[data-theme="dark"] .web2-scope .web2-dropdown-panel { box-shadow: 0 20px 44px rgba(0, 0, 0, .28); }

.web2-scope .web2-dropdown-list { min-width: 15rem; padding: var(--space-2); }
.web2-scope .web2-dropdown-list a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--tx-2);
    font-size: 14px;
    transition: color var(--transition), background-color var(--transition);
}
.web2-scope .web2-dropdown-list a:hover { color: var(--tx-1); background: var(--surface); }
.web2-scope .web2-dropdown-list a i { color: var(--tx-3); font-size: 15px; }

.web2-scope .web2-dropdown-mega { min-width: 52rem; max-width: 62rem; padding: var(--space-3); }
.web2-scope .web2-dropdown-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.web2-scope .web2-dropdown-mega-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}
.web2-scope .web2-dropdown-mega-item:hover { background: var(--surface); }
.web2-scope .web2-dropdown-mega-item img { width: 28px; height: 28px; flex-shrink: 0; }
.web2-scope .web2-dropdown-mega-item h6 { font-size: 13px; font-weight: 600; color: var(--tx-1); margin: 0 0 2px; }
.web2-scope .web2-dropdown-mega-item p { font-size: 12px; color: var(--tx-3); margin: 0; line-height: 1.4; }

@media (max-width: 1220px) {
    .web2-scope .web2-dropdown-mega { min-width: 38rem; max-width: 44rem; }
    .web2-scope .web2-dropdown-mega-grid { grid-template-columns: repeat(2, 1fr); }
}

.web2-scope .web2-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--tx-1);
    font-size: 18px;
    cursor: pointer;
}

.web2-scope .web2-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
}
.web2-scope .web2-mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.web2-scope .web2-mobile-nav-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
    opacity: 0;
    transition: opacity .25s var(--ease);
}
.web2-scope .web2-mobile-nav.is-open .web2-mobile-nav-overlay { opacity: 1; }
.web2-scope .web2-mobile-nav-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
}
.web2-scope .web2-mobile-nav.is-open .web2-mobile-nav-panel { transform: none; }
.web2-scope .web2-mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-5) var(--space-3);
}
.web2-scope .web2-mobile-nav-body { padding: 0 var(--space-4); flex: 1; }
.web2-scope .web2-mobile-nav-body > a,
.web2-scope .web2-mobile-nav-body summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 12px;
    color: var(--tx-1);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid var(--border);
}
.web2-scope .web2-mobile-nav-body summary::-webkit-details-marker { display: none; }
.web2-scope .web2-mobile-nav-body details[open] summary .bi-chevron-down { transform: rotate(180deg); }
.web2-scope .web2-mobile-nav-body .web2-mobile-sub { padding: 2px 12px 10px 20px; display: flex; flex-direction: column; gap: 2px; }
.web2-scope .web2-mobile-nav-body .web2-mobile-sub a {
    padding: 9px 8px;
    color: var(--tx-2);
    font-size: 14px;
    border-bottom: none;
}
.web2-scope .web2-mobile-nav-foot {
    padding: var(--space-4) var(--space-4) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    border-top: 1px solid var(--border);
}

@media (min-width: 992px) {
    .web2-scope .web2-mobile-nav { display: none; }
}

/* ==========================================================================
   Focus ring — visible everywhere, 2px accent, 3px offset
   ========================================================================== */
.web2-scope a:focus-visible,
.web2-scope button:focus-visible,
.web2-scope input:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 3px;
}

/* ==========================================================================
   Reveal — opt-in hiding only, gate class added by JS before first paint.
   If the gate class is never added (script fails/blocked), everything is
   already visible by default.
   ========================================================================== */
.web2-reveal-armed .web2-reveal {
    opacity: 0;
    transform: translateY(20px);
}
.web2-reveal-armed .web2-reveal.in-slab {
    transform: none; /* fade only inside a slab — sliding tears the hairlines */
}
.web2-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    .web2-orb { animation: none !important; }
    .web2-scope .web2-badge .pulse-dot { animation: none !important; }
    .web2-reveal-armed .web2-reveal { opacity: 1 !important; transform: none !important; }
    .web2-marquee-track { animation: none !important; }
}

/* ==========================================================================
   Marquee (tech chips) — duplicated content, translate -50%, edge masked
   ========================================================================== */
.web2-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.web2-marquee-track {
    display: flex;
    gap: var(--space-5);
    width: max-content;
    animation: web2-marquee 34s linear infinite;
}
.web2-marquee:hover .web2-marquee-track { animation-play-state: paused; }
@keyframes web2-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Responsive — 375 / 768 / 1280, zero horizontal overflow
   ========================================================================== */
@media (max-width: 860px) {
    .web2-scope .web2-shell { padding: 0 18px; }
    .web2-slab-features .web2-cell { min-height: 220px; --glow-size: 190px; --corner-size: 36px; }
}

@media (max-width: 560px) {
    .web2-console { padding: var(--space-6) var(--space-4); }
    .web2-slab-compact .web2-cell { min-height: 132px; --glow-size: 130px; --corner-size: 26px; }
}
