/* freedom.compare — Airy Minimalist Magazine */
/* Palette: #ffffff, #1a1a1a, #e5e5e5, #2563eb, #d97706, #6b7280, #f3f4f6 */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.75;
}

/* ========================================
   Utility Classes
   ======================================== */

.blue-text { color: #2563eb; }
.amber-text { color: #d97706; }

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Section 1: Hero / The Question
   ======================================== */

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

.hero-inner {
    text-align: center;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.scales-icon {
    opacity: 0.7;
}

.brand {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.hero-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 24px;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: 'Source Code Pro', monospace;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    line-height: 1;
}

.stat-blue { color: #2563eb; }
.stat-amber { color: #d97706; }

.stat-vs {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.hero-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
}

.hero-question {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: #1a1a1a;
    font-style: italic;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: hintPulse 2.5s ease-in-out infinite;
}

.scroll-hint-text {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
}

/* ========================================
   Section 2: Comparison
   ======================================== */

.comparison {
    padding: 6rem 2rem 8rem;
    max-width: 960px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 4rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 32px;
    align-items: center;
}

/* Column Headers */
.compare-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 2rem;
}

.compare-country-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.compare-country-name {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.compare-overall {
    font-family: 'Source Code Pro', monospace;
    font-size: 2.5rem;
    line-height: 1;
}

.compare-divider-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2.5rem;
    border-bottom: none;
    margin-bottom: 2rem;
    position: relative;
}

.compare-divider-header::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e5e5e5;
}

.vs-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: #ffffff;
    padding: 4px 8px;
    position: relative;
    z-index: 1;
}

/* Metric Rows */
.metric-value {
    padding: 1.25rem 0;
}

.metric-value.metric-left {
    text-align: right;
}

.metric-value.metric-right {
    text-align: left;
}

.metric-number {
    font-family: 'Source Code Pro', monospace;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-bar {
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.metric-value.metric-left .metric-bar {
    direction: rtl;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fill-blue { background: #2563eb; }
.fill-amber { background: #d97706; }

.metric-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 1.25rem 0;
    position: relative;
}

.metric-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 1px;
    background: #e5e5e5;
    z-index: -1;
}

/* ========================================
   Section 3: Analysis
   ======================================== */

.analysis {
    padding: 6rem 2rem 8rem;
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
}

.analysis-inner {
    max-width: 680px;
    margin: 0 auto;
}

.analysis .section-heading {
    margin-bottom: 3rem;
}

.pull-quote {
    padding: 3rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin: 2.5rem 0;
}

.pull-quote blockquote {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #1a1a1a;
    font-style: italic;
    line-height: 1.6;
    text-align: center;
}

.editorial-text {
    margin-bottom: 1.5rem;
}

.editorial-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1a1a1a;
    line-height: 1.75;
}

/* ========================================
   Section 4: Conclusion
   ======================================== */

.conclusion {
    padding: 6rem 2rem 8rem;
    border-top: 1px solid #e5e5e5;
}

.conclusion-inner {
    max-width: 780px;
    margin: 0 auto;
}

.conclusion .section-heading {
    margin-bottom: 3rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 4rem;
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.summary-name {
    font-family: 'Cormorant', serif;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.summary-blue .summary-name { color: #2563eb; }
.summary-amber .summary-name { color: #d97706; }

.summary-score {
    font-family: 'Source Code Pro', monospace;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.summary-blue .summary-score { color: #2563eb; }
.summary-amber .summary-score { color: #d97706; }

.summary-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.summary-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.summary-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e5e5e5;
}

.summary-divider .vs-badge {
    z-index: 1;
}

.final-metric {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.final-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1rem;
}

.final-bar-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}

.final-bar {
    flex: 1;
    height: 10px;
    background: #f3f4f6;
    border-radius: 5px;
    overflow: hidden;
}

.final-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.conclusion-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

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

.site-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid #e5e5e5;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .compare-divider-header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .compare-divider-header::before {
        display: none;
    }

    .compare-header {
        border-bottom: none;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }

    .metric-label {
        padding: 0.5rem 0 0.25rem;
    }

    .metric-label::before {
        display: none;
    }

    .metric-value {
        padding: 0.25rem 0 1rem;
    }

    .metric-value.metric-left,
    .metric-value.metric-right {
        text-align: left;
    }

    .metric-value.metric-left .metric-bar {
        direction: ltr;
    }

    .metric-value.metric-left .metric-number::after {
        content: ' — Northland';
        font-family: 'Inter', sans-serif;
        font-size: 0.65rem;
        color: #6b7280;
    }

    .metric-value.metric-right .metric-number::after {
        content: ' — Eastmark';
        font-family: 'Inter', sans-serif;
        font-size: 0.65rem;
        color: #6b7280;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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