/* ═══════════════════════════════════════════════════════════ */
/* 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: 0.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;
}


/* --- Diagram / Venn --- */
.diagram-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.diagram-panel {
    text-align: center;
}

.diagram-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.diagram-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
}

.circles-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.circle-engaged {
    background-color: var(--bucket-a);
}

.circle-unengaged-dark {
    background-color: var(--bucket-c);
    border: 1px solid var(--border-medium);
}

.circle-confirmed-small {
    background-color: var(--bucket-a);
    width: 80px;
    height: 80px;
}

.circle-phantom {
    background-color: var(--bucket-b);
    box-shadow: 0 0 20px var(--bucket-b-glow);
}

.circle-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.circle-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.2;
    margin-top: 0.2rem;
}

/* Venn overlapping circles */
.venn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 120px;
}

.venn-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.venn-left {
    background-color: var(--bucket-a);
    margin-right: -15px;
}

.venn-phantom {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--bucket-b);
    box-shadow: 0 0 25px var(--bucket-b-glow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.venn-right {
    background-color: var(--bucket-c);
    border: 1px solid var(--border-medium);
    margin-left: -15px;
}

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


/* --- Postgen Centered Text --- */
.postgen-centered-text {
    text-align: center;
    padding: 2rem 0;
}

.postgen-headline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.postgen-subtext {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.postgen-reassurance {
    font-size: 0.95rem;
    color: var(--accent-bright);
    font-weight: 500;
}

.scroll-arrow {
    margin-top: 1.5rem;
    color: var(--text-muted);
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}


/* --- 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(62, 207, 142, 0.15);
    color: var(--bucket-a);
    border: 1px solid rgba(62, 207, 142, 0.3);
    border-bottom: none;
}

.bucket-b-title {
    background-color: rgba(93, 156, 236, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(93, 156, 236, 0.2);
    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-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;
}


/* ═══════════════════════════════════════════════ */
/* 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: ≤ 900px */
@media (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;
    }

    .diagram-comparison {
        gap: 1.5rem;
    }

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

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
    .hero-content {
        padding: 3rem 1.5rem 2rem;
    }

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

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

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

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

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

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

    .diagram-comparison {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .circle {
        width: 85px;
        height: 85px;
    }

    .venn-circle {
        width: 85px;
        height: 85px;
    }

    .venn-phantom {
        width: 75px;
        height: 75px;
    }

    .circle-number {
        font-size: 0.9rem;
    }

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

    .dfy-cta-block {
        padding: 1.5rem;
    }

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

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

    .output-section h2 {
        font-size: 1.1rem;
    }
}

/* 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;
    }
}