/* ═══════════════════════════════════════════════════════
   NoDwell Investor Portal — Design System
   Matches getnodwell.com + pitch deck aesthetic
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0a0f;
    --bg-surface: #12121a;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --text-primary: #f0f0f5;
    --text-secondary: #d0d3e3;
    --text-muted: #c5c9db;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139,92,246,0.3);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #a78bfa);
    --red: #ef4444;
    --red-soft: rgba(239,68,68,0.12);
    --green: #22c55e;
    --green-soft: rgba(34,197,94,0.12);
    --amber: #f59e0b;
    --amber-soft: rgba(245,158,11,0.12);
    --cyan: #06b6d4;
    --cyan-soft: rgba(6,182,212,0.12);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-glow: 0 0 60px rgba(139,92,246,0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* ─── Typography ─── */
h1, h2, h3, h4  { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.mono { font-family: 'JetBrains Mono', monospace; }

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--accent); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-cyan { color: var(--cyan); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* ═══════════════ HEADER / NAV ═══════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─── Tab Navigation ─── */
.tab-nav {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

/* ─── Row 2 Navigation ─── */
.header-row2 {
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    padding: 0 32px;
}

.tab-nav-row2 {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
    padding: 6px 0;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-card);
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.12);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
}

/* ═══════════════ MAIN CONTENT ═══════════════ */
.main-content {
    padding-top: 104px;
    min-height: 100vh;
}

/* Tab panels */
.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-panel.active {
    display: block;
}

.tab-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════ SECTION LAYOUTS ═══════════════ */
.section {
    padding: 80px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-sm {
    padding: 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 48px;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 100%;
    line-height: 1.7;
}

/* ═══════════════ HERO SECTION ═══════════════ */
.hero {
    padding: 100px 32px 80px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero-overline {
    display: inline-block;
    padding: 6px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
    opacity: 0.3;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

/* ═══════════════ STAT CARDS ═══════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: rgba(139,92,246,0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-value {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.stat-card.accent-border { border-left: 3px solid var(--accent); }
.stat-card.red-border { border-left: 3px solid var(--red); }
.stat-card.green-border { border-left: 3px solid var(--green); }
.stat-card.amber-border { border-left: 3px solid var(--amber); }

/* ═══════════════ CONTENT CARDS ═══════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--transition);
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ═══════════════ BEFORE/AFTER COMPARISON ═══════════════ */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.comparison-side {
    border-radius: var(--radius);
    padding: 32px 28px;
}

.comparison-side.before {
    background: var(--red-soft);
    border: 1px solid rgba(239,68,68,0.2);
}

.comparison-side.after {
    background: var(--green-soft);
    border: 1px solid rgba(34,197,94,0.2);
}

.comparison-side h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

/* ═══════════════ TIMELINE ═══════════════ */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--accent);
}

.timeline-item.waste::before {
    border-color: var(--red);
    background: var(--red);
    box-shadow: 0 0 8px rgba(239,68,68,0.4);
}

.timeline-item.productive::before {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

.timeline-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ═══════════════ QUOTE CARDS ═══════════════ */
.quote-card {
    background: var(--bg-card);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 12px 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
}

.quote-source {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: normal;
    margin-top: 6px;
}

/* ═══════════════ BULLET LISTS ═══════════════ */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

.feature-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.feature-list.red li::before { background: var(--red); }
.feature-list.green li::before { background: var(--green); }

/* ═══════════════ PROSPECT TABLE ═══════════════ */
.prospect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.prospect-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

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

.prospect-site {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.prospect-anchor {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.prospect-clients {
    list-style: none;
    padding: 0;
}

.prospect-clients li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.prospect-clients li:last-child {
    border-bottom: none;
}

.prospect-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-current { background: var(--green-soft); color: var(--green); }
.status-prospect { background: var(--amber-soft); color: var(--amber); }

/* ═══════════════ ROI SCENARIO CARDS ═══════════════ */
.roi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

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

.roi-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.roi-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

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

.roi-detail {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══════════════ PITCH DECK EMBED ═══════════════ */
.deck-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

.deck-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-surface);
}

.deck-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.deck-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.deck-controls .btn-sm {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.deck-controls .btn-sm:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ═══════════════ WHITE PAPER LAYOUT ═══════════════ */
.wp-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
    min-height: calc(100vh - 64px);
}

.wp-sidebar {
    position: sticky;
    top: 104px;
    align-self: start;
    max-height: calc(100vh - 144px);
    overflow-y: auto;
    padding-right: 16px;
}

.wp-sidebar::-webkit-scrollbar {
    width: 3px;
}

.wp-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.wp-toc {
    list-style: none;
    padding: 0;
}

.wp-toc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}

.wp-toc li {
    margin-bottom: 2px;
}

.wp-toc a {
    display: block;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition);
    border-left: 2px solid transparent;
}

.wp-toc a:hover {
    color: var(--text-secondary);
    background: var(--bg-card);
}

.wp-toc a.active {
    color: var(--text-primary);
    background: rgba(139,92,246,0.08);
    border-left-color: var(--accent);
}

.wp-toc .sub {
    padding-left: 24px;
    font-size: 0.8rem;
}

.wp-body {
    max-width: 780px;
}

.wp-body h2 {
    font-size: 1.8rem;
    margin-top: 56px;
    margin-bottom: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wp-body h2:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.wp-body h3 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.wp-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.wp-body ul, .wp-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.wp-body li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.wp-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.wp-body blockquote {
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 24px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.wp-callout {
    background: rgba(139,92,246,0.06);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.wp-callout strong {
    color: var(--accent);
}

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 32px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════ ANIMATIONS ═══════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }
.fade-in.delay-5 { transition-delay: 0.5s; }

@keyframes counter-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ═══════════════ ROI CALCULATOR ═══════════════ */
.tab-btn-highlight {
    background: rgba(139,92,246,0.15) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(139,92,246,0.3);
}

.tab-btn-highlight:hover {
    background: rgba(139,92,246,0.25) !important;
    color: var(--text-primary) !important;
}

.calc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 32px 80px;
}

.calc-disclaimer {
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 40px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.calc-disclaimer strong {
    color: var(--amber);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.calc-input-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.calc-input-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.calc-input-label span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.calc-input-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.15s ease;
}

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

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.calc-slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Output cards */
.calc-outputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-output-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all var(--transition);
}

.calc-output-card.primary {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.06);
}

.calc-output-card.highlight-card {
    border-color: rgba(34,197,94,0.3);
    background: rgba(34,197,94,0.06);
}

.calc-output-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.calc-output-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
}

.calc-output-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.calc-output-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-output-row .calc-output-card {
    padding: 16px 20px;
}

.calc-output-row .calc-output-value {
    font-size: 1.5rem;
}

.calc-viability {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.calc-viability.viable {
    background: var(--green-soft);
    color: var(--green);
    border: 1px solid rgba(34,197,94,0.2);
}

.calc-viability.caution {
    background: var(--amber-soft);
    color: var(--amber);
    border: 1px solid rgba(245,158,11,0.2);
}

.calc-viability.warning {
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.2);
}

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

/* ═══════════════ DIVIDERS ═══════════════ */
.divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 48px 0;
}

/* ═══════════════ FULLSCREEN PITCH DECK ═══════════════ */
.deck-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: none;
}

.deck-fullscreen.active {
    display: block;
}

.deck-fullscreen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.deck-exit-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(18,18,26,0.9);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(12px);
    transition: all var(--transition);
}

.deck-exit-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .wp-layout {
        grid-template-columns: 1fr;
    }
    .wp-sidebar {
        display: none;
    }
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tab-nav { display: none; }
    .mobile-toggle { display: flex; }

    .tab-nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10,10,15,0.95);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
        gap: 4px;
    }

    .tab-nav.mobile-open .tab-btn {
        text-align: left;
        padding: 12px 16px;
    }

    h1 { font-size: 2.2rem; }
    .hero-title { font-size: 2.6rem; }
    .section-title { font-size: 2rem; }
    .stat-value { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .comparison { grid-template-columns: 1fr; }
    .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
    .section, .section-sm { padding: 32px 20px; }
    .hero { padding: 64px 20px 48px; }
    .header-cta span { display: none; }
    .footer-inner { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
}

/* ═══════════════ AIN PORTAL: BUDGET ALLOCATION ═══════════════ */
.budget-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

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

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.budget-category {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.budget-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.budget-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.budget-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.budget-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.budget-fill.visible { /* JS triggers this */ }

.budget-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

/* ═══════════════ EXPANDABLE SECTIONS ═══════════════ */
.expandable {
    margin-bottom: 12px;
}

.expandable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.expandable-header:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.expandable-header.open {
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom-color: transparent;
}

.expandable-left h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.expandable-left p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.expandable-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.expandable-header.open .expandable-arrow {
    transform: rotate(180deg);
}

.expandable-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.expandable-inner {
    padding: 24px;
    border-top: 1px solid var(--border);
}

/* ═══════════════ DEPLOYMENT TIMELINE ═══════════════ */
.deploy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 32px;
}

.deploy-grid::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    z-index: 0;
}

.deploy-quarter {
    text-align: center;
    position: relative;
    padding: 0 12px;
}

.deploy-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 12px auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 12px var(--accent-glow);
}

.deploy-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.deploy-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0;
    color: var(--text-primary);
}

.deploy-items {
    list-style: none;
    padding: 0;
    text-align: left;
}

.deploy-items li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 3px 0;
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.deploy-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--accent);
}

.deploy-metric {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ═══════════════ REVENUE BARS ═══════════════ */
.rev-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.rev-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border);
}

.rev-table th:not(:first-child) {
    text-align: right;
}

.rev-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.rev-table td:not(:first-child) {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.rev-table tr:last-child td {
    border-bottom: none;
}

.rev-table tr.highlight-row {
    background: rgba(34,197,94,0.04);
}

.rev-table tr.highlight-row td {
    color: var(--text-primary);
    font-weight: 700;
}

.rev-bar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0;
}

.rev-bar-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.rev-bar-track {
    flex: 1;
    height: 32px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.rev-bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
}

/* ═══════════════ AWS PRICING TABLE ═══════════════ */
.aws-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.aws-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.aws-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.aws-table tr:last-child td {
    border-bottom: none;
}

.aws-table td:nth-child(3),
.aws-table td:nth-child(4),
.aws-table th:nth-child(3),
.aws-table th:nth-child(4) {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.aws-table td.aws-total {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(139,92,246,0.04);
}

/* ═══════════════ SEPARATE FUND BADGE ═══════════════ */
.separate-fund-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ═══════════════ TEAM SCALING CHART ═══════════════ */
.scale-chart {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    justify-content: center;
    padding: 32px 0;
}

.scale-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scale-bar {
    width: 80px;
    border-radius: 8px 8px 0 0;
    transition: height 1s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.scale-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.scale-cost {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ═══════════════ RESPONSIVE ADDITIONS ═══════════════ */
@media (max-width: 768px) {
    .deploy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .deploy-grid::before { display: none; }
    .scale-chart { flex-wrap: wrap; }
    .scale-bar { width: 60px; }
    .projection-grid { grid-template-columns: 1fr; }
}

/* ═══════════════ INVESTMENT SLIDER ═══════════════ */
.slider-section {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.slider-wrap {
    position: relative;
    margin: 24px 0 12px;
}

.slider-track {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.06);
    overflow: visible;
}

.slider-fill-bar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    width: 0;
    transition: width 0.1s;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(139,92,246,0.3);
}

.slider-section input[type="range"],
.slider-wrap input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Custom visual thumb - positioned by JS */
.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 16px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 5;
    transition: transform 0.1s, box-shadow 0.2s;
}

.slider-wrap:hover .slider-thumb {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 24px var(--accent-glow), 0 2px 12px rgba(0,0,0,0.6);
}

.slider-wrap:active .slider-thumb {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Firefox - still need to hide the native thumb */
.slider-section input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
}

.slider-section input[type="range"]::-moz-range-thumb {
    opacity: 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.slider-value {
    margin-top: 20px;
}

.slider-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ═══════════════ PROJECTION BOXES ═══════════════ */
.projection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.projection-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.projection-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.projection-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.projection-arr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.projection-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
}

.projection-row:last-child { border-bottom: none; }

.projection-row .label { color: var(--text-muted); }
.projection-row .value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.projection-val-range {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
}

.projection-val-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.projection-val-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 800;
}

/* ═══════════════ QUARTERLY TABLE ═══════════════ */
.q-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.q-table th {
    padding: 10px 14px;
    text-align: right;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.q-table th:first-child { text-align: left; }

.q-table td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.q-table td:first-child {
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

.q-table tr:last-child td { border-bottom: none; }

.q-table tr.q-total {
    background: rgba(139,92,246,0.04);
}

.q-table tr.q-total td {
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: none;
}

.q-table .q-year-label {
    font-size: 0.65rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════ READABILITY: Bump small text ═══════════════ */
/* Catches inline font-sizes under 0.85rem and enforces a readable minimum */
.stat-label { font-size: 1rem !important; }
.slider-labels span { font-size: 0.85rem !important; }
.text-muted { font-size: 0.95rem !important; }
.timeline-desc { font-size: 1.1rem !important; }
.section-subtitle { font-size: 1.3rem !important; }
.expandable-body p, .expandable-body .text-secondary { font-size: 1rem !important; }
.card p.text-muted, .card p.text-secondary { min-height: auto; }
