/* Layout idea: calm left-aligned reading column, a facts rail up top, numbered steps that mirror the real order of the process. */
:root {
  --ink: #142235;
  --muted: #4a5a6c;
  --paper: #f5f8f9;
  --surface: #ffffff;
  --line: #d6e0e4;
  --accent: #001db5;
  --accent-ink: #ffffff;
  --accent-soft: #e6e9fb;
  --peach: #f4cfb4;
  --peach-ink: #5a3218;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.2rem, 5vw, 3.3rem);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e7eef2; --muted: #a6b5c2; --paper: #0e1720; --surface: #15212c;
    --line: #26384a; --accent: #8ea0ff; --accent-ink: #0b1030; --accent-soft: #1a2147;
    --peach: #6b4128; --peach-ink: #fbe3d2; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e7eef2; --muted: #a6b5c2; --paper: #0e1720; --surface: #15212c;
  --line: #26384a; --accent: #8ea0ff; --accent-ink: #0b1030; --accent-soft: #1a2147;
  --peach: #6b4128; --peach-ink: #fbe3d2; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Notice + header */
.notice { background: var(--ink); color: var(--paper); font-size: var(--step--1); }
.notice .wrap { padding: 6px 0; }
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.97rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 22px; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 40ch; line-height: 1.5; }
.hero h1 { max-width: 20ch; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--accent); }

/* Facts rail */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 16px 18px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.facts dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; line-height: 1.3; }
@media (max-width: 640px) { .facts div { border-right: 0; border-bottom: 1px solid var(--line); } .facts div:last-child { border-bottom: 0; } }

/* Page body */
.page-head { padding: 44px 0 8px; }
.page-head .wrap { display: grid; gap: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding: 24px 0 64px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 32px; } .toc { order: -1; position: static !important; } }
.content { display: grid; gap: 48px; min-width: 0; }
.content section { display: grid; gap: 16px; max-width: 68ch; scroll-margin-top: 20px; }
.content section.wide { max-width: none; }
.content ul, .content ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.toc { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 0.95rem; }
.toc h2 { font-size: 1rem; margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { color: var(--ink); }
.toc .toc-cta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }

.answer { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; }
.answer strong { display: block; font-family: var(--font-display); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 4px; }
.note { background: var(--peach); color: var(--peach-ink); padding: 14px 18px; border-radius: var(--radius); font-size: 0.98rem; }

.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.card p { color: var(--muted); }
a.card { text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.card:hover { border-color: var(--accent); }
a.card .more { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* Steps */
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 30px 64px; display: grid; gap: 8px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; }
.steps > li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li p { color: var(--muted); }
.steps ul { color: var(--muted); }

.mini-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px; counter-reset: ms; list-style: none; padding: 0 !important; }
.mini-steps li { counter-increment: ms; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.mini-steps li::before { content: "Step " counter(ms); font-size: var(--step--1); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.mini-steps p { color: var(--muted); font-size: 0.97rem; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-display); font-size: 1rem; background: var(--accent-soft); }
tbody th { font-weight: 600; width: 22%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow .node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; align-content: start; }
.flow .node.key { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.flow .node b { font-family: var(--font-display); font-size: 1.1rem; }
.flow .node span { color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
.flow .arrow { display: grid; place-items: center; color: var(--accent); font-size: 1.5rem; font-weight: 700; }
@media (max-width: 720px) { .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; font-family: var(--font-display); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); display: grid; gap: 10px; }

.sources { font-size: 0.93rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.sources ul { padding-left: 1.2em; }

/* Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0; font-size: 0.95rem; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink); }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .notice, .site-head, .toc, .site-foot, .btns { display: none; } body { background: #fff; color: #000; } }

/* Katie Beckett Georgia: same system, its own accent */
body.kb {
  --accent: #3d4f9f; --accent-soft: #e6e9f6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.kb { --accent: #9fb0f2; --accent-ink: #10162e; --accent-soft: #1d2547; }
}
:root[data-theme="dark"] body.kb { --accent: #9fb0f2; --accent-ink: #10162e; --accent-soft: #1d2547; }
.sister { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; }
.sister p { color: var(--muted); }

/* Logo */
.brand-logo { width: 34px; height: 34px; padding: 3px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.foot-notice { font-weight: 600; margin: 0 0 18px; grid-column: 1 / -1; }

/* Ask a question */
.nav-ask { color: var(--accent) !important; font-weight: 600; }
.ask-cta { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin: 48px 0 0; padding: 28px; border-radius: 18px; background: var(--accent-soft); }
.ask-cta h2 { margin: 0 0 6px; }
.ask-cta p { margin: 0; max-width: 60ch; }
.ask-form { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding-bottom: 24px; }
.ask-form fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px; margin: 0; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.ask-form legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; padding: 0 6px; }
.ask-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; min-width: 0; }
.ask-form input, .ask-form select, .ask-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; box-sizing: border-box; }
.ask-form textarea { resize: vertical; }
.ask-form .grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .ask-form .grid2 { grid-template-columns: 1fr 1fr; } }
.ask-form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.ask-form .check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.ask-form .hint { margin: 0; font-size: var(--step--1); color: var(--muted); }
.ask-form button { align-self: flex-start; cursor: pointer; font: inherit; font-weight: 600; }
.ask-form button:disabled { opacity: 0.6; }
.form-status { margin: 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Call funnel */
.nav-call { font-weight: 600; white-space: nowrap; color: var(--muted) !important; }
.ask-cta .btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .callbar a { display: block; text-align: center; padding: 12px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); color: var(--accent); }
  .callbar a:first-child { background: var(--accent); color: var(--accent-ink); }
  body { padding-bottom: 76px; }
}

/* Step-by-step inquiry form */
.funnel-band { padding: clamp(28px, 5vw, 48px) 0; background: var(--accent-soft); margin-top: 40px; }
main > .funnel-band:first-of-type { margin-top: 0; }
.funnel-inner { max-width: 760px; margin: 0 auto; }
.funnel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 18px 40px -22px rgba(13, 20, 60, 0.35); scroll-margin-top: 90px; }
.funnel-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 0 0 4px; }
.funnel-head .sub { color: var(--muted); margin: 0 0 12px; }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: var(--accent); transition: width .25s ease; }
.step-count { font-size: var(--step--1); color: var(--muted); margin: 6px 0 0; }
.fstep { display: none; padding-top: 10px; }
.fstep.active { display: block; }
.funnel .field { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.funnel .lbl, .funnel .l { font-weight: 600; padding: 0; }
.funnel input:not([type=radio]):not([type=checkbox]), .funnel select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; box-sizing: border-box; }
.frow { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .frow { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--paper); }
.chips input:checked + span { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.chips.grid2 span { width: 100%; box-sizing: border-box; }
@media (max-width: 560px) { .chips.grid2 { grid-template-columns: 1fr; } }
.funnel .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 4px 0 8px; }
.funnel .check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.step-nav .btn { cursor: pointer; font: inherit; font-weight: 600; }
.funnel .err { color: #b3261e; font-weight: 600; margin: 8px 0 0; min-height: 1px; }
.form-note { font-size: var(--step--1); color: var(--muted); margin: 14px 0 0; }
.done-step h3 { margin-top: 0; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Form in the top section (home pages) */
.hero-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; } }
.hero-split .hero-copy .lead { max-width: 56ch; }
.hero-split .facts { margin-top: 28px; }
.hero-aside .funnel { box-shadow: 0 1px 2px rgba(13, 20, 60, .06), 0 18px 40px -18px rgba(13, 20, 60, .3); }
.step-nav .btn-ghost { background: transparent; }
.funnel select { min-height: 46px; appearance: auto; }

.hero-split .hero-copy > * + * { margin-top: 18px; }
.hero-split .hero-copy .btns { margin-top: 24px; }
