/* Shared look for all lead sites. Each site sets --accent and --accent-dark in its site.json. */
:root {
    --bg: #fbfaf7; --surface: #f2f5f4; --text: #1b2127; --muted: #5b6670; --border: #e1e5e9;
    --radius: 12px; --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Floating menu: a rounded bar that hovers over the page and stays at the top while scrolling. */
.top { position: sticky; top: 0; z-index: 5; padding: 14px 20px 0; pointer-events: none; }
.top-inner { pointer-events: auto; display: flex; align-items: center; gap: 24px; min-height: 64px; max-width: 1080px; padding: 8px 8px 8px 24px;
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
    border: 1px solid rgba(15,23,42,.06); border-radius: 999px; box-shadow: 0 10px 30px rgba(15,23,42,.12), 0 2px 6px rgba(15,23,42,.06); }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.top nav { display: flex; gap: 6px; margin-left: auto; white-space: nowrap; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.top nav a:hover { background: color-mix(in srgb, var(--accent) 9%, #fff); color: var(--accent-dark); }
.top nav a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 13%, #fff); color: var(--accent-dark); }

.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 999px; border: 0; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.small { padding: 10px 18px; font-size: .97rem; }
/* The main "Get free help" button: bright highlight color with a round arrow, like a pill. */
.btn.cta { background: var(--highlight); color: var(--highlight-text); padding: 8px 8px 8px 26px; box-shadow: 0 6px 18px color-mix(in srgb, var(--highlight) 45%, transparent); }
.btn.cta.small { padding: 6px 6px 6px 20px; }
.btn.cta:hover { background: color-mix(in srgb, var(--highlight) 88%, #000); color: var(--highlight-text); transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--highlight) 55%, transparent); }
.btn.cta .arrow { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.55); display: inline-grid; place-items: center; flex: none; }
.btn.cta.small .arrow { width: 32px; height: 32px; }
.btn.cta .arrow::before { content: ""; width: 8px; height: 8px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: translateX(-2px) rotate(45deg); }

/* The home page's colored band runs up behind the floating menu. */
.hero { position: relative; overflow: hidden; margin-top: -78px; padding-top: 78px; color: #fff;
    background: radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--accent-bright) 70%, #fff) 0%, transparent 60%),
                radial-gradient(700px 380px at 0% 100%, color-mix(in srgb, var(--highlight) 35%, transparent) 0%, transparent 60%),
                linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 45%, var(--accent-bright) 100%); }
.hero-inner { padding: 76px 20px 80px; position: relative; }
.hero-inner > div { max-width: 820px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; color: #fff; }
.lede { font-size: 1.18rem; color: var(--muted); margin: 0 0 28px; }
.hero .lede { color: rgba(255,255,255,.9); }

h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.2; margin: 40px 0 14px; }
h2 { font-size: 1.5rem; margin: 44px 0 14px; }
h3 { font-size: 1.15rem; margin: 28px 0 8px; }

.cards { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.cards a { position: relative; display: block; height: 100%; padding: 22px 22px 20px; border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--text); background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cards a::before { content: ""; display: block; width: 40px; height: 6px; border-radius: 3px; margin-bottom: 14px; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }
.cards li:nth-child(3n+2) a::before { background: linear-gradient(90deg, var(--highlight), color-mix(in srgb, var(--highlight) 60%, #f97316)); }
.cards li:nth-child(3n) a::before { background: linear-gradient(90deg, var(--accent-bright), color-mix(in srgb, var(--accent-bright) 50%, #3b82f6)); }
.cards a:hover { border-color: color-mix(in srgb, var(--accent) 40%, #fff); box-shadow: 0 12px 28px rgba(15,23,42,.10); transform: translateY(-2px); }
.cards strong { display: block; color: var(--text); font-size: 1.08rem; margin-bottom: 6px; }
.cards span { color: var(--muted); font-size: .95rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-bottom: 56px; }
.prose { max-width: 760px; }
.prose table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: .95rem; }
@media (max-width: 760px) { .prose table { display: block; overflow-x: auto; } .prose th, .prose td { white-space: nowrap; } }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }
.prose blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--surface); }
.updated { color: var(--muted); font-size: .9rem; margin-top: -6px; }
.draft { background: #fff4d6; border: 1px solid #f0d27a; padding: 8px 12px; border-radius: 8px; font-size: .92rem; margin-top: 24px; }
.home-body { padding-top: 8px; }
.home-body > .prose { margin: 0; }

.side { position: sticky; top: 100px; margin-top: 40px; display: grid; gap: 20px; }
.cta-box { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, #fff), color-mix(in srgb, var(--highlight) 14%, #fff)); border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff); border-radius: 16px; padding: 22px; }
.cta-box strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.cta-box p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.side-links { display: grid; gap: 6px; font-size: .95rem; }
.side-links strong { margin-bottom: 4px; }

.quote-form { margin: 8px 0 36px; min-height: 200px; }
.note { color: var(--muted); }

.foot { background: color-mix(in srgb, var(--accent-dark) 55%, #0f172a); color: #c9d1d8; margin-top: 40px; padding: 40px 0 28px; font-size: .95rem; }
.foot a { color: #fff; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-logo { filter: brightness(0) invert(1); height: 30px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot nav a { text-decoration: none; }
.fine { color: #9aa5ae; font-size: .85rem; margin: 18px 0 0; }

@media (max-width: 900px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .side { position: static; margin-top: 0; }
}
@media (max-width: 760px) {
    .top nav { display: none; }
    .top { padding: 10px 12px 0; }
    .top-inner { justify-content: space-between; gap: 10px; padding: 6px 6px 6px 16px; min-height: 56px; }
    .brand img { height: 28px; }
    .hero { margin-top: -66px; padding-top: 66px; }
    .hero-inner { padding: 40px 20px; }
    body { font-size: 16px; }
}
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; }
.menu .bars, .menu .bars::before, .menu .bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; }
.menu .bars::before, .menu .bars::after { content: ""; position: absolute; left: 0; }
.menu .bars::before { top: -6px; } .menu .bars::after { top: 6px; }
.brand { flex: none; }
.btn .short { display: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 50px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 10px; display: grid; min-width: 220px; }
.menu nav a { padding: 10px 12px; text-decoration: none; color: var(--text); white-space: nowrap; }
@media (max-width: 760px) { .menu { display: block; } .top .btn.small { margin-left: auto; } }
@media (max-width: 480px) {
    .top .btn.cta.small { padding: 6px 6px 6px 14px; gap: 8px; font-size: .92rem; }
    .top .btn.cta.small .arrow { width: 28px; height: 28px; }
    .top .btn .long { display: none; } .top .btn .short { display: inline; }
}
.cards.in-article { margin: 22px 0 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.preview-bar { position: fixed; left: 12px; bottom: 12px; z-index: 6; margin: 0; background: #1b2127; color: #fff; font-size: .85rem; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.preview-bar a { color: var(--highlight); }
.calc-page { padding-bottom: 24px; }
.calc-page > h1 { margin-top: 36px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 8px; padding: 24px 28px; border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent) 55%, var(--accent-bright)); color: #fff; }
.cta-band strong { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
@media (max-width: 760px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 20px; } }
.inline-form { margin: 40px 0 8px; padding: 24px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff);
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, #fff), color-mix(in srgb, var(--highlight) 10%, #fff)); }
.inline-form h2 { margin: 0 0 6px; }
.inline-form > p { margin: 0 0 16px; color: var(--muted); }
.inline-form .quote-form { margin: 0; }
.contact-page { padding-bottom: 32px; }
.contact-form { display: grid; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; margin: 8px 0 24px; }
.contact-form label { font-weight: 600; font-size: .95rem; margin-top: 10px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-form .two > div { display: grid; gap: 6px; }
.contact-form button { margin-top: 18px; justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.contact-form .errors { background: #fdecec; color: #9b1c1c; border-radius: 12px; padding: 12px 16px; }
.contact-form .errors ul { margin: 4px 0 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { background: color-mix(in srgb, var(--accent) 10%, #fff); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; font-weight: 600; }
@media (max-width: 560px) { .contact-form .two { grid-template-columns: 1fr; } .contact-form { padding: 18px; } }

.checked-by { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.checked-by a { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 500; text-decoration: none; }
.checked-by a:hover { text-decoration: underline; }
.vfy-mark { flex: none; }
