/* AI Realtor Lab — Ghost theme
   Brand: Navy #0D3366 · Slate #2B3A50 · Mint #6DE1C6 · Mist #F3FBF9 · Line #E3E9F0
   Type: Inter */

:root {
    --navy: #0D3366;
    --slate: #2B3A50;
    --mint: #6DE1C6;
    --mist: #F3FBF9;
    --line: #E3E9F0;
    --line-dark: #2E5B83;
    --muted: #4A5B72;
    --grey: #8A97A8;
    --pattern-a: #E3E9F0;
    --pattern-b: #DCE3EC;
    --white: #FFFFFF;

    --font-body: var(--gh-font-body, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
    --font-heading: var(--gh-font-heading, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);

    --radius: 12px;
    --radius-lg: 20px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 9vw, 120px);
    --max: 1200px;
    --max-text: 720px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); font-weight: 600; color: inherit; }
p, figure, blockquote { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-narrow { width: 100%; max-width: calc(var(--max-text) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-wide { width: 100%; max-width: calc(1040px + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.mint { color: var(--mint); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
    display: block;
    font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
}
a.eyebrow:hover { color: var(--navy); }
.eyebrow-lg { font-size: clamp(14px, 1.4vw, 20px); }
.on-dark .eyebrow { color: var(--line); }
.section-title { font-size: clamp(34px, 4.5vw, 48px); line-height: 1.06; letter-spacing: -0.04em; }
.section-title .soft { color: var(--grey); }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--muted); }
.on-dark .lede { color: var(--line); }
.text-link { font-weight: 600; font-size: 16px; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.on-dark .text-link { color: var(--white); }
.subtle-link { font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 28px; border-radius: 999px;
    font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
    border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; font-weight: 500; }
.btn-lg { min-height: 56px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--slate); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); font-weight: 500; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--mist); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); font-weight: 500; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { background: #8BE8D3; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 600px; }
.hero-ctas .btn { width: 100%; padding: 0 20px; }
@media (max-width: 520px) { .hero-ctas { grid-template-columns: 1fr; } }
.hero-teams { display: flex; flex-direction: column; gap: 4px; max-width: 600px; margin-top: 4px; padding: 16px 20px; border-left: 3px solid var(--mint); background: #F3FBF9; border-radius: 0 12px 12px 0; text-decoration: none; }
.hero-teams-title { font-size: 17px; font-weight: 600; color: var(--navy); }
.hero-teams-text { font-size: 15px; color: var(--muted); line-height: 1.5; }
.hero-teams:hover .hero-teams-title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand:hover { color: var(--navy); }
.logo-mark { width: 38px; height: 38px; }
.logo-word { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.logo-img { height: 40px; width: auto; }
.brand-light { color: var(--white); }
.brand-light:hover { color: var(--white); }

.site-nav .nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav .nav a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 0; }
.site-nav .nav a:hover, .site-nav .nav .is-current a { color: var(--navy); }
.site-nav .nav .is-current a { box-shadow: inset 0 -2px 0 var(--mint); }
.nav-mobile-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); border-radius: 999px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle:hover { background: var(--mist); }

@media (max-width: 1024px) {
    .menu-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .site-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--white); border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 24px;
        box-shadow: 0 16px 32px rgba(13,51,102,.08);
    }
    .nav-open .site-nav { display: block; }
    .site-nav .nav { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav .nav a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
    .site-nav .nav .is-current a { box-shadow: none; color: var(--navy); }
    .nav-mobile-cta { display: flex; margin-top: 20px; width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-sm { padding: clamp(56px, 7vw, 88px) 0; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-slate { background: var(--slate); color: var(--white); }
.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-title { font-size: clamp(42px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.045em; }
.hero-tagline { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; display: flex; justify-content: center; }
.hero-frame { position: absolute; inset: -40px -120px -40px 40px; border: 2px solid var(--line); border-radius: 48px; pointer-events: none; }
.hero-photo-wrap { position: relative; width: 100%; max-width: 520px; padding-bottom: 56px; }
.hero-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.hero-photo img, .hero-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.accel-chip {
    position: absolute; left: -24px; bottom: 0; width: 300px; max-width: 90%;
    background: var(--navy); color: var(--white); border-radius: 16px; padding: 20px 24px;
    display: flex; flex-direction: column; gap: 6px; text-decoration: none;
    box-shadow: 0 18px 40px rgba(13,51,102,.18);
}
.accel-chip:hover { background: var(--slate); color: var(--white); }
.accel-chip .eyebrow { color: var(--line); }
.accel-chip-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.accel-chip-meta { font-size: 14px; color: var(--line); }
@media (max-width: 760px) {
    .hero-frame { display: none; }
    .accel-chip { left: 12px; }
}

/* Placeholder pattern (used until real photos are added) */
.placeholder {
    background: repeating-linear-gradient(135deg, var(--pattern-a) 0, var(--pattern-a) 22px, var(--pattern-b) 22px, var(--pattern-b) 44px);
    position: relative; width: 100%; height: 100%;
}
.placeholder span { position: absolute; left: 16px; top: 14px; right: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.stat-num { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.stat-label { font-size: 15px; color: var(--line); margin-top: 4px; line-height: 1.5; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.grid-3-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card-mist { background: var(--mist); }
.card-navy { background: var(--navy); color: var(--white); }
.card-navy .eyebrow, .card-navy p { color: var(--line); }
.card-navy .card-title, .card-navy .text-link { color: var(--white); }
.card-white { background: var(--white); border: 1px solid var(--line); }
.card-title { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; }
.card-body { font-size: 16px; line-height: 1.55; color: var(--muted); flex-grow: 1; }
.offer-card { min-height: 360px; padding: 36px; }

.compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.5; }
.compare-list li { border-top: 1px solid var(--line); padding-top: 14px; }
.card-mist .compare-list { color: var(--muted); }
.card-navy .compare-list { color: var(--white); }
.card-navy .compare-list li { border-color: var(--line-dark); }

/* ---------- How it works ---------- */
.steps-wrap { position: relative; }
.steps-line { position: absolute; top: 15px; left: 8px; right: 12%; height: 2px; background: var(--navy); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-dot { display: block; width: 16px; height: 16px; margin-top: 8px; border-radius: 50%; background: var(--navy); }
.step-dot-human { width: 32px; height: 32px; margin-top: 0; background: var(--mint); }
.step-title { font-size: 22px; letter-spacing: -0.02em; }
.step p { font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (max-width: 760px) { .steps-line { display: none; } }

/* ---------- Events ---------- */
.event-card { text-decoration: none; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.event-card:hover { color: var(--navy); border-color: var(--navy); box-shadow: 0 10px 30px rgba(13,51,102,.08); }
.event-title { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.event-when { font-size: 15px; color: var(--muted); line-height: 1.5; }
.event-cta { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; }

/* ---------- Team band ---------- */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.band-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.band-title { font-size: clamp(30px, 3.5vw, 40px); line-height: 1.1; letter-spacing: -0.035em; }

/* ---------- Proof ---------- */
.proof { display: flex; flex-wrap: wrap; gap: 8px; }
.proof-video { flex: 999 1 560px; min-width: 0; min-height: 400px; border-radius: var(--radius); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; background: var(--line); text-decoration: none; }
.proof-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: relative; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: var(--navy); box-shadow: 0 10px 30px rgba(13,51,102,.3); }
.proof-video:hover .play { background: var(--slate); }
.proof-quotes { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.proof-quotes.solo { flex-direction: row; flex-wrap: wrap; }
.proof-quotes.solo .quote-card { flex: 1 1 320px; }
.quote-card { flex: 1; background: var(--mist); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote-card blockquote { font-size: 20px; line-height: 1.45; font-weight: 300; letter-spacing: -0.01em; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.quote-card figcaption strong { color: var(--navy); font-weight: 600; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------- Team ---------- */
.team-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--navy); }
.team-card:hover { color: var(--navy); }
.team-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 22px; letter-spacing: -0.02em; }
.team-bio { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Post cards ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--navy); }
.chip:hover, .chip.is-current { border-color: var(--navy); color: var(--navy); }
.chip.is-current { background: var(--navy); color: var(--white); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 24px; }
.post-card-link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--navy); }
.post-card-link:hover { color: var(--navy); }
.post-card-link:hover .post-card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--mint); }
.post-card-image { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-title { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.post-card-excerpt { font-size: 15px; line-height: 1.55; color: var(--muted); }
.post-card-meta { font-size: 14px; color: var(--muted); }

/* ---------- Lead magnet ---------- */
.kit { position: relative; overflow: hidden; }
.kit-deco { position: absolute; top: 40px; right: -160px; width: 520px; height: 520px; border: 2px solid var(--line-dark); border-radius: 48px; pointer-events: none; }
.kit-grid { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.kit-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.kit-title { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.04em; }
.kit-form { flex: 1 1 400px; min-width: 0; background: var(--white); color: var(--navy); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.kit-form label { font-size: 14px; font-weight: 500; margin-top: 6px; }
.kit-form input[type="text"], .kit-form input[type="email"] {
    min-height: 48px; border: 1px solid #C9D3DF; border-radius: var(--radius); padding: 0 16px;
    font-size: 16px; font-family: inherit; color: var(--navy); background: var(--white); width: 100%;
}
.kit-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(109,225,198,.6); }
.kit-form .btn { margin-top: 14px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-msg { display: none; font-size: 15px; line-height: 1.5; padding: 12px 16px; border-radius: var(--radius); }
.form-success { background: var(--mist); }
.form-error { background: #FDECEC; color: #8A1C1C; }
.btn-loading { display: none; }
.kit-form.loading .btn-text { display: none; }
.kit-form.loading .btn-loading { display: inline; }
.kit-form.success .form-success { display: block; }
.kit-form.error .form-error { display: block; }
.kit-form.success .kit-fields { display: none; }
.kit-fields { display: flex; flex-direction: column; gap: 10px; }
.kit-light .kit-form { border: 1px solid var(--line); }
@media (max-width: 760px) { .kit-deco { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); column-gap: 56px; }
.faq-item { border-top: 1px solid var(--line); padding: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.faq-item p { font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (max-width: 400px) { .faq { grid-template-columns: 1fr; } }


/* ---------- Editable homepage blocks (.hb) ----------
   Content comes from #homepage posts; layout comes from these rules. */
.hb > * { margin: 0; }
.hb a { color: inherit; }

/* Stats: H3 number + paragraph label */
.hb-stats { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 32px; row-gap: 4px; }
.hb-stats h3 { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--white); }
.hb-stats p { font-size: 15px; color: var(--line); line-height: 1.5; }

/* Problem: two (H3 + list) cards */
.hb-compare { display: grid; grid-template-rows: auto 1fr; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 8px; }
.hb-compare > h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 32px 32px 20px; border-radius: var(--radius) var(--radius) 0 0; }
.hb-compare > ul, .hb-compare > ol, .hb-compare > p { list-style: none; padding: 0 32px 32px; border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.5; }
.hb-compare li { border-top: 1px solid var(--line); padding-top: 14px; }
.hb-compare > :nth-child(4n+1), .hb-compare > :nth-child(4n+2) { background: var(--mist); color: var(--muted); }
.hb-compare > :nth-child(4n+1) { color: var(--muted); }
.hb-compare > :nth-child(4n+3), .hb-compare > :nth-child(4n+4) { background: var(--navy); color: var(--white); }
.hb-compare > :nth-child(4n+3) { color: var(--line); }
.hb-compare > :nth-child(4n+4) li { border-color: var(--line-dark); }

/* How it works: H3 + paragraph per step */
.hb-steps { position: relative; display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 32px; row-gap: 14px; }
.hb-steps::before { content: ""; position: absolute; top: 15px; left: 8px; right: 12%; height: 2px; background: var(--navy); }
.hb-steps > h3 { position: relative; font-size: 22px; letter-spacing: -0.02em; padding-top: 40px; }
.hb-steps > h3::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); }
.hb-steps > h3:last-of-type::before { top: 0; width: 32px; height: 32px; background: var(--mint); }
.hb-steps > p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Offers: H3 + description + link paragraph per card; 2nd card highlighted */
.hb-offers { display: grid; grid-template-rows: auto 1fr auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 8px; }
.hb-offers > * { background: var(--mist); padding-left: 36px; padding-right: 36px; }
.hb-offers > h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; padding-top: 36px; padding-bottom: 16px; border-radius: var(--radius) var(--radius) 0 0; }
.hb-offers > p:nth-of-type(odd) { font-size: 16px; line-height: 1.55; color: var(--muted); padding-bottom: 32px; }
.hb-offers > p:nth-of-type(even) { padding-bottom: 36px; border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; font-size: 16px; }
.hb-offers > p:nth-of-type(even) a { text-decoration: none; }
.hb-offers > p:nth-of-type(even) a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hb-offers > h3:nth-of-type(2), .hb-offers > p:nth-of-type(3), .hb-offers > p:nth-of-type(4) { background: var(--navy); color: var(--white); }
.hb-offers > p:nth-of-type(3) { color: var(--line); }

/* FAQ: H3 question + paragraph answer (Toggle cards also work) */
.hb-faq { max-width: 860px; }
.hb-faq > h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; border-top: 1px solid var(--line); padding-top: 28px; }
.hb-faq > h3:not(:first-child) { margin-top: 28px; }
.hb-faq > p { font-size: 16px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.hb-faq > ul, .hb-faq > ol { font-size: 16px; color: var(--muted); margin-top: 10px; padding-left: 1.2em; }

@media (max-width: 860px) {
    .hb-stats, .hb-compare, .hb-steps, .hb-offers { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); }
    .hb-stats > h3:not(:first-child) { margin-top: 24px; }
    .hb-compare > h3:not(:first-child), .hb-offers > h3:not(:first-child) { margin-top: 8px; }
    .hb-steps::before { display: none; }
    .hb-steps > h3:not(:first-child) { margin-top: 18px; }
}

/* ---------- Page headers (blog, tag, author, collections) ---------- */
.page-head { padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head-inner { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.page-head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 4vw, 56px); align-items: center; }
.page-head-media { margin: 0; }
.page-head-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
@media (max-width: 860px) { .page-head-split { grid-template-columns: 1fr; } .page-head-media { max-width: 520px; } }
.page-title { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.045em; }
.author-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.author-head img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }

/* ---------- Article ---------- */
.article-header { padding-top: clamp(48px, 6vw, 88px); padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
.article-title { font-size: clamp(36px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.04em; }
.article-excerpt { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.article-meta a { color: var(--navy); font-weight: 600; text-decoration: none; }
.article-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.article-image { margin-bottom: 40px; }
.article-image img { width: 100%; border-radius: var(--radius-lg); }
.article-image figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.author-box { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--mist); display: flex; gap: 20px; align-items: flex-start; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h2 { font-size: 18px; margin-bottom: 4px; }
.author-box p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.author-box a { text-decoration: none; }

/* ---------- Ghost content ---------- */
.gh-content { font-size: 18px; line-height: 1.7; color: #1E3554; padding-bottom: 24px; }
.gh-content > * { max-width: var(--max-text); margin-left: auto; margin-right: auto; }
.gh-content > * + * { margin-top: 1.4em; }
.gh-content > h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.03em; margin-top: 2em; color: var(--navy); }
.gh-content > h3 { font-size: clamp(21px, 2.2vw, 24px); line-height: 1.3; letter-spacing: -0.02em; margin-top: 1.8em; color: var(--navy); }
.gh-content > h2 + *, .gh-content > h3 + * { margin-top: 0.7em; }
.gh-content a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gh-content a:hover { text-decoration-color: var(--navy); }
.gh-content strong { color: var(--navy); }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .5em; }
.gh-content blockquote:not([class]) { border-left: 0; padding: 4px 0 4px 24px; box-shadow: inset 3px 0 0 var(--mint); font-size: 21px; line-height: 1.5; color: var(--navy); }
.gh-content hr { border: 0; height: 1px; background: var(--line); margin: 3em auto; }
.gh-content code { font-size: .9em; background: var(--mist); padding: .1em .35em; border-radius: 6px; }
.gh-content pre { background: var(--navy); color: var(--white); padding: 20px 24px; border-radius: var(--radius); overflow-x: auto; font-size: 15px; }
.gh-content pre code { background: none; padding: 0; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.gh-content th { font-weight: 600; color: var(--navy); background: var(--mist); }
.gh-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.gh-content .kg-image { border-radius: var(--radius); }
.gh-content > .kg-width-wide { max-width: 1040px; }
.gh-content > .kg-width-full { max-width: none; }
.kg-width-wide { position: relative; }
.kg-width-full { position: relative; }
.kg-width-full img { border-radius: 0; }
.gh-content .kg-button-card a.kg-btn, .gh-content .kg-cta-button { border-radius: 999px; text-decoration: none; }
.gh-content .kg-callout-card { border-radius: var(--radius); }
.gh-content .kg-toggle-card { border-radius: var(--radius); }

/* Landing template: let cards run full-width */
.landing .gh-content { padding-bottom: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.pagination a { font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); }
.footer-inner { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.footer-tagline { font-size: 16px; color: var(--line); }
.footer-nav { flex: 2 1 480px; }
.footer-nav .nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 32px; }
.footer-nav .nav a, .footer-meta a { color: var(--line); text-decoration: none; font-size: 15px; }
.footer-nav .nav a:hover, .footer-meta a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--line); }
.footer-meta { display: flex; gap: 24px; }

/* ---------- Error ---------- */
.error-page { text-align: left; }
