/* =============================================================================
   Service Connect - public site design system (2026 redesign)

   One file for every page. No build step, no framework. Everything visual is
   a token on :root; dark mode swaps the semantic layer only. No inline styles
   anywhere (the CSP is style-src 'self'), so per-element variation is done
   with classes.

   Direction: "held in trust". The product's promise is that your money waits
   with Stripe until the job is done, so the page borrows from the honesty of
   a receipt: mono tabular figures, clear rules, one deep forest green and one
   bright signal green for money that is safe. See DESIGN_LANGUAGE.md and
   docs/REDESIGN-NOTES.md.

   Sections:
     1. Fonts            9. Home: hero + facts
     2. Tokens          10. Home: how it works (pinned flow)
     3. Base            11. Home: buyer protection (payment flow, fee calc)
     4. Layout + type   12. Home: category explorer + county map
     5. Buttons         13. Home: providers + FAQ split
     6. Header + nav    14. Shared sub-page components
     7. Footer          15. Legal, blog, press, 404, provider page
     8. Device frame    16. Cookie banner, motion, preferences
   ========================================================================== */

/* 1. Fonts ------------------------------------------------------------------
   Self-hosted (fonts/, SIL OFL 1.1), so no third-party request and no IP
   address sent to Google. unicode-range means a Cyrillic page downloads only
   the Cyrillic Geist file; Bricolage has no Cyrillic, so Cyrillic headings
   fall through to Geist, which is drawn to sit beside it. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/geist-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Primitives: one green-tinted neutral ramp, one green ramp. Components
     use the semantic layer below, never these. */
  --n-0: #fbfcfa;
  --n-25: #f3f5f1;
  --n-50: #eaeee8;
  --n-100: #dfe5de;
  --n-200: #cdd6ce;
  --n-300: #aebbb1;
  --n-500: #53635a;
  --n-600: #3a4a41;
  --n-800: #17241d;
  --n-900: #0c1a13;
  --g-200: #b9ecd0;
  --g-300: #7be0a6;
  --g-400: #46c97f;
  --g-500: #1e9e58;
  --g-600: #12703d;
  --g-800: #134732;
  --g-900: #0d3626;
  --g-950: #08241a;

  /* Semantic, light */
  --bg: var(--n-25);
  --bg-sunken: var(--n-50);
  --surface: var(--n-0);
  --surface-2: #eef2ed;
  --line: var(--n-100);
  --line-strong: var(--n-300);
  --text: var(--n-900);
  --text-2: var(--n-600);
  --text-3: var(--n-500);
  --signal: var(--g-500);          /* graphical only: dots, rules, fills */
  --signal-text: var(--g-600);     /* green text on page surfaces, 5.8:1 */
  --signal-soft: #dcf3e5;
  --forest: var(--g-900);          /* brand surfaces: hero stage, CTA card */
  --forest-2: var(--g-800);
  --forest-line: rgba(185, 236, 208, 0.16);
  --on-forest: #edf6f0;
  --on-forest-2: #a9c7b6;
  --on-forest-signal: var(--g-300);
  --btn-bg: var(--g-900);
  --btn-bg-hover: var(--g-800);
  --btn-fg: #f3f7f4;
  --focus: #0b6b37;
  --header-bg: rgba(251, 252, 250, 0.72);
  --header-line: rgba(12, 26, 19, 0.08);
  --scrim: rgba(8, 20, 14, 0.42);
  --grain-opacity: 0.035;

  /* Tinted, layered shadows: one light source, from above */
  --shadow-1: 0 1px 1px rgba(10, 34, 22, 0.05), 0 1px 3px rgba(10, 34, 22, 0.05);
  --shadow-2: 0 1px 2px rgba(10, 34, 22, 0.05), 0 6px 16px -4px rgba(10, 34, 22, 0.1);
  --shadow-3: 0 2px 4px rgba(10, 34, 22, 0.05), 0 18px 40px -12px rgba(10, 34, 22, 0.22);
  --shadow-phone: 0 3px 6px rgba(6, 26, 16, 0.12), 0 30px 70px -18px rgba(6, 26, 16, 0.5);
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* Type */
  --font-display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-base: 1rem;      /* 16 / 17 desktop via html font-size */
  --t-lg: 1.1875rem;   /* 19 */
  --t-xl: 1.375rem;    /* 22 */
  --t-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-3xl: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --t-4xl: clamp(2.375rem, 1.6rem + 3.6vw, 4.25rem);
  --t-5xl: clamp(2.625rem, 1.5rem + 5.2vw, 5.75rem);

  /* Spacing: 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px;
  --section-y: clamp(72px, 9vw, 144px);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --container-narrow: 760px;
  --header-h: 64px;

  /* Shape. Rule: interactive controls are pills, cards are 22px, anything
     nested inside a card is 14px, the device frame is its own 46/36 pair. */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Motion (emil-design-eng / animate tokens) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-1: 180ms;
  --dur-2: 240ms;
  --dur-3: 420ms;
  --dur-reveal: 720ms;

  /* Layers */
  --z-content: 1;
  --z-header: 50;
  --z-sheet: 60;
  --z-banner: 70;
  --z-grain: 80;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07100c;
    --bg-sunken: #0a1510;
    --surface: #0e1a14;
    --surface-2: #13221a;
    --line: #1d2b24;
    --line-strong: #2f4237;
    --text: #e8efea;
    --text-2: #aebdb4;
    --text-3: #8c9c93;
    --signal: #46c97f;
    --signal-text: #6fdb9c;
    --signal-soft: rgba(70, 201, 127, 0.14);
    --forest: #0f2c20;
    --forest-2: #16402f;
    --forest-line: rgba(185, 236, 208, 0.14);
    --btn-bg: #6fdb9c;
    --btn-bg-hover: #8fe6b3;
    --btn-fg: #05140c;
    --focus: #8fe6b3;
    --header-bg: rgba(10, 21, 16, 0.7);
    --header-line: rgba(232, 239, 234, 0.08);
    --scrim: rgba(0, 0, 0, 0.6);
    --grain-opacity: 0.05;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -6px rgba(0, 0, 0, 0.55);
    --shadow-3: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -12px rgba(0, 0, 0, 0.7);
    --shadow-phone: 0 3px 8px rgba(0, 0, 0, 0.5), 0 34px 80px -16px rgba(0, 0, 0, 0.85);
    --inset-hi: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

/* 3. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (min-width: 900px) { html { font-size: 106.25%; } } /* 17px */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--t-base);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Film grain: one fixed, non-interactive layer (never on a scrolling box). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: max(16px, 1rem); } /* iOS never zooms */
strong, b { font-weight: 620; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-10) 0; }
::selection { background: var(--signal); color: #04120a; }

a, button, [role="button"], summary, label {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  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: var(--s-4);
  top: calc(-1 * var(--s-16));
  z-index: calc(var(--z-header) + 5);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease-out);
}
.skip-link:focus { transform: translateY(calc(var(--s-16) + var(--s-4) + env(safe-area-inset-top, 0px))); }

/* 4. Layout + type ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
/* Narrow content (FAQ, prose) keeps the page's left edge rather than
   floating centred, so every section starts on the same line. */
.container-narrow {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow > * { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: var(--bg-sunken); }
.section + .section:not(.section-alt) { border-top: 1px solid var(--line); }
.section-alt + .section-alt { border-top: 1px solid var(--line); }

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--t-5xl);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--t-4xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.026em;
}
h3, .h3 {
  font-family: var(--font-text);
  font-size: var(--t-lg);
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
h4 { font-size: var(--t-base); font-weight: 620; }

/* Same-family emphasis: colour, never a second typeface. */
.accent { color: var(--signal-text); }

/* Small label above a heading. Rationed (taste skill: max 1 per 3 sections). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.eyebrow a { color: inherit; text-underline-offset: 3px; }
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--signal);
  flex: none;
}

.subhead {
  margin-top: var(--s-6);
  max-width: 46ch;
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--text-2);
}
.lede {
  margin-top: var(--s-5);
  max-width: 58ch;
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--text-2);
}

.section-head { max-width: 62ch; margin-bottom: clamp(var(--s-10), 5vw, var(--s-16)); }
.section-head h2 { max-width: 18ch; }
.section-head > p:not(.eyebrow) {
  margin-top: var(--s-5);
  font-size: var(--t-lg);
  color: var(--text-2);
  max-width: 56ch;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center h2 { margin-inline: auto; }
.section-head.center > p:not(.eyebrow) { margin-inline: auto; }

.mono, .tabular { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Prose (category intros, language pages) */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--t-3xl); margin-bottom: var(--s-6); max-width: 22ch; }
.prose h3 { margin: var(--s-8) 0 var(--s-3); }
.prose p { color: var(--text-2); font-size: var(--t-lg); line-height: 1.65; }
.prose p + p { margin-top: var(--s-5); }
.prose ul, .prose ol { margin: var(--s-5) 0 0 1.2em; color: var(--text-2); }
.prose li + li { margin-top: var(--s-2); }
.prose a { color: var(--signal-text); text-underline-offset: 3px; }

/* 5. Buttons --------------------------------------------------------------- */
.btn {
  --btn-pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-family: var(--font-text);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 44px; --btn-pad-x: 18px; font-size: var(--t-xs); }
.btn-lg { min-height: 54px; --btn-pad-x: 26px; font-size: var(--t-base); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}
/* Button-in-button trailing arrow (high-end-visual-design). */
.btn .btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-right: -12px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.14);
  transition: transform var(--dur-2) var(--ease-out);
}
.btn-secondary .btn-arrow { background: var(--surface-2); }
.btn .btn-arrow svg { width: 14px; height: 14px; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--btn-bg-hover); }
  .btn-secondary:hover { border-color: var(--text-3); }
  .btn:hover .btn-arrow { transform: translate(2px, -1px) scale(1.05); }
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  cursor: default;
  background: transparent;
  color: var(--text-2);
  border: 1px dashed var(--line-strong);
  box-shadow: none;
}
.btn.is-disabled:active { transform: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 24px;
}

.text-link {
  color: var(--signal-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* 6. Header + navigation ---------------------------------------------------
   A floating pill on desktop (translucent material, content scrolls under
   it), a full-width bar with a sheet menu on phones. The blur is always on;
   only the tint animates (backdrop-filter does not transition cleanly). */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
}
@media (min-width: 900px) {
  .site-header { padding-top: var(--s-3); margin-bottom: calc(-1 * var(--s-3)); }
  .header-inner {
    max-width: calc(var(--container) + 2 * var(--s-6));
    margin-inline: auto;
    height: 60px;
    padding-inline: var(--s-3) var(--s-2);
    border: 1px solid var(--header-line);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-2), var(--inset-hi);
  }
  .site-header { padding-inline: var(--gutter); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.brand-mark img { width: 28px; height: 28px; }
.brand, .brand-mark { flex-shrink: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-1) ease, background-color var(--dur-1) ease;
}
/* Seven items (with Sign in) only just fit between the burger breakpoint and
   a full laptop width; tighter padding keeps every label on one line. */
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav { gap: 0; }
  .site-nav a:not(.btn) { padding: 0 var(--s-2); font-size: var(--t-xs, 0.8125rem); }
  .site-nav .btn { margin-left: var(--s-1); }
}
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav .btn { margin-left: var(--s-2); color: var(--btn-fg); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: auto;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.75px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 899px) {
  /* Without JS the toggle cannot work: noscript.css turns the nav back into
     a scrollable row (loaded from <noscript>, since the CSP allows no inline
     script to flag JS before first paint). */
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    left: 0; right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    z-index: var(--z-sheet);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--s-3) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s;
  }
  .site-nav a:not(.btn) {
    min-height: 56px;
    padding: 0 var(--s-1);
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
  }
  .site-nav .btn { margin: var(--s-6) 0 0; min-height: 54px; font-size: var(--t-base); }
  .site-header.is-solid .header-inner { background: var(--bg); }
}

/* 7. Footer ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: clamp(var(--s-16), 8vw, var(--s-24)) 0 calc(var(--s-8) + env(safe-area-inset-bottom, 0px));
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-10); }
}
.footer-brand p {
  margin-top: var(--s-4);
  max-width: 36ch;
  color: var(--text-2);
  font-size: var(--t-sm);
}
.badge-irish {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: var(--t-xs);
  font-weight: 550;
  color: var(--text-2);
}
.badge-irish .flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }

.footer-col { display: flex; flex-direction: column; }
.footer-col summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-3);
  list-style: none;
  cursor: pointer;
}
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-2);
  font-size: var(--t-sm);
  text-decoration: none;
  transition: color var(--dur-1) ease;
}
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--text); } }
@media (max-width: 640px) {
  .footer-col { border-top: 1px solid var(--line); }
  .footer-col summary { min-height: 56px; font-size: var(--t-sm); color: var(--text); font-family: var(--font-text); font-weight: 600; }
  .footer-col summary::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 1.75px solid var(--text-3);
    border-bottom: 1.75px solid var(--text-3);
    transform: rotate(45deg) translateY(-3px);
    transition: transform var(--dur-2) var(--ease-out);
  }
  .footer-col[open] summary::after { transform: rotate(225deg) translateY(-1px); }
  .footer-col[open] { padding-bottom: var(--s-3); }
}
@media (min-width: 641px) {
  .footer-col summary { pointer-events: none; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--text-3);
}
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.footer-bottom a, .footer-bottom .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--t-xs);
}
.footer-bottom .link-button { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-bottom a:hover, .footer-bottom .link-button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
}

.footer-wordmark {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  justify-content: center;
  margin-top: var(--s-12);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 5rem);
  font-weight: 760;
  line-height: 0.85;
  letter-spacing: -0.055em;
  color: var(--text);
  opacity: 0.08;
  white-space: nowrap;
  user-select: none;
}
.footer-wordmark picture { flex: none; }
.footer-wordmark img { width: 0.82em; height: 0.82em; max-width: none; }
/* Decorative: the words live in CSS so they are not page text (the brand
   name is already in the footer as a real link). */
.footer-wordmark::after { content: "Service Connect"; }
@media (prefers-color-scheme: dark) { .footer-wordmark { opacity: 0.1; } }

/* 8. Device frame -----------------------------------------------------------
   Real screenshots only (shots/), 660x1434. Slim titanium-edge bezel with
   concentric radii, Dynamic Island pill. The bezel is a fixed px value on
   purpose: % padding resolves against the parent's width, not the phone's,
   which made it 2-3x too thick inside wide stages. */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 660 / 1434;
  padding: 5px;
  border-radius: 14.5% / 6.7%;
  background:
    linear-gradient(145deg, #4b544f 0%, #1b211e 18%, #0b0f0d 50%, #1b211e 82%, #545d58 100%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 2px #050806;
}
.phone-frame::before { /* Dynamic Island */
  content: "";
  position: absolute;
  top: 3.4%;
  left: 50%;
  z-index: 2;
  width: 29%;
  height: 3.1%;
  border-radius: var(--r-full);
  background: #020403;
  transform: translateX(-50%);
}
.phone-frame::after { /* side button */
  content: "";
  position: absolute;
  right: -2px;
  top: 24%;
  width: 3px;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #2a302d, #59625d);
}
.phone-frame > picture,
.phone-frame .phone-screen {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 13% / 6%;
  background: #000;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }
.phone-frame-sm { max-width: 180px; padding: 4px; }

/* 9. Home: hero + facts ------------------------------------------------------ */
.hero-home {
  position: relative;
  padding-top: clamp(var(--s-10), 6vw, var(--s-20));
  padding-bottom: clamp(var(--s-12), 6vw, var(--s-20));
}
/* Editorial hero: the two-line headline runs the full container width, the
   subhead + CTAs and the device stage share the row beneath it. */
.hero-home h1 {
  font-size: clamp(2.5rem, 1.35rem + 5.1vw, 5.25rem);
  line-height: 0.97;
  max-width: 17ch;
}
@media (min-width: 1000px) { .hero-home h1 { max-width: none; } }
.hero-home h1 .h1-line { display: block; }
.hero-home h1 .accent { color: var(--signal-text); }
.hero-row {
  display: grid;
  gap: var(--s-10);
  margin-top: clamp(var(--s-8), 3.5vw, var(--s-12));
  align-items: start;
}
@media (min-width: 1000px) {
  .hero-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-12); }
}
.hero-row .subhead { margin-top: 0; max-width: 34ch; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: var(--t-xs);
  font-weight: 550;
  color: var(--text-2);
}
.hero-status .live {
  width: 20px; height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--signal-soft);
}
.hero-status .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--signal);
}

/* The stage: a forest-green plate the two phones sit in. */
.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: clamp(480px, 46vw, 640px); /* tall enough for the front phone at its 260px cap */
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(123, 224, 166, 0.22), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(5, 18, 12, 0.6), transparent 60%),
    var(--forest);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.hero-stage::before { /* Ireland, faint, as a watermark */
  content: "";
  position: absolute;
  right: 3%;
  bottom: 4%;
  width: 58%;
  aspect-ratio: 400 / 511;
  z-index: -1;
  background: var(--on-forest-signal);
  opacity: 0.08;
  -webkit-mask: url("/img/ireland.svg") center / contain no-repeat;
  mask: url("/img/ireland.svg") center / contain no-repeat;
}
.hero-stage .phone-frame { position: absolute; }
.hero-stage .phone-front {
  width: 36%;
  max-width: 260px;
  left: 50%;
  top: 8%;
  z-index: 2;
}
.hero-stage .phone-back {
  width: 31%;
  max-width: 226px;
  left: 17%;
  top: 15%;
  z-index: 1;
  transform: rotate(-7deg);
}
@media (max-width: 999px) {
  .hero-stage { min-height: 0; aspect-ratio: 1 / 1.08; }
  .hero-stage .phone-front { width: 46%; left: 46%; top: 7%; }
  .hero-stage .phone-back { width: 40%; left: 9%; top: 13%; }
}
@media (max-width: 640px) {
  /* Tall enough for the front phone (about 2.17:1) to finish inside the plate. */
  .hero-stage { aspect-ratio: 1 / 1.3; border-radius: var(--r-lg); }
  .hero-stage .phone-front { width: 52%; left: 42%; top: 6%; }
  .hero-stage .phone-back { width: 45%; left: 5%; }
}

.receipt-hero { left: auto; right: auto; bottom: 7%; left: -5%; width: 230px; }
@media (max-width: 999px) { .receipt-hero { display: none; } }
/* Desktop lets the receipt hang off the plate; smaller screens clip to it so
   nothing spills into the facts row below. */
@media (min-width: 1000px) { .hero-stage { overflow: visible; } }

/* Facts ledger: four true numbers, read like the totals on a receipt. */
.facts {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts-grid li {
  list-style: none;
  padding: var(--s-6) var(--s-5) var(--s-6) 0;
  border-bottom: 1px dashed var(--line-strong);
}
.facts-grid li:nth-child(odd) { padding-right: var(--s-5); }
.facts-grid li:nth-child(even) { padding-left: var(--s-5); border-left: 1px dashed var(--line-strong); }
@media (min-width: 900px) {
  .facts-grid li { border-bottom: 0; padding: var(--s-8) var(--s-6); }
  .facts-grid li + li { border-left: 1px dashed var(--line-strong); padding-left: var(--s-6); }
  .facts-grid li:first-child { padding-left: 0; }
}
@media (max-width: 899px) {
  .facts-grid li:nth-last-child(-n + 2) { border-bottom: 0; }
}
.fact-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.fact-label {
  display: block;
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.4;
  color: var(--text-2);
  max-width: 24ch;
}
.facts-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--text-2);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  font-size: var(--t-sm);
  font-weight: 550;
  text-decoration: none;
  transition: border-color var(--dur-1) ease, background-color var(--dur-1) ease;
}
a.lang-pill { min-height: 44px; }
.lang-pill[aria-current="page"] { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
@media (hover: hover) and (pointer: fine) { a.lang-pill:hover { border-color: var(--text-3); } }
.hero-langs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); color: var(--text-2); font-size: var(--t-sm); }
.lang-switch { padding-top: var(--s-6); }

/* 10. Home: how it works -------------------------------------------------------
   Default (no JS, reduced motion, phones): an ordered list of five cards,
   each with its own screenshot. With JS + motion on wide screens, home.js
   adds .is-pinned and GSAP ScrollTrigger pins the stage and scrubs through
   the steps; the markup stays the same list. */
.flow-intro { max-width: 60ch; }
.flow-intro h2 { max-width: 14ch; }
.flow-intro p { margin-top: var(--s-5); font-size: var(--t-lg); color: var(--text-2); }

.flow-steps {
  counter-reset: flow;
  display: grid;
  gap: var(--s-4);
  margin-top: clamp(var(--s-10), 5vw, var(--s-16));
  list-style: none;
}
.flow-step {
  counter-increment: flow;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
@media (min-width: 640px) { .flow-step { grid-template-columns: minmax(0, 1fr) 150px; padding: var(--s-8); } }
.flow-step .flow-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--signal-text);
}
.flow-step .flow-tag::before {
  content: counter(flow, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  min-width: 32px; height: 28px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: var(--signal-soft);
  color: var(--signal-text);
  font-weight: 600;
}
.flow-step h3 {
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.flow-step p { margin-top: var(--s-3); color: var(--text-2); max-width: 46ch; }
.flow-step .money {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--text-2);
}
.flow-step .money b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.flow-step .phone-frame { max-width: 150px; padding: 3px; }
@media (min-width: 1000px) { .flow-steps { max-width: 940px; } }
/* Phones and tablets: a native scroll-snap row (browser physics, no JS),
   each card led by its screenshot. The next card peeks in from the edge. */
@media (max-width: 999px) {
  .flow-steps {
    display: flex;
    gap: var(--s-3);
    margin-inline: calc(-1 * var(--gutter));
    padding: var(--s-1) var(--gutter) var(--s-5);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .flow-steps::-webkit-scrollbar { display: none; }
  .flow-step {
    flex: 0 0 min(82vw, 340px);
    grid-template-columns: minmax(0, 1fr);
    padding: var(--s-5);
    scroll-snap-align: start;
  }
  .flow-step .phone-frame { order: -1; width: 46%; max-width: 150px; margin-inline: auto; }
  .flow-step h3 { font-size: var(--t-xl); }
}

/* Pinned mode (desktop, JS, motion allowed) */
.flow-stage { display: none; }
@media (min-width: 1000px) {
  .flow.is-pinned .flow-pin {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(var(--s-10), 6vw, var(--s-24));
    align-items: center;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + var(--s-8)) var(--s-10);
  }
  .flow.is-pinned .flow-steps {
    position: relative;
    display: block;
    margin-top: var(--s-10);
    min-height: 330px;
  }
  .flow.is-pinned .flow-step {
    position: absolute;
    inset: 0 0 auto 0;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    pointer-events: none;
  }
  .flow.is-pinned .flow-step.is-current { pointer-events: auto; }
  .flow.is-pinned .flow-step .phone-frame,
  .flow.is-pinned .flow-step .money { display: none; }
  .flow.is-pinned .flow-step h3 { font-size: var(--t-3xl); max-width: 16ch; }
  .flow.is-pinned .flow-step p { font-size: var(--t-lg); }
  .flow.is-pinned .flow-stage { display: grid; place-items: center; position: relative; }
  .flow.is-pinned .flow-intro { max-width: 34rem; }
}
.flow-progress { display: none; }
.flow.is-pinned .flow-progress {
  display: flex;
  gap: 6px;
  margin-top: var(--s-8);
  list-style: none;
}
.flow-progress li {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.flow-progress li span {
  display: block;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
}
.flow-stage .stage-plate {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1.08;
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 70% 10%, rgba(123, 224, 166, 0.2), transparent 60%),
    var(--forest);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}
.flow-stage .phone-frame { width: 52%; max-width: 268px; }
.flow-stage .stage-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.flow-stage .stage-shot.is-current { opacity: 1; }
.flow-stage .stage-shot img { width: 100%; height: 100%; object-fit: cover; }

/* Receipt ticket that follows the money through the five steps */
.receipt {
  position: absolute;
  left: -9%;
  bottom: 8%;
  z-index: 3;
  width: min(250px, 52%);
  padding: var(--s-4) var(--s-5) var(--s-5);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
}
.receipt-title { display: flex; justify-content: space-between; color: var(--text-3); padding-bottom: var(--s-2); border-bottom: 1px dashed var(--line-strong); }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s-3); margin-top: var(--s-3); }
.receipt dt { color: var(--text-2); }
.receipt dd { margin: 0; text-align: right; color: var(--text); }
.receipt-status {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line-strong);
  font-weight: 600;
  color: var(--signal-text);
}
.receipt-status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--signal);
}

/* 11. Home: buyer protection ---------------------------------------------- */
.protect-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 1000px) {
  .protect-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
  .protect-grid .pay-flow { grid-column: 1 / -1; }
  .protect-grid .fee-calc { grid-column: span 5; }
  .protect-grid .honest { grid-column: span 7; }
}

.panel {
  position: relative;
  padding: clamp(var(--s-6), 3vw, var(--s-10));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1), var(--inset-hi);
}
.panel h3 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.panel > p { margin-top: var(--s-3); color: var(--text-2); max-width: 52ch; }

/* Payment flow diagram: You -> Stripe -> Provider, with three outcomes
   chosen by real radio buttons (works with no JS via :checked siblings). */
.pay-flow {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(123, 224, 166, 0.14), transparent 70%),
    var(--forest);
  border-color: var(--forest-line);
  color: var(--on-forest);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.pay-flow h3 { color: var(--on-forest); }
.pay-flow > p { color: var(--on-forest-2); }
.pf-choices {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--s-6);
  padding: 4px;
  border: 1px solid var(--forest-line);
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.18);
}
@media (max-width: 640px) {
  .pf-choices { display: grid; width: 100%; border-radius: var(--r-lg); }
  .pf-fieldset .pf-choices label { border-radius: var(--r-md); }
}
.pf-choices label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-full);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--on-forest-2);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, transform var(--dur-press) var(--ease-out);
}
.pf-choices label:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .pf-choices label:hover { color: var(--on-forest); } }

.pf-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s-16);
}
.pf-rail {
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 34px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--forest-line) 0 8px, transparent 8px 14px);
}
.pf-node { position: relative; display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding-inline: var(--s-2); }
.pf-node .pf-icon {
  display: grid;
  place-items: center;
  width: 70px; height: 70px;
  border-radius: 22px;
  border: 1px solid var(--forest-line);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--on-forest);
}
.pf-node .pf-icon svg { width: 28px; height: 28px; }
.pf-node.is-vault .pf-icon { background: var(--on-forest-signal); color: var(--g-950); border-color: transparent; }
.pf-node strong { color: var(--on-forest); font-size: var(--t-base); }
.pf-node span { color: var(--on-forest-2); font-size: var(--t-sm); max-width: 22ch; }
.pf-token {
  position: absolute;
  top: -30px;
  left: 0;
  z-index: 2;
  display: none;
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: var(--on-forest);
  color: var(--g-950);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.js .pf-token { display: block; }

.pf-outcomes { margin-top: var(--s-10); }
.pf-outcome {
  display: none;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--forest-line);
}
.pf-outcome b { color: var(--on-forest); display: block; }
.pf-outcome p { color: var(--on-forest-2); margin-top: 4px; max-width: 62ch; }
.pf-outcome .tick {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: var(--on-forest-signal);
  color: var(--g-950);
}
.pf-outcome .tick svg { width: 16px; height: 16px; }
#pf-done:checked ~ .pf-outcomes .pf-outcome-done,
#pf-cancel:checked ~ .pf-outcomes .pf-outcome-cancel,
#pf-silent:checked ~ .pf-outcomes .pf-outcome-silent { display: grid; }
/* The radios sit directly in the fieldset, before the label pill, so plain
   sibling selectors (no :has, no JS) drive the selected state. */
.pf-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-fieldset > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
#pf-done:focus-visible ~ .pf-choices label[for="pf-done"],
#pf-cancel:focus-visible ~ .pf-choices label[for="pf-cancel"],
#pf-silent:focus-visible ~ .pf-choices label[for="pf-silent"] { outline: 2.5px solid var(--on-forest-signal); outline-offset: 2px; }
#pf-done:checked ~ .pf-choices label[for="pf-done"],
#pf-cancel:checked ~ .pf-choices label[for="pf-cancel"],
#pf-silent:checked ~ .pf-choices label[for="pf-silent"] { background: var(--on-forest); color: var(--g-950); }

/* Fee calculator */
.fee-calc form { margin-top: var(--s-6); }
.fee-calc label { display: block; font-weight: 600; font-size: var(--t-sm); }
.fee-calc .hint { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--text-3); }
.fee-input {
  display: flex;
  align-items: center;
  margin-top: var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.fee-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--signal-soft); }
.fee-input span { padding-left: var(--s-4); font-family: var(--font-mono); color: var(--text-2); }
.fee-input input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--s-4) 0 var(--s-2);
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.fee-out {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
.fee-out dt { color: var(--text-2); }
.fee-out dd { margin: 0; text-align: right; }
.fee-out .total { padding-top: var(--s-3); border-top: 1px dashed var(--line-strong); font-weight: 600; color: var(--text); }
.fee-error { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--text); font-weight: 600; }
.fee-error[hidden] { display: none; }
.fee-examples { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--text-2); }

/* What is checked, and what is not */
.honest-cols { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
@media (min-width: 640px) { .honest-cols { grid-template-columns: 1fr 1fr; } }
.honest-cols h4 {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.honest-cols ul { list-style: none; }
.honest-cols li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--s-3);
  padding-block: var(--s-3);
  font-size: var(--t-sm);
  color: var(--text-2);
}
.honest-cols li strong { display: block; color: var(--text); font-weight: 600; }
.honest-cols svg { width: 20px; height: 20px; margin-top: 2px; }
.honest-cols .yes svg { color: var(--signal-text); }
.honest-cols .no svg { color: var(--text-3); }

/* 12. Home: category explorer + county map --------------------------------- */
.explorer {
  display: grid;
  gap: clamp(var(--s-8), 5vw, var(--s-16));
}
@media (min-width: 1000px) { .explorer { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: start; } }
.explorer-list { list-style: none; border-top: 1px solid var(--line); }
.explorer-list li { border-bottom: 1px solid var(--line); }
.explorer-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  min-height: 64px;
  text-decoration: none;
  color: var(--text);
}
.explorer-list .ex-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.explorer-list .ex-icon svg { width: 22px; height: 22px; }
.explorer-list .ex-name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.explorer-list .ex-desc { display: block; margin-top: 4px; font-family: var(--font-text); font-size: var(--t-sm); font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.explorer-list .ex-go {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.explorer-list .ex-go svg { width: 14px; height: 14px; }
.explorer-list a.is-current .ex-icon,
.explorer-list a:focus-visible .ex-icon { background: var(--signal-soft); color: var(--signal-text); }
.explorer-list a:active { opacity: 0.8; }
@media (hover: hover) and (pointer: fine) {
  .explorer-list a:hover .ex-icon { background: var(--signal-soft); color: var(--signal-text); }
  .explorer-list a:hover .ex-go { transform: translateX(3px); background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
}
.explorer-list .is-anything a .ex-name { color: var(--signal-text); }

.explorer-preview { display: none; }
@media (min-width: 1000px) {
  .js .explorer-preview {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--s-10));
  }
  /* The preview card shows the description; keep it for screen readers. */
  .js .explorer-list .ex-desc {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
.explorer-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: var(--s-8);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(123, 224, 166, 0.2), transparent 60%),
    var(--forest);
  color: var(--on-forest);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
}
.explorer-card .xc-icon {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border-radius: 26px;
  background: var(--on-forest-signal);
  color: var(--g-950);
}
.explorer-card .xc-icon svg { width: 40px; height: 40px; }
.explorer-card .xc-kicker { margin-top: auto; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--on-forest-2); }
.explorer-card .xc-name { margin-top: var(--s-2); font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 720; letter-spacing: -0.035em; line-height: 1; color: var(--on-forest); }
.explorer-card .xc-desc { margin-top: var(--s-4); color: var(--on-forest-2); font-size: var(--t-lg); max-width: 30ch; }
.explorer-card .xc-swap { transition: opacity var(--dur-1) ease, transform var(--dur-2) var(--ease-out); }
.explorer-card.is-swapping .xc-swap { opacity: 0; transform: translateY(6px); }

/* County map */
.map-wrap {
  display: grid;
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  align-items: center;
}
@media (min-width: 1000px) { .map-wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.county-map { width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }
/* Northern Ireland: drawn for geography, outside the service area. */
.county-map .ni { fill: none; stroke: var(--line-strong); stroke-width: 0.8; stroke-dasharray: 2 2.5; }
.county-map a { outline: none; }
/* Every county is served, so every county gets the same green. */
.county-map path.c {
  fill: var(--signal-soft);
  fill: color-mix(in srgb, var(--signal) 16%, var(--surface));
  stroke: color-mix(in srgb, var(--signal) 45%, var(--line-strong));
  stroke-width: 0.8;
  stroke-linejoin: round;
  transition: fill var(--dur-1) ease, stroke var(--dur-1) ease;
}
/* Guide counties look the same as the rest: every county is served. */
.county-map a.is-current path.c,
.county-map a:focus-visible path.c { fill: var(--signal); stroke: var(--text); stroke-width: 1.4; }
@media (hover: hover) and (pointer: fine) {
  .county-map a:hover path.c { fill: var(--signal); stroke: var(--text); stroke-width: 1.2; }
}
.county-map a:focus-visible path.c { stroke: var(--focus); stroke-width: 2.4; }
.county-map .lbl {
  font-family: var(--font-text);
  font-size: 7.5px;
  font-weight: 600;
  fill: var(--text-2);
  text-anchor: middle;
  pointer-events: none;
}
@media (max-width: 640px) { .county-map .lbl { display: none; } }
.map-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-4) 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--text-2); }
.map-legend li { display: inline-flex; align-items: center; gap: var(--s-2); }
.map-legend .sw { width: 14px; height: 14px; border-radius: 3px; border: 1px solid; flex: none; }
.map-legend .sw-covered { background: color-mix(in srgb, var(--signal) 16%, var(--surface)); border-color: color-mix(in srgb, var(--signal) 45%, var(--line-strong)); }

.map-panel {
  padding: var(--s-6) var(--s-6) var(--s-8);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1), var(--inset-hi);
}
.map-panel .mp-kicker { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-3); }
.map-panel .mp-name { margin-top: var(--s-2); font-family: var(--font-display); font-size: var(--t-3xl); font-weight: 720; letter-spacing: -0.035em; line-height: 1; }
.map-panel .mp-body { margin-top: var(--s-3); color: var(--text-2); max-width: 44ch; }
.map-panel .mp-link { margin-top: var(--s-5); }
.map-guides { margin-top: var(--s-8); }
.map-guides h3 { font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 500; color: var(--text-3); }

/* 13. Home: providers + FAQ split ------------------------------------------ */
.providers-home .statement {
  font-family: var(--font-display);
  font-size: var(--t-4xl);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.providers-home .statement .z { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.06em; color: var(--signal-text); }
.providers-layout {
  display: grid;
  gap: clamp(var(--s-10), 6vw, var(--s-20));
  margin-top: var(--s-12);
}
@media (min-width: 1000px) { .providers-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } }
.perk-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.perk-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .perk-list li { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-8); } }
.perk-list strong { font-size: var(--t-lg); font-weight: 620; line-height: 1.3; }
.perk-list p { color: var(--text-2); }
.perk-list .promo strong .tabular { color: var(--signal-text); }

.faq-split { display: grid; gap: var(--s-10); }
@media (min-width: 1000px) {
  .faq-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-20); align-items: start; }
  .faq-split .faq-aside { position: sticky; top: calc(var(--header-h) + var(--s-10)); }
}
.faq-aside p { margin-top: var(--s-5); color: var(--text-2); max-width: 36ch; }

/* 14. Shared sub-page components ------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(var(--s-10), 6vw, var(--s-20));
  padding-bottom: clamp(var(--s-12), 7vw, var(--s-24));
}
.hero-inner {
  display: grid;
  gap: clamp(var(--s-10), 5vw, var(--s-16));
  align-items: center;
}
@media (min-width: 1000px) { .hero-cat .hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.hero-cat h1 { font-size: var(--t-4xl); max-width: 16ch; letter-spacing: -0.035em; line-height: 1; }
.platform-note {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text-3);
}
.hero-proof {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px dashed var(--line-strong);
  list-style: none;
  max-width: 52ch;
}
.hero-proof:empty { display: none; }
.hero-proof li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); color: var(--text-2); font-size: var(--t-sm); }
.hero-proof svg { width: 18px; height: 18px; margin-top: 3px; color: var(--signal-text); }

/* Category / county hero tile: forest plate with the category glyph over a
   faint Ireland watermark. */
.cat-visual { display: grid; place-items: center; }
.cat-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  background:
    radial-gradient(100% 80% at 90% 0%, rgba(123, 224, 166, 0.24), transparent 60%),
    var(--forest);
  color: var(--on-forest-signal);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cat-tile::before {
  content: "";
  position: absolute;
  inset: 10% 14% 2%;
  z-index: -1;
  background: var(--on-forest-signal);
  opacity: 0.09;
  -webkit-mask: url("/img/ireland.svg") center / contain no-repeat;
  mask: url("/img/ireland.svg") center / contain no-repeat;
}
.cat-tile svg { width: 34%; height: 34%; stroke-width: 1.4; }
@media (max-width: 999px) {
  .cat-visual { justify-items: start; }
  .cat-tile { width: 120px; border-radius: var(--r-lg); order: -1; }
  .hero-cat .hero-inner { gap: var(--s-6); }
  .hero-cat .cat-visual { order: -1; }
}

/* Three-step row on category, county and language pages */
.steps-row {
  counter-reset: step;
  display: grid;
  gap: var(--s-4);
  list-style: none;
}
@media (min-width: 900px) {
  .steps-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
  .steps-row:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-8); }
  .steps-row:has(> :nth-child(4)) .step:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
}
.step { counter-increment: step; position: relative; padding: var(--s-6) 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .step { padding: var(--s-8) var(--s-8) 0 0; border-top: 0; }
  .step + .step { padding-left: var(--s-8); border-left: 1px dashed var(--line-strong); }
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--signal-text);
}
.step h3 { font-family: var(--font-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; max-width: 18ch; }
.step p { margin-top: var(--s-3); color: var(--text-2); max-width: 44ch; }
.section-head.center + .steps-row .step { text-align: left; }

/* Perk grids on language pages */
.perk-grid {
  display: grid;
  gap: var(--s-4);
  list-style: none;
  margin-top: var(--s-10);
}
@media (min-width: 700px) { .perk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.perk {
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.perk > svg { width: 22px; height: 22px; padding: 3px; border-radius: var(--r-full); background: var(--signal-soft); color: var(--signal-text); }
.perk strong { display: block; margin-top: var(--s-4); font-size: var(--t-lg); line-height: 1.3; }
.perk p { margin-top: var(--s-2); color: var(--text-2); }
.providers .lede { max-width: 60ch; }

/* Category grid (language + county pages) */
.category-grid {
  display: grid;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-8); } }
@media (min-width: 1100px) { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.category-grid li { border-bottom: 1px solid var(--line); }
.category-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5) 0;
  min-height: 64px;
  text-decoration: none;
  color: var(--text);
}
.category-card > span { display: block; }
.category-card .icon {
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-2);
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}
.category-card strong { display: block; font-size: var(--t-base); font-weight: 620; }
.category-card .desc { display: block; margin-top: 2px; font-size: var(--t-sm); color: var(--text-2); }
.category-card:active { opacity: 0.8; }
@media (hover: hover) and (pointer: fine) {
  .category-card:hover .icon { background: var(--signal-soft); color: var(--signal-text); }
  .category-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
}
.category-card.is-all strong { color: var(--signal-text); }
.category-card.is-all { grid-template-columns: minmax(0, 1fr); }
/* Translated guide lists (language landing pages): text-only cards, two columns max */
.category-card.is-guide { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .category-grid.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* "Read this guide in your language" pills (English category pages) */
.lang-guides { margin-top: var(--s-8); }
.lang-guides .faq-more { margin-top: 0; margin-bottom: var(--s-3); }

/* Chips (common jobs, county lists) */
.chip-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--t-sm);
}
a.chip {
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-color: var(--signal);
  background: var(--signal-soft);
  transition: background-color var(--dur-1) ease, transform var(--dur-press) var(--ease-out);
}
a.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { a.chip:hover { background: var(--surface); } }
.chip:target, li:target > .chip { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.chip-head { margin-top: var(--s-12); margin-bottom: var(--s-4); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-3); }

.county-groups { display: grid; gap: var(--s-10); }
@media (min-width: 900px) { .county-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12) var(--s-16); } }
.county-groups h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }

.related {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-12);
  padding: var(--s-6) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
@media (min-width: 900px) { .related { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; padding: var(--s-8); } }
.related h3 { font-size: var(--t-lg); }
.related p { margin-top: 4px; color: var(--text-2); font-size: var(--t-sm); }
.related-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  display: block;
  padding: var(--s-5) var(--s-12) var(--s-5) 0;
  min-height: 56px;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: calc(var(--s-5) + 0.68em);
  width: 14px;
  height: 1.75px;
  border-radius: 2px;
  background: var(--text-2);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item > p, .faq-item > div { padding: 0 var(--s-10) var(--s-6) 0; color: var(--text-2); max-width: 68ch; }
.faq-item > p a { color: var(--signal-text); }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { color: var(--signal-text); } }
.faq-more { margin-top: var(--s-8); font-size: var(--t-sm); color: var(--text-2); }
.faq-more a { color: var(--text); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding-block: 10px; }
#faq .section-head { margin-bottom: var(--s-8); }

/* Download / CTA band */
.cta-band { padding: 0 0 var(--section-y); }
.section + .cta-band, .section-alt + .cta-band { padding-top: var(--section-y); }
.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(var(--s-10), 7vw, var(--s-24)) clamp(var(--s-6), 6vw, var(--s-20));
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(123, 224, 166, 0.22), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(3, 14, 9, 0.55), transparent 60%),
    var(--forest);
  color: var(--on-forest);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.cta-card::before {
  content: "";
  position: absolute;
  right: -4%;
  top: -12%;
  width: min(44%, 420px);
  aspect-ratio: 400 / 511;
  z-index: -1;
  background: var(--on-forest-signal);
  opacity: 0.09;
  -webkit-mask: url("/img/ireland.svg") center / contain no-repeat;
  mask: url("/img/ireland.svg") center / contain no-repeat;
}
.cta-card h2 { color: var(--on-forest); max-width: 16ch; }
.cta-card > p:not(.eyebrow):not(.cta-note) { margin-top: var(--s-5); max-width: 50ch; color: var(--on-forest-2); font-size: var(--t-lg); }
.cta-card .btn-primary .btn-arrow { background: rgba(8, 36, 26, 0.1); }
.cta-card .eyebrow { color: var(--on-forest-2); }
.cta-card .eyebrow::before { background: var(--on-forest-signal); }
.cta-card .btn-primary { background: var(--on-forest); color: var(--g-950); }
@media (hover: hover) and (pointer: fine) { .cta-card .btn-primary:hover { background: #fff; } }
.cta-card .btn.is-disabled { color: var(--on-forest-2); border-color: var(--forest-line); }
.cta-card .btn-secondary { background: transparent; color: var(--on-forest); border-color: var(--forest-line); }
.cta-card :focus-visible { outline-color: var(--on-forest-signal); }
.cta-note { margin-top: var(--s-5); font-family: var(--font-mono); font-size: var(--t-xs); color: var(--on-forest-2); }
.cta-mark { display: block; margin-bottom: var(--s-8); }
.cta-mark img { width: 56px; height: 56px; }

/* 15. Legal, blog, press, 404, provider page ------------------------------- */
.legal {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(var(--s-10), 6vw, var(--s-20)) var(--gutter) var(--section-y);
}
.legal-head { padding-bottom: var(--s-8); margin-bottom: var(--s-10); border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: var(--t-4xl); letter-spacing: -0.035em; line-height: 1.02; }
.legal-head .meta { margin-top: var(--s-5); color: var(--text-2); font-size: var(--t-lg); max-width: 56ch; }
.meta { color: var(--text-3); font-size: var(--t-sm); }
.legal-body { color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; }
.legal-body > * + * { margin-top: var(--s-5); }
.legal-body h2 {
  margin-top: var(--s-12);
  font-size: var(--t-2xl);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.legal-body h3 { margin-top: var(--s-8); font-size: var(--t-lg); }
.legal-body h2 + *, .legal-body h3 + * { margin-top: var(--s-3); }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li + li { margin-top: var(--s-2); }
.legal-body li::marker { color: var(--text-3); }
.legal-body a { color: var(--signal-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal-body strong { color: var(--text); }
.legal-body table, .blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  display: block;
  overflow-x: auto;
}
.legal-body th, .legal-body td { padding: var(--s-3) var(--s-4) var(--s-3) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-body th { color: var(--text); font-weight: 600; }
.blog-sources { font-size: var(--t-sm); }

.blog-list { list-style: none; padding: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--line); }
.blog-card { margin: 0 !important; padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.blog-card .meta { font-family: var(--font-mono); font-size: var(--t-xs); }
.blog-card h2 { margin-top: var(--s-2) !important; font-size: var(--t-2xl); line-height: 1.15; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .blog-card h2 a:hover { color: var(--signal-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; } }
.blog-card h2 a::after { content: ""; }
.blog-card > p:last-child { margin-top: var(--s-2); }
.blog-lang-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: var(--s-2);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--signal-soft);
  color: var(--signal-text);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0;
}
.blog-lang-note { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--signal); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--t-sm); }
.blog-more {
  margin-top: var(--s-16) !important;
  padding: var(--s-6) var(--s-6) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.blog-more h2 { margin-top: 0 !important; font-size: var(--t-lg); font-family: var(--font-text); letter-spacing: -0.01em; }
.blog-more ul { list-style: none; padding: 0 !important; margin-top: var(--s-3); }
.blog-more li { margin: 0 !important; border-top: 1px solid var(--line); }
.blog-more a { display: block; padding: var(--s-3) 0; text-decoration: none; color: var(--text); font-weight: 550; }

.notfound { padding-block: clamp(var(--s-16), 12vw, 160px); min-height: 60svh; display: grid; align-items: center; }
.notfound h1 { max-width: 14ch; }
.texture { position: relative; isolation: isolate; overflow: clip; }
.texture::before {
  content: "";
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: min(36vw, 360px);
  aspect-ratio: 400 / 511;
  z-index: -1;
  transform: translateY(-50%);
  background: var(--signal);
  opacity: 0.1;
  -webkit-mask: url("/img/ireland.svg") center / contain no-repeat;
  mask: url("/img/ireland.svg") center / contain no-repeat;
}
@media (max-width: 640px) { .texture::before { opacity: 0.06; width: 70vw; right: -20vw; } }

/* Public provider page (/p/<id>) */
.provider { padding-block: clamp(var(--s-10), 6vw, var(--s-20)) var(--section-y); max-width: calc(860px + 2 * var(--gutter)); }
.provider-status { color: var(--text-2); }
.provider-head { display: flex; gap: var(--s-5); align-items: center; }
.provider-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px; height: 88px;
  border-radius: 28px;
  object-fit: cover;
  background: var(--forest);
  color: var(--on-forest-signal);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.provider-who h1 { font-size: var(--t-3xl); }
.provider-facts { margin-top: var(--s-2); color: var(--text-2); font-size: var(--t-sm); }
.provider-chip { display: inline-flex; margin-top: var(--s-3); padding: 4px 12px; border-radius: var(--r-full); background: var(--signal-soft); color: var(--signal-text); font-size: var(--t-xs); font-weight: 600; }
.provider-area { margin-top: var(--s-6); color: var(--text-2); }
.provider-section { margin-top: var(--s-12); font-size: var(--t-2xl); }
.provider-services { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.provider-service { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-5); align-items: center; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.provider-service-photo { width: 96px; height: 96px; border-radius: var(--r-md); object-fit: cover; }
.provider-service-body h3 { font-size: var(--t-lg); }
.provider-service-meta { color: var(--text-3); font-size: var(--t-sm); }
.provider-service-price { margin-top: var(--s-2); font-family: var(--font-mono); font-weight: 600; }
.provider-cta { margin-top: var(--s-12); padding: var(--s-8); border-radius: var(--r-xl); background: var(--forest); color: var(--on-forest); }
.provider-cta h2 { color: var(--on-forest); font-size: var(--t-3xl); }
.provider-cta p { margin-top: var(--s-3); color: var(--on-forest-2); max-width: 52ch; }
.provider-cta .btn { margin-top: var(--s-6); background: var(--on-forest); color: var(--g-950); }
.provider-missing { font-size: var(--t-4xl); }
.provider .subhead + .btn { margin-top: var(--s-8); }

/* 16. Cookie banner, motion, preferences -------------------------------------- */
.cookie-banner {
  position: fixed;
  left: max(var(--s-3), env(safe-area-inset-left, 0px));
  right: max(var(--s-3), env(safe-area-inset-right, 0px));
  bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-banner);
  display: grid;
  gap: var(--s-4);
  max-width: 560px;
  margin-inline: auto;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  font-size: var(--t-sm);
  color: var(--text-2);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
@starting-style { .cookie-banner { opacity: 0; transform: translateY(12px); } }
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--signal-text); }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }
@media (min-width: 900px) { .cookie-banner { left: auto; right: var(--s-6); bottom: var(--s-6); grid-template-columns: minmax(0, 1fr) auto; align-items: center; max-width: 640px; } }

/* Scroll reveal: hidden only when site.js has confirmed JS + motion are OK,
   so no-JS and reduced-motion visitors always see everything. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal [data-reveal="fade"] { transform: none; }
.js-reveal [data-reveal="scale"] { transform: translateY(26px) scale(0.97); }
.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }
.stagger > :nth-child(2) { --reveal-delay: 60ms; }
.stagger > :nth-child(3) { --reveal-delay: 120ms; }
.stagger > :nth-child(4) { --reveal-delay: 180ms; }
.stagger > :nth-child(5) { --reveal-delay: 240ms; }
.stagger > :nth-child(n + 6) { --reveal-delay: 280ms; }
.d1 { --reveal-delay: 80ms; }
.d2 { --reveal-delay: 160ms; }
.d3 { --reveal-delay: 240ms; }
.d4 { --reveal-delay: 320ms; }

/* Hero entrance: CSS only, plays once, off the main thread. Transform only,
   never opacity: the hero holds the LCP element, and a fade from 0 would
   hold back Largest Contentful Paint. The copy does not move at all. */
@media (prefers-reduced-motion: no-preference) {
  .hero-home .phone-front { animation: phone-in 1100ms var(--ease-out) 80ms both; }
  .hero-home .phone-back { animation: phone-back-in 1100ms var(--ease-out) 160ms both; }
}
@keyframes phone-in { from { transform: translateY(36px); } }
@keyframes phone-back-in { from { transform: translateY(48px) rotate(-3deg); } }

/* Provider how-to guide (/become-a-provider) ------------------------------- */
.guide-hero h1 { font-size: var(--t-4xl); max-width: 18ch; letter-spacing: -0.035em; line-height: 1.02; }
.guide-hero .subhead { max-width: 52ch; }
.need-box {
  padding: var(--s-6);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.need-box h2 { font-size: var(--t-2xl); max-width: none; }
.need-list { display: grid; gap: var(--s-3); margin-top: var(--s-5); list-style: none; }
.need-list li {
  position: relative;
  padding-left: var(--s-8);
  color: var(--text-2);
  font-size: var(--t-lg);
  line-height: 1.45;
}
.need-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: var(--signal-soft);
}
.need-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.2em + 4px);
  width: 6px;
  height: 10px;
  border: solid var(--signal-text);
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg) scale(0.8);
}
.need-list strong { color: var(--text); font-weight: 650; }

/* Horizontal timeline: dots on a line, left to right. Phones and tablets
   scroll sideways with snap (next step peeks in); 900px+ is one even row. */
.timeline {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding-bottom: var(--s-4);
  border-radius: var(--r-md);
}
.timeline-list { counter-reset: tstep; display: flex; list-style: none; }
.tl-step {
  counter-increment: tstep;
  position: relative;
  flex: 0 0 75%;
  scroll-snap-align: start;
  padding-right: var(--s-6);
  overflow-wrap: break-word;
}
.tl-step:last-child { padding-right: 0; }
.tl-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--forest);
  color: var(--on-forest);
  box-shadow: 0 0 0 6px var(--bg-sunken);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1;
}
.tl-dot::before { content: counter(tstep); }
.tl-step::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 40px;
  right: 0;
  height: 2px;
  background: var(--signal);
  opacity: 0.55;
}
.tl-step:last-child::after { display: none; }
.tl-icon {
  display: block;
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  margin-top: var(--s-5);
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--signal-soft);
  color: var(--signal-text);
}
.tl-step h3 {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.tl-step p { margin-top: var(--s-2); color: var(--text-2); font-size: var(--t-base); line-height: 1.5; max-width: 28ch; }
.tl-step .text-link { color: var(--signal-text); overflow-wrap: anywhere; }
.timeline:focus-visible { outline-offset: 4px; }
@media (min-width: 560px) and (max-width: 899px) { .tl-step { flex-basis: 56%; } }
@media (min-width: 900px) {
  .timeline { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .tl-step { flex: 1 1 0; min-width: 0; padding-right: var(--s-5); }
  .tl-step p { font-size: var(--t-sm); }
}
.guide-more { margin-top: var(--s-8); max-width: var(--container-narrow); border-top: 1px solid var(--line); }
.guide-detail { display: grid; gap: var(--s-4); padding: 0 var(--s-2) var(--s-6) var(--s-6); color: var(--text-2); line-height: 1.55; }
.guide-detail strong { color: var(--text); font-weight: 650; }
.guide-note {
  max-width: var(--container-narrow);
  margin-top: var(--s-8);
  padding: var(--s-6);
  border: 1px solid var(--signal);
  border-radius: var(--r-lg);
  background: var(--signal-soft);
}
.guide-note h3 { font-size: var(--t-xl); max-width: none; }
.guide-note p { margin-top: var(--s-2); color: var(--text-2); font-size: var(--t-lg); line-height: 1.5; }
.guide-note strong { color: var(--text); font-weight: 650; }
@media (min-width: 700px) {
  .need-box, .guide-note { padding: var(--s-8); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .btn:active, a.chip:active, .pf-choices label:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .header-inner { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: var(--line-strong); --text-2: var(--text); --text-3: var(--text-2); }
  body::after { display: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .cookie-banner, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}
