/* ===========================
   StarterPlug — Base Styles
   =========================== */

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

:root {
    /* Core palette */
    --color-bg: #09090b;
    --color-surface: #18181b;
    --color-border: #27272a;
    --color-text: #fafafa;
    --color-text-muted: #a1a1aa;
    --color-text-secondary: #a1a1aa;
    --color-primary: #10b981;
    --color-primary-hover: #34d399;
    --color-primary-glow: rgba(16, 185, 129, 0.2);
    --color-accent: #FBBF24;
    --color-error: #ef4444;
    --color-warning: #FBBF24;

    /* Primary alpha variants */
    --color-primary-5: rgba(16, 185, 129, 0.05);
    --color-primary-8: rgba(16, 185, 129, 0.08);
    --color-primary-10: rgba(16, 185, 129, 0.1);
    --color-primary-15: rgba(16, 185, 129, 0.15);
    --color-primary-20: rgba(16, 185, 129, 0.2);
    --color-primary-30: rgba(16, 185, 129, 0.3);
    --color-primary-40: rgba(16, 185, 129, 0.4);
    --color-primary-50: rgba(16, 185, 129, 0.5);
    --color-primary-60: rgba(16, 185, 129, 0.6);

    /* Semantic colors */
    --color-success: #22c55e;
    --color-info: #3b82f6;
    --color-error-light: #fca5a5;
    --color-placeholder: #52525b;

    /* Surface alpha variants */
    --color-surface-2: rgba(255, 255, 255, 0.02);
    --color-surface-4: rgba(255, 255, 255, 0.04);
    --color-surface-5: rgba(255, 255, 255, 0.05);
    --color-surface-8: rgba(255, 255, 255, 0.08);
    --color-surface-10: rgba(255, 255, 255, 0.1);
    --color-surface-15: rgba(255, 255, 255, 0.15);
    --color-surface-20: rgba(255, 255, 255, 0.2);

    /* Border radius scale */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 100px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ===========================
   Navbar
   =========================== */

#main-content {
    position: relative;
    z-index: 1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-img {
    height: 52px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

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

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-text);
    background: var(--color-surface);
}

.nav-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

.nav-welcome {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: var(--color-surface);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Mobile auth links — hidden on desktop */
.nav-mobile-auth {
    display: none;
}

.nav-mobile-link {
    background: none;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: left;
}

.nav-mobile-cta {
    color: var(--color-primary) !important;
    font-weight: 600;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-muted);
    background: var(--color-surface);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-secondary {
    background: var(--color-surface-5);
    color: var(--color-text);
    border: 1px solid var(--color-surface-10);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--color-surface-8);
    border-color: var(--color-primary-30);
}

.btn-danger {
    background: var(--color-error);
    color: #fff;
    border: none;
    transition: all var(--transition-base);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-text {
    background: none;
    border: 1px solid var(--color-surface-10);
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.btn-text:hover {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-disabled {
    background: var(--color-surface-10);
    color: var(--color-text-muted);
    cursor: not-allowed;
    border: 1px solid var(--color-surface-10);
}

.btn-disabled:hover {
    background: var(--color-surface-10);
    transform: none;
    box-shadow: none;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    border: 1px solid var(--color-primary-20);
    background: var(--color-primary-8);
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

/* Prompt input */

.hero-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    width: 100%;
}

.prompt-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.prompt-hidden {
    display: none;
}

.hero-hidden {
    display: none;
}

.prompt-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.prompt-box:focus-within {
    border-color: var(--color-primary);
}

.prompt-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.prompt-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.prompt-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.prompt-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 0;
    resize: none;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.prompt-input::placeholder {
    color: var(--color-placeholder);
}

.typed-overlay {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    line-height: 1.5;
}

.typed-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1.15em;
    background: var(--color-primary);
    margin-left: 1px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.prompt-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social proof strip */

.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.proof-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.proof-divider {
    width: 1px;
    height: 36px;
    background: var(--color-border);
}

/* Hero background illustrations */

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.18;
    pointer-events: none;
}

.hero::before {
    left: 0;
    background-image: url('../images/starterplug-right-bg.png');
    background-position: left center;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, black 25%, black 40%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right, transparent 0%, black 25%, black 40%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-composite: intersect;
}

.hero::after {
    right: 0;
    background-image: url('../images/starterplug-left-bg.png');
    background-position: right center;
    -webkit-mask-image:
        linear-gradient(to left, transparent 0%, black 25%, black 40%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to left, transparent 0%, black 25%, black 40%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-composite: intersect;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--color-primary-10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Results Section */

.results-section {
    position: relative;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    animation: resultsSlideIn 0.4s ease-out;
    width: 100%;
    max-width: 800px;
}

.results-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.results-close:hover {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

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

.results-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.results-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.results-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    opacity: 0;
    animation: resultItemFadeIn 0.4s ease-out forwards;
}

.result-item.tarpit-warning {
    border-color: rgba(161, 161, 170, 0.2);
    background: rgba(161, 161, 170, 0.02);
    opacity: 0.7;
}

.result-link {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.result-item:hover {
    border-color: var(--color-primary-40);
    background: var(--color-primary-5);
}

.result-item.tarpit-warning:hover {
    border-color: rgba(161, 161, 170, 0.2);
    background: rgba(161, 161, 170, 0.02);
    transform: none;
    cursor: default;
}

.result-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 2.75rem;
}

.result-item-1 { animation-delay: 0s; }
.result-item-2 { animation-delay: 0.3s; }
.result-item-3 { animation-delay: 0.6s; }
.result-item-4 { animation-delay: 0.9s; }
.result-item-5 { animation-delay: 1.2s; }
.result-item-6 { animation-delay: 1.5s; }
.result-item-7 { animation-delay: 1.8s; }
.result-item-8 { animation-delay: 2.1s; }
.result-item-9 { animation-delay: 2.4s; }
.result-item-10 { animation-delay: 2.7s; }

@keyframes resultItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.result-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
}

/* Complexity Indicator */

.complexity-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Intensity Bar */

.intensity-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.intensity-bar-track {
    flex: 1;
    height: 6px;
    background: var(--color-surface-10);
    border-radius: 3px;
    overflow: hidden;
}

.intensity-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

/* Limit Message */

.limit-message {
    padding: 3rem 2rem;
}

.limit-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.limit-icon {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.limit-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.limit-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 420px;
    margin-bottom: 0.5rem;
}

/* Loading State */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    gap: 2rem;
}

.loading-spinner {
    position: relative;
    width: 40px;
    height: 40px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-surface-10);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-ring:nth-child(2),
.spinner-ring:nth-child(3) {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.loading-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.loading-progress {
    width: 100%;
    max-width: 360px;
    margin-top: 0.5rem;
}

.loading-progress-bar {
    height: 4px;
    background: var(--color-surface-2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.loading-progress-fill {
    height: 100%;
    width: 0;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.8s ease-out;
}

.loading-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: center;
}

.loading-step {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.4;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.loading-step.active {
    opacity: 1;
    color: var(--color-primary);
    font-weight: 500;
}

/* ===========================
   Auth Pages
   =========================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

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

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-input {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.875rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.auth-input::placeholder {
    color: var(--color-placeholder);
}

.cf-turnstile {
    display: flex;
    justify-content: center;
}

.auth-agreements {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--color-border);
}

.auth-checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-checkbox-field label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.marketing-toggle-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.marketing-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--color-error-light);
}

.field-error {
    font-size: 0.875rem;
    color: var(--color-error);
    margin-top: 0.5rem;
}

.auth-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.auth-actions .btn {
    flex: 1;
}

/* Message Toasts */
.messages-container {
    margin-bottom: 2rem;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--color-success);
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
}

.message-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--color-info);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-link {
    color: var(--color-primary);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--color-primary-hover);
}

/* ===========================
   Pricing Page
   =========================== */

.pricing-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
}

.pricing-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.pricing-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    border-color: var(--color-primary);
    transform: scale(1.08);
    z-index: 1;
    padding: 2.5rem 2rem;
    box-shadow: 0 0 30px var(--color-primary-10), 0 0 60px var(--color-primary-5);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.tier-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-accent);
}

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

.tier-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex: 1;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.feature-check {
    color: var(--color-primary);
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
}

/* ===========================
   Solutions Page
   =========================== */

.solutions-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
}

.solutions-container {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: hidden;
}

.solutions-header {
    text-align: center;
    margin-bottom: 4rem;
}

.solutions-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.solutions-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* Diagram layout */

.diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 4.5rem 0 2rem;
}

.diagram-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.stage-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* Source cards */

.source-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.source-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Connectors */

.diagram-connector {
    position: relative;
    width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.connector-svg {
    width: 100%;
    height: 2px;
}

.connector-line {
    stroke: none;
}

@keyframes dashFlow {
    to { stroke-dashoffset: -20; }
}

.connector-dots {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
}

.dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
    top: -3px;
    animation: dotTravel 2s ease-in-out infinite;
    animation-delay: var(--dot-delay);
    opacity: 0;
}

@keyframes dotTravel {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Left connector - blue, aligned with Reviews card */
.connector-left {
    margin-top: -0.5rem;
}

.connector-left .dot {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.connector-left .connector-line {
    stroke: none;
}

/* Right connector - purple, aligned with Forums flow line */
.diagram-connector:not(.connector-left) {
    z-index: 1;
}

.diagram-connector:not(.connector-left) .dot {
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-60);
}

.diagram-connector:not(.connector-left) .connector-line {
    stroke: none;
}

/* User query card */

.agent-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.query-card {
    position: absolute;
    bottom: calc(100% + 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--color-surface);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.query-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    display: flex;
}

.query-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.query-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
}

.query-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Vertical connector */

.connector-vertical {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 60px;
}

.connector-v-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.connector-v-dots {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 0;
}

.dot-v {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    left: -3px;
    animation: dotTravelV 2s ease-in-out infinite;
    animation-delay: var(--dot-delay);
    opacity: 0;
}

@keyframes dotTravelV {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* AI Agent node */

.stage-agent {
    flex-shrink: 0;
    /* Center element in diagram */
}

.stage-sources,
.stage-output {
    width: 240px; /* Same width for balanced layout */
    flex-shrink: 0;
}

.stage-sources {
    position: relative;
}

.stage-output {
    position: relative;
    z-index: 10;
}

.agent-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-inner {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.agent-icon {
    color: var(--color-primary);
    margin-bottom: 0.125rem;
}

.agent-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.agent-sublabel {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Output card */

.output-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    width: 100%;
}

.output-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--color-border);
}

.output-header svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.output-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.output-item {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    opacity: 0;
}

.output-item:nth-child(1) { animation: itemReveal1 12s ease-in-out infinite; animation-delay: 0.1s; }
.output-item:nth-child(2) { animation: itemReveal2 12s ease-in-out infinite; animation-delay: 0.6s; }
.output-item:nth-child(3) { animation: itemReveal3 12s ease-in-out infinite; animation-delay: 1.1s; }
.output-item:nth-child(4) { animation: itemReveal4 12s ease-in-out infinite; animation-delay: 1.6s; }
.output-item:nth-child(5) { animation: itemReveal5 12s ease-in-out infinite; animation-delay: 2.1s; }
.output-item:nth-child(6) { animation: itemReveal6 12s ease-in-out infinite; animation-delay: 2.6s; }
.output-item:nth-child(7) { animation: itemReveal7 12s ease-in-out infinite; animation-delay: 3.1s; }

@keyframes itemReveal1 {
    0%, 3% { opacity: 0; transform: translateY(-4px); }
    6%, 50% { opacity: 1; transform: translateY(0); }
    54%, 100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes itemReveal2 {
    0%, 3% { opacity: 0; transform: translateY(-4px); }
    6%, 45.8% { opacity: 1; transform: translateY(0); }
    50%, 100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes itemReveal3 {
    0%, 3% { opacity: 0; transform: translateY(-4px); }
    6%, 41.7% { opacity: 1; transform: translateY(0); }
    45.8%, 100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes itemReveal4 {
    0%, 3% { opacity: 0; transform: translateY(-4px); }
    6%, 37.5% { opacity: 1; transform: translateY(0); }
    41.7%, 100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes itemReveal5 {
    0%, 3% { opacity: 0; transform: translateY(-4px); }
    6%, 33.3% { opacity: 1; transform: translateY(0); }
    37.5%, 100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes itemReveal6 {
    0%, 3% { opacity: 0; transform: translateY(-4px); }
    6%, 29.2% { opacity: 1; transform: translateY(0); }
    33.3%, 100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes itemReveal7 {
    0%, 3% { opacity: 0; transform: translateY(-4px); }
    6%, 25% { opacity: 1; transform: translateY(0); }
    29.2%, 100% { opacity: 0; transform: translateY(-2px); }
}

/* ===========================
   About Page
   =========================== */

.about-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background: var(--color-bg);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ===========================
   Drill-Down Section
   =========================== */
.drilldown-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-surface-8);
}

.drilldown-header {
    text-align: center;
    margin-bottom: 3rem;
}

.drilldown-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 1rem 0 0.5rem;
}

.drilldown-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.drilldown-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem 0 1.5rem;
    position: relative;
    width: fit-content;
    margin: 0 auto;
}


.drilldown-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.drilldown-stage .stage-label {
    white-space: nowrap;
}

/* Drill-down connectors */
.dd-connector {
    width: 80px;
    height: 2px;
    position: relative;
    background: var(--color-surface-8);
    border-radius: 1px;
}

.dd-connector .connector-svg {
    display: none;
}

.dd-connector .connector-dots {
    z-index: 2;
}

.dd-dot {
    background: var(--color-primary);
    width: 8px;
    height: 8px;
    top: -4px;
    box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Select card (pain point) */
.dd-card-select {
    width: 240px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: default;
}

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

.dd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dd-rank {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-primary-10);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
}

.dd-complexity {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-surface-5);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
}

.dd-card-text {
    font-size: 0.9375rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.dd-card-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.dd-card-cta svg {
    flex-shrink: 0;
}

/* Agent node (analysis center) */
.dd-agent-node {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-agent-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--color-primary);
}

.dd-agent-label {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

/* Dashboard output */
.dd-dashboard {
    width: 240px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.dd-dashboard-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--color-surface-2);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--color-text);
    font-weight: 500;
}

.dd-dash-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dd-dash-icon.complexity-icon {
    background: var(--color-primary-10);
    color: var(--color-primary);
}

.dd-dash-icon.tarpit-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-warning);
}

.dd-dash-icon.social-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dd-dash-icon.tam-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dd-dash-icon.competitors-icon {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

@keyframes dotTravelVert {
    0% { top: 0; left: -1px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; left: -1px; opacity: 0; }
}

/* ===========================
   Static Diagrams (mobile/tablet)
   =========================== */

.diagram-static {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
    padding: 1.5rem 0 1rem;
}

.static-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.static-step-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-surface-5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.static-step-icon--primary {
    background: var(--color-primary-10);
    color: var(--color-primary);
}

.static-step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.static-step-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.static-step-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.static-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    opacity: 0.4;
}

/* ===========================
   Social Proof Section
   =========================== */
.social-proof-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--color-surface-8);
}

.social-demo {
    max-width: 720px;
    margin: 0 auto;
}

.social-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.social-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: default;
}

.social-tab:hover {
    background: var(--color-surface-2);
    border-color: var(--color-surface-8);
    color: var(--color-text-muted);
}

.social-tab.active {
    background: var(--color-primary-10);
    border-color: var(--color-primary);
    color: var(--color-text);
}

.social-demo-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-demo-post {
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.sdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}

.sdp-author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sdp-x-icon {
    opacity: 0.5;
}

.sdp-username {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.sdp-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.sdp-body {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.sdp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sdp-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sdp-score,
.sdp-comments,
.sdp-views {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sdp-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: default;
}

.social-engage {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-primary-5);
    border: 1px solid var(--color-primary-15);
    border-radius: var(--radius-lg);
}

.social-engage-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--color-primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.social-engage-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.social-engage-text strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.social-engage-text span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Responsive social proof */
@media (max-width: 768px) {
    .social-proof-section {
        margin-top: 4rem;
        padding-top: 3rem;
    }

    .social-tabs {
        flex-wrap: wrap;
    }

    .social-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .social-demo-post {
        padding: 1rem 1.25rem;
    }

    .sdp-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .social-engage {
        flex-direction: column;
        text-align: center;
    }
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
}

.about-image {
    width: 220px;
    height: 220px;
    max-width: 220px;
    max-height: 220px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-30);
    object-fit: cover;

    display: block;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-heading {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.story-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.story-beat {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: -0.75rem;
}

.story-closing {
    font-style: italic;
}

.story-sign-off {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: -0.5rem;
}

/* ===========================
   Contact Form
   =========================== */

.about-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.contact-input {
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-primary-15);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

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

/* ===========================
   Legal Pages (Privacy, Terms)
   =========================== */

.legal-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

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

.legal-content li {
    margin-bottom: 0.375rem;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-primary-15);
    padding: 3rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.footer-col-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--color-primary-15);
    padding-top: 1.5rem;
    text-align: center;
}

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

/* ===========================
   Responsive — Tablet (1024px)
   =========================== */

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-left {
        gap: 1.5rem;
    }

    .nav-welcome {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }

    .pricing-card-featured {
        transform: none;
    }

    .hero::before,
    .hero::after {
        width: 35%;
        opacity: 0.12;
    }

    .hero-glow {
        width: 400px;
        height: 280px;
    }

    .profile-card {
        padding: 1.5rem;
    }
}

/* ===========================
   Responsive — Diagrams: swap to static (1024px)
   =========================== */

@media (max-width: 1024px) {
    /* Hide animated diagrams, show static ones */
    .diagram-animated,
    .drilldown-animated {
        display: none;
    }

    .diagram-static {
        display: flex;
    }

    .drilldown-title {
        font-size: 1.75rem;
    }

    .drilldown-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }
}

/* ===========================
   Responsive — Mobile (768px)
   =========================== */

@media (max-width: 768px) {
    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-right .btn,
    .nav-right form,
    .nav-welcome {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .nav-mobile-auth {
        display: flex;
        flex-direction: column;
        border-top: 1px solid var(--color-border);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    /* Pages */
    .hero {
        padding: 5rem 1.25rem 3rem;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .pricing-page,
    .solutions-page,
    .about-page {
        padding: 6rem 1.25rem 3rem;
    }

    .auth-page {
        padding: 5rem 1.25rem 3rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    /* Hero */
    .hero-subtitle {
        font-size: 1.05rem;
    }

    .prompt-box {
        max-width: 100%;
    }

    .hero-proof {
        flex-direction: column;
        gap: 1.5rem;
    }

    .proof-divider {
        width: 36px;
        height: 1px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    /* About */
    .about-image {
        width: 120px;
        height: 120px;
        max-width: 120px;
        max-height: 120px;
    }

    .story-heading {
        font-size: 1.5rem;
    }

    .story-paragraph {
        font-size: 1rem;
    }

    /* Drilldown */
    .drilldown-title {
        font-size: 1.5rem;
    }

    .drilldown-subtitle {
        font-size: 0.9375rem;
    }

    /* Results */
    .results-section {
        padding: 1.5rem 1rem;
    }

    .result-meta {
        padding-left: 2.75rem;
        flex-wrap: wrap;
    }

    .hero-glow {
        display: none;
    }

    .profile-card {
        padding: 1.25rem;
    }
}

/* ===========================
   Responsive — Small Mobile (480px)
   =========================== */

@media (max-width: 480px) {
    .hero-prompt {
        margin-bottom: 2.5rem;
    }

    .results-title {
        font-size: 1.25rem;
    }

    .result-content {
        gap: 0.625rem;
    }

    .result-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .result-meta {
        padding-left: 1.5rem;
    }

    .profile-card {
        padding: 1rem;
    }

    .complexity-bar {
        width: 12px;
    }

    .limit-title {
        font-size: 1.375rem;
    }

    .limit-text {
        font-size: 0.9rem;
    }

    /* Static diagrams — compact mobile */
    .solutions-page {
        padding: 5rem 1rem 2rem;
    }

    .diagram-static {
        max-width: 100%;
    }

    .static-step {
        padding: 1rem;
    }

    .static-step-icon {
        width: 36px;
        height: 36px;
    }

    .static-step-icon svg {
        width: 20px;
        height: 20px;
    }

    .static-step-title {
        font-size: 0.9375rem;
    }

    .static-step-desc {
        font-size: 0.8125rem;
    }

    .drilldown-title {
        font-size: 1.25rem;
    }

    .drilldown-subtitle {
        font-size: 0.875rem;
    }

    .drilldown-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

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

    /* Social proof — compact */
    .social-proof-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .sdp-body {
        font-size: 0.8125rem;
    }
}

/* ===========================
   Shared Utilities
   =========================== */

.btn-icon-inline {
    display: inline;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.btn-icon-inline-sm {
    display: inline;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.btn-icon-left {
    margin-right: 0.5rem;
}

.inline-form {
    display: inline;
}

.auth-card--wide {
    max-width: 600px;
}

.auth-info-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-primary-10);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-primary-20);
}

.auth-info-text {
    margin: 0;
    color: var(--color-text);
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-success-icon {
    margin-top: 2rem;
    text-align: center;
}

.auth-success-icon svg {
    opacity: 0.8;
}

.auth-field-hint {
    text-align: right;
    margin-top: 0.5rem;
}

.auth-field-hint .auth-link {
    font-size: 0.875rem;
}

/* ===========================
   Profile Page
   =========================== */

.profile-page {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    position: relative;
}

.profile-page .hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-page .hero-title {
    margin-bottom: 0.5rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.verification-banner {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(251, 191, 36, 0.3);
    animation: slideDown 0.4s ease;
}

.verification-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.verification-banner-content > svg {
    color: var(--color-warning);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.verification-banner-text {
    flex: 1;
}

.verification-banner-title {
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
}

.verification-banner-description {
    margin: 0 0 1rem 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.verification-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.verification-banner-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-1px);
}

.verification-banner-btn svg {
    flex-shrink: 0;
}

.profile-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-xl);
    padding: 2rem;
    animation: fadeInUp 0.5s ease;
    cursor: default;
}

.profile-card-primary {
    border-color: var(--color-primary-30);
    background: var(--color-primary-5);
}

.profile-card-primary:hover {
    border-color: var(--color-primary-30);
    background: var(--color-primary-5);
}

.profile-card-danger {
    border: 2px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.03);
}

.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }
.profile-card:nth-child(4) { animation-delay: 0.4s; }
.profile-card:nth-child(5) { animation-delay: 0.5s; }

/* Card edit button */
.card-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    background: var(--color-surface-8);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-edit-btn:hover {
    background: var(--color-primary-15);
    color: var(--color-primary);
}

.card-edit-btn svg {
    flex-shrink: 0;
}

/* Danger card styles */
.card-icon-danger {
    color: #ef4444;
}

.danger-description {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.delete-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.delete-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    width: 100%;
}

.delete-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.delete-form-label {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-danger:disabled:hover {
    background: transparent;
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Delete confirmation modal */
.delete-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.delete-modal-overlay.active {
    display: flex;
}

.delete-modal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.delete-modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.75rem;
}

.delete-modal-text {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.delete-modal-confirm {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.delete-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Support page */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--color-text);
}

.support-intro {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.support-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

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

.support-textarea {
    min-height: 160px;
    resize: vertical;
}

/* Preferences card */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pref-group {
    padding: 0.75rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
}

.pref-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pref-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding-left: 0.125rem;
}

.pref-chip {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface-8);
    border: 1px solid var(--color-surface-15);
    border-radius: var(--radius-lg);
    padding: 0.25rem 0.625rem;
    line-height: 1.3;
}

.pref-empty {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.75rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
}

.pref-empty a {
    color: var(--color-primary);
    text-decoration: none;
}

.pref-empty a:hover {
    text-decoration: underline;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-surface-8);
}

.card-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-field {
    padding: 0.75rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
    cursor: default;
}

.info-field:hover {
    background: var(--color-surface-2);
    border-color: var(--color-surface-8);
}

.info-field-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.info-field-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.info-label {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value-main {
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 600;
    padding-left: 1.125rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-lg);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: auto;
}

.status-badge svg {
    flex-shrink: 0;
}

.status-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.card-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: fit-content;
    justify-content: center;
}

.card-actions .btn svg {
    flex-shrink: 0;
}

.card-actions .btn-secondary {
    transition: all 0.3s ease;
}

.card-actions .btn-secondary:hover {
    background: var(--color-surface-8);
    border-color: var(--color-primary-50);
    color: white;
}

.card-actions .btn-secondary:hover svg {
    color: white;
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-features .feature-item {
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.plan-features .feature-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.plan-status-cancelled {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-warning);
    font-size: 0.875rem;
}

.usage-metric {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.usage-metric-plain {
    margin-bottom: 0.75rem;
}

.usage-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.usage-metric-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.usage-metric-count {
    font-size: 0.875rem;
    color: var(--color-text);
}

.usage-metric-count strong {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.usage-metric-limit {
    color: var(--color-text-muted);
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: var(--color-surface-10);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
    min-width: 0;
}

.usage-metric-footer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: right;
}

.usage-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--color-surface-2);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .profile-page {
        padding: 6rem 1.25rem 3rem;
    }

    .profile-stack {
        gap: 1rem;
    }

    .plan-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .usage-current {
        font-size: 2.5rem;
    }

    .usage-total {
        font-size: 1.5rem;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-actions .btn {
        width: 100%;
    }

    .verification-banner-content {
        flex-direction: column;
    }

    .info-value-main {
        font-size: 0.9375rem;
    }
}

/* ===========================
   Journal Page
   =========================== */

.history-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background: var(--color-bg);
}

.history-container {
    max-width: 1200px;
    margin: 0 auto;
}

.history-header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.header-content {
    margin-bottom: 2rem;
}

.history-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 1rem 0 0.5rem;
}

.history-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0;
}

.history-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--color-surface-4);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    min-width: 140px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Hero */
.journal-search-hero {
    margin-bottom: 1.5rem;
}

.search-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.search-hero-bar {
    display: flex;
    align-items: center;
    background: var(--color-surface-4);
    border: 1px solid var(--color-surface-10);
    border-radius: var(--radius-xl);
    padding: 0.375rem 0.375rem 0.375rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 var(--color-primary-30);
}

.search-hero-bar:focus-within {
    border-color: var(--color-primary-40);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--color-primary-30);
    background: var(--color-surface-5);
}

.search-hero-icon {
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.search-hero-bar:focus-within .search-hero-icon {
    color: var(--color-primary);
}

.search-hero-input {
    flex: 1;
    padding: 0.75rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1rem;
    min-width: 0;
}

.search-hero-input:focus {
    outline: none;
}

.search-hero-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.search-clear {
    position: relative;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-clear:hover {
    color: var(--color-text);
    background: var(--color-surface-10);
}

.search-hero-divider {
    width: 1px;
    height: 24px;
    background: var(--color-surface-15);
    margin: 0 0.25rem;
    flex-shrink: 0;
}

/* Search hero type — custom select variant */
.search-hero-type-wrap .custom-select-trigger {
    background: transparent;
    border: none;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-lg);
}

.search-hero-type-wrap .custom-select-trigger:hover {
    background: var(--color-surface-5);
}

.search-hero-type-wrap.open .custom-select-trigger {
    background: var(--color-surface-5);
}

.search-hero-type-wrap .custom-select-dropdown {
    right: 0;
    left: auto;
    min-width: 150px;
}

.search-hero-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-hero-ai-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-primary-30);
}

.search-hero-ai-btn:active {
    transform: translateY(0);
}

.search-hero-ai-btn.active {
    background: var(--color-primary-hover);
    box-shadow: 0 0 16px var(--color-primary-40);
}

/* Filter Toolbar */
.journal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    background: var(--color-surface-5);
    border: 1px solid var(--color-surface-10);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-chip:hover {
    background: var(--color-surface-8);
    border-color: var(--color-primary-30);
    color: var(--color-text);
}

.filter-chip.active {
    background: var(--color-primary);
    border-color: transparent;
    color: white;
}

.chip-count {
    background: var(--color-surface-20);
    padding: 0.0625rem 0.375rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
}

.filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Custom Select Dropdown */
.custom-select {
    position: relative;
    display: inline-flex;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-surface-5);
    border: 1px solid var(--color-surface-10);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    line-height: 1.4;
}

.custom-select-trigger:hover {
    border-color: var(--color-surface-20);
    background: var(--color-surface-8);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--color-primary-40);
    background: var(--color-surface-8);
}

.custom-select-arrow {
    transition: transform var(--transition-base);
    opacity: 0.5;
    flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
    opacity: 0.8;
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: #15151d;
    border: 1px solid var(--color-surface-15);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    overflow: hidden;
    padding: 0.25rem;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.custom-select.open .custom-select-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.custom-select-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-radius: var(--radius-sm);
}

.custom-select-option:hover {
    background: var(--color-primary-10);
    color: var(--color-text);
}

.custom-select-option.selected {
    color: var(--color-primary);
    font-weight: 500;
    background: var(--color-primary-5);
}

.custom-select-option + .custom-select-option {
    margin-top: 2px;
}

.date-filters {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.date-sep {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.date-filters input[type="date"] {
    padding: 0.5rem 0.75rem;
    background: var(--color-surface-5);
    border: 1px solid var(--color-surface-10);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-filters input[type="date"]:hover {
    border-color: var(--color-surface-20);
    background-color: var(--color-surface-8);
}

.date-filters input[type="date"]:focus {
    outline: none;
    border-color: var(--color-primary-40);
}

.date-filters input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* Results summary */
.results-summary {
    text-align: center;
    padding: 0.625rem;
    background: var(--color-primary-8);
    border: 1px solid var(--color-primary-20);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* AI search loading */
.ai-search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* ---- Journal Grid ---- */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.journal-card {
    position: relative;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.journal-card.ai-match {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary-30), 0 4px 16px var(--color-primary-10);
}

.journal-card.hidden {
    display: none;
}

/* Card header */
.journal-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

/* Favorite button */
.favorite-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    opacity: 0.5;
}

.journal-card:hover .favorite-btn {
    opacity: 1;
}

.favorite-btn:hover {
    color: var(--color-warning);
    background: rgba(251, 191, 36, 0.1);
}

.favorite-btn.favorited {
    color: var(--color-warning);
    opacity: 1;
}

.star-icon {
    transition: all 0.2s ease;
}

.favorite-btn:active .star-icon {
    transform: scale(1.2);
}

/* Category badge */
.journal-card-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface-5);
    padding: 0.1875rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card text link */
.journal-card-text {
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.55;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.journal-card:hover .journal-card-text {
    color: var(--color-primary);
}

/* Card footer */
.journal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-surface-8);
    margin-top: auto;
}

.card-badges {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.card-pain-meter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.card-pain-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.card-pain-dots {
    display: inline-flex;
    gap: 0.2rem;
}

.card-pain-dots .pain-dot {
    width: 7px;
    height: 7px;
}

.tarpit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #f59e0b;
}

.card-badges .trend-badge {
    margin-top: 0;
    padding: 0.1875rem 0.4375rem;
    font-size: 0.6875rem;
    background: var(--color-surface-5);
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
}

.card-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 500;
}

.card-trend-rising { color: #22c55e; }
.card-trend-declining { color: var(--color-text-muted); opacity: 0.7; }

.card-evidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.journal-card-date {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
}

.empty-icon-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.empty-icon {
    color: var(--color-text-muted);
    opacity: 0.3;
}

.empty-icon-wrapper::before {
    display: none;
}

.empty-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.75rem;
}

.empty-state .empty-text {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin: 0 0 2.5rem;
    max-width: 480px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.page-btn {
    padding: 0.625rem 1rem;
    background: var(--color-surface-5);
    border: 1px solid var(--color-surface-10);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: var(--color-surface-8);
    border-color: var(--color-primary-30);
    color: var(--color-text);
}

.page-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: transparent;
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 18, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
}

.loading-overlay-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.loading-overlay-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .history-page {
        padding: 6rem 1.25rem 3rem;
    }

    .history-title {
        font-size: 2rem;
    }

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

    .search-hero-bar {
        flex-wrap: wrap;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .search-hero-input {
        min-width: 100%;
        padding-left: 0.5rem;
    }

    .search-hero-icon {
        display: none;
    }

    .search-hero-divider {
        display: none;
    }

    .journal-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: flex-start;
    }

    .date-filters {
        flex-wrap: wrap;
    }

    .history-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ===========================
   Pain Point Detail Page
   =========================== */

.insight-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.insight-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-surface-5);
    border: 1px solid var(--color-surface-10);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2rem;
}

.back-button:hover {
    background: var(--color-surface-8);
    border-color: var(--color-surface-15);
    transform: translateX(-4px);
}

.insight-header {
    margin-bottom: 3rem;
    text-align: center;
}

.insight-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
}

.insight-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.insight-favorite-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.375rem;
    margin-top: 0.375rem;
    border-radius: var(--radius-md);
    transition: color 0.15s, transform 0.15s;
}

.insight-favorite-btn:hover {
    color: var(--color-warning, #f59e0b);
    transform: scale(1.15);
}

.insight-favorite-btn.favorited {
    color: var(--color-warning, #f59e0b);
}

.insight-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.insight-segment {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.insight-date {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.tam-drawer .analysis-toggle {
    justify-content: flex-start;
}

.tam-drawer .analysis-toggle svg {
    flex-shrink: 0;
}

.tam-value-pill {
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: -0.01em;
}


/* Founder-Problem Fit Meter */

.fit-meter-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.fit-meter-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.fit-meter-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}

.fit-meter-score {
    font-size: 1.25rem;
    font-weight: 700;
}

.fit-score-high { color: var(--color-success); }
.fit-score-mid { color: var(--color-warning, #f59e0b); }
.fit-score-low { color: var(--color-text-muted); }

.fit-meter-bar {
    height: 8px;
    background: var(--color-surface-2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.fit-meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-out;
}

.fit-fill-high { background: var(--color-success); }
.fit-fill-mid { background: var(--color-warning, #f59e0b); }
.fit-fill-low { background: var(--color-text-muted); }

.fit-meter-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.fit-signal {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-surface-2);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
}

/* Stats Bar — compact horizontal row of key metrics */

.insight-stats-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* Pain meter — dots */
.pain-meter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
}

.pain-meter-top {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.pain-meter-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    line-height: 1;
}

.pain-meter-desc {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1;
}

.pain-meter-dots {
    display: flex;
    gap: 0.3rem;
}

.pain-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-surface-15);
    transition: background 0.15s;
}

.pain-level-1 .pain-dot.filled, .pain-level-2 .pain-dot.filled { background: var(--color-success); }
.pain-level-3 .pain-dot.filled { background: var(--color-warning); }
.pain-level-4 .pain-dot.filled, .pain-level-5 .pain-dot.filled { background: var(--color-error); }

/* Stat pills — trend & tarpit */
.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.stat-pill-value {
    font-weight: 600;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-pill--rising .stat-pill-value { color: #22c55e; }
.trend-pill--declining .stat-pill-value { color: #ef4444; }
.trend-pill--stable .stat-pill-value { color: var(--color-text-muted); }

.tarpit-pill {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.06);
}
.tarpit-pill .stat-pill-value { color: #f59e0b; }

/* Section heading — plain text, no icons */

.section-heading {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem;
}

/* Social section */

.social-section {
    margin-bottom: 2rem;
}

/* Analysis drawers — collapsed by default */

.analysis-drawer {
    margin-bottom: 0.5rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
}

.analysis-drawer[open] {
    margin-bottom: 0.75rem;
}

.analysis-toggle {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-toggle::-webkit-details-marker { display: none; }

.analysis-toggle::before {
    content: '\25B6';
    font-size: 0.625rem;
    transition: transform 0.15s ease;
}

.analysis-drawer[open] .analysis-toggle::before {
    transform: rotate(90deg);
}

.analysis-content {
    padding: 0 1rem 1rem;
}

.analysis-content .justification-card {
    background: var(--color-surface);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.analysis-content .justification-card:last-child { margin-bottom: 0; }

.analysis-content .justification-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}

.analysis-content .justification-card-desc {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.tarpit-drawer {
    border-color: rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.04);
}

.tarpit-drawer .analysis-toggle { color: #f59e0b; }

.tarpit-drawer .justification-card {
    border-color: rgba(251, 191, 36, 0.15);
    background: rgba(251, 191, 36, 0.04);
}

/* Compact sections */

.compact-section {
    margin-bottom: 1.5rem;
}

/* Segment chips — tight horizontal wrap */

.segment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.segment-row {
    padding: 0.75rem 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
}

.segment-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.segment-row-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.segment-row-tam {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.segment-row-desc {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* Competitor list — compact rows */

.competitor-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.competitor-row {
    padding: 0.75rem 1rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-md);
}

.competitor-row-left {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.competitor-row-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.competitor-row-pricing {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-surface-10);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.competitor-row-url {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-primary);
    text-decoration: none;
    word-break: break-all;
}

.competitor-row-url:hover { text-decoration: underline; }

.competitor-row-gap {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.gap-label {
    font-weight: 600;
    color: #f59e0b;
}

/* TAM methodology note */
/* Confidence score pill */
.confidence-pill--high .stat-pill-value { color: #10b981; }
.confidence-pill--mid .stat-pill-value { color: #f59e0b; }
.confidence-pill--low .stat-pill-value { color: var(--color-text-muted); }

/* Segment reach & entry wedge */
.segment-row-reach,
.segment-row-wedge {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.reach-label {
    font-weight: 600;
    color: #6366f1;
}

.wedge-label {
    font-weight: 600;
    color: #10b981;
}

/* Differentiation card — inside competitor drawer */
.differentiation-card {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
}

.differentiation-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 0.25rem;
}

.differentiation-label svg { color: #6366f1; }

.differentiation-text {
    font-size: 0.8125rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

/* Next steps list */
.next-steps-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.next-step-item {
    font-size: 0.8125rem;
    color: var(--color-text);
    line-height: 1.5;
    padding-left: 0.25rem;
}

.next-step-item::marker {
    color: var(--color-primary);
    font-weight: 600;
}

/* Evidence Brief */
.evidence-analysis {
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-10);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.evidence-analysis p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

.evidence-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.evidence-theme-chip {
    background: var(--color-surface-5);
    border: 1px solid var(--color-surface-10);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.source-type-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--color-surface-10);
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.source-type-reddit { background: rgba(255, 69, 0, 0.12); color: #ff6b35; }
.source-type-forum { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.source-type-blog { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.source-type-news { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.source-type-review { background: rgba(236, 72, 153, 0.12); color: #f472b6; }
.source-type-qa { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.source-type-social { background: rgba(14, 165, 233, 0.12); color: #38bdf8; }
.source-type-code { background: rgba(163, 163, 163, 0.12); color: #a3a3a3; }

.evidence-source-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.evidence-source-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease;
}

.evidence-source-row:hover {
    background: var(--color-surface-5);
}

.evidence-source-row .evidence-source-title {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evidence-source-domain {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    flex-shrink: 0;
    white-space: nowrap;
}

.evidence-link-icon {
    color: var(--color-text-muted);
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.evidence-source-row:hover .evidence-link-icon {
    opacity: 1;
}

.evidence-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin: 1rem 0 0;
    line-height: 1.4;
}

.insight-limit-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-surface-8);
    border: 1px solid var(--color-surface-15);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.insight-limit-banner svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.insight-limit-banner strong {
    display: block;
    color: var(--color-text);
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.insight-limit-banner p {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    margin: 0;
}

.insight-limit-banner .btn {
    flex-shrink: 0;
    margin-left: auto;
}

.empty-social {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-social .empty-text {
    margin: 0 0 0.5rem;
}

.empty-hint {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
}

.data-sources-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
}

.data-sources-icon {
    color: var(--color-text-muted);
    opacity: 0.3;
}

.data-sources-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    opacity: 0.7;
}

.data-sources-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin: 0;
    opacity: 0.5;
    max-width: 400px;
}

/* (Segments & Competitors styles moved to compact section above) */

/* Startup Ideas */

.ideas-section {
    margin-top: 2rem;
}

.ideas-form {
    text-align: center;
}

.ideas-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.idea-card {
    padding: 1.5rem;
}

.idea-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.5rem;
}

.idea-one-liner {
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 500;
    margin: 0 0 1rem;
    font-style: italic;
}

.idea-detail {
    margin-bottom: 1rem;
}

.idea-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.375rem;
}

.idea-detail-text {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

.idea-revenue {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 500;
    margin: 0;
}

.idea-scorecard {
    border-top: 1px solid var(--color-surface-8);
    padding-top: 1rem;
}

.score-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-row-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.score-bar {
    height: 6px;
    background: var(--color-surface-10);
    border-radius: 3px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.score-bar-fill--primary {
    background: var(--color-primary);
}

.score-bar-fill--success {
    background: #22c55e;
}

.score-bar-fill--accent {
    background: #FBBF24;
}

.idea-overall {
    text-align: center;
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.ideas-upgrade {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-xl);
}

.ideas-upgrade p {
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}

@media (max-width: 768px) {
    .insight-page {
        padding: 6rem 1.25rem 3rem;
    }

    .insight-title {
        font-size: 1.75rem;
    }

    .insight-stats-bar {
        gap: 0.5rem;
    }

    .pain-meter {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .stat-pill {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .segment-list {
        gap: 0.375rem;
    }
}

/* ===========================
   Cancel Subscription
   =========================== */

.warning-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.warning-icon svg {
    color: var(--color-warning);
}

.cancel-info {
    background: var(--color-surface-2);
    border: 1px solid var(--color-surface-8);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cancel-info-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.cancel-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cancel-info-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.cancel-info-list li::before {
    content: "\2022";
    position: absolute;
    left: 0.5rem;
    color: var(--color-primary);
    font-weight: bold;
}

.cancel-confirm {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cancel-page .auth-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cancel-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-surface-8);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===========================
   Change Plan
   =========================== */

.pricing-card-current {
    border-color: var(--color-primary-50) !important;
    background: var(--color-primary-8) !important;
    box-shadow: 0 0 0 1px var(--color-primary-30);
}

.pricing-badge-current {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent)) !important;
}

.plan-actions {
    text-align: center;
    margin-top: 3rem;
}

/* ===========================
   Responsive — Comprehensive
   =========================== */

/* -- Tablet (1024px) additions -- */
@media (max-width: 1024px) {
    .insight-page {
        padding: 7rem 1.5rem 3rem;
    }

    .insight-title {
        font-size: 2rem;
    }

    .history-page {
        padding: 7rem 1.5rem 3rem;
    }

    .profile-page {
        padding: 6rem 1.5rem 3rem;
    }

    .profile-page .hero-container {
        max-width: 800px;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1rem 1.5rem;
    }

    .ideas-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* -- Mobile (768px) additions -- */
@media (max-width: 768px) {
    /* Nav */
    .nav-container {
        height: 60px;
        padding: 0 1.25rem;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    /* Profile */
    .profile-header {
        margin-bottom: 2rem;
    }

    .profile-card {
        padding: 1.25rem;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .card-edit-btn {
        margin-left: 0;
    }

    .pref-group {
        gap: 0.375rem;
    }

    .usage-metric {
        margin-bottom: 0.75rem;
    }

    .delete-modal {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    /* Journal */
    .stat-card {
        padding: 0.875rem 1.25rem;
        min-width: 0;
        flex: 1;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .history-stats {
        flex-direction: row;
        gap: 0.5rem;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .date-filters {
        width: 100%;
    }

    .date-filters input[type="date"] {
        flex: 1;
        min-width: 0;
    }

    .search-hero-ai-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .search-clear {
        position: absolute;
        right: 0.5rem;
        top: 0.625rem;
    }

    .search-hero-bar {
        position: relative;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .page-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    /* Insight Detail */
    .insight-header {
        margin-bottom: 2rem;
    }

    .insight-meta {
        gap: 0.75rem;
    }

    .fit-meter-card {
        padding: 1rem;
    }

    .complexity-simple {
        padding: 1rem 0;
    }

    .complexity-label {
        font-size: 1rem !important;
    }

    .ideas-title {
        font-size: 1.375rem;
    }

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

    .idea-card {
        padding: 1.25rem;
    }

    .ideas-upgrade {
        padding: 1.5rem;
    }

    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        margin-bottom: 1.5rem;
    }

    /* Contact */
    .contact-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .site-footer {
        padding: 2rem 1.25rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Auth pages */
    .auth-card--wide {
        max-width: 100%;
    }
}

/* -- Small mobile (480px) -- */
@media (max-width: 480px) {
    .profile-page {
        padding: 5rem 1rem 2rem;
    }

    .profile-card {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }

    .card-actions {
        gap: 0.5rem;
    }

    .card-actions .btn {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }

    .history-page {
        padding: 5rem 1rem 2rem;
    }

    .history-title {
        font-size: 1.75rem;
    }

    .stat-card {
        padding: 0.75rem 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .journal-card {
        padding: 1rem 1rem 0.75rem;
    }

    .journal-card-text {
        font-size: 0.875rem;
    }

    .insight-page {
        padding: 5rem 1rem 2rem;
    }

    .insight-title {
        font-size: 1.5rem;
    }

    .evidence-source-row {
        padding: 0.375rem 0.5rem;
        gap: 0.5rem;
    }

    .pricing-page,
    .solutions-page,
    .about-page {
        padding: 5rem 1rem 2rem;
    }

    .hero {
        padding: 5rem 1rem 2.5rem;
    }

    .auth-page {
        padding: 5rem 1rem 2rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-field-row {
        grid-template-columns: 1fr;
    }

    .delete-modal {
        padding: 1.25rem;
    }

    .delete-modal-title {
        font-size: 1.125rem;
    }

    .empty-state {
        padding: 3rem 1rem;
    }

    .empty-title {
        font-size: 1.375rem;
    }

    .empty-state .empty-text {
        font-size: 0.9375rem;
    }
}

/* ===========================
   Reduced Motion
   =========================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
