/* ==========================================================================
   Carpool — public site styles
   Brand tokens come from the database and are set as CSS variables in <head>.
   ========================================================================== */

:root {
    --white: #ffffff;
    --line: #e3ebe5;
    --line-strong: #cfdcd3;
    --shadow-sm: 0 2px 8px rgba(15, 46, 37, .06);
    --shadow-md: 0 18px 45px -20px rgba(15, 46, 37, .28);
    --shadow-lg: 0 35px 80px -30px rgba(15, 46, 37, .38);
    --radius-lg: calc(var(--radius) * 1.5);
    --radius-sm: calc(var(--radius) * .65);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site-body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: inherit;
    letter-spacing: -.025em;
    line-height: 1.12;
    margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-dark); }

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

.container-x {
    width: min(var(--container), calc(100% - 44px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--brand);
    color: #fff;
    padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

.icon { width: 22px; height: 22px; display: inline-block; vertical-align: -.18em; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.icon-xs { width: 14px; height: 14px; }
.icon-flip { transform: rotate(180deg); }
.is-filled { fill: currentColor; }

/* ---------- Buttons ---------- */

.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .72rem 1.35rem;
    font-family: var(--font-body);
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--btn-fg);
    background: var(--btn-bg);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .84rem; }
.btn-brand { --btn-bg: var(--brand); --btn-fg: #fff; box-shadow: 0 12px 25px -14px rgba(11, 107, 79, .7); }
.btn-brand:hover { --btn-bg: var(--brand-dark); box-shadow: 0 18px 30px -16px rgba(11, 107, 79, .8); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: #17251f; box-shadow: 0 12px 25px -16px rgba(242, 184, 75, .9); }
.btn-accent:hover { --btn-bg: #e5aa35; --btn-fg: #17251f; }
.btn-ghost { --btn-bg: #fff; --btn-fg: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { --btn-bg: var(--surface); border-color: var(--brand); color: var(--brand); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--text); border-color: var(--line); }
.w-100 { width: 100%; }

/* ---------- Announcement + header ---------- */

.announcement {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, .9);
    font-size: .82rem;
    padding: 8px 0;
}
.announcement-inner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.announcement a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.35); }
.announcement-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242, 184, 75, .18); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(15, 46, 37, .45); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand:hover { color: var(--brand); }
.brand-logo { max-height: 42px; width: auto; }
.brand-mark {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px -10px rgba(11,107,79,.8);
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-mark.big { width: 64px; height: 64px; border-radius: 20px; }
.brand-mark.big .icon { width: 32px; height: 32px; }
.brand-name { white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-link { position: relative; color: var(--text); font-size: .93rem; font-weight: 600; padding: 6px 0; }
.nav-link::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--brand); border-radius: 2px; transition: right .2s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--brand); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { white-space: nowrap; }
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    color: var(--text);
    align-items: center;
    justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.site-header.nav-open .nav-toggle-open { display: none; }
.site-header.nav-open .nav-toggle-close { display: inline-flex; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 92px) 0 0;
    background:
        radial-gradient(1000px 520px at 85% -10%, rgba(11, 107, 79, .16), transparent 65%),
        radial-gradient(700px 420px at 8% 20%, rgba(242, 184, 75, .16), transparent 60%),
        linear-gradient(180deg, #f7faf7 0%, #ffffff 78%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; pointer-events: none; }
.hero-glow-1 { width: 380px; height: 380px; background: rgba(11, 107, 79, .28); top: -120px; right: 8%; }
.hero-glow-2 { width: 300px; height: 300px; background: rgba(242, 184, 75, .25); bottom: -80px; left: 4%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow-pill {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 7px 14px 7px 11px;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--brand); opacity: .45; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.hero h1 { font-size: clamp(2.55rem, 5.2vw, 4.35rem); font-weight: 800; margin-bottom: 20px; }
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.13rem); color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-trust { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.hero-trust .icon { color: var(--brand); }

.hero-visual { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.phone {
    position: relative;
    width: min(310px, 100%);
    background: #0f2e25;
    border-radius: 42px;
    padding: 12px;
    box-shadow: 0 40px 80px -28px rgba(15, 46, 37, .55), inset 0 0 0 2px rgba(255,255,255,.08);
    transform: rotate(-2deg);
}
.phone-speaker { width: 74px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.18); margin: 2px auto 8px; }
.phone-screen { background: #f5f9f5; border-radius: 30px; padding: 18px 15px; min-height: 440px; }
.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.app-head small { display: block; font-size: .66rem; color: var(--muted); letter-spacing: .04em; }
.app-head strong { font-size: .82rem; }
.app-route-pill {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 9px 11px;
    font-size: .72rem; font-weight: 600; margin-bottom: 12px;
}
.route-line { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(11,107,79,.14); flex: none; }
.app-card {
    display: flex; align-items: center; gap: 9px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 13px; padding: 9px 10px; margin-bottom: 8px;
    box-shadow: 0 4px 12px -8px rgba(15,46,37,.18);
}
.app-card-body { flex: 1; min-width: 0; }
.app-card-body strong { display: block; font-size: .74rem; }
.app-card-body small { display: block; font-size: .63rem; color: var(--muted); }
.app-price { font-size: .76rem; font-weight: 700; color: var(--brand); }
.app-card-muted { opacity: .82; }
.avatar {
    width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--brand), #2f9a74);
    color: #fff; font-weight: 700; font-size: .9rem; flex: none;
}
.avatar-sm { width: 34px; height: 34px; font-size: .72rem; }
.avatar-alt { background: linear-gradient(145deg, #35507a, #6f8fc2); }
.avatar-third { background: linear-gradient(145deg, #8c5a2b, #c9975c); }
.app-button {
    margin-top: 12px; background: var(--brand); color: #fff;
    text-align: center; border-radius: 12px; padding: 11px;
    font-size: .76rem; font-weight: 700;
}
.app-safe { margin-top: 10px; text-align: center; font-size: .62rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; }
.float-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 13px 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    animation: float 6s ease-in-out infinite;
}
.float-savings { top: 9%; right: -2%; display: flex; flex-direction: column; }
.float-value { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--brand); line-height: 1; }
.float-label { font-size: .68rem; color: var(--muted); }
.float-verified { bottom: 10%; left: -3%; display: flex; align-items: center; gap: 9px; font-size: .7rem; color: var(--muted); animation-delay: -3s; }
.float-verified .icon { color: var(--brand); background: rgba(11,107,79,.12); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.float-verified strong { color: var(--text); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.route-ribbon { margin-top: clamp(34px, 6vw, 60px); background: var(--brand-dark); color: rgba(255,255,255,.85); overflow: hidden; padding: 14px 0; }
.route-track { display: flex; gap: 34px; width: max-content; animation: marquee 34s linear infinite; }
.route-chip { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; white-space: nowrap; }
.route-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */

.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 34px 0; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stat span { font-size: .78rem; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: clamp(58px, 8vw, 96px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; max-width: none; text-align: left; margin-inline: 0; }
.section-head-row > div { max-width: 640px; }
.section-head-light h2 { color: #fff; }
.section-head-light p { color: rgba(255,255,255,.72); }
.section-cta { text-align: center; margin-top: 34px; }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.eyebrow-light { color: var(--accent); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 26px 22px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(11,107,79,.25); }
.feature-icon { width: 50px; height: 50px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: #eaf4ee; color: var(--brand); margin-bottom: 18px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Matches */
.matches-section { background: var(--brand-dark); position: relative; overflow: hidden; }
.matches-section::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(11,107,79,.35); filter: blur(90px); top: -180px; right: -80px; }
.match-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.match-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md); }
.match-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.match-top h3 { font-size: 1rem; margin: 0 0 2px; }
.match-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.match-rating .icon { color: var(--accent); }
.match-price { margin-left: auto; font-family: var(--font-heading); font-weight: 800; color: var(--brand); font-size: 1.1rem; }
.match-route { font-size: .86rem; font-weight: 600; padding: 10px 12px; background: var(--surface); border-radius: 10px; margin-bottom: 12px; }
.match-bottom { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.match-bottom span { display: inline-flex; align-items: center; gap: 5px; }

/* Testimonials */
.testimonials { background: var(--surface); }
.testimonial-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 14px; }
.testimonial-card blockquote { margin: 0 0 20px; font-size: .92rem; line-height: 1.65; flex: 1; }
.testimonial-person { display: flex; align-items: center; gap: 10px; }
.testimonial-person strong { display: block; font-size: .84rem; }
.testimonial-person span { display: block; font-size: .72rem; color: var(--muted); }

/* Cities */
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.city-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: var(--text); transition: transform .22s ease, box-shadow .22s ease; }
a.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--text); }
.city-image { height: 140px; background-size: cover; background-position: center; position: relative; }
.city-image-plain { display: flex; align-items: center; justify-content: center; }
.city-image-plain span { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.85); }
.city-tone-1 .city-image-plain { background: linear-gradient(140deg, #0b6b4f, #3aa77e); }
.city-tone-2 .city-image-plain { background: linear-gradient(140deg, #163f5c, #4f86ad); }
.city-tone-3 .city-image-plain { background: linear-gradient(140deg, #6a4420, #c39154); }
.city-tone-4 .city-image-plain { background: linear-gradient(140deg, #3d3160, #8575b8); }
.city-body { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 4px; }
.city-body h3 { font-size: 1.05rem; margin: 0 0 2px; }
.city-body span { font-size: .74rem; color: var(--muted); }
.city-link { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.city-soon { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 4px 8px; }
.city-desc { font-size: .78rem; color: var(--muted); padding: 0 18px 18px; margin: 0; }

/* Steps */
.steps { background: var(--surface); }
.steps-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.steps-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.steps-copy p { color: var(--muted); margin-bottom: 24px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step-list li { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.step-number { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; color: var(--brand); width: 44px; height: 44px; border-radius: 50%; background: #eaf4ee; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step-list h3 { font-size: 1rem; margin-bottom: 4px; }
.step-list p { font-size: .86rem; color: var(--muted); margin: 0; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-link { display: block; color: var(--text); height: 100%; }
.post-card-link:hover { color: var(--text); }
.post-thumb { height: 190px; background-size: cover; background-position: center; }
.post-thumb-plain { background: linear-gradient(140deg, var(--brand), var(--brand-dark)); display: flex; align-items: center; justify-content: center; }
.post-thumb-plain span { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 800; color: rgba(255,255,255,.82); }
.post-body { padding: 20px 20px 24px; }
.post-category { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 8px; }
.post-body h2, .post-body h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 8px; }
.post-body p { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.post-meta { font-size: .72rem; color: var(--muted); }

/* Download */
.download-section { padding-top: 0; }
.download-card { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-dark), #123f31 60%, var(--brand)); color: #fff; border-radius: calc(var(--radius) * 1.8); padding: clamp(30px, 5vw, 58px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: center; box-shadow: var(--shadow-lg); }
.download-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(242,184,75,.18); filter: blur(80px); top: -160px; right: -60px; }
.download-copy { position: relative; }
.download-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.download-copy p { color: rgba(255,255,255,.78); max-width: 520px; margin-bottom: 24px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #111; border-radius: 12px; padding: 9px 16px; min-width: 158px; transition: transform .18s ease; }
.store-btn:hover { transform: translateY(-2px); color: #111; }
.store-btn .icon { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: .6rem; color: #5c6b64; line-height: 1.1; }
.store-btn strong { display: block; font-size: .92rem; font-family: var(--font-heading); }
.download-proof { display: flex; flex-wrap: wrap; gap: 18px; font-size: .76rem; color: rgba(255,255,255,.72); }
.download-proof span { display: inline-flex; align-items: center; gap: 6px; }
.download-proof .icon { color: var(--accent); }
.download-visual { position: relative; display: flex; justify-content: center; }
.phone-small { width: 250px; transform: rotate(2deg); padding: 9px; border-radius: 34px; }
.phone-small .phone-screen { min-height: 300px; border-radius: 26px; padding: 14px; }
.mini-chart { display: flex; align-items: flex-end; gap: 7px; height: 110px; margin: 18px 4px; }
.mini-chart span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand), #7cc6a7); }
.mini-chart span:nth-child(2n) { background: linear-gradient(180deg, var(--accent), #f6d493); }

/* ---------- Footer ---------- */

.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.7); padding: clamp(44px, 6vw, 72px) 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-light { color: #fff; font-size: 1.25rem; }
.brand-light:hover { color: #fff; }
.footer-brand p { max-width: 380px; font-size: .86rem; margin: 16px 0 18px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); }
.socials a:hover { background: rgba(255,255,255,.1); color: #fff; }
.footer-newsletter h2 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.footer-newsletter p { font-size: .84rem; margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 210px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.07);
    color: #fff;
    border-radius: 999px;
    padding: .72rem 1.1rem;
    font-size: .88rem;
    outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.newsletter-note { display: block; margin-top: 8px; font-size: .7rem; color: rgba(255,255,255,.45); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-links h3 { color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.footer-links a { display: block; font-size: .84rem; color: rgba(255,255,255,.65); padding: 5px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; font-size: .74rem; color: rgba(255,255,255,.45); }

/* ---------- Flash + to top ---------- */

.flash-stack { position: fixed; top: 18px; right: 18px; z-index: 1600; display: grid; gap: 8px; max-width: min(390px, calc(100vw - 36px)); }
.flash { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-md); font-size: .85rem; }
.flash-success { border-left-color: #178a5c; }
.flash-danger { border-left-color: #c84040; }
.flash-close { margin-left: auto; background: none; border: 0; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); box-shadow: var(--shadow-md); display: inline-flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 1200; }
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Inner pages ---------- */

.page-hero { position: relative; padding: clamp(42px, 6vw, 76px) 0 clamp(34px, 5vw, 56px); background: radial-gradient(720px 360px at 90% -20%, rgba(11,107,79,.14), transparent 70%), var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--brand); }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; max-width: 900px; margin-bottom: 14px; }
.page-hero-sub { color: var(--muted); font-size: 1.02rem; max-width: 760px; margin: 0; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(30px, 5vw, 60px); align-items: start; }
.prose { font-size: 1.03rem; line-height: 1.78; color: #2b3a34; max-width: 800px; }
.prose .lead { font-size: 1.18rem; color: var(--text); }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 40px 0 12px; color: var(--text); }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--brand); background: var(--surface); padding: 14px 18px; margin: 22px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius); margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface); }
.page-updated { margin-top: 34px; font-size: .76rem; color: var(--muted); }
.page-aside { display: grid; gap: 18px; position: sticky; top: 96px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card-soft { background: var(--surface); }
.aside-icon { width: 46px; height: 46px; border-radius: 14px; background: #eaf4ee; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.aside-card h2 { font-size: 1.05rem; margin-bottom: 8px; }
.aside-card p { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.aside-links { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.aside-links h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.aside-links a { display: block; font-size: .86rem; padding: 6px 0; color: var(--text); }
.aside-links a:hover { color: var(--brand); }

/* FAQ */
.faq-layout { max-width: 900px; }
.faq-intro { margin-bottom: 26px; }
.faq-accordion { border-top: 1px solid var(--line); }
.faq-accordion .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq-accordion .accordion-button { background: transparent; padding: 20px 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--text); box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--brand); }
.faq-accordion .accordion-button::after { width: 18px; height: 18px; background-size: 18px; }
.faq-accordion .accordion-body { padding: 0 0 20px; color: var(--muted); font-size: .94rem; }
.faq-cta { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.faq-cta h2 { font-size: 1.2rem; margin-bottom: 4px; }
.faq-cta p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Blog listing */
.blog-hero .category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); border-radius: 999px; padding: 6px 13px; font-size: .78rem; font-weight: 600; }
.chip:hover, .chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-grid-large .post-body h2 { font-size: 1.15rem; }
.pagination-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 42px; flex-wrap: wrap; }
.page-numbers { display: flex; gap: 6px; }
.page-number { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; font-size: .84rem; font-weight: 600; color: var(--text); background: #fff; }
.page-number:hover, .page-number.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--text); }
.page-link-btn:hover { color: var(--brand); }
.newsletter-band { background: var(--surface); border-top: 1px solid var(--line); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.newsletter-inner h2 { font-size: 1.35rem; margin-bottom: 4px; }
.newsletter-inner p { margin: 0; color: var(--muted); font-size: .88rem; }
.newsletter-band .newsletter-form { flex: 1; max-width: 460px; }
.newsletter-band .newsletter-form input[type="email"] { border-color: var(--line-strong); background: #fff; color: var(--text); }
.newsletter-band .newsletter-form input[type="email"]::placeholder { color: var(--muted); }

/* Blog post */
.blog-post-hero { background: radial-gradient(800px 420px at 85% -20%, rgba(11,107,79,.15), transparent 70%), var(--surface); }
.blog-post-head { max-width: 900px; }
.post-category-lg { font-size: .74rem; margin-bottom: 10px; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.post-byline strong { display: block; font-size: .88rem; }
.post-byline span { font-size: .76rem; color: var(--muted); }
.post-featured { margin-top: 28px; }
.post-featured img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); }
.blog-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(30px, 5vw, 56px); padding-top: clamp(34px, 5vw, 54px); align-items: start; }
.blog-prose { max-width: 760px; }
.blog-sidebar { display: grid; gap: 18px; position: sticky; top: 96px; }
.post-share { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.post-share a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); }
.post-share a:hover { background: var(--brand); color: #fff; }
.related-posts { background: var(--surface); }

/* City page */
.city-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(30px, 5vw, 60px); align-items: start; }
.corridor-list { display: grid; gap: 10px; margin: 18px 0 28px; }
.corridor { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.corridor > span { color: var(--brand); }
.corridor strong { display: block; font-size: .9rem; }
.corridor small { color: var(--muted); font-size: .76rem; }
.city-facts { margin: 0; display: grid; gap: 10px; }
.city-facts > div { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.city-facts dt { color: var(--muted); }
.city-facts dd { margin: 0; font-weight: 600; }

/* Search */
.search-form { display: flex; gap: 10px; max-width: 620px; margin-top: 22px; }
.search-form input { flex: 1; border: 1px solid var(--line-strong); border-radius: 999px; padding: .8rem 1.2rem; font-size: .95rem; outline: none; background: #fff; }
.search-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,107,79,.12); }
.search-count { color: var(--muted); font-size: .86rem; }
.search-group-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 28px 0 12px; }
.search-results { display: grid; gap: 10px; max-width: 800px; }
.search-result { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text); }
.search-result:hover { border-color: rgba(11,107,79,.35); box-shadow: var(--shadow-sm); }
.search-result strong { display: block; font-size: .95rem; color: var(--brand); }
.search-result span { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* Empty + error */
.empty-state { text-align: center; max-width: 520px; margin: 40px auto; }
.empty-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.empty-icon .icon { width: 30px; height: 30px; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.error-page { padding: clamp(70px, 12vw, 140px) 0; background: var(--surface); text-align: center; }
.error-inner { max-width: 640px; }
.error-code { font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; color: var(--brand); opacity: .18; display: block; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: -18px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }
.error-page .hero-actions { justify-content: center; }

/* Maintenance */
.maintenance-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(900px 500px at 50% -20%, rgba(11,107,79,.2), transparent 70%), var(--brand-dark); }
.maintenance-card { background: #fff; border-radius: 28px; padding: 46px 36px; max-width: 520px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.maintenance-card h1 { font-size: 1.9rem; margin: 18px 0 10px; }
.maintenance-card p { color: var(--muted); }
.maintenance-badge { display: inline-block; margin-top: 10px; background: var(--surface); color: var(--brand); border-radius: 999px; padding: 6px 14px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-track { grid-template-columns: repeat(2, 1fr); }
    .city-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .header-cta { display: none; }
    .header-actions { margin-left: auto; }
    .nav-cta { display: inline-flex; margin-top: 6px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 18px 22px 24px;
        box-shadow: 0 30px 40px -30px rgba(15,46,37,.35);
    }
    .site-nav.is-open { display: flex; }
    .site-nav .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav .nav-link::after { display: none; }
    .nav-cta { width: 100%; margin-top: 12px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-visual { min-height: 480px; margin-top: 10px; }
    .float-savings { right: 2%; }
    .float-verified { left: 2%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
    .stat:nth-child(3)::before { display: none; }
    .match-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .download-card { grid-template-columns: 1fr; text-align: center; }
    .download-copy p { margin-inline: auto; }
    .store-buttons, .download-proof { justify-content: center; }
    .download-visual { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .page-layout, .blog-post-layout, .city-layout { grid-template-columns: 1fr; }
    .page-aside, .blog-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .container-x { width: min(var(--container), calc(100% - 32px)); }
    .announcement { font-size: .74rem; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .feature-grid, .city-grid, .match-grid, .post-grid, .testimonial-track { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 52px 0; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-bottom { flex-direction: column; }
    .page-aside, .blog-sidebar { grid-template-columns: 1fr; }
    .faq-cta { flex-direction: column; align-items: flex-start; }
    .newsletter-inner { flex-direction: column; align-items: flex-start; }
    .newsletter-band .newsletter-form { width: 100%; max-width: none; }
    .post-featured { margin-top: 18px; }
    .hero-visual { min-height: 440px; }
    .float-card { display: none; }
    .route-track { animation-duration: 26s; }
}

@media (max-width: 480px) {
    .hero-actions .btn, .store-buttons .store-btn { width: 100%; }
    .store-btn { justify-content: center; }
    .phone { width: 268px; }
    .nav-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
