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

:root {
    --primary:        #181d26;
    --primary-active: #0d1218;
    --canvas:         #ffffff;
    --surface-soft:   #f8fafc;
    --surface-strong: #e0e2e6;
    --surface-dark:   #181d26;
    --hairline:       #dddddd;
    --ink:            #181d26;
    --body:           #333840;
    --muted:          #41454d;
    --on-primary:     #ffffff;
    --link:           #1b61c9;
    --link-active:    #1a3866;
    --sig-coral:      #aa2d00;
    --sig-forest:     #0a2e0e;
    --sig-cream:      #f5e9d4;
    --sig-peach:      #fcab79;
    --sig-mint:       #a8d8c4;
    --rounded-xs:     2px;
    --rounded-sm:     6px;
    --rounded-md:     10px;
    --rounded-lg:     12px;
    --section:        96px;
    --xxl:            48px;
    --xl:             32px;
    --lg:             24px;
    --md:             16px;
    --sm:             12px;
    --xs:             8px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--body);
    background: var(--canvas);
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-active); }

img { display: block; max-width: 100%; height: auto; }

address { font-style: normal; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--xxl);
}

@media (max-width: 767px) {
    .container { padding: 0 var(--md); }
}

/* ── HEADER / NAV ───────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    gap: var(--lg);
    list-style: none;
}

.main-nav a {
    font-size: 14px;
    font-weight: 400;
    color: var(--body);
}

.main-nav a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--xs);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: fixed;
        inset: 64px 0 0 0;
        background: var(--canvas);
        z-index: 99;
        padding: var(--xl) var(--md);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: var(--lg); }
    .main-nav a { font-size: 18px; }
}

/* ── HERO ───────────────────────────────────────────────────────── */
.hero-band {
    padding: var(--section) 0;
    background: var(--canvas);
}

.hero-band .hero-inner {
    max-width: 720px;
}

.hero-band h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--lg);
}

.hero-band .hero-sub {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    margin-bottom: var(--xl);
    max-width: 580px;
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: none;
    cursor: pointer;
    transition: background .15s;
}

.btn-primary:hover,
.btn-primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn-secondary {
    display: inline-block;
    background: var(--canvas);
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 16px 24px;
    border-radius: var(--rounded-lg);
    border: 1px solid var(--hairline);
    cursor: pointer;
    transition: border-color .15s;
}

.btn-secondary:hover { border-color: #aaa; color: var(--ink); }

.btn-legal {
    display: inline-block;
    background: var(--link);
    color: var(--on-primary);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
}

.btn-legal-reject {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 13.12px;
    font-weight: 600;
    padding: 12px 10px;
    border-radius: var(--rounded-xs);
    border: none;
    cursor: pointer;
}

/* ── SIGNATURE CARDS ───────────────────────────────────────────── */
.sig-coral {
    background: var(--sig-coral);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: var(--xxl);
}

.sig-coral h2,
.sig-coral p { color: var(--on-primary); }

.sig-forest {
    background: var(--sig-forest);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: var(--xxl);
}

.sig-forest h2,
.sig-forest p { color: var(--on-primary); }

.sig-dark {
    background: var(--surface-dark);
    color: var(--on-primary);
    border-radius: var(--rounded-lg);
    padding: var(--xxl);
}

.sig-dark h2,
.sig-dark p { color: var(--on-primary); }

.sig-cream {
    background: var(--sig-cream);
    border-radius: var(--rounded-md);
    padding: var(--lg);
    color: var(--ink);
}

/* ── SECTIONS ──────────────────────────────────────────────────── */
.section {
    padding: var(--section) 0;
}

.section-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.12px;
    color: var(--ink);
    margin-bottom: var(--lg);
}

.section-head {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--lg);
}

/* ── ARTICLE CARDS ─────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lg);
}

@media (max-width: 1023px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .cards-grid { grid-template-columns: 1fr; } }

.article-card {
    background: var(--canvas);
    border-radius: var(--rounded-md);
    border: 1px solid var(--hairline);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-card-body {
    padding: var(--md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--xs);
}

.article-card-tag {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.article-card h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--link); }

.article-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
    flex: 1;
}

.article-card-meta {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-top: var(--xs);
}

/* ── DEMO GRID CARDS ───────────────────────────────────────────── */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lg);
}

@media (max-width: 1023px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .demo-grid { grid-template-columns: 1fr; } }

.demo-card {
    border-radius: var(--rounded-md);
    padding: var(--md);
    display: flex;
    flex-direction: column;
    gap: var(--sm);
}

.demo-card-peach  { background: var(--sig-peach); }
.demo-card-mint   { background: var(--sig-mint); }
.demo-card-cream  { background: var(--sig-cream); }

.demo-card-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
}

.demo-card p {
    font-size: 14px;
    color: var(--body);
    line-height: 1.5;
}

/* ── CTA BAND ──────────────────────────────────────────────────── */
.cta-band {
    background: var(--surface-strong);
    border-radius: var(--rounded-lg);
    padding: var(--xxl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--xl);
    flex-wrap: wrap;
}

.cta-band h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    max-width: 500px;
}

/* ── CONTACT FORM ──────────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--md);
    max-width: 540px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--xs);
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.form-group input,
.form-group textarea {
    background: var(--canvas);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-sm);
    padding: 12px 16px;
    height: 44px;
    width: 100%;
    outline: none;
    transition: border-color .15s;
}

.form-group textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #458fff; }

/* ── ARTICLE PAGE ──────────────────────────────────────────────── */
.article-hero {
    padding: var(--section) 0 var(--xl);
}

.article-hero h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    max-width: 800px;
    margin-bottom: var(--lg);
}

.article-hero-meta {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.16px;
    margin-bottom: var(--xl);
}

.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--rounded-md);
    margin-bottom: var(--section);
}

.article-body {
    max-width: 720px;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: var(--xl) 0 var(--md);
}

.article-body h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--ink);
    margin: var(--lg) 0 var(--sm);
}

.article-body p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: var(--md);
}

.article-body ul,
.article-body ol {
    margin: var(--sm) 0 var(--md) var(--xl);
}

.article-body li {
    font-size: 14px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: var(--xs);
}

.article-body a { color: var(--link); }
.article-body a:hover { color: var(--link-active); }

.article-body .inset-img {
    width: 100%;
    border-radius: var(--rounded-md);
    margin: var(--xl) 0;
    object-fit: cover;
}

/* ── GENERIC PAGE CONTENT ─────────────────────────────────────── */
.page-content {
    padding: var(--section) 0;
    max-width: 720px;
}

.page-content h1 {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--lg);
}

.page-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    margin: var(--xl) 0 var(--sm);
}

.page-content p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: var(--md);
}

.page-content ul {
    margin: var(--sm) 0 var(--md) var(--xl);
}

.page-content li {
    font-size: 14px;
    line-height: 1.65;
    color: var(--body);
    margin-bottom: var(--xs);
}

.page-meta {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: var(--xl);
}

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding-top: var(--section);
    margin-top: var(--section);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--xl);
    padding-bottom: var(--xxl);
}

@media (max-width: 1023px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px)  { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--md);
}

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.footer-col strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--md);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: var(--xs); }

.footer-col a {
    font-size: 14px;
    color: var(--muted);
}

.footer-col a:hover { color: var(--ink); }

.footer-col address {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-col address a { color: var(--muted); }

.footer-legal {
    border-top: 1px solid var(--hairline);
    padding: var(--xl) 0 var(--section);
}

.footer-legal .container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--md);
    justify-content: space-between;
}

.footer-legal span {
    font-size: 14px;
    color: var(--muted);
}

.footer-legal nav {
    display: flex;
    gap: var(--md);
}

.footer-legal nav a {
    font-size: 14px;
    color: var(--muted);
}

.footer-legal nav a:hover { color: var(--ink); }

.disclaimer {
    width: 100%;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* ── COOKIE BANNER ─────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-primary);
    padding: var(--lg) var(--xxl);
    display: flex;
    align-items: center;
    gap: var(--lg);
    flex-wrap: wrap;
    z-index: 999;
}

.cookie-banner p {
    font-size: 14px;
    color: var(--on-primary);
    flex: 1;
    min-width: 240px;
}

.cookie-banner p a { color: #7ab3ff; }

.cookie-actions {
    display: flex;
    gap: var(--sm);
    flex-shrink: 0;
}

/* ── INLINE STAT CALLOUTS ──────────────────────────────────────── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lg);
    padding: var(--section) 0;
}

@media (max-width: 767px) { .stat-row { grid-template-columns: 1fr; } }

.stat-item {
    background: var(--sig-cream);
    border-radius: var(--rounded-md);
    padding: var(--lg);
}

.stat-num {
    font-size: 48px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.1;
}

.stat-label {
    font-size: 14px;
    color: var(--body);
    margin-top: var(--xs);
}

/* ── RELATED ARTICLES ──────────────────────────────────────────── */
.related-section {
    border-top: 1px solid var(--hairline);
    padding-top: var(--section);
    margin-top: var(--section);
}

/* ── SURFACE BANDS ─────────────────────────────────────────────── */
.band-soft { background: var(--surface-soft); padding: var(--section) 0; }
.band-dark { background: var(--surface-dark); padding: var(--section) 0; }
.band-dark h2, .band-dark p { color: var(--on-primary); }

/* ── UTILITY ───────────────────────────────────────────────────── */
.mt-lg { margin-top: var(--lg); }
.mt-xl { margin-top: var(--xl); }
.mt-section { margin-top: var(--section); }
.mb-md { margin-bottom: var(--md); }
.mb-lg { margin-bottom: var(--lg); }
.flex-row { display: flex; align-items: center; gap: var(--md); flex-wrap: wrap; }
.text-muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
