:root {
    --bg: #f5f1e8;
    --bg-card: #ede8db;
    --bg-highlight: #ffffff;
    --ink: #0e0e0e;
    --ink-muted: #5a5752;
    --rule: #1a1a1a;
    --rule-soft: #c8c2b3;
    --accent-good: #166534;
    --accent-bad: #991b1b;
    --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Condensed', sans-serif;
    --serif: var(--display);
    --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.6;
    font-size: 17px;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.015) 0, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.015) 0, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--ink);
    z-index: 100;
    transition: width 0.1s ease;
    width: 0;
}

.meta-bar {
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-bar .left { color: var(--ink); }
.meta-bar .right { color: var(--ink-muted); }
.meta-bar a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.meta-bar a:hover { border-bottom-color: currentColor; }

.breadcrumbs {
    padding: 16px 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.breadcrumbs a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { margin: 0 12px; }

.hero {
    padding: 120px 0 80px;
    border-bottom: 1px solid var(--rule);
}

.hero-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ink);
}

/* Big Shoulders Display — industrial geometric display sans */
h1.hero-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(56px, 11vw, 160px);
    line-height: 0.92;
    letter-spacing: -0.005em;
    margin-bottom: 48px;
    max-width: 16ch;
    text-transform: none;
}

/* No italic in Big Shoulders — emphasis via heavy weight */
h1.hero-title em {
    font-style: normal;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink-muted);
    max-width: 60ch;
    font-weight: 300;
}

.hero-meta {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--rule-soft);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    font-family: var(--mono);
    font-size: 12px;
}

.hero-meta .item .label {
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: block;
}

.hero-meta .item .value {
    color: var(--ink);
    font-size: 14px;
}

section.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--rule-soft);
}

.section-num {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: 24px;
}

h2.section-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.0;
    letter-spacing: -0.005em;
    margin-bottom: 48px;
    max-width: 22ch;
}

h2.section-title em {
    font-style: normal;
    font-weight: 900;
}

h3.subsection-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 36px;
    line-height: 1.1;
    margin: 48px 0 16px;
}

.section-body {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.65;
}

.section-body p { margin-bottom: 24px; }

.section-body strong {
    font-weight: 500;
    color: var(--ink);
}

.section-body a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    transition: opacity 0.2s;
}

.section-body a:hover { opacity: 0.6; }

.section-body code {
    font-family: var(--mono);
    font-size: 14px;
    background: var(--bg-card);
    padding: 2px 6px;
    border: 1px solid var(--rule-soft);
}

.section-body ul, .section-body ol {
    margin: 24px 0;
    padding-left: 32px;
}

.section-body li { margin-bottom: 12px; }

.pull-quote {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.05;
    margin: 48px 0;
    padding-left: 32px;
    border-left: 3px solid var(--ink);
    max-width: 28ch;
    letter-spacing: -0.005em;
}

/* === Comparison table — REDESIGNED === */
.comparison-wrap {
    margin-top: 48px;
    overflow-x: auto;
    border: 1px solid var(--rule);
}

table.comparison {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 13px;
    min-width: 820px;
    background: var(--bg);
}

table.comparison th,
table.comparison td {
    text-align: left;
    padding: 18px 20px;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: middle;
}

table.comparison thead th {
    background: var(--ink);
    color: var(--bg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 500;
    border-bottom: none;
}

table.comparison tr:last-child td { border-bottom: none; }

table.comparison td.provider {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 15px;
}

table.comparison tr.featured td {
    background: var(--bg-highlight);
}

table.comparison tr.featured td:first-child {
    box-shadow: inset 5px 0 0 var(--accent-good);
}

table.comparison tr.featured td.provider {
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
}

.first-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-good);
    color: #ffffff;
    font-size: 10px;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    font-family: var(--mono);
    border-radius: 2px;
}

.check, .cross {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    margin-right: 6px;
}

.check { color: var(--accent-good); }
.cross { color: var(--accent-bad); opacity: 0.55; font-weight: 600; }

table.comparison td.cell-empty {
    color: var(--ink-muted);
    font-style: italic;
    font-size: 12px;
}

.numbered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 48px;
    margin-top: 48px;
}

.numbered-item .num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 64px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.numbered-item h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.numbered-item p {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.6;
}

.specs {
    background: var(--bg-card);
    padding: 48px;
    margin-top: 48px;
    border: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
}

.specs-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule-soft);
}

.specs-row:last-child { border-bottom: none; }

.specs-row .key {
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
}

.specs-row .val { color: var(--ink); }

.faq-list { margin-top: 48px; }

.faq-item {
    border-top: 1px solid var(--rule);
    padding: 32px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-question {
    cursor: pointer;
    list-style: none;
    font-family: var(--display);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.15;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    transition: opacity 0.2s;
    letter-spacing: -0.005em;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover { opacity: 0.7; }

.faq-question::after {
    content: '+';
    font-family: var(--sans);
    font-size: 32px;
    font-weight: 200;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-muted);
    max-width: 75ch;
}

.faq-answer p { margin-bottom: 16px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
}

.related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--rule-soft);
}

.related-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 24px;
}

.related-list {
    list-style: none;
    padding: 0;
}

.related-list li {
    border-bottom: 1px solid var(--rule-soft);
    padding: 20px 0;
}

.related-list li:last-child { border-bottom: none; }

.related-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--ink);
    transition: opacity 0.2s;
}

.related-list a:hover { opacity: 0.6; }

.related-list .rel-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.005em;
}

.related-list .rel-arrow {
    font-family: var(--mono);
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.related-list a:hover .rel-arrow { transform: translateX(4px); }

.cta-section {
    padding: 140px 0;
    text-align: left;
}

.cta-headline {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(52px, 8.5vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 48px;
    max-width: 18ch;
}

.cta-headline em {
    font-style: normal;
    font-weight: 900;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 22px 32px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid var(--ink);
}

.cta-button:hover {
    background: var(--bg);
    color: var(--ink);
}

.cta-button .arrow { transition: transform 0.3s ease; }
.cta-button:hover .arrow { transform: translateX(6px); }

.cta-secondary {
    margin-top: 32px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
}

footer {
    border-top: 1px solid var(--rule);
    padding: 48px 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    text-transform: uppercase;
}

footer .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

footer .nav-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

footer a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

footer a:hover { border-bottom-color: var(--ink); }

.article-body {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.7;
    margin: 0 auto;
}

.article-body p { margin-bottom: 24px; }

.article-body h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 50px;
    line-height: 1.05;
    margin: 64px 0 24px;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.15;
    margin: 40px 0 16px;
}

.article-body strong {
    font-weight: 500;
    color: var(--ink);
}

.article-body a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    transition: opacity 0.2s;
}

.article-body a:hover { opacity: 0.6; }

.article-body code {
    font-family: var(--mono);
    font-size: 15px;
    background: var(--bg-card);
    padding: 2px 8px;
    border: 1px solid var(--rule-soft);
}

.article-body ul, .article-body ol {
    margin: 24px 0;
    padding-left: 32px;
}

.article-body li { margin-bottom: 12px; line-height: 1.6; }

.article-body blockquote {
    margin: 32px 0;
    padding-left: 24px;
    border-left: 3px solid var(--ink);
    font-family: var(--display);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    body { font-size: 16px; }
    .hero { padding: 60px 0 60px; }
    section.section { padding: 60px 0; }
    .cta-section { padding: 80px 0; }
    .specs { padding: 24px; }
    .specs-row { grid-template-columns: 1fr; gap: 4px; }
    .pull-quote { padding-left: 20px; margin: 32px 0; }
    .meta-bar { font-size: 10px; }
    .article-body h2 { font-size: 36px; }
    .article-body h3 { font-size: 26px; }
    .faq-question { font-size: 22px; }
}

::selection {
    background: var(--ink);
    color: var(--bg);
}
