/**
 * OpenHousePad (OH Pad) — Master Design System Stylesheet
 * Native Apple HIG Aesthetic • Unified Dark & Light Mode • Fully Responsive
 * Target Market: US Real Estate Agents & Brokerages
 */

/* ==========================================================================
   1. Design Tokens & Themes
   ========================================================================== */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

    /* Light Theme (Default - Apple HIG Premium Slate & High Contrast) */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-alt-section: #f1f5f9;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-highlight: rgba(14, 165, 233, 0.4);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --accent: #0284c7; /* Sky / Ocean Blue */
    --accent-hover: #0369a1;
    --accent-soft: rgba(2, 132, 199, 0.08);
    --accent-border: rgba(2, 132, 199, 0.25);
    --accent-glow: rgba(2, 132, 199, 0.2);

    --emerald: #059669;
    --emerald-soft: rgba(5, 150, 105, 0.08);
    --emerald-border: rgba(5, 150, 105, 0.25);

    --amber: #d97706;
    --amber-soft: rgba(217, 119, 6, 0.08);
    --amber-border: rgba(217, 119, 6, 0.25);

    --pill-bg: #eff6ff;
    --pill-text: #0284c7;
    --pill-border: #bfdbfe;
    --pill-dot: #0284c7;

    --nav-bg: rgba(255, 255, 255, 0.88);
    --nav-border: #e2e8f0;

    --btn-primary-bg: #0f172a;
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #1e293b;

    --btn-secondary-bg: #ffffff;
    --btn-secondary-text: #0f172a;
    --btn-secondary-border: #cbd5e1;
    --btn-secondary-hover: #f8fafc;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 14px -2px rgba(15, 23, 42, 0.05);
    --shadow-card-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.12);

    /* Aliases */
    --bg: var(--bg-body);
    --card-bg: var(--bg-card);
    --card-border: var(--border-subtle);
    --text-main: var(--text-primary);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-body: #070d18;
    --bg-surface: #0f192d;
    --bg-card: #131f38;
    --bg-card-hover: #172645;
    --bg-subtle: #0d1527;
    --bg-alt-section: #0a1120;
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --border-highlight: rgba(56, 189, 248, 0.35);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #070d18;

    --accent: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --accent-border: rgba(56, 189, 248, 0.3);
    --accent-glow: rgba(56, 189, 248, 0.25);

    --emerald: #34d399;
    --emerald-soft: rgba(52, 211, 153, 0.12);
    --emerald-border: rgba(52, 211, 153, 0.3);

    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, 0.12);
    --amber-border: rgba(251, 191, 36, 0.3);

    --pill-bg: rgba(56, 189, 248, 0.1);
    --pill-text: #38bdf8;
    --pill-border: rgba(56, 189, 248, 0.28);
    --pill-dot: #38bdf8;

    --nav-bg: rgba(7, 13, 24, 0.85);
    --nav-border: rgba(255, 255, 255, 0.08);

    --btn-primary-bg: #f8fafc;
    --btn-primary-text: #070d18;
    --btn-primary-hover: #ffffff;

    --btn-secondary-bg: rgba(255, 255, 255, 0.06);
    --btn-secondary-text: #f8fafc;
    --btn-secondary-border: rgba(255, 255, 255, 0.14);
    --btn-secondary-hover: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.55);

    /* Aliases */
    --bg: var(--bg-body);
    --card-bg: var(--bg-card);
    --card-border: var(--border-subtle);
    --text-main: var(--text-primary);
}

/* ==========================================================================
   2. Base & Typography Resets
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient Glow Header */
.ambient-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(52, 211, 153, 0.05) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    white-space: nowrap !important;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    flex-shrink: 0;
}

.logo span {
    white-space: nowrap !important;
}

.logo-badge {
    font-size: 0.70rem;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid var(--accent-border);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap !important;
    line-height: 1.1;
    margin-left: 2px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 22px);
    flex-shrink: 1;
}

.nav-desktop a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.89rem;
    font-weight: 600;
    transition: color 0.15s ease, background-color 0.15s ease;
    white-space: nowrap !important;
    padding: 6px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.nav-desktop a.active {
    color: var(--accent);
    font-weight: 700;
}

.nav-link-b2b,
.nav-link-eco {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap !important;
}

.badge-b2b,
.badge-eco {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap !important;
    line-height: 1;
}

.badge-eco {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .badge-eco {
    background: rgba(52, 211, 153, 0.14);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
}

.moon-icon { display: block; }
.sun-icon { display: none; }

[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 2px;
    gap: 2px;
    user-select: none;
    vertical-align: middle;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text) !important;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-nav {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text) !important;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    white-space: nowrap !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-nav:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

/* Mobile Menu Button */
.btn-mobile-menu {
    display: none;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-mobile-menu:hover {
    border-color: var(--accent);
}

.btn-mobile-menu svg {
    width: 20px;
    height: 20px;
}

.btn-mobile-menu .icon-close { display: none; }
.btn-mobile-menu .icon-menu { display: block; }

.btn-mobile-menu[aria-expanded="true"] .icon-close { display: block; }
.btn-mobile-menu[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1040px) {
    .btn-mobile-menu {
        display: inline-flex;
    }

    .nav-desktop {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 20px 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        pointer-events: none;
        z-index: 999;
    }

    .nav-desktop.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-desktop a {
        font-size: 1rem;
        font-weight: 600;
        padding: 12px 14px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--text-primary);
    }

    .nav-desktop a:hover,
    .nav-desktop a:active {
        background: var(--bg-subtle);
    }

    .nav-desktop a.active {
        background: var(--accent-soft);
        color: var(--accent);
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 10px 16px;
        gap: 8px;
    }
    .logo span {
        font-size: 1.05rem;
    }
    .logo-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .btn-nav {
        padding: 6px 12px;
        font-size: 0.80rem;
    }
    .lang-btn {
        padding: 3px 7px;
        font-size: 0.72rem;
    }
    .theme-toggle,
    .btn-mobile-menu {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    padding: 70px 24px 50px;
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pill-bg);
    color: var(--pill-text);
    border: 1px solid var(--pill-border);
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.pill-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--pill-dot);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--pill-dot);
}

.hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 840px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 15px 32px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
    padding: 15px 28px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary-lg:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
}

.hero-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-badges-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   5. Interactive Dual-Device Showcase (iPad + iPhone)
   ========================================================================== */
.showcase-container {
    max-width: 1140px;
    margin: 40px auto 70px;
    padding: 0 20px;
}

.dual-device-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.dual-device-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 920px) {
    .dual-device-grid {
        grid-template-columns: 1fr;
    }
}

/* Device Shells */
.mockup-device-col {
    display: flex;
    flex-direction: column;
}

.device-label-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: var(--bg-subtle);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.device-label-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-badge-role {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.role-guest {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.role-agent {
    background: var(--emerald-soft);
    color: var(--emerald);
    border: 1px solid var(--emerald-border);
}

/* ==========================================================================
   Real Device Hardware Enclosures & Interactive Screen Switcher
   ========================================================== */

/* Screen Selector Tabs */
.screen-selector-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: flex-start;
}

.screen-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    user-select: none;
}

.screen-tab .tab-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.screen-tab:hover {
    color: var(--text-primary);
    border-color: var(--accent-border);
    transform: translateY(-1px);
}

.screen-tab.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.screen-tab.active .tab-step {
    background: var(--accent);
    color: #ffffff;
}

/* iPad Hardware Enclosure */
.ipad-hardware-frame {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    background: #090e1a;
    border-radius: 34px;
    padding: 16px 14px 18px 14px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* iPad Top Camera Indicator */
.ipad-hardware-frame::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ipad-screen-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 900 / 1200;
    border-radius: 20px;
    overflow: hidden;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* iPhone Hardware Enclosure */
.iphone-hardware-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    background: #070b14;
    border-radius: 46px;
    padding: 12px 10px 14px 10px;
    border: 2.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* iPhone Dynamic Island Pill */
.iphone-hardware-frame::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 50%;
    transform: translateX(-50%);
    width: 74px;
    height: 18px;
    background: #000000;
    border-radius: 12px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.iphone-screen-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 552 / 1200;
    border-radius: 36px;
    overflow: hidden;
    background: #020617;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Common Screenshot Switching */
.device-screenshot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.985);
    display: block;
}

.device-screenshot.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    position: relative;
}

.device-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Screen Captions */
.device-screen-caption {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.caption-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    white-space: nowrap;
    flex-shrink: 0;
}

/* App Screenshots Gallery Grid */
.app-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}

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

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

.app-gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--shadow-card);
}

.app-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-border);
}

.app-gallery-img-wrap {
    width: 100%;
    aspect-ratio: 552 / 1200;
    border-radius: 14px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.app-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-gallery-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.app-gallery-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
}


/* ==========================================================================
   6. The 10-Second Intel Flow (Core USP Breakdown)
   ========================================================================== */
.section-wrapper {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background-color: var(--bg-alt-section);
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-eyebrow {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 4-Step Timeline */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

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

.timeline-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-step-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.step-number {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.step-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.step-highlight-tag {
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   7. Feature Matrix & Core Capabilities
   ========================================================================== */
.features-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon-box svg {
    width: 24px;
    height: 24px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   8. Privacy by Design & CRM Export
   ========================================================================== */
.split-hero-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 860px) {
    .split-hero-2col {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow-card);
}

.check-list {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.check-list li svg {
    width: 20px;
    height: 20px;
    color: var(--emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   9. Pricing Section ($15/mo or $99/yr)
   ========================================================================== */
.pricing-section {
    padding: 80px 24px;
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

/* Monthly / Annual Toggle Switch */
.pricing-toggle-wrap {
    display: inline-flex;
    align-items: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 4px;
    margin-bottom: 40px;
}

.pricing-toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.pricing-toggle-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.save-badge {
    background: var(--emerald-soft);
    color: var(--emerald);
    border: 1px solid var(--emerald-border);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 6px;
}

.pricing-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-card), 0 0 0 1px var(--accent);
}

.featured-pill {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.tier-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tier-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    min-height: 44px;
}

.tier-price-row {
    margin: 24px 0 20px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-currency {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-amount {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-pricing {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    margin-bottom: 28px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-pricing-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-pricing-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-pricing-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
}

.btn-pricing-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
}

.pricing-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features-list li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features-list li svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================================
   10. FAQ Accordions
   ========================================================================== */
.faq-section {
    padding: 80px 24px;
    max-width: 860px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 22px;
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ==========================================================================
   11. Call to Action Banner
   ========================================================================== */
.cta-banner {
    max-width: 1140px;
    margin: 60px auto 90px;
    padding: 60px 32px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-body);
    padding: 60px 24px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 860px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   14. "It Is Not About Software. It Is About Information." Contrast Component
   ========================================================================== */
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 40px auto 20px;
    max-width: 1100px;
}

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

.contrast-card {
    border-radius: 20px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-card);
}

.contrast-card-blind {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .contrast-card-blind {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.35);
}

.contrast-card-intel {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    box-shadow: 0 0 24px rgba(2, 132, 199, 0.15);
}

[data-theme="dark"] .contrast-card-intel {
    background: rgba(2, 132, 199, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.18);
}

.contrast-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 9999px;
    align-self: flex-start;
    margin-bottom: 16px;
}

.contrast-badge-blind {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.contrast-badge-intel {
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.contrast-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contrast-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contrast-dialogue {
    background: var(--bg-subtle);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-subtle);
}

.dialogue-line {
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 10px;
}

.agent-line {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.buyer-line {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .buyer-line {
    color: #f87171;
}

.dialogue-intel-preview {
    background: #0b1329;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 4px;
}

.intel-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.intel-tag-unrep {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.5);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
}

.intel-tag-preapp {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.intel-preview-body {
    font-size: 0.88rem;
    color: #e2e8f0;
}

.intel-preview-body strong {
    color: #ffffff;
}

.agent-line-intel {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--accent-border);
}

.buyer-line-intel {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .buyer-line-intel {
    color: #34d399;
}

.speaker-tag {
    font-weight: 800;
    margin-right: 4px;
}

.contrast-outcome {
    margin-top: auto;
    font-size: 0.88rem;
    line-height: 1.55;
    padding: 14px 16px;
    border-radius: 12px;
}

.blind-outcome {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--text-secondary);
}

.blind-outcome strong {
    color: #dc2626;
}

[data-theme="dark"] .blind-outcome strong {
    color: #f87171;
}

.intel-outcome {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--text-secondary);
}

.intel-outcome strong {
    color: var(--emerald);
}

/* ==========================================================================
   15. WalkReport-Style Interactive Calculator & Slider Engine
   ========================================================================== */
.calc-wrapper {
    margin: 40px auto 48px;
    max-width: 960px;
}

.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .calc-card {
        padding: 24px 18px;
    }
}

.calc-header {
    text-align: center;
    margin-bottom: 30px;
}

.calc-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 9999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    margin-bottom: 12px;
}

.calc-header h3 {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.calc-header p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.slider-section {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 24px;
    text-align: center;
}

.slider-display-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.agent-number-badge {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    font-feature-settings: "tnum";
}

.agent-number-label {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.calc-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 6px;
    background: var(--border-strong);
    outline: none;
    margin: 14px 0 12px;
    cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 3px solid #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.18);
}

.slider-milestones {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 4px;
}

/* High-Impact Dynamic Savings Banner */
.calc-savings-banner {
    margin: 20px 0 28px;
    padding: 18px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.22) 100%);
    border: 2px solid var(--emerald);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-savings-banner.solo-mode {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(3, 105, 161, 0.2) 100%);
    border-color: var(--accent);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.15);
}

.calc-savings-banner.breakeven-mode {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.12) 0%, rgba(180, 83, 9, 0.2) 100%);
    border-color: var(--amber);
    box-shadow: 0 4px 18px rgba(217, 119, 6, 0.15);
}

@media (max-width: 768px) {
    .calc-savings-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
}

.calc-savings-banner-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--emerald);
    color: #ffffff;
    white-space: nowrap;
}

.calc-savings-banner.solo-mode .calc-savings-banner-badge {
    background: var(--accent);
}

.calc-savings-banner.breakeven-mode .calc-savings-banner-badge {
    background: var(--amber);
}

.calc-savings-banner-content {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .calc-savings-banner-content {
        justify-content: center;
        gap: 6px;
    }
}

.calc-savings-big-text {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--emerald);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.calc-savings-banner.solo-mode .calc-savings-big-text {
    color: var(--accent);
}

.calc-savings-banner.breakeven-mode .calc-savings-big-text {
    color: var(--amber);
}

.calc-savings-sub-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Comparison Grid (Retail vs. Firm) */
.calc-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .calc-comparison-grid {
        grid-template-columns: 1fr;
    }
}

.calc-box {
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.calc-retail-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.calc-firm-box {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
}

.calc-box-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 9999px;
    align-self: flex-start;
    margin-bottom: 12px;
}

.badge-gray {
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.badge-featured-blue {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.calc-box-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.calc-main-num {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
}

.calc-main-num span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.calc-sub-num {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.calc-pill-metric {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--emerald-soft);
    color: var(--emerald);
    border: 1px solid var(--emerald-border);
    margin-bottom: 18px;
    align-self: flex-start;
}

.calc-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.calc-bullet-list li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-calc-action {
    margin-top: 22px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-calc-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Radical Honesty Advice Callout */
.calc-advice-container {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.calc-advice-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.calc-advice-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.calc-advice-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 8px;
}

.advice-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
}

.advice-action-link:hover {
    text-decoration: underline;
}

/* Head-to-Head Comparison Table */
.comp-table-wrap {
    overflow-x: auto;
    margin: 32px 0 16px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.comp-table th,
.comp-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.comp-table th {
    background: var(--bg-subtle);
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comp-table tbody tr:hover {
    background: var(--bg-subtle);
}

.th-highlight {
    background: rgba(2, 132, 199, 0.08) !important;
    color: var(--accent) !important;
}

.td-highlight {
    background: rgba(2, 132, 199, 0.04);
    font-weight: 700;
    color: var(--text-primary);
}

/* All Plans Include Box */
.all-plans-include-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    margin: 36px auto;
    max-width: 960px;
}

.all-plans-include-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.all-plans-include-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 860px) {
    .all-plans-include-grid {
        grid-template-columns: 1fr;
    }
}

.all-plans-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.all-plans-item svg {
    color: var(--emerald);
    flex-shrink: 0;
}

/* Prominent Original Price & Save Badges on Big Cards */
.original-price-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.original-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 700;
}

.save-badge-prominent {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.main-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.main-price-val {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
    font-feature-settings: "tnum";
}

.main-price-period {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.effective-rate-sub {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    margin: 8px 0 20px;
}

/* ==========================================================================
   16. Brokerage Team Provisioning Modal & Invite Banner
   ========================================================================== */
.team-invite-banner {
    background: var(--bg-card);
    border: 2px solid var(--border-highlight);
    border-radius: 24px;
    padding: 36px 40px;
    margin: 40px auto 20px;
    max-width: 960px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

@media (max-width: 768px) {
    .team-invite-banner {
        flex-direction: column;
        text-align: center;
        padding: 26px 20px;
    }
}

.team-invite-content h3 {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 8px 0 6px;
}

.team-invite-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.btn-launch-modal {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 26px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--accent-glow);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.btn-launch-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px var(--accent-glow);
}

/* Modal Overlay Backdrop */
.team-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 13, 24, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.team-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.team-modal-dialog {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.7), 0 0 40px var(--accent-glow);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.team-modal-backdrop.open .team-modal-dialog {
    transform: scale(1);
}

.team-modal-header {
    padding: 22px 28px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.team-modal-title-area h3 {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 6px 0 3px;
}

.team-modal-title-area p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.team-modal-close {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.team-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}

.team-modal-body {
    overflow-y: auto;
    padding: 28px;
    max-height: calc(90vh - 90px);
}

.team-modal-body form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-form-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.team-form-input,
.team-form-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-form-input:focus,
.team-form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.team-form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .team-form-grid-2col {
        grid-template-columns: 1fr;
    }
}

.team-code-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-code-badge {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.team-form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.btn-modal-submit {
    width: 100%;
    margin-top: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px var(--accent-glow);
}

.team-modal-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: -6px;
}

/* ==========================================================================
   Ecosystem Cross-Promotion Section (WalkReport)
   ========================================================================== */
.ecosystem-section {
    padding: 30px 24px 70px;
    max-width: 1240px;
    margin: 0 auto;
}

.ecosystem-container {
    width: 100%;
}

.ecosystem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 36px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, var(--accent) 50%, #6366f1 100%);
}

.ecosystem-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.eco-info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.eco-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
    object-fit: cover;
    background: #0b0f17;
}

.eco-text {
    flex: 1;
}

.eco-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

[data-theme="dark"] .eco-badge {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}

.eco-text h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

.eco-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 14px;
}

.eco-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.eco-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px;
    border-radius: 8px;
}

.eco-pill svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.eco-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-eco {
    white-space: nowrap !important;
    padding: 14px 28px !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    text-decoration: none;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-eco:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.btn-eco-sub {
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.15s ease;
}

.btn-eco-sub:hover {
    text-decoration: underline;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .ecosystem-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }
    .eco-info {
        flex-direction: column;
        text-align: center;
    }
    .eco-text p {
        margin: 0 auto 16px;
    }
    .eco-pills {
        justify-content: center;
    }
    .eco-cta-wrapper {
        width: 100%;
    }
    .btn-eco {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}



