/* Digital Delmar (DD-0000): styles for the company's own website.

   Layout: a service counter on Delaware Ave. Text sits left-aligned in a
   reading column; the evidence (a phone, a review card, a plan) sits beside
   it. Section labels are short codes in a monospace face, like a work order.
   The one bold element is the phone in the home page hero.

   Color comes from street signs: service-sign blue for anything you can click,
   road-stripe yellow for small highlights, and a cool paper ground.
   Change the look by editing the tokens in :root first. */

@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("fonts/overpass-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --paper: #f3f5f7;        /* page ground: cool paper */
  --surface: #ffffff;      /* cards, form, phone screen */
  --ink: #14213a;          /* text: deep navy */
  --ink-soft: #4a5670;     /* secondary text */
  --line: #d4dae3;         /* hairlines */
  --line-strong: #8792a6;  /* form borders */
  --sign: #1d4f9c;         /* service-sign blue: links, logo, main buttons */
  --sign-ink: #ffffff;     /* text on --sign */
  --sign-tint: #e3ebf7;    /* soft blue fills */
  --stripe: #f2c230;       /* road-stripe yellow: small highlights only */
  --stripe-ink: #1b1600;   /* text on --stripe */
  --device: #14213a;       /* drawn phone frames */
  --band: #14213a;         /* dark band behind the findings */
  --band-ink: #eef2f8;
  --band-soft: #b9c3d4;
  --good: #1d6b43;  --good-bg: #dcefe3;
  --fair: #845500;  --fair-bg: #f9edcf;
  --poor: #a52a1f;  --poor-bg: #f8dfdb;
  --na: #4a5670;    --na-bg: #e8ecf1;
  --sign-hover: #1c498e;                  /* main button hover */
  --header-bg: rgba(243, 245, 247, 0.94); /* sticky header */
  --hl: rgba(242, 194, 48, 0.7);          /* hero highlight */
  --band-line: rgba(238, 242, 248, 0.22); /* lines on the dark band */

  /* Type */
  --font-display: "Overpass", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--2: 0.78rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.55rem;
  --step-3: clamp(1.8rem, 1.25rem + 2.2vw, 2.45rem);
  --step-4: clamp(2.3rem, 1.25rem + 4.3vw, 3.7rem);

  /* Shape and space */
  --radius: 12px;
  --radius-sm: 6px;
  --wrap: 1140px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1422;
    --surface: #141d2e;
    --ink: #e7ecf4;
    --ink-soft: #a9b4c6;
    --line: #27334a;
    --line-strong: #6f7d97;
    --sign: #8fb5f2;
    --sign-ink: #0d1422;
    --sign-tint: #1a2a45;
    --stripe: #f2c230;
    --stripe-ink: #1b1600;
    --device: #34415b;
    --band: #18243a;
    --band-ink: #e7ecf4;
    --band-soft: #a9b4c6;
    --good: #85d4a5;  --good-bg: #16301f;
    --fair: #f0c463;  --fair-bg: #33280f;
    --poor: #f4a196;  --poor-bg: #3b1e1b;
    --na: #a9b4c6;    --na-bg: #1d2638;
    --sign-hover: #9bbdf2;
    --header-bg: rgba(13, 20, 34, 0.94);
    --band-line: rgba(231, 236, 244, 0.22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1422;
  --surface: #141d2e;
  --ink: #e7ecf4;
  --ink-soft: #a9b4c6;
  --line: #27334a;
  --line-strong: #6f7d97;
  --sign: #8fb5f2;
  --sign-ink: #0d1422;
  --sign-tint: #1a2a45;
  --stripe: #f2c230;
  --stripe-ink: #1b1600;
  --device: #34415b;
  --band: #18243a;
  --band-ink: #e7ecf4;
  --band-soft: #a9b4c6;
  --good: #85d4a5;  --good-bg: #16301f;
  --fair: #f0c463;  --fair-bg: #33280f;
  --poor: #f4a196;  --poor-bg: #3b1e1b;
  --na: #a9b4c6;    --na-bg: #1d2638;
  --sign-hover: #9bbdf2;
  --header-bg: rgba(13, 20, 34, 0.94);
  --band-line: rgba(231, 236, 244, 0.22);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--paper);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
  font-weight: 800;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 750; }
h4 { font-size: var(--step-0); font-weight: 750; }
p, ul, ol, dl, figure { margin: 0; }
a { color: var(--sign); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; border-radius: 3px; }
img, svg { max-width: 100%; }
strong { font-weight: 650; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.prose { max-width: 66ch; display: grid; gap: 16px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.small { font-size: var(--step--1); color: var(--ink-soft); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 60;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border: 2px solid var(--sign);
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--gutter-l); }

/* Highlighted text that Nick still has to supply */
.placeholder {
  background: var(--fair-bg);
  color: var(--ink);
  border: 1px dashed var(--fair);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-body);
  font-weight: 400;
}

/* PREVIEW BANNER: unused once the banner is removed at launch; safe to leave (so is .preview-note further down) */
.preview-banner { background: var(--stripe); color: var(--stripe-ink); font-family: var(--font-display); font-size: var(--step--1); }
.preview-banner .wrap { padding-block: 8px; }
.preview-banner a { color: var(--stripe-ink); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
@media (min-width: 860px) {
  .site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand svg { width: 36px; height: 36px; flex: none; }
/* The logo keeps its brand colors in both themes: sign blue tile, white blocks, two yellow corners */
.mark-bg { fill: #1d4f9c; }
.mark-block { fill: #ffffff; }
.mark-corner { fill: #f2c230; }
.brand-text { padding-top: 3px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}
.nav a:hover { background: var(--sign-tint); }
.nav a[aria-current="page"] { color: var(--sign); box-shadow: inset 0 -3px 0 var(--stripe); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav a.btn:hover { background: var(--sign-hover); }
@media (max-width: 859px) {
  .nav { justify-content: space-between; gap: 0; margin-inline: -8px; width: calc(100% + 16px); }
  .nav a { padding-inline: 8px; }
  .nav .btn { display: none; }
}
@media (max-width: 420px) {
  .nav a { padding-inline: 5px; font-size: 0.93rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.15;
  padding: 12px 20px 10px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--sign); color: var(--sign-ink); }
.nav a.btn-primary { color: var(--sign-ink); padding: 10px 16px 8px; min-height: 40px; }
.btn-primary:hover { background: var(--sign-hover); }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 68ch; }
.section-foot { margin-top: 28px; }

/* Inner page heading */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { max-width: 20ch; }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { max-width: 16ch; }
.hero h1 .hl {
  background: linear-gradient(transparent 62%, var(--hl) 62%);
  padding-inline: 2px;
}
.hero-note { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.hero-note span { white-space: nowrap; }

/* Drawn phone holding the sample review */
.phone {
  justify-self: center;
  width: min(100%, 340px);
  background: var(--device);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 60px -30px rgba(20, 33, 58, 0.55);
}
.phone-screen {
  background: var(--surface);
  border-radius: 33px;
  padding: 30px 20px 22px;
  display: grid;
  gap: 14px;
  position: relative;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 74px;
  height: 7px;
  margin-left: -37px;
  border-radius: 99px;
  background: var(--line);
}
.review-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.review-title { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--stripe);
  color: var(--stripe-ink);
  padding: 3px 8px 2px;
  border-radius: 4px;
}
.review-meta { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.4; }
.review-rows { list-style: none; padding: 0; display: grid; }
.review-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-block: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.93rem;
  line-height: 1.25;
}
.review-rows li > span:first-child { min-width: 0; }
.rating {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 4px 9px 2px;
  border-radius: 99px;
  white-space: nowrap;
}
.r-good { color: var(--good); background: var(--good-bg); }
.r-fair { color: var(--fair); background: var(--fair-bg); }
.r-poor { color: var(--poor); background: var(--poor-bg); }
.r-na { color: var(--na); background: var(--na-bg); }
.review-fixes { border-top: 2px solid var(--ink); padding-top: 12px; display: grid; gap: 6px; }
.review-fixes ol { padding-left: 1.25em; font-size: 0.93rem; line-height: 1.4; display: grid; gap: 4px; }
.phone figcaption { font-family: var(--font-display); font-size: var(--step--2); color: var(--band-soft); text-align: center; padding: 10px 8px 2px; line-height: 1.35; }

/* Three reasons */
.reasons { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reasons > div { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--ink); min-width: 0; }
.reasons p { color: var(--ink-soft); }

/* Findings band */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-soft); }
.band .lede { color: var(--band-soft); }
.band a { color: var(--band-ink); }
.band.section + .section, .section + .band.section { border-top: 0; }
.findings { list-style: none; padding: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.findings li {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding-block: 18px;
  border-top: 1px solid var(--band-line);
}
.findings .count {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.findings .count small { font-size: 0.95rem; font-weight: 600; color: var(--band-soft); margin-left: 2px; }
.findings p { color: var(--band-soft); font-size: 0.98rem; }
.findings strong { color: var(--band-ink); display: block; font-family: var(--font-display); font-weight: 750; font-size: 1.05rem; line-height: 1.3; margin-bottom: 2px; }
.band .source { margin-top: 24px; font-size: var(--step--1); color: var(--band-soft); max-width: 75ch; }

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0; display: grid; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 4px 18px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 1.15rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  padding-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.steps h3 { align-self: center; }
.steps p { color: var(--ink-soft); max-width: 64ch; }
@media (min-width: 900px) {
  .steps.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .steps.two-col li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* Plans */
.plans { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 16px;
  min-width: 0;
}
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-name { font-size: var(--step-2); font-weight: 850; }
.plan-pages { font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.plan-for { color: var(--ink-soft); font-size: 0.98rem; }
.plan-price { display: grid; gap: 4px; font-variant-numeric: tabular-nums; padding-block: 14px; border-block: 1px solid var(--line); }
.plan-price .quote { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.plan-price .setup { font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; align-content: start; font-size: 0.98rem; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--good);
  border-bottom: 2.5px solid var(--good);
  transform: rotate(-45deg);
}
.ticks .edits { font-weight: 650; }
.crosses { list-style: none; padding: 0; display: grid; gap: 8px; }
.crosses li { position: relative; padding-left: 28px; }
.crosses li::before, .crosses li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.72em;
  width: 14px;
  height: 2.5px;
  background: var(--ink-soft);
  transform: rotate(45deg);
}
.crosses li::after { transform: rotate(-45deg); }

.plans-teaser { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 3px solid var(--ink); }
@media (min-width: 760px) { .plans-teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plans-teaser > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; }
@media (min-width: 760px) {
  .plans-teaser > div { padding: 22px 24px 22px 0; border-bottom: 0; }
  .plans-teaser > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
}
.plans-teaser p { color: var(--ink-soft); font-size: 0.98rem; }

.includes {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--sign-tint);
  display: grid;
  gap: 14px;
}
.includes .ticks { columns: 2 260px; column-gap: 36px; display: block; }
.includes .ticks li { break-inside: avoid; margin-bottom: 8px; }

.terms { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .terms { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.qa { display: grid; gap: 0; }
.qa > div { padding-block: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.qa > div:last-child { border-bottom: 1px solid var(--line); }
.qa dt { font-family: var(--font-display); font-weight: 750; }
.qa dd { margin: 0; color: var(--ink-soft); }

/* Founding client offer: a ticket with a yellow stub */
.founding {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.founding::before { content: ""; background: repeating-linear-gradient(180deg, var(--stripe) 0 18px, transparent 18px 30px); border-right: 2px solid var(--ink); }
.founding > div { padding: 22px 24px; display: grid; gap: 10px; }

/* Towns */
.towns { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 750;
  padding: 6px 12px 4px;
  border-radius: 4px;
  background: var(--sign);
  color: var(--sign-ink);
}
.towns li.later { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); font-weight: 600; }

/* Two-column text split */
.split { display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.split > div { display: grid; gap: 14px; align-content: start; min-width: 0; }

/* Review page: the 13 areas */
.areas { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 3px solid var(--ink); }
@media (min-width: 900px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.area h3 { font-size: 1.1rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.area h3 .n { font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; }
.area p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }

.rules { list-style: none; padding: 0; display: grid; gap: 0; }
.rules li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--stripe);
  box-shadow: 0 0 0 2px var(--ink);
}
.rules strong { font-family: var(--font-display); font-weight: 750; }

.specs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.specs > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 20px; padding-block: 12px; border-top: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--font-display); font-weight: 750; }
.specs dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .specs > div { grid-template-columns: minmax(0, 1fr); } }

/* Work page: concept label */
.concept-label {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 9px 3px;
  border-radius: 4px;
  background: var(--fair-bg);
  color: var(--fair);
}

/* About */
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 8px;
}
.facts { display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); padding-top: 4px; }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 650; overflow-wrap: anywhere; }

/* FAQ */
.faq { display: grid; max-width: 80ch; }
.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: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: var(--step-1);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--sign);
  border-bottom: 2.5px solid var(--sign);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding-bottom: 18px; color: var(--ink-soft); max-width: 70ch; display: grid; gap: 10px; }

/* Contact */
.contact { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 920px) { .contact { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.contact-info { display: grid; gap: 20px; align-content: start; min-width: 0; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.copy-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--sign);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 6px 10px 4px;
  min-height: 34px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--sign-tint); }
.inquiry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 18px;
  min-width: 0;
}
.field-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-family: var(--font-display); font-weight: 750; font-size: 0.98rem; }
.field .hint { font-weight: 500; color: var(--ink-soft); font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px;
  width: 100%;
  min-height: 46px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--poor); box-shadow: 0 0 0 1px var(--poor); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot p { flex: 1 1 240px; font-size: var(--step--1); color: var(--ink-soft); }
.form-status { font-family: var(--font-display); font-weight: 700; min-height: 1.6em; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--poor); }

/* Closing call to action */
.closer .wrap { display: grid; gap: 20px; justify-items: start; }
.closer h2 { max-width: 22ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-family: var(--font-display); font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .wrap { padding-block: 32px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.foot-brand { display: grid; gap: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (min-width: 760px) { .foot-links { justify-content: flex-end; } }
.foot-links a { padding-block: 6px; }
.site-footer a { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); }
.review-fixes-title { font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; }

/* Phone action bar: keeps the main action on screen on small screens */
.action-bar { display: none; }
@media (max-width: 859px) {
  html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .action-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -18px rgba(20, 33, 58, 0.6);
  }
  .action-bar .btn { min-height: 48px; padding-inline: 10px; }
}

/* Simple pages (privacy, 404) */
.page-simple { padding-block: clamp(40px, 6vw, 80px); }
.page-simple .prose h2 { font-size: var(--step-2); margin-top: 12px; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
@media (max-width: 480px) {
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dt { padding-top: 0; }
}

/* Before and after (Work page and home teaser) */
.preview-note {
  background: var(--stripe);
  color: var(--stripe-ink);
  border-radius: var(--radius-sm);
  padding: 12px 16px 10px;
  margin-bottom: clamp(32px, 5vw, 48px);
  font-family: var(--font-display);
  font-size: var(--step--1);
  max-width: 70ch;
}
.cases { display: grid; gap: 0; }
.case { display: grid; gap: 28px; }
.case + .case { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); }
.case-head { display: grid; gap: 10px; max-width: 70ch; }
.case-meta { font-family: var(--font-display); font-weight: 650; color: var(--ink-soft); }
.case-status { font-size: var(--step--1); color: var(--ink-soft); }
.case-body { display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .case-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.case-notes { display: grid; gap: 14px; min-width: 0; }

.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 36px); align-items: start; min-width: 0; }
.ba figure, .desk-pair figure { display: grid; gap: 10px; min-width: 0; }
.ba figure { justify-items: center; }
.shot-phone {
  width: 100%;
  max-width: 280px;
  background: var(--device);
  border-radius: clamp(20px, 4vw, 36px);
  padding: clamp(5px, 1.1vw, 9px);
  box-shadow: 0 24px 44px -30px rgba(20, 33, 58, 0.6);
}
.shot-phone img { display: block; width: 100%; height: auto; border-radius: clamp(15px, 3vw, 28px); background: var(--surface); }
.ba figcaption, .desk-pair figcaption { font-family: var(--font-display); font-size: var(--step--1); line-height: 1.35; color: var(--ink-soft); text-align: center; }
.ba figcaption strong, .desk-pair figcaption strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.is-after figcaption strong { color: var(--sign); }

.changes-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.changes { list-style: none; padding: 0; display: grid; }
.changes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 0.98rem; line-height: 1.5; }
.changes p { position: relative; padding-left: 18px; }
.changes p::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; }
.changes .was { color: var(--ink-soft); }
.changes .was::before { background: var(--poor); }
.changes .now::before { background: var(--good); }
@media (max-width: 560px) {
  .changes-head { display: none; }
  .changes li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

.desk { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 6px; }
.desk summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  font-family: var(--font-display);
  font-weight: 750;
}
.desk summary::-webkit-details-marker { display: none; }
.desk summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--sign);
  border-bottom: 2.5px solid var(--sign);
  transform: rotate(45deg) translate(-2px, -2px);
}
.desk[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.desk-pair { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding-bottom: 18px; }
.desk-pair img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.desk-pair figcaption { text-align: left; }

.ba-teaser { align-items: center; }
.ba-teaser .ba { max-width: 560px; }
.case-body > .desk { grid-column: 1 / -1; }
@media (min-width: 760px) { .desk-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.changes .lbl { display: block; font-family: var(--font-mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
@media (min-width: 561px) {
  .changes .lbl { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* Grid items keep their own height, so headings and prices line up */
.plans-teaser > div, .steps li, .area { align-content: start; }

/* Contact form: a short message under each field that needs fixing */
.field-error { font-family: var(--font-display); font-size: var(--step--1); font-weight: 700; color: var(--poor); }
.case-date { font-size: var(--step--1); color: var(--ink-soft); padding-top: 4px; }

/* Printing: light colors, no phone bar, buttons as outlines */
@media print {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    --paper: #ffffff; --surface: #ffffff; --ink: #14213a; --ink-soft: #4a5670;
    --line: #d4dae3; --line-strong: #8792a6; --sign: #1d4f9c; --sign-ink: #ffffff; --sign-tint: #eef2f8;
    --device: #14213a; --band: #ffffff; --band-ink: #14213a; --band-soft: #4a5670; --band-line: #d4dae3;
    --good: #1d6b43; --good-bg: #dcefe3; --fair: #845500; --fair-bg: #f9edcf;
    --poor: #a52a1f; --poor-bg: #f8dfdb; --na: #4a5670; --na-bg: #e8ecf1;
    color-scheme: light;
  }
  .action-bar, .skip-link { display: none !important; }
  body { padding-bottom: 0 !important; }
  .site-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-primary, .nav a.btn-primary, .towns li { background: none; color: var(--ink); border: 1px solid var(--ink); }
}
