/* ==========================================================================
   iWAPDA Bills — design system v3 (emerald fintech utility)
   Spec tokens in :root. Legacy variable names are kept as aliases so
   every other page (result, admin, blog, legal, guides) re-skins to the
   new palette without touching its markup.
   Plus Jakarta Sans for headings, Inter for body. Flat colours only —
   no gradients, no glows, no glass except the sticky header blur.
   Tailwind Play CDN runs with preflight disabled; the border rule below
   restores Tailwind's border behaviour for its utilities.
   JS hooks from nav.js / bill-checker.js are preserved
   (.is-open, .is-on, .is-scrolled, .is-hidden, .is-loading, .alert, etc.).
   ========================================================================== */

:root {
    /* Spec tokens — the source of truth */
    --primary: #059669;          /* deep emerald — primary actions, brand */
    --primary-hover: #047857;
    --primary-light: #ecfdf5;    /* soft emerald tint — badges, pills */
    --hero-band: #d1fae5;        /* flat emerald band — hero, home + DISCO pages */
    --accent: #f59e0b;           /* warm amber — power icons, live highlights */
    --bg-body: #f8fafc;          /* crisp off-white canvas */
    --bg-surface: #ffffff;       /* pure white elevated cards */
    --border-subtle: #e2e8f0;
    --text-main: #0f172a;        /* slate 900 */
    --text-muted: #475569;       /* slate 600 */

    /* Legacy aliases — same values, old names */
    --ink: #0f172a;              /* headings, brand, dark bands */
    --ink-soft: #475569;         /* body copy */
    --ink-faint: #64748b;        /* captions, helper text */
    --blue: #059669;             /* the one accent: links, primary actions */
    --blue-dark: #047857;        /* accent hover */
    --blue-50: #ecfdf5;          /* accent tint */
    --blue-100: #d1fae5;         /* focus ring / tint */
    --sky-100: #ecfdf5;          /* soft emerald band — hero */
    --sky-200: #d1fae5;          /* deeper tint — hovers on tinted surfaces */
    --green: #059669;            /* success / verified only */
    --green-50: #ecfdf5;
    --amber-50: #fffbeb;
    --amber-line: #fde68a;
    --paper: #f8fafc;            /* page background */
    --card: #ffffff;
    --line: #e2e8f0;             /* borders */
    --line-soft: #f1f5f9;        /* hairlines */
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-line: #fecaca;

    /* Type scale — Plus Jakarta Sans headings, Inter body */
    --text-display: clamp(34px, 4.2vw, 44px);
    --text-h1: clamp(30px, 3.6vw, 38px);
    --text-h2: clamp(24px, 2.6vw, 30px);
    --text-h3: 18px;
    --text-body: 16px;
    --text-small: 14px;
    --text-caption: 12.5px;
    --lh-tight: 1.12;
    --lh-heading: 1.2;
    --lh-body: 1.6;
    --lh-small: 1.55;

    /* Spacing scale — section gaps use only these steps */
    --s-1: 8px;
    --s-2: 16px;
    --s-3: 24px;
    --s-4: 32px;
    --s-5: 48px;
    --s-6: 64px;
    --section: var(--s-6);

    /* Shape — one radius family; 999px only for chips/pills */
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 16px;

    /* Elevation — restrained, no glow */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);

    /* Layout — ONE container width for header, footer and content */
    --wrap: min(1160px, calc(100% - 40px));
    --header-h: 64px;
    --header-h-mobile: 60px;

    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
}

* { box-sizing: border-box; }

/* Tailwind Play CDN runs with preflight disabled: give every element a
   solid border style with zero width, exactly as Tailwind's preflight
   does, so `border` / `border-slate-200` utilities render. Existing
   rules that set their own border are unaffected. */
*, *::before, *::after { border-style: solid; border-width: 0; }

/* The `hidden` attribute must win over any display set below (flex/grid
   panels such as the mobile drawer and its accordions): without this,
   author display rules override the UA `[hidden]` rule and "closed"
   panels stay visible. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    font-size: var(--text-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, .brand strong {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: var(--lh-heading);
    margin: 0;
}

p { margin: 0; }

button, input, select, textarea { font-family: inherit; }

a { color: inherit; }

::selection { background: var(--blue-100); color: var(--ink); }

main { width: 100%; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Utilities ---------- */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -48px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--r-md);
}
.skip-link:focus { top: 12px; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-head { margin-bottom: var(--s-3); }
.section-head h2 { font-size: var(--text-h2); }
.section-lead {
    color: var(--ink-soft);
    max-width: 68ch;
    line-height: var(--lh-body);
    margin: 10px 0 0;
}
/* Split head: heading block left, one action right, kept on one row. */
.section-head--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--s-3);
    flex-wrap: wrap;
}
.section-head--split .actions { margin-top: 0; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: #fff;
    white-space: nowrap;
}
.pill--green { background: var(--green-50); border-color: #bfe3cb; color: var(--green); }
.pill--blue { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue); }

/* ---------- Buttons — one spec: 48px, 8px radius, three variants ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--r-md);
    padding: 0 20px;
    min-height: 48px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 2px; }
/* Primary — flat emerald, pill-shaped (class name kept from the old theme). */
.btn-gold { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 999px; }
.btn-gold:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 999px; }
.btn-dark:hover { background: #1e293b; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); border-radius: 999px; }
.btn-ghost:hover { border-color: var(--ink); }
/* Light — white button for use on dark bands. */
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-50); }
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn.is-loading { position: relative; pointer-events: none; }
.btn.is-loading::before {
    content: "";
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.back {
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.back:hover { text-decoration: underline; }

.text-link {
    border: 0;
    background: none;
    padding: 8px 0;
    min-height: 40px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    text-align: left;
}
.text-link:hover { color: var(--blue-dark); }

/* ---------- Forms — one input spec: 52px, 8px radius ---------- */
.field-label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }

.number, .bill-number, .bill-select, .contact-message {
    width: 100%;
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: var(--r-md);
    padding: 14px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}
.bill-select, .bill-number { height: 52px; min-height: 52px; padding: 0 14px; }
/* Reference numbers and customer IDs: tabular figures, tracked out. */
.bill-number {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}
/* .bill-number must beat the generic .number 20px below it (same
   specificity, later rule): the checker input is 15px so its
   placeholder fits at 375px instead of ellipsising. */
.bill-number.number { font-size: 15px; }
.number { font-size: 20px; letter-spacing: 0.03em; }
.number:focus, .bill-number:focus, .bill-select:focus, .contact-message:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-100);
}
.number::placeholder, .bill-number::placeholder {
    color: var(--ink-faint);
    font-weight: 500;
    text-overflow: ellipsis;
}
textarea.number, .contact-message { line-height: 1.55; resize: vertical; }
.text-area { font-size: 15px; letter-spacing: 0; line-height: 1.55; min-height: 96px; }

.field-hint { margin: 0; color: var(--ink-soft); font-size: 13px; font-weight: 600; line-height: 1.45; }
.hint { margin-top: 12px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.field-error {
    display: block;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
    min-height: 1.2em;
    margin-top: 5px;
}

/* ---------- Alerts / feedback ---------- */
.alert {
    margin-bottom: 16px;
    padding: 13px 16px;
    border-radius: var(--r-md);
    background: var(--danger-bg);
    border: 1px solid var(--danger-line);
    color: var(--danger);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
}
.saved {
    margin: 0 0 14px;
    padding: 13px 16px;
    border-radius: var(--r-md);
    background: var(--green-50);
    border: 1px solid #bfe3cb;
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
}
.notice-inline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 16px;
    border-radius: var(--r-md);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Generic cards / page furniture ---------- */
.page-card, .lookup {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.page-card h1 { font-size: var(--text-h1); }
.page-card p { color: var(--ink-soft); line-height: var(--lh-body); max-width: 62ch; }

.page-intro { padding: 44px 0 8px; }
.page-intro h1 { font-size: var(--text-h1); }
.page-intro > p { color: var(--ink-soft); font-size: 17px; line-height: var(--lh-body); max-width: 68ch; margin-top: 12px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.actions .btn { width: auto; }

.service-band { margin-top: var(--section); }
/* Story head: heading left, link right — always on one row. */
.story-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 18px; flex-wrap: wrap; }
.story-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
/* Plain links only — buttons inside a story-head keep their own colours
   (a blue `.btn-gold` with this rule inherited blue text on blue). */
.story-head a:not(.btn) { font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; margin-left: auto; }
.story-head a:not(.btn):hover { text-decoration: underline; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-decoration: none;
    min-height: 150px;
}
.story-card:hover, .story-card:focus-visible { border-color: var(--blue); outline: none; }
.story-card strong { font-size: 17px; line-height: 1.35; }
.story-card span { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.story-card img, .article-cover, .admin-thumb { width: 100%; border-radius: var(--r-md); display: block; }
.story-card img { aspect-ratio: 16 / 9; object-fit: cover; margin: -4px -4px 4px; width: calc(100% + 8px); }
.story-card .pill { align-self: flex-start; }

.ad-slot { min-height: 24px; margin: 28px 0; }

/* v1 load-in animation removed: hero content renders statically. */
.rise { animation: none; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    min-height: 48px;
}
.brand strong { display: block; font-size: 19px; line-height: 1.1; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--ink-soft); font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; }

/* Rounded emerald square, no gradient, no glow. The bolt is white with
   an amber accent (see the SVG in _SiteHeader). */
.mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
}
.mark svg { display: block; }

/* Sticky glassmorphism header: translucent white + backdrop blur. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner {
    width: var(--wrap);
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-cta { display: inline-flex; margin-left: auto; }
.header-cta .btn { min-height: 44px; padding: 0 18px; }

.primary-nav { display: flex; align-items: center; gap: 2px; }
.primary-nav__link,
.nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--r-md);
}
/* Active state: blue text + flat 2px underline. Applied to the Home link
   and to a menu trigger whenever any link inside that menu is current. */
.primary-nav__link:hover,
.primary-nav__link:focus-visible,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"],
.nav-trigger:focus-visible {
    color: var(--ink);
    background: var(--blue-50);
    outline: none;
}
.primary-nav__link.is-on,
.nav-trigger.is-on {
    color: var(--blue);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--blue);
    border-radius: 0;
}
.nav-caret {
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-item { position: relative; }
.nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 300px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 220;
}
.nav-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-panel--mega {
    left: 50%;
    transform: translate(-50%, 6px);
    width: min(780px, calc(100vw - 48px));
    min-width: 560px;
}
.nav-panel--mega.is-open { transform: translate(-50%, 0); }
.mega-grid {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}
.dropdown-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mega-link,
.dropdown-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    padding: 11px 13px;
    min-height: 48px;
    border-radius: var(--r-md);
}
.mega-link:hover,
.mega-link.is-on,
.mega-link:focus-visible,
.dropdown-list a:hover,
.dropdown-list a.is-on,
.dropdown-list a:focus-visible {
    background: var(--blue-50);
    outline: none;
}
.mega-link strong,
.dropdown-list a strong { font-size: 14px; color: var(--ink); }
.mega-link span,
.dropdown-list a span { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.mega-link.is-on strong, .dropdown-list a.is-on strong { color: var(--blue); }

.nav-toggle {
    display: none;
    width: 48px; height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 18px; }
.nav-toggle__bars span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 51, 0.5);
    z-index: 300;
}
.mobile-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(400px, 92vw);
    height: 100%;
    background: #fff;
    z-index: 310;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    box-shadow: -16px 0 48px rgba(11, 31, 51, 0.18);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h-mobile);
    padding: 0 16px;
    border-bottom: 1px solid var(--line-soft);
}
.mobile-drawer__title { font-weight: 800; font-size: 16px; }
.drawer-close {
    width: 44px; height: 44px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
    border-radius: var(--r-md);
}
.drawer-close:hover { background: var(--blue-50); }
.mobile-nav { overflow: auto; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__cta { width: 100%; margin-bottom: 12px; }
.mobile-nav__section {
    margin: 14px 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.mobile-nav__link,
.mobile-accordion__trigger,
.mobile-accordion__panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    text-decoration: none;
    font-weight: 700;
    color: var(--ink);
    border-radius: var(--r-md);
}
.mobile-nav__link.is-on,
.mobile-accordion__panel a.is-on,
.mobile-nav__link:focus-visible,
.mobile-accordion__panel a:focus-visible {
    background: var(--blue-50);
    color: var(--blue);
    outline: none;
}
.mobile-accordion__trigger {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.mobile-accordion__trigger.is-on { color: var(--blue); }
.mobile-accordion__trigger[aria-expanded="true"] { background: var(--blue-50); color: var(--blue); }
.acc-icon { width: 12px; height: 12px; position: relative; }
.acc-icon::before, .acc-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 1px;
}
.acc-icon::before { width: 12px; height: 2px; top: 5px; left: 0; }
.acc-icon::after { width: 2px; height: 12px; top: 0; left: 5px; transition: transform 0.15s ease, opacity 0.15s ease; }
.mobile-accordion__trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); opacity: 0; }
.mobile-accordion__panel { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 8px 8px; }
.mobile-accordion__panel a { color: var(--ink-soft); font-size: 14px; }

/* Admin strip (signed-in) */
.admin-strip { background: var(--ink); color: #fff; }
.strip-inner {
    width: var(--wrap);
    margin: 0 auto;
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 44px;
    flex-wrap: wrap;
}
.strip-inner > span { font-weight: 800; font-size: 13px; color: #9db8cf; letter-spacing: 0.06em; text-transform: uppercase; }
.strip-inner a, .strip-inner button {
    color: #dbe7fd;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 0;
}
.strip-inner a:hover, .strip-inner button:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Footer — flat ink navy, one container width, real structure:
   brand block + four link columns in one grid row.
   ========================================================================== */
.site-footer {
    margin-top: 72px;
    background: var(--ink);
    color: #c6d6e6;
}
.site-footer__inner {
    width: var(--wrap);
    margin: 0 auto;
    padding: 52px 0 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) repeat(4, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}
.footer-brand-block { max-width: 44ch; }
.brand--footer .mark { background: #fff; color: var(--ink); }
.brand--footer strong { font-size: 19px; line-height: 1.2; color: #fff; }
.brand--footer small { color: #8fb0cc; }
.footer-mission { margin: 16px 0 0; color: #a9c2d8; font-size: 15px; font-weight: 500; line-height: var(--lh-body); }
.footer-disclaimer {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--r-md);
    color: #9db8cf;
    font-size: 13px;
    font-weight: 500;
    line-height: var(--lh-body);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    grid-column: 2 / -1;
}
.footer-col__title { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer-col__trigger {
    display: none;
    width: 100%;
    min-height: 48px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    font: inherit;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.footer-col__trigger:focus-visible { outline: 2px solid var(--blue-100); outline-offset: 2px; }
.footer-col__icon { width: 14px; height: 14px; position: relative; flex: 0 0 14px; }
.footer-col__icon::before, .footer-col__icon::after {
    content: "";
    position: absolute;
    background: #fff;
    border-radius: 1px;
}
.footer-col__icon::before { width: 14px; height: 2px; top: 6px; left: 0; }
.footer-col__icon::after { width: 2px; height: 14px; top: 0; left: 6px; transition: transform 0.15s ease, opacity 0.15s ease; }
.footer-col__trigger[aria-expanded="true"] .footer-col__icon::after { transform: scaleY(0); opacity: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-col a {
    display: flex;
    align-items: center;
    min-height: 40px;
    text-decoration: none;
    color: #a9c2d8;
    font-weight: 600;
    font-size: 14px;
}
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; text-decoration: underline; outline: none; }
.footer-col a.is-on { color: #fff; text-decoration: underline; }
.footer-meta {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-meta p { margin: 0; color: #8fb0cc; font-size: 13px; font-weight: 600; max-width: 62ch; line-height: 1.5; }
.footer-meta__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-meta__links a { color: #dbe7fd; font-weight: 700; font-size: 13px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-meta__links a:hover { text-decoration: underline; }

.back-to-top {
    position: fixed;
    right: 18px; bottom: 18px;
    z-index: 180;
    width: 52px; height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    font: inherit;
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.back-to-top:hover { background: var(--blue); }
.back-to-top:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 2px; }
.back-to-top__label { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* ==========================================================================
   Homepage hero + bill checker
   Flat soft-emerald hero band (hero-band token, never a gradient).
   Headline, lead, trust row, then the checker as the largest element
   on the page — the white checker card pops against the tint.
   DISCO landings reuse the same band (hero-band--disco) so the whole
   site reads as one page.
   ========================================================================== */
.hero-band {
    background: var(--hero-band);
    border-bottom: 1px solid var(--line-soft);
}
/* DISCO landing hero: the band ends after the checker card, so it needs
   its own bottom padding (on the homepage the trust strip provides it). */
.hero-band--disco { padding-bottom: 48px; }
.home-hero { padding: 56px 0 0; max-width: 720px; }
.home-hero .eyebrow { color: var(--blue); }
.home-hero h1 {
    font-size: var(--text-display);
    line-height: var(--lh-tight);
    color: var(--ink);
}
/* Highlighted words: flat accent blue, never gradient text. */
.home-hero h1 .grad { color: var(--blue); }
.home-hero__lead {
    max-width: 64ch;
    color: var(--ink-soft);
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: var(--lh-body);
    margin: 18px 0 0;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 24px;
    padding: 0;
    list-style: none;
}
.hero-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}
.hero-trust li::before {
    content: "";
    width: 7px; height: 7px;
    flex: 0 0 7px;
    background: var(--green);
    border-radius: 2px;
}

/* Bill checker tool — elevated white card, the largest element on the
   page. (Tailwind utilities on the <form> set max-w-3xl / radius /
   shadow; this rule is the no-CDN fallback for the same look.) */
.bill-tool {
    position: relative;
    z-index: 5;
    margin-top: 32px;
    margin-inline: auto;
    max-width: 768px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
}
/* Roomier card on tablet/desktop — the card must read airy, not packed. */
@media (min-width: 768px) {
    .bill-tool { padding: 40px; }
}
/* One generous gap between field groups (toggle / company / number /
   U-R row). The last group carries no bottom margin — the gap to the
   save/submit row comes from .bill-action instead, so the two never
   stack into a double gap. Spacing lives here in CSS, not in Tailwind
   utilities, so the card keeps its rhythm with or without the CDN. */
.bill-field { margin-bottom: 26px; }
#pitc-meta.bill-field { margin-bottom: 0; }
.bill-tool__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
/* No wrap: the LIVE pill stays top-right of the heading on mobile
   instead of dropping below the intro as a stray tag. */
.bill-tool__head > div { flex: 1; min-width: 0; }
.bill-tool__head .pill { flex-shrink: 0; }
.bill-tool__head h2 { font-size: 22px; letter-spacing: -0.02em; }
.bill-tool__head p { color: var(--ink-soft); font-size: 14px; margin-top: 4px; max-width: 56ch; }
.bill-tool__grid {
    display: grid;
    /* Number column is deliberately wide: the placeholder is 548px at
       16px, so it needs ~640px of field width at desktop. */
    grid-template-columns: minmax(200px, 0.8fr) minmax(320px, 1.9fr) auto;
    grid-template-areas:
        "company number action"
        "companyHint meta meta";
    column-gap: 16px;
    row-gap: 12px;
    align-items: start;
}
.bill-tool__company { grid-area: company; }
.bill-tool__number { grid-area: number; }
.bill-tool__action { grid-area: action; }
.bill-tool__company-hint { grid-area: companyHint; }
.bill-tool__meta { grid-area: meta; }
.bill-tool__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bill-tool__field .field-label { margin: 0; min-height: 18px; line-height: 18px; }
.bill-tool__action { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.bill-tool__action-label { margin: 0; min-height: 18px; line-height: 18px; visibility: hidden; }
.bill-submit { height: 52px; min-height: 52px; min-width: 160px; padding: 0 24px; font-size: 16px; white-space: nowrap; }
.bill-tool__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-height: 44px; }
.bill-tool .ru-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; align-items: center; }
.bill-tool .ru-row > span { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.search-by label, .ru-row label {
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}
.search-by label:has(input:checked), .ru-row label:has(input:checked) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.search-by input, .ru-row input { position: absolute; opacity: 0; pointer-events: none; }
.bill-tool__hint { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.bill-tool .ke-note { margin-top: 18px; padding: 18px; background: var(--amber-50); border: 1px solid var(--amber-line); border-radius: var(--r-md); }
.ke-note h2 { margin: 0 0 6px; font-size: 19px; }
.ke-note p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.55; }
.ke-note .btn, .actions .btn { width: auto; }
.bill-tool__meta[hidden], .bill-tool__number[hidden], .ru-row[hidden], .ke-note[hidden], #pitc-fields[hidden], #pitc-meta[hidden] { display: none !important; }

/* Trust stats — a ruled row, not cards. */
.trust-strip { margin-top: 28px; padding-bottom: 48px; }
.trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.trust-strip__cell { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.trust-strip__cell:first-child { padding-left: 0; border-left: 0; }
.trust-strip__cell strong { display: block; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.trust-strip__cell span { color: var(--ink-soft); font-size: 13.5px; font-weight: 600; line-height: 1.4; display: block; margin-top: 2px; }

/* ---------- Provider directory — card grid ----------
   White cards with a monogram badge, province pill and two links.
   The region filter (site.js) still toggles .is-hidden per card. */
.disco-hub { margin-top: var(--section); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.filter-chip {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 9px 16px;
    min-height: 42px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.disco-hub__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.disco-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.disco-card:hover, .disco-card:focus-within { border-color: var(--primary); }
.disco-card.is-hidden { display: none; }
.disco-card__main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.disco-mono {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 17px;
    background: var(--primary-light);
    color: var(--primary);
}
.disco-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.disco-card__text strong { font-size: 17px; letter-spacing: -0.01em; }
.disco-card__text .full { color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.disco-card__text span:last-child { color: var(--ink-soft); font-size: 13px; font-weight: 600; line-height: 1.45; }
.disco-card__region {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}
.disco-card__foot {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
    border-top: 1px solid var(--line-soft);
    padding-top: 12px;
}
.disco-card__check, .disco-card__info {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--r-md);
    white-space: nowrap;
}
.disco-card__check { color: var(--primary); }
.disco-card__check:hover, .disco-card__check:focus-visible { background: var(--primary-light); outline: none; }
.disco-card__info { color: var(--ink-soft); }
.disco-card__info:hover { color: var(--ink); background: var(--primary-light); }

/* ---------- How it works — 4-step card grid ----------
   White cards with numbered emerald badges. The step badge is styled
   by its own class only. No descendant `span` rule anywhere in this
   file can catch it (that collision hid the digits in v1). */
.how-band {
    margin-top: 0;
    padding: var(--s-5) 0;
    background: var(--paper);
    border-block: 1px solid var(--line-soft);
}
.how-steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.how-steps li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    line-height: 1;
    margin-bottom: 16px;
}
.how-steps strong { display: block; font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.step-text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* ---------- Alternating bands — light blue theme ----------
   The page background is soft blue (var(--paper)). White bands are
   full-bleed sections with their own padding; blue bands are the page
   background showing through. Only backgrounds move — layouts and
   spacing values are unchanged. */
section.band--white { background: #fff; margin-top: 0; padding: var(--section) 0; }
section.charges-band { margin-top: 0; }

/* ---------- Tools — three ruled entries, no cards, no feature span ----------
   Presented as guide entries: each links to a guide page, none pretends
   to be an interactive calculator. */
.tools-band { margin-top: var(--section); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tool-card {
    border-top: 2px solid var(--ink);
    padding-top: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 168px;
}
.tool-card:hover .tool-cta, .tool-card:focus-visible .tool-cta { text-decoration: underline; }
.tool-card:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 4px; }
.tool-card strong { font-size: 18px; line-height: 1.3; }
.tool-card > span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.tool-card .tool-cta { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 14px; color: var(--blue); }
.tool-icon {
    width: 36px; height: 36px;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    background: var(--blue-50);
    color: var(--blue);
    margin-bottom: 4px;
}

/* ---------- Bill anatomy (charges) — split head + two-column rows ---------- */
.charges-band { margin-top: var(--section); }
.charges-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.charge-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
    align-items: start;
}
.charge-icon {
    font-weight: 800;
    font-size: 15px;
    color: var(--blue);
    line-height: 1.4;
    padding-top: 1px;
}
.charge-item h3 { font-size: 16.5px; margin-bottom: 3px; }
.charge-item p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

/* ---------- FAQs — full container width: intro left, list right ---------- */
.home-faqs { margin-top: var(--section); }
.faq-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 40px; align-items: start; }
.faq-intro { position: static; }
.faq-intro .actions { margin-top: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0;
    overflow: hidden;
}
.faq[open] { border-color: var(--blue); }
.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15.5px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex: 0 0 28px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}
.faq[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq p { margin: 0; padding: 0 18px 18px; color: var(--ink-soft); line-height: var(--lh-body); font-size: 15px; }

/* ---------- Latest stories — two-column editorial split, list rows ---------- */
.home-stories { margin: 0 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.story-block + .story-block { margin-top: 0; }
.home-stories .card-grid { display: flex; flex-direction: column; gap: 0; }
.home-stories .story-card {
    min-height: 0;
    padding: 16px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--line-soft);
}
.home-stories .story-card:hover { border-color: var(--line-soft); }
.home-stories .story-card .pill { margin-bottom: 2px; }

/* ==========================================================================
   Bill result — flat ink band, no gradient, no gradient text
   ========================================================================== */
.result-hero {
    margin-top: 28px;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    padding: 30px 32px 28px;
    color: #fff;
    background: var(--ink);
    box-shadow: var(--shadow-sm);
}
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.result-bar .back { color: #9db8cf; }
.result-bar .btn { min-height: 44px; padding: 0 16px; }
.result-hero .eyebrow { color: #9db8cf; }
.result-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 38px); }
.result-meta { margin: 10px 0 0; color: #b9cede; font-size: 15px; font-weight: 600; }
.result-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.result-pay__cell .lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #8fb0cc; }
.result-pay__cell .amt {
    font-size: clamp(30px, 4.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-top: 4px;
}
.result-pay__cell .amt--main { color: #fff; }
.result-pay__cell .sub { color: #b9cede; font-size: 13.5px; font-weight: 600; margin-top: 2px; }

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.result-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 18px;
}
.result-stat dt { color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.result-stat dd { margin: 5px 0 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; word-break: break-word; }
/* Legacy .stats grid (kept for compatibility) */
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.stats dt { color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.stats dd { margin: 5px 0 0; font-size: 17px; font-weight: 800; }
.stat-strong dd { color: var(--blue); }

.bill-shell {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.bill-shell__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 14px;
    flex-wrap: wrap;
}
.bill-shell__head strong { font-size: 15px; }
.bill-shell__head span { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.bill-loading { margin: 8px 10px 0; color: var(--ink-soft); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.bill-loading::before {
    content: "";
    width: 16px; height: 16px;
    border: 2px solid var(--blue-100);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.bill-shell iframe {
    width: 100%;
    min-height: 920px;
    border: 1px solid var(--line-soft);
    background: #fff;
    border-radius: var(--r-md);
}

/* Empty / notice states */
.empty-state {
    max-width: 640px;
    margin: 56px auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 44px 32px;
    box-shadow: var(--shadow-sm);
}
.empty-state__icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--r-lg);
    display: grid;
    place-items: center;
    background: var(--blue-50);
    color: var(--blue);
}
.empty-state h1 { font-size: clamp(26px, 3.4vw, 34px); }
.empty-state p { color: var(--ink-soft); line-height: var(--lh-body); margin: 12px auto 0; max-width: 48ch; }
.empty-state .actions { justify-content: center; }

/* ==========================================================================
   Articles, guides, jobs
   ========================================================================== */
.article { max-width: 780px; margin-inline: auto; width: min(780px, calc(100% - 40px)); padding: 44px 0 16px; }
.article h1 { font-size: clamp(30px, 4.4vw, 40px); }
.article .result-meta { margin-top: 12px; }
.article-cover { margin: 22px 0; max-height: 420px; object-fit: cover; border-radius: var(--r-lg); }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body h2 { font-size: 24px; margin: 32px 0 10px; }
.article-body p { margin: 0 0 16px; color: var(--ink-soft); }
.article-body ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--blue); font-weight: 700; }

.article-meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Info pages — one numbered-step treatment site-wide, matching the
   homepage `.step-num` badge: a flat ink circle, title + text beside it.
   Ruled rows, never cards. The ref-help modal reuses the plain `.steps`
   list (its own overrides below still apply). */
.steps:not(.how-steps) { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps:not(.how-steps) li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    border-top: 1px solid var(--line-soft);
}
.steps:not(.how-steps) li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps:not(.how-steps) span { color: var(--ink-soft); line-height: 1.55; font-size: 14.5px; }
.steps:not(.how-steps) strong { font-size: 16.5px; }
.steps--numbered { counter-reset: step; }
/* Doubled class beats `.steps:not(.how-steps) li` (same specificity, later
   in the file) so numbered steps really render as a card grid. The badge
   is the ::before counter — emerald, never ink. */
.steps.steps--numbered {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.steps.steps--numbered li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.steps.steps--numbered li > strong { font-size: 17px; margin-bottom: 6px; }
.steps.steps--numbered li > span { color: var(--ink-soft); line-height: 1.55; font-size: 14.5px; }
.steps.steps--numbered li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
}
.office-region { margin-top: 36px; }
.office-region h2 { margin: 0 0 16px; font-size: 24px; }

/* ==========================================================================
   SEO landings, region hubs
   ========================================================================== */
.seo-landing { padding-bottom: 8px; }
.seo-link-list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}
.seo-link-list a, .legal-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    border-radius: var(--r-md);
}
.seo-link-list a:hover { text-decoration: underline; }

.region-band {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}
.region-band .page-intro { padding: 52px 0 40px; }
.region-band h1 { color: #fff; }
.region-band p { color: #b9cede; }
.region-band .eyebrow { color: #9db8cf; }
.region-hub { padding-bottom: 12px; }
.region-hub__section { margin-top: 40px; }
/* Region companies reuse the homepage provider cards (.disco-card),
   stacked in one column. */
.region-disco-grid { display: flex; flex-direction: column; gap: 16px; }

/* City directory — a ruled two-column list, not a pill cloud. */
.city-list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    border-top: 1px solid var(--line-soft);
}
.city-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 700;
    font-size: 15px;
}
/* Linked rows: the anchor fills the row so the whole row is clickable. */
.city-list li:has(> a) { padding: 0; }
.city-list li > span { color: var(--blue); font-size: 13px; font-weight: 800; }
.city-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 4px;
    text-decoration: none;
    color: inherit;
}
.city-list a:hover strong, .city-list a:focus-visible strong { color: var(--blue); outline: none; }
.city-list a span { color: var(--blue); font-size: 13px; font-weight: 800; }

.region-guide { padding: 0; background: transparent; border: 0; }
.region-guide__list { margin: 0 0 18px; padding: 0; list-style: none; color: var(--ink-soft); line-height: 1.65; border-top: 1px solid var(--line-soft); }
.region-guide__list li { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }

/* ==========================================================================
   Legal + contact
   ========================================================================== */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: start; }
.legal-rail { position: sticky; top: 92px; }
.legal-rail h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.legal-body p { color: var(--ink-soft); line-height: 1.65; max-width: 68ch; }
.legal-meta { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.legal-prose { max-width: 68ch; margin: 8px 0 28px; }
.legal-section + .legal-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.legal-prose h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; }
.legal-prose p { margin: 0 0 12px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.legal-prose ul { margin: 0 0 12px; padding-left: 1.2em; color: var(--ink-soft); line-height: 1.65; }
.legal-prose li { margin-bottom: 8px; }
.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    border-top: 0;
}
.legal-nav a {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--r-md);
    font-size: 14.5px;
}
.legal-nav a:hover { background: var(--sky-200); text-decoration: none; }
.legal-nav a.is-on { color: var(--blue); background: var(--sky-200); text-decoration: none; }

/* Contact — info column (plain, no card) beside the form card, so the two
   sides never end at mismatched heights. The legal links sit below both,
   separated by a rule, like the rail on the other legal pages. */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 40px;
    margin-top: 32px;
    align-items: start;
}
.contact-info h2 { margin: 0 0 8px; font-size: 18px; }
.contact-info h2:not(:first-child) { margin-top: 32px; }
.contact-info p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.55; font-size: 14.5px; }
.contact-email { font-weight: 800; color: var(--blue); word-break: break-all; text-decoration: none; }
.contact-email:hover { text-decoration: underline; }
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .btn { align-self: flex-start; }
.contact-legal { margin-top: var(--s-5); border-top: 1px solid var(--line-soft); padding-top: 24px; }
.contact-legal h2 { font-size: 18px; margin: 0 0 12px; }

/* ==========================================================================
   Admin desk
   ========================================================================== */
.admin-hero {
    margin-top: 28px;
    border-radius: var(--r-lg);
    padding: 26px 28px;
    color: #fff;
    background: var(--ink);
    box-shadow: var(--shadow-sm);
}
.admin-hero .eyebrow { color: #9db8cf; }
.admin-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 34px); }
.admin-hero p { color: #b9cede; margin-top: 8px; max-width: 62ch; }
.admin-stats { display: flex; flex-direction: column; margin-top: 20px; border-top: 1px solid var(--line-soft); }
/* Admin desk links — ruled rows, never a card grid (4 items in 3 columns
   left an orphan; a list has no last row). */
.admin-stat {
    display: flex;
    align-items: baseline;
    gap: 8px 20px;
    flex-wrap: wrap;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
    color: inherit;
}
.admin-stat:hover strong { color: var(--blue); }
.admin-stat strong { font-size: 18px; }
.admin-stat span { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.admin-card { max-width: 860px; margin-top: 28px; }
.admin-card .number { font-size: 16px; letter-spacing: 0; }
.login-card .number { font-size: 16px; letter-spacing: 0; }
.admin-card .field-label { margin-top: 16px; }
.admin-card .field-label:first-of-type { margin-top: 4px; }
.check-line { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--blue); }
.admin-table { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.admin-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.admin-row:hover { border-color: var(--blue); }
.admin-row span, .admin-row a { color: var(--ink-soft); font-size: 14px; }
.admin-row > a { color: var(--blue); font-weight: 800; text-decoration: none; white-space: nowrap; }
.admin-row > a:hover { text-decoration: underline; }
.admin-row div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-thumb { max-width: 220px; margin-top: 10px; border-radius: var(--r-md); }
.danger-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--green-50);
    color: var(--green);
}
.status-pill--muted { background: var(--paper); color: var(--ink-soft); }

/* Login */
.login-shell { max-width: 460px; margin: 56px auto 8px; }
.login-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px 30px;
    box-shadow: var(--shadow-md);
}
.login-card .brand { margin-bottom: 22px; }
.login-card h1 { font-size: 26px; margin-bottom: 6px; }
.login-card > p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.login-card form { display: flex; flex-direction: column; }
.login-card .btn { margin-top: 18px; width: 100%; }

/* ==========================================================================
   Part 2 — inner-page furniture (redesign v2, inner pages)
   One ruled-row treatment shared by guides, careers, resources, offices,
   related links and tool hubs. No new colours, radii or type sizes.
   ========================================================================== */
.inner-section { margin-top: var(--s-5); }
.inner-section .story-head { margin-bottom: 16px; }

/* Ruled link rows — title + one-line description, for related DISCOs,
   regions, tools and guides. */
.link-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.link-rows li { border-bottom: 1px solid var(--line-soft); }
.link-rows a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 4px;
    text-decoration: none;
    color: inherit;
}
.link-rows a:hover strong, .link-rows a:focus-visible strong { color: var(--blue); outline: none; }
.link-rows strong { font-size: 16px; line-height: 1.35; }
.link-rows span { color: var(--ink-soft); font-size: 13.5px; font-weight: 600; line-height: 1.45; }

/* Index rows — guides, careers, resources, offices. Date/type pill on the
   right, title + detail on the left. One row per item, no orphan card. */
.row-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.row-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line-soft);
    text-decoration: none;
    color: inherit;
}
a.row-item:hover .row-item__title, a.row-item:focus-visible .row-item__title { color: var(--blue); outline: none; }
.row-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-item__thumb { width: 96px; flex: 0 0 96px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); display: block; }
.row-item__title { font-size: 17px; line-height: 1.35; }
.row-item__meta { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.row-item__side { flex: 0 0 auto; }
.row-item__side .pill { margin-top: 2px; }

/* Article pages — back link above the title, actions below the body. */
.article-nav { margin-bottom: 20px; }
.article-foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }

/* FAQ page — the same split layout as the homepage FAQs: intro left,
   full list right, no dead space. */
.faq-page { padding: 44px 0 8px; }
.faq-intro h1 { font-size: var(--text-h1); }
.disco-check .bill-tool { margin-top: 0; }

/* Empty states — request id sits under the body copy. The id is one long
   unbroken token: let it wrap, or it forces the layout viewport wider
   than the phone (375px rendered at 548px). */
.empty-state .request-id { margin-top: 14px; }
.empty-state .request-id .pill { white-space: normal; overflow-wrap: anywhere; }

/* ==========================================================================
   v3 checker components — DISCO tabs, segmented toggle, digit counter,
   recent searches, coverage pills, reference-bill modal.
   ========================================================================== */

/* Quick DISCO switcher tabs above the checker card. */
.disco-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin-top: 28px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.disco-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.disco-tab:hover { border-color: var(--primary); color: var(--primary); }
.disco-tab.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Search-mode segmented toggle (Reference No. / Customer ID). */
.segmented {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--bg-body);
    border: 1px solid var(--line);
    border-radius: 999px;
    max-width: 100%;
}
.segmented-btn {
    flex: 1 1 auto;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.segmented-btn:hover { color: var(--ink); }
.segmented-btn.is-on { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.segmented-btn:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 2px; }

/* Smart number input: counter badge lives inside the right edge.
   The right padding clears the badge so typed digits never run under it. */
.number-wrap { position: relative; }
.number-wrap .bill-number { padding-right: 116px; }
.digit-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    background: var(--bg-body);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.digit-counter.is-full { background: var(--primary-light); border-color: #a7f3d0; color: var(--primary); }
.try-sample {
    border: 0;
    background: none;
    padding: 0 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    min-height: 36px;
    flex: 0 0 auto;
}
.try-sample:hover { color: var(--primary-hover); }

/* Number label row: label left, Try Sample right, clear air below
   before the input — the two must never crowd the field. */
.number-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.number-label-row .field-label { margin-bottom: 0; }
/* Company hint sits a clear step below its select. */
.bill-tool .field-hint { margin-top: 10px; }

/* U / R row: pills + help link. On narrow widths the row stacks into
   two uncrowded lines (pills first, link below) instead of jamming
   everything onto one line. */
.pitc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}
/* Save + submit row: clear air above the checkbox and below it. */
.bill-action { margin-top: 28px; }
.bill-action .checker-save { margin-bottom: 18px; }

/* U / R segmented radio pills. */
.ru-pills { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ru-pills__label { font-size: 13px; font-weight: 800; color: var(--ink-soft); margin-right: 2px; }
.ru-pills label {
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 10px 20px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    color: var(--ink-soft);
}
.ru-pills label:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.ru-pills input { position: absolute; opacity: 0; pointer-events: none; }
.ru-pills label:focus-within { outline: 3px solid var(--blue-100); outline-offset: 2px; }

/* Recent searches — clickable chips with a remove button. */
.recent-bar { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.recent-bar__label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px; }
.recent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 6px 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-body);
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.recent-chip:hover { border-color: var(--primary); background: var(--primary-light); }
.recent-chip svg { flex: 0 0 auto; color: var(--ink-faint); }
.recent-chip__remove {
    display: inline-grid;
    place-items: center;
    width: 26px; height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.recent-chip__remove:hover { background: #fff; color: var(--danger); }

/* Coverage area — white pill badges with map pins. */
.coverage-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.coverage-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}
.coverage-pill svg { flex: 0 0 auto; color: var(--primary); }

/* Checker submit row: save checkbox + full-width emerald button. */
.checker-save { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-soft); }
.checker-save input { width: 18px; height: 18px; accent-color: var(--primary); }
.bill-submit--full { width: 100%; min-height: 56px; font-size: 17px; }

/* ==========================================================================
   Reference modal
   ========================================================================== */
.ref-modal {
    border: 0;
    border-radius: var(--r-lg);
    padding: 0;
    max-width: min(640px, calc(100vw - 32px));
    box-shadow: var(--shadow-md);
}
.ref-modal::backdrop { background: rgba(15, 23, 42, 0.55); }
.ref-modal__inner { padding: 24px; }
.ref-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.ref-modal__head h2 { margin: 0; font-size: 22px; }
.ref-modal__lead { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.ref-modal .steps { margin-top: 0; }
.ref-modal .steps li { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.ref-modal .steps li:first-child { border-top: 0; padding-top: 4px; }
.ref-modal .steps strong { display: block; font-size: 15px; margin-bottom: 2px; }
.ref-modal .steps span { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* Sample bill mockup — a simplified DISCO bill with colour-coded
   callouts on the three fields the checker needs. */
.ref-bill {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 18px;
}
.ref-bill__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--ink);
    color: #fff;
}
.ref-bill__head strong { font-size: 15px; letter-spacing: -0.01em; }
.ref-bill__head span { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #a7f3d0; }
.ref-bill__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.ref-bill__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ref-bill__field {
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--bg-body);
}
.ref-bill__field small {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 3px;
}
.ref-bill__field strong {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    font-size: 16px;
    word-break: break-all;
}
.ref-bill__field span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
/* Colour-coded callouts: 1 emerald, 2 amber, 3 sky. */
.ref-bill__field--hot-1 { border: 2px solid var(--primary); background: var(--primary-light); }
.ref-bill__field--hot-2 { border: 2px solid var(--accent); background: #fffbeb; }
.ref-bill__field--hot-3 { border: 2px solid #0284c7; background: #f0f9ff; }
.ref-callout {
    position: absolute;
    top: -11px;
    right: 10px;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.ref-callout--1 { background: var(--primary); }
.ref-callout--2 { background: var(--accent); }
.ref-callout--3 { background: #0284c7; }
.ref-legend { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ref-legend li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.ref-legend li strong { color: var(--ink); }
.ref-legend .ref-callout { position: static; flex: 0 0 22px; margin-top: 1px; }

/* ==========================================================================
   Responsive — breakpoints: 1440/1366 (base), 1080, 960, 800, 768, 640, 480
   ========================================================================== */
@media (max-width: 1080px) {
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand-block { max-width: 68ch; }
    .footer-grid { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .primary-nav { display: none; }
    .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header, .site-header__inner { height: var(--header-h-mobile); }
    .bill-tool__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "company" "companyHint" "number" "meta" "action";
        row-gap: 14px;
    }
    .bill-tool__action-label { display: none; }
    .bill-tool__action { width: 100%; }
    .bill-submit { width: 100%; }
    .tool-grid { grid-template-columns: 1fr; gap: 24px; }
    .tool-card { min-height: 0; }
    .disco-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .trust-strip__cell:nth-child(3) { padding-left: 0; border-left: 0; }
    .faq-layout { grid-template-columns: 1fr; gap: 20px; }
    .home-stories { grid-template-columns: 1fr; gap: 40px; }
    .charges-list { grid-template-columns: 1fr; }
    .result-stats, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-layout { grid-template-columns: 1fr; gap: 24px; }
    .legal-layout { grid-template-columns: 1fr; gap: 24px; }
    .legal-rail { position: static; }
    .legal-nav { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
}

@media (max-width: 800px) {
    .card-grid { grid-template-columns: 1fr; }
    .strip-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding: 10px 0; }
    .page-card { padding: 22px 18px; }
    .bill-tool { padding: 28px 22px; }
    .home-hero { padding: 40px 0 0; }
    .result-hero { padding: 24px 20px; }
    .result-pay { gap: 20px; }
}

@media (min-width: 768px) and (max-width: 960px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-col__title--desktop { display: none; }
    .footer-col__trigger { display: flex; }
    .footer-col__panel { display: none; padding: 4px 0 10px; }
    .footer-col__panel.is-open { display: block; }
    .footer-brand-block { margin-bottom: 0; }
}

@media (max-width: 640px) {
    .trust-strip__grid { grid-template-columns: 1fr 1fr; }
    .result-stats, .stats { grid-template-columns: 1fr; }
    .city-list { grid-template-columns: 1fr; }
    .brand small { display: none; }
    .seo-link-list { grid-template-columns: 1fr; }
    .page-intro { padding-top: 32px; }
    .result-pay { flex-direction: column; gap: 18px; }
    .disco-hub__grid { grid-template-columns: 1fr; }
    .segmented { width: 100%; }
    .pitc-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
    .section-head--split { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    :root { --section: 48px; }
    .home-hero { padding-top: 32px; }
    .bill-tool { padding: 24px 18px; }
    .bill-field { margin-bottom: 22px; }
    .bill-tool__head p { max-width: none; }
    .hero-ctas .btn { width: 100%; }
    .coverage-grid { grid-template-columns: 1fr; }
    .ref-bill__row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Print + reduced motion
   ========================================================================== */
@media print {
    .site-header, .site-footer, .admin-strip, .back-to-top, .result-bar .btn, .hero-ctas { display: none !important; }
    body { background: #fff; }
    .result-hero { box-shadow: none; }
    .bill-shell { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
