/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand tokens (Expensify-aligned) */
    --brand-primary: #03D47C; /* Expensify Green */
    --brand-accent: #0185FF;  /* Expensify Blue */
    --brand-ink: #0C1B33;     /* Deep navy for text */
    --brand-yellow: #FED607;  /* Expensify Yellow */
    --brand-muted: #475569;   /* Muted slate for secondary text */
    --surface: #ffffff;
    --surface-alt: #F7FAFC;
    --border: #e2e8f0;

    /* Backward-compatible variables mapped to tokens */
    --primary-purple: var(--brand-primary); /* maps legacy "purple" uses to green */
    --primary-green: var(--brand-primary);
    --primary-orange: #f59e0b;
    --primary-red: #ef4444;
    --primary-indigo: var(--brand-accent); /* maps legacy indigo to blue */
    --primary-cyan: #06b6d4;

    /* Gradients updated to brand tones */
    --gradient-purple: linear-gradient(135deg, #03D47C 0%, #02BE70 100%); /* green */
    --gradient-green: linear-gradient(135deg, #03D47C 0%, #02BE70 100%);
    --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-indigo: linear-gradient(135deg, #0185FF 0%, #016BD6 100%); /* blue */
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);

    /* Surfaces & text mapped to tokens */
    --bg-dark: var(--brand-ink);
    --bg-darker: #020617;
    --bg-light: var(--surface-alt);
    --bg-lighter: var(--surface);

    --text-primary: var(--brand-ink);
    --text-secondary: var(--brand-muted);
    --text-light: #94a3b8;

    --border-color: var(--border);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-lighter);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography tweaks for Expensify-inspired look */
h1, .hero-title { letter-spacing: -0.02em; }
h2, .section-header h2 { letter-spacing: -0.02em; }
h3, h4 { letter-spacing: -0.01em; }
.hero-title { font-weight: 800; }
.section-header h2 { font-weight: 700; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }

/* Material Symbols icon font */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

/* Scale icon sizes contextually for better presence */
.nav-card-icon .material-symbols-rounded { font-size: 3rem; }
.section-icon .material-symbols-rounded { font-size: 2.5rem; }
.research-icon .material-symbols-rounded { font-size: 3rem; }
.loop-icon .material-symbols-rounded { font-size: 3rem; }
.persona-avatar .material-symbols-rounded { font-size: 3rem; }
.insights-icon .material-symbols-rounded { font-size: 2.25rem; }
.applied-badge .material-symbols-rounded { font-size: 2rem; }
.gating-icon .material-symbols-rounded { font-size: 2.5rem; }
.metric-info-icon .material-symbols-rounded { font-size: 1.1rem; vertical-align: -2px; }
.badge .material-symbols-rounded { font-size: 1rem; vertical-align: -2px; margin-right: 0.25rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--brand-accent);
}

/* Global link styling */
a { color: var(--brand-accent); }
a:hover { color: #016BD6; }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(1, 133, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(3, 212, 124, 0.08) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-pitch {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    line-height: 1.8;
}

/* Metrics Explainer */
.metrics-explainer {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.metric-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Space Mono', monospace;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-info-icon {
    font-size: 0.875rem;
    opacity: 0.6;
    cursor: help;
    transition: opacity 0.3s;
    position: relative;
}

.metric-info-icon:hover {
    opacity: 1;
}

.metric-label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.metric-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Tooltip */
.metric-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-0.5rem);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: normal;
    width: 280px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    line-height: 1.6;
    text-align: left;
}

.metric-info-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-0.25rem);
    border: 6px solid transparent;
    border-top-color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1001;
}

.metric-info-icon:hover::after,
.metric-info-icon:hover::before {
    opacity: 1;
}

.metric-info-icon:active::after,
.metric-info-icon:active::before {
    opacity: 1;
}

/* Special tooltip for activation metric */
.activation-tooltip::after {
    content: "User reaches first value moment via either:" "\A" "\A" "✅ SmartScan → Approval → Reimbursement ≤7 days" "\A" "✅ Card issued → First swipe ≤7 days";
    white-space: pre-line;
}

/* Navigation Cards */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.nav-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-purple);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.nav-card.purple::before { background: var(--gradient-purple); }
.nav-card.green::before { background: var(--gradient-green); }
.nav-card.orange::before { background: var(--gradient-orange); }
.nav-card.red::before { background: var(--gradient-red); }
.nav-card.indigo::before { background: var(--gradient-indigo); }
.nav-card.cyan::before { background: var(--gradient-cyan); }

.nav-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-card p {
    color: var(--text-secondary);
}

/* Methodology Section */
.methodology-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.methodology-content {
    max-width: 1200px;
    margin: 0 auto;
}

.methodology-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.methodology-intro .large-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.methodology-intro strong { color: var(--brand-primary); }

.research-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.research-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-cyan);
}

.research-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.research-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.research-card ul {
    list-style: none;
    padding: 0;
}

.research-card ul li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
    border-bottom: 1px solid var(--border-color);
}

.research-card ul li:last-child {
    border-bottom: none;
}

.research-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-weight: bold;
}

.validation-note {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--primary-green);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.validation-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.validation-note div:last-child {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.validation-note strong {
    color: var(--primary-green);
    display: block;
    margin-bottom: 0.5rem;
}

/* TL;DR Section */
.tldr-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-icon {
    font-size: 2.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
}

.tldr-quote {
    margin-top: 3rem;
    text-align: center;
    background: rgba(1, 133, 255, 0.05);
    border-left: 4px solid var(--primary-purple);
    border-radius: 8px;
    padding: 2rem;
}

.tldr-quote p {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.8;
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.purple-section {
    background: linear-gradient(180deg, rgba(3, 212, 124, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
}

.green-section {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.orange-section { background: var(--surface); }
.red-section { background: var(--surface); }
.indigo-section { background: linear-gradient(180deg, rgba(1, 133, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%); }
.cyan-section { background: var(--surface); }

.thesis-hero {
    background: white;
    border: 2px solid var(--primary-purple);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.large-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.how-we-win {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.how-we-win h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.how-we-win ul {
    list-style: none;
    padding: 0;
}

.how-we-win ul li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.how-we-win ul li:last-child { border-bottom: none; }
.how-we-win ul li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-primary); font-weight: bold; font-size: 1.5rem; }

/* Growth Loops */
.loops-section { margin-bottom: 3rem; }
.loops-section h3 { font-size: 1.75rem; margin-bottom: 1rem; }

.section-intro {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Product Realities */
.product-realities { margin-bottom: 3rem; }
.product-realities h3 { font-size: 1.75rem; margin-bottom: 2rem; }

.realities-grid { display: grid; gap: 1rem; }
.reality-item {
    background: rgba(3, 212, 124, 0.08);
    border-left: 4px solid var(--brand-primary);
    border-radius: 8px;
    padding: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
}
.reality-item strong { color: var(--brand-primary); font-size: 1.125rem; }

/* NAU Container */
.nau-container { margin-bottom: 3rem; }
.nau-container h3 { font-size: 1.75rem; margin-bottom: 2rem; }

.nau-box {
    background: white;
    border: 2px solid var(--brand-primary);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.nau-box h4 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--brand-primary); }

.nau-formula {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.formula-header {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.formula-item {
    padding: 0.5rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    color: var(--text-secondary);
}

.why-nau { margin-top: 1.5rem; }
.why-nau strong { display: block; margin-bottom: 0.75rem; color: var(--text-primary); font-size: 1.125rem; }
.why-nau ul { list-style: none; padding: 0; }
.why-nau ul li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; color: var(--text-secondary); }
.why-nau ul li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-primary); font-weight: bold; }

/* Gating Factors */
.gating-factors { margin-bottom: 3rem; }
.gating-factors h3 { font-size: 1.75rem; margin-bottom: 2rem; }

.gating-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

.gating-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s;
}

.gating-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gating-card.warning { border-color: var(--brand-yellow); }
.gating-card.error { border-color: var(--primary-red); }

.gating-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.gating-card h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary); }
.gating-card p { color: var(--text-secondary); line-height: 1.6; }

/* Dual NSM */
.dual-nsm-intro { margin-bottom: 3rem; }
.dual-nsm-intro h3 { font-size: 1.75rem; margin-bottom: 2rem; }

.dual-nsm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.nsm-card {
    background: white;
    border: 2px solid var(--primary-orange);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.nsm-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.nsm-card h4 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-orange); }
.nsm-card p { margin-bottom: 0.5rem; }
.nsm-card strong { color: var(--text-primary); font-size: 1.125rem; }
.nsm-desc { color: var(--text-secondary); font-size: 0.875rem; margin-top: 0.5rem; }

/* Grids */
.loops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.loop-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; text-align: center; transition: transform 0.3s; box-shadow: var(--shadow-sm); }
.loop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.loop-icon { font-size: 3rem; margin-bottom: 1rem; }
.loop-card h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.loop-card p { color: var(--text-secondary); font-size: 0.875rem; }

/* Anti-Strategy */
.anti-strategy { margin-bottom: 3rem; }
.anti-strategy h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.guardrails-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.guardrail { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 8px; padding: 1rem; color: var(--text-primary); font-weight: 500; }

/* Flywheel */
.flywheel-container { margin-top: 4rem; }
.flywheel-container h3 { font-size: 1.75rem; margin-bottom: 3rem; text-align: center; }
.flywheel-diagram { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2rem; background: white; padding: 3rem; border-radius: 16px; box-shadow: var(--shadow-lg); }
.flywheel-step { text-align: center; opacity: 0; animation: fadeIn 0.6s forwards; animation-delay: var(--delay); }
@keyframes fadeIn { to { opacity: 1; } }
.step-number { width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-purple); color: white; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-family: 'Space Mono', monospace; font-weight: bold; margin: 0 auto 1rem; box-shadow: var(--shadow-md); }
.flywheel-step h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.flywheel-step p { color: var(--text-secondary); font-size: 0.875rem; }
.flywheel-arrow { font-size: 2rem; color: var(--primary-purple); font-weight: bold; }

/* JTBD Section */
.jtbd-section { margin-bottom: 4rem; }
.jtbd-section h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.jtbd-content { display: grid; gap: 2rem; }
.jtbd-primary { background: white; border: 2px solid var(--primary-green); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-md); }
.jtbd-primary h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary-green); }
.jtbd-title { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2rem; font-style: italic; }
.jtbd-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.jtbd-traditional, .jtbd-expensify { background: var(--bg-light); border-radius: 8px; padding: 1.5rem; }
.jtbd-traditional strong { color: var(--primary-red); display: block; margin-bottom: 1rem; }
.jtbd-expensify strong { color: var(--primary-green); display: block; margin-bottom: 1rem; }
.jtbd-traditional ul, .jtbd-expensify ul { list-style: none; padding: 0; }
.jtbd-traditional ul li, .jtbd-expensify ul li { padding: 0.5rem 0; color: var(--text-secondary); position: relative; padding-left: 1.5rem; }
.jtbd-traditional ul li::before { content: '✗'; position: absolute; left: 0; color: var(--primary-red); font-weight: bold; }
.jtbd-expensify ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-green); font-weight: bold; }

.jtbd-secondary { background: white; border: 2px solid var(--border-color); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-sm); }
.jtbd-secondary h4 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.job-list { display: grid; gap: 1rem; }
.job-item { background: var(--bg-light); border-radius: 8px; padding: 1rem; color: var(--text-secondary); }
.job-item strong { color: var(--primary-green); }

/* ICP Matrix */
.icp-matrix { margin-bottom: 4rem; }
.icp-matrix h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.matrix-table { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.matrix-header { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--gradient-green); color: white; font-weight: 600; padding: 1rem; gap: 1rem; }
.matrix-row { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--border-color); padding: 1rem; gap: 1rem; transition: background 0.2s; }
.matrix-row:hover { background: var(--bg-light); }
.matrix-row:last-child { border-bottom: none; }
.matrix-cell { padding: 0.5rem; }

/* Personas Grid */
.personas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.persona-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.3s; }
persona-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.persona-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border-color); }
.persona-avatar { font-size: 3rem; }
.persona-header h4 { font-size: 1.25rem; margin-bottom: 0.25rem; }
persona-header p { color: var(--text-secondary); font-size: 0.875rem; }
.persona-details { display: flex; flex-direction: column; gap: 0.75rem; }
.detail-item { padding: 0.75rem; background: var(--bg-light); border-radius: 8px; font-size: 0.875rem; line-height: 1.5; }
.detail-item strong { color: var(--text-primary); }

/* Activation Funnel */
.activation-funnel { margin-bottom: 4rem; }
.activation-funnel h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.funnel-visual { background: white; border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-lg); }
.funnel-step { background: var(--gradient-orange); border-radius: 8px; padding: 1.5rem 2rem; margin-bottom: 1rem; width: var(--width); transition: all 0.3s; animation: slideIn 0.5s forwards; animation-delay: var(--delay); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.funnel-step:hover { transform: translateX(8px); }
.step-header { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.step-percent { font-size: 2rem; font-weight: 800; color: white; flex-shrink: 0; line-height: 1; }
.step-header h4 { color: white; font-size: 1.125rem; margin: 0; flex: 1; min-width: 0; line-height: 1.3; }
.step-header p { color: rgba(255, 255, 255, 0.9); font-size: 0.875rem; margin: 0.25rem 0 0 0; width: 100%; flex-basis: 100%; }
.funnel-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; }
.stat-item { background: white; padding: 1rem 2rem; border-radius: 8px; box-shadow: var(--shadow-sm); font-size: 1.125rem; }
.stat-item strong { color: var(--primary-orange); }

/* Aha Moments */
.aha-moments { margin-top: 4rem; }
.aha-moments h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.aha-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.aha-card { background: white; border: 2px solid var(--border-color); border-radius: 12px; padding: 2rem; text-align: center; transition: all 0.3s; box-shadow: var(--shadow-sm); }
.aha-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-orange); }
.aha-card h4 { font-size: 1.125rem; margin-bottom: 1rem; }
.aha-card p { color: var(--text-secondary); margin-bottom: 1rem; font-style: italic; }
.aha-time { display: inline-block; background: rgba(245, 158, 11, 0.1); color: var(--primary-orange); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }

/* Milestones Section */
.milestones-section { margin-top: 4rem; }
.milestones-section h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.milestones-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.milestone-card { background: white; border: 2px solid var(--border-color); border-radius: 12px; padding: 2rem; transition: transform 0.3s; box-shadow: var(--shadow-sm); }
.milestone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-orange); }
.milestone-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border-color); }
.milestone-day { width: 60px; height: 60px; border-radius: 8px; background: var(--gradient-orange); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; box-shadow: var(--shadow-md); }
.milestone-header h4 { font-size: 1.25rem; margin: 0; }
.milestone-card ul { list-style: none; padding: 0; }
.milestone-card ul li { padding: 0.75rem 0; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.milestone-card ul li:last-child { border-bottom: none; }
.milestone-card strong { color: var(--text-primary); }

/* Automation Rules */
.automation-rules { margin-top: 4rem; }
.automation-rules h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.rules-card { background: white; border: 2px solid var(--border-color); border-radius: 12px; padding: 2rem; transition: transform 0.3s; box-shadow: var(--shadow-sm); }
.rules-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-red); }
.rules-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border-color); }
.rules-icon { font-size: 2.5rem; }
.rules-header h4 { font-size: 1.25rem; margin: 0; }
.rules-card ul { list-style: none; padding: 0; }
.rules-card ul li { padding: 0.75rem 0; color: var(--text-secondary); line-height: 1.8; border-bottom: 1px solid var(--border-color); }
.rules-card ul li:last-child { border-bottom: none; }
.rules-card code { background: rgba(239, 68, 68, 0.1); padding: 0.25rem 0.5rem; border-radius: 4px; font-family: 'Monaco', 'Courier New', monospace; font-size: 0.875rem; color: var(--primary-red); }

/* Workflows */
.workflows { margin-bottom: 4rem; }
.workflows h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.workflow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.workflow-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; text-align: center; transition: transform 0.3s; box-shadow: var(--shadow-sm); }
.workflow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.workflow-number { width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-red); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; margin: 0 auto 1rem; }
.workflow-card h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.workflow-card p { color: var(--text-secondary); font-size: 0.875rem; }

/* Trigger Events */
.trigger-events { margin-top: 4rem; }
.trigger-events h3 { font-size: 1.75rem; margin-bottom: 2rem; }
.trigger-table { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.trigger-header { display: grid; grid-template-columns: 1fr 1fr 2fr; background: var(--gradient-red); color: white; font-weight: 600; padding: 1rem; gap: 1rem; }
.trigger-row { display: grid; grid-template-columns: 1fr 1fr 2fr; border-bottom: 1px solid var(--border-color); padding: 1rem; gap: 1rem; transition: background 0.2s; }
.trigger-row:hover { background: var(--bg-light); }
.trigger-row:last-child { border-bottom: none; }
.trigger-cell { padding: 0.5rem; }
.trigger-cell.code { font-family: 'Monaco', 'Courier New', monospace; background: rgba(1, 133, 255, 0.1); padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.875rem; }

/* Experiments */
.experiments-filter { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { background: white; border: 2px solid var(--border-color); border-radius: 8px; padding: 0.5rem 1.5rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--brand-primary); }
.filter-btn.active { background: var(--gradient-indigo); color: white; border-color: transparent; }

.experiments-grid { display: grid; gap: 2rem; }
.experiment-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.3s; }
.experiment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.experiment-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1rem; }
.experiment-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.experiment-priority { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.experiment-priority.now { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.experiment-priority.next { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.experiment-priority.later { background: rgba(156, 163, 175, 0.1); color: #6b7280; }
.experiment-ice { font-size: 2rem; font-weight: 800; background: var(--gradient-indigo); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.experiment-details { display: grid; gap: 1rem; }
.experiment-detail-item { display: flex; gap: 0.5rem; }
.experiment-detail-item strong { min-width: 100px; }
.experiment-detail-item.risk-item { background: rgba(239, 68, 68, 0.05); border-left: 3px solid var(--primary-red); padding-left: 1rem; }
.experiment-detail-item.mitigation-item { background: rgba(16, 185, 129, 0.05); border-left: 3px solid var(--primary-green); padding-left: 1rem; }

/* Metrics Dashboard */
.metrics-dashboard { background: white; border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-lg); }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border-color); }
.dashboard-header h3 { font-size: 1.75rem; }
.metric-trend { display: flex; align-items: center; gap: 0.5rem; }
.trend-up { font-size: 1.5rem; font-weight: 800; color: var(--primary-green); }
.metrics-table-container { overflow-x: auto; }
.metrics-table { width: 100%; border-collapse: collapse; }
.metrics-table thead { background: var(--bg-light); }
.metrics-table th { padding: 1rem; text-align: left; font-weight: 600; color: var(--text-primary); }
.metrics-table td { padding: 1rem; border-bottom: 1px solid var(--border-color); }
.gap-negative { color: var(--primary-red); font-weight: 600; }

.badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }
.badge-warning { background: rgba(254, 214, 7, 0.18); color: #6b5d00; }
.badge-error { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
/* Success badge using brand accent */
.badge-success { background: rgba(16, 185, 129, 0.12); color: var(--brand-accent); }

/* Execution Plan */
.execution-section { background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(255, 255, 255, 0) 100%); }
.execution-plan { background: white; border-radius: 16px; padding: 3rem; box-shadow: var(--shadow-lg); }
.plan-intro { text-align: center; margin-bottom: 3rem; font-size: 1.25rem; color: var(--text-secondary); font-style: italic; }
.plan-timeline { display: grid; gap: 2rem; margin-bottom: 3rem; }
.plan-item { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; background: var(--bg-light); border: 2px solid var(--border-color); border-radius: 12px; padding: 2rem; transition: all 0.3s; }
.plan-item:hover { border-color: var(--primary-cyan); transform: translateX(8px); box-shadow: var(--shadow-md); }
.plan-date { font-size: 1.25rem; font-weight: 700; color: var(--primary-cyan); display: flex; align-items: center; }
.plan-content h4 { font-size: 1.125rem; margin-bottom: 1rem; color: var(--text-primary); }
.plan-metric { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); }
.metric-badge { font-size: 1.25rem; }
.success-signals { background: rgba(6, 182, 212, 0.05); border: 2px solid var(--primary-cyan); border-radius: 12px; padding: 2rem; }
.success-signals h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary-cyan); }
.success-signals ul { list-style: none; padding: 0; }
.success-signals ul li { padding: 0.75rem 0; padding-left: 1.5rem; position: relative; color: var(--text-primary); }
.success-signals ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-cyan); font-weight: bold; font-size: 1.25rem; }

/* Insights Section */
.insights-section { background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0) 100%); }
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.insights-card { background: white; border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.3s; }
.insights-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.insights-card.strengths { border: 2px solid var(--primary-green); }
.insights-card.pain-points { border: 2px solid var(--primary-orange); }
.insights-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border-color); }
.insights-icon { font-size: 2.5rem; }
.insights-header h3 { font-size: 1.25rem; margin: 0; }
.insights-card ul { list-style: none; padding: 0; }
.insights-card ul li { padding: 0.75rem 0; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); position: relative; padding-left: 1.5rem; }
.insights-card ul li:last-child { border-bottom: none; }
.insights-card.strengths ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-green); font-weight: bold; }
.insights-card.pain-points ul li::before { content: '⚠'; position: absolute; left: 0; color: var(--primary-orange); font-weight: bold; }

.insights-applied { background: white; border-radius: 12px; padding: 2.5rem; box-shadow: var(--shadow-md); }
.insights-applied h3 { font-size: 1.5rem; margin-bottom: 2rem; color: var(--text-primary); }
.applied-grid { display: grid; gap: 1.5rem; }
.applied-item { display: flex; align-items: start; gap: 1rem; padding: 1.5rem; background: var(--bg-light); border-radius: 8px; transition: all 0.3s; }
.applied-item:hover { background: rgba(1, 133, 255, 0.08); transform: translateX(8px); }
.applied-badge { font-size: 2rem; flex-shrink: 0; }
.applied-item strong { display: block; color: var(--text-primary); margin-bottom: 0.5rem; }
.applied-item p { margin: 0; color: var(--text-secondary); }

/* Takeaways Section */
.takeaways-section { background: linear-gradient(180deg, rgba(1, 133, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%); }
.takeaways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.takeaway-card { background: white; border: 2px solid var(--border-color); border-radius: 12px; padding: 2rem; transition: transform 0.3s; box-shadow: var(--shadow-sm); }
.takeaway-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-purple); }
.takeaway-number { width: 50px; height: 50px; border-radius: 8px; background: var(--gradient-purple); color: white; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; margin-bottom: 1rem; box-shadow: var(--shadow-md); }
.takeaway-card h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary); }
.takeaway-card p { color: var(--text-secondary); line-height: 1.6; }

.strategic-philosophy { background: white; border: 3px solid var(--brand-primary); border-radius: 16px; padding: 3rem; margin-top: 3rem; }
.philosophy-quote { margin: 0; padding: 0; border: none; }
.philosophy-quote p { font-size: 1.5rem; line-height: 1.8; color: var(--text-primary); font-style: italic; margin-bottom: 1rem; }
.philosophy-quote footer { font-size: 1rem; color: var(--text-secondary); font-style: normal; text-align: right; }

/* CTA Section */
.cta-section { padding: 6rem 0; background: var(--bg-dark); color: white; }
.cta-box { text-align: center; max-width: 800px; margin: 0 auto; }
.cta-box h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-box p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; }
.btn { padding: 1rem 2rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: all 0.3s; display: inline-block; }
.btn-primary { background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%); color: white; }
.btn-primary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.btn, .filter-btn, a { outline-offset: 2px; }
.btn:focus-visible, .filter-btn:focus-visible, a:focus-visible { outline: 2px solid var(--brand-primary); }
.btn-primary:hover { background: linear-gradient(135deg, #02BE70 0%, #016BD6 100%); }
.btn-secondary { background: white; color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-secondary:hover { background: white; border-color: var(--brand-accent); color: var(--brand-accent); }

/* Footer */
.footer { padding: 3rem 0; background: var(--bg-darker); color: rgba(255, 255, 255, 0.8); text-align: center; }
.footer p { margin-bottom: 0.5rem; }
.footer-note { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-note p { font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.footer-note strong { color: var(--bg-lighter); font-weight: 600; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .nav-links { display: none; }
    .metrics-grid { grid-template-columns: 1fr; }
    .metric-subtitle { font-size: 0.75rem; }
    .nav-cards { grid-template-columns: 1fr; }
    .flywheel-diagram { flex-direction: column; }
    .flywheel-arrow { transform: rotate(90deg); }

    .matrix-header, .matrix-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .trigger-header, .trigger-row { grid-template-columns: 1fr; gap: 0.5rem; }

    .cta-buttons { flex-direction: column; }
    .plan-item { grid-template-columns: 1fr; gap: 1rem; }
    .plan-date { font-size: 1.125rem; }
    .milestones-grid { grid-template-columns: 1fr; }
    .dual-nsm-grid { grid-template-columns: 1fr; }
    .gating-grid { grid-template-columns: 1fr; }
    .research-stack { grid-template-columns: 1fr; }
    .validation-note { flex-direction: column; text-align: center; }
    .methodology-intro .large-text { font-size: 1.25rem; }
    .metrics-explainer { font-size: 1rem; padding: 0 1rem; }

    .metric-info-icon::after { width: 240px; left: 50%; transform: translateX(-50%) translateY(-0.5rem); }
    .metric-card { min-height: auto; }

    /* Insights Section Mobile Fixes */
    .insights-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
    .insights-card { padding: 1.5rem !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; overflow-wrap: break-word; word-wrap: break-word; overflow: hidden; }
    .insights-card ul { padding-right: 0; margin: 0; }
    .insights-card ul li { word-wrap: break-word !important; overflow-wrap: break-word !important; hyphens: auto; padding-right: 0.5rem !important; padding-left: 1.5rem; max-width: 100%; box-sizing: border-box; }

    .insights-applied { padding: 1.5rem !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; overflow: hidden; }
    .applied-grid { grid-template-columns: 1fr !important; }
    .applied-item { padding: 1rem !important; flex-direction: column; gap: 0.75rem; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word; word-wrap: break-word; }
    .applied-item strong, .applied-item p { max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }

    /* Funnel Mobile Fixes */
    .funnel-visual { padding: 1.5rem; }
    .funnel-step { padding: 1.25rem 1.5rem; width: 100% !important; min-width: 100%; }
    .step-header { flex-direction: row; gap: 0.75rem; }
    .step-percent { font-size: 1.75rem; flex-shrink: 0; }
    .step-header h4 { font-size: 1rem; line-height: 1.4; flex: 1; word-wrap: break-word; }
    .step-header p { font-size: 0.8125rem; margin-top: 0.5rem; margin-left: 0; width: 100%; flex-basis: 100%; line-height: 1.4; }

    .funnel-stats { flex-direction: column; gap: 1rem; align-items: center; }
    .stat-item { text-align: center; }

    /* Container padding on mobile */
    .container { padding: 0 1rem !important; max-width: 100vw; box-sizing: border-box; }

    /* Prevent any horizontal overflow */
    body { overflow-x: hidden; max-width: 100vw; }

    /* Prevent overflow for card-based sections */
    .insights-card, .insights-applied, .applied-item, .card, .experiment-card { max-width: 100%; box-sizing: border-box; }
}

