/* ═══════════════════════════════════════════════════════
   website.css — Connect Media Group
   Public website stylesheet
   Theme variables are in theme.css (shared with client hub)
   ═══════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════
   Section 1: RESET & BASE
   (migrated from base.html inline <style>)
   ═══════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17.6px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ═══════════════════════════════════════════════════════
   Section 2: GLOBAL FX
   (migrated from base.html inline <style>)
   ═══════════════════════════════════════════════════════ */

.grid-background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

.glow-orb {
    position: fixed; top: 20%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--glow-orb-color) 0%, transparent 70%);
    z-index: -2; pointer-events: none;
}


/* ═══════════════════════════════════════════════════════
   Section 3: TYPOGRAPHY & LAYOUT
   (migrated from base.html + existing website.css)
   ═══════════════════════════════════════════════════════ */

h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.huly-headline {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: transparent;
    background-image: linear-gradient(
        135deg,
        var(--text-primary) 30%,
        var(--headline-gradient-via) 70%,
        var(--headline-gradient-to) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 56px;
    padding-bottom: 0.05em;
}

@media (min-width: 1024px) {
    .huly-headline { font-size: 84px; }
}

.section { padding: var(--section-padding) 5%; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.section-tag { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; display: block; font-weight: 600; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1rem; }
.section-desc { color: var(--text-secondary); font-size: 1.1rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-grow {
    background: linear-gradient(135deg, #d4e7c0, #e8f5d8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

@media (max-width: 1024px) {
    .section-title { font-size: 2.5rem; }
}


/* ═══════════════════════════════════════════════════════
   Section 4: ANIMATIONS & KEYFRAMES
   (migrated from base.html + components)
   ═══════════════════════════════════════════════════════ */

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes typeFade {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateBorder {
    to { --angle: 360deg; }
}

@keyframes breathe {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 0.5; transform: scale(1.02); }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@property --widget-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@property --device-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@property --scanner-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateWidgetBorder { to { --widget-angle: 360deg; } }
@keyframes fadeInGlow { to { opacity: 1; } }
@keyframes rotateDeviceBorder { to { --device-angle: 360deg; } }
@keyframes rotateScannerBorder { to { --scanner-angle: 360deg; } }
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes desktopFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes scannerPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
@keyframes frameSlide { to { opacity: 1; transform: translateX(0); } }
@keyframes framePulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
@keyframes frameFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}
@keyframes approveGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 24px 6px rgba(16, 185, 129, 0.15); }
}
@keyframes stFillBar {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes stStrikethrough {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes vp2Pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.shake-error { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }

@media (prefers-reduced-motion: reduce) {
    .mini-card, .mini-summary, .mini-opportunity, .device-glow-wrapper { opacity: 1; animation: none !important; }
    .device-glow-wrapper::before, .device-glow-wrapper::after { animation: none !important; }
    .mini-chart-line .chart-stroke { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
    .typing-cursor { animation: none !important; opacity: 1; }
    .skeleton { animation: none !important; }
}


/* ═══════════════════════════════════════════════════════
   Section 5: NAV
   (migrated from components/nav.html)
   ═══════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav.scrolled {
    backdrop-filter: blur(16px);
    background: var(--nav-scrolled-bg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-utilities {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo {
    font-family: 'Trip Sans', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1;
    flex-shrink: 0;
}

.logo span {
    color: var(--color-logo-accent);
    font-size: 0.45em;
    vertical-align: baseline;
    margin-left: 0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a.text-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a.text-link:hover {
    color: var(--text-primary);
}

.client-hub-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.client-hub-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* Language Selector */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}
/* Language label — expands on hover */
.lang-label {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: max-width 0.25s ease, opacity 0.15s ease;
}
.lang-btn:hover .lang-label {
    max-width: 100px;
    opacity: 1;
}

.lang-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-arrow {
    width: 10px;
    height: 10px;
    fill: var(--text-secondary);
    transition: transform 0.2s;
}

.lang-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--nav-menu-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 10px 40px var(--shadow-heavy);
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) transparent;
}

.lang-menu.show {
    display: flex;
    animation: fadeIn 0.15s ease-out;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.lang-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

/* Theme Toggle (mirrors lang-dropdown pattern) */
.theme-dropdown {
    position: relative;
}
.theme-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-secondary);
}
.theme-btn:hover, .theme-btn.active {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    border-radius: 50px;
    padding-right: 14px;
}
.theme-btn .theme-icon { display: none; }
/* Theme hint — expands to pill on hover */
.theme-hint {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: max-width 0.25s ease, opacity 0.15s ease, margin 0.25s ease;
}
.theme-btn:hover .theme-hint,
.theme-btn.active .theme-hint {
    max-width: 160px;
    opacity: 1;
    margin-left: 8px;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    display: none;
    flex-direction: column;
    min-width: 210px;
    box-shadow: 0 8px 30px var(--shadow-heavy);
    z-index: 1000;
}
.theme-menu.show {
    display: flex;
    animation: fadeIn 0.15s ease-out;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s;
    font-family: inherit;
    width: 100%;
    text-align: left;
}
.theme-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.theme-option.active {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Theme vote header */
.theme-vote-header {
    padding: 8px 12px 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

/* Theme option row: theme button + vote button side by side */
.theme-option-row {
    display: flex;
    align-items: center;
    border-radius: 8px;
}
.theme-option-row.active {
    background: var(--accent-soft);
}
.theme-option-row.active .theme-option {
    color: var(--accent);
}
.theme-option-row .theme-option {
    flex: 1;
    min-width: 0;
}

/* Vote button */
.theme-vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.theme-vote-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
}
.theme-vote-btn.voted {
    color: var(--accent);
}
.theme-vote-btn.voted .vote-thumb {
    fill: var(--accent);
}
.theme-vote-btn .vote-count {
    font-size: 0.7rem;
    min-width: 14px;
    text-align: center;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-left: 1.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

/* Nav Responsive */
@media (min-width: 1200px) {
    .nav-container { padding: 0; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-utilities { display: none; }
    .nav-toggle { display: flex; }
    .nav-container { padding: 0 5%; }
}



/* ═══════════════════════════════════════════════════════
   Section 6: HERO VARIANTS
   (migrated from components/hero.html)
   ═══════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
}

.hero-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.widget-wrapper { display: block; }

.hero-bullets {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-light);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.check-icon {
    width: 22px; height: 22px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-success); flex-shrink: 0;
}

.hero-reviews {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    animation-delay: 0.8s;
    flex-wrap: wrap;
}

.review-badge {
    display: inline-flex; align-items: center; gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap; width: fit-content;
}

.review-badge:hover { background: var(--bg-hover); transform: translateY(-1px); }

/* Hero Mobile */
@media (max-width: 1024px) {
    .hero {
        padding-top: 110px;
        padding-bottom: 2rem;
        justify-content: flex-start;
        height: auto;
        min-height: auto;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
    }

    .hero-text { display: contents; }

    .section-tag { order: 1; margin-bottom: 0.5rem; }
    .hero-text h1 { order: 2; font-size: 2.8rem; line-height: 1.1; margin-bottom: 1rem; }
    .hero-sub { order: 3; font-size: 1rem; margin-bottom: 1.5rem; }

    .widget-wrapper {
        order: 4;
        width: 100%;
        margin-bottom: 1rem;
        display: block !important;
    }

    .hero-reviews { order: 5; margin-top: 0; margin-bottom: 2rem; }
    .hero-bullets { order: 6; }

    .hero-bullet { font-size: 0.95rem; }
}

/* Hero V1: Text left + device frame right */
.hero-v1 {
    min-height: min(100vh, 1000px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 5% 3rem;
    position: relative;
}
#mesh-gradient-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}
.hero-v1 > *:not(#mesh-gradient-canvas) {
    position: relative;
    z-index: 1;
}
.hero-v1-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 1.8fr;
    gap: 3rem;
    align-items: center;
}
.hero-v1-layout > * { min-width: 0; }
.hero-v1-layout > :first-child { overflow: hidden; }
.hero-typing-cursor {
    font-weight: 300;
    color: var(--accent);
    animation: heroBlink 0.8s step-end infinite;
    margin-left: 2px;
}
@keyframes heroBlink {
    50% { opacity: 0; }
}
.hero-review-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.review-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
}
.review-pill-name { font-size: 0.8rem; font-weight: 700; }
.review-pill-stars { display: flex; gap: 2px; }
.review-pill-count { font-size: 0.7rem; color: var(--text-muted); }
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-muted);
    animation: bounceDown 2s ease-in-out infinite;
    transition: color 0.2s;
    z-index: 2;
}
.hero-scroll-indicator:hover { color: var(--text-secondary); }
.hero-scroll-indicator span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
@media (max-width: 1024px) {
    .hero-v1 {
        padding-top: 100px;
        padding-bottom: 2rem;
        justify-content: flex-start;
        min-height: auto;
    }
    .hero-v1-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }
    .hero-scroll-indicator { display: none; }
}

/* Hero V2: Scanner left + floating cards right */
.hero-v2 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
}
.hero-v2-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
}
.hero-scanner-inline { margin-top: 2rem; }
.hero-scanner-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    display: block;
    font-weight: 500;
}
.hero-scanner-wrap {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 4px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}
.hero-scanner-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: var(--bg-secondary);
}
.hero-scanner-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.75rem;
    outline: none;
    flex: 1;
}
.hero-scanner-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-scanner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}
.hero-scanner-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
@media (max-width: 1024px) {
    .hero-v2 {
        padding-top: 110px;
        padding-bottom: 2rem;
        justify-content: flex-start;
        min-height: auto;
    }
    .hero-v2-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}


/* ═══════════════════════════════════════════════════════
   Section 7: WIDGET / SCANNER (shared)
   (existing website.css content)
   ═══════════════════════════════════════════════════════ */

.scanner-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
}

.scanner-wrapper {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 20px var(--shadow-base);
    transition: border-color 0.2s;
}

.scanner-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.scanner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: var(--text-muted);
}

.scanner-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.8rem 0;
    outline: none;
    font-family: inherit;
}

.scanner-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
}

.scanner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* HTMX Loading Indicator */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator {
    opacity: 1;
    display: block !important;
}
.htmx-request.scanner-btn {
    opacity: 0.7;
    cursor: wait;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* ═══════════════════════════════════════════════════════
   Section 8: WIDGET GRID
   (existing website.css content)
   ═══════════════════════════════════════════════════════ */

.inventory-section {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px -10px var(--shadow-heavy);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.inventory-header { margin-bottom: 1.5rem; }

.inventory-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.widget-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.channel-bar {
    display: inline-flex;
    background: var(--bg-input);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.channel-option { cursor: pointer; position: relative; }

.channel-option span {
    display: block;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.channel-option:hover span { color: var(--text-primary); }

.channel-option input:checked + span {
    background: var(--bg-pill-active);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dropdown-group { display: flex; gap: 0.5rem; }

.widget-select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.widget-select:hover { border-color: var(--border-hover); }

.inventory-scroll { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.inventory-scroll::-webkit-scrollbar { width: 4px; }
.inventory-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.inventory-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inventory-item:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px var(--shadow-base);
}

.inventory-logo {
    margin-bottom: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.inventory-channel {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.inventory-metric {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
    font-weight: 600;
}

.inventory-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .widget-controls { flex-direction: column; align-items: stretch; }
    .inventory-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════════════
   Section 9: HERO WIDGET
   (migrated from widget/hero_widget.html + hero_widget_OLD.html)
   ═══════════════════════════════════════════════════════ */

#hero-widget-main .inventory-glow-wrapper {
    position: relative;
    border-radius: 16px;
    isolation: isolate;
    z-index: 0;
    opacity: 0;
    animation: fadeInGlow 0.5s ease forwards 0.5s;
    box-shadow: 0 25px 50px -12px var(--shadow-heavy);
}
#hero-widget-main .inventory-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 16px;
    z-index: -1;
    background: conic-gradient(
        from var(--widget-angle),
        transparent 0%, transparent 10%,
        var(--conic-glow-2) 30%, var(--conic-glow-1) 50%, var(--conic-glow-2) 70%,
        transparent 90%, transparent 100%
    );
    animation: rotateWidgetBorder 6s linear infinite;
}
#hero-widget-main .inventory-glow-wrapper::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    z-index: -2;
    background: conic-gradient(
        from var(--widget-angle),
        transparent 0%, transparent 10%,
        var(--conic-glow-2) 30%, var(--conic-glow-1) 50%, var(--conic-glow-2) 70%,
        transparent 90%, transparent 100%
    );
    filter: blur(30px);
    opacity: 0.4;
    animation: rotateWidgetBorder 6s linear infinite;
}
#hero-widget-main .inventory-section {
    position: relative;
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 3rem 2rem;
    z-index: 1;
    border: 1px solid var(--bg-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 420px;
    justify-content: center;
    transition: min-height 0.3s ease;
    overflow: hidden;
}
.widget-headline {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--text-primary), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.widget-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 420px;
    line-height: 1.5;
}
#widget-grid-container {
    padding-bottom: 1.5rem;
    overflow-y: auto;
    padding-right: 4px;
}
@media (max-width: 1024px) {
    #hero-widget-main {
        margin-top: 3rem;
        width: 100%;
    }
    #hero-widget-main .inventory-section {
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }
    .widget-headline { font-size: 1.5rem; }
}


/* ═══════════════════════════════════════════════════════
   Section 10: HERO PREVIEW V1 (Device Frame)
   (migrated from widget/hero_preview_v1.html)
   ═══════════════════════════════════════════════════════ */

.preview-v1 {
    position: relative;
    width: 100%;
    height: 600px;
}
.device-glow-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    isolation: isolate;
    z-index: 1;
    opacity: 0;
    animation: desktopFadeIn 0.7s ease-out forwards 0.3s;
}
.device-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 13px;
    z-index: -1;
    background: conic-gradient(
        from var(--device-angle),
        transparent 0%, transparent 20%,
        var(--conic-glow-2) 35%,
        var(--conic-glow-1) 50%,
        var(--conic-glow-2) 65%,
        transparent 80%, transparent 100%
    );
    opacity: 0.4;
    animation: rotateDeviceBorder 8s linear infinite;
}
.device-glow-wrapper::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 24px;
    z-index: -2;
    background: conic-gradient(
        from var(--device-angle),
        transparent 0%, transparent 20%,
        var(--conic-glow-2) 35%,
        var(--conic-glow-1) 50%,
        var(--conic-glow-2) 65%,
        transparent 80%, transparent 100%
    );
    filter: blur(25px);
    opacity: 0.25;
    animation: rotateDeviceBorder 8s linear infinite;
}
.device-glow-wrapper.device-loaded {
    animation: gentleFloat 5s ease-in-out infinite;
    opacity: 1;
}
.device-desktop {
    position: relative;
    width: 100%;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
    overflow: hidden;
    z-index: 1;
}
.browser-top {
    background: var(--bg-secondary);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Status bar (replaces Mac dots) */
.browser-top-status { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.browser-top-left { display: flex; align-items: center; gap: 6px; font-size: 0.6rem; color: var(--text-muted, #64748b); line-height: 1; }
.status-dot-live { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: framePulse 2s ease-in-out infinite; box-shadow: 0 0 4px rgba(16,185,129,0.5); }
.status-text { letter-spacing: 0.02em; }
.status-divider { color: rgba(255,255,255,0.15); }
.status-load-high { color: #f59e0b; font-weight: 600; font-size: 0.55rem; }
.browser-top-right { font-size: 0.6rem; color: #475569; font-weight: 500; letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; line-height: 1; }
.scanner-bar-area {
    padding: 12px 16px 14px;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scanner-bar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 4px;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}
.scanner-bar.shaking { animation: shakeInput 0.6s ease-in-out; }
.scanner-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.scanner-bar-icon {
    padding: 0 0 0 10px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.scanner-bar-input {
    background: transparent;
    border: none;
    color: #1f2937;
    font-size: 1rem;
    padding: 0.7rem 0.6rem;
    outline: none;
    flex: 1;
    min-width: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}
.scanner-bar-input.demo-typing {
    color: #6b7280;
    opacity: 0.7;
}
.scanner-bar-input.locked {
    pointer-events: none;
    opacity: 0.6;
}
.scanner-bar-btn.locked {
    pointer-events: none;
    opacity: 0.5;
    animation: none;
}
.scanner-bar-input::placeholder {
    color: #9ca3af;
}
.scanner-bar-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: scannerPulse 2.5s ease-in-out infinite;
}
.scanner-bar-btn:hover {
    animation: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}
.typing-cursor {
    position: absolute;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    animation: cursorBlink 1s ease-in-out infinite;
    display: none;
}
.typing-cursor.visible {
    display: block;
}
.scanner-bar-input:focus ~ .typing-cursor {
    display: none !important;
}
.scanner-bar-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.free-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.scanner-bar-note {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.browser-content {
    padding: 14px 16px;
    background: var(--bg-primary);
    height: 420px;
    overflow: hidden;
    position: relative;
}
.browser-content::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}
.mini-audit { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.mini-summary {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mini-logo-placeholder {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 0.65rem;
    flex-shrink: 0;
}
.mini-biz-name { font-size: 0.7rem; font-weight: 700; color: var(--text-light); }
.mini-biz-domain { font-size: 0.5rem; color: var(--accent); }
.mini-tags { margin-left: auto; display: flex; gap: 4px; }
.mini-tag {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.45rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.mini-bento {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8px;
}
.mini-left-col { display: flex; flex-direction: column; gap: 8px; }
.mini-card {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mini-card-head {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.55rem; font-weight: 700; color: #cbd5e1;
}
.mini-ring {
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.4rem; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.mini-card-body { padding: 8px 10px; }
.mini-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.mini-metric {
    background: rgba(255,255,255,0.03); border-radius: 6px; padding: 5px;
    text-align: center;
}
.mini-metric-val { font-size: 0.7rem; font-weight: 800; color: var(--text-light); line-height: 1; }
.mini-metric-label { font-size: 0.4rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.mini-stars { display: flex; gap: 1px; }
.mini-star { color: var(--color-gold); font-size: 0.55rem; }
.mini-star-empty { color: #334155; font-size: 0.55rem; }
.mini-social-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mini-social-icon {
    width: 22px; height: 22px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; font-weight: 700;
}
.mini-social-active { background: rgba(16, 185, 129, 0.15); color: var(--color-success); }
.mini-social-missing { background: rgba(255,255,255,0.03); color: #334155; }
.mini-sentiment-bar {
    height: 6px;
    border-radius: 3px;
    display: flex;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.mini-sentiment-bar > span {
    height: 100%;
    transition: width 0.6s ease;
}
.mini-chart {
    height: 50px;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 6px;
    position: relative; overflow: hidden;
}
.mini-chart-line {
    position: absolute;
    bottom: 8px; left: 6px; right: 6px;
    height: 34px;
}
.mini-chart-line .chart-stroke {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 1.2s ease-out forwards 1s;
}
.mini-opportunity {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.opp-head {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.55rem; font-weight: 700; color: #cbd5e1;
}
.opp-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.opp-channel-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.opp-media-name { font-size: 0.95rem; font-weight: 800; color: var(--text-light); line-height: 1.2; }
.opp-media-type { font-size: 0.6rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.opp-desc { font-size: 0.6rem; color: var(--text-muted); line-height: 1.4; }
.opp-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
    font-size: 0.6rem; font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.opp-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); }
#oppData { display: none; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
#oppData.visible { display: flex; }
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 400px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-line { height: 10px; margin-bottom: 6px; }
.skeleton-line-sm { height: 8px; width: 60%; margin-bottom: 4px; }
.skeleton-circle { width: 34px; height: 34px; border-radius: 8px; }
.skeleton-block { height: 20px; }
.skeleton-block-lg { height: 40px; }
.card-loading .mini-card-body,
.card-loading .opp-body { opacity: 0; }
.card-loading .skeleton-overlay { display: flex; }
.skeleton-overlay {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
}
.mini-card.refreshing,
.mini-summary.refreshing,
.mini-opportunity.refreshing { opacity: 0; transform: translateY(10px); }
.mini-card.refreshed,
.mini-summary.refreshed,
.mini-opportunity.refreshed { opacity: 1; transform: translateY(0); transition: opacity 0.4s ease, transform 0.4s ease; }
.qmark-val { font-size: 1.2rem; font-weight: 800; color: #475569; }
@media (max-width: 1024px) {
    .preview-v1 { height: auto; }
    .device-glow-wrapper { position: relative; width: 100%; }
    .device-glow-wrapper::before,
    .device-glow-wrapper::after { display: none; }
    .device-glow-wrapper.device-loaded { animation: none; opacity: 1; }
    .device-desktop {
        border-radius: 16px;
        box-shadow: 0 -8px 40px var(--accent-glow);
        border: 1px solid rgba(255,255,255,0.1);
    }
    .browser-content { height: 360px; }
}
@media (max-width: 768px) {
    .preview-v1 { height: auto; min-height: 360px; }
    .device-glow-wrapper { position: relative; width: 100%; }
    .browser-content { height: auto; min-height: 320px; }
    .mini-bento { grid-template-columns: 1fr; }
    .mini-opportunity { aspect-ratio: auto; min-height: 120px; }
    .scanner-bar-input { font-size: 0.9rem; padding: 0.6rem 0.5rem; }
    .scanner-bar-btn { padding: 0.55rem 1rem; font-size: 0.8rem; }
    .scanner-bar-label { font-size: 0.9rem; }
    .device-glow-wrapper::after { inset: -8px; filter: blur(18px); opacity: 0.25; }
}


/* --- Hero Preview V2: Floating audit cards (always light themed) --- */
.preview-v2 {
    position: relative;
    width: 100%;
    height: 520px;
}
.float-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.float-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.06);
}
.fc-head {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
}
.fc-ring {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fc-ring span { font-size: 0.55rem; font-weight: 800; position: relative; z-index: 1; }
.fc-ring::before {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50%; background: #fff;
}
.fc-title { font-size: 0.75rem; font-weight: 700; color: #1a1a2e; }
.fc-subtitle { font-size: 0.55rem; color: #6c757d; }
.fc-body { padding: 12px 14px; }

.fc-google { top: 20px; left: 0; width: 320px; z-index: 1; transform: rotate(-2deg); }
.fc-google-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fc-rating-num { font-size: 2.2rem; font-weight: 800; color: #0f1623; line-height: 1; }
.fc-stars { display: flex; gap: 2px; }
.fc-star { color: #ffc107; font-size: 0.85rem; }
.fc-star-empty { color: #dee2e6; font-size: 0.85rem; }
.fc-review-count { font-size: 0.7rem; color: #6c757d; }
.fc-histogram { margin-top: 8px; }
.fc-hist-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 0.6rem; color: #6c757d; }
.fc-hist-bar { flex: 1; height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; }
.fc-hist-fill { height: 100%; background: #ffc107; border-radius: 3px; }

.fc-seo { top: 60px; left: 200px; width: 300px; z-index: 2; transform: rotate(1.5deg); }
.fc-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.fc-metric { background: #f8f9fa; border-radius: 8px; padding: 8px; text-align: center; }
.fc-metric-val { font-size: 1rem; font-weight: 800; color: #0f1623; line-height: 1.2; }
.fc-metric-label { font-size: 0.55rem; color: #6c757d; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.fc-chart { height: 50px; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, rgba(13, 110, 253, 0.06) 0%, rgba(13, 110, 253, 0.01) 100%); }

.fc-social { bottom: 80px; left: 30px; width: 260px; z-index: 3; transform: rotate(-1deg); }
.fc-social-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.fc-social-item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 0.65rem; font-weight: 600; }
.fc-social-active { background: #e8f5e9; color: #198754; }
.fc-social-missing { background: #f5f5f5; color: #bbb; }
.fc-social-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.fc-social-dot.active { background: #198754; }
.fc-social-dot.missing { background: #ccc; }

.fc-speed { bottom: 40px; right: 10px; width: 140px; z-index: 4; transform: rotate(3deg); text-align: center; }
.fc-speed-ring { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; position: relative; }
.fc-speed-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.fc-speed-score { position: relative; z-index: 1; font-size: 1.3rem; font-weight: 800; }
.fc-speed-label { font-size: 0.6rem; color: #6c757d; }
.fc-speed-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.fc-speed-metric { background: #f8f9fa; border-radius: 6px; padding: 4px; text-align: center; }
.fc-speed-metric-val { font-size: 0.65rem; font-weight: 700; }
.fc-speed-metric-label { font-size: 0.4rem; color: #6c757d; text-transform: uppercase; }

.fc-keywords { top: 0; right: 0; width: 220px; z-index: 1; transform: rotate(2deg); }
.fc-kw-table { width: 100%; font-size: 0.6rem; }
.fc-kw-table th { text-align: left; font-weight: 600; color: #6c757d; padding: 4px 0; border-bottom: 1px solid #f0f0f0; text-transform: uppercase; font-size: 0.5rem; letter-spacing: 0.04em; }
.fc-kw-table td { padding: 5px 0; color: #475569; border-bottom: 1px solid #f8f9fa; }
.fc-kw-pos { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 0.55rem; font-weight: 700; }
.fc-kw-pos.top3 { background: #d1fae5; color: #065f46; }
.fc-kw-pos.top10 { background: #dbeafe; color: #1e40af; }
.fc-kw-pos.top20 { background: #fef3c7; color: #92400e; }

.preview-v2::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 1024px) {
    .preview-v2 { height: 420px; }
    .fc-google { width: 260px; top: 10px; }
    .fc-seo { width: 250px; top: 40px; left: 150px; }
    .fc-social { width: 220px; bottom: 60px; }
    .fc-speed { width: 120px; }
    .fc-keywords { width: 180px; }
}
@media (max-width: 768px) {
    .preview-v2 { height: 350px; }
    .fc-google { width: 220px; top: 0; left: 0; }
    .fc-seo { width: 200px; top: 30px; left: 100px; }
    .fc-social { bottom: 40px; left: 10px; width: 190px; }
    .fc-speed { bottom: 20px; right: 0; width: 110px; }
    .fc-keywords { display: none; }
}


/* ═══════════════════════════════════════════════════════
   Section 11: MEDIA EXPLORER PREVIEW
   (migrated from components/media_explorer_preview.html)
   ═══════════════════════════════════════════════════════ */

.explorer-showcase {
    --glow-color-1: var(--conic-glow-1);
    --glow-color-2: var(--conic-glow-2);
    --glow-speed: 10s;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
    isolation: isolate;
}

.explorer-showcase::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 14px;
    z-index: -1;
    background: conic-gradient(
        from var(--angle),
        transparent 0%,
        transparent 10%,
        var(--glow-color-2) 30%,
        var(--glow-color-1) 50%,
        var(--glow-color-2) 70%,
        transparent 90%,
        transparent 100%
    );
    animation: rotateBorder var(--glow-speed) linear infinite;
}

.explorer-showcase::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    z-index: -2;
    background: conic-gradient(
        from var(--angle),
        transparent 10%,
        var(--glow-color-2) 40%,
        var(--glow-color-1) 50%,
        var(--glow-color-2) 60%,
        transparent 90%
    );
    filter: blur(60px);
    opacity: 0.4;
    animation: rotateBorder var(--glow-speed) linear infinite, breathe 6s ease-in-out infinite alternate;
}

.explorer-frame {
    position: relative;
    border-radius: 12px;
    background: var(--bg-surface);
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.5);
    display: flex;
}

.explorer-image {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.95);
    transition: filter 0.3s ease;
}

.explorer-showcase:hover .explorer-image {
    filter: brightness(1.05);
}

.explorer-gate {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 3.5rem;
    text-align: center;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(6, 9, 16, 0.6) 40%,
        rgba(6, 9, 16, 0.95) 80%,
        var(--bg-surface) 100%
    );
    z-index: 10;
}

.unlock-btn {
    background: white;
    color: #0f1623;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 4px 12px rgba(0,0,0,0.4),
        0 0 20px rgba(56, 189, 248, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,1),
        0 8px 24px rgba(56, 189, 248, 0.4),
        0 0 40px rgba(56, 189, 248, 0.2);
}


/* ═══════════════════════════════════════════════════════
   Section 12: SCANNER STATES
   (existing website.css wizard + placeholder for Phase 4)
   ═══════════════════════════════════════════════════════ */

.thinking-line {
    opacity: 0;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
    animation: typeFade 0.5s forwards;
}

.thinking-line:nth-child(1) { animation-delay: 0.2s; }
.thinking-line:nth-child(2) { animation-delay: 1.2s; }
.thinking-line:nth-child(3) { animation-delay: 2.2s; }
.thinking-line:nth-child(4) { animation-delay: 3.0s; }

.mystery-card-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--accent);
    background: rgba(15, 22, 35, 0.8);
}

.mystery-blur {
    filter: blur(8px);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.mystery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: radial-gradient(circle, rgba(15,22,35,0.4) 0%, rgba(15,22,35,0.9) 100%);
}

.wizard-slider {
    display: flex;
    width: 200%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.wizard-slide {
    width: 50%;
    flex-shrink: 0;
    padding: 1rem;
}

.slide-active { transform: translateX(-50%); }

/* State Result: Wizard overrides */
.inventory-search {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}
.inventory-search:focus {
    outline: none;
    border-color: var(--accent);
}

/* State Loading: Terminal HUD */
#browserContentArea.terminal-active {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
}
#browserContentArea.terminal-active::after {
    display: none !important;
}
.frame-terminal {
    background: var(--bg-primary);
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 280px;
}
.frame-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.frame-hud-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.frame-hud-timer {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    font-size: 0.65rem;
}
.frame-logs {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.frame-logs::-webkit-scrollbar { width: 4px; }
.frame-logs::-webkit-scrollbar-track { background: transparent; }
.frame-logs::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }
.frame-line {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-10px);
}
.frame-line.visible {
    animation: frameSlide 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.ft-dim { color: #64748b; }
.ft-white { color: #ffffff; }
.ft-green { color: #34d399; }
.ft-blue { color: #60a5fa; }
.ft-warn { color: #fbbf24; }
.ft-err { color: var(--color-error); }
.ft-badge {
    background: var(--accent-soft);
    color: #60a5fa;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.frame-form-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.frame-form-overlay.visible {
    display: flex;
    animation: frameFadeIn 0.4s ease;
}
.frame-form {
    text-align: center;
    font-family: 'Inter', -apple-system, sans-serif;
    width: 100%;
    max-width: 340px;
}
.frame-form h3 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.frame-form .frame-form-sub {
    color: var(--text-muted);
    font-size: 0.65rem;
    line-height: 1.4;
    margin-bottom: 10px;
}
.frame-dismiss-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.65rem;
    cursor: pointer;
    margin-top: 8px;
    transition: border-color 0.2s, color 0.2s;
}
.frame-dismiss-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}
.frame-input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1e293b;
    padding: 0 12px;
    height: 42px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}
.frame-input::placeholder { color: #9ca3af; }
.frame-input:focus {
    border-color: var(--accent, #3b82f6);
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.frame-submit-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.frame-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Idle shimmer for empty-state cards */
@keyframes idleShimmer {
    0% { background-position: -300px 0; }
    100% { background-position: 300px 0; }
}
.idle-shimmer { position: relative; overflow: hidden; }
.idle-shimmer::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 40%,
        rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 60%, transparent 100%);
    background-size: 600px 100%; animation: idleShimmer 3s ease-in-out infinite;
    pointer-events: none; z-index: 1; border-radius: inherit;
}

/* Terminal blinking cursor */
.terminal-blink-cursor {
    animation: cursorBlink 1s ease-in-out infinite;
    color: #fbbf24;
}
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Lead capture modal — full-screen overlay (unclosable, body-hoisted) */
.lead-capture-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(6, 10, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; align-items: center; justify-content: center;
    overflow-y: auto; padding: 40px 20px;
}
.lead-capture-modal.visible { display: flex; }
.lead-capture-inner {
    width: 100%; max-width: 580px;
    padding: 24px 28px;
    background: rgba(15, 22, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    max-height: 95vh; overflow-y: auto;
}
@media (max-width: 768px) {
    .lead-capture-modal { padding: 12px 10px; }
    .lead-capture-inner {
        max-width: 100%; padding: 20px 16px; border-radius: 12px;
    }
}
.lead-capture-inner h3 {
    color: #ffffff; font-size: 1.1rem; font-weight: 700; margin: 0 0 6px;
}
.lead-capture-inner .lead-subtext {
    color: #94a3b8; font-size: 0.75rem; line-height: 1.5; margin-bottom: 20px;
}
.lead-subtext-bottom {
    color: #ffffff; font-size: 0.8rem; line-height: 1.5;
    text-align: left; margin: 12px 0 0;
}
/* Radar modal header */
.radar-modal-header { text-align: center; margin-bottom: 20px; }
.radar-icon-ring {
    width: 48px; height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%; color: var(--accent, #3b82f6);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
}
/* KPI category checklist */
.radar-category-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
    margin-bottom: 16px;
}
.radar-category-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: #e2e8f0;
}
.radar-category-item svg { flex-shrink: 0; }
.radar-disclaimer {
    display: flex; gap: 8px; align-items: flex-start;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 8px; padding: 10px 12px; margin: 12px 0 0;
    color: rgba(148, 163, 184, 0.9);
}
.radar-disclaimer svg { color: #3b82f6; }
.radar-disclaimer p {
    font-size: 0.7rem; line-height: 1.5; margin: 0;
}
.radar-divider {
    height: 1px; background: rgba(255, 255, 255, 0.06);
    margin: 4px 0 20px;
}
/* Form field styles */
.lead-field-wrap {
    position: relative; margin-bottom: 12px;
}
.lead-field-wrap .frame-input {
    width: 100%; padding-right: 36px;
}
.lead-field-icon {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; display: none;
}
.lead-field-icon.spinner {
    display: block;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent, #3b82f6);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.lead-field-icon.valid {
    display: block; color: #10b981;
}
.lead-field-icon.invalid {
    display: block; color: #ef4444;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.lead-field-error {
    color: #ef4444; font-size: 0.55rem; margin-top: 2px; display: none;
}
.lead-field-error.visible { display: block; }
.frame-input.valid-border { border-color: #10b981 !important; }
.frame-input.invalid-border { border-color: #ef4444 !important; }
/* Checklist below email */
.lead-checklist {
    display: flex; flex-direction: column; gap: 3px; margin-top: 4px; margin-bottom: 8px;
}
.lead-checklist-item {
    font-size: 0.55rem; display: flex; align-items: center; gap: 4px;
    color: #64748b;
}
.lead-checklist-item.pass { color: #10b981; }
.lead-checklist-item.fail { color: #ef4444; }
/* Name row — first/last side by side */
.lead-name-row { display: flex; gap: 8px; margin-bottom: 12px; }
.lead-name-row .lead-field-wrap { flex: 1; margin-bottom: 0; }
/* Phone flag inside input */
.lead-phone-wrap { position: relative; }
.lead-phone-flag {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 14px; border-radius: 2px; object-fit: cover;
    display: none; pointer-events: none;
}
.lead-phone-flag.visible { display: block; }
.lead-phone-wrap input.has-flag { padding-left: 38px; }
/* SVG checkmark rows */
.lead-check-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.7rem; color: #64748b;
}
.lead-check-row.pass { color: #10b981; }
.lead-check-row.fail { color: #ef4444; }
.lead-check-row.pending { color: #64748b; }
.lead-check-row.checking { color: #94a3b8; }
.lead-check-icon { width: 14px; height: 14px; flex-shrink: 0; }
.lead-check-icon.spin { animation: spin 0.6s linear infinite; }
/* Submit button */
.lead-submit-btn {
    width: 100%; padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent, #3b82f6), var(--accent-secondary, #6366f1));
    color: #fff; font-size: 0.75rem; font-weight: 600;
    border: none; border-radius: 8px; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    margin-top: 8px;
}
.lead-submit-btn:disabled {
    opacity: 0.4; cursor: not-allowed;
}
.lead-submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow, rgba(59,130,246,0.3));
}
/* Success card inside device frame */
.radar-success-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 60px 24px; min-height: 100%; height: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    animation: frameFadeIn 0.5s ease;
}
.radar-success-icon {
    width: 80px; height: 80px;
    background: rgba(16, 185, 129, 0.1); border-radius: 50%;
    color: #10b981; display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; border: 1px solid rgba(16, 185, 129, 0.2);
}
.radar-success-card h3 {
    font-size: 1.15rem; color: #ffffff; font-weight: 700; margin-bottom: 12px;
}
.radar-success-card p {
    font-size: 0.9rem; color: #94a3b8; line-height: 1.6; max-width: 340px;
}
/* Radar toast notification */
.radar-toast {
    position: fixed; top: 24px; right: 24px; z-index: 10000;
    background: rgba(15, 22, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    transform: translateX(120%); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    max-width: 420px;
}
.radar-toast.visible { transform: translateX(0); opacity: 1; }
.radar-toast.dismissing { transform: translateX(120%); opacity: 0; }
.radar-toast-content { display: flex; align-items: center; gap: 10px; flex: 1; }
.radar-toast-icon {
    flex-shrink: 0; width: 32px; height: 32px;
    background: rgba(16, 185, 129, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.radar-toast-text { display: flex; flex-direction: column; gap: 2px; }
.radar-toast-text strong { font-size: 0.8rem; color: #ffffff; font-weight: 600; }
.radar-toast-text span { font-size: 0.7rem; color: #94a3b8; }
/* Timer ring / close button */
.radar-toast-timer {
    position: relative; width: 36px; height: 36px;
    flex-shrink: 0; cursor: pointer;
}
.radar-timer-ring { width: 36px; height: 36px; transition: opacity 0.2s; }
.radar-timer-x {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #94a3b8; opacity: 0; transition: opacity 0.2s;
}
.radar-toast-timer:hover .radar-timer-ring { opacity: 0; }
.radar-toast-timer:hover .radar-timer-x { opacity: 1; }
@media (max-width: 768px) {
    .radar-toast {
        top: auto; bottom: 20px; right: 16px; left: 16px;
        max-width: none; transform: translateY(120%);
    }
    .radar-toast.visible { transform: translateY(0); }
    .radar-toast.dismissing { transform: translateY(120%); }
}
/* Scan limit reached state */
.scan-limit-reached {
    padding: 40px 24px; text-align: center;
    background: var(--bg-primary); min-height: 300px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.scan-limit-reached h3 { color: #ffffff; font-size: 1.1rem; margin-bottom: 8px; }
.scan-limit-reached p { color: #94a3b8; font-size: 0.75rem; line-height: 1.6; max-width: 280px; margin-bottom: 20px; }
.scan-limit-reached a {
    padding: 10px 24px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent, #3b82f6), var(--accent-secondary, #6366f1));
    color: #fff; text-decoration: none; font-size: 0.75rem; font-weight: 600;
}


/* ═══════════════════════════════════════════════════════
   Section 13: UNIFIED EXPLORER SHELL
   (migrated from unified_explorer/shell.html)
   ═══════════════════════════════════════════════════════ */

#unified-explorer-root {
    --bg-surface: var(--bg-card, rgba(15, 22, 35, 0.6));
    --bg-app: var(--bg-primary, #0a0f1a);
    --text-main: var(--text-primary, #ffffff);
    --text-muted-ue: var(--text-secondary, #94a3b8);
    --border-subtle: var(--border, rgba(255,255,255,0.08));
    --brand-primary: var(--accent, #3b82f6);
    --brand-primary-soft: rgba(59, 130, 246, 0.15);
    --radius-md: 12px;
    position: relative;
    min-height: 500px;
}
#unified-explorer-root .crm-search-input {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 99px;
    padding: 8px 16px;
    width: 100%;
    outline: none;
}
#unified-explorer-root .crm-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
}
.ue-scroll-container::-webkit-scrollbar { width: 6px; }
.ue-scroll-container::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }


/* ═══════════════════════════════════════════════════════
   Section 13B: MANIFESTO — Editorial Palate Cleanser
   Hard cut to light bg with editorial typography.
   ALL colors hardcoded — immune to theme switching.
   ═══════════════════════════════════════════════════════ */

/* ── Light section wrapper (manifesto + FAQ + CTA) ── */
.light-section {
    background: #F5F5F0;
    position: relative;
    /* Override theme tokens for light context */
    --bg-card: #ffffff;
    --bg-secondary: #eaeae5;
    --bg-subtle: #f0f0eb;
    --border: #d6d6d0;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --shadow-heavy: rgba(0,0,0,0.08);
}
.light-section .fc-section {
    padding-top: 60px;
    padding-bottom: 80px;
}
.light-section .fc-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.light-section .fc-card-cta {
    border-color: #c0c0ba;
}
.light-section .ch-title,
.light-section .ch-sub {
    color: #1a1a1a;
}
.light-section .ch-accent {
    color: var(--accent);
}
.light-section .fc-swipe-hint {
    color: #7a7a7a;
}
.light-section .st-dot {
    background: #c0c0ba;
}
.light-section .st-dot.st-dot-active {
    background: var(--accent);
}
.light-section .st-arrow {
    border-color: #c0c0ba;
    color: #4a4a4a;
}
.light-section .st-arrow:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.manifesto {
    padding: 120px 5%;
    position: relative;
}
.manifesto-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ── Lead text ("You don't need...") ── */
.manifesto-lead {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #111111;
    margin: 0 0 1.5rem;
}

/* ── Strikethrough list ── */
.manifesto-strikes {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.manifesto-strikes li {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #999999;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}
/* Strikethrough line drawn via pseudo-element */
.manifesto-strikes li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    background: #cc0000;
    width: 0;
    transition: width 0.4s ease;
}
.manifesto-strikes li.struck {
    color: #cccccc;
}
.manifesto-strikes li.struck::after {
    width: 100%;
}

/* ── Punchline ("You need Connect Media Group.") ── */
.manifesto-punchline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #111111;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.manifesto-punchline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Accent gradient (reused) ── */
.manifesto-accent {
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Body text (right column) ── */
.manifesto-body p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333333;
    margin: 0 0 1.5rem;
}
.manifesto-bold {
    font-weight: 700;
    color: #111111 !important;
}

/* ── CTA button ── */
.manifesto-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #111111;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
}
.manifesto-cta:hover {
    background: #f97316;
    transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .manifesto { padding: 80px 5%; }
    .manifesto-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
@media (max-width: 768px) {
    .manifesto { padding: 60px 5%; }
    .manifesto-lead { font-size: clamp(1.5rem, 6vw, 2rem); }
    .manifesto-strikes li { font-size: clamp(1.1rem, 5vw, 1.5rem); }
    .manifesto-punchline { font-size: clamp(1.5rem, 6vw, 2rem); }
    .manifesto-body p { font-size: 1.05rem; }
}


/* ═══════════════════════════════════════════════════════
   Section 14: TESTIMONIALS
   (migrated from components/testimonials.html)
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) { .masonry-wrapper { column-count: 2 !important; } }
@media (max-width: 640px) { .masonry-wrapper { column-count: 1 !important; } }


/* ═══════════════════════════════════════════════════════
   Section 15: CTA STRATEGY
   (existing website.css content + migrated from components/cta_strategy.html)
   ═══════════════════════════════════════════════════════ */

.cta-section {
    position: relative;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.cta-content, .cta-header, .cta-btn {
    position: relative;
    z-index: 2;
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px var(--shadow-heavy);
}

.cta-input, .cta-select, .cta-textarea {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cta-input:focus, .cta-select:focus, .cta-textarea:focus {
    border-color: var(--accent);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.cta-input::placeholder, .cta-textarea::placeholder {
    color: var(--text-muted);
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    font-weight: 600;
    padding: 1.1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 1rem;
    width: 100%;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--accent-glow);
}

.cta-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.success-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* Cloudflare Turnstile Fix */
.cf-turnstile {
    margin-top: 0.5rem;
    border: none !important;
    outline: none !important;
}

.cf-turnstile iframe {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

@media (max-width: 640px) {
    .cta-card { padding: 1.5rem; }
    .form-grid { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════════
   Section 16: FOOTER
   (migrated from components/footer.html)
   ═══════════════════════════════════════════════════════ */

.site-footer {
    background: #000;
    padding: 5rem 5% 4rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    margin-top: auto;
    color: rgba(255,255,255,0.75);
}
.site-footer .logo {
    color: #ffffff;
}
.site-footer .logo span {
    color: var(--color-logo-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-blurb {
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    max-width: 280px;
    font-size: 0.85rem;
}

.footer-link {
    display: block;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-social {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.footer-social:hover {
    color: #ffffff;
}

.footer-input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    min-width: 0;
    transition: border-color 0.2s;
}
.footer-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.footer-input:focus {
    border-color: rgba(255,255,255,0.5);
}

.footer-subscribe-btn {
    background: #ffffff;
    color: var(--footer-bg);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.footer-subscribe-btn:hover {
    opacity: 0.9;
}

/* ── Footer Trust Bar ── */
.footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-trust-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.footer-trust-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}
.footer-trust-label {
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Review pills in footer */
.footer-review-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.footer-review-pill:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
}
.footer-review-stars {
    display: inline-flex;
    gap: 1px;
}
.footer-review-count {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 500;
}

/* Payment icons */
.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.footer-pay-icon {
    vertical-align: middle;
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.footer-pay-icon:hover {
    opacity: 1;
}

/* ICO badge */
.footer-ico {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-ico-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Footer Preferences (Theme + Language) ── */
.footer-prefs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-prefs-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-prefs-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-prefs-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.12);
}
/* Footer theme menu opens upward */
.footer-theme-menu {
    top: auto;
    bottom: 100%;
    margin-bottom: 8px;
    margin-top: 0;
}
/* Language selector */
.footer-lang-wrap {
    position: relative;
}
.footer-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.footer-lang-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.footer-lang-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}
.footer-lang-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    background: var(--footer-bg);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.4rem;
    min-width: 150px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    z-index: 10;
    max-height: 240px;
    overflow-y: auto;
}
.footer-lang-menu.show {
    display: block;
}
.footer-lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0.4rem 0.6rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.footer-lang-option:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}
.footer-lang-option.active {
    color: var(--accent);
    font-weight: 600;
}

/* ── Footer Legal ── */
.footer-legal {
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-legal-name {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}
.footer-legal p {
    line-height: 1.6;
    margin-bottom: 0.35rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .footer-blurb { max-width: none; }
    .newsletter-form {
        flex-direction: column;
    }
    .footer-trust {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-trust-divider {
        width: 60px;
        height: 1px;
    }
    .footer-trust-group {
        justify-content: center;
    }
    .footer-payment-icons {
        justify-content: center;
    }
    .footer-prefs {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-prefs-divider {
        width: 60px;
        height: 1px;
    }
    .footer-prefs-group {
        justify-content: center;
    }
    .footer-lang-menu {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* ═══════════════════════════════════════════════════════
   Section 17: MODAL / ENQUIRY
   (migrated from components/modal.html)
   ═══════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9); display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(5px);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-primary); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem;
    max-width: 420px; width: 90%; position: relative; transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease; box-shadow: 0 25px 50px -12px var(--shadow-heavy);
}

.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: color 0.2s;
}

.modal-close:hover { color: var(--text-primary); }

.modal-form { display: flex; flex-direction: column; gap: 1rem; }

.modal-form input, .modal-form textarea {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    padding: 0.8rem 1rem; font-size: 0.95rem; color: var(--text-primary); outline: none; width: 100%;
    font-family: inherit; transition: border-color 0.2s;
}

.modal-form input:focus, .modal-form textarea:focus { border-color: var(--accent); background: var(--bg-subtle); }

.modal-submit {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white; border: none; border-radius: 8px; padding: 1rem; font-size: 1rem;
    font-weight: 600; cursor: pointer; transition: transform 0.2s; margin-top: 0.5rem;
}

.modal-submit:hover { transform: translateY(-2px); }

.file-upload-wrapper {
    display: none; border: 1px dashed var(--border); border-radius: 8px; padding: 1rem;
    text-align: center; cursor: pointer; transition: border-color 0.2s;
}

.file-upload-wrapper:hover { border-color: var(--accent); }

.file-label { font-size: 0.9rem; color: var(--text-secondary); display: block; margin-bottom: 0.5rem; }

input[type="file"] { font-size: 0.8rem; color: var(--text-muted); }


/* ═══════════════════════════════════════════════════════
   Section 18: JOB APPLICATION MODAL
   (migrated from careers/job_application_modal.html)
   ═══════════════════════════════════════════════════════ */

#job-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
#job-modal-overlay.active { opacity: 1; visibility: visible; }
#job-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px var(--shadow-heavy);
}
#job-modal-overlay.active #job-modal-content { transform: scale(1) translateY(0); }
.job-form-group { margin-bottom: 1rem; }
.job-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.2s;
}
.job-input:focus { border-color: var(--accent); background: var(--bg-subtle); }
.cv-upload-box {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.01);
}
.cv-upload-box:hover { border-color: var(--accent); background: var(--bg-card); }
.job-submit-btn {
    background: rgb(0 179 106);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    width: 100%;
    margin-top: 0.5rem;
}
.job-submit-btn:hover { transform: translateY(-2px); background: rgb(0 160 95); }


/* ═══════════════════════════════════════════════════════
   Section 19: CONTACT PAGE
   (migrated from contact.html)
   ═══════════════════════════════════════════════════════ */

.contact-container {
    padding-top: 140px;
    padding-bottom: 5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-group { margin-bottom: 1.5rem; }

.contact-input, .contact-select, .contact-textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.contact-input:focus, .contact-select:focus, .contact-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-subtle);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

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

.info-stack { display: flex; flex-direction: column; gap: 2rem; }

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

.dept-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
    display: block;
}

.dept-card:hover {
    background: var(--bg-subtle);
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.dept-title { color: var(--text-primary); font-weight: 600; margin-bottom: 0.3rem; display: flex; justify-content: space-between; align-items: center; }
.dept-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.8rem; }
.dept-email { color: var(--accent); font-size: 0.9rem; font-weight: 500; }

.map-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.dark-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) contrast(90%) grayscale(20%);
}

@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .contact-card { padding: 2rem; }
}


/* ═══════════════════════════════════════════════════════
   Section 20: CAREERS PAGE
   (migrated from careers.html)
   ═══════════════════════════════════════════════════════ */

.careers-section {
    padding: 180px 5% 100px;
}

.careers-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.careers-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.role-grid {
    columns: 3;
    column-gap: 1.5rem;
}

.role-grid .role-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .role-grid { columns: 2; }
}

@media (max-width: 768px) {
    .careers-section { padding-top: 140px; }
    .role-grid { columns: 1; }
}


/* ═══════════════════════════════════════════════════════
   Section 21: LEGAL PAGES
   (migrated from legal.html, terms.html, privacy.html, modern_slavery.html)
   These pages use website-dark (default theme)
   ═══════════════════════════════════════════════════════ */

.legal-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 160px;
    padding-bottom: 100px;
    padding-left: 5%;
    padding-right: 5%;
}

.legal-container h1,
.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.legal-container h2,
.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.legal-container h3,
.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.legal-container p,
.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-container ul,
.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-container li,
.legal-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    display: block;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}


/* ═══════════════════════════════════════════════════════
   Section 22: WIDGET DISCLAIMER
   (existing website.css content)
   ═══════════════════════════════════════════════════════ */

.widget-disclaimer {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.85);
}

.widget-disclaimer-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(226, 232, 240, 0.75);
}

.widget-disclaimer a {
    color: rgba(226, 232, 240, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.widget-disclaimer a:hover { color: white; }


/* ── Promo Banner ────────────────────────────── */
.promo-banner {
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 2.5rem 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.4;
}

.promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.promo-banner-text {
    display: inline;
}

.promo-banner-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.promo-banner-cta:hover {
    opacity: 0.85;
}

.promo-banner-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0.25rem;
}

.promo-banner-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .promo-banner {
        font-size: 0.75rem;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
    }
    .promo-banner-cta {
        font-size: 0.68rem;
        padding: 0.2rem 0.65rem;
    }
}


/* ═══════════════════════════════════════════════════════
   Section 23: VALUE PROPS STRIP
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .value-props-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}


/* ═══════════════════════════════════════════════════════
   Section 24: SPLIT SECTIONS (Anchor / Orbit)
   ═══════════════════════════════════════════════════════ */

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-section.reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-section.reverse .split-visual { order: -1; }

@media (max-width: 768px) {
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .split-section.reverse .split-visual { order: 0; }

    /* Collapse all 3-col card grids to 1-col on mobile */
    #services > div[style*="grid-template-columns"],
    #agency-services > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* 2-col on tablet for card grids */
    #services > div[style*="grid-template-columns"],
    #agency-services > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* ═══════════════════════════════════════════════════════
   Section 25: FAQ ACCORDION
   ═══════════════════════════════════════════════════════ */

.faq-item {
    border-bottom: 1px solid var(--border);
}

/* SEO/AEO: content stays in DOM, only visually hidden */
.faq-item.faq-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

/* Remove default marker */
.faq-question::-webkit-details-marker { display: none; }
.faq-item summary { list-style-type: none; }

/* Chevron indicator */
.faq-question::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
    transform: rotate(-135deg);
}

.faq-answer {
    padding: 0 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── FAQ Filter Pills ── */
.faq-pills {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.faq-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-appearance: none;
    outline: none;
}
.faq-pill:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    transform: scale(1.04);
}
.faq-pill.active {
    background: var(--accent);
    border: 1px solid transparent;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 12px var(--accent-glow);
}
.faq-see-all {
    display: block;
    margin: 2rem auto 0;
    padding: 0.7rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.faq-see-all:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   BOOKEND CTA — mesh gradient finale
   ═══════════════════════════════════════════════════════ */
.bookend-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 12vh, 140px) 5%;
    background: var(--bg-primary);
}

/* WebGL mesh gradient canvas (bottom) */
#mesh-gradient-canvas-bottom {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.bookend-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.bookend-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
}

.bookend-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 2.5rem;
}

.bookend-scanner {
    max-width: 520px;
    margin: 0 auto;
}
.bookend-scanner .scanner-bar {
    background: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.bookend-scanner .scanner-bar-input {
    color: #111111;
}
.bookend-scanner .scanner-bar-input::placeholder {
    color: #999999;
}
.bookend-scanner .scanner-bar-icon svg {
    stroke: #666666;
}

.bookend-scanner-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}



/* ═══════════════════════════════════════════════════════
   Section 26: CTA PRIMARY / SECONDARY BUTTONS
   ═══════════════════════════════════════════════════════ */

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.cta-secondary:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════
   Section 27: TRUST BAR (Scrolling Logo Carousel)
   ═══════════════════════════════════════════════════════ */

.trust-bar {
    overflow: hidden;
    padding: 1.25rem 0;
    position: relative;
    margin-top: auto;
    background: var(--bg-primary);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.trust-bar-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    opacity: 0.5;
    padding-left: 2rem;
}

.trust-bar-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    will-change: transform;
    animation: trustScroll 40s linear infinite;
}

.trust-bar-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.3s;
    /* Dark theme: logos are white-on-transparent, show naturally */
    filter: brightness(0) invert(1);
}

.trust-bar-logo:hover {
    opacity: 0.85;
}


@keyframes trustScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pause on hover */
.trust-bar:hover .trust-bar-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .trust-bar-logo {
        height: 54px;
    }
    .trust-bar-track {
        gap: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-bar-track {
        animation: none;
    }
}


/* ═══════════════════════════════════════════════════════
   Section 28: SECTION DIVIDERS
   ═══════════════════════════════════════════════════════ */

.section-divider {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 20%, var(--accent-glow) 50%, var(--border) 80%, transparent);
    opacity: 0.5;
}


/* ═══════════════════════════════════════════════════════
   Section 29: BENTO GRIDS — channels, services, value props
   ═══════════════════════════════════════════════════════ */

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --- Channel bento layout --- */
.bento-channels .bento-tv       { grid-column: 1; grid-row: 1 / 3; }
.bento-channels .bento-print    { grid-column: 2; grid-row: 1; }
.bento-channels .bento-ooh      { grid-column: 3; grid-row: 1; }
.bento-channels .bento-digital  { grid-column: 2 / 4; grid-row: 2; }
.bento-channels .bento-radio    { grid-column: 1 / 3; grid-row: 3; }
.bento-channels .bento-cinema   { grid-column: 3; grid-row: 3; }

/* --- Services bento layout --- */
.bento-services .bento-perf     { grid-column: 1; grid-row: 1 / 3; }
.bento-services .bento-seo      { grid-column: 2 / 4; grid-row: 1; }
.bento-services .bento-creative { grid-column: 2; grid-row: 2; }
.bento-services .bento-web      { grid-column: 3; grid-row: 2; }
.bento-services .bento-social   { grid-column: 1; grid-row: 3; }
.bento-services .bento-content  { grid-column: 2 / 4; grid-row: 3; }

/* --- Bento Card --- */
.bento-card {
    position: relative;
    isolation: isolate;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px;
}
.bento-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb, 99, 102, 241), 0.15);
}

/* Hero cards (tall, spanning 2 rows) */
.bento-card.bento-hero { min-height: 100%; }

/* --- Gradient glass tints --- */
.bento-card[data-accent="amber"]  { background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, var(--bg-card) 60%); }
.bento-card[data-accent="purple"] { background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, var(--bg-card) 60%); }
.bento-card[data-accent="green"]  { background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, var(--bg-card) 60%); }
.bento-card[data-accent="blue"]   { background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, var(--bg-card) 60%); }
.bento-card[data-accent="pink"]   { background: linear-gradient(135deg, rgba(236,72,153,0.08) 0%, var(--bg-card) 60%); }
.bento-card[data-accent="cyan"]   { background: linear-gradient(135deg, rgba(6,182,212,0.08) 0%, var(--bg-card) 60%); }

/* --- Watermark icon --- */
.bento-watermark {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 64px; height: 64px;
    opacity: 0.05;
    pointer-events: none;
}

/* --- Card typography --- */
.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}
.bento-card.bento-hero .bento-title { font-size: 1.8rem; }

.bento-sizzle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Hover detail reveal --- */
.bento-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.75rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}
.bento-card:hover .bento-detail {
    max-height: 80px;
    opacity: 1;
}

/* --- Value Prop Infographic Cards --- */
.vp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.vp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    overflow: hidden;
}
.vp-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.vp-big-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary, #8b5cf6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.vp-card.visible .vp-big-number {
    opacity: 1;
    transform: scale(1);
}
.vp-big-number-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-decoration: line-through;
    text-decoration-color: var(--accent);
}
.vp-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.vp-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Convergence diagram */
.vp-converge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    position: relative;
}
.vp-dots-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.vp-dot-small {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.vp-card.visible .vp-dot-small {
    opacity: 0.5;
    transform: translateX(0);
}
.vp-dot-small:nth-child(1) { transition-delay: 0.1s; }
.vp-dot-small:nth-child(2) { transition-delay: 0.2s; }
.vp-dot-small:nth-child(3) { transition-delay: 0.3s; }
.vp-dot-small:nth-child(4) { transition-delay: 0.4s; }
.vp-dot-small:nth-child(5) { transition-delay: 0.5s; }
.vp-converge-lines {
    width: 80px;
    height: 60px;
    position: relative;
    margin: 0 0.5rem;
}
.vp-converge-lines svg {
    width: 100%; height: 100%;
}
.vp-converge-lines path {
    stroke: var(--text-muted);
    stroke-width: 1;
    fill: none;
    opacity: 0.3;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s ease 0.3s;
}
.vp-card.visible .vp-converge-lines path {
    stroke-dashoffset: 0;
}
.vp-dot-big {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 800;
    color: #fff;
}
.vp-card.visible .vp-dot-big {
    opacity: 1;
    transform: scale(1);
}

/* Scale bar */
.vp-scale-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.vp-scale-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary, #8b5cf6));
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}
.vp-card.visible .vp-scale-fill {
    width: 100%;
}
.vp-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Mobile expand for bento --- */
.bento-expand-btn { display: none; }

/* --- Responsive --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-channels .bento-tv,
    .bento-services .bento-perf { grid-column: 1 / 3; grid-row: auto; }
    .bento-channels .bento-digital,
    .bento-channels .bento-radio,
    .bento-services .bento-seo,
    .bento-services .bento-content { grid-column: auto; grid-row: auto; }
    .bento-channels .bento-print,
    .bento-channels .bento-ooh,
    .bento-channels .bento-cinema,
    .bento-services .bento-creative,
    .bento-services .bento-web,
    .bento-services .bento-social { grid-column: auto; grid-row: auto; }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid .bento-card {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: auto;
    }
    .bento-card::before { display: none; }
    .bento-card:hover { border-color: var(--border); box-shadow: none; }

    /* Detail always visible on mobile via tap */
    .bento-detail {
        max-height: 0;
        opacity: 0;
    }
    .bento-card.expanded .bento-detail {
        max-height: 80px;
        opacity: 1;
    }
    .bento-expand-btn {
        display: block;
        width: 100%;
        background: transparent;
        border: none;
        border-top: 1px solid var(--border);
        color: var(--text-muted);
        font-size: 0.8rem;
        padding: 0.6rem;
        cursor: pointer;
        margin-top: 1rem;
        transition: color 0.2s;
    }
    .bento-expand-btn:hover { color: var(--accent); }

    .vp-grid { grid-template-columns: 1fr; }

    .desktop-only { display: none; }
}


/* ═══════════════════════════════════════════════════════
   Section 29b: VALUE PROPS V2 — Interactive Cards
   ═══════════════════════════════════════════════════════ */

/* --- Section header --- */
.vp2-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

/* --- 2x2 Grid --- */
.vp2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* --- Card base --- */
.vp2-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    transition: all 0.15s ease-out;
}
.vp2-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 40px -10px var(--accent-glow), 0 12px 40px -16px var(--shadow-heavy);
}

/* --- Visual area (FIXED HEIGHT — no resize on hover) --- */
.vp2-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    margin: -2rem -2rem 0;
    padding: 2rem;
    background: var(--bg-subtle);
    border-radius: 16px 16px 0 0;
}

/* --- Title & text --- */
.vp2-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.25rem 0 0.5rem;
}
.vp2-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═════ Card 1: Dynamic Quote ═════ */
.vp2-quote {
    flex-direction: column;
    gap: 0.75rem;
    height: auto;
    min-height: 200px;
    overflow: visible;
}
.vp2-quote-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.15s ease-out;
}
.vp2-card:hover .vp2-quote-box {
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px -6px var(--accent-glow);
}
.vp2-quote-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
}
.vp2-quote-row:last-child {
    border-bottom: none;
}
.vp2-quote-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.vp2-quote-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.vp2-quote-value.vp2-highlight-green {
    color: var(--color-success);
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}
/* CTA button — always in flow, invisible until hover */
.vp2-quote-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    margin-top: 0.5rem;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}
.vp2-card:hover .vp2-quote-cta {
    opacity: 1;
    pointer-events: auto;
}
.vp2-quote-cta:hover {
    filter: brightness(1.15);
    transition: none;
}

/* ═════ Card 1B: Atom Logo Animation ═════ */
.vp2-atom {
    flex-direction: column;
}
.vp2-atom-svg {
    width: 60%;
    max-width: 180px;
    height: auto;
}
.vp2-atom-ring {
    fill: var(--text-muted);
    opacity: 0.12;
    transition: fill 0.4s ease, opacity 0.4s ease;
}
.vp2-card:hover .vp2-atom-ring {
    fill: var(--accent);
    opacity: 0.3;
}
.vp2-atom-nucleus {
    fill: var(--text-muted);
    opacity: 0.25;
    transition: fill 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.vp2-card:hover .vp2-atom-nucleus {
    fill: var(--accent);
    opacity: 1;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}
.vp2-electron {
    fill: var(--accent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.vp2-card:hover .vp2-electron {
    opacity: 1;
}

/* ═════ Card 2: Fan Out ═════ */
.vp2-fan {
    flex-direction: column;
}
.vp2-fan-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    color: var(--accent);
    transition: all 0.15s ease-out;
    position: absolute;
}
.vp2-card:hover .vp2-fan-stack {
    opacity: 0;
    transform: scale(0.7);
}
.vp2-fan-spread {
    display: flex;
    align-items: center;
    gap: 0;
    transition: gap 0.15s ease-out;
}
.vp2-card:hover .vp2-fan-spread {
    gap: 0.65rem;
}
.vp2-fan-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.12s ease-out, transform 0.12s ease-out;
    position: relative;
}
.vp2-card:hover .vp2-fan-icon {
    opacity: 1;
    transform: scale(1);
}
/* Stagger fan-out — tight delays */
.vp2-card:hover .vp2-fan-icon:nth-child(1) { transition-delay: 0s; }
.vp2-card:hover .vp2-fan-icon:nth-child(2) { transition-delay: 0.03s; }
.vp2-card:hover .vp2-fan-icon:nth-child(3) { transition-delay: 0.06s; }
.vp2-card:hover .vp2-fan-icon:nth-child(4) { transition-delay: 0.09s; }
.vp2-card:hover .vp2-fan-icon:nth-child(5) { transition-delay: 0.12s; }
.vp2-card:hover .vp2-fan-icon:nth-child(6) { transition-delay: 0.15s; }
/* Individual icon hover — INSTANT */
.vp2-fan-icon:hover {
    transform: scale(1.1) !important;
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
    color: var(--accent);
    background: var(--accent-soft);
    transition: none;
}
.vp2-fan-icon svg {
    width: 20px;
    height: 20px;
}
/* Tooltip */
.vp2-fan-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.1s ease;
    pointer-events: none;
}
.vp2-fan-icon:hover::after {
    opacity: 1;
}

/* ═════ Card 3: Brickwork Foundation (7-col staggered grid) ═════ */
.vp2-bricks {
    flex-direction: column;
}
.vp2-brick-wall {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
    max-width: 340px;
    transition: gap 0.15s ease-out;
}
.vp2-card:hover .vp2-brick-wall {
    gap: 6px;
}
/* Row 1: 3 bricks spanning 2 cols each (cols 1-6) */
.vp2-brick:nth-child(1) { grid-column: 1 / 3; }
.vp2-brick:nth-child(2) { grid-column: 3 / 5; }
.vp2-brick:nth-child(3) { grid-column: 5 / 7; }
/* Row 2: offset by 1 col — true half-brick stagger (cols 2-7) */
.vp2-brick:nth-child(4) { grid-column: 2 / 4; }
.vp2-brick:nth-child(5) { grid-column: 4 / 6; }
.vp2-brick:nth-child(6) { grid-column: 6 / 8; }
.vp2-brick {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color-success) 10%, var(--bg-subtle));
    border: 1px solid color-mix(in srgb, var(--color-success) 20%, var(--border));
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease-out;
    box-shadow: 0 0 14px -4px rgba(16, 185, 129, 0.25);
}
/* Labels hidden on load — appear on hover */
.vp2-brick span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-success);
    opacity: 0;
    transition: opacity 0.15s ease-out;
}
.vp2-card:hover .vp2-brick span {
    opacity: 1;
}
.vp2-card:hover .vp2-brick {
    border-color: color-mix(in srgb, var(--color-success) 40%, var(--border));
    box-shadow: 0 0 16px -4px rgba(16, 185, 129, 0.3);
}
/* Individual brick hover — INSTANT */
.vp2-brick:hover {
    background: color-mix(in srgb, var(--color-success) 20%, var(--bg-subtle));
    border-color: var(--color-success);
    box-shadow: 0 0 20px -2px rgba(16, 185, 129, 0.4);
    transform: translateY(1px);
    transition: none;
}

/* ═════ Card 4: Candelabra — "Dedicated Account Management" ═════ */
@keyframes vp2NodePulse {
    0%, 100% { box-shadow: 0 0 16px var(--accent-glow); }
    50% { box-shadow: 0 0 24px var(--accent-glow), 0 0 40px var(--accent-glow); }
}
.vp2-candelabra {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 1.25rem 1.5rem;
}
/* Request bubble — animated by JS */
.vp2-req {
    align-self: flex-end;
    padding: 6px 14px;
    border-radius: 12px 12px 4px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.vp2-req.vp2-anim-in {
    opacity: 1;
    transform: translateY(0);
}
/* AM row */
.vp2-am-row {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}
.vp2-am-avi {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1.5px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.vp2-am-avi svg { width: 14px; height: 14px; }
/* AM reply — animated by JS */
.vp2-am-reply {
    padding: 6px 12px;
    border-radius: 12px 12px 12px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.vp2-am-reply.vp2-anim-in {
    opacity: 1;
    transform: translateX(0);
}
/* Candelabra network container */
.vp2-candelabra-net {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 50px;
}
.vp2-net-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 28px);
    overflow: visible;
}
.vp2-net-path {
    fill: none;
    stroke: var(--border);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
/* Lit paths — drawn progressively by JS */
.vp2-net-lit {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    filter: drop-shadow(0 0 3px var(--accent-glow));
    transition: stroke-dashoffset 0.5s ease-out;
}
.vp2-net-lit.vp2-path-active {
    stroke-dashoffset: 0;
}
/* Expert nodes */
.vp2-experts {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
}
.vp2-expert {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    position: relative;
    transition: all 0.3s ease-out;
}
.vp2-expert svg { width: 13px; height: 13px; }
/* Expert highlight — toggled by JS */
.vp2-expert.vp2-expert-lit {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    animation: vp2NodePulse 1.5s ease-in-out infinite;
}
/* Expert name label */
.vp2-expert-name {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}
.vp2-expert.vp2-expert-lit .vp2-expert-name {
    opacity: 1;
}

/* ═════ Card 5: Client Hub — Chat → Shop → Invoice ═════ */
.vp2-hub {
    flex-direction: column;
}
.vp2-hub-device {
    position: relative;
    width: 100%;
    max-width: 220px;
    height: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.vp2-card:hover .vp2-hub-device {
    border-color: var(--accent-glow);
}
.vp2-hub-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
    opacity: 0;
    transform: translateY(6px);
}
/* Cycle: 9s total. Each screen: fade-in 0.4s, hold 2.2s, fade-out 0.4s = 3s per screen */
.vp2-hub-chat    { animation: vp2HubCycle 9s ease-in-out infinite; }
.vp2-hub-shop    { animation: vp2HubCycle 9s ease-in-out 3s infinite; }
.vp2-hub-invoice { animation: vp2HubCycle 9s ease-in-out 6s infinite; }
@keyframes vp2HubCycle {
    0%, 100% { opacity: 0; transform: translateY(6px); }
    5%       { opacity: 1; transform: translateY(0); }
    30%      { opacity: 1; transform: translateY(0); }
    35%      { opacity: 0; transform: translateY(-6px); }
}
/* Chat messages */
.vp2-hub-msg {
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 8px;
    max-width: 78%;
    line-height: 1.4;
    margin-bottom: 4px;
}
.vp2-hub-in {
    background: color-mix(in srgb, var(--text-muted) 12%, transparent);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.vp2-hub-out {
    background: var(--accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
/* Shop rows */
.vp2-hub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.6rem;
    color: var(--text-secondary);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.vp2-hub-row:last-child { border-bottom: none; }
.vp2-hub-total {
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: none;
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid var(--border);
}
/* Invoice */
.vp2-hub-invoice {
    align-items: center;
    gap: 4px;
}
.vp2-hub-inv-num {
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.vp2-hub-inv-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.vp2-hub-inv-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--color-success) 15%, transparent);
    color: var(--color-success);
}

/* ── Value Props V2 Responsive ── */
@media (max-width: 1024px) {
    .vp2-grid { gap: 1rem; }
    .vp2-card { padding: 1.5rem; }
    .vp2-visual {
        height: 180px;
        margin: -1.5rem -1.5rem 0;
        padding: 1.5rem;
    }
    .vp2-fan-icon { width: 38px; height: 38px; }
    .vp2-brick-wall { max-width: 300px; }
    .vp2-candelabra { padding: 1rem 1.25rem; }
}

@media (max-width: 768px) {
    .vp2-grid { grid-template-columns: 1fr; }
    .vp2-visual {
        height: 180px;
    }
    .vp2-card::before { display: none; }
    .vp2-header { margin-bottom: 2rem; }
    .vp2-fan-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .vp2-card,
    .vp2-quote-box,
    .vp2-quote-cta,
    .vp2-fan-stack,
    .vp2-fan-spread,
    .vp2-fan-icon,
    .vp2-brick-wall,
    .vp2-brick,
    .vp2-brick span,
    .vp2-am-reply,
    .vp2-net-lit,
    .vp2-expert-lit,
    .vp2-expert-name {
        transition: none !important;
        animation: none !important;
    }
    .vp2-fan-icon,
    .vp2-brick span,
    .vp2-am-reply,
    .vp2-expert-name {
        opacity: 1 !important;
        transform: none !important;
    }
    .vp2-atom-ring {
        fill: var(--accent) !important;
        opacity: 0.3 !important;
        transition: none !important;
    }
    .vp2-atom-nucleus {
        fill: var(--accent) !important;
        opacity: 1 !important;
        transition: none !important;
    }
    .vp2-electron {
        opacity: 1 !important;
    }
    .vp2-hub-screen {
        animation: none !important;
        transition: none !important;
    }
    .vp2-hub-chat {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ═══════════════════════════════════════════════════════
   Section 29B: CHAPTER HEADING — Left-Aligned Transition
   Asymmetric layout that breaks centered monotony.
   ═══════════════════════════════════════════════════════ */

.ch-break {
    padding: 120px 5% 30px;
}
.ch-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}

/* ── Left: headline + subtext ── */
.ch-text {
    flex: 1;
    min-width: 0;
}
.ch-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}
.ch-accent {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ch-sub {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 560px;
    margin: 0;
}



/* ── Responsive ── */
@media (max-width: 1024px) {
    .ch-break { padding: 80px 5% 20px; }
}
@media (max-width: 768px) {
    .ch-break { padding: 60px 5% 15px; }
    .ch-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
    .ch-sub { font-size: 0.95rem; }
}


/* ═══════════════════════════════════════════════════════
   Section 30: SCROLLYTELLING — Narrative Scroll Section
   ═══════════════════════════════════════════════════════ */

/* --- Section padding override (full-width carousel) --- */
.st-section {
    padding-left: 0;
    padding-right: 0;
}

/* --- Horizontal carousel container --- */
.st-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(5%, calc((100vw - var(--max-width)) / 2));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.st-carousel::-webkit-scrollbar {
    display: none;
}

/* --- Flex track (scrollable row) --- */
.st-track {
    display: flex;
    gap: 2rem;
    padding-left: max(5%, calc((100vw - var(--max-width)) / 2));
}
/* Trailing spacer — gives last card enough room to scroll into the primary snap position */
.st-track::after {
    content: '';
    flex: 0 0 calc(100vw - min(85vw, 1100px) - max(5%, calc((100vw - var(--max-width)) / 2)));
}

/* --- Individual carousel card --- */
.st-card {
    flex: 0 0 85vw;
    max-width: 1100px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    isolation: isolate;
}

/* --- Card text column (left) --- */
.st-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Card visual column (right) --- */
.st-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Step badge --- */
.st-step-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

/* --- Headline & copy --- */
.st-headline {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.st-copy {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* --- Secondary summary text --- */
.st-sub {
    color: var(--text-muted, #64748b);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* --- CTA button --- */
.st-cta {
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
    align-self: flex-start;
    width: auto;
}

/* --- Pills (legacy, kept for reference) --- */
.st-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.st-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    white-space: nowrap;
}

/* --- Mock UI glass card --- */
.st-mock {
    width: 100%;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

/* --- Window chrome bar --- */
.st-mock-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.st-mock-dots {
    display: flex;
    gap: 5px;
}
.st-mock-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.st-mock-dots span:nth-child(1) { background: #ef4444; opacity: 0.7; }
.st-mock-dots span:nth-child(2) { background: #f59e0b; opacity: 0.7; }
.st-mock-dots span:nth-child(3) { background: #10b981; opacity: 0.7; }
.st-mock-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* --- Card mock entrance animation --- */
.st-card .st-mock {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.st-card.st-in-view .st-mock {
    transform: translateY(0) scale(1);
    opacity: 1;
    border-color: var(--accent-glow);
    box-shadow: 0 0 40px -10px var(--accent-glow), 0 20px 60px -20px var(--shadow-heavy);
}

/* --- Staggered row animation --- */
.st-anim-row {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.st-card.st-in-view .st-anim-row {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--row-delay, 0) * 100ms + 300ms);
}

/* --- Navigation: arrows + dot indicators --- */
.st-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 5%;
}
.st-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.st-arrow:hover {
    background: var(--bg-subtle);
    border-color: var(--accent);
    color: var(--accent);
}
.st-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}
.st-arrow svg {
    width: 18px;
    height: 18px;
}
.st-dots {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.st-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.st-dot.st-dot-active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ── Panel 1: Quote ── */
.st-quote-body {
    padding: 1.25rem;
}
.st-quote-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.st-quote-item-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.st-quote-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.st-quote-sub {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
    margin-top: 0.15rem;
}
.st-quote-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.st-quote-retainer {
    background: var(--accent-soft);
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    margin-top: 0.25rem;
    border-bottom: none;
}
.st-quote-retainer .st-quote-item {
    color: var(--text-muted);
}
.st-price-zero {
    text-decoration: line-through;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    color: var(--accent);
    font-weight: 700;
}
.st-quote-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.st-quote-monthly {
    padding: 0.35rem 0 0.25rem;
    font-size: 0.95rem;
    color: var(--accent);
}

/* ── Panel 2: Account Manager ── */
.st-am-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.st-am-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.st-am-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.st-am-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.st-am-info strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}
.st-am-info span {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.st-am-cta {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.st-am-connector {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0;
}
.st-am-specialists {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
}
.st-am-specialist {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 0.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}
.st-am-specialist span {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.st-specialist-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--spec-color, var(--accent)) 12%, transparent);
    color: var(--spec-color, var(--accent));
}

/* ── Panel 3: Production ── */
.st-prod-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.st-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    text-align: center;
}
.st-dropzone svg {
    opacity: 0.5;
}
.st-dropzone span {
    font-size: 0.8rem;
}
.st-upload-bar {
    width: 60%;
    height: 4px;
    background: var(--bg-subtle);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}
.st-upload-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: var(--accent);
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.st-card.st-in-view .st-upload-fill {
    width: 100%;
    transition-delay: 0.6s;
}

/* Chat bubbles */
.st-chat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.st-chat-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 85%;
    color: var(--text-secondary);
}
.st-chat-them {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.st-chat-you {
    background: var(--accent-soft);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: var(--text-primary);
}
.st-chat-name {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2px;
}

/* Output deliverables */
.st-outputs {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.st-output-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.st-output-item svg {
    opacity: 0.5;
    flex-shrink: 0;
}
.st-output-item span:nth-child(2) {
    flex: 1;
}
.st-output-check {
    color: var(--color-success);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ── Panel 4: Approvals ── */
.st-approval-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.st-proof-preview {
    position: relative;
}
.st-proof-image {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    min-height: 160px;
}
.st-proof-placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.st-proof-line-thick {
    height: 14px;
    width: 65%;
    background: var(--border-hover);
    border-radius: 3px;
    margin-bottom: 4px;
}
.st-proof-line {
    height: 6px;
    width: 90%;
    background: var(--border);
    border-radius: 3px;
}
.st-proof-block {
    height: 50px;
    width: 40%;
    background: var(--accent-soft);
    border-radius: 6px;
    margin: 6px 0;
    float: right;
}
.st-revision-bubble {
    position: absolute;
    top: 12px; right: -8px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 10px;
    border-top-right-radius: 3px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 200px;
    box-shadow: 0 4px 16px var(--shadow-base);
}
.st-revision-author {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
}

/* Pipeline progress */
.st-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 0.25rem;
}
.st-pipeline-stage {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}
.st-pipeline-connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 12px;
}
.st-stage-done {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.st-connector-done {
    background: var(--accent);
}
.st-stage-active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--color-success);
    color: var(--color-success);
}
.st-connector-active {
    background: linear-gradient(90deg, var(--accent), var(--color-success));
}

/* Approve button */
.st-approve-row {
    display: flex;
    justify-content: center;
}
.st-approve-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: none;
    border-radius: 10px;
    background: var(--color-success);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: default;
    letter-spacing: 0.02em;
}
.st-card.st-in-view .st-approve-btn {
    animation: approveGlow 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* ── Carousel Responsive ── */
@media (max-width: 1024px) {
    .st-card {
        flex: 0 0 90vw;
        gap: 1.5rem;
        padding: 2rem;
    }
    .st-headline { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    .st-card {
        flex: 0 0 92vw;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .st-card-text { order: 1; }
    .st-card-visual { order: 2; }
    .st-mock::before { display: none; }
    .st-am-specialists { grid-template-columns: repeat(2, 1fr); }
    .st-arrow { width: 32px; height: 32px; }
    .st-arrow svg { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .st-anim-row {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .st-card .st-mock {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .st-upload-fill {
        width: 100% !important;
        transition: none !important;
    }
    .st-approve-btn {
        animation: none !important;
    }
    .st-carousel {
        scroll-behavior: auto;
    }
}


/* ═══════════════════════════════════════════════════════
   Featured Content Carousel
   ═══════════════════════════════════════════════════════ */
.fc-section {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

/* --- Horizontal carousel container --- */
.fc-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(5%, calc((100vw - var(--max-width)) / 2));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fc-carousel::-webkit-scrollbar {
    display: none;
}

/* --- Flex track --- */
.fc-track {
    display: flex;
    gap: 1.5rem;
    padding-left: max(5%, calc((100vw - var(--max-width)) / 2));
}
.fc-track::after {
    content: '';
    flex: 0 0 calc(100vw - min(85vw, 380px) - max(5%, calc((100vw - var(--max-width)) / 2)));
}

/* --- Blog card --- */
.fc-card {
    flex: 0 0 min(85vw, 380px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.fc-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* --- Card link (no decoration) --- */
.fc-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* --- Card image --- */
.fc-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}
.fc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.fc-card:hover .fc-card-image img {
    transform: scale(1.05);
}
.fc-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}

/* --- Card body --- */
.fc-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

/* --- Category badge --- */
.fc-category-badge {
    display: inline-block;
    width: fit-content;
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

/* --- Card title --- */
.fc-card-title {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card excerpt --- */
.fc-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card meta row --- */
.fc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.5rem;
}
.fc-read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent);
    font-weight: 600;
    transition: gap 0.2s ease;
}
.fc-card:hover .fc-read-link {
    gap: 0.5rem;
}

/* --- CTA card (5th card) --- */
.fc-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-style: dashed;
}
.fc-card-cta:hover {
    border-color: var(--accent);
}
.fc-cta-inner {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.fc-cta-icon {
    color: var(--accent);
    opacity: 0.8;
}
.fc-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.fc-cta-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}
.fc-cta-categories {
    margin-top: 0.5rem;
}
.fc-cta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}
.fc-cta-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}
.fc-cta-pills .st-pill {
    text-decoration: none;
    cursor: pointer;
}
.fc-cta-pills .st-pill:hover {
    transform: translateY(-1px);
}
.fc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #000;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}
.fc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* --- Navigation --- */
.fc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 5%;
}
.fc-dots {
    display: flex;
    gap: 0.5rem;
}

/* --- Swipe hint (mobile only, hidden by default) --- */
.fc-swipe-hint {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .fc-card {
        flex: 0 0 85vw;
    }
    .fc-card-excerpt {
        display: none;
    }
    .fc-swipe-hint {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.4rem;
        padding: 0 5% 0.75rem;
        font-size: 0.75rem;
        color: var(--text-muted);
        opacity: 0.6;
    }
    .fc-track::after {
        flex: 0 0 calc(100vw - 85vw - 5%);
    }
}


/* ═══════════════════════════════════════════════════════
   Nav Mega-Menu Dropdowns
   ═══════════════════════════════════════════════════════ */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-dropdown-trigger svg { opacity: 0.5; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); opacity: 1; }

.nav-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 30px var(--shadow-heavy);
    z-index: 1000;
}
.nav-dropdown:hover .nav-mega-menu { display: block; }

.nav-mega-item {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}
.nav-mega-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.nav-mega-all {
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav-mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        background: transparent;
    }
    .nav-dropdown:hover .nav-mega-menu { display: block; }
}


/* ═══════════════════════════════════════════════════════
   Learn Hub
   ═══════════════════════════════════════════════════════ */

.learn-hub {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 2rem 3rem;
}

.learn-hero { text-align: center; margin-bottom: 3rem; }
.learn-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent, #818cf8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.learn-hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary, #94a3b8);
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}
.learn-hero-note {
    font-size: 0.95rem;
    color: var(--text-tertiary, #64748b);
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

.learn-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.learn-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--surface-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.learn-card:hover {
    border-color: var(--accent, #818cf8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.learn-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim, rgba(129,140,248,0.1));
    border-radius: 10px;
    margin-bottom: 1rem;
    color: var(--accent, #818cf8);
}
.learn-card h2 {
    font-size: 1.25rem;
    color: var(--text-primary, #fff);
    margin: 0 0 0.5rem;
}
.learn-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.learn-card-count {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--accent, #818cf8);
    font-weight: 600;
}

.learn-latest { margin-bottom: 3rem; }
.learn-latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.learn-latest-header h2 {
    font-size: 1.3rem;
    color: var(--text-primary, #fff);
    margin: 0;
}
.learn-view-all {
    font-size: 0.85rem;
    color: var(--accent, #818cf8);
    text-decoration: none;
}
.learn-view-all:hover { text-decoration: underline; }

.learn-latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.learn-latest-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--surface-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s;
}
.learn-latest-card:hover { border-color: var(--accent, #818cf8); }
.learn-latest-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #818cf8);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.learn-latest-card h3 {
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.learn-latest-card p {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
    flex: 1;
    line-height: 1.5;
}
.learn-latest-cat {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-tertiary, #64748b);
    background: rgba(255,255,255,0.04);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.learn-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(129,140,248,0.08) 0%, rgba(99,102,241,0.04) 100%);
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 16px;
}
.learn-cta h2 {
    font-size: 1.5rem;
    color: var(--text-primary, #fff);
    margin: 0 0 1rem;
}
.learn-cta p {
    font-size: 0.95rem;
    color: var(--text-secondary, #94a3b8);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .learn-cards { grid-template-columns: 1fr; }
    .learn-latest-grid { grid-template-columns: repeat(2, 1fr); }
    .learn-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .learn-latest-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   Knowledge Base / Content Platform Styles
   ═══════════════════════════════════════════════════════ */

/* --- Layout --- */
.kb-layout {
    display: grid;
    grid-template-columns: 260px 1fr 200px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 110px 2rem 2rem;
    min-height: 80vh;
}

.kb-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
    border-right: 1px solid var(--border, rgba(255,255,255,0.08));
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.kb-sidebar::-webkit-scrollbar { width: 4px; }
.kb-sidebar::-webkit-scrollbar-track { background: transparent; }
.kb-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.kb-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.kb-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary, #fff);
    cursor: pointer;
    padding: 0.5rem;
}

.kb-main {
    max-width: 800px;
    width: 100%;
}

.kb-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.kb-toc-inner {
    padding-left: 1rem;
    border-left: 1px solid var(--border, rgba(255,255,255,0.08));
}

.kb-toc-inner h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.75rem;
}

.kb-toc-link {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.kb-toc-link:hover { color: var(--accent, #818cf8); }
.kb-toc-link.kb-toc-sub { padding-left: 0.75rem; font-size: 0.75rem; }

/* --- Sidebar Tree --- */
.kb-sidebar-tree { font-size: 0.85rem; }

/* --- Recursive sidebar tree --- */
.kb-tree-node { margin-bottom: 0.15rem; }
.kb-tree-depth-0 { margin-bottom: 0.5rem; }
.kb-tree-depth-0 + .kb-tree-depth-0 {
    border-top: 1px solid var(--border, rgba(255,255,255,0.08));
    padding-top: 0.5rem;
}

.kb-tree-node-row {
    display: flex;
    align-items: center;
}

.kb-tree-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: background 0.15s;
    flex: 1;
    min-width: 0;
}
.kb-tree-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-tree-depth-0 > .kb-tree-node-row > .kb-tree-label {
    color: var(--text-primary, #fff);
    font-weight: 600;
    font-size: 0.85rem;
}
.kb-tree-label:hover { background: var(--surface-hover, rgba(255,255,255,0.04)); color: var(--text-primary, #fff); }
.kb-tree-label.active { color: var(--accent, #818cf8); font-weight: 600; }
.kb-tree-depth-0 > .kb-tree-node-row > .kb-tree-label.active { color: var(--accent, #818cf8); }
.kb-tree-label.on-path { color: var(--text-primary, #fff); }

.kb-tree-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    color: var(--text-secondary, #94a3b8);
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.kb-tree-toggle:hover { background: var(--surface-hover, rgba(255,255,255,0.04)); color: var(--text-primary, #fff); }

.kb-tree-chevron { transition: transform 0.2s; }
.kb-tree-node.expanded > .kb-tree-node-row .kb-tree-chevron { transform: rotate(90deg); }

.kb-tree-branch {
    display: none;
    list-style: none;
    padding: 0 0 0 0.85rem;
    margin: 0;
    border-left: 1px solid var(--border, rgba(255,255,255,0.06));
    margin-left: 0.9rem;
}
.kb-tree-node.expanded > .kb-tree-branch { display: block; }

/* Page leaf nodes */
.kb-tree-page {
    display: block;
    padding: 0.25rem 0.6rem;
    color: var(--text-tertiary, #64748b);
    text-decoration: none;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kb-tree-page:hover { color: var(--text-primary, #fff); background: var(--surface-hover, rgba(255,255,255,0.04)); }
.kb-tree-page.active { color: var(--accent, #818cf8); font-weight: 600; }

/* --- Breadcrumbs --- */
.kb-breadcrumbs { margin-bottom: 1.5rem; }
.kb-breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.kb-breadcrumbs li { display: flex; align-items: center; gap: 0.25rem; }
.kb-breadcrumbs a {
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.kb-breadcrumbs a:hover { color: var(--accent, #818cf8); }
.kb-breadcrumb-current { color: var(--text-primary, #fff); font-size: 0.8rem; }
.kb-breadcrumb-sep { color: var(--text-tertiary, #475569); flex-shrink: 0; }

/* --- Index Pages --- */
.kb-index-header {
    margin-bottom: 2rem;
}
.kb-index-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 0.5rem;
}
.kb-index-header p {
    color: var(--text-secondary, #94a3b8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Search Bar --- */
.kb-search-bar { margin-bottom: 1.5rem; }
.kb-search-form {
    display: flex;
    gap: 0;
    background: var(--surface, rgba(255,255,255,0.04));
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 8px;
    overflow: hidden;
}
.kb-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    outline: none;
}
.kb-search-input::placeholder { color: var(--text-tertiary, #475569); }
.kb-search-btn {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    transition: color 0.2s;
}
.kb-search-btn:hover { color: var(--accent, #818cf8); }

/* --- Letter Nav (A-Z) --- */
.kb-letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}
.kb-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.kb-letter:hover { color: var(--text-primary, #fff); background: var(--surface-hover, rgba(255,255,255,0.04)); }
.kb-letter.active {
    color: var(--accent, #818cf8);
    border-color: var(--accent, #818cf8);
    background: rgba(129, 140, 248, 0.08);
}

/* --- Filter Chips --- */
.kb-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.kb-chip {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 20px;
    transition: all 0.2s;
}
.kb-chip:hover { color: var(--text-primary, #fff); border-color: var(--text-secondary, #94a3b8); }
.kb-chip.active {
    color: var(--accent, #818cf8);
    border-color: var(--accent, #818cf8);
    background: rgba(129, 140, 248, 0.08);
}

/* --- Badges --- */
.kb-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
    color: #fff;
}
.badge-glossary { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.badge-guide { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-service { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-blog { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.badge-media { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.badge-category { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.badge-default { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.badge-beginner { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-intermediate { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-advanced { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* --- Glossary List --- */
.kb-glossary-list { display: flex; flex-direction: column; gap: 0; }
.kb-glossary-item {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
    text-decoration: none;
    transition: background 0.15s;
}
.kb-glossary-item:hover { background: var(--surface-hover, rgba(255,255,255,0.02)); padding-left: 0.5rem; }
.kb-glossary-term {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.kb-glossary-term h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0;
}
.kb-glossary-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.5;
    margin: 0;
}

/* --- Card Grid --- */
.kb-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kb-content-card {
    display: flex;
    flex-direction: column;
    background: var(--surface, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}
.kb-content-card:hover {
    border-color: var(--accent, #818cf8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.kb-card-image { aspect-ratio: 16/9; overflow: hidden; }
.kb-card-image img { width: 100%; height: 100%; object-fit: cover; }

.kb-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.kb-card-meta { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.kb-card-category { font-size: 0.7rem; color: var(--text-tertiary, #475569); }
.kb-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.kb-card-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    flex: 1;
}
.kb-card-footer { display: flex; gap: 0.5rem; align-items: center; }
.kb-card-readtime { font-size: 0.7rem; color: var(--text-tertiary, #475569); }

/* --- Service Grid --- */
.kb-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.kb-service-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--surface, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.kb-service-card:hover { border-color: var(--accent, #818cf8); transform: translateY(-2px); }
.kb-service-card h3 { font-size: 1.1rem; color: var(--text-primary, #fff); margin: 0.75rem 0 0.5rem; }
.kb-service-card p { font-size: 0.85rem; color: var(--text-secondary, #94a3b8); margin: 0 0 0.75rem; line-height: 1.5; flex: 1; }
.kb-service-icon { font-size: 1.5rem; }
.kb-service-children { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.kb-service-child-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(129, 140, 248, 0.1);
    color: var(--text-secondary, #94a3b8);
    border-radius: 12px;
}

/* --- Article Detail --- */
.kb-article-header { margin-bottom: 2rem; }
.kb-article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.3;
}
.kb-article-lead {
    font-size: 1.05rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
    margin: 0;
}
.kb-article-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.kb-readtime { font-size: 0.75rem; color: var(--text-tertiary, #475569); }

.kb-blog-byline {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    margin-top: 0.75rem;
}

.kb-featured-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.kb-featured-image img { width: 100%; display: block; }

.kb-article-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary, #e2e8f0);
}
.kb-article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 2rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}
.kb-article-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 1.5rem 0 0.5rem;
}
.kb-article-body p { margin: 0 0 1rem; }
.kb-article-body ul, .kb-article-body ol { margin: 0 0 1rem 1.5rem; }
.kb-article-body li { margin-bottom: 0.35rem; }
.kb-article-body a { color: var(--accent, #818cf8); text-decoration: underline; }
.kb-article-body code {
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}
.kb-article-body pre {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0 0 1rem;
}
.kb-article-body blockquote {
    border-left: 3px solid var(--accent, #818cf8);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    color: var(--text-secondary, #94a3b8);
    font-style: italic;
}
.kb-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.kb-article-body th, .kb-article-body td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    text-align: left;
}
.kb-article-body th {
    background: rgba(255,255,255,0.04);
    font-weight: 600;
}

/* --- Glossary-specific --- */
.kb-aliases {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface, rgba(255,255,255,0.03));
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
}
.kb-alias-pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent, #818cf8);
    border-radius: 12px;
    font-size: 0.8rem;
}

.glossary-link {
    color: var(--accent, #818cf8);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent, #818cf8);
    cursor: help;
}
.glossary-link:hover { border-bottom-style: solid; }

/* --- FAQ Accordion --- */
.kb-faq-section { margin-top: 2rem; }
.kb-faq-section h2 { margin-bottom: 1rem; }
.kb-faq-item {
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.kb-faq-item summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary, #fff);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.kb-faq-item summary::-webkit-details-marker { display: none; }
.kb-faq-item summary::before {
    content: '+';
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary, #94a3b8);
    transition: transform 0.2s;
}
.kb-faq-item[open] summary::before { content: '\2212'; }
.kb-faq-answer {
    padding: 0 1rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
}

/* --- Service Detail --- */
.kb-service-hero { text-align: center; padding: 2rem 0; }
.kb-hero-cta { margin-top: 1.5rem; display: inline-block; }

.kb-service-benefits { margin: 2rem 0; }
.kb-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.kb-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-primary, #e2e8f0);
}
.kb-benefits-list li svg { flex-shrink: 0; margin-top: 0.15rem; }

.kb-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.kb-feature-card {
    padding: 1.25rem;
    background: var(--surface, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 8px;
}
.kb-feature-card h3 { font-size: 0.95rem; color: var(--text-primary, #fff); margin: 0 0 0.5rem; }
.kb-feature-card p { font-size: 0.8rem; color: var(--text-secondary, #94a3b8); margin: 0; line-height: 1.5; }

.kb-child-services { margin-top: 2rem; }
.kb-service-child-card {
    display: block;
    padding: 1rem;
    background: var(--surface, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.kb-service-child-card:hover { border-color: var(--accent, #818cf8); }
.kb-service-child-card h3 { font-size: 0.9rem; color: var(--text-primary, #fff); margin: 0 0 0.25rem; }
.kb-service-child-card p { font-size: 0.8rem; color: var(--text-secondary, #94a3b8); margin: 0; }

/* --- Media Brand --- */
.kb-media-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kb-media-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--surface, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.kb-media-card:hover { border-color: var(--accent, #818cf8); transform: translateY(-2px); }
.kb-media-logo { width: 80px; height: 80px; margin-bottom: 0.75rem; }
.kb-media-logo img { width: 100%; height: 100%; object-fit: contain; }
.kb-media-card h3 { font-size: 0.9rem; color: var(--text-primary, #fff); margin: 0 0 0.25rem; }
.kb-media-card p { font-size: 0.75rem; color: var(--text-secondary, #94a3b8); margin: 0; }

.kb-media-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--surface, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 8px;
}
.kb-stat-label { display: block; font-size: 0.7rem; color: var(--text-tertiary, #475569); text-transform: uppercase; letter-spacing: 0.05em; }
.kb-stat-value { display: block; font-size: 0.9rem; color: var(--text-primary, #fff); font-weight: 600; }

/* --- Category Index --- */
.kb-category-header { margin-bottom: 2rem; }
.kb-category-header h1 { font-size: 2rem; font-weight: 700; color: var(--text-primary, #fff); margin: 0 0 0.75rem; }
.kb-category-description { font-size: 0.9rem; color: var(--text-secondary, #94a3b8); line-height: 1.7; }

.kb-subcategories { margin-bottom: 2rem; }
.kb-subcategories h2 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-primary, #fff); }
.kb-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.kb-subcategory-card {
    padding: 1rem;
    background: var(--surface, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.kb-subcategory-card:hover { border-color: var(--accent, #818cf8); }
.kb-subcategory-card h3 { font-size: 0.9rem; color: var(--text-primary, #fff); margin: 0 0 0.25rem; }
.kb-subcategory-card p { font-size: 0.8rem; color: var(--text-secondary, #94a3b8); margin: 0; }

/* --- Search Results --- */
.kb-search-results-list { display: flex; flex-direction: column; gap: 0; }
.kb-search-result {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
    text-decoration: none;
    transition: padding 0.15s;
}
.kb-search-result:hover { padding-left: 0.5rem; }
.kb-search-result-meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.25rem; }
.kb-search-result-path { font-size: 0.7rem; color: var(--text-tertiary, #475569); }
.kb-search-result h3 { font-size: 1rem; color: var(--text-primary, #fff); margin: 0 0 0.25rem; }
.kb-search-result p { font-size: 0.85rem; color: var(--text-secondary, #94a3b8); margin: 0; }

/* --- CTA Banner --- */
.kb-cta-banner {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.05));
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 12px;
}
.kb-cta-banner h3 { font-size: 1.3rem; color: var(--text-primary, #fff); margin: 0 0 0.5rem; }
.kb-cta-banner p { color: var(--text-secondary, #94a3b8); margin: 0 0 1.5rem; }
.kb-cta-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--accent, #818cf8);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}
.kb-cta-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* --- Funnel Cross-Link Section --- */
.kb-funnel-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.kb-funnel-section h2 {
    font-size: 1.2rem;
    color: var(--text-primary, #fff);
    margin: 0 0 1.25rem;
}
.kb-funnel-section .kb-card-grid {
    gap: 1rem;
}
/* Service CTA variant in guide pages */
.kb-cta-banner + .kb-related { margin-top: 2rem; }

/* --- Pagination --- */
.kb-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
}
.kb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 6px;
    transition: all 0.15s;
}
.kb-page-btn:hover { color: var(--text-primary, #fff); border-color: var(--accent, #818cf8); }
.kb-page-current {
    color: #fff;
    background: var(--accent, #818cf8);
    border-color: var(--accent, #818cf8);
}

/* --- Related Content --- */
.kb-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border, rgba(255,255,255,0.06)); }
.kb-related h3 { font-size: 1.2rem; color: var(--text-primary, #fff); margin: 0 0 1rem; }
.kb-related-group h4 { font-size: 0.8rem; color: var(--text-secondary, #94a3b8); text-transform: uppercase; margin: 0.75rem 0 0.5rem; }
.kb-related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.kb-related-card {
    display: block;
    padding: 0.75rem;
    background: var(--surface, rgba(255,255,255,0.03));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s;
}
.kb-related-card:hover { border-color: var(--accent, #818cf8); }
.kb-related-title { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-primary, #fff); margin-top: 0.35rem; }
.kb-related-excerpt { font-size: 0.75rem; color: var(--text-secondary, #94a3b8); margin: 0.25rem 0 0; }

/* --- Empty State --- */
.kb-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary, #94a3b8);
    grid-column: 1 / -1;
}
.kb-empty-state a { color: var(--accent, #818cf8); }

/* Not Found */
.kb-not-found {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.kb-not-found h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary, #e2e8f0);
}
.kb-not-found p {
    color: var(--text-secondary, #94a3b8);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}
.kb-not-found-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.kb-cta-secondary {
    background: transparent !important;
    border: 1px solid var(--border, #334155) !important;
    color: var(--text-primary, #e2e8f0) !important;
}
.kb-cta-secondary:hover {
    border-color: var(--accent, #818cf8) !important;
    color: var(--accent, #818cf8) !important;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .kb-layout {
        grid-template-columns: 1fr;
        padding-left: 5%;
        padding-right: 5%;
    }
    .kb-main { max-width: none; }
    .kb-toc {
        display: block;
        order: -1;
        position: static;
        max-height: none;
        overflow: visible;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
        padding-bottom: 1rem;
    }
    .kb-toc-inner {
        border-left: none;
        padding-left: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
    }
    .kb-toc-inner h4 { width: 100%; margin-bottom: 0.25rem; }
    .kb-toc-link { padding: 0.15rem 0; }
    .kb-toc-link.kb-toc-sub { padding-left: 0; }
    .kb-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100%;
        max-height: none;
        background: var(--surface-bg, #0f172a);
        z-index: 1001;
        padding: 1.5rem 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s;
        border-right: 1px solid var(--border, rgba(255,255,255,0.08));
        overflow-y: auto;
    }
    .kb-sidebar.open { transform: translateX(0); }
    .kb-sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .kb-sidebar-backdrop.open { display: block; }
    .kb-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        position: fixed;
        top: 80px;
        left: 5%;
        z-index: 999;
        background: var(--surface-bg, #0f172a);
        border: 1px solid var(--border, rgba(255,255,255,0.08));
        border-radius: 8px;
        padding: 0.5rem 0.75rem;
        color: var(--text-primary, #fff);
        font-size: 0.8rem;
        cursor: pointer;
    }
}

@media (max-width: 640px) {
    .kb-index-header h1 { font-size: 1.5rem; }
    .kb-article-header h1 { font-size: 1.5rem; }
    .kb-card-grid { grid-template-columns: 1fr; }
    .kb-service-grid { grid-template-columns: 1fr; }
    .kb-letter-nav { gap: 0.15rem; }
    .kb-letter { width: 28px; height: 28px; font-size: 0.65rem; }
}


/* ═══════════════════════════════════════════════════════
   SERVICE / CHANNEL LANDING PAGES (.sp-*)
   ═══════════════════════════════════════════════════════ */

/* --- Hero --- */
.sp-hero {
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 140px 5% 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.sp-hero-inner {
    max-width: 600px;
    text-align: left;
}
.sp-hero .huly-headline {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}
.sp-hero-title {
    margin-bottom: 1.5rem;
}
.sp-hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}
.sp-hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Eye Candy (Multiplier Flow) --- */
.sp-eye-candy {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 4rem;
    overflow: hidden;
    position: relative;
}

/* Multiplier Flow Diagram */
.sp-mux {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 960px;
    width: 100%;
    position: relative;
}
.sp-mux-in {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.sp-mux-out {
    display: flex;
    align-items: center;
}
.sp-mux-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(12px);
    animation: spMuxIn 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.15s);
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sp-mux-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.sp-mux-card svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex-shrink: 0;
}
.sp-mux-card strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.sp-mux-card .sp-mux-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}
@keyframes spMuxIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Hub */
.sp-mux-hub {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 40px var(--accent-glow);
    animation: spHubPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
@keyframes spHubPulse {
    0%, 100% { box-shadow: 0 0 40px var(--accent-glow); }
    50% { box-shadow: 0 0 60px var(--accent-glow), 0 0 80px var(--accent-glow); }
}

/* Connector lines */
.sp-mux-line {
    flex: 0 0 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
    opacity: 0;
    animation: spLineGrow 0.4s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.15s);
}
.sp-mux-line.line-out {
    background: linear-gradient(90deg, var(--accent), transparent);
}
@keyframes spLineGrow {
    to { opacity: 0.4; }
}

/* Output tree */
.sp-mux-tree {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    padding-left: 40px;
}
.sp-mux-tree::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent 5%, var(--accent) 20%, var(--accent) 80%, transparent 95%);
    opacity: 0.25;
}
.sp-mux-branch {
    position: relative;
    opacity: 0;
    transform: translateX(-8px);
    animation: spBranchIn 0.4s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.15s);
}
.sp-mux-branch::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--accent);
    opacity: 0.25;
}
@keyframes spBranchIn {
    to { opacity: 1; transform: translateX(0); }
}
.sp-mux-branch .sp-mux-card {
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
}
.sp-mux-branch .sp-mux-card span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Relief: Checks & Crosses --- */
.sp-relief-section {
    padding: 5rem 2rem;
}
.sp-relief-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.sp-relief-col h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.sp-relief-col h3 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.sp-relief-handles h3 svg { color: #10b981; }
.sp-relief-avoids h3 svg { color: #6b7280; }
.sp-relief-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1rem 1.2rem 1rem 2.8rem;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sp-relief-item:hover,
.sp-relief-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow, rgba(99,102,241,0.08));
}
/* Checkmark for "what we handle" items */
.sp-relief-handles .sp-relief-item::before {
    content: '\2713';
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    color: #10b981;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}
/* No marker for "what you avoid" items — subtle dash */
.sp-relief-avoids .sp-relief-item {
    padding-left: 2.8rem;
}
.sp-relief-avoids .sp-relief-item::before {
    content: '\2014';
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    color: #6b7280;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1;
}
.sp-relief-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}
.sp-relief-item h4::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.5;
}
.sp-relief-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.2s ease;
}
.sp-relief-item:hover p,
.sp-relief-item.active p {
    max-height: 80px;
    opacity: 1;
    margin-top: 0.3rem;
}
.sp-relief-item:hover h4::after,
.sp-relief-item.active h4::after {
    transform: rotate(-135deg);
    opacity: 0.8;
}
.sp-relief-avoids .sp-relief-item h4 {
    color: var(--text-secondary);
}
.sp-relief-avoids .sp-relief-item p {
    color: var(--text-muted);
    opacity: 0.7;
}

/* --- Capabilities Pills --- */
.sp-caps-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}
.sp-caps-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.sp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.5rem;
}
.sp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    cursor: default;
}
.sp-pill:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-2px);
}
.sp-pill svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}
.sp-pill:hover svg { opacity: 1; }

/* --- FAQ Accordion --- */
.sp-faq-section {
    padding: 5rem 2rem;
}
.sp-faq-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.sp-faq {
    margin-top: 2.5rem;
    text-align: left;
}
.sp-faq details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.sp-faq details[open] {
    border-color: var(--accent);
}
.sp-faq summary {
    padding: 1.15rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.sp-faq details[open] summary::after {
    content: '\2212';
    color: var(--accent);
}
.sp-faq details > p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* --- Hard Close CTA --- */
.sp-close {
    padding: 6rem 2rem;
    text-align: center;
}
.sp-close-inner {
    max-width: 600px;
    margin: 0 auto;
}
.sp-close-inner .huly-headline {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1.25rem;
}
.sp-close-inner p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.cta-lg {
    padding: 1rem 2.75rem;
    font-size: 1.05rem;
}

/* --- Router Pages (kept) --- */
.sp-router-hero {
    padding: 140px 2rem 3rem;
    text-align: center;
}
.sp-router-hero .sp-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.sp-router-hero .sp-hero-sub {
    margin-left: auto;
    margin-right: auto;
}
.sp-router-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 4rem;
}
.sp-router-grid .bento-grid {
    margin-top: 0;
}
a.bento-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
a.bento-card:hover {
    border-color: var(--accent);
}
a.bento-card .bento-title,
a.bento-card .bento-sizzle,
a.bento-card .bento-detail {
    color: inherit;
}

/* Router final CTA reuse */
.sp-final-cta {
    padding: 6rem 2rem;
    text-align: center;
}
.sp-final-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}
.sp-final-cta-inner .huly-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}
.sp-final-cta-inner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.sp-final-cta .sp-hero-cta {
    justify-content: center;
}

/* --- Responsive: Landing Pages --- */
@media (max-width: 768px) {
    .sp-hero { grid-template-columns: 1fr; min-height: 50vh; padding-top: 120px; text-align: left; }
    .sp-hero-inner { text-align: left; max-width: 100%; }
    .sp-hero-sub { margin-left: 0; margin-right: 0; font-size: 0.9rem; line-height: 1.6; }
    .sp-hero-cta { justify-content: flex-start; }
    .sp-hero-graphic { max-width: 360px; margin: 0 auto; }
    .sp-hero-title { font-size: clamp(2rem, 6vw, 3rem); }
    .sp-eye-candy { padding: 2rem 1rem; }
    .sp-mux { display: flex; flex-direction: column; gap: 0.5rem; }
    .sp-mux-in, .sp-mux-out { flex-direction: column; justify-content: center; }
    .sp-mux-line { width: 2px; height: 30px; flex: 0 0 30px; background: linear-gradient(180deg, transparent, var(--accent)); }
    .sp-mux-line.line-out { background: linear-gradient(180deg, var(--accent), transparent); }
    .sp-mux-tree { padding-left: 0; padding-top: 0.5rem; gap: 0.5rem; }
    .sp-mux-tree::before { display: none; }
    .sp-mux-branch::before { display: none; }
    .sp-mux-hub { width: 64px; height: 64px; font-size: 0.7rem; }
    .sp-relief-inner { grid-template-columns: 1fr; gap: 2rem; }
    .sp-pills { gap: 0.5rem; }
    .sp-pill { padding: 0.55rem 1rem; font-size: 0.8rem; }
    .sp-close { padding: 4rem 2rem; }
    .sp-router-hero { padding-top: 120px; }
}


/* ══════════════════════════════════════════════════════════════
   VARIANT A: DEEP DIVE SECTIONS
   ══════════════════════════════════════════════════════════════ */

/* --- Sound Familiar? --- */
.sp-familiar-section {
    padding: var(--section-padding) 5%;
}
.sp-familiar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.sp-familiar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}
.sp-familiar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sp-familiar-card:hover {
    border-color: var(--border);
}
.sp-familiar-card h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.sp-familiar-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- How It Works: Process Steps --- */
.sp-process-section {
    padding: var(--section-padding) 5%;
}
.sp-process-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.sp-process-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2.5rem;
}
.sp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}
.sp-step-number,
.sp-step .sp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb, 99, 102, 241), 0.12);
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.sp-step h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.sp-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
.sp-step-arrow {
    display: none;
}
/* Chevron arrows removed — clean circles only */

/* --- Capability Breakdown Cards --- */
.sp-capability-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.sp-cap-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    transition: border-color 0.2s;
}
.sp-cap-card:hover,
.sp-cap-card.active {
    border-color: var(--accent);
}
.sp-cap-card h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}
.sp-cap-card h4::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.5;
}
.sp-cap-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
.sp-cap-details {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.2s ease;
}
.sp-cap-card:hover .sp-cap-details,
.sp-cap-card.active .sp-cap-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
}
.sp-cap-card:hover h4::after,
.sp-cap-card.active h4::after {
    transform: rotate(-135deg);
    opacity: 0.8;
}
.sp-cap-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.sp-cap-details li svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.7;
}


/* ══════════════════════════════════════════════════════════════
   VARIANT B: PROCESS SECTIONS
   ══════════════════════════════════════════════════════════════ */

/* --- The Usual Headache --- */
.sp-headache-section {
    padding: var(--section-padding) 5%;
    text-align: center;
}
.sp-headache-inner {
    max-width: 700px;
    margin: 0 auto;
}
.sp-headache-inner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 1.5rem;
}

/* --- Timeline: Brief to Execution (animated progress bar) --- */
.sp-timeline-section {
    padding: var(--section-padding) 5%;
}
.sp-timeline-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.sp-timeline {
    display: flex;
    flex-direction: row;
    position: relative;
    gap: 0;
    margin-top: 2.5rem;
}
/* Track behind the nodes */
.sp-timeline-track {
    position: absolute;
    top: 22px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    z-index: 0;
}
.sp-timeline-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.6s ease;
}
.sp-timeline-step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}
/* Node circle */
.sp-timeline-step .sp-step-num,
.sp-timeline-step .sp-timeline-num,
.sp-timeline-step .sp-timeline-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    transition: all 0.4s ease;
}
.sp-timeline-step.active .sp-step-num,
.sp-timeline-step.active .sp-timeline-num,
.sp-timeline-step.active .sp-timeline-number {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--accent-rgb, 99, 102, 241), 0.4);
}
.sp-timeline-step h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.35;
    transition: opacity 0.4s ease, font-weight 0.3s ease;
}
.sp-timeline-step.active h4 {
    opacity: 1;
    font-weight: 700;
}
.sp-timeline-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}
.sp-timeline-step.active p {
    opacity: 1;
}

/* --- Capabilities Grid --- */
.sp-cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.sp-cap-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}
.sp-cap-grid-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-cap-grid-icon svg {
    width: 24px;
    height: 24px;
}
.sp-cap-grid-item h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.sp-cap-grid-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   VARIANT C: SPOTLIGHT SECTIONS
   ══════════════════════════════════════════════════════════════ */

/* --- Spotlight Hero Subtitle --- */
.sp-hero-sub--spotlight {
    color: var(--accent);
    font-weight: 500;
}

/* --- What This Means For You --- */
.sp-benefits-section {
    padding: var(--section-padding) 5%;
}
.sp-benefits-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.sp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    text-align: left;
}
.sp-benefit {
    padding: 2rem;
    border-left: 3px solid var(--accent);
}
.sp-benefit h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.sp-benefit p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* --- How We Work: Full-Width Strip --- */
.sp-how-strip {
    width: 100%;
    background: var(--bg-tertiary);
    padding: 4rem 5%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.sp-how-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.sp-how-steps {
    display: flex;
    flex-direction: row;
    max-width: var(--max-width);
    margin: 2.5rem auto 0;
    justify-content: space-between;
    gap: 2rem;
}
.sp-how-step {
    flex: 1;
    text-align: center;
}
.sp-how-step-number,
.sp-how-step .sp-how-num,
.sp-how-step .sp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb, 99, 102, 241), 0.12);
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.sp-how-step h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.sp-how-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Accordion Capabilities --- */
.sp-accordion-section {
    padding: var(--section-padding) 5%;
}
.sp-accordion-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.sp-accordion-list {
    margin-top: 2.5rem;
    text-align: left;
}
.sp-accordion-item {
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.sp-accordion-item summary {
    padding: 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.sp-accordion-item summary::-webkit-details-marker {
    display: none;
}
.sp-accordion-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.sp-accordion-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent);
}
.sp-accordion-item p {
    padding: 0 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE: VARIANT A / B / C
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Variant A */
    .sp-familiar-grid {
        grid-template-columns: 1fr;
    }
    .sp-process-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .sp-step + .sp-step::before {
        display: none;
    }
    .sp-capability-cards {
        grid-template-columns: 1fr;
    }

    /* Variant B */
    .sp-timeline {
        flex-direction: column;
    }
    .sp-timeline-step::after {
        display: none;
    }
    .sp-timeline-track {
        display: none;
    }
    .sp-timeline-step {
        padding: 1rem 0;
    }
    .sp-timeline-step h4,
    .sp-timeline-step p {
        opacity: 1;
    }
    .sp-timeline-step .sp-step-num {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }
    .sp-cap-grid {
        grid-template-columns: 1fr;
    }

    /* Variant C */
    .sp-benefits-grid {
        grid-template-columns: 1fr;
    }
    .sp-how-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    .sp-how-strip {
        padding: 3rem 5%;
    }
}


/* ══════════════════════════════════════════════════════════════
   HERO ANIMATION MOCK-UPS (.ha-*)
   Browser-chrome mock-ups with staggered row animations
   ══════════════════════════════════════════════════════════════ */

/* --- Mock container --- */
.ha-mock {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}
.ha-active .ha-mock {
    transform: translateY(0) scale(1);
    opacity: 1;
    border-color: var(--accent-glow);
    box-shadow: 0 0 40px -10px var(--accent-glow),
                0 20px 60px -20px var(--shadow-heavy);
}

/* --- Window chrome bar --- */
.ha-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}
.ha-dots {
    display: none;
}
.ha-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* --- Mock body --- */
.ha-body {
    padding: 1.5rem;
}

/* --- Staggered row animation --- */
.ha-row {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.35s ease,
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ha-active .ha-row {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--row-delay, 0) * 100ms + 400ms);
}

/* --- Data row (label + value) --- */
.ha-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.ha-data-row:last-child {
    border-bottom: none;
}
.ha-label {
    color: var(--text-secondary);
}
.ha-value {
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* --- Status badges --- */
.ha-badge {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.ha-badge--green  { background: rgba(16,185,129,0.15); color: #10b981; }
.ha-badge--amber  { background: rgba(245,158,11,0.15); color: #f59e0b; }
.ha-badge--blue   { background: rgba(59,130,246,0.15); color: #3b82f6; }
.ha-badge--purple { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.ha-badge--pink   { background: rgba(236,72,153,0.15); color: #ec4899; }
.ha-badge--red    { background: rgba(239,68,68,0.15);  color: #ef4444; }
.ha-badge--cyan   { background: rgba(6,182,212,0.15);  color: #06b6d4; }

/* --- Progress bar --- */
.ha-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-subtle);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}
.ha-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
    width: 0;
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Section label --- */
.ha-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}
.ha-body > .ha-section-label:first-child {
    margin-top: 0;
}

/* --- Document wireframe lines --- */
.ha-doc-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ha-doc-line {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

/* --- Deploy pipeline --- */
.ha-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
}
.ha-pip-stage {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-muted);
    white-space: nowrap;
}
.ha-pip-conn {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 12px;
}
.ha-pip-done {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.ha-pip-conn-done {
    background: var(--accent);
}
.ha-pip-active {
    background: rgba(16,185,129,0.15);
    border-color: var(--color-success, #10b981);
    color: var(--color-success, #10b981);
}

/* --- Social post preview --- */
.ha-post-preview {
    margin-bottom: 0.5rem;
}
.ha-post-img {
    height: 80px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(139,92,246,0.12));
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.ha-post-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* --- Creative layer stack --- */
.ha-layer-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 0.5rem;
}

/* --- Audio waveform --- */
.ha-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
    margin-bottom: 0.25rem;
}
.ha-waveform span {
    width: 4px;
    border-radius: 2px;
    background: var(--accent);
    height: 4px;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ha-active .ha-waveform span {
    height: var(--bar-h);
    transition-delay: calc(var(--bar-i, 0) * 60ms + 500ms);
}

/* --- Publication wireframe --- */
.ha-pub-wireframe {
    margin-bottom: 0.5rem;
}
.ha-pub-headline-block {
    height: 14px;
    width: 65%;
    background: var(--border-hover, var(--border));
    border-radius: 3px;
    margin-bottom: 8px;
}
.ha-pub-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ha-pub-img-block {
    height: 50px;
    background: var(--accent-soft);
    border-radius: 6px;
}

/* --- OOH map area --- */
.ha-map-area {
    position: relative;
    height: 70px;
    background: var(--bg-subtle);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}
.ha-map-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: haPulse 2s ease-in-out infinite;
}
.ha-map-dot:nth-child(2) { animation-delay: 0.4s; }
.ha-map-dot:nth-child(3) { animation-delay: 0.8s; }
.ha-map-dot:nth-child(4) { animation-delay: 1.2s; }
.ha-map-dot:nth-child(5) { animation-delay: 1.6s; }
@keyframes haPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb, 99,102,241), 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb, 99,102,241), 0); }
}

/* --- Cinema screen --- */
.ha-cinema-screen {
    width: 100%;
    height: 50px;
    background: var(--bg-subtle);
    border-radius: 4px 4px 0 0;
    clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.ha-screen-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-soft), rgba(139,92,246,0.08));
    opacity: 0;
    transition: opacity 0.8s ease;
}
.ha-active .ha-screen-glow {
    opacity: 1;
    transition-delay: 0.5s;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .ha-mock {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .ha-row {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .ha-progress-fill {
        transition: none !important;
    }
    .ha-waveform span {
        height: var(--bar-h) !important;
        transition: none !important;
    }
    .ha-map-dot {
        animation: none !important;
    }
    .ha-screen-glow {
        opacity: 1 !important;
        transition: none !important;
    }
}

/* --- Hero mock-ups mobile --- */
@media (max-width: 768px) {
    .ha-mock {
        max-width: 340px;
        transform: none;
        opacity: 1;
    }
    .ha-active .ha-mock {
        box-shadow: 0 0 20px -10px var(--accent-glow);
    }
    .ha-row {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .ha-waveform span {
        height: var(--bar-h);
        transition: none;
    }
}


/* ═══════════════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE + LAYOUT + UX
   Round 1: Kill animations, blur, glow. Keep ONLY heroBlink.
   Round 2: Full-screen nav, hero spacing, scanner header, text-align, footer.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ──────────────────────────────────────────────────────────
       ROUND 1: Performance kills (unchanged)
       ────────────────────────────────────────────────────────── */

    /* Kill glow pseudo-elements (conic gradient + blur) */
    .device-glow-wrapper::before,
    .device-glow-wrapper::after,
    #hero-widget-main .inventory-glow-wrapper::before,
    #hero-widget-main .inventory-glow-wrapper::after,
    .explorer-showcase::before,
    .explorer-showcase::after {
        display: none !important;
    }

    /* Kill infinite CSS animations */
    .device-glow-wrapper.device-loaded {
        animation: none !important;
        opacity: 1;
    }
    .status-dot-live {
        animation: none !important;
        box-shadow: none;
    }
    .scanner-bar-btn { animation: none !important; }
    .skeleton,
    .card-loading .mini-card-head { animation: none !important; }
    .idle-shimmer::before { display: none !important; }
    .hero-scroll-indicator { animation: none !important; }
    .trust-bar-track { animation: none !important; }
    .vp2-expert.vp2-expert-lit { animation: none !important; }
    .st-card.st-in-view .st-approve-btn { animation: none !important; }
    .sp-mux-hub { animation: none !important; }
    .ha-map-dot { animation: none !important; }
    .terminal-blink-cursor,
    .typing-cursor { animation: none !important; }
    .frame-form-cursor { animation: none !important; }

    /* Kill backdrop-filter (solid bg fallback) */
    .nav.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: var(--bg-primary) !important;
    }
    .sp-mux-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .sp-pill {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Static gradient fallback (replaces WebGL) — with scanner bloom */
    .hero-v1 {
        background:
            radial-gradient(ellipse 120% 25% at 50% 88%, color-mix(in srgb, var(--accent) 35%, transparent) 0%, transparent 70%),
            radial-gradient(ellipse 90% 20% at 50% 92%, color-mix(in srgb, var(--accent-secondary) 25%, transparent) 0%, transparent 60%),
            radial-gradient(ellipse 80% 60% at 20% 30%, var(--accent-soft) 0%, transparent 70%),
            var(--bg-primary);
    }
    .bookend-cta {
        background:
            radial-gradient(ellipse 80% 60% at 20% 30%, var(--accent-soft) 0%, transparent 70%),
            radial-gradient(ellipse 60% 50% at 80% 70%, color-mix(in srgb, var(--accent-secondary) 15%, transparent) 0%, transparent 70%),
            var(--bg-primary);
    }

    /* VP2: permanent reveal (no hover needed) */
    .vp2-quote-cta {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .vp2-fan-stack { opacity: 0 !important; }
    .vp2-fan-icon {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    .vp2-fan-spread { gap: 0.5rem; }
    .vp2-atom-ring {
        fill: var(--accent) !important;
        opacity: 0.3 !important;
    }
    .vp2-atom-nucleus {
        fill: var(--accent) !important;
        opacity: 1 !important;
    }
    .vp2-electron {
        opacity: 1 !important;
    }
    .vp2-hub-device {
        border-color: var(--accent-glow) !important;
    }
    .vp2-brick span { opacity: 1 !important; }
    .vp2-brick-wall { gap: 4px; }

    /* Touch targets: 44px minimum */
    .st-arrow { min-width: 44px; min-height: 44px; }
    .st-dot { min-width: 44px; min-height: 44px; }


    /* ──────────────────────────────────────────────────────────
       ROUND 2: Full-screen mobile menu
       ────────────────────────────────────────────────────────── */

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 9999;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: color-mix(in srgb, var(--bg-primary) 90%, transparent);
        overflow-y: auto;
        flex-direction: column;
        padding: 1.5rem 5%;
    }
    .mobile-menu-overlay.active {
        display: flex;
    }

    /* Top bar: logo + X */
    .mobile-menu-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-shrink: 0;
    }
    .mobile-menu-x {
        background: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-primary);
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .mobile-menu-x:hover {
        background: var(--bg-hover);
    }

    /* Accordion nav items */
    .mobile-nav-items {
        flex: 1;
    }
    .mobile-nav-group {
        border-bottom: 1px solid var(--border);
    }
    .mobile-nav-trigger {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
    }
    .mobile-nav-chevron {
        transition: transform 0.3s ease;
        opacity: 0.5;
    }
    .mobile-nav-trigger.mobile-nav-open .mobile-nav-chevron {
        transform: rotate(90deg);
        opacity: 1;
    }
    .mobile-nav-children {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .mobile-nav-trigger.mobile-nav-open + .mobile-nav-children {
        max-height: 500px;
    }
    .mobile-nav-children a {
        display: block;
        padding: 0.6rem 0 0.6rem 1.25rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.95rem;
        border-left: 2px solid var(--border);
        transition: color 0.15s, border-color 0.15s;
    }
    .mobile-nav-children a:hover,
    .mobile-nav-children a:active {
        color: var(--text-primary);
        border-left-color: var(--accent);
    }
    .mobile-nav-children a.mobile-nav-all {
        color: var(--accent);
        font-weight: 600;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }

    /* Stacked utilities */
    .mobile-nav-utils {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        flex-shrink: 0;
    }
    .mobile-nav-utils .client-hub-btn.mobile-full-width {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }
    .mobile-theme-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: center;
        padding: 0.5rem 0;
    }
    .mobile-theme-label {
        font-size: 0.8rem;
        color: var(--text-secondary);
        font-weight: 500;
        margin-right: 0.25rem;
    }
    .mobile-theme-dot {
        background: var(--bg-subtle);
        border: 1px solid var(--border);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-secondary);
        transition: all 0.2s;
    }
    .mobile-theme-dot:hover,
    .mobile-theme-dot:active {
        background: var(--bg-hover);
        border-color: var(--accent);
        color: var(--text-primary);
    }

    /* Close text at bottom */
    .mobile-menu-close-text {
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 0.95rem;
        cursor: pointer;
        padding: 2rem 0 1rem;
        text-align: center;
        flex-shrink: 0;
        font-family: inherit;
    }
    .mobile-menu-close-text span {
        text-decoration: underline;
        text-underline-offset: 4px;
    }
    .mobile-menu-close-text:hover span {
        color: var(--text-primary);
    }


    /* Nav: match gap between lang+hamburger to edge padding (5% = 5vw) */
    .nav-right { gap: 5vw; }
    .nav-toggle { margin-left: 0; }

    /* ──────────────────────────────────────────────────────────
       ROUND 2: Hero spacing (compact for above-fold scanner)
       ────────────────────────────────────────────────────────── */

    .hero-v1 {
        padding-left: 0;
        padding-right: 0;
        padding-top: 80px;
        padding-bottom: 1rem;
    }
    .hero-v1-layout {
        padding-left: 0;
        padding-right: 0;
        gap: 1rem;
    }
    .hero-v1-layout > div:first-child {
        padding-left: 5%;
        padding-right: 5%;
    }
    .huly-headline {
        font-size: 40px;
        margin-bottom: 0.5rem !important;
    }
    .section-tag { margin-bottom: 0.25rem; margin-top: 5px; }
    .hero-v1-layout > div:first-child p {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
        margin-top: 5px !important;
    }
    .hero-review-pills {
        margin-top: 0;
        margin-bottom: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        /* Kill fade-in rise effect — only scanner should animate on load */
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }


    /* ──────────────────────────────────────────────────────────
       ROUND 2: Brand Radar — full-width, condensed header
       ────────────────────────────────────────────────────────── */

    .hero-v1-layout > :last-child {
        margin: 0;
        width: 100%;
        position: relative;
    }
    .hero-v1-layout > :last-child::before {
        content: '';
        position: absolute;
        top: -210px;
        left: -15%;
        right: -15%;
        height: 375px;
        background: radial-gradient(ellipse 120% 100% at 50% 100%, var(--accent-glow) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }
    .preview-v1 {
        height: auto;
        min-height: auto;
        overflow: hidden;
    }
    .device-glow-wrapper {
        position: relative;
        width: 100%;
        max-width: 100vw;
        border-radius: 22px;
        overflow: hidden;
    }
    .device-glow-wrapper::before,
    .device-glow-wrapper::after {
        display: none;
    }
    .device-desktop {
        border-radius: 22px;
        box-shadow: 0 -8px 40px var(--accent-glow);
        border: 1px solid rgba(255,255,255,0.1);
        overflow: hidden;
        background: var(--bg-secondary);
    }

    /* Scanner header: single condensed line */
    .browser-top {
        display: flex !important;
        padding: 8px 12px;
    }
    .browser-top-left { display: none !important; }
    .browser-top-status { width: 100%; }
    .browser-top-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.75rem;
    }

    .mini-summary { display: none; }
    .mini-left-col { display: none; }
    .mini-bento {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .mini-opportunity {
        aspect-ratio: 4/3;
        min-height: 180px;
        overflow: hidden;
    }
    .browser-content {
        height: auto;
        min-height: auto;
        overflow: hidden;
    }
    .browser-content::after { display: none; }
    .scanner-bar-area {
        padding: 10px;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .scanner-bar-label {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    .scanner-bar-label svg {
        display: none;
    }
    .scanner-bar {
        max-width: 100%;
        box-sizing: border-box;
    }
    .scanner-bar-input {
        min-width: 0;
        flex: 1;
        font-size: 16px;
        padding: 0.6rem 0.4rem;
    }
    .scanner-bar-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    .scanner-bar-icon {
        padding: 0 0 0 6px;
    }
    .scanner-bar-icon svg {
        width: 14px;
        height: 14px;
    }
    .browser-top-right {
        font-size: 0.65rem;
        overflow: hidden;
    }
    .free-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .mini-audit {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    .opp-media-name,
    .opp-desc,
    .opp-media-type {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* ──────────────────────────────────────────────────────────
       ROUND 2: All section headings left-aligned
       ────────────────────────────────────────────────────────── */

    .section-header,
    .vp2-header {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    .section-title,
    .section-desc {
        text-align: left;
    }

    /* Service/channel sections: left-align on mobile */
    .sp-familiar-inner,
    .sp-process-inner,
    .sp-headache-section,
    .sp-headache-inner,
    .sp-faq-inner,
    .sp-caps-inner,
    .sp-timeline-inner {
        text-align: left;
    }
    .sp-headache-inner p {
        font-size: 0.9rem;
        line-height: 1.6;
    }


    /* ──────────────────────────────────────────────────────────
       ROUND 3: VP2 heading — match chapter heading sizing
       ────────────────────────────────────────────────────────── */

    .vp2-header .section-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }
    .vp2-header .section-desc {
        font-size: 0.9rem;
    }

    /* See More Reviews — left align */
    #review-load-more-container {
        text-align: left !important;
    }

    /* FAQ pills — kill browser focus outline on tap */
    .faq-pill:focus,
    .faq-pill:focus-visible {
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* ──────────────────────────────────────────────────────────
       ROUND 3: Overflow prevention
       ────────────────────────────────────────────────────────── */

    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    /* Testimonials review pills: left-align on mobile */
    .section-header > div[style] {
        justify-content: flex-start !important;
    }

    /* FAQ pills left-justified */
    .faq-pills {
        justify-content: flex-start;
    }


    /* ──────────────────────────────────────────────────────────
       ROUND 3: Scrollytelling — full-width cards, no bleed
       ────────────────────────────────────────────────────────── */

    .st-carousel {
        scroll-padding-left: 5%;
    }
    .st-track {
        padding-left: 5%;
        padding-right: 5%;
        gap: 1rem;
    }
    .st-track::after {
        flex: 0 0 5%;
    }
    .st-card {
        flex: 0 0 calc(100vw - 10%);
        padding: 1.25rem;
        border-radius: 14px;
    }
    .st-card-visual {
        max-height: 250px;
        overflow: hidden;
    }
    .st-card .st-mock {
        max-height: 240px;
        overflow: hidden;
    }
    .st-copy { font-size: 0.95rem; }
    .st-sub { font-size: 0.8rem; margin-bottom: 1rem; }
    .st-cta { padding: 0.6rem 1.5rem; font-size: 0.85rem; }
    .st-pills { display: none; }
    .st-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        padding: 0.75rem;
        color: var(--text-muted);
        font-size: 0.8rem;
    }


    /* ──────────────────────────────────────────────────────────
       ROUND 2: Footer left-aligned
       ────────────────────────────────────────────────────────── */

    .footer-grid { text-align: left; }
    .footer-trust { align-items: flex-start; }
    .footer-trust-group { justify-content: flex-start; }
    .footer-payment-icons { justify-content: flex-start; }
    .footer-prefs { align-items: flex-start; }
    .footer-prefs-group { justify-content: flex-start; }
    .footer-legal { text-align: left; }

    /* Phase 2: Legal pages */
    .legal-container {
        padding-top: 100px;
        padding-bottom: 3rem;
    }
    .legal-container h1, .legal-content h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .legal-container h2, .legal-content h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }
    .legal-container h3, .legal-content h3 {
        font-size: 1rem;
    }

    /* Phase 3: Contact page */
    .contact-container {
        padding-top: 100px;
        padding-bottom: 3rem;
    }
    .contact-card {
        padding: 1.5rem;
    }
    .map-wrapper {
        height: 220px;
        border-radius: 16px;
    }
    .info-stack h2 {
        font-size: 1.4rem !important;
    }
    .info-stack a[href^="tel"] {
        font-size: 1rem !important;
    }

    /* Phase 4: Old service detail page */
    .old-service-detail {
        padding: 1rem !important;
        padding-top: 100px !important;
    }
    .old-service-detail > div:first-child {
        text-align: left !important;
        padding: 1.5rem 0 !important;
    }
    .old-service-detail > div:first-child h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    }
    .old-service-detail h2 {
        font-size: 1.5rem !important;
        text-align: left !important;
    }
    .old-service-detail div[style*="minmax(250px"],
    .old-service-detail div[style*="minmax(300px"] {
        grid-template-columns: 1fr !important;
    }
    .old-service-detail div[style*="padding: 2.5rem"] {
        padding: 1.25rem !important;
    }
    .old-service-detail div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    /* Phase 5: Old glossary/guide pages */
    .old-glossary-list, .old-glossary-detail,
    .old-guides-list, .old-guides-detail {
        padding: 1rem !important;
        padding-top: 100px !important;
    }
    .old-glossary-list h1, .old-guides-list h1,
    .old-glossary-detail h1, .old-guides-detail h1 {
        font-size: 1.8rem !important;
        text-align: left !important;
    }
    .old-glossary-list div[style*="grid-template-columns: 1fr auto"],
    .old-guides-list div[style*="grid-template-columns: 1fr auto"] {
        grid-template-columns: 1fr !important;
    }
    .old-guides-list div[style*="minmax(350px"] {
        grid-template-columns: 1fr !important;
    }
    .old-glossary-detail article[style*="padding: 2.5rem"],
    .old-guides-detail article[style*="padding: 2.5rem"] {
        padding: 1.25rem !important;
    }
    .old-glossary-detail div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Phase 6: KB table overflow */
    .kb-article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ──────────────────────────────────────────────────────────
       ROUND 4: Mobile responsive fixes (7 items)
       ────────────────────────────────────────────────────────── */

    /* Fix 1: (removed — featured content is now a carousel) */

    /* Fix 2: Content area aligned with nav/footer (5%) */
    .kb-layout {
        padding-left: 5%;
        padding-right: 5%;
    }
    .old-glossary-list, .old-glossary-detail,
    .old-guides-list, .old-guides-detail {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    /* Fix 4: Section titles — match ch-title sizing on mobile */
    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        font-weight: 700;
        line-height: 1.15;
    }

    /* Fix 5: Hide hero graphics on service/channel pages */
    .sp-hero-graphic {
        display: none;
    }

    /* Fix 6: Footer — theme + language same row, remove borders */
    .footer-prefs {
        flex-direction: row;
        flex-wrap: wrap;
        border-top: none;
    }
    .footer-trust {
        border-bottom: none;
    }
    .footer-prefs-divider {
        display: none;
    }

    /* Fix 7: Section tags left-aligned globally */
    .section-tag {
        text-align: left;
    }
}

/* 769-900px: hamburger visible but mobile menu styles are in the 768px block.
   Bridge the gap so the overlay works in this range too. */
@media (min-width: 769px) and (max-width: 900px) {
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 9999;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: color-mix(in srgb, var(--bg-primary) 90%, transparent);
        overflow-y: auto;
        flex-direction: column;
        padding: 1.5rem 5%;
    }
    .mobile-menu-overlay.active {
        display: flex;
    }
    .mobile-menu-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-shrink: 0;
    }
    .mobile-menu-x {
        background: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-primary);
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .mobile-menu-x:hover {
        background: var(--bg-hover);
    }
    .mobile-nav-items {
        flex: 1;
    }
    .mobile-nav-group {
        border-bottom: 1px solid var(--border);
    }
    .mobile-nav-trigger {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
    }
    .mobile-nav-chevron {
        transition: transform 0.3s ease;
        opacity: 0.5;
    }
    .mobile-nav-trigger.mobile-nav-open .mobile-nav-chevron {
        transform: rotate(90deg);
        opacity: 1;
    }
    .mobile-nav-children {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .mobile-nav-trigger.mobile-nav-open + .mobile-nav-children {
        max-height: 500px;
    }
    .mobile-nav-children a {
        display: block;
        padding: 0.6rem 0 0.6rem 1.25rem;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 0.95rem;
        border-left: 2px solid var(--border);
        transition: color 0.15s, border-color 0.15s;
    }
    .mobile-nav-children a:hover,
    .mobile-nav-children a:active {
        color: var(--text-primary);
        border-left-color: var(--accent);
    }
    .mobile-nav-children a.mobile-nav-all {
        color: var(--accent);
        font-weight: 600;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }
    .mobile-nav-utils {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        flex-shrink: 0;
    }
    .mobile-nav-utils .client-hub-btn.mobile-full-width {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }
    .mobile-theme-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        justify-content: center;
        padding: 0.5rem 0;
    }
    .mobile-theme-label {
        font-size: 0.8rem;
        color: var(--text-secondary);
        font-weight: 500;
        margin-right: 0.25rem;
    }
    .mobile-theme-dot {
        background: var(--bg-subtle);
        border: 1px solid var(--border);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-secondary);
        transition: all 0.2s;
    }
    .mobile-theme-dot:hover,
    .mobile-theme-dot:active {
        background: var(--bg-hover);
        border-color: var(--accent);
        color: var(--text-primary);
    }
    .mobile-menu-close-text {
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 0.95rem;
        cursor: pointer;
        padding: 2rem 0 1rem;
        text-align: center;
        flex-shrink: 0;
        font-family: inherit;
    }
    .mobile-menu-close-text span {
        text-decoration: underline;
        text-underline-offset: 4px;
    }
    .mobile-menu-close-text:hover span {
        color: var(--text-primary);
    }
}

/* Desktop: hide mobile overlay + swipe hint */
@media (min-width: 901px) {
    .mobile-menu-overlay { display: none; }
    .st-swipe-hint { display: none; }
}


