/* PropertyGifting.com — shared styles: tokens, shell, reading layout.
   Colours and scale follow reference/approved-visual-mockup.pdf. */

@font-face { font-family: "Archivo Black"; src: url("/assets/fonts/archivo-black-regular.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

:root {
  --paper: #fbfcf9;
  --white: #ffffff;
  --ink: #11140f;
  --muted: #474c45;
  --line: #d9dad3;
  --turquoise: #a9e4e0;
  --mint: #d9f3ee;
  --forest: #0c2d25;
  --lime: #aaee65;
  --focus: #0c2d25;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 5.5vw, 6.25rem);
  --radius: 1.75rem;
  --measure: 44rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--text);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; display: block; }
main { flex: 1; }
main:focus { outline: none; }
[id] { scroll-margin-top: 5.5rem; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(100rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }
/* Display headings: the supplied typography.css values (Archivo Black 400, -0.06em, 0.91). */
h1, .display { font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.06em; line-height: 0.91; }
h2 { font-family: var(--text); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-family: var(--text); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; font-size: 1.2rem; }
p, ul, ol { margin: 0; }
.eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--muted); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.85rem 1.6rem;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--white);
  font: 700 1rem/1.2 var(--text); text-decoration: none; text-align: center; cursor: pointer; }
.button:hover { background: var(--forest); border-color: var(--forest); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.button-small { min-height: 2.75rem; padding: 0.55rem 1.15rem; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 20; padding: 0.6rem 1rem; background: var(--ink); color: var(--white); border-radius: 0 0 0.5rem 0.5rem; }
.skip-link:focus { top: 0; }
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; margin-right: auto; min-width: 0; }
/* The logo is the mascot plus the wordmark (about 6:1). It scales with the screen so it always fits beside the menu button on a phone. */
.wordmark img { height: clamp(1.9rem, 9.5vw, 2.75rem); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.site-nav { display: flex; gap: 1.75rem; font-size: 0.95rem; font-weight: 600; }
.site-nav a, .site-menu nav a:not(.button) { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-menu { display: none; }

@media (max-width: 60rem) {
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-menu summary { list-style: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; cursor: pointer; border-radius: 0.5rem; }
  .site-menu summary::-webkit-details-marker { display: none; }
  .site-menu summary span, .site-menu summary span::before { display: block; width: 1.6rem; height: 2px; background: var(--ink); }
  .site-menu summary span { position: relative; top: -4px; }
  .site-menu summary span::before { content: ""; position: absolute; top: 8px; }
  .site-menu[open] summary span { top: 0; transform: rotate(45deg); }
  .site-menu[open] summary span::before { top: 0; transform: rotate(-90deg); }
  .site-menu nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 0.25rem; padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 4.5rem); overflow: auto; }
  .site-menu nav a:not(.button) { padding: 0.85rem 0; font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid var(--line); }
  .site-menu nav .button { margin-top: 1rem; }
}

/* ---------- Inner pages: title band, text column and side panel ---------- */
.article { display: grid; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(1rem, 2.5vw, 2.5rem) clamp(3rem, 8vw, 7rem); }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(0.9rem, 1.4vw, 1.25rem); justify-items: start; padding: clamp(1.75rem, 4vw, 3.75rem) clamp(1.25rem, 6vw, 6.75rem);
  border-radius: clamp(1.75rem, 5vw, 5rem); }
.page-hero-mint { background: var(--mint); }
.page-hero-turquoise { background: var(--turquoise); }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); max-width: 18em; }
.page-hero .lead { max-width: 44rem; color: #333831; }
.page-hero > p:not(.eyebrow):not(.lead):not(.actions) { max-width: 44rem; }
.page-hero-center { justify-items: center; text-align: center; }
.page-hero-center h1 { max-width: 14em; }

.article-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.article-main { display: grid; gap: clamp(2.25rem, 4vw, 3.75rem); min-width: 0; }
.article-section { display: grid; gap: 1.1rem; font-size: clamp(1.0625rem, 1.2vw, 1.2rem); }
.article-section > * { max-width: 48rem; }
.article-section > .table-wrap, .article-section > .island, .article-section > noscript { max-width: none; }
.article-section > h2 { padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); max-width: none; }
.article-section:first-child > h2 { padding-top: 0; border-top: 0; }
.article-section > h2:focus, .card > h2:focus { outline: none; }
.article-section h3 { margin-top: 0.6rem; }
.article-section ul, .card ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.article-section li::marker, .card li::marker { color: var(--forest); }

/* The list scrolls inside the panel on short screens; the button below it always stays in view. */
.article-aside { position: sticky; top: 6.5rem; max-height: calc(100vh - 7.5rem); max-height: calc(100dvh - 7.5rem); display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.25rem, 2vw, 2rem); background: var(--white);
  border: 1px solid var(--line); border-radius: 1.75rem; }
.article-aside nav { display: grid; gap: 1rem; min-height: 0; overflow-y: auto; }
.article-aside .button { flex: none; }
.article-aside ul { list-style: none; margin: 0; padding: 0; display: grid; }
.article-aside li + li { border-top: 1px solid var(--line); }
.article-aside li a { display: block; padding: 0.7rem 0; font-size: 0.95rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.article-aside li a:hover { text-decoration: underline; }
.page-hero-action { display: none; }
@media (max-width: 75rem) {
  .article-body { grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
  .page-hero-action { display: flex; }
}

/* Cards: checker page sections, contact page */
.card-grid { display: grid; gap: clamp(1rem, 2vw, 2rem); align-items: stretch; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(64rem + 2 * var(--gutter)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: grid; gap: 1rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.75rem); background: var(--white); border: 1px solid var(--line); border-radius: 1.75rem; }
.card-mint { background: var(--mint); border-color: transparent; }
.card-forest { background: var(--forest); border-color: transparent; color: var(--white); }
.card-forest :focus-visible { outline-color: var(--lime); }
.contact-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.contact-way { font-size: clamp(1.3rem, 2.4vw, 2.4rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.2; }
.contact-way strong { display: block; margin-bottom: 0.5rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.card-forest .contact-way strong { color: var(--lime); }
.page-tool { display: grid; justify-items: center; }
.page-tool > .island, .page-tool > noscript { width: 100%; max-width: 46rem; }
@media (max-width: 62rem) { .card-grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 48rem) { .card-grid-2, .contact-ways { grid-template-columns: minmax(0, 1fr); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--mint); font-weight: 700; }
.table-money td { white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
/* Phones: a table with several columns becomes one labelled block per row, so no amount is hidden off-screen. */
@media (max-width: 40rem) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-stack, .table-stack tbody { display: block; }
  .table-stack tr { display: block; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack tbody th, .table-stack td { display: block; padding: 0; border: 0; }
  .table-stack tbody th { margin-bottom: 0.45rem; font-weight: 700; }
  .table-stack td { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0.1rem 1rem; padding-block: 0.25rem; text-align: right; white-space: normal; }
  .table-stack td::before { content: attr(data-label); content: attr(data-label) / ""; flex: 0 1 auto; margin-right: auto; text-align: left; color: var(--muted); font-size: 0.9rem; white-space: normal; }
  .table-stack.table-money td, .table-stack td.money { white-space: nowrap; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #e7efe9; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; font-size: 0.95rem; }
.site-footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.site-footer-grid > div { display: grid; gap: 0.85rem; max-width: 34rem; align-content: start; }
.site-footer-brand img { height: 2.75rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.site-footer nav { display: grid; gap: 0.65rem; align-content: start; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--lime); }
.site-footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.18); color: #c3d2c9; font-size: 0.875rem; }
@media (max-width: 48rem) { .site-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .site-footer-grid > div { grid-column: 1 / -1; } }

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

/* ---------- Interactive tools: route checker and fee calculator ---------- */
.island-fallback { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.tool { scroll-margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.tool form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.tool fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.9rem; }
.tool legend { padding: 0; }
.tool-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.06em;
  line-height: 0.95; font-size: clamp(1.75rem, 7.4vw, 2.6rem); text-wrap: balance; }
.tool-title:focus { outline: none; }
.tool-help, .tool-note { color: var(--muted); font-size: 0.95rem; }
.tool-note:empty, .tool-error:empty { display: none; }
.tool-error { color: #9b1c1c; font-weight: 700; }
.tool-error::before { content: "! "; }
.tool-progress { display: grid; gap: 0.6rem; }
.tool-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
.tool-bars span { height: 4px; border-radius: 2px; background: var(--line); }
.tool-bars span.on { background: var(--forest); }
.tool-nav { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tool-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.link-button { background: none; border: 0; padding: 0.6rem 0; min-height: 2.75rem; font: 600 0.95rem/1.2 var(--text); color: var(--ink);
  text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.button:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
.choice { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; padding: 0.9rem 1.25rem; border: 2px solid var(--line);
  border-radius: 1.1rem; background: var(--white); font-weight: 700; cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-label { flex: 1; }
.choice-mark { flex: none; width: 1.5rem; height: 1.5rem; border: 2px solid #8b9088; border-radius: 50%; display: grid; place-items: center; }
.choice:has(input[type="checkbox"]) .choice-mark { border-radius: 0.4rem; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { background: var(--lime); border-color: var(--ink); }
.choice:has(input:checked) .choice-mark { background: var(--ink); border-color: var(--ink); }
.choice:has(input:checked) .choice-mark::after { content: ""; width: 0.38rem; height: 0.7rem; margin-top: -0.15rem;
  border: solid var(--lime); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

.tool-reasons { display: grid; gap: 0.5rem; }
.tool-reasons ul, .calculator-result ul { padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.tool-price { padding: 1.1rem 1.25rem; background: var(--mint); border-radius: 1rem; font-weight: 600; }
.tool-price-rows { display: grid; gap: 0.9rem; padding: clamp(1.1rem, 2.5vw, 1.75rem); border-radius: 1.25rem; text-align: left; }
.tool-price-rows > p:first-child { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1rem; }
.tool-price-label, .tool-price-rest { font-size: 0.95rem; font-weight: 500; color: #333831; }
.tool-price-figure { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.tool-price-rest { flex-basis: 100%; }
.tool-price-note { padding-top: 0.9rem; border-top: 1px solid rgb(18 21 15 / 0.14); font-size: 0.9rem; font-weight: 500; color: #333831; }
.tool-result-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: center; text-align: center; }
.tool-badge { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.tool-badge::after { content: "\2192" / ""; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.tool-result .actions { justify-content: center; }
.tool-result .tool-links { justify-content: center; }
.tool-check { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; }
.tool-check input { flex: none; width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--forest); }

.field { display: grid; gap: 0.45rem; }
.field > label:not(.tool-check), .calculator-family legend { font-weight: 700; }
.field input[type="text"], .field select { width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem; border: 2px solid #8b9088; border-radius: 0.8rem;
  background: var(--white); color: var(--ink); font: 500 1rem/1.3 var(--text); }
.field [aria-invalid="true"] { border-color: #9b1c1c; }
/* The family inputs are one plain group: its legend reads as a small heading, with no box inside the box. */
.calculator-family { padding-top: 1.25rem !important; border-top: 1px solid rgb(18 21 15 / 0.16) !important; }
.calculator-family legend { float: left; width: 100%; padding: 0; margin: 0 0 0.25rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest); }
.calculator-family legend + * { clear: both; }
.calculator-family:disabled { opacity: 0.55; }
.calculator-result > *, .calculator-review > * { min-width: 0; }
.calculator-result, .calculator-review { display: grid; gap: 1rem; padding: 1.25rem; background: var(--mint); border-radius: 1rem; }
.calculator-subtotal { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ================= Homepage (reference/approved-visual-mockup.pdf) ================= */
.home { display: grid; gap: clamp(4rem, 10vw, 11rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.home-h2 { font-size: clamp(2.1rem, 5vw, 5.5rem); line-height: 0.95; }
.home-h2-small { font-size: clamp(1.9rem, 3.9vw, 4.4rem); }
.home-small { font-size: 0.95rem; color: var(--muted); }
.home-body-large { font-size: clamp(1.1rem, 1.55vw, 1.55rem); line-height: 1.5; color: #333831; }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.home-cta-center { justify-content: center; }
.home-cta .button { min-height: 3.75rem; padding-inline: 2rem; font-size: 1.1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-block: 0.25rem; }
.link-arrow::after { content: "\2197"; content: "\2197" / ""; font-weight: 700; }
.link-arrow:hover { border-bottom-width: 3px; }
.button-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button-lime:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* 1. Hero */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 2vw, 2.5rem); align-items: center;
  padding-top: clamp(2.5rem, 7vw, 8rem); }
.home-hero-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.1rem, 1.8vw, 2rem); justify-items: start; }
.home-hero-text h1 { font: 800 clamp(0.78rem, 1vw, 1.05rem)/1.3 var(--text); letter-spacing: 0.16em; word-spacing: normal; font-stretch: normal; }
.home-campaign { font-size: clamp(3rem, 7vw, 8.2rem); line-height: 0.92; letter-spacing: -0.03em; }
.home-campaign span { display: block; }
/* Hero introduction: the supplied .body-copy values (16px on phones, 22px from 960px). */
.home-lead { font-size: 1rem; line-height: 1.47; color: #3e453d; max-width: 34em; }
@media (min-width: 60rem) { .home-lead { font-size: 1.375rem; line-height: 1.5; color: #343932; } }
.home-lead strong { color: var(--ink); }
.home-price { position: relative; padding-left: 1.6rem; color: var(--forest); font-size: clamp(1rem, 1.15vw, 1.2rem); }
.home-price::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--lime); border: 3px solid var(--forest); }
.home-hero-art { margin-right: calc(-1 * var(--gutter)); align-self: center; position: relative; }
.home-hero-art img { width: 100%; mix-blend-mode: multiply; }
.home-hero-caption { position: absolute; right: clamp(1rem, 6vw, 6rem); bottom: -1.25rem; max-width: 14.5rem; padding: 1.1rem 1.4rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 1.25rem; font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: -0.01em; box-shadow: 0 0.5rem 1.5rem rgb(17 20 15 / 0.06); }
.home-strip { border-block: 1px solid var(--line); padding: clamp(1.25rem, 2.5vw, 2.5rem) 0; padding-right: max(0px, calc(100% - 56rem)); font-size: clamp(1rem, 1.3vw, 1.3rem); color: var(--muted); max-width: none;
  margin-top: calc(-1 * clamp(2rem, 5vw, 6rem)); }

/* Rounded colour boxes */
.wrap-box { width: calc(100% - 2 * var(--gutter)); max-width: 100rem; margin-inline: auto; }
.home-box { border-radius: clamp(1.75rem, 5vw, 5rem); padding: clamp(2rem, 6.5vw, 7rem) clamp(1.25rem, 6vw, 6.75rem); display: grid; gap: clamp(1.75rem, 4vw, 4.5rem); }
.home-box-turquoise { background: var(--turquoise); }
.home-box-mint { background: var(--mint); }
.home-box-forest { background: var(--forest); color: var(--white); }

/* 2. Picker */
.home-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.75rem, 5vw, 6rem); align-items: center; }
.home-picks { display: grid; gap: 1.1rem; }
.home-pick { display: flex; align-items: center; gap: 1.25rem; min-height: 5.75rem; padding: 1.1rem clamp(1.1rem, 2.2vw, 2.5rem); background: var(--white);
  border: 2px solid transparent; border-radius: 1.75rem; text-decoration: none; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.home-pick > span:not(.home-pick-mark) { flex: 1; }
.home-pick strong { display: block; color: var(--ink); font-size: clamp(1.15rem, 1.5vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.25; }
.home-picks .home-cta { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid rgb(18 21 15 / 0.25); justify-content: space-between; }

/* 3. Rate */
.home-rate { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 6vw, 8rem); align-items: end; }
.home-rate-figure { font-size: clamp(4.4rem, 12.6vw, 15rem); line-height: 0.8; white-space: nowrap; color: #15372f; letter-spacing: -0.04em; }
.home-rate-text { display: grid; gap: clamp(1rem, 1.6vw, 1.75rem); justify-items: start; }

/* 4. Services */
.home-services { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.home-service-rows { border-top: 2px solid #5b605a; }
.home-service { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(13rem, 0.7fr); gap: 1.5rem clamp(1.5rem, 4vw, 5rem); align-items: center;
  padding-block: clamp(1.75rem, 4.5vw, 5.5rem); border-bottom: 1px solid var(--line); }
.home-service-name { display: grid; gap: 0.75rem; max-width: 36rem; }
.home-service-name h3 { font-size: clamp(1.4rem, 2vw, 2.1rem); letter-spacing: -0.035em; }
.home-service-price { display: grid; gap: 0.35rem; }
.home-service-price .display { font-size: clamp(2rem, 3.5vw, 4rem); line-height: 1; white-space: nowrap; }
.home-service-price small { font: 700 clamp(0.9rem, 1vw, 1.1rem)/1 var(--text); letter-spacing: 0; word-spacing: normal; color: var(--muted); margin-left: 0.4em; }
.home-service-price p:last-child { color: var(--muted); font-size: 1rem; }
.home-service .home-cta { justify-content: flex-end; flex-direction: column; align-items: flex-end; gap: 0.9rem; }

/* 5. Steps */
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4.5vw, 5.25rem); }
.home-steps li { border-top: 2px solid var(--ink); padding-top: 1.75rem; display: grid; gap: 0.9rem; align-content: start; color: var(--muted); }
.home-steps h3 { color: var(--ink); font-size: clamp(1.5rem, 2.2vw, 2.4rem); letter-spacing: -0.035em; }
.home-step-number { display: block; margin-bottom: 1.4rem; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.12em; color: var(--forest); }

/* 6. Complications */
.home-box-forest { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: stretch; position: relative; overflow: hidden; }
.home-forest-text { display: grid; gap: clamp(1.75rem, 3.5vw, 3.5rem); position: relative; z-index: 1; align-content: center; }
.home-complications { display: grid; }
.home-complications p { padding-block: 1.35rem; border-top: 1px solid rgb(255 255 255 / 0.2); color: #d5e2da; }
.home-complications p:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.2); }
.home-complications strong { display: block; color: var(--white); font-size: 1.15rem; margin-bottom: 0.25rem; }
.home-complications a { color: var(--lime); font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-complications a::after { content: " \2192"; content: " \2192" / ""; }
.home-complications a:hover { text-decoration: underline; }
.home-box-forest :focus-visible { outline-color: var(--lime); }
/* Desktop: the photograph fills the panel (centred cover crop) under the supplied left-to-right gradient. */
.home-forest-art { position: absolute; inset: 0; overflow: hidden; }
.home-forest-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-forest-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 40, 32, 0.98) 0%, rgba(9, 40, 32, 0.93) 44%, rgba(9, 40, 32, 0.12) 75%, rgba(9, 40, 32, 0) 100%); }

/* 7 + 8. Documents and person */
.home-person { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.75rem, 6vw, 8rem); align-items: center; }
/* Documents: the heading runs the full width, then the two paragraphs sit side by side as ruled rows (mockup section 7). */
.home-documents { display: grid; gap: clamp(1.75rem, 4vw, 4rem); }
.home-documents .home-h2 { max-width: 16em; }
.home-documents-text { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.75rem, 6vw, 8rem); }
.home-documents-text > p:not(.home-cta) { padding-top: 1.5rem; border-top: 2px solid var(--ink); font-size: clamp(1.1rem, 1.55vw, 1.55rem); line-height: 1.5; color: #333831; }
.home-documents-text > .home-cta { grid-column: 1 / -1; }
.home-person { border-block: 1px solid #5b605a; padding-block: clamp(2.5rem, 8vw, 9rem); }
.home-documents-text, .home-person-text { display: grid; gap: 1.5rem; justify-items: start; }
.home-points { display: grid; gap: 1.4rem; counter-reset: point; font-weight: 700; font-size: clamp(1.1rem, 1.4vw, 1.4rem); letter-spacing: -0.015em; }
.home-points { list-style: none; margin: 0; padding: 0; }
.home-points li { counter-increment: point; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.1rem; align-items: center; }
.home-points li::before { content: counter(point); width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 0.95rem; font-weight: 800; }

/* 9. Questions */
.home-questions { display: grid; gap: clamp(1.75rem, 4vw, 4rem); }
.home-faq { border-top: 1px solid var(--line); }
.home-faq details { border-bottom: 1px solid var(--line); }
.home-faq summary { list-style: none; display: flex; align-items: center; gap: 1.5rem; padding-block: clamp(1.4rem, 3vw, 2.75rem); cursor: pointer; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary h3 { flex: 1; font-size: clamp(1.15rem, 1.7vw, 1.75rem); letter-spacing: -0.03em; }
.home-faq-icon { flex: none; position: relative; width: 1.4rem; height: 1.4rem; }
.home-faq-icon::before, .home-faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: var(--ink); }
.home-faq-icon::after { transform: rotate(90deg); transition: transform 0.2s; }
.home-faq details[open] .home-faq-icon::after { transform: rotate(0deg); }
.home-faq-answer { padding-bottom: clamp(1.4rem, 3vw, 2.75rem); max-width: 52rem; color: #333831; font-size: 1.1rem; display: grid; gap: 1rem; }

/* 10. Final call to action */
.home-ready { text-align: center; justify-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); padding-block: clamp(3rem, 9vw, 10rem); }
.home-ready .home-h2 { font-size: clamp(2.2rem, 6.2vw, 7rem); max-width: 14em; }
.home-ready .home-body-large { max-width: 34em; color: var(--ink); }

/* Tablet and phone */
@media (max-width: 62rem) {
  .home-hero, .home-split, .home-rate, .home-documents-text, .home-person, .home-box-forest { grid-template-columns: minmax(0, 1fr); }
  /* Phone order from the mockup: headline, image, then the text and button.
     The text wrapper dissolves so the image can sit between its children. */
  .home-hero { display: flex; flex-direction: column; gap: clamp(1.1rem, 3vw, 1.75rem); align-items: flex-start; }
  .home-hero-text { display: contents; }
  .home-hero-text > :not(h1, .home-campaign) { order: 2; }
  .home-hero-art { order: 1; margin: 0; align-self: stretch; }
  .home-hero-caption { display: none; }
  .home-campaign { font-size: clamp(2.9rem, 13.5vw, 6.5rem); }
  .home-rate-figure { font-size: clamp(4rem, 22.5vw, 12rem); }
  .home-service { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .home-service .home-cta { flex-direction: row; justify-content: flex-start; align-items: center; }
  .home-steps { grid-template-columns: minmax(0, 1fr); }
  /* Phones and tablets: the full photograph sits under the text, with no gradient. */
  .home-forest-art { position: relative; inset: auto; margin: 0 calc(-1 * clamp(1.25rem, 6vw, 6.75rem)) calc(-1 * clamp(2rem, 6.5vw, 7rem)); }
  .home-forest-art img { height: auto; object-fit: contain; }
  .home-forest-art::after { content: none; }
  .home-complications a { white-space: normal; }
}
@media (max-width: 30rem) {
  .home-cta .button { width: 100%; }
  .home-hero .home-cta { justify-content: center; align-self: stretch; }
  .home-hero .home-small { text-align: center; align-self: stretch; }
  .home-pick { min-height: 4.75rem; border-radius: 1.25rem; }
}

/* Checker details to match the mockup: progress bars sit above the "Question n of 5" label. */
.tool-bars { order: -1; }
.tool legend { margin-bottom: 0.6rem; }

/* ---------- Round 2: start screen, calculator box, picker, underline ---------- */
.site-nav a, .site-footer a, .article-aside a { text-decoration-skip-ink: none; }
.tool-welcome { justify-items: center; text-align: center; gap: 1.75rem; }
.tool-welcome img { width: 100%; max-width: 20rem; border-radius: 1rem; }
.tool.calculator { background: var(--mint); border-color: transparent; margin-top: 1rem; }
.tool.calculator .calculator-result, .tool.calculator .calculator-review { background: var(--white); }

/* Recipient picker (homepage turquoise box) */
.home-picks fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.1rem; }
.home-pick { position: relative; cursor: pointer; }
.home-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.home-pick-mark { flex: none; width: 2.1rem; height: 2.1rem; border: 2px solid #8b9088; border-radius: 50%; display: grid; place-items: center; }
.home-pick:hover { border-color: var(--ink); }
.home-pick:has(input:checked) { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.home-pick:has(input:checked) .home-pick-mark { background: var(--ink); border-color: var(--ink); }
.home-pick:has(input:checked) .home-pick-mark::after { content: ""; width: 0.45rem; height: 0.85rem; margin-top: -0.2rem; border: solid var(--lime); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.home-pick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.home-pick-group { display: grid; gap: 0.6rem; }
.home-pick-options { display: flex !important; flex-wrap: wrap; gap: 0.6rem !important; padding: 0.25rem 0 0.5rem !important; }
.home-pick-options .tool-error { flex-basis: 100%; }
.home-pick-options legend { padding: 0 0 0.6rem; font-size: 0.95rem; font-weight: 600; }
.home-pick-option { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.1rem; background: var(--white);
  border: 2px solid transparent; border-radius: 999px; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.home-pick-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.home-pick-option:hover { border-color: var(--ink); }
.home-pick-option:has(input:checked) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.home-pick-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.home-box-turquoise .tool { border-color: transparent; }

/* ---------- Round 3: audit fixes ---------- */
/* Fallback text for a tool: hidden unless JavaScript is off (noscript style) or the script failed (.no-app). */
.island-fallback { display: none; }
.no-app .island { display: none; }
.no-app .island-fallback { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header: mockup proportions on wide screens; the route button stays visible down to small phones. */
@media (min-width: 75rem) {
  .site-header-row { min-height: 5.5rem; }
  .wordmark img { height: 3.25rem; }
  .site-header-cta { min-height: 3.1rem; padding-inline: 1.5rem; font-size: 1rem; }
}
@media (max-width: 36rem) { .site-header-cta { display: none; } }

/* Selects drawn like the other fields, with one chevron. */
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%2312150f' stroke-width='2'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.contact-note { grid-column: 1 / -1; color: var(--muted); max-width: 48rem; }

/* Checker page: a compact title so the tool is on the first screen (mockup page 2). */
.page-check-eligibility .article { gap: clamp(1.25rem, 3vw, 2.5rem); }
.page-check-eligibility .page-hero { padding-block: clamp(1.1rem, 2vw, 1.75rem); gap: 0.5rem; }
.page-check-eligibility .tool-welcome { gap: 1.25rem; padding-block: 1.5rem; }
.page-check-eligibility .tool-welcome img { max-width: 16rem; }
.page-check-eligibility .page-hero h1 { font-size: clamp(1.45rem, 3vw, 2.5rem); }
.page-check-eligibility .page-hero .lead { font-size: 1.05rem; }
.page-check-eligibility .page-hero > p:not(.eyebrow):not(.lead) { font-size: 0.95rem; }

/* Homepage picker once the questions run in place: one question on screen, not two. */
.home-split.is-started { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.home-split.is-started > .home-h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-split.is-started > [data-island] { width: 100%; max-width: 46rem; }

/* Mid-size screens */
@media (min-width: 62.0625rem) and (max-width: 80rem) {
  .home-service { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: clamp(1.25rem, 3vw, 3rem); }
  .home-service .button { white-space: nowrap; }
}
/* Very narrow windows (a phone at 200% zoom): the header must still fit. */
@media (max-width: 17.5rem) {
  .site-header-row { gap: 0.5rem; }
  .wordmark img { height: 1.5rem; }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-way { font-size: 1.05rem; overflow-wrap: anywhere; }
  .page-hero h1, .page-hero .eyebrow, .home-campaign { overflow-wrap: anywhere; letter-spacing: 0; }
  .page-hero > *, .home-hero > *, .home-hero-text > * { min-width: 0; max-width: 100%; }
  .page-hero h1 { font-size: 1.25rem; }
  .home-campaign { font-size: 2rem; }
  .home-rate-figure { font-size: 2.6rem; }
  .button { padding-inline: 0.9rem; }
}
.no-app .home-pick-mark { display: none; }
.tool-error { scroll-margin: 1rem 0 1rem; }
td.money { white-space: nowrap; }

/* Phones: full-width main buttons with the secondary link centred beneath (mockup page 3). */
@media (max-width: 40rem) {
  .tool-progress { display: flex; flex-direction: row; align-items: center; gap: 1rem; }
  .tool-progress .tool-bars { flex: 1; gap: 0; order: 0; }
  .tool-progress .tool-bars span { border-radius: 0; height: 3px; }
  .tool-progress .eyebrow { white-space: nowrap; order: 1; }
  .page-tool .tool { padding: 0; background: none; border: 0; border-radius: 0; }
  .tool-nav { flex-direction: column; align-items: stretch; }
  .tool-nav .button, .tool .actions .button { width: 100%; }
  .tool-nav .link-button { align-self: center; }
  .tool .actions { flex-direction: column; }
  .tool-links { justify-content: center; }
  .tool-result-head { justify-items: start; text-align: left; }
  .tool-welcome img { max-width: 15rem; }
  table:not(.table-stack) th, table:not(.table-stack) td { padding-inline: 0.75rem; }
  table:not(.table-stack) td { overflow-wrap: anywhere; }
  .field select { padding: 0.7rem 2.1rem 0.7rem 0.8rem; background-position: right 0.7rem center; font-size: 0.95rem; }
  .tool.calculator { padding: 1.25rem; }
}
@media (max-width: 30rem) {
  h2 { font-size: 1.3rem; }
  .home-h2, .tool-title { font-size: clamp(1.6rem, 8.6vw, 2.1rem); }
  .page-hero h1, .page-check-eligibility .page-hero h1 { font-size: clamp(1.45rem, 7.3vw, 2.2rem); }
  .page-hero { padding-inline: clamp(1rem, 5vw, 1.5rem); }
  .page-about .page-hero h1 { font-size: clamp(1.1rem, 5.8vw, 2.2rem); }
  .home-box-turquoise .tool { padding: 1rem 0.9rem; }
  .home-box-turquoise .tool-price-rows, .calculator-result { padding: 0.9rem; }
  .tool-price-figure { font-size: 1.35rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .button { width: 100%; }
  .page-hero .actions, .home-cta { justify-self: stretch; width: 100%; }
  .home-cta { justify-content: center; }
  .home-picks .home-cta { justify-content: center; }
}

/* Windows high-contrast mode: icons drawn with background colour need a system colour. */
@media (forced-colors: active) {
  .site-menu summary span, .site-menu summary span::before, .home-faq-icon::before, .home-faq-icon::after, .tool-bars span.on { background: CanvasText; }
  .choice:has(input:checked), .home-pick:has(input:checked), .home-pick-option:has(input:checked) { outline: 3px solid Highlight; }
  .field select { appearance: auto; -webkit-appearance: auto; background-image: none; padding-right: 1rem; }
}
