:root {
    --bg-color: #f4f4f0; /* Off-white / Paper */
    --panel-bg: #ffffff;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent-color: #FF3B30; /* International Orange / Alert */
    --border-color: #111111;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Newsreader', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    overflow: hidden; /* Prevent body scroll, handle in columns */
}

.split-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Column: Sticky Panel */
.sticky-panel {
    flex: 0 0 50%;
    background-color: var(--panel-bg);
    border-right: 2px solid var(--border-color);
    padding: 2rem 4rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.brand-header {
    margin-bottom: 2rem;
    width: 100%;
}

.brand-logo {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Brand styles removed for CRO */

.hero-content {
    width: 100%;
    max-width: 500px;
    margin: auto; /* Center vertically and horizontally in remaining space */
    text-align: center; /* Ensure text is centered */
}

h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 0.95;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem; /* Reduced from 4rem */
    max-width: 90%;
}

/* CRO-Focused Form */
.cta-container {
    background: var(--bg-color);
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    box-shadow: 8px 8px 0px var(--border-color); /* Brutalist shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-container:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0px var(--border-color);
}

.cta-label {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.input-group {
    display: flex;
    gap: 0;
    border: 2px solid var(--border-color);
    position: relative;
    background: white;
}

.input-group:focus-within {
    border-color: var(--accent-color);
}

input[type="text"] {
    flex: 1;
    padding: 1.25rem 1rem;
    border: none;
    font-family: var(--font-display);
    font-size: 1.125rem;
    background: transparent;
    color: var(--text-primary);
    width: 100%;
    min-width: 0; /* Prevent flex overflow */
}

input[type="text"]:focus {
    outline: none;
}

input[type="text"]::placeholder {
    color: #999;
}

button {
    padding: 0 2rem;
    background: #111; /* Solid Black */
    color: white;
    border: none; /* Remove border to act as a solid block */
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap; /* Prevent wrapping */
}

button:hover {
    background: #333; /* Dark Grey hover */
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    border-left-color: #ccc;
}

/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    animation: rotate 2s linear infinite;
}
.spinner circle {
    stroke: currentColor;
    stroke-width: 4;
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Results Dashboard - Styled to match EasyDMARC clean look */
.results-dashboard {
    animation: fadeIn 0.5s ease;
    width: 100%;
}

.risk-box {
    border: 1px solid #ccc;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left-width: 6px; /* Thick colored left border */
}

.risk-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.risk-title {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.risk-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

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

.dashboard-grid {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Score Card */
.score-card {
    flex: 0 0 140px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.donut-chart {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.donut-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 8;
}

.donut-ring {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1s ease-out;
}

.donut-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
}

.donut-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    fill: var(--text-secondary);
}

.score-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Protocols */
.protocols-list {
    flex: 1;
    display: flex;
    gap: 1rem;
    overflow-x: auto; /* Handle narrow screens */
}

.protocol-card {
    flex: 1;
    min-width: 100px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.dots-indicator {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.protocol-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.protocol-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cta-actions {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.retry-btn {
    margin-top: 1rem;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: auto;
    display: inline-flex;
}

/* Lead Form Styles */
.lead-form input:focus {
    border-color: #111;
    outline: none;
    background: white;
}

.primary-btn {
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    background: #e03228 !important;
}
@media (max-width: 600px) {
    .dashboard-grid {
        flex-direction: column;
    }
    
    .score-card {
        width: 100%;
        flex: none;
    }
    
    .protocols-list {
        flex-direction: column;
    }
}

.micro-copy {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-style: italic;
    opacity: 0.8;
}

/* Right Column: Scrollable Content */
.scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 6rem 4rem;
    background-color: var(--bg-color);
}

.story-block {
    max-width: 600px;
    margin: 0 auto;
}

.lead-in {
    font-size: 1.75rem;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

strong {
    font-weight: 600;
    background: rgba(255, 59, 48, 0.1);
    padding: 0 4px;
}

h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.divider {
    border: 0;
    height: 2px;
    background: var(--border-color);
    margin: 4rem auto;
    max-width: 100px;
}

.stat-box {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
}

.closing-statement {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: relative; /* Changed from absolute to relative */
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center; /* Center the content */
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
    margin: 1rem 0; /* Reduced from 2rem 0 */
    animation: bounce 2s infinite;
    z-index: 5;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(5px); } /* Bounce down instead of up since it's above content */
    60% { transform: translateY(3px); }
}

/* Mobile Responsiveness */
@media (max-width: 960px) {
    .split-layout {
        flex-direction: column;
        height: auto;
        overflow: auto;
    }
    
    body {
        overflow: auto;
    }

    .sticky-panel {
        padding: 2rem 1.5rem; /* Reduced padding on mobile too */
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        display: block; /* Disable flex centering on mobile */
    }

    /* Brand styles removed */

    .hero-content {
        max-width: 100%;
    }

    h1 {
        font-size: 3rem;
    }

    .scroll-content {
        padding: 3rem 1.5rem;
    }

    .cta-container {
        box-shadow: 4px 4px 0px var(--border-color);
    }
}
