/* 340 Solutions — Notary Services (/notary). 340 family design system v4 (docs/FAMILY-DESIGN-SYSTEM.md).
   Personality: trustworthy, efficient, approachable, precise. Light paper surfaces, seal blue + brass accents,
   Newsreader headings, Instrument Sans body at a comfortable reading size. Shared hooks with js/main.js are kept:
   siteHeader, navToggle, .primary-nav/.nav-links, a11y panel, notaryForm + panels, actionBar, .reveal, #year. */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-roman.woff2") format("woff2"); font-weight: 340 520; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-italic.woff2") format("woff2"); font-style: italic; font-weight: 360; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-v4.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #faf8f3;      /* page */
  --alt: #f2efe8;        /* alternate sections */
  --card: #ffffff;
  --ink: #16202c;        /* text: 15.5:1 on paper */
  --muted: #4a5260;      /* secondary text: 7.4:1 on paper, 6.7:1 on alt */
  --seal: #1f3a5f;       /* primary accent: 10.8:1 on paper */
  --seal-deep: #13263f;  /* footer, pressed */
  --seal-tint: #e7ecf3;
  --brass: #b08a3e;      /* decorative accent (rules, marks) */
  --brass-ink: #7a5a14;  /* brass as text: 6.0:1 on paper */
  --line: rgba(22, 32, 44, .12);
  --line-strong: rgba(22, 32, 44, .26);
  --field: #8a8f98;      /* field border: 3.2:1 on white */
  --error: #a3261b;
  --focus: #1d4ed8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --max: 74rem;
  --gutter: clamp(20px, 4.5vw, 56px);
  --sec-y: clamp(60px, 7vw, 112px);
  --header-h: 72px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 1px 2px rgba(22, 32, 44, .05), 0 8px 24px -12px rgba(22, 32, 44, .14);
}
@media (max-width: 900px) { :root { --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 450; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; hyphens: manual; overflow-wrap: break-word; }
h1, h2 { font-family: var(--serif); }
h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
p { max-width: 68ch; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--seal); color: #fff; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 12px 18px; background: var(--seal); color: #fff; font-weight: 600; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.text-link { color: var(--seal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 500; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1.5px solid transparent; font: 600 .9375rem/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--seal); color: #fff; }
.btn-primary:hover { background: var(--seal-deep); }
.btn-secondary { background: transparent; color: var(--seal); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--seal); background: var(--seal-tint); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 243, .96); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgba(22, 32, 44, .35); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; min-width: 0; }
.logo { gap: 12px; text-decoration: none; }
.logo-img { display: block; height: 52px; width: auto; }
.logo-desc { padding-left: 12px; border-left: 1px solid var(--line-strong); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); line-height: 1.25; }
.primary-nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links a:not(.btn) { position: relative; display: inline-block; padding: 10px 0; font-size: .9375rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s var(--ease); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after, .nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-cta { flex-shrink: 0; }
.a11y-toggle { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); font: 600 .9375rem var(--sans); cursor: pointer; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { border-color: var(--seal); color: var(--seal); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Display settings panel */
.a11y-panel { position: absolute; top: calc(var(--header-h) - 6px); right: var(--gutter); z-index: 120; width: min(320px, calc(100vw - 32px)); padding: 20px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 40px -20px rgba(22, 32, 44, .45); }
.a11y-title { font-weight: 600; margin-bottom: 12px; }
.a11y-panel fieldset { border: 0; margin-bottom: 14px; }
.a11y-panel legend { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.a11y-options { display: flex; flex-wrap: wrap; gap: 8px; }
.a11y-options label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: .9375rem; cursor: pointer; }
.a11y-options label:has(input:checked) { border-color: var(--seal); background: var(--seal-tint); }
.a11y-options input { accent-color: var(--seal); }
.a11y-reset { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; font-size: .9375rem; cursor: pointer; }
.a11y-note { margin-top: 10px; font-size: .8125rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 600 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--brass); flex: none; }
.eyebrow-num { font-family: var(--serif); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--seal); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.25rem); font-weight: 420; letter-spacing: -0.025em; line-height: 1.04; }
.hero h1 .gold { display: block; font-style: italic; font-weight: 360; color: var(--seal); }
.provided-by { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--brass); font-size: 1rem; color: var(--muted); }
.provided-by strong { color: var(--ink); }
.lede { margin-top: 20px; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { justify-self: end; width: 100%; max-width: 420px; }
.hero-art svg { width: 100%; height: auto; }
/* At a glance */
.quick-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 56px); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--seal); border-radius: var(--radius); box-shadow: var(--shadow); }
.quick-facts > div { padding: 22px 22px 24px; }
.quick-facts > div + div { border-left: 1px solid var(--line); }
.quick-facts dt { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 8px; }
.quick-facts dd { font-size: 1rem; line-height: 1.55; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec-y); }
.section-alt { background: var(--alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head h2, .split-head h2, .about-copy h2, .contact-info h2 { font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem); }
.section-head > p, .split-head > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split-head { position: sticky; top: calc(var(--header-h) + 24px); }

/* 01 Services */
.needs-list { display: grid; border-top: 1px solid var(--line-strong); }
.needs-list li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.needs-list h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 480; letter-spacing: -0.01em; color: var(--seal); }
.needs-list p { color: var(--muted); }
.disclaimer { margin-top: 28px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: var(--radius); }
.disclaimer h3 { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 8px; }
.disclaimer p { font-size: 1rem; color: var(--ink); }

/* Cards: 02 Where, 04 Prepare */
.place-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.place { padding: 24px 22px; display: grid; align-content: start; gap: 10px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.place p { font-size: 1rem; color: var(--muted); }
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--seal-tint); color: var(--seal); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note { margin-top: 24px; font-size: 1rem; color: var(--muted); max-width: 72ch; }
@media (hover: hover) { .place:hover { border-color: var(--line-strong); box-shadow: var(--shadow); } }

/* 03 How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 24px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; align-content: start; gap: 10px; }
.steps li p { font-size: 1rem; color: var(--muted); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--seal); color: #fff; font: 500 1.05rem var(--serif); }
.step-icon { position: absolute; top: 24px; right: 20px; width: 24px; height: 24px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1025px) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -17px; width: 18px; height: 1.5px; background: var(--brass); }
}

/* 05 Fees */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 16px; }
.info-card { padding: 28px 26px; display: grid; align-content: start; gap: 14px; }
.info-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 460; }
.info-list { display: grid; border-top: 1px solid var(--line); }
.info-list > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-weight: 600; font-size: 1rem; }
.info-list dd { font-size: 1rem; color: var(--muted); }
.info-foot { font-size: 1rem; padding: 14px 16px; background: var(--seal-tint); border-radius: 6px; color: var(--ink); }

/* 06 Awareness */
.checks { display: grid; gap: 4px; }
.checks li { position: relative; padding: 12px 0 12px 38px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 18px; height: 10px; border-left: 2px solid var(--seal); border-bottom: 2px solid var(--seal); transform: rotate(-45deg); }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; margin-top: 28px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--seal); border-radius: var(--radius); }
.callout h3 { margin-bottom: 8px; }
.callout p { font-size: 1rem; color: var(--muted); }

/* 07 Your notary */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.credential { position: relative; padding: clamp(28px, 4vw, 40px); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.credential::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--brass); border-radius: 4px; pointer-events: none; opacity: .55; }
.credential-label { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
.credential-name { margin-top: 14px; font: 460 clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem)/1.1 var(--serif); color: var(--ink); }
.credential-title { margin-top: 6px; font-weight: 600; color: var(--seal); }
.credential-exp { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.credential-exp span { display: block; margin-top: 2px; font-weight: 600; color: var(--ink); }
.about-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.about-copy .fine { font-size: .9375rem; }

/* 08 FAQ */
.faq-list { display: grid; gap: 10px; max-width: 54rem; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary { position: relative; display: block; padding: 18px 56px 18px 22px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--seal); border-radius: 2px; transition: transform .2s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list summary:hover { color: var(--seal); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }

#ready .place-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

/* Label/description rows stack whenever their container is narrow in rem (so enlarged text stacks too) */
.needs-list, .info-card { container-type: inline-size; }
@container (max-width: 36rem) { .needs-list li { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 30rem) { .info-list > div { grid-template-columns: minmax(0, 1fr); } }
.contact-list dd, .footer-contact, .info-list dd, .text-link, .form-note, .form-privacy { overflow-wrap: anywhere; }
.faq-list { grid-template-columns: minmax(0, 1fr); }
fieldset { min-width: 0; }
.eyebrow { flex-wrap: wrap; overflow-wrap: anywhere; }
.quick-facts dd, .quick-facts dt, .place p, .steps p, .checks li { overflow-wrap: break-word; }
.info-card > *, .contact > *, .split > *, .about > * { min-width: 0; }
@media (max-width: 640px) { .info-card { padding: 22px 18px; } }
.faq-list summary, .faq-a { overflow-wrap: break-word; }
.place-grid > *, .steps > *, .quick-facts > * { min-width: 0; }
.contact-list { grid-template-columns: minmax(0, 1fr); }

/* FAQ beside its heading on wide screens */
@media (min-width: 1025px) {
  #faq .container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  #faq .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* 09 Request */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.contact-list { display: grid; margin-top: 28px; border-top: 1px solid var(--line-strong); }
.contact-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 4px; }
.contact-list dd { font-size: 1rem; }
.contact-list a { color: var(--seal); font-weight: 600; text-underline-offset: 3px; }
.contact-form { position: relative; padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.form-intro { font-size: .9375rem; color: var(--muted); margin-bottom: 18px; }
.form-group { border: 0; margin-bottom: 8px; }
.form-group legend { width: 100%; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font: 600 .8125rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 1rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; background: #fff; border: 1.5px solid var(--field); border-radius: 6px; font-size: 1rem; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--seal); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint { font-size: .875rem; color: var(--muted); }
.field-error { margin-top: 4px; font-size: .9375rem; font-weight: 500; color: var(--error); }
.field-error::before { content: "Error: "; font-weight: 700; }
.hp-field { display: none; } /* Formspree-recommended honeypot hiding: not rendered, so browser autofill never fills it */
.form-status { margin: 4px 0 12px; font-size: .9375rem; color: var(--muted); min-height: 1px; }
.form-status:empty { margin: 0; }
.form-privacy, .form-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.form-panel { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); }
.form-panel h3 { margin-bottom: 6px; }
.form-panel h3:focus { outline: none; }
.form-panel p { font-size: 1rem; }
.form-panel-success { background: #e8f2ea; border: 1px solid #9bc4a3; }
.form-panel-error { background: #fbecea; border: 1px solid #e2a59e; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--seal-deep); color: #d7dee8; padding-top: clamp(48px, 6vw, 80px); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #9ec1ff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px; padding-bottom: 40px; }
.footer-brand p { margin-top: 16px; font-size: 1rem; max-width: 34ch; }
.footer-brand .logo-img { height: 92px; }
.footer-brand .logo-desc { color: #e9d9b0; border-left-color: rgba(255, 255, 255, .28); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 40px; }
.footer-links a { display: inline-block; padding: 4px 0; font-size: 1rem; }
.footer-contact a { font-weight: 600; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }

/* ---------- Reveal & hero art motion ---------- */
.reveal { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(10px); }
@keyframes sig-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes sig-pen { 0% { transform: translate(-150px, 14px) rotate(38deg); } 100% { transform: translate(0, 0) rotate(38deg); } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduce"]) .sig-path { stroke-dasharray: 100; animation: sig-draw 2.2s .4s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
html[data-motion="reduce"] { scroll-behavior: auto; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; }
html[data-motion="reduce"] .reveal.is-pending { opacity: 1; transform: none; }
html[data-motion="reduce"] .btn:active { transform: none; }
/* Menu sheet and action bar switch state instantly under reduced motion (a near-zero visibility transition would
   briefly keep the sheet hidden and block moving focus into it) */
@media (prefers-reduced-motion: reduce) { .primary-nav, .action-bar { transition: none !important; } }
html[data-motion="reduce"] .primary-nav, html[data-motion="reduce"] .action-bar { transition: none !important; }

/* ---------- Display settings: text size, contrast ---------- */
html[data-text="lg"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }
@media (prefers-contrast: more) { :root { --muted: #2e3440; --line: rgba(22, 32, 44, .35); --line-strong: rgba(22, 32, 44, .6); --field: #4a5260; } }
html[data-contrast="high"] { --muted: #2e3440; --line: rgba(22, 32, 44, .35); --line-strong: rgba(22, 32, 44, .6); --field: #4a5260; --brass-ink: #5c430d; }
html[data-contrast="high"] :focus-visible { outline-width: 3px; }
html[data-contrast="high"] .nav-links a:not(.btn), html[data-contrast="high"] .footer-links a { text-decoration: underline; text-underline-offset: 4px; }
@media (forced-colors: active) {
  .btn, .card, .quick-facts, .faq-list details, .a11y-toggle, .nav-toggle { border: 1px solid CanvasText; }
  .field-error { color: CanvasText; }
  .checks li::before { border-color: CanvasText; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-facts > div:nth-child(3) { border-left: 0; }
  .quick-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .header-cta { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .logo-img { height: 44px; }
  .primary-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; background: var(--paper); padding: 16px var(--gutter) 32px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a:not(.btn) { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem; font-weight: 450; color: var(--ink); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a.is-active { color: var(--seal); }
  .nav-cta-mobile { display: block; margin-top: 24px; }
  .a11y-toggle { margin-left: auto; }
  .primary-nav { margin-left: 0; }
  .hero-grid, .split, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .split-head { position: static; }
  .hero-art { justify-self: center; max-width: 300px; order: -1; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  /* sticky action bar */
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 248, 243, .97); border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 20px -16px rgba(22, 32, 44, .5); transition: transform .25s var(--ease), visibility 0s; }
  .action-bar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s .25s; }
  .has-action-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .hero-art { display: none; }
  .quick-facts { grid-template-columns: minmax(0, 1fr); }
  .quick-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .needs-list li, .info-list > div { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .callout { grid-template-columns: minmax(0, 1fr); }
  /* compact rows instead of tall cards */
  .place { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .place .icon { grid-row: span 2; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px 16px; }
  .steps .step-num { grid-row: span 2; }
  .step-icon { display: none; }
  .provided-by { font-size: .9375rem; }
}
@media (max-width: 380px) {
  .logo-img { height: 40px; }
  .logo-desc { font-size: .7rem; letter-spacing: .08em; padding-left: 10px; }
}
@media (max-width: 359px) {
  .site-header .logo-desc { display: none; }
  .header-inner { gap: 10px; }
}

/* Optimization (2026-10-25): touch targets ≥ 24px (WCAG 2.5.8) */
.contact-list a, .footer-contact a, .legal-links a { display: inline-block; padding-block: 3px; }
