/* gst.it.com design system. Tokens and rules are documented in docs/06-design-system.md.
   Direction: Raise (Refero f72e18d0) foundation; Midday ledger hairlines on data surfaces;
   Acctual tracking and check rows; Brex radius steps. Palette sampled from the logo. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand (sampled from logo) */
  --navy-950: #011f40;
  --navy-900: #012b57;   /* ink, headings, navy band */
  --navy-800: #02407f;   /* hover/pressed */
  --blue-700: #0251a0;   /* ACTION ONLY: buttons, links */
  --blue-600: #0a5fb4;
  --blue-50: #eef4fb;    /* callout surface */
  --blue-100: #d7e5f5;   /* callout border, focus halo */
  --green-600: #1ea044;  /* CHECKS/SUCCESS ICONS ONLY */
  --green-700: #157a33;  /* success text (AA) */
  --green-50: #edf8f0;
  /* Neutrals */
  --text: #24364d;
  --text-muted: #56657a;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --paper-bg: #e9eef4;
  /* Status */
  --amber-50: #fff8eb;
  --amber-200: #f5d9a8;
  --amber-800: #7a4b06;  /* government-controlled callouts only */
  --red-50: #fef3f2;
  --red-600: #c0261b;
  --red-700: #a3201a;   /* errors only */

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r-input: 6px;
  --r-btn: 8px;
  --r-card: 12px;
  --shadow-paper: 0 2.5px 2.5px rgba(1, 43, 87, .06), 0 0 0 1px rgba(1, 43, 87, .04);
  --shadow-menu: 0 12px 32px -12px rgba(1, 43, 87, .22), 0 0 0 1px var(--border);
  --container: 1200px;
  --gutter: 16px;
  --section: 56px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 640px) { :root { --gutter: 24px; --section: 72px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section: 96px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font: 400 16px/1.6 var(--font); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute !important; 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: 8px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 14px; border-radius: var(--r-btn); font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy-900); margin: 0; font-weight: 650; text-wrap: balance; }
.display { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.037em; font-weight: 700; }
.h1 { font-size: clamp(2rem, 1.45rem + 2.2vw, 2.875rem); line-height: 1.1; letter-spacing: -0.033em; font-weight: 700; }
.h2 { font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.25rem); line-height: 1.15; letter-spacing: -0.03em; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 620; }
.h4 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.006em; font-weight: 620; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--text); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; line-height: 1.5; }
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 8px; margin: 0 0 14px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-800);
}
.eyebrow::before { content: ''; margin-top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); flex: none; }
.num { font-variant-numeric: tabular-nums; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.25rem; letter-spacing: -0.012em; margin: 2.2em 0 .6em; }
.prose p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--alt { background: var(--surface-alt); }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 14px; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; max-width: none; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 20px; } }
.stack > * + * { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 18px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 1px 0 rgba(1, 43, 87, .12); }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-primary:active { background: var(--navy-900); }
.btn-secondary { background: #fff; color: var(--navy-900); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy-800); color: var(--navy-900); background: #fff; }
.btn-on-dark { background: #fff; color: var(--navy-900); }
.btn-on-dark:hover { background: var(--blue-50); color: var(--navy-900); }
.btn-outline-dark { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }
.btn-outline-dark:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .6; cursor: not-allowed; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: .9375rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(3px); }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(6px); } }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 48px; } }
.main-nav { display: none; margin-left: 16px; }
.nav-list { display: flex; list-style: none; gap: 2px; }
.nav-item { position: relative; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--r-btn);
  font-size: .9375rem; font-weight: 520; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded='true'] { background: var(--surface-alt); color: var(--navy-900); }
.nav-link[aria-current='page'], .nav-item.is-current > .nav-trigger { color: var(--navy-900); font-weight: 620; }
.nav-trigger svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded='true'] svg { transform: rotate(180deg); }
.mega {
  position: absolute; left: -12px; top: calc(100% + 10px); width: 560px; background: #fff; border-radius: var(--r-card);
  box-shadow: var(--shadow-menu); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mega--narrow { width: 400px; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; }
.mega--narrow .mega-grid { grid-template-columns: 1fr; }
.mega-link { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-btn); text-decoration: none; color: var(--text); }
.mega-link:hover, .mega-link:focus-visible { background: var(--surface-alt); color: var(--text); }
.mega-icon { flex: none; width: 36px; height: 36px; border-radius: var(--r-btn); border: 1px solid var(--border); display: grid; place-items: center; color: var(--navy-800); background: #fff; }
.mega-icon svg { width: 18px; height: 18px; }
.mega-title { display: block; font-weight: 600; color: var(--navy-900); font-size: .9375rem; line-height: 1.35; }
.mega-desc { display: block; font-size: .8125rem; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.mega-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--border); font-size: .875rem; }
.mega-foot a { text-decoration: none; font-weight: 600; }
.mega-foot .tools { display: flex; gap: 16px; color: var(--text-muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-contact { display: none; font-size: .9375rem; font-weight: 520; color: var(--text); text-decoration: none; padding: 8px 10px; }
.header-contact:hover { color: var(--navy-900); }
.header-cta { display: none; }
.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--r-btn); background: #fff; cursor: pointer; color: var(--navy-900); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded='true'] .i-close { display: block; }
.menu-toggle[aria-expanded='true'] .i-menu { display: none; }
@media (min-width: 350px) { .header-cta { display: inline-flex; } }
@media (max-width: 380px) { .brand img { height: 34px; } .header-cta { padding: 7px 10px; font-size: .8125rem; } }
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .header-contact { display: inline-flex; }
  .menu-toggle { display: none; }
}
.mobile-menu { border-top: 1px solid var(--border); background: #fff; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
@media (min-width: 1100px) { .mobile-menu { display: none !important; } }
.mobile-menu .container { padding-top: 16px; padding-bottom: 24px; }
.m-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.m-heading { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.m-links { list-style: none; }
.m-links a { display: flex; align-items: center; min-height: 44px; font-weight: 560; color: var(--navy-900); text-decoration: none; }
.m-links a[aria-current='page'] { color: var(--blue-700); }
.m-actions { display: grid; gap: 10px; margin-top: 16px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .8125rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-900); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; } }
.hero .lead { margin-top: 20px; }
.hero .btn-group { margin-top: 28px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; list-style: none; font-size: .875rem; color: var(--text); }
.check-row li { display: inline-flex; align-items: center; gap: 6px; }
.check-row svg { width: 16px; height: 16px; color: var(--green-600); flex: none; }
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.page-hero .lead { margin-top: 16px; }
.page-hero .btn-group { margin-top: 24px; }

/* Service finder (home hero) */
.finder { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-paper); }
.finder-head { padding: 18px 20px 10px; }
.finder-head p { margin: 4px 0 0; font-size: .875rem; color: var(--text-muted); }
.finder-list { list-style: none; border-top: 1px solid var(--border); }
.finder-list li + li { border-top: 1px solid var(--border); }
.finder-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; text-decoration: none; color: var(--navy-900); font-weight: 540; font-size: .9375rem; }
.finder-list a:hover { background: var(--surface-alt); }
.finder-list .tag { font-size: .75rem; color: var(--text-muted); font-weight: 500; display: none; }
@media (min-width: 480px) { .finder-list .tag { display: inline; } }
.finder-list svg { width: 16px; height: 16px; color: var(--blue-700); flex: none; }
.finder-foot { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-alt); border-radius: 0 0 var(--r-card) var(--r-card); font-size: .875rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.finder-foot a { font-weight: 600; text-decoration: none; }

/* ---------- Cards ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card--link { transition: border-color .15s var(--ease); display: flex; flex-direction: column; }
.card--link:hover { border-color: var(--navy-800); }
.card--link .link-arrow { margin-top: auto; padding-top: 12px; }
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-card); }
.card--link h3 a:focus-visible { outline: none; }
.card--link:focus-within { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.card-icon { width: 40px; height: 40px; border-radius: var(--r-btn); display: grid; place-items: center; color: var(--navy-800); background: var(--blue-50); margin-bottom: 16px; }
.card-icon svg { width: 20px; height: 20px; }
.feature { padding: 4px 0; }
.feature .card-icon { margin-bottom: 14px; }
.feature h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.5; border: 1px solid var(--border-strong); color: var(--navy-900); background: #fff; }
.badge--blue { background: var(--blue-50); border-color: var(--blue-100); color: var(--navy-800); }
.badge--amber { background: var(--amber-50); border-color: var(--amber-200); color: var(--amber-800); }
.badge--muted { color: var(--text-muted); }

/* ---------- Lists ---------- */
.list-check, .list-dash, .list-doc { list-style: none; display: grid; gap: 10px; }
.list-check li, .list-dash li, .list-doc li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.list-check svg, .list-dash svg, .list-doc svg { width: 20px; height: 20px; margin-top: 2px; }
.list-check svg { color: var(--green-600); }
.list-dash svg { color: var(--text-muted); }
.list-doc svg { color: var(--navy-800); }

/* ---------- Callouts / alerts ---------- */
.callout { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--blue-100); background: var(--blue-50); font-size: .9375rem; color: var(--text); }
.callout svg { width: 20px; height: 20px; margin-top: 1px; color: var(--navy-800); }
.callout p { margin: 0; }
.callout strong { color: var(--navy-900); }
.callout--gov { background: var(--amber-50); border-color: var(--amber-200); }
.callout--gov svg { color: var(--amber-800); }
.callout--success { background: var(--green-50); border-color: #bfe3c9; }
.callout--success svg { color: var(--green-600); }
.callout--error { background: var(--red-50); border-color: #f5c2bd; }
.callout--error svg { color: var(--red-600); }
.notice-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.notice-bar .callout { border: 0; background: none; padding: 16px 0; border-radius: 0; color: var(--text-muted); font-size: .875rem; }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps > li { counter-increment: step; position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding-bottom: 24px; }
.steps > li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 650; font-size: .9375rem; color: var(--navy-900); background: #fff; border: 1px solid var(--border-strong); position: relative; z-index: 1;
}
.steps > li::after { content: ''; position: absolute; left: 17.5px; top: 36px; bottom: 0; width: 1px; background: var(--border-strong); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps .step-body { padding-top: 6px; }
.steps h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.steps p { color: var(--text-muted); margin: 0; }
.steps--h { gap: 16px; }
@media (min-width: 900px) {
  .steps--h { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps--h > li { grid-template-columns: 1fr; gap: 14px; padding-bottom: 0; }
  .steps--h > li::after { left: 44px; right: -24px; top: 17.5px; bottom: auto; width: auto; height: 1px; }
  .steps--h .step-body { padding-top: 0; }
}

/* Simplify • File • Grow brand rhythm */
.sfg { display: flex; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); font-weight: 560; }
.sfg i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); display: inline-block; }

/* ---------- Responsibility strip ("Who does what") ---------- */
.lanes { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; overflow: hidden; }
@media (min-width: 900px) { .lanes { grid-template-columns: repeat(3, 1fr); } }
.lane { padding: 22px 22px 24px; }
.lane + .lane { border-top: 1px solid var(--border); }
@media (min-width: 900px) { .lane + .lane { border-top: 0; border-left: 1px solid var(--border); } }
.lane-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lane-head .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.lane-head .dot svg { width: 16px; height: 16px; }
.lane--us .dot { background: var(--blue-50); color: var(--navy-800); }
.lane--you .dot { background: var(--surface-alt); color: var(--navy-900); }
.lane--gov { background: var(--amber-50); }
.lane--gov .dot { background: #fff; color: var(--amber-800); border: 1px solid var(--amber-200); }
.lane h3 { font-size: 1rem; }
.lane ul { list-style: none; display: grid; gap: 8px; font-size: .9375rem; }
.lane li { padding-left: 14px; position: relative; }
.lane li::before { content: ''; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.lane--gov li::before { background: var(--amber-200); }

/* ---------- Service detail layout ---------- */
.svc-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .svc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } }
.svc-main > section + section { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border); }
.svc-main h2 { margin-bottom: 20px; }
.svc-two { display: grid; gap: 28px; }
@media (min-width: 720px) { .svc-two { grid-template-columns: 1fr 1fr; gap: 32px; } }
.svc-two h3 { font-size: 1rem; margin-bottom: 14px; }
.aside-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-paper); overflow: hidden; }
@media (min-width: 1024px) { .aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card .ac-head { padding: 20px 20px 4px; }
.aside-card dl { margin: 0; padding: 4px 20px 8px; }
.aside-card .ac-row { padding: 12px 0; border-bottom: 1px solid var(--border); display: grid; gap: 2px; }
.aside-card .ac-row:last-child { border-bottom: 0; }
.aside-card dt { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.aside-card dd { margin: 0; font-size: .9375rem; color: var(--navy-900); font-weight: 540; }
.aside-card .ac-actions { padding: 16px 20px 20px; display: grid; gap: 10px; border-top: 1px solid var(--border); background: var(--surface-alt); }
.aside-card .ac-alt { display: flex; justify-content: center; gap: 16px; font-size: .875rem; }
.aside-card .ac-alt a { font-weight: 600; text-decoration: none; }
.on-this-page { margin-top: 16px; font-size: .875rem; display: none; }
@media (min-width: 1024px) { .on-this-page { display: block; } }
.on-this-page p { font-weight: 600; color: var(--navy-900); margin: 0 0 6px; }
.on-this-page ul { list-style: none; border-left: 1px solid var(--border); }
.on-this-page a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-muted); text-decoration: none; }
.on-this-page a:hover { color: var(--navy-900); border-left-color: var(--navy-800); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

/* ---------- FAQ (Mercury FAQ pattern) ---------- */
.faq { max-width: 760px; border-top: 1px solid var(--border); }
.faq--center { margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 4px; font-weight: 600; color: var(--navy-900); font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:hover { color: var(--navy-800); }
.faq .faq-a { padding: 0 4px 20px; color: var(--text-muted); max-width: 68ch; }
.faq .faq-a p { margin: 0; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 0; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.label { font-size: .875rem; font-weight: 600; color: var(--navy-900); }
.label .opt { font-weight: 450; color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-input);
  max-width: 100%; background: #fff; font-size: 1rem; line-height: 1.4; color: var(--navy-900); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2356657a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input::placeholder, .textarea::placeholder { color: #8a97a8; }
.input:hover, .select:hover, .textarea:hover { border-color: #94a3b8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100); }
.input[aria-invalid='true'], .select[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--red-600); box-shadow: 0 0 0 3px #fbe0dd; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-weight: 500; }
.input-prefix .input { padding-left: 30px; }
.hint { font-size: .8125rem; color: var(--text-muted); margin: 0; }
.error-msg { display: flex; gap: 6px; align-items: flex-start; font-size: .8125rem; color: var(--red-700); font-weight: 520; margin: 0; }
.error-msg[hidden] { display: none; }
.error-msg svg { width: 14px; height: 14px; margin-top: 2px; flex: none; }
.warn-msg { font-size: .8125rem; color: var(--amber-800); margin: 0; }
.ok-msg { font-size: .8125rem; color: var(--green-700); margin: 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .875rem; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-700); cursor: pointer; }
.segmented { justify-self: start; display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; border: 1px solid var(--border-strong); border-radius: calc(var(--r-btn) + 2px); background: var(--surface-alt); }
.segmented button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: var(--r-input); background: transparent; font-weight: 600; font-size: .9375rem; color: var(--text); cursor: pointer; }
.segmented button[aria-pressed='true'] { background: #fff; color: var(--navy-900); box-shadow: 0 1px 2px rgba(1, 43, 87, .12), 0 0 0 1px var(--border-strong); }
.segmented button:hover:not([aria-pressed='true']) { color: var(--navy-900); }
.form-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); }
.form-panel .form-foot { margin-top: 20px; display: grid; gap: 14px; }
.form-status { margin-top: 4px; }
.form-success { text-align: left; }
.form-success h3 { margin: 4px 0 6px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Enquiry section */
.enquiry-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .enquiry-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }
.next-steps { list-style: none; counter-reset: n; display: grid; gap: 18px; margin-top: 24px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.next-steps li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-size: .8125rem; font-weight: 650; }
.next-steps strong { display: block; color: var(--navy-900); }
.next-steps span { color: var(--text-muted); font-size: .9375rem; }
.contact-methods { list-style: none; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; margin-top: 28px; }
.contact-methods li + li { border-top: 1px solid var(--border); }
.contact-methods a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: var(--navy-900); }
.contact-methods a:hover { background: var(--surface-alt); }
.contact-methods .cm-icon { width: 40px; height: 40px; border-radius: var(--r-btn); background: var(--blue-50); display: grid; place-items: center; color: var(--navy-800); }
.contact-methods .cm-icon svg { width: 20px; height: 20px; }
.contact-methods small { display: block; color: var(--text-muted); font-size: .8125rem; }
.contact-methods strong { font-weight: 600; word-break: break-word; }
.contact-methods .chev { width: 16px; height: 16px; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pkg-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .pkg-grid { grid-template-columns: repeat(4, 1fr); } }
.pkg { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.pkg:target { border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100); }
.pkg .badge { align-self: flex-start; margin-bottom: 14px; }
.pkg .pkg-for { color: var(--text-muted); font-size: .875rem; margin: 4px 0 16px; }
.pkg .pkg-price { padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.pkg .pkg-price strong { display: block; color: var(--navy-900); font-size: 1.0625rem; letter-spacing: -0.01em; }
.pkg .pkg-price span { font-size: .8125rem; color: var(--text-muted); }
.pkg-area { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin: 14px 0 10px; }
.pkg-area:first-of-type { margin-top: 0; }
.pkg .list-check { font-size: .9375rem; gap: 8px; }
.pkg-ex { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border-strong); font-size: .875rem; }
.pkg-ex .list-dash { gap: 6px; margin-top: 8px; }
.pkg-ex .list-dash svg { width: 16px; height: 16px; }
.pkg .btn { margin-top: auto; }
.pkg .pkg-ex { margin-bottom: 22px; }
.pkg .pkg-cta { margin-top: auto; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 2px solid var(--blue-700); }
.ledger { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ledger th, .ledger td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.ledger thead th { font-size: .8125rem; font-weight: 600; color: var(--navy-900); background: var(--surface-alt); white-space: nowrap; }
.ledger tbody th { font-weight: 500; color: var(--text); }
.ledger tr:last-child > * { border-bottom: 0; }
.ledger .group-row th { background: #fff; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; padding-top: 18px; }
.ledger td.c { text-align: center; }
.ledger .yes { color: var(--green-600); }
.ledger .no { color: var(--border-strong); }
.ledger svg { width: 18px; height: 18px; display: inline-block; }
.compare { min-width: 760px; }
.compare tbody th { width: 34%; }

/* ---------- Calculator ---------- */
.tool-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px; align-items: start; } }
.tool-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: clamp(20px, 3vw, 28px); }
.tool-panel .form-grid { margin-top: 20px; }
.result-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-paper); overflow: hidden; }
@media (min-width: 960px) { .result-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.result-head { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.result-head h2 { font-size: 1rem; }
.ledger-rows { list-style: none; }
.ledger-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.ledger-rows li span:first-child { color: var(--text-muted); }
.ledger-rows li span:last-child { color: var(--navy-900); font-weight: 560; font-variant-numeric: tabular-nums; }
.ledger-rows .sub span:first-child { padding-left: 14px; }
.result-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 20px; background: var(--surface-alt); }
.result-total span:first-child { font-weight: 600; color: var(--navy-900); }
.result-total output { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 700; color: var(--navy-900); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result-foot { padding: 14px 20px; font-size: .8125rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.result-foot p { margin: 0; }
.result-empty { padding: 28px 20px; color: var(--red-700); font-size: .9375rem; }

/* ---------- Invoice generator ---------- */
.inv-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.inv-layout > *, .tool-grid > *, .enquiry-grid > *, .svc-layout > *, .hero-grid > * { min-width: 0; }
@media (min-width: 1180px) { .inv-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.inv-form { display: grid; gap: 16px; }
.inv-form fieldset { border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 20px 20px; margin: 0; background: #fff; min-width: 0; }
.inv-form legend { padding: 0 6px; margin-left: -6px; font-weight: 650; color: var(--navy-900); font-size: 1rem; }
.inv-form .form-grid { margin-top: 6px; }
.items { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.item { border: 1px solid var(--border); border-radius: var(--r-btn); padding: 12px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; background: var(--surface-alt); }
.item .f-desc { grid-column: 1 / -1; }
.item .label { font-size: .75rem; }
.item .input, .item .select { min-height: 40px; padding: 8px 10px; font-size: .9375rem; }
.item .item-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; color: var(--text-muted); }
.item .item-foot strong { color: var(--navy-900); font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .item { grid-template-columns: 2.4fr 1fr .8fr 1.1fr .9fr; align-items: end; }
  .item .f-desc { grid-column: auto; }
}
.btn-remove { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--text-muted); font-size: .8125rem; font-weight: 600; cursor: pointer; padding: 6px 4px; border-radius: 4px; }
.btn-remove:hover { color: var(--red-700); }
.btn-remove[disabled] { opacity: .45; cursor: not-allowed; }
.btn-remove svg { width: 14px; height: 14px; }
.btn-add { margin-top: 12px; }
.paper-wrap { background: var(--paper-bg); border-radius: var(--r-card); padding: clamp(12px, 2.5vw, 28px); }
@media (min-width: 1180px) { .paper-wrap { position: sticky; top: calc(var(--header-h) + 16px); } }
.paper-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.paper-bar h2 { font-size: 1rem; }
.paper { background: #fff; border-radius: 4px; box-shadow: var(--shadow-paper); padding: clamp(18px, 3.5vw, 36px); font-size: .8125rem; color: #1b2a3d; line-height: 1.5; }
.paper-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--navy-900); }
.paper-top h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.paper .doc-title { text-align: right; }
.paper .doc-title strong { display: block; font-size: 1.0625rem; letter-spacing: .08em; color: var(--navy-900); }
.paper .meta { color: var(--text-muted); }
.paper .meta b { color: #1b2a3d; font-weight: 600; }
.paper-parties { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; padding: 16px 0; }
.paper-parties .k { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.paper-parties .v { font-weight: 600; color: var(--navy-900); }
.paper .addr { white-space: pre-line; }
.paper-table-wrap { overflow-x: auto; }
.paper table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 460px; font-size: .75rem; }
.paper td small { display: block; color: var(--text-muted); font-size: .6875rem; }
@media (min-width: 1180px) { .paper table { min-width: 0; } }
.paper th, .paper td { padding: 8px 4px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
.paper th { font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-strong); }
.paper th:first-child, .paper td:first-child { text-align: left; }
.paper td.desc { text-align: left; white-space: pre-line; }
.paper-sum { margin-left: auto; width: min(100%, 300px); margin-top: 14px; }
.paper-sum div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.paper-sum .grand { border-top: 2px solid var(--navy-900); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: .9375rem; color: var(--navy-900); }
.paper .words { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.paper .foot-note { margin-top: 18px; font-size: .6875rem; color: var(--text-muted); }
.placeholder-text { color: #64748b; font-style: italic; }

/* ---------- Resources ---------- */
.res-toolbar { display: grid; gap: 14px; margin-bottom: 24px; }
@media (min-width: 900px) { .res-toolbar { grid-template-columns: 1fr 300px; align-items: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; font-size: .875rem; font-weight: 560; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--navy-800); color: var(--navy-900); }
.chip[aria-pressed='true'] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip .count { font-size: .75rem; opacity: .7; font-variant-numeric: tabular-nums; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search .input { padding-left: 38px; }
.guide { display: flex; flex-direction: column; gap: 10px; }
.guide .g-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guide .g-type { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: var(--navy-800); }
.guide h3 { font-size: 1.0625rem; }
.guide p { color: var(--text-muted); font-size: .9375rem; margin: 0; }
.guide .g-links { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; }
.guide .g-links a { font-weight: 600; text-decoration: none; }
.res-empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--r-card); color: var(--text-muted); }
.res-empty[hidden] { display: none; }

/* ---------- Legal ---------- */
.legal-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; } }
.legal-nav { font-size: .875rem; }
@media (min-width: 960px) { .legal-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.legal-nav p { font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.legal-nav ul { list-style: none; border-left: 1px solid var(--border); }
.legal-nav a { display: block; padding: 6px 0 6px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; }
.legal-nav a:hover { color: var(--navy-900); }
.legal-nav a[aria-current='page'] { color: var(--navy-900); border-left-color: var(--navy-900); font-weight: 600; }
.legal-body h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body .updated { color: var(--text-muted); font-size: .875rem; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--navy-900); color: #dbe6f3; }
.cta-band .container { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 10px 0 0; max-width: 60ch; }
.cta-band .sfg { color: #9fb6d1; margin-bottom: 14px; }
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--border); font-size: .9375rem; }
.footer-grid { display: grid; gap: 32px; padding: 48px 0 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { color: var(--text-muted); margin: 14px 0 12px; max-width: 34ch; }
.footer-brand ul { list-style: none; display: grid; gap: 6px; }
.footer-brand a { color: var(--navy-900); text-decoration: none; font-weight: 520; }
.footer-brand a:hover { text-decoration: underline; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-900); font-weight: 650; margin-bottom: 12px; }
.site-footer .f-links { list-style: none; display: grid; gap: 8px; }
.site-footer .f-links a { color: var(--text-muted); text-decoration: none; }
.site-footer .f-links a:hover { color: var(--navy-900); text-decoration: underline; }
.disclosure { border: 1px solid var(--border-strong); border-radius: var(--r-input); padding: 14px 16px; font-size: .8125rem; color: var(--text-muted); background: #fff; }
.disclosure strong { color: var(--navy-900); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 28px; font-size: .8125rem; color: var(--text-muted); }

/* ---------- 404 ---------- */
.nf { padding: clamp(56px, 8vw, 120px) 0; }
.nf .code { font-size: .875rem; font-weight: 650; color: var(--navy-800); letter-spacing: .1em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Print ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .no-print, .site-header, .site-footer, .cta-band, .notice-bar, .skip-link { display: none !important; }
  a { color: inherit; text-decoration: none; }
  /* Invoice page: print only the invoice */
  body.page-invoice main > *:not(.inv-print-root) { display: none !important; }
  body.page-invoice .inv-print-root .container { padding: 0; max-width: none; }
  body.page-invoice .inv-layout { display: block; }
  body.page-invoice .inv-form, body.page-invoice .paper-bar { display: none !important; }
  body.page-invoice .paper-wrap { background: none; padding: 0; position: static; }
  body.page-invoice .paper { box-shadow: none; padding: 0; font-size: 10pt; }
  body.page-invoice .paper table { min-width: 0; }
  body.page-invoice .paper-table-wrap { overflow: visible; }
  .paper tr { break-inside: avoid; }
  /* Document checklist printing on service pages */
  body.print-checklist main > *:not(.svc-print-root) { display: none !important; }
  body.print-checklist .svc-print-root .svc-layout { display: block; }
  body.print-checklist .svc-print-root aside, body.print-checklist .svc-main > section:not(#documents) { display: none !important; }
  body.print-checklist #documents { border: 0; margin: 0; padding: 0; }
  body.print-checklist .list-doc li::before { content: '☐'; font-size: 14pt; }
  body.print-checklist .list-doc li { grid-template-columns: 22px 1fr; }
  body.print-checklist .list-doc svg { display: none; }
  body.print-checklist .doc-actions { display: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

.jump-preview { display: inline-flex; margin-left: 12px; font-size: .875rem; font-weight: 600; }
@media (min-width: 1180px) { .jump-preview { display: none; } }

/* ==========================================================================
   Home page: Acctual style ("Paper invoice on frosted glass", Refero aeefc294).
   Scoped to body.home-acctual so the other 18 routes keep the logo system.
   Tokens are from the Acctual DESIGN.md. AA adjustments: eyebrow text uses
   --a-blue-text (#0077c2, 4.75:1) because Electric Blue is 3.1:1 at 11px;
   Electric Blue stays on icons (≥3:1 non-text). Fog is never used for text.
   ========================================================================== */
.home-acctual {
  --a-ink: #1e1e1e;
  --a-midnight: #0d111b;
  --a-carbon: #0f0f0f;
  --a-smoke: #666666;
  --a-mist: #ccd1da;
  --a-paper: #ffffff;
  --a-snow: #fafafa;
  --a-blue: #0098f2;
  --a-blue-text: #0077c2;
  --a-iris: #6c56fc;
  --a-leaf: #5d9c06;
  --a-ice: #cfeafa;
  --a-lavender: #e1e0fc;
  --a-shadow-btn: rgb(36, 38, 40) 0 0 0 1px, rgba(27, 28, 29, .48) 0 1px 2px 0;
  --a-shadow-card: rgba(0, 0, 0, .05) 0 1.78px 8px 0, rgba(0, 0, 0, .04) 0 .89px 2.67px 0;
  --a-shadow-paper: rgba(10, 13, 20, .03) 0 1px 2px 0;
  --a-shadow-nav: rgba(0, 0, 0, .06) 0 2px 3px -1px, 0 0 0 1px rgba(13, 17, 27, .06);
  --section: 96px;
  background: var(--a-paper); color: var(--a-ink);
  font-weight: 500; letter-spacing: -0.02em;
}
@media (max-width: 1023px) { .home-acctual { --section: 72px; } }
@media (max-width: 639px) { .home-acctual { --section: 56px; } }
.home-acctual a { color: var(--a-ink); }
.home-acctual a:hover { color: var(--a-midnight); }
.home-acctual :focus-visible { outline-color: var(--a-midnight); }
.home-acctual .muted, .home-acctual .lead { color: var(--a-smoke); }

/* Type: Open Runde substitute = Inter (per DESIGN.md), 600 + -0.03em on 20px+ */
.home-acctual h1, .home-acctual h2, .home-acctual h3, .home-acctual h4 { color: var(--a-ink); font-weight: 600; letter-spacing: -0.03em; }
.home-acctual .display { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); line-height: 1.13; }
.home-acctual .h2 { font-size: clamp(1.875rem, 1.45rem + 1.6vw, 2.5rem); line-height: 1.2; }
.home-acctual .h3 { font-size: 1.25rem; line-height: 1.3; }
.home-acctual .h4 { font-size: 1.25rem; line-height: 1.3; }
.home-acctual .lead { font-size: clamp(1.0625rem, .95rem + .45vw, 1.375rem); line-height: 1.45; letter-spacing: -0.02em; }
.home-acctual .eyebrow { font-size: 11px; line-height: 1.62; font-weight: 600; letter-spacing: .02em; color: var(--a-blue-text); margin-bottom: 16px; }
.home-acctual .eyebrow::before { display: none; }
.home-acctual .ah-center { text-align: center; margin-left: auto; margin-right: auto; }
.home-acctual .ah-center .lead { margin-left: auto; margin-right: auto; }

/* Buttons: Midnight pill, never a chromatic fill */
.home-acctual .btn { border-radius: 100px; font-weight: 500; font-size: .9375rem; letter-spacing: -0.02em; padding: 10px 20px; }
.home-acctual .btn-primary, .home-acctual .btn-on-dark { background: var(--a-midnight); color: #fff; box-shadow: var(--a-shadow-btn); border-color: transparent; }
.home-acctual .btn-primary:hover, .home-acctual .btn-on-dark:hover { background: var(--a-carbon); color: #fff; }
.home-acctual .btn-primary:active, .home-acctual .btn-on-dark:active { background: #000; }
.home-acctual .btn-secondary, .home-acctual .btn-outline-dark { background: #fff; color: var(--a-ink); border-color: var(--a-mist); box-shadow: var(--a-shadow-paper); }
.home-acctual .btn-secondary:hover, .home-acctual .btn-outline-dark:hover { border-color: var(--a-ink); color: var(--a-ink); background: #fff; }
.home-acctual .btn-sm { padding: 7px 14px; font-size: .875rem; }
.home-acctual .link-arrow { color: var(--a-ink); font-weight: 600; }

/* Header: floating pill container */
.home-acctual .site-header { background: transparent; border-bottom: 0; backdrop-filter: none; padding-top: 12px; }
.home-acctual .header-inner { background: rgba(255, 255, 255, .9); border-radius: 100px; box-shadow: var(--a-shadow-nav); padding: 0 8px 0 20px; height: 60px; }
@supports (backdrop-filter: blur(12px)) { .home-acctual .header-inner { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(12px); } }
.home-acctual .site-header > .container.header-inner { width: calc(100% - var(--gutter) * 2); max-width: var(--container); }
.home-acctual .brand img { height: 36px; }
.home-acctual .nav-link, .home-acctual .nav-trigger, .home-acctual .header-contact { border-radius: 100px; color: var(--a-smoke); font-weight: 500; font-size: .875rem; }
.home-acctual .nav-link:hover, .home-acctual .nav-trigger:hover, .home-acctual .nav-trigger[aria-expanded='true'] { background: var(--a-snow); color: var(--a-ink); }
.home-acctual .nav-item.is-current > .nav-trigger { color: var(--a-ink); }
.home-acctual .mega { border-radius: 16px; top: calc(100% + 14px); }
.home-acctual .mega-link, .home-acctual .mega-icon { border-radius: 12px; }
.home-acctual .mega-icon { color: var(--a-ink); border-color: var(--a-mist); }
.home-acctual .mega-title { color: var(--a-ink); }
.home-acctual .mega-desc { color: var(--a-smoke); }
.home-acctual .menu-toggle { border-radius: 100px; border-color: var(--a-mist); color: var(--a-ink); }
.home-acctual .mobile-menu { margin: 8px var(--gutter) 0; border: 0; border-radius: 16px; box-shadow: var(--a-shadow-card); }
.home-acctual .m-links a { color: var(--a-ink); }

/* Hero */
.ah-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.ah-hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.ah-hero-copy .lead { margin: 20px auto 0; max-width: 60ch; }
.ah-hero .btn-group { justify-content: center; margin-top: 32px; }
.home-acctual .check-row { justify-content: center; margin-top: 28px; color: var(--a-ink); font-size: .9375rem; }
.home-acctual .check-row svg { width: 18px; height: 18px; color: var(--a-blue); }
.home-acctual .check-row svg circle { fill: var(--a-blue); }
.home-acctual .check-row svg path { stroke: #fff; stroke-width: 2.25; }

/* Signature: the finder sits on a stack of paper sheets */
.ah-stage { position: relative; max-width: 640px; margin: clamp(48px, 6vw, 72px) auto 0; }
.ah-sheet {
  position: absolute; inset: 0; background: #fff; border-radius: 16px; box-shadow: var(--a-shadow-card);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; pointer-events: none;
}
.ah-sheet--back { transform: translate(-7%, 18px) rotate(-5deg); opacity: .7; }
.ah-sheet--mid { transform: translate(6%, 8px) rotate(3.5deg); opacity: .9; }
.ah-sheet-label { width: 30%; height: 8px; border-radius: 100px; background: #eceef2; }
.ah-sheet-row { display: flex; align-items: center; gap: 10px; }
.ah-sheet-row b { display: block; width: 42%; height: 10px; border-radius: 100px; background: #e4e7ec; }
.ah-dot { width: 20px; height: 20px; border-radius: 888px; flex: none; }
.ah-dot--iris { background: var(--a-iris); }
.ah-dot--leaf { background: var(--a-leaf); }
.ah-sheet-line { height: 8px; border-radius: 100px; background: #f0f2f5; }
.ah-sheet-line--short { width: 60%; }
@media (max-width: 639px) {
  .ah-sheet--back { transform: translate(-3%, 14px) rotate(-3deg); }
  .ah-sheet--mid { transform: translate(3%, 6px) rotate(2deg); }
}
.home-acctual .finder { position: relative; border: 0; border-radius: 20px; box-shadow: var(--a-shadow-card), 0 0 0 1px rgba(13, 17, 27, .05); background: #fff; }
.home-acctual .finder-head { padding: 24px 24px 14px; }
.home-acctual .finder-head p { color: var(--a-smoke); }
.home-acctual .finder-list { border-top-color: #edf0f4; }
.home-acctual .finder-list li + li { border-top-color: #edf0f4; }
.home-acctual .finder-list a { color: var(--a-ink); font-weight: 500; padding: 14px 24px; }
.home-acctual .finder-list a:hover { background: var(--a-snow); }
.finder-meta { display: flex; align-items: center; gap: 10px; }
.home-acctual .finder-list .tag { border-radius: 100px; background: var(--a-snow); border: 1px solid #edf0f4; padding: 2px 10px; color: var(--a-smoke); font-size: .75rem; letter-spacing: 0; }
.home-acctual .finder-list svg { color: var(--a-ink); }
.home-acctual .finder-foot { background: var(--a-snow); border-top-color: #edf0f4; border-radius: 0 0 20px 20px; padding: 14px 24px; }
.home-acctual .finder-foot a { color: var(--a-ink); text-decoration: underline; text-decoration-color: var(--a-mist); }

/* Cards */
.home-acctual .card { border-radius: 16px; padding: 24px; }
.home-acctual .card--link h3 a::after { border-radius: 16px; }
.home-acctual .card--link:focus-within { outline-color: var(--a-midnight); }
.home-acctual .card-icon { width: 40px; height: 40px; border-radius: 888px; background: #fff; color: var(--a-ink); box-shadow: 0 0 0 1px #e6e9ee; }
.home-acctual .ah-flat { background: var(--a-snow); border: 0; transition: background-color .15s var(--ease); }
.home-acctual .ah-flat.card--link:hover { background: #f2f3f5; }
.home-acctual .ah-raised { background: #fff; border: 0; border-radius: 20px; box-shadow: var(--a-shadow-card), 0 0 0 1px rgba(13, 17, 27, .04); transition: box-shadow .15s var(--ease); }
.home-acctual .ah-raised.card--link:hover { box-shadow: rgba(0, 0, 0, .08) 0 4px 16px 0, 0 0 0 1px rgba(13, 17, 27, .08); }
.home-acctual .ah-raised h3 a::after { border-radius: 20px; }
.home-acctual .ah-tint { border: 0; transition: filter .15s var(--ease); }
.home-acctual .ah-tint--ice { background: var(--a-ice); }
.home-acctual .ah-tint--lavender { background: var(--a-lavender); }
.home-acctual .ah-tint .muted { color: #4d4d4d; }
.home-acctual .ah-tint.card--link:hover { filter: brightness(.97); }
.home-acctual .ah-tint .card-icon { box-shadow: none; }
.ah-it { margin-top: 20px; display: grid; gap: 16px; align-items: center; grid-template-columns: auto 1fr; }
.ah-it .card-icon { margin: 0; }
.ah-it h3 { margin-bottom: 4px; }
.ah-it p { margin: 0; }
.ah-it a { text-decoration: underline; text-decoration-color: var(--a-mist); }

/* Why choose: Electric Blue circular icons (inline-icon role only) */
.home-acctual .feature { padding: 0; }
.home-acctual .feature .card-icon { width: 36px; height: 36px; background: var(--a-blue); color: #fff; box-shadow: none; }
.home-acctual .feature .card-icon svg { width: 18px; height: 18px; }
.home-acctual .feature h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.home-acctual .feature p { color: var(--a-smoke); }

/* Large feature panel (How it works) */
.ah-panel-wrap { padding: 0; }
.ah-panel { background: var(--a-snow); border-radius: 32px; padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 48px); }
.home-acctual .steps > li::before { background: #fff; border: 0; box-shadow: 0 0 0 1px var(--a-mist); color: var(--a-ink); font-weight: 600; }
.home-acctual .steps > li::after { background: var(--a-mist); }
.home-acctual .steps h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.home-acctual .steps p { color: var(--a-smoke); }
.home-acctual .ah-section-flush { padding-bottom: 0; }

/* FAQ: hairline rows, plus icon */
.home-acctual .faq { border-top-color: var(--a-mist); }
.home-acctual .faq details { border-bottom-color: var(--a-mist); }
.home-acctual .faq summary { color: var(--a-ink); font-weight: 500; min-height: 64px; }
.home-acctual .faq summary svg { color: var(--a-ink); }
.home-acctual .faq details[open] summary svg { transform: rotate(45deg); }
.home-acctual .faq-a p { color: var(--a-smoke); }

/* CTA: large light panel instead of the navy band */
.home-acctual .cta-band { background: none; color: var(--a-smoke); padding-bottom: var(--section); }
.home-acctual .cta-band .container { background: var(--a-snow); border-radius: 32px; padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 48px); width: calc(100% - var(--gutter) * 2); max-width: var(--container); grid-template-columns: 1fr; text-align: center; justify-items: center; }
.home-acctual .cta-band h2 { color: var(--a-ink); }
.home-acctual .cta-band p { margin-left: auto; margin-right: auto; }
.home-acctual .cta-band .btn-group { justify-content: center; }
.home-acctual .cta-band .sfg { color: var(--a-smoke); justify-content: center; }
.home-acctual .sfg i { background: var(--a-blue); }

/* Notice + footer */
.home-acctual .notice-bar { border-color: #edf0f4; }
.home-acctual .notice-bar .callout { color: var(--a-smoke); }
.home-acctual .notice-bar .callout a { text-decoration: underline; }
.home-acctual .site-footer { background: var(--a-snow); border-top: 0; }
.home-acctual .site-footer h2 { color: var(--a-ink); font-weight: 600; letter-spacing: .02em; font-size: 11px; }
.home-acctual .site-footer .f-links a, .home-acctual .footer-brand p { color: var(--a-smoke); }
.home-acctual .footer-brand a, .home-acctual .disclosure strong { color: var(--a-ink); }
.home-acctual .disclosure { border-radius: 16px; border-color: var(--a-mist); color: var(--a-smoke); }
.home-acctual .footer-bottom { color: var(--a-smoke); }

/* Testimonials: elevated card, amber stars, Caveat signature (attribution only) */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/caveat-latin-600-normal.woff2') format('woff2'); }
.ah-review { margin: 0; display: flex; flex-direction: column; gap: 20px; background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--a-shadow-card), 0 0 0 1px rgba(13, 17, 27, .04); }
.ah-stars { display: flex; gap: 2px; margin: 0; }
.ah-stars svg { width: 18px; height: 18px; fill: #f5a623; }
.ah-review blockquote { margin: 0; color: var(--a-ink); font-size: 1.125rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.02em; text-wrap: pretty; }
.ah-review figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid #edf0f4; }
.ah-avatar { width: 48px; height: 48px; border-radius: 888px; flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 600; font-size: .9375rem; letter-spacing: 0; color: var(--a-ink); }
.ah-avatar--ice { background: var(--a-ice); }
.ah-avatar--lavender { background: var(--a-lavender); }
.ah-sign { display: block; font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.5rem; line-height: 1.1; letter-spacing: 0; color: var(--a-ink); }
.ah-role { display: block; font-size: .875rem; line-height: 1.43; color: var(--a-smoke); margin-top: 2px; }

@media print { .ah-sheet { display: none; } }
