@font-face{font-family:"Manrope";font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/manrope-latin.woff2) format("woff2");}
/* Layout: one left-aligned 1160px column; a quote sheet sits beside the headline like a
   printed quote on a site table, and a tape-measure blade is the single bold element.
   Type: Archivo throughout, using its width axis: extra-condensed heavy for headings
   (site-hoarding lettering), normal width for reading. */
:root {
  --ground: #f3f5f4;   /* drawing-film white, cool */
  --paper: #ffffff;    /* the quote sheet */
  --board: #e4e9e7;    /* plasterboard grey panels */
  --ink: #10221d;      /* deep green-black ink, shared with the app */
  --steel: #4f5d57;    /* secondary text */
  --rule: #cbd3d0;     /* edges */
  --tape: #f2c21b;     /* tape-measure blade */
  --tape-ink: #1b1a12; /* ticks and figures printed on the blade */
  --brick: #a63a2c;    /* unverified / warnings */
  --bar: #187a64;      /* chart bars: brand green */
  --focus: #187a64;
  --brand: #136252;    /* SimplyMargin green: buttons and links */
  --brand-soft: #effaf6;
  --btn-fg: #ffffff;

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --narrow: 62%;  /* headline width */
  --semi: 78%;    /* sub-headings, figures */
  --measure: 64ch;
  --wrap: 1160px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c1714; --paper: #11201c; --board: #162a25; --ink: #e8ecef; --steel: #a3aebd;
    --rule: #29433c; --tape: #f2c21b; --tape-ink: #1b1a12; --brick: #e8806e; --bar: #4db295;
    --focus: #82ceb5; --btn-fg: #0c1714; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0c1714; --paper: #11201c; --board: #162a25; --ink: #e8ecef; --steel: #a3aebd;
  --rule: #29433c; --tape: #f2c21b; --tape-ink: #1b1a12; --brick: #e8806e; --bar: #4db295;
  --focus: #82ceb5; --btn-fg: #0c1714; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.55; font-stretch: 100%;
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { left: var(--gutter-l); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--board { background: var(--board); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }

/* ---- Type scale (16 · 18 · 21 · 24 · 36 · 48 · 72) */
h1, h2, h3 { font-weight: 800; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; }
h1 .line { display: block; }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.5rem; font-stretch: var(--semi); font-weight: 750; line-height: 1.1; }
p { margin: 0; }
.lead { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.muted { color: var(--steel); }
.small { font-size: 0.9375rem; line-height: 1.5; }
.figure { font-stretch: var(--semi); font-weight: 800; font-variant-numeric: tabular-nums; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--steel); max-width: 58ch; }

/* ---- Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; text-decoration: none; border-radius: 12px; cursor: pointer;
  background: var(--brand); color: #fff; border: 2px solid var(--brand);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; box-shadow: 0 6px 16px -8px rgba(19,98,82,.55);
}
.btn:active { transform: scale(.98); }
.btn:hover { text-decoration: none; filter: brightness(1.12); transform: translateY(-1px); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--line:hover { background: var(--board); filter: none; }
.textlink { font-weight: 700; }

/* ---- Header */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: var(--semi); font-size: 1.5rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 4px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--ink); color: var(--btn-fg); }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(84vw, 320px);
    background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 12px;
    box-shadow: 0 12px 32px rgba(10, 20, 40, 0.18); display: grid; gap: 4px;
  }
  .menu-panel a { display: block; padding: 12px 10px; text-decoration: none; font-weight: 600; border-radius: 4px; }
  .menu-panel a:hover { background: var(--board); }
  .menu-panel .btn { margin-top: 8px; }
}

/* ---- Hero */
.hero { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.hero-copy { display: grid; gap: 28px; padding-top: clamp(8px, 3vw, 40px); }
.hero-copy .small { color: var(--steel); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* The quote sheet */
.sheet {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(10, 20, 40, 0.35);
  padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 20px; min-width: 0;
}
.sheet-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; align-items: baseline; }
.sheet-title { font-weight: 750; font-stretch: var(--semi); font-size: 1.3125rem; line-height: 1.15; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; margin: 0; padding: 0; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 6px 14px; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.seg input:checked + label { background: var(--ink); color: var(--btn-fg); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -3px; }

.measure-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.measure-row label { font-weight: 700; font-size: 1rem; }
.measure-val { font-size: 2.75rem; line-height: 1; }
.measure-val small { font-size: 1.25rem; font-weight: 700; margin-left: 2px; }

/* Tape-measure blade: ticks are drawn on the blade, the range input sits on top.
   Ticks are inset by half the hook's width so every tick lines up with a stop. */
.tape { position: relative; height: 66px; --hook: 16px; }
.tape-blade {
  position: absolute; inset: 0 0 18px 0; border-radius: 3px; background: var(--tape);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  transform-origin: left center; animation: pull 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.tape-ticks { position: absolute; inset: 0 calc(var(--hook) / 2); }
.tape-ticks span { position: absolute; top: 0; width: 1.5px; height: 30%; background: var(--tape-ink); transform: translateX(-50%); }
.tape-ticks span.major { height: 58%; width: 2px; }
.tape-ticks b {
  position: absolute; top: 58%; transform: translateX(-50%); font-size: 0.8125rem; font-weight: 800;
  font-stretch: var(--semi); color: var(--tape-ink); line-height: 1.6; font-variant-numeric: tabular-nums;
}
.tape input[type="range"] {
  position: absolute; inset: 0 0 0 0; width: 100%; height: 48px; margin: 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: ew-resize;
}
.tape input[type="range"]::-webkit-slider-runnable-track { height: 48px; background: transparent; }
.tape input[type="range"]::-moz-range-track { height: 48px; background: transparent; }
.tape input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: var(--hook); height: 60px; margin-top: -2px;
  background: var(--ink); border: 2px solid var(--paper); border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.tape input[type="range"]::-moz-range-thumb {
  width: var(--hook); height: 60px; background: var(--ink); border: 2px solid var(--paper); border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.tape input[type="range"]:focus-visible { outline: none; }
.tape input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }
.tape input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid var(--focus); outline-offset: 2px; }
@keyframes pull { from { transform: scaleX(0.06); } to { transform: scaleX(1); } }

.total { display: grid; gap: 4px; padding: 16px 0 4px; border-top: 2px solid var(--ink); }
.total-figure { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; }
.total-figure small { font-size: 1.125rem; font-weight: 700; font-stretch: 100%; margin-left: 6px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.lines li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.lines li.rest { color: var(--steel); }
.sheet-foot { color: var(--steel); font-size: 0.875rem; line-height: 1.5; }

/* ---- Rate cards (the one place cards are used: they mirror the app's own rate records) */
.rates { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .rates { grid-template-columns: minmax(0, 1fr); } }
.rate { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.rate-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.rate-name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.rate-price { font-size: 1.75rem; line-height: 1; white-space: nowrap; }
.rate-price small { font-size: 0.9375rem; font-weight: 600; font-stretch: 100%; }
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1.5px solid currentColor; }
.tag--warn { color: var(--brick); }
.rate-note { font-size: 0.9375rem; line-height: 1.5; color: var(--steel); }
.rate-note strong { color: var(--brick); }
.rate-src { font-size: 0.875rem; line-height: 1.4; }

/* ---- Feature rows */
.rows { display: grid; gap: clamp(28px, 3.4vw, 40px); }
.row { display: grid; gap: 10px 48px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row h3 { padding-top: 2px; }
.row p { color: var(--steel); max-width: 58ch; }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* ---- Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before { content: counter(step); font-weight: 800; font-stretch: var(--narrow); font-size: 3.5rem; line-height: 1; }
.steps p { color: var(--steel); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---- Pricing */
.price { display: grid; gap: 32px 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.price-big { font-size: clamp(4rem, 9vw, 6.5rem); line-height: 0.9; font-weight: 800; letter-spacing: -0.04em; color: var(--brand); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
@media (max-width: 860px) { .price { grid-template-columns: minmax(0, 1fr); } }

/* ---- Homeowner band, forms */
.split { display: grid; gap: 40px 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; }
.guide-list li { border-bottom: 1px solid var(--rule); }
.guide-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; font-weight: 600; }
.guide-list a:hover span:first-child { text-decoration: underline; }
.guide-list a span:last-child { color: var(--steel); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.split > *, .hero .wrap > * { min-width: 0; }
@media (max-width: 640px) {
  .guide-list a { flex-direction: column; gap: 2px; }
  .guide-list a span:last-child { white-space: normal; font-size: 0.9375rem; }
}
.form { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 1rem; }
.field .hint { font-size: 0.875rem; color: var(--steel); }
.field input, .field select {
  font: inherit; font-size: 1.0625rem; min-height: 50px; padding: 10px 14px; border: 2px solid var(--rule); border-radius: 4px;
  background: var(--ground); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 600; }
.form-msg[data-state="ok"] { color: var(--ink); }

/* ---- Homeowner estimator */
.est-form { display: grid; gap: 20px; }
.est-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-form legend { font-weight: 700; font-size: 1rem; margin-bottom: 8px; padding: 0; }
.est-job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.est-job-grid input, .est-opts input { position: absolute; opacity: 0; pointer-events: none; }
.est-job-grid label { display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border: 2px solid var(--rule); border-radius: 4px; background: var(--paper); font-weight: 700; line-height: 1.25; cursor: pointer; }
.est-job-grid input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--btn-fg); }
.est-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.est-opts label { padding: 10px 14px; border: 2px solid var(--rule); border-radius: 4px; background: var(--paper); font-weight: 600; line-height: 1.25; cursor: pointer; }
.est-opts input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 750; }
.est-job-grid input:focus-visible + label, .est-opts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.est-fields { display: grid; gap: 16px; }
.est-fields[hidden] { display: none; }
.est-unit { position: relative; }
.est-unit input { padding-right: 48px; }
.est-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--steel); font-weight: 700; pointer-events: none; }
.est-result { position: sticky; top: 16px; }
.est-result h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.est-head { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.est-kicker { font-weight: 700; color: var(--steel); }
.est-figure { font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1.02; }
.est-ends, .est-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.est-ends ul, .est-x { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.est-bars { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.est-bars li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 2.75rem; gap: 10px; align-items: center; font-size: 0.9375rem; }
.est-bars li span:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.est-bar { height: 10px; background: var(--board); border-radius: 999px; overflow: hidden; }
.est-bar i { display: block; height: 100%; background: var(--bar); border-radius: 999px; }
.est-check { border-left: 4px solid var(--tape); padding-left: 14px; }
.est-notes { display: grid; gap: 6px; border-top: 1px solid var(--rule); padding-top: 14px; }
@media (max-width: 960px) { .est-result { position: static; } }
@media (max-width: 640px) {
  .est-ends, .est-lists { grid-template-columns: minmax(0, 1fr); }
  .est-bars li { grid-template-columns: minmax(0, 1fr) 4.5rem 2.6rem; }
}

/* ---- FAQ */
.faq { display: grid; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.1875rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.75rem; font-weight: 500; line-height: 1.2; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-bottom: 22px; color: var(--steel); max-width: 64ch; display: grid; gap: 12px; }

/* ---- Closing band */
.closing { background: var(--ink); color: var(--ground); }
.closing h2 { color: var(--ground); }
.closing .btn { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.closing .wrap { display: grid; gap: 24px; justify-items: start; }
.closing p { color: var(--ground); opacity: 0.85; max-width: 52ch; }

/* ---- Footer */
.site-foot { padding-block: 48px 40px; font-size: 0.9375rem; color: var(--steel); }
.site-foot .wrap { display: grid; gap: 28px; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols h2 { font-size: 1rem; font-stretch: 100%; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.legal { border-top: 1px solid var(--rule); padding-top: 20px; line-height: 1.6; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: -12px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > :first-child { grid-column: 1 / -1; } }

/* ---- Articles (cost guides, legal) */
.crumbs { font-size: 0.9375rem; color: var(--steel); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.article-head { display: grid; gap: 20px; max-width: 900px; padding-block: clamp(16px, 3vw, 32px) 32px; }
.article-head h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.article { display: grid; gap: 48px; padding-bottom: 72px; }
.article section { display: grid; gap: 18px; max-width: var(--measure); }
.article section.wide { max-width: 860px; }
.article h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
.article ul, .article ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.answer-box { border-left: 6px solid var(--tape); background: var(--paper); padding: 22px 24px; border-radius: 0 6px 6px 0; max-width: 860px; display: grid; gap: 10px; }
.answer-box p:first-child { font-size: 1.3125rem; line-height: 1.45; font-weight: 600; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table.data { border-collapse: collapse; width: 100%; font-size: 1rem; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { font-weight: 700; font-size: 0.9375rem; color: var(--steel); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody th { color: var(--ink); font-size: 1rem; font-weight: 600; }

/* Where the money goes: one series, sorted, bars anchored left, value printed on each row */
table.bars { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
table.bars th, table.bars td { padding: 5px 0; vertical-align: middle; }
table.bars th { text-align: left; font-weight: 600; width: 34%; padding-right: 14px; }
table.bars td.bar { width: 50%; }
table.bars th.num { text-align: right; width: 16%; padding-left: 14px; padding-right: 0; }
table.bars td.num { text-align: right; font-variant-numeric: tabular-nums; padding-left: 14px; white-space: nowrap; width: 16%; }
.barline { height: 12px; background: var(--bar); border-radius: 0 4px 4px 0; min-width: 2px; }
table.bars caption { text-align: left; color: var(--steel); font-size: 0.875rem; caption-side: bottom; padding-top: 10px; }
@media (max-width: 560px) { table.bars th { width: 44%; } table.bars td.bar { width: 34%; } }

.callout { background: var(--board); border-radius: 6px; padding: 24px; display: grid; gap: 14px; max-width: 860px; }
.sources { font-size: 0.9375rem; color: var(--steel); }
.sources a { word-break: break-word; }
.updated { color: var(--steel); font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-head, .site-foot, .closing, .form { display: none; }
}

/* ---- SimplyMargin: motion and brand touches */
:root[data-theme="dark"], :root { --brand-strong: #136252; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand: #28967b; --brand-soft: #11201c; } }
:root[data-theme="dark"] { --brand: #28967b; --brand-soft: #11201c; }
a.textlink, .prose a, .answer a { color: var(--brand); }
.brand { letter-spacing: -0.03em; }
.brand small { display:block; font-size: .72rem; font-weight: 600; color: var(--steel); letter-spacing: 0; margin-top: 2px; }
.sheet { transition: box-shadow .3s ease, transform .3s ease; }
.sheet:hover { box-shadow: 0 24px 48px -24px rgba(16, 40, 32, .35); }
@keyframes bm-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .hero .sheet { animation: bm-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; } .hero-copy > *:nth-child(3) { animation-delay: .12s; } .hero-copy > *:nth-child(4) { animation-delay: .18s; } .hero-copy > *:nth-child(5) { animation-delay: .24s; }
.hero-copy { display: grid; gap: 20px; justify-items: start; } .hero .sheet { animation-delay: .15s; }
.bm-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.bm-reveal.is-in { opacity: 1; transform: none; }
.tagline-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(19,98,82,.18); padding: 6px 12px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero .sheet { animation: none; }
  .bm-reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:hover { transform: none; }
}

/* =====================================================================
   Audience split, estimator wizard, cost pages and advice (v5.10)
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

/* ---- Audience bar and label */
.aud-bar { background: var(--ink); color: var(--ground); font-size: .875rem; }
.aud-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 7px; }
.aud-bar span:first-child { opacity: .75; }
.aud-bar a { font-weight: 700; text-decoration: none; }
.aud-bar a:hover { text-decoration: underline; }
.brand-aud { margin-left: 4px; font-size: .75rem; font-weight: 700; letter-spacing: 0; color: var(--brand); background: var(--brand-soft, #e3f1ec); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.menu-switch { border-top: 1px solid var(--rule); margin-top: 6px; color: var(--steel); }
@media (max-width: 520px) { .brand-aud { display: none; } }

/* ---- Home: who are you? */
.hero--split .wrap { display: grid; gap: clamp(28px, 4vw, 44px); grid-template-columns: minmax(0, 1fr); justify-items: start; }
.split-intro { display: grid; gap: 18px; justify-items: start; max-width: 820px; animation: bm-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.aud-cards { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.aud-card { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--paper); border: 2px solid var(--rule); border-radius: 10px; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; animation: bm-rise .6s .1s cubic-bezier(.2,.7,.2,1) both; }
.aud-card--trade { background: var(--ink); color: var(--ground); border-color: var(--ink); animation-delay: .18s; }
.aud-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(16, 40, 32, .45); text-decoration: none; }
.aud-card h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.aud-card p { color: var(--steel); max-width: 46ch; }
.aud-card--trade p { color: var(--ground); opacity: .82; }
.aud-tag { justify-self: start; font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.aud-card--trade .aud-tag { color: var(--tape); }
.aud-go { font-weight: 800; color: var(--brand); margin-top: 6px; }
.aud-card--trade .aud-go { color: var(--ground); }
.aud-remember a { font-weight: 700; color: var(--brand); }
@media (max-width: 760px) { .aud-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---- Lists of prices and cards */
.guide-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 760px) { .guide-list--2 { grid-template-columns: minmax(0, 1fr); } }
.cost-index { display: grid; gap: 36px 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cost-index--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.cost-cat h2, .cost-cat h3 { font-size: 1.25rem; font-stretch: 100%; margin-bottom: 4px; }
@media (max-width: 960px) { .cost-index--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cost-index, .cost-index--compact { grid-template-columns: minmax(0, 1fr); } }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.card h3 { font-size: 1.1875rem; line-height: 1.2; }
.card p { color: var(--steel); font-size: .9375rem; line-height: 1.5; }

/* ---- Estimator wizard */
.hero--est .wrap.est-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.est-intro { display: grid; gap: 14px; max-width: 760px; }
.wz { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(20px, 3.4vw, 40px); box-shadow: 0 28px 60px -40px rgba(16, 40, 32, .45); display: grid; gap: 24px; scroll-margin-top: 16px; }
.wz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.wz-steps li { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; color: var(--steel); padding-top: 10px; border-top: 4px solid var(--board); transition: border-color .3s ease, color .3s ease; }
.wz-steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--board); font-size: .75rem; flex: none; }
.wz-steps li[aria-current="step"] { color: var(--ink); border-color: var(--brand); }
.wz-steps li[aria-current="step"] span, .wz-steps li.is-done span { background: var(--brand); color: #fff; }
.wz-steps li.is-done { border-color: var(--bar); }
@media (max-width: 640px) { .wz-steps li { font-size: 0; gap: 0; } .wz-steps li span { font-size: .75rem; } }
.wz-step { display: grid; gap: 20px; animation: bm-rise .35s cubic-bezier(.2,.7,.2,1) both; }
.wz-step[hidden] { display: none; }
.wz-q { font-size: clamp(1.6rem, 3vw, 2.2rem); outline: none; }
.wz-cats, .wz-jobs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.wz-jobs[hidden] { display: none; }
.wz-cats input, .wz-jobs input { position: absolute; opacity: 0; pointer-events: none; }
.wz-cats label, .wz-jobs label { display: grid; gap: 4px; align-content: start; min-height: 84px; padding: 14px 16px; border: 2px solid var(--rule); border-radius: 8px; cursor: pointer; background: var(--paper); transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.wz-cats label strong, .wz-jobs label strong { font-size: 1.0625rem; line-height: 1.25; }
.wz-cats label span, .wz-jobs label span { font-size: .875rem; line-height: 1.4; color: var(--steel); }
.wz-cats label:hover, .wz-jobs label:hover { border-color: var(--brand); transform: translateY(-1px); }
.wz-cats input:checked + label, .wz-jobs input:checked + label { border-color: var(--brand); background: var(--brand-soft, #e3f1ec); }
.wz-cats input:focus-visible + label, .wz-jobs input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.wz .est-fields { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); align-items: start; }
.wz .est-fields .est-choice { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.wz .est-choice legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.wz .est-opts input { position: absolute; opacity: 0; pointer-events: none; }
.wz .est-opts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.wz #est-region { max-width: 420px; }
.wz-nav { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.wz-nav--end { padding-top: 8px; border-top: 1px solid var(--rule); }
.wz .est-result { position: static; display: grid; gap: 14px; }
.wz .est-figure { font-size: clamp(2.4rem, 6vw, 3.6rem); animation: bm-pop .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bm-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Materials | labour split (wizard result and cost pages) */
.cost-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cost-split > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 8px; background: var(--board); }
.cost-split span { font-size: .875rem; font-weight: 700; color: var(--steel); }
.cost-split strong { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.1; }
@media (max-width: 420px) { .cost-split { grid-template-columns: minmax(0, 1fr); } }
.est-more { border-top: 1px solid var(--rule); padding-top: 12px; }
.est-more summary { cursor: pointer; font-weight: 700; }
.est-more .est-lists { margin-top: 12px; }

/* ---- PDF dialog */
.pdf-dialog { width: min(92vw, 480px); border: 0; border-radius: 12px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.pdf-dialog[open] { animation: bm-pop .25s ease both; }
.pdf-dialog::backdrop { background: rgba(12, 23, 20, .55); }
.pdf-dialog form { display: grid; gap: 16px; padding: 28px; }
.pdf-dialog h2 { font-size: 1.6rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.field-err { color: var(--brick); font-size: .875rem; font-weight: 600; }

/* ---- Cost pages */
tr.is-default th, tr.is-default td { background: var(--board); }
table.data tr.is-default th { padding-left: 8px; }
.answer-box .cost-split > div { background: var(--ground); }

/* ---- Advice articles */
.article-wrap { max-width: calc(var(--measure) + var(--gutter-l, 20px) * 2); padding-top: clamp(16px, 3vw, 32px); }
.article-wrap > * + * { margin-top: 1em; }
.article-wrap h1 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); margin-top: .3em; }
.article-wrap h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.7em; }
.article-wrap h3 { font-size: 1.25rem; margin-top: 1.3em; }
.article-wrap p, .article-wrap li { line-height: 1.65; }
.article-wrap a:not(.btn) { color: var(--brand); }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 24px; border-radius: 10px; background: var(--board); border-left: 6px solid var(--brand); }
.article-wrap .article-cta { margin-block: 2.2em 1.2em; }
.article-cta p { max-width: 52ch; }
.crumbs a { color: var(--steel); }

/* ---- Trade: quote to margin flow, coming soon */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: clamp(36px, 5vw, 56px); counter-reset: none; }
.flow-step { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 22px 22px 0; border-top: 4px solid var(--brand); }
.flow-step + .flow-step { padding-left: 22px; border-left: 1px solid var(--rule); }
.flow-step p { color: var(--steel); font-size: .9375rem; line-height: 1.5; }
.flow-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .875rem; }
.flow-step:last-child .flow-n { background: var(--tape); color: var(--tape-ink, #1b1a12); }
@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow-step + .flow-step { padding-left: 0; border-left: 0; } }
.soon { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.soon-card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--paper); border: 1px dashed var(--rule); border-radius: 10px; }
.soon-card p { color: var(--steel); font-size: .9375rem; line-height: 1.55; }
.soon-tag { justify-self: start; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.soon-card:last-child .soon-tag { background: var(--board); color: var(--steel); }
@media (max-width: 860px) { .soon { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .split-intro, .aud-card, .wz-step, .wz .est-figure, .pdf-dialog[open] { animation: none; }
  .aud-card:hover, .card:hover, .wz-cats label:hover, .wz-jobs label:hover { transform: none; }
}
@media print { .aud-bar, .wz-nav, .wz-steps { display: none; } }
@media (max-width: 560px) {
  .wz-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wz-cats label { min-height: 0; padding: 12px; }
  .wz-cats label strong { font-size: .9375rem; }
  .wz-cats label span { font-size: .8125rem; }
}
.article .ticks, .article .guide-list { padding-left: 0; }
.article-wrap > ul, .article-wrap > ol { margin-top: .6em; }
.section-head .tagline-kicker { justify-self: start; }

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

/* Comparison table: stacked rows on a phone, so no column is hidden off-screen */
@media (max-width: 640px) {
  table.data.compare { min-width: 0; }
  table.data.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  table.data.compare tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  table.data.compare th, table.data.compare td { display: block; border: 0; padding: 2px 0; }
  table.data.compare td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--steel); }
}
