:root {
    color-scheme: light;
    --ink: #183340;
    --muted: #435b66;
    --teal: #17533f;
    --call: #efb13d;
    --line: #bdcfd1;
    --reading-size: 1.25rem;
}
:root[data-text-size="large"] { --reading-size: 1.5rem; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    color: var(--ink);
    background: #f8fbfa;
    font: var(--reading-size)/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--teal); text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
a:focus-visible, button:focus-visible { outline: 4px solid #a54d00; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 8px; }
.site-header {
    max-width: 1380px;
    margin: auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand small { display: block; color: var(--muted); font-size: 1rem; font-weight: 400; }
.brand-mark, .chat-icon { display: grid; place-items: center; background: var(--teal); color: white; border-radius: 12px; }
.brand-mark { flex: 0 0 48px; width: 48px; height: 48px; font-size: 26px; }
.header-phone { padding: 12px 16px; border: 2px solid var(--teal); border-radius: 10px; font-weight: 700; }
main { max-width: 1380px; margin: auto; padding: 16px 28px 32px; }
.reading-controls { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; font-size: 1.125rem; }
.reading-controls button { min-height: 48px; padding: 8px 16px; border: 2px solid var(--teal); border-radius: 8px; color: var(--teal); background: white; }
.reading-controls button[aria-pressed="true"] { color: white; background: var(--teal); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.eyebrow { color: var(--teal); font-size: 1.125rem; font-weight: 700; }
.hero-copy { padding-top: 0; }
h1 { font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: 1.15; letter-spacing: -.025em; margin: 16px 0 24px; }
h2 { font-size: 1.65rem; line-height: 1.3; }
.intro { max-width: 36ch; }
.contact-choices { display: grid; gap: 16px; max-width: 440px; margin-top: 28px; }
.chat-button, .call-button { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 16px 20px; border: 2px solid var(--teal); border-radius: 12px; font-weight: 700; text-align: center; text-decoration: none; }
.chat-button { display: inline-flex; gap: 16px; min-height: 56px; padding: 8px 0; color: var(--teal); background: transparent; border: 0; text-decoration: underline; }
.chat-button:hover { color: #003b29; background: transparent; }
.call-button { flex-direction: column; align-items: flex-start; background: var(--call); color: #183340; line-height: 1.5; border-color: #b07816; max-width: 520px; }
.call-button strong { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.call-button:hover { background: #f5c66c; }
.call-button strong { text-decoration: underline; text-underline-offset: 4px; }
.chat-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: white; border-radius: 18px; box-shadow: 0 12px 40px #153a3a0c; }
.chat-card-heading { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: #e9f3ef; border-bottom: 1px solid var(--line); }
.chat-icon { flex: 0 0 48px; width: 48px; height: 48px; font-size: 26px; }
.chat-card h2 { font-size: 1.5rem; margin: 0; }
.chat-card-heading p { margin: 4px 0 0; font-size: 1.125rem; color: var(--ink); }
.chat-slot { position: relative; height: clamp(480px, calc(100svh - 330px), 720px); }
.chat-status { position: absolute; inset: 24px; color: var(--muted); }
.chat-reassurance { padding: 12px 20px; margin: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 1.125rem; }
#bland-widget-host { display: block; width: 100%; height: 100%; }
.topics { margin: 36px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.topics h2 { margin-bottom: 12px; }
.topics ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.suggested-question { width: 100%; height: 100%; min-height: 64px; padding: 16px 20px; color: var(--teal); background: white; border: 2px solid var(--line); border-radius: 12px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.suggested-question:hover { border-color: var(--teal); background: #e9f3ef; }
.help-note { padding: 24px 28px; background: #eef3f2; border-radius: 14px; font-size: 1.125rem; }
.help-note p { margin: 0 0 16px; }
.help-note p:last-child { margin-bottom: 0; }
footer { max-width: 1380px; margin: auto; padding: 12px 28px 32px; color: var(--muted); font-size: 1rem; }
footer span { padding: 0 8px; }
@media (max-width: 960px) {
    .site-header { flex-wrap: wrap; }
    .hero { grid-template-columns: 1fr; gap: 28px; }
    .hero-copy { max-width: 42ch; }
    .contact-choices { max-width: none; }
    .chat-slot { height: clamp(480px, 70svh, 700px); }
}
@media (max-width: 540px) {
    .site-header { padding: 16px; gap: 16px; }
    .header-phone { width: 100%; text-align: center; }
    main { padding: 16px; }
    .reading-controls { justify-content: flex-start; }
    h1 { font-size: 2.3rem; margin: 12px 0 16px; }
    .chat-card-heading { padding: 16px; align-items: flex-start; }
    .chat-icon { display: none; }
    .topics ul { grid-template-columns: 1fr; }
    .help-note { padding: 20px; }
    footer { padding: 12px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.small { color: var(--muted); font-size: 1.125rem; }
.steps-card { padding: 24px 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.steps-card h2 { margin-top: 0; }
.steps-card ol { padding-left: 28px; }
.steps-card li { padding-left: 8px; margin: 20px 0; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic { min-width: 0; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 20px; }
.topic summary { color: var(--teal); cursor: pointer; font-weight: 700; min-height: 56px; }
.topic a { display: inline-block; margin-top: 16px; }
.chat-card { max-width: 960px; margin: 36px auto; }
.chat-slot { height: clamp(480px, 70svh, 720px); }
.human-help { margin: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.trust-grid h3 { font-size: 1.3rem; margin: 0 0 12px; }
.trust-grid p { margin: 12px 0 0; }
html[data-contrast="high"] { --ink: #000; --muted: #000; --teal: #000; --line: #000; --call: #ffdf00; }
html[data-contrast="high"] body, html[data-contrast="high"] article,
html[data-contrast="high"] .steps-card, html[data-contrast="high"] .chat-card-heading,
html[data-contrast="high"] .topic { background: #fff; }
summary:focus-visible { outline: 4px solid #a54d00; outline-offset: 4px; }
@media (max-width: 960px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) {
    .topic-grid, .trust-grid { grid-template-columns: 1fr; }
    .steps-card { padding: 20px; }
    .brand-mark { font-size: 18px; }
    .header-phone { font-size: 1.125rem; }
}

.chat-tools, .recap-review { padding: 20px; border-top: 1px solid var(--line); }
.chat-tools p { margin: 10px 0; }
.chat-tools input[type="checkbox"] { width: 24px; height: 24px; margin-right: 10px; vertical-align: middle; }
.tool-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.chat-tools button, .recap-actions button { min-height: 52px; padding: 10px 18px; border: 2px solid var(--teal); border-radius: 10px; background: white; color: var(--teal); }
#create-recap, #continue-chat, #download-recap { background: var(--teal); color: white; }
.recap-review { max-width: 960px; margin: 24px auto; background: white; border: 1px solid var(--line); border-radius: 18px; }
.recap-review textarea { display: block; width: 100%; min-height: 140px; padding: 12px; font: inherit; line-height: 1.5; color: var(--ink); background: white; border: 2px solid var(--line); border-radius: 8px; }
.recap-review label { display: block; font-weight: 700; margin: 20px 0 8px; }
.recap-review .print-copy { display: none; }
#recap-transcript p { white-space: pre-wrap; overflow-wrap: anywhere; }
#memory-status:empty, #conversation-status:empty { display: none; }
[hidden] { display: none !important; }
@media print {
    body { background: white; color: black; font-size: 12pt; }
    body > header, body > footer, .skip-link, main > :not(#recap-review) { display: none !important; }
    main { margin: 0; padding: 0; max-width: none; }
    #recap-review { border: 0; padding: 0; margin: 0; max-width: none; }
    #recap-review textarea, .recap-actions, #recap-status, #recap-review > p:first-of-type { display: none !important; }
    #recap-review .print-copy { display: block; white-space: pre-wrap; }
    #recap-review h2, #recap-review h3, #recap-review label { break-after: avoid; }
}
