/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --parchment: #faf8f4;
    --legal-navy: #1a2a44;
    --freedom-blue: #2563eb;
    --justice-amber: #d97706;
    --neutral-divider: #d1d5db;
    --verse-gray: #6b7280;
    --highlight-cream: #fef3c7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    background-color: var(--parchment);
    color: var(--legal-navy);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

/* Balance Scale Motif */
.balance-scale {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto 2.5rem;
}

.scale-beam {
    position: absolute;
    top: 20px;
    left: 0;
    width: 200px;
    height: 2px;
    background-color: var(--legal-navy);
}

.scale-fulcrum {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 24px solid var(--legal-navy);
}

.scale-line-left {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 1px;
    height: 30px;
    background-color: var(--legal-navy);
}

.scale-line-right {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 1px;
    height: 30px;
    background-color: var(--legal-navy);
}

.scale-platform-left {
    position: absolute;
    top: 50px;
    left: 6px;
    width: 30px;
    height: 3px;
    background-color: var(--legal-navy);
}

.scale-platform-right {
    position: absolute;
    top: 50px;
    right: 6px;
    width: 30px;
    height: 3px;
    background-color: var(--legal-navy);
}

.hero-title {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--legal-navy);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--verse-gray);
    max-width: 520px;
    margin: 0 auto;
}

/* Hero Split */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

.hero-left,
.hero-right {
    padding: 2rem;
    text-align: center;
}

.hero-freedom-label {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--legal-navy);
}

.hero-left .hero-freedom-label {
    color: var(--freedom-blue);
}

.hero-right .hero-freedom-label {
    color: var(--justice-amber);
}

.hero-freedom-label em {
    font-style: italic;
    font-weight: 400;
}

.hero-divider {
    width: 1px;
    height: 80px;
    background-color: var(--neutral-divider);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-circle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neutral-divider);
    border-radius: 50%;
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--verse-gray);
    z-index: 2;
    flex-shrink: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator span {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    color: var(--verse-gray);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--verse-gray);
    border-bottom: 2px solid var(--verse-gray);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* === COMPARISON SECTIONS === */
.comparison-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Center Divider Line */
.center-divider {
    position: relative;
    width: 1px;
    background-color: var(--neutral-divider);
}

.center-divider::before {
    content: '';
    position: absolute;
    top: -4rem;
    bottom: -4rem;
    left: 0;
    width: 1px;
    background-color: var(--neutral-divider);
}

/* Freedom Panels */
.freedom-panel {
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.freedom-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.freedom-a {
    padding-right: 2rem;
}

.freedom-b {
    padding-left: 2rem;
}

.freedom-header {
    margin-bottom: 1.25rem;
}

.freedom-tag {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.tag-a {
    color: var(--freedom-blue);
    background-color: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tag-b {
    color: var(--justice-amber);
    background-color: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.freedom-title {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--legal-navy);
    line-height: 1.3;
}

.freedom-a .freedom-title {
    border-left: 3px solid var(--freedom-blue);
    padding-left: 0.75rem;
}

.freedom-b .freedom-title {
    border-left: 3px solid var(--justice-amber);
    padding-left: 0.75rem;
}

.freedom-description {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--legal-navy);
    margin-bottom: 1.5rem;
}

/* Constitutional Quote Blocks */
.constitutional-quote {
    border-left: 4px solid var(--legal-navy);
    background: var(--highlight-cream);
    padding: 1.5rem;
    font-family: 'Spectral', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--legal-navy);
    margin-bottom: 1.5rem;
}

.constitutional-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--verse-gray);
}

/* Arguments */
.freedom-arguments h3 {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--verse-gray);
    margin-bottom: 0.75rem;
}

.freedom-arguments ul {
    list-style: none;
    padding: 0;
}

.freedom-arguments li {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--legal-navy);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.freedom-arguments li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: var(--neutral-divider);
}

/* Footnote Markers */
.footnote-marker {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    color: var(--freedom-blue);
    cursor: help;
    position: relative;
    vertical-align: super;
    line-height: 0;
}

.footnote-marker::after {
    content: attr(data-note);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--legal-navy);
    color: var(--parchment);
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.5;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10;
    white-space: normal;
}

.footnote-marker:hover::after,
.footnote-marker.tooltip-active::after {
    opacity: 1;
}

/* VS Circle for sections */
.section-vs {
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
}

/* Tension Bar */
.tension-bar-container {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.tension-bar-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.tension-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.tension-label-left,
.tension-label-right {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--verse-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tension-label-left {
    color: var(--freedom-blue);
}

.tension-label-right {
    color: var(--justice-amber);
}

.tension-bar {
    background: linear-gradient(90deg, #2563eb, #d1d5db 50%, #d97706);
    height: 4px;
    border-radius: 2px;
    position: relative;
    margin-bottom: 1rem;
}

.tension-indicator {
    position: absolute;
    top: 50%;
    left: var(--consensus-position);
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--parchment);
    border: 2px solid var(--legal-navy);
    transition: left 1s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.tension-annotation {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--verse-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* === SYNTHESIS FOOTER === */
.synthesis-section {
    padding: 6rem 2rem;
    background: var(--legal-navy);
    color: var(--parchment);
}

.synthesis-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.synthesis-title {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--parchment);
    margin-bottom: 2rem;
}

.synthesis-body {
    text-align: left;
}

.synthesis-body p {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(250, 248, 244, 0.9);
    margin-bottom: 1.5rem;
}

.synthesis-body em {
    font-style: italic;
}

.synthesis-quote {
    border-left-color: var(--justice-amber);
    background: rgba(254, 243, 199, 0.1);
    color: var(--parchment);
    margin: 2rem 0;
}

.synthesis-quote cite {
    color: rgba(250, 248, 244, 0.6);
}

.synthesis-principles {
    margin: 2rem 0;
    padding: 2rem;
    border: 1px solid rgba(250, 248, 244, 0.15);
    border-radius: 4px;
    text-align: left;
}

.synthesis-principles h3 {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(250, 248, 244, 0.6);
    margin-bottom: 1.25rem;
}

.synthesis-principles ul {
    list-style: none;
    padding: 0;
}

.synthesis-principles li {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(250, 248, 244, 0.85);
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    position: relative;
}

.synthesis-principles li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: var(--justice-amber);
}

.synthesis-principles li strong {
    color: var(--parchment);
}

.synthesis-closing {
    font-family: 'Spectral', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(250, 248, 244, 0.7);
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 248, 244, 0.15);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-divider {
        width: 100%;
        height: 1px;
        background-color: var(--neutral-divider);
        margin: 1rem 0;
    }

    .hero-left,
    .hero-right {
        padding: 1rem;
    }

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

    .center-divider {
        width: 100%;
        height: 1px;
        background-color: var(--neutral-divider);
        margin: 1.5rem 0;
    }

    .center-divider::before {
        display: none;
    }

    .freedom-a {
        padding-right: 0;
        padding: 1rem;
    }

    .freedom-b {
        padding-left: 0;
        padding: 1rem;
    }

    .section-vs {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
    }

    .comparison-section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .footnote-marker::after {
        left: auto;
        right: 0;
        transform: none;
        width: 220px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .hero-content {
    animation: fadeInUp 1s ease forwards;
}

.hero-section .hero-split {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-section .scroll-indicator {
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}
