.container { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 800px; }

/* Sections alternate light and dark so each reads as its own block. */
.section { padding: var(--s8) 0; }
@media (min-width: 900px) { .section { padding: var(--s9) 0; } }
.section-clay { background: var(--white); border-top: 1px solid var(--line-light); }
.dark { background: var(--graphite); color: var(--white); }
.dark p, .dark .lead { color: var(--on-dark); }
.dark a:not(.button) { color: var(--accent-on-dark); }

.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head p:not(.eyebrow) { font-size: var(--text-lg); color: var(--muted); margin: 0; line-height: 1.5; }
h1, h2, h3 { text-wrap: balance; }
.h3 { font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.01em; }
.dark .section-head p { color: var(--on-dark); }
.split-head { display: grid; gap: var(--s5); margin-bottom: var(--s7); }
@media (min-width: 900px) { .split-head { grid-template-columns: 1fr 1fr; align-items: end; } .split-head p { margin: 0; } }

.eyebrow { display: inline-block; color: var(--muted); font-weight: var(--weight-strong); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--text-xs); margin-bottom: var(--s4); }
.dark .eyebrow { color: var(--on-dark); }
@media (max-width: 480px) { .eyebrow { letter-spacing: 0.04em; font-size: var(--text-xs); } }
.lead { font-size: var(--text-lg); line-height: 1.5; color: var(--muted); max-width: 640px; }

/* Header: dark, joined to the dark hero / page head below it. */
.site-header { background: var(--graphite); color: var(--white); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line-dark); }
.header-row { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.brand { display: flex; margin-right: auto; }
.header-row > .language-switch { display: none; }
.nav-menu nav .language-switch { margin-top: var(--s4); }
.brand img { height: 34px; width: auto; }
.language-switch { color: var(--white); font-weight: var(--weight-strong); font-size: var(--text-sm); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; }
.language-switch:hover { color: var(--accent-on-dark); }
.language-switch .icon { width: 18px; height: 18px; }
.sign-in-link { color: var(--on-dark); font-weight: var(--weight-strong); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; padding: var(--s2) 0; }
.sign-in-link:hover { color: var(--white); }
.header-row > .sign-in-link { display: none; }
.nav-menu nav .sign-in-link { display: block; margin-top: var(--s4); color: var(--white); }

.nav-wide { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s2); font-weight: var(--weight-strong); padding: var(--s2) 0; color: var(--white); }
.nav-menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-menu nav { position: absolute; left: 0; right: 0; top: 72px; z-index: 11; background: var(--graphite); border-bottom: 1px solid var(--line-dark); padding: var(--s2) var(--gutter) var(--s5); }
.nav-menu ul { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.nav-menu li a { display: block; padding: var(--s3) 0; color: var(--white); text-decoration: none; font-weight: var(--weight-strong); border-bottom: 1px solid var(--line-dark); }
.nav-menu a[aria-current="page"], .nav-wide a[aria-current="page"] { color: var(--accent-on-dark); }

.header-cta { white-space: nowrap; }
@media (max-width: 420px) { .header-row { gap: var(--s3); } .nav-menu summary span:last-child { display: none; } }
@media (min-width: 900px) {
    .nav-menu, .header-row .header-cta { display: none; }
    .header-row > .language-switch, .header-row > .sign-in-link { display: inline-flex; }
    .nav-wide { display: flex; align-items: center; gap: var(--s5); }
    .nav-wide ul { list-style: none; display: flex; gap: var(--s4); margin: 0; padding: 0; }
    .nav-wide li a { color: var(--on-dark); text-decoration: none; font-weight: var(--weight-strong); font-size: var(--text-sm); white-space: nowrap; }
    .nav-wide li a:hover { color: var(--white); }
    .nav-wide .button { white-space: nowrap; }
}

/* Page head of inner pages: same dark band as the home hero. */
.page-head { background: var(--graphite); color: var(--white); padding: var(--s9) 0 var(--s9); }
.page-head h1 { max-width: 900px; }
.page-head .lead { color: var(--on-dark); margin: 0; }
.page-head .muted { color: var(--on-dark); }
/* Form pages: a shorter head so the form starts above the fold. */
.page-head-compact { padding: var(--s7) 0 var(--s7); }
.page-head-compact h1 { font-size: var(--text-2xl); margin-bottom: var(--s3); }
.page-head-compact + .section { padding-top: var(--s7); }
.head-action { margin: var(--s5) 0 0; }

.site-footer { background: var(--graphite-deep); color: var(--on-dark); padding: var(--s6) 0 var(--s4); font-size: var(--text-sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.site-footer h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-dark); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s2); }
.site-footer .footer-brand p { margin-top: var(--s4); max-width: 320px; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 2fr 2fr 1fr 1fr; } .footer-brand { grid-column: auto; }
    .footer-companies ul { columns: 2; column-gap: var(--s5); }
    .footer-companies li { break-inside: avoid; }
}
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); border-top: 1px solid var(--line-dark); margin-top: var(--s5); padding-top: var(--s4); }
.footer-legal p { margin: 0; }

/* Shared grids. */
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.form-layout { display: grid; gap: var(--s6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 3fr 2fr; } }

.prose h2 { font-size: var(--text-lg); margin-top: var(--s6); }
.page-head .eyebrow, .rate-card .eyebrow { color: var(--on-dark); }
.footer-roles { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line-dark); }
.site-footer .footer-role-lines li { margin: 0; }
.footer-role-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); font-size: var(--text-sm); color: var(--on-dark); }
.footer-role-lines strong { color: var(--white); font-weight: var(--weight-strong); }
.footer-role-lines a { color: var(--on-dark); }
.footer-role-lines a:hover { color: var(--white); }
.section-title { margin-bottom: var(--s7); }
.section-note { margin-top: var(--s6); }
