/* MeasEarth website styles.
   Layout concept: a plan of survey. Deep-navy "title block" bands (header, heroes, footer; the quote
   band and "How it works" went light on 2026-11-19 for readers who find large dark areas hard),
   cool paper for reading, mono annotations like bearings on a plan, and one stake-orange
   colour reserved for the action we want: ask for a quote. */
:root {
  --ink: #0a1c2a;          /* navy of the dark bands */
  --ink-2: #11293a;        /* raised surface on navy */
  --ink-line: #24425a;     /* hairlines on navy */
  --paper: #f4f7f9;        /* page ground */
  --card: #ffffff;
  --line: #d6dfe6;         /* hairlines on paper */
  --text: #14242f;
  --muted: #52687a;
  --on-ink: #e9f1f6;
  --on-ink-muted: #9db4c4;
  --brand: #009cde;        /* logo blue */
  --brand-deep: #0a6f9e;   /* logo blue, readable as text on paper */
  --stake: #f2561d;        /* survey-stake orange: calls to action only */
  --stake-deep: #d1410c;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-data: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 1180px;
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:hover { color: var(--stake-deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; background: var(--card); color: var(--text); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Mono annotation, used the way a plan labels a line */
.note {
  font: 500 0.78rem/1.3 var(--font-data);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.band-ink .note { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font: 700 1rem/1.1 var(--font-display); font-stretch: 108%;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
/* 2026-12-04: white on --stake is about 3.4:1, under the 4.5:1 WCAG asks for 16px text; --stake-deep is about 4.7:1. */
.btn-stake { background: var(--stake-deep); color: #fff; }
.btn-stake:hover { background: #a9330a; color: #fff; }
.btn-ghost { border-color: var(--ink-line); color: var(--on-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--on-ink); color: #fff; }
.btn-line { border-color: var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { flex: none; display: block; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--on-ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); color: #fff; }
.header-phone { color: #fff; text-decoration: none; font: 600 1rem var(--font-data); white-space: nowrap; }
.header-phone:hover { color: var(--brand); }
.site-header .btn { min-height: 44px; padding: 8px 18px; font-size: 0.95rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--ink-line); color: var(--on-ink); border-radius: var(--radius); min-height: 44px; padding: 0 14px; font: 600 0.95rem var(--font-body); }
@media (max-width: 980px) {
  .header-phone { display: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .site-header .btn { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--ink-line);
    padding: 6px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 1.05rem; }
}

/* Dark bands share a faint survey grid */
.band-ink {
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid, rgba(157, 180, 196, .055)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid, rgba(157, 180, 196, .055)) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--on-ink);
}
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a:not(.btn) { color: var(--on-ink); }
.band-ink a:not(.btn):hover { color: var(--brand); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 72px 80px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-copy .lede { font-size: 1.18rem; color: var(--on-ink); max-width: 34em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 8px; font-size: 0.93rem; color: var(--on-ink-muted); }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--brand); border-radius: 50%; flex: none; }
.hero-art { position: relative; min-width: 0; }
.hero-art .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; }
.hero-art .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { margin-top: 10px; font: 400 0.74rem var(--font-data); color: var(--on-ink-muted); letter-spacing: .04em; }
.plan-card {
  position: absolute; left: -40px; bottom: -36px; width: min(64%, 370px); display: block; text-decoration: none;
  background: #fdfefe; color: #14242f; border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42); padding: 10px 10px 8px;
}
.plan-card img { width: 100%; height: auto; display: block; }
.form-fallback { margin-top: 12px; color: var(--text); }
.form-fallback a { color: inherit; font-weight: 600; text-decoration: underline; }
.plan-card .cap { display: block; font: 500 0.6rem var(--font-data); letter-spacing: .08em; text-transform: uppercase; color: #52687a; padding-top: 6px; border-top: 1px solid #d6dfe6; margin-top: 4px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 72px; }
  .plan-card { left: 12px; bottom: -30px; width: min(72%, 320px); }
}

/* Plan drawing animation: lines draw once on load, and are fully drawn at rest */
.plan .course { stroke-dasharray: 1; stroke-dashoffset: 0; }
.plan .lbl, .plan .mon { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .plan .course { animation: draw .9s ease-out both; animation-delay: calc(var(--i) * .32s + .3s); }
  .plan .lbl, .plan .mon { animation: appear .4s ease-out both; animation-delay: calc(var(--i) * .32s + .9s); }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
}

/* Sections */
.section { padding-block: 84px; }
.section-tight { padding-block: 56px; }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.band-ink .section-head p { color: var(--on-ink-muted); }
.band-card { background: var(--card); border-block: 1px solid var(--line); }
@media (max-width: 700px) { .section { padding-block: 60px; } .section-head { margin-bottom: 32px; } }

/* "What are you doing?" chooser */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.needs a {
  display: grid; gap: 8px; align-content: start; padding: 26px 26px 28px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--card); color: var(--text); text-decoration: none;
  transition: background-color .15s ease;
}
.needs a:hover { background: #eaf6fc; }
.needs .q { font: 700 1.16rem/1.2 var(--font-display); font-stretch: 108%; }
.needs .a { color: var(--muted); font-size: 0.97rem; }
.needs .go { font: 600 0.84rem var(--font-data); color: var(--brand-deep); letter-spacing: .03em; margin-top: 6px; }
.needs a:hover .go { color: var(--stake-deep); }
@media (max-width: 900px) { .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .needs { grid-template-columns: 1fr; } }

/* Service list */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.services a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.services a h3 { transition: color .15s ease; }
.services a:hover h3 { color: var(--brand-deep); }
.services a p { grid-column: 1; color: var(--muted); font-size: 0.97rem; }
.services a .arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 500 1.3rem var(--font-data); color: var(--brand-deep); transition: transform .15s ease; }
.services a:hover .arrow { transform: translateX(4px); color: var(--stake-deep); }
.services.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 900px) { .services.three { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Process rail (src/process-rail.js, from the Annnimate starter pack). As the section scrolls past, a dot draws the
   line across the steps and each step lights up with its picture. The page is never pinned (data-anm-sticky="false").
   Without the script the steps, numbers and pictures all simply show. */
.prl_wrap { position: relative; width: 100%; height: var(--prl-track, auto); --prl-bead: 12px; }
.prl_stage { position: relative; width: 100%; }
.prl_rail { position: relative; width: 100%; }
.prl_svg { display: block; width: 100%; height: 24px; overflow: visible; }
.prl_svg_mobile { display: none; }
.prl_path, .prl_path_ghost { fill: none; stroke: var(--brand-deep); stroke-width: 2; stroke-linecap: round; }
.prl_path_ghost { stroke: var(--line); }
.prl_bead { position: absolute; top: 0; left: 0; z-index: 2; width: var(--prl-bead); height: var(--prl-bead); border-radius: 50%;
  background: var(--paper); border: 3px solid var(--brand-deep); box-sizing: border-box;
  box-shadow: 0 0 0 4px var(--paper); pointer-events: none; will-change: transform; }
.prl_steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; column-gap: 24px; margin: 22px 0 0; padding: 0; list-style: none; }
.prl_step { position: relative; min-width: 0; }
.prl_step_btn { display: block; cursor: pointer; }
.prl_step_num { display: block; height: 1em; font: 500 0.74rem/1 var(--font-data); letter-spacing: .1em; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.prl_col { position: relative; display: inline-block; overflow: clip; width: 0.64em; height: 1em; line-height: 1; vertical-align: baseline; }
.prl_col::before { content: '0'; visibility: hidden; }
.prl_strip { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }
.prl_glyph { display: block; height: 1em; line-height: 1; text-align: center; }
.prl_step_title { margin: 10px 0 0; font-size: 1.25rem; }
.prl_step_text { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }
.prl_step_media { display: block; width: 100%; margin-top: 16px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); transform-origin: 50% 0; }
.prl_step_media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) {
  .prl_rail { padding-left: 44px; }
  .prl_svg_desktop { display: none; }
  .prl_svg_mobile { display: block; position: absolute; top: 0; left: 0; width: 44px; height: 100%; }
  .prl_steps { grid-auto-flow: row; grid-auto-rows: auto; row-gap: 40px; column-gap: 0; margin-top: 0; }
  .prl_step_media { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .prl_bead, .prl_strip { will-change: auto; } }

/* Call-back band on the home page (Phil, 2026-11-21: make the call-back offer prominent) */
.callback-band { border-block: 1px solid var(--line); }
.cb-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cb-copy { display: grid; gap: 18px; }
.cb-copy p { color: var(--text); font-size: 1.08rem; max-width: 36em; }
.cb-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: cb; }
.cb-steps li { counter-increment: cb; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px;
  padding: 16px 0; border-top: 1px solid var(--line); }
.cb-steps li:last-child { border-bottom: 1px solid var(--line); }
.cb-steps li::before { content: counter(cb, decimal-leading-zero); grid-row: 1 / span 2; font: 600 1.05rem/1.6 var(--font-data); color: var(--brand-deep); } /* orange is kept for things you can click */
.cb-steps strong { font: 700 1.1rem/1.3 var(--font-display); }
.cb-steps span { color: var(--muted); }
@media (max-width: 900px) { .cb-grid { grid-template-columns: 1fr; gap: 28px; } }
.hero-callback { color: var(--on-ink-muted); font-size: 0.98rem; }
.hero-callback a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Sample plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.plans a { display: grid; gap: 4px; color: var(--text); text-decoration: none; }
.plans .sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.plans .sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.plans a:hover .sheet img { transform: scale(1.04); }
.plans .name { font-weight: 600; margin-top: 8px; }
.plans .kind { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }

/* Two-column feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split .photo { border-radius: var(--radius); overflow: hidden; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { display: grid; gap: 18px; min-width: 0; }
.split-copy > p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.reasons { display: grid; gap: 0; }
.reasons li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.reasons li:last-child { border-bottom: 1px solid var(--line); }
.reasons strong { font: 700 1.05rem var(--font-display); font-stretch: 108%; }
.reasons span { color: var(--muted); font-size: 0.97rem; }

/* Tick lists on service pages */
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border: 2px solid var(--brand-deep); border-radius: 50%; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.cols-2 > div { display: grid; gap: 20px; align-content: start; min-width: 0; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; gap: 44px; } }

/* Area list */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.areas h3 { font-size: 1.05rem; padding-bottom: 10px; border-bottom: 2px solid var(--brand); margin-bottom: 10px; }
.areas p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 860px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .areas { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 54em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 20px 0; font: 700 1.1rem/1.25 var(--font-display); font-stretch: 108%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-data); color: var(--brand-deep); text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary::after { transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--brand-deep); }
.faq { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0;
  transition: block-size .35s ease, opacity .35s ease, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .faq summary::after, .faq details::details-content { transition: none; } }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 62ch; }
.faq details p + p { margin-top: -10px; }

/* Quote band: light, for reading (Lee-Anne, 2026-11-19); the form sits on a white card with a blue rule */
.quote { background: #e9f2f7; border-top: 4px solid var(--brand); }
.quote .wrap, .quote-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.quote-copy { display: grid; gap: 20px; min-width: 0; }
.quote-copy > p { color: var(--text); font-size: 1.08rem; }
.quote-list { display: grid; gap: 10px; color: var(--text); font-size: 1rem; }
.quote-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.quote-list li::before { content: ""; width: 9px; height: 9px; margin-top: 8px; border: 2px solid var(--brand-deep); border-radius: 50%; }
.quote .wrap { grid-template-areas: "copy form" "call form"; row-gap: 28px; }
.quote .quote-copy { grid-area: copy; }
.quote .form-card { grid-area: form; }
.quote .call-card { grid-area: call; align-self: start; }
.quote-list a { color: var(--brand-deep); font-weight: 600; }
.call-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.call-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 1 / 1; }
.call-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.call-copy { display: grid; gap: 4px; min-width: 0; }
.call-q { font: 700 1.05rem var(--font-display); font-stretch: 108%; color: var(--text); }
.call-copy a.tel { font: 700 1.9rem/1.15 var(--font-data); color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.call-copy a.tel:hover { color: var(--stake-deep); }
.call-back { font-weight: 600; color: var(--brand-deep); }
.call-addr { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 420px) { .call-card { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; } .call-copy a.tel { font-size: 1.5rem; } }
.form-card { background: var(--card); color: var(--text); border-radius: var(--radius); padding: 28px; min-width: 0; min-height: 320px;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(10, 28, 42, .08); }
#callback .form-card { min-height: 0; }
.form-card h3 { margin-bottom: 6px; color: var(--text); }
.form-card .form-fallback a { color: var(--brand-deep); }

/* "How it works": light band (was navy) */
.band-steps { background: var(--paper); border-block: 1px solid var(--line); }

/* Where we work: map with two rings */
.area-map { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.area-map .map { margin: 0; }
.area-map .map img { width: 100%; height: auto; border-radius: var(--radius); }
.map-key { display: grid; gap: 22px; min-width: 0; }
.key { display: grid; gap: 18px; }
.key li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; }
.key strong { font: 700 1.08rem var(--font-display); font-stretch: 108%; }
.key li > span:not(.sw) { grid-column: 2; color: var(--muted); }
.sw { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; margin-top: 2px; }
.sw.near { background: rgba(0, 156, 222, .22); border: 3px solid #0a6f9e; }
.sw.far { background: rgba(0, 156, 222, .08); border: 2.5px dashed #0a6f9e; }
.map-note { font-weight: 600; }
.regions { font: 500 0.82rem/1.6 var(--font-data); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 860px) { .area-map { grid-template-columns: 1fr; gap: 28px; } }
.form-card .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.form-preview { display: grid; gap: 12px; }
.form-preview .f { height: 46px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-size: 0.93rem; }
.form-preview .f.tall { height: 96px; align-items: flex-start; padding-top: 12px; }
.form-preview .flag { font: 500 0.74rem var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--stake-deep); }
@media (max-width: 900px) {
  .quote .wrap, .quote-wrap { grid-template-columns: 1fr; gap: 36px; }
  .quote .wrap { grid-template-areas: "copy" "form" "call"; gap: 28px; }
  .form-card { padding: 22px; }
}

/* Page hero for inner pages */
.page-hero .wrap { display: grid; gap: 20px; padding-block: 56px 60px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18em; }
.page-hero .lede { font-size: 1.14rem; color: var(--on-ink); max-width: 40em; }
.crumbs { font: 500 0.78rem var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-muted); }
.crumbs a { color: var(--on-ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.prose { display: grid; gap: 18px; max-width: 46em; }
.prose h2 { font-size: 1.6rem; margin-top: 18px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose.guide { max-width: 44em; }
.prose.guide ul { gap: 12px; }
.prose.guide h2 { scroll-margin-top: 90px; }
.prose .flagged { border-left: 3px solid var(--stake); padding: 10px 16px; background: #fff3ee; font-size: 0.95rem; }

.figure-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure-plan img { width: 100%; }
.figure-cap { font: 400 0.76rem var(--font-data); color: var(--muted); letter-spacing: .03em; margin-top: 10px; }

/* Records page */
.records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.records ul { display: grid; }
.records li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.records li span { font: 500 0.9rem var(--font-data); color: var(--muted); font-variant-numeric: tabular-nums; }
.records h3 { margin-bottom: 14px; }
@media (max-width: 760px) { .records { grid-template-columns: 1fr; gap: 40px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--ink-line); font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.site-footer h2 { font: 500 0.78rem var(--font-data); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer .about { display: grid; gap: 16px; align-content: start; color: var(--on-ink-muted); }
.site-footer .about img.logo-f { height: 38px; width: auto; }
.site-footer .aols { background: #fff; border-radius: 4px; padding: 8px 10px; width: 190px; }
.legal { border-top: 1px solid var(--ink-line); }
.legal .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px 22px; color: var(--on-ink-muted); font-size: 0.85rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Phone: fixed call / quote bar */
.mobile-bar { display: none; }
@media (max-width: 820px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); border-top: 1px solid var(--ink-line);
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }
  .mobile-bar .btn { min-height: 48px; padding: 8px 10px; font-size: 0.98rem; }
  body { padding-bottom: 72px; }
}

/* Scroll reveal: content is visible without script; script only adds a short rise */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: .25; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .js .rise.in { opacity: 1; transform: none; }
}
