/* ═══════════════════════════════════════════════════════════ */
/* Cold-Traffic Re-Engagement Planner — Design System (Doc 0) */
/* ═══════════════════════════════════════════════════════════ */

/* --- CSS Custom Properties --- */
:root {
    /* Base Colors */
    --bg-primary: #0f2321;
    --bg-secondary: #0a1817;
    --bg-surface: #162d2a;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.10);

    /* Accent Colors */
    --accent-primary: #007a6a;
    --accent-bright: #10b981;
    --accent-glow: rgba(0, 122, 106, 0.35);

    /* Text Colors */
    --text-heading: #ffffff;
    --text-body: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #007a6a;

    /* Data Visualization */
    --bucket-a: #3ecf8e;
    --bucket-b: #6b7280;
    --bucket-b-glow: rgba(93, 156, 236, 0.35);
    --bucket-c: #374151;
    --alert-bg: #3b2a2a;
    --alert-border: #cc4444;
    --alert-text: #ffcccc;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    line-height: 1.2;
}

strong {
    font-weight: 600;
    color: var(--text-heading);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-bright);
}

img {
    max-width: 100%;
    height: auto;
}


/* ═══════════════════════════════════════════════ */
/* STAGE 1: HERO + PERSUASION                     */
/* ═══════════════════════════════════════════════ */

.hero-wrapper {
    display: flex;
    height: 100vh;
    position: relative;
}

/* --- Frosted Form Panel --- */
.form-panel {
    width: 420px;
    min-width: 420px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    padding: 2.5rem 2rem;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    /* Smooth transition for frost lift */
    transition: filter 0.6s ease, opacity 0.6s ease;
}

/* Frosted state — visible but not interactive */
.form-panel.frosted {
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* Revealed state — frost lifted, fully interactive */
.form-panel.revealed {
    filter: blur(0);
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
}

.form-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- Hero Content --- */
.hero-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
}

.hero-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 3rem;
    min-height: 100vh;
}

.hero-headline {
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    max-width: 720px;
}

.hero-underline-wrap {
    position: relative;
    display: inline;
    white-space: nowrap;
}

.hero-sketch-underline {
    position: absolute;
    left: -2%;
    bottom: -14px;
    width: 104%;
    height: 28px;
    pointer-events: none;
}

.hero-attribution {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-subhead {
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--text-body);
    margin-bottom: 0.75rem;
    max-width: 600px;
}

.hero-credibility {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 2.5rem;
}


/* ═══════════════════════════════════════════════ */
/* BUTTONS                                         */
/* ═══════════════════════════════════════════════ */

.cta-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    padding: 0 3.5rem;
    background-color: #007a6a;
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 122, 106, 0.3);
}

.cta-hero:hover {
    background-color: rgba(0, 122, 106, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 122, 106, 0.5);
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 3.5rem;
    padding: 0 3rem;
    background-color: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
    text-decoration: none;
}

.cta-primary:hover {
    background-color: rgba(0, 122, 106, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 122, 106, 0.5);
    color: #ffffff;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 3rem;
    padding: 0 2rem;
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-secondary:hover {
    background-color: rgba(0, 122, 106, 0.1);
    transform: translateY(-1px);
    color: var(--accent-primary);
}


/* ═══════════════════════════════════════════════ */
/* THOUGHT PAPER LINK (Below fold)                 */
/* ═══════════════════════════════════════════════ */

.thought-paper-link {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-primary);
}

.thought-paper-link p {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.thought-paper-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.thought-paper-link a:hover {
    text-decoration: underline;
    color: var(--accent-bright);
}

/* Panel footer */
.panel-footer {
    margin-top: 2.5rem;
    padding-bottom: 2rem;
    text-align: center;
}

.panel-footer-separator {
    border-top: 1px solid var(--accent-primary);
    margin-bottom: 1rem;
}

.panel-footer-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.panel-footer-pipe {
    padding: 0 0.75rem;
}

.panel-footer-title {
    font-weight: 400;
    letter-spacing: 0.05em;
}

.panel-footer-link {
    font-weight: 500;
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.panel-footer-link:hover {
    color: var(--accent-bright);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════ */
/* FORM FIELDS                                     */
/* ═══════════════════════════════════════════════ */

.form-group {
    margin-bottom: 2rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0;
    transition: opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

/* ── Guided Mode ── */

.guided-mode .form-group {
    opacity: 0.35;
}

.guided-mode .form-group.active {
    opacity: 1;
    border-color: var(--accent-primary);
    padding: 1.25rem;
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(0, 122, 106, 0.15);
}

.guided-mode .form-group.completed {
    opacity: 1;
    border-color: transparent;
    padding: 0;
    box-shadow: none;
}

/* Helper text: hidden in guided mode, revealed for active question */
.guided-mode .form-group .helper-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: opacity 0.5s ease, max-height 0.5s ease, margin-top 0.5s ease;
}

.guided-mode .form-group.active .helper-text {
    opacity: 1;
    max-height: 200px;
    margin-top: 0.5rem;
}

/* Generate button guided states */
#generate-btn.dimmed {
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

#generate-btn.ready {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(0, 122, 106, 0.15);
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Coaching text — hidden by default, visible inside active glow ring */
.coaching-text {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--accent-primary);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 1px solid var(--accent-primary);
    transition: opacity 0.4s ease, max-height 0.4s ease, margin-bottom 0.4s ease;
}

.guided-mode .form-group.active .coaching-text {
    opacity: 1;
    max-height: 2rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Generate button coaching text */
#generate-coaching {
    text-align: center;
}

.guided-mode #generate-coaching.visible {
    opacity: 1;
    max-height: 2rem;
    margin-bottom: 0.5rem;
}

.form-group>label:first-of-type {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.form-field {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 0.375rem;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, outline 0.2s;
}

.form-field:focus {
    outline: 2px solid var(--accent-primary);
    border-color: transparent;
}

.form-field::placeholder {
    color: #4a5568;
}

/* Number inputs without spinners */
input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 0.375rem;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, outline 0.2s;
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"]:focus {
    outline: 2px solid var(--accent-primary);
    border-color: transparent;
}

input[type="number"]::placeholder {
    color: #4a5568;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-body);
    cursor: pointer;
    padding: 0.25rem 0;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    accent-color: var(--accent-primary);
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.helper-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Validation error state */
.field-error {
    border-color: var(--alert-border) !important;
}

.field-error input,
.field-error select {
    border-color: var(--alert-border) !important;
}

#generate-btn {
    width: 100%;
    margin-top: 1rem;
}


/* ═══════════════════════════════════════════════ */
/* RESULTS SECTION                                 */
/* ═══════════════════════════════════════════════ */

.results-section {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-primary);
    border-top: none;
}

.results-section.frosted {
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    transition: filter 0.6s ease, opacity 0.6s ease;
}

.results-section.revealed {
    filter: blur(0);
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
}

.results-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

.results-main-heading {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: var(--accent-primary);
    margin-bottom: 3rem;
}

.output-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.output-section:last-child {
    border-bottom: none;
}

.output-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.output-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.output-section p:last-child {
    margin-bottom: 0;
}


/* --- Conditional Blocks --- */
.conditional-block {
    display: none;
}

.conditional-block.active {
    display: block;
}

.conditional-inline {
    /* Inline conditionals controlled by JS display property */
    display: inline;
}


/* --- Forward Hook --- */
.forward-hook-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

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

.forward-hook {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}


/* ═══════════════════════════════════════════════ */
/* NUMBER-FORWARD REVEAL (Decision 39)            */
/* ═══════════════════════════════════════════════ */

.number-reveal {
    text-align: center;
    margin: 2.5rem 0 2.5rem 0;
    padding: 0 1rem;
}

/* --- Line 1: Big number + Unverified --- */
.number-reveal-headline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.number-reveal-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.number-reveal-separator {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.number-reveal-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f59e0b;
    line-height: 1;
    animation: amber-pulse 2s ease-in-out infinite;
}

@keyframes amber-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- Lines 2-3: Math lines --- */
.number-reveal-math {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

.number-reveal-math-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0.4rem 0;
}

.number-reveal-math-line strong {
    font-weight: 700;
    color: #ffffff;
}

/* --- Line 4: Consequence line --- */
.number-reveal-consequence {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.7;
    margin-top: 1.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.diagram-image {
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}


/* --- Bucket Cards --- */
.buckets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bucket-item {
    display: flex;
    flex-direction: column;
}

.bucket-title {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem 0.375rem 0 0;
    text-align: center;
}

.bucket-a-title {
    background-color: rgba(55, 65, 81, 0.3);
    color: var(--text-muted);
    border: 1px solid var(--border-medium);
    border-bottom: none;
}

.bucket-b-title {
    background-color: rgba(62, 207, 142, 0.15);
    color: var(--bucket-a);
    border: 1px solid rgba(62, 207, 142, 0.3);
    border-bottom: none;
}

.bucket-c-title {
    background-color: rgba(55, 65, 81, 0.3);
    color: var(--text-muted);
    border: 1px solid var(--border-medium);
    border-bottom: none;
}

.bucket-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1.25rem;
    flex: 1;
}

/* Bucket B glow */
.bucket-b-glow {
    position: relative;
}

.bucket-b-glow .bucket-card {
    border-color: rgba(62, 207, 142, 0.35);
    box-shadow: 0 0 12px rgba(62, 207, 142, 0.15), 0 0 24px rgba(62, 207, 142, 0.08);
}

/* "This is new" label — floats just above the card */
.bucket-new-wrapper {
    position: absolute;
    top: -1.6rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.bucket-new-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4ade80;
}

.bucket-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-body);
}


/* --- Rule Box --- */
.rule-box {
    background-color: var(--bg-surface);
    padding: 1.75rem;
    border-left: 4px solid var(--accent-primary);
    border-radius: 0.25rem;
    margin: 1.5rem 0;
}

.rule-label {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

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

.rule-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 1rem 0;
}

.rule-reference-label {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.rule-explanation {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* --- Rules List --- */
.rules-list {
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem;
}

.rules-list li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    padding-left: 0.25rem;
}


/* --- Alert Box --- */
.alert-box {
    background-color: var(--alert-bg);
    color: var(--alert-text);
    padding: 1.25rem 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid var(--alert-border);
    font-size: 1rem;
    margin-top: 1.5rem;
}

.repair-alert {
    background-color: var(--alert-bg);
    color: var(--alert-text);
    padding: 1.5rem 2rem;
    border-radius: 0.375rem;
    border-left: 4px solid var(--alert-border);
}

.repair-alert h2 {
    font-size: 1.2rem;
    color: var(--alert-text);
    margin-bottom: 1rem;
}

.repair-alert ul {
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

.repair-alert li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}


/* --- DFY CTA Block --- */
.dfy-cta-block {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}

.dfy-cta-block p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dfy-cta-block .cta-primary .material-symbols-outlined {
    font-size: 1.2rem;
}


/* --- Waitlist Block --- */
.waitlist-block {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.waitlist-block p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}


/* ═══════════════════════════════════════════════ */
/* DATA CARD WITH INTEGRATED REVEAL               */
/* ═══════════════════════════════════════════════ */

.data-card-reveal {
    margin: 2.5rem 0 2.5rem 0;
}

.data-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: var(--border-subtle);
    border: 1px solid var(--border-medium);
    border-radius: 0.5rem;
    overflow: hidden;
}

.data-card-cell {
    background-color: var(--bg-surface);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.data-card-label {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.data-card-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
}

.data-card-pct {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Top row cells — visually recessive */
.data-card-minor {
    opacity: 0.7;
}

.data-card-minor .data-card-value {
    font-size: 1rem;
    font-weight: 500;
}

/* Bottom-left: supporting context */
.data-card-supporting .data-card-value {
    color: var(--text-body);
}

/* Bottom-right: the reveal cell */
.data-card-reveal-cell {
    position: relative;
}

.data-card-big-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.card-underline-wrap {
    position: relative;
    display: inline-block;
}

.card-sketch-underline {
    position: absolute;
    left: -2%;
    bottom: -6px;
    width: 104%;
    height: 14px;
    pointer-events: none;
}

.data-card-reveal-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.data-card-separator {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.data-card-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f59e0b;
    line-height: 1;
    animation: amber-pulse 2s ease-in-out infinite;
}

/* Math lines below card */
.data-card-math {
    max-width: 640px;
    margin: 1.5rem auto 1.25rem auto;
    text-align: center;
}

.data-card-math-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0.4rem 0;
}

.data-card-math-line strong {
    font-weight: 700;
    color: var(--text-body);
}

.data-card-warning {
    font-weight: 700;
    color: #ffffff;
}

/* Consequence line */
.data-card-consequence {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.7;
    margin-top: 1.25rem;
    max-width: 680px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Bridge line */
.data-card-bridge {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
    text-align: center;
    margin-top: 1rem;
}


/* ═══════════════════════════════════════════════ */
/* TESTIMONIALS                                    */
/* ═══════════════════════════════════════════════ */

.section-testimonials {
    border-bottom: none;
    padding-bottom: 0;
}

.testimonial-eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.testimonial-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testimonial-quote {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 0.375rem 0.375rem 0;
    padding: 1.25rem 1.5rem;
    margin: 0;
}

.testimonial-quote p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.testimonial-quote cite {
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    display: block;
}

.testimonial-descriptor {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* ═══════════════════════════════════════════════ */
/* REPAIR CTA                                      */
/* ═══════════════════════════════════════════════ */

.repair-cta {
    margin-top: 1.25rem;
}


/* ═══════════════════════════════════════════════ */
/* CLOSING BEAT                                    */
/* ═══════════════════════════════════════════════ */

.closing-beat {
    text-align: center;
    margin: 3rem 0 2rem;
}

.closing-beat p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.01em;
}


/* ═══════════════════════════════════════════════ */
/* FAQ SECTION (GEO)                               */
/* ═══════════════════════════════════════════════ */

.faq-section {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2.5rem;
    margin-top: 3rem;
}

.faq-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.7;
}


/* ═══════════════════════════════════════════════ */
/* EMAIL GATE MODAL (Doc 3)                        */
/* ═══════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

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

.modal-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 0.75rem;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.modal-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

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

.modal-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.375rem;
}

.modal-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.modal-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.modal-error {
    background-color: var(--alert-bg);
    color: var(--alert-text);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border-left: 3px solid var(--alert-border);
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* Google OAuth button (TODO) */
.google-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 3rem;
    background: #ffffff;
    color: #333333;
    border: 1px solid #dadce0;
    border-radius: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.google-oauth-btn:hover {
    background-color: #f8f9fa;
}


/* ═══════════════════════════════════════════════ */
/* ANIMATIONS                                      */
/* ═══════════════════════════════════════════════ */

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section.revealed .results-inner {
    animation: fadeInSlide 0.6s ease-out;
}


/* ═══════════════════════════════════════════════ */
/* RESPONSIVE                                      */
/* ═══════════════════════════════════════════════ */

/* Tablet-only: 768px – 900px (keeps desktop layout, just adapts sizing) */
@media (min-width: 768px) and (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column;
    }

    .form-panel {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        order: 2;
    }

    .hero-content {
        order: 1;
        padding: 4rem 2rem 3rem;
        max-width: 100%;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .results-inner {
        padding: 3rem 1.5rem;
    }



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

    .bucket-b-glow {
        margin-top: 1rem;
    }
}


/* ═══════════════════════════════════════════════ */
/* MOBILE: below 768px                             */
/* ═══════════════════════════════════════════════ */

@media (max-width: 767px) {

    /* --- Layout: stack vertically --- */
    .hero-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* --- Hero: full-screen on initial load --- */
    .hero-content {
        order: 1;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        overflow-y: visible;
        padding: 3rem 1.5rem 2rem;
        max-width: 100%;
    }

    .hero-content-inner {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .hero-attribution {
        font-size: 0.85rem;
    }

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

    .cta-hero {
        width: 100%;
        font-size: 0.9rem;
        height: 3.5rem;
        padding: 0 2rem;
    }

    /* --- Form panel: HIDDEN on mobile until "Prove It" tapped --- */
    .form-panel {
        display: none;
        width: 100%;
        min-width: unset;
        height: auto;
        border-right: none;
        border-bottom: none;
        order: 2;
        padding: 2rem 1.5rem;
    }

    /* When JS adds this class, form appears below hero */
    .form-panel.mobile-visible {
        display: block;
    }

    /* Override frost on mobile — form appears immediately active */
    .form-panel.mobile-visible.frosted,
    .form-panel.mobile-visible.revealed {
        filter: none;
        opacity: 1;
        pointer-events: auto;
        user-select: auto;
    }

    /* --- Results: full-width below form --- */
    .results-section {
        order: 3;
        height: auto;
        overflow-y: visible;
    }

    .results-inner {
        padding: 2.5rem 1.25rem;
    }

    .results-main-heading {
        font-size: 1.3rem;
    }

    /* --- Data Card (mobile) --- */
    .data-card-grid {
        grid-template-columns: 1fr;
    }

    .data-card-big-number {
        font-size: 1.6rem;
    }

    .data-card-math-line {
        font-size: 0.95rem;
    }

    .data-card-consequence {
        font-size: 0.9rem;
    }

    /* --- Testimonials (mobile) --- */
    .testimonial-quote {
        padding: 1rem 1.25rem;
    }

    /* --- Rule boxes --- */
    .rule-value {
        font-size: 1.5rem;
    }

    /* --- DFY CTAs --- */
    .dfy-cta-block {
        padding: 1.5rem;
    }

    .dfy-cta-block .cta-primary {
        width: 100%;
    }

    /* --- Output sections --- */
    .output-section h2 {
        font-size: 1.1rem;
    }

    /* --- Email gate modal — sized for mobile --- */
    .modal-container {
        padding: 2rem 1.5rem;
        max-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }

    /* --- Bucket cards --- */
    .buckets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* --- Tighten thought paper + footer gap on mobile --- */
    .thought-paper-link {
        padding: 1.5rem 1.5rem 0.5rem;
    }

    .panel-footer {
        margin-top: 0.75rem;
    }

    .panel-footer-line {
        font-size: 0.7rem;
    }

    .panel-footer-title {
        white-space: nowrap;
    }

    .panel-footer-pipe {
        padding: 0 0.35rem;
    }

    /* --- Push teal underline down so it clears the 'p' descender --- */
    .hero-sketch-underline {
        bottom: -20px;
    }
}


/* Small phones: ≤ 390px */
@media (max-width: 390px) {
    .hero-content {
        padding: 2.5rem 1rem 1.5rem;
    }

    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-attribution {
        font-size: 0.8rem;
    }

    .hero-subhead {
        font-size: 1rem;
    }

    .form-panel {
        padding: 1.5rem 1rem;
    }

    .results-inner {
        padding: 2rem 1rem;
    }

    .modal-container {
        padding: 1.5rem 1rem;
    }

    .cta-primary {
        font-size: 0.75rem;
        padding: 0 1.5rem;
        height: 3rem;
    }
}