/* FairBuild site styles (redesign draft 2026-11-16). Concept: the carpenter's square from the logo.
   The square holds the work in the hero, ruler ticks are drawn in above each section, amber marks the one action. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Headlines and figures: Bricolage Grotesque (variable weight and optical size), OFL, licence in /fonts/. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F8F6F1;
  --surface: #FFFFFF;
  --navy: #1C2F4A;
  --navy-deep: #15233A;
  --ink: #1E2430;
  --muted: #4A5363;
  --line: #D8D3C6;
  --amber: #F2A93B;
  --amber-hover: #F6BE63;
  --on-navy-muted: #C9D1DD;   /* 9.3:1 on navy */
  --focus: var(--navy);
  --hover-wash: rgb(28 47 74 / 0.07);
  --shadow-block: rgb(28 47 74 / 0.12);     /* the hard offset shadow under frames */
  --shadow-menu: rgb(28 47 74 / 0.18);
  --rule-dotted: #A9A292;
  --hair-on-navy: rgb(255 255 255 / 0.22);
  --shadow-on-navy: rgb(0 0 0 / 0.22);
  --field-border: #6B7280;
  --error: #8A1C1C;

  --radius: 6px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --max: 76rem;
  --measure: 38rem;
  --header-h: 4.5rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --arm: 22px;                 /* thickness of the square's arms */

  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-reveal: cubic-bezier(0.25, 0.6, 0.25, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Ruler ticks: a long tick every 5th, short ticks between. */
  --tick: var(--navy);
  --ticks:
    repeating-linear-gradient(90deg, var(--tick) 0 2px, transparent 2px 60px) 0 0 / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 12px) 0 0 / 100% 6px no-repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3 { color: var(--navy); font-family: var(--display); font-weight: 700; font-optical-sizing: auto; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.875rem, 6vw, 4.875rem); line-height: 0.96; letter-spacing: -0.028em; }
h2 { font-size: clamp(2.125rem, 4.8vw, 3.5rem); line-height: 1; letter-spacing: -0.022em; }
h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 0.6rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.nb { white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--navy); color: var(--bg); padding: 0.5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; outline-color: var(--amber); }
.on-navy { --focus: var(--amber); --tick: var(--bg); }

/* ---------- Sticky header (no script) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { backdrop-filter: blur(8px); }
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { display: block; height: 40px; width: auto; }

.nav-desktop ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a, .nav-mobile a {
  display: block; padding: 0.5rem 0.85rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; color: var(--navy);
}
.nav-desktop a:hover { background: var(--hover-wash); }
.nav-desktop a[aria-current="page"],
.nav-mobile a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  background: var(--amber); color: var(--navy);
  border: 2px solid var(--navy); border-radius: var(--radius);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.button:hover { background: var(--amber-hover); transform: translateY(-1px); box-shadow: 0 5px 0 var(--navy); }
.button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--navy); }
.button.is-small { min-height: 2.6rem; padding: 0.45rem 1rem; font-size: 1rem; box-shadow: 0 2px 0 var(--navy); }
.button.is-small:hover { box-shadow: 0 3px 0 var(--navy); }
.button.is-small:active { transform: translateY(2px); box-shadow: 0 0 0 var(--navy); }
.button.is-ghost, .button.is-ghost:hover, .button.is-ghost:active { background: transparent; box-shadow: none; transform: none; }
.button.is-ghost:hover { background: var(--hover-wash); }
.on-navy .button { border-color: var(--amber); box-shadow: 0 4px 0 var(--navy-deep); }
.on-navy .button:hover { box-shadow: 0 5px 0 var(--navy-deep); }
.on-navy .button:active { box-shadow: 0 0 0 var(--navy-deep); }
.header-cta { white-space: nowrap; }
.header-cta .short { display: none; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.75rem; }
.text-link { font-weight: 700; }
.text-link::after { content: "\2192" / ""; display: inline-block; margin-left: 0.4rem; transition: transform 160ms ease; }
.text-link:hover::after { transform: translateX(4px); }
.on-navy a:not(.button) { color: var(--bg); }

/* Mobile menu: <details>, no script */
.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.6rem; padding: 0.4rem 0.75rem;
  border: 2px solid var(--navy); border-radius: var(--radius);
  font-weight: 700; color: var(--navy); background: var(--surface); font-size: 1rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .bars {
  width: 16px; height: 12px;
  background: linear-gradient(var(--navy) 0 0) 0 0 / 100% 2px no-repeat,
              linear-gradient(var(--navy) 0 0) 0 5px / 100% 2px no-repeat,
              linear-gradient(var(--navy) 0 0) 0 10px / 100% 2px no-repeat;
}
.nav-mobile[open] summary .bars {
  background: linear-gradient(45deg, transparent 45%, var(--navy) 45% 55%, transparent 55%),
              linear-gradient(-45deg, transparent 45%, var(--navy) 45% 55%, transparent 55%);
}
.nav-mobile ul {
  position: absolute; right: 0; top: calc(100% + 0.6rem);
  min-width: 14rem; margin: 0; padding: 0.5rem; list-style: none;
  background: var(--surface); border: 2px solid var(--navy); border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow-menu);
}
.nav-mobile li + li { border-top: 1px solid var(--line); }
.nav-mobile a { padding: 0.75rem 0.85rem; }

@media (max-width: 58rem) {
  :root { --header-h: 4rem; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .brand img { height: 32px; }
  .site-header .wrap { gap: 0.5rem; }
}
@media (max-width: 30rem) {
  .header-cta .long { display: none; }
  .header-cta .short { display: inline; }
  .brand img { height: 42px; }
  .site-header .wrap { gap: 0.6rem; }
  .header-cta { white-space: nowrap; text-align: center; padding: 0.45rem 0.9rem; }
  .nav-mobile summary { min-width: 2.6rem; justify-content: center; padding: 0.4rem 0.6rem; }
  .nav-mobile .menu-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 23rem) { .brand img { height: 38px; } }
@media (max-width: 21rem) { .brand img { height: 32px; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section.is-surface { background: var(--surface); --cover: var(--surface); }
.lead { font-size: clamp(1.1875rem, 1.7vw, 1.375rem); color: var(--muted); max-width: 33rem; }
.fine { font-size: 1rem; color: var(--muted); margin-top: 1.25rem; }
.on-navy .fine { color: var(--on-navy-muted); }

/* A section head sits under a length of ruler, drawn in from the left. */
.section-head { position: relative; max-width: 44rem; padding-top: 2.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head::before {
  content: ""; position: absolute; left: 0; top: 0; width: min(100%, 22rem); height: 12px;
  background: var(--ticks); border-top: 3px solid var(--tick); transform-origin: left center;
}
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: 36rem; }

.status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9375rem; font-weight: 700; color: var(--navy);
  padding: 0.15rem 0.7rem; border: 2px solid var(--navy); border-radius: 999px; background: var(--surface);
}
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border: 2px solid var(--navy); }
.status.is-live::before { background: var(--amber); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 0; overflow-x: clip; }
.hero-grid { display: grid; gap: clamp(2.75rem, 5vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero h1 { max-width: 9.5em; margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.25rem; }

/* The hero picture: a website and a phone, held in the corner of a carpenter's square (the logo's L). */
.bench { margin: 0; }
.square { position: relative; padding: 0 0 calc(var(--arm) + 16px) calc(var(--arm) + 16px); }
.square::before, .square::after { content: ""; position: absolute; background-color: var(--navy); }
.square::before {   /* upright arm, with ticks */
  left: 0; top: 0; bottom: 0; width: var(--arm); transform-origin: center bottom;
  background-image:
    repeating-linear-gradient(180deg, var(--bg) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(180deg, transparent 0 18px, var(--bg) 18px 20px, transparent 20px 40px);
  background-size: 11px 100%, 6px 100%; background-repeat: no-repeat; background-position: right top;
}
.square::after {    /* level arm */
  left: 0; right: 0; bottom: 0; height: var(--arm); transform-origin: left center;
  background-image:
    repeating-linear-gradient(90deg, var(--bg) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(90deg, transparent 0 18px, var(--bg) 18px 20px, transparent 20px 40px);
  background-size: 100% 11px, 100% 6px; background-repeat: no-repeat; background-position: var(--arm) top;
}
.window {
  position: relative; background: var(--surface); border: 2px solid var(--navy); border-radius: 10px;
  overflow: hidden; box-shadow: 10px 10px 0 var(--shadow-block);
}
.window img { display: block; width: 100%; }
.bench .window { width: 85%; }
.handset {
  margin: 0; background: var(--navy); border-radius: 13% / 6.6%; padding: 3.2%;
  box-shadow: 8px 8px 0 var(--shadow-block);
}
.handset img { display: block; width: 100%; border-radius: 10% / 5.4%; }
.bench .handset { position: absolute; right: 0; bottom: calc(var(--arm) + 2px); width: 30%; }
@media (max-width: 40rem) {
  .bench .window { width: 84%; }
  .bench .handset { width: 31%; }
}
.bench figcaption { font-size: 0.9375rem; color: var(--muted); margin: 0.9rem 0 0 calc(var(--arm) + 16px); max-width: 30rem; }

/* The facts, read off a ruler. */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(3rem, 7vw, 5.5rem) 0 0; padding: 0;
  border-top: 3px solid var(--navy); background: var(--ticks);
}
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 2.1rem 1.25rem 2.4rem 0; }
.facts dt { color: var(--muted); font-size: 1rem; line-height: 1.35; margin-top: 0.55rem; }
.facts dd {
  margin: 0; font-family: var(--display); font-weight: 700; color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
}
.facts a { color: var(--navy); font-weight: 700; white-space: nowrap; }
@media (max-width: 52rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding: 1.6rem 0.75rem 1.6rem 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 26rem) {
  .facts dd { font-size: 1.5rem; }
}

/* ---------- The two tools ---------- */
.tool { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tool + .tool { margin-top: clamp(3rem, 7vw, 6rem); }
@media (min-width: 60rem) {
  .tool--web { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
  .tool--blake { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); }
  .tool--blake .handset--large { order: -1; }
}
.tool-status { margin-bottom: 1.25rem; }
.tool :is(h2, h3) { font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1; letter-spacing: -0.022em; margin-bottom: 0.9rem; }
.tool-text > p { max-width: 34rem; }
.tool-text > p:not([class]) { color: var(--muted); font-size: 1.1875rem; }
.price, .total .amount, .facts dd { font-variant-numeric: tabular-nums; }
.price { font-family: var(--display); color: var(--navy); font-size: 1.625rem; font-weight: 700; line-height: 1.15; margin: 1.5rem 0; letter-spacing: -0.01em; }
.price small { display: block; font-family: var(--font); font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 0.3rem; }

/* Estimate sheet: the price, written out the way a tradesperson would. */
.estimate {
  background: var(--bg); border: 2px solid var(--navy); border-radius: 10px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 10px 10px 0 var(--shadow-block);
}
.estimate-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline;
  border-bottom: 2px solid var(--navy); padding-bottom: 0.75rem; margin-bottom: 0.25rem; }
.estimate-head strong { font-family: var(--display); font-size: 1.375rem; color: var(--navy); }
.estimate-head span { font-size: 1rem; color: var(--muted); }
.line-items { list-style: none; margin: 0; padding: 0; }
.line-items li { display: flex; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px dotted var(--rule-dotted); }
.line-items li::before { content: "\2713" / ""; color: var(--navy); font-weight: 700; flex: none; }
.line-items small { display: block; color: var(--muted); font-size: 1rem; }
.total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline;
  margin-top: 1rem; padding-top: 1rem; border-top: 4px double var(--navy); color: var(--navy); font-weight: 700; }
.total .amount { font-family: var(--display); font-size: clamp(1.625rem, 4vw, 2.125rem); letter-spacing: -0.015em; }

/* Blake: the second tool, on navy. */
.tool--blake {
  background: var(--navy); color: var(--bg); border-radius: 14px; --cover: var(--navy);
  padding: clamp(1.75rem, 5vw, 4.5rem);
}
.tool--blake :is(h2, h3) { color: var(--bg); }
.tool--blake .tool-text > p:not([class]) { color: var(--on-navy-muted); }
.handset--large { position: relative; width: min(100%, 19rem); margin-inline: auto; background: var(--navy-deep); box-shadow: 0 0 0 1px var(--hair-on-navy), 10px 10px 0 var(--shadow-on-navy); }
.does { list-style: none; margin: 1.5rem 0 2rem; padding: 0; border-top: 1px solid var(--hair-on-navy); max-width: 34rem; }
.does li { position: relative; padding: 0.7rem 0 0.7rem 1.75rem; border-bottom: 1px solid var(--hair-on-navy); }
.does li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.7rem; height: 0.7rem; background: var(--amber); }

.also {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.25rem 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line);
}
.also strong { color: var(--navy); }
.also span { color: var(--muted); }
.also .when { margin-left: auto; font-weight: 700; color: var(--navy); font-size: 0.9375rem; }

/* ---------- Example sites ---------- */
.example-grid { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
@media (min-width: 60rem) {
  .example-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
}
.example { position: relative; margin: 0; }
.example figcaption { display: grid; gap: 0.15rem; margin-top: 1.1rem; }
.example figcaption .text-link { width: fit-content; margin-top: 0.5rem; }
a.window { display: block; transition: transform 200ms ease, box-shadow 200ms ease; }
a.window:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--shadow-block); }
.example figcaption strong { font-family: var(--display); font-size: 1.375rem; color: var(--navy); }
.example figcaption span { color: var(--muted); }
.example-aside { align-self: center; }
.example-aside-head { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.example-aside p:not([class]) { color: var(--muted); font-size: 1.1875rem; }
.example-aside .actions { margin-top: 1.5rem; }

/* ---------- The free sample, step by step ---------- */
.split { display: grid; gap: clamp(1rem, 4vw, 2.5rem); }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 5rem; align-items: start; }
  .split > .section-head { position: sticky; top: calc(var(--header-h) + 2.5rem); margin-bottom: 0; }
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 2px solid var(--navy); }
.steps li {
  counter-increment: step; position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem) clamp(4.25rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: clamp(1.5rem, 3vw, 2.25rem);
  width: clamp(3rem, 5.5vw, 4rem); aspect-ratio: 1; display: grid; place-items: center;
  background: var(--amber); border: 2px solid var(--navy); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1;
}
.steps :is(h2, h3) { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); max-width: 30rem; }

/* ---------- What "fair" means: three plain promises, set large ---------- */
.creed { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--navy); }
.creed li { display: grid; gap: 0.5rem 2.5rem; align-items: baseline; padding: clamp(1.25rem, 3vw, 2rem) 0; border-top: 2px solid var(--navy); }
.creed li + li { border-top: 1px solid var(--line); }
@media (min-width: 56rem) { .creed li { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.creed h3, .creed-ask { font-size: clamp(2.375rem, 6.4vw, 4.75rem); line-height: 1; letter-spacing: -0.03em; margin: 0; }
.creed-ask { font-weight: 300; color: var(--muted); padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.creed p { color: var(--muted); font-size: 1.1875rem; margin: 0; }
.more-link { margin-top: 2rem; font-weight: 700; }

/* ---------- Closing band ---------- */
.band { position: relative; background: var(--navy); color: var(--bg); padding: var(--section) 0; --cover: var(--navy); }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--ticks); opacity: 0.6; }
.band .wrap { display: grid; gap: 2rem 3rem; align-items: end; }
@media (min-width: 56rem) { .band .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.band h2 { color: var(--bg); font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 0.98; letter-spacing: -0.028em; max-width: 12em; margin-bottom: 1.5rem; }
.band p { color: var(--on-navy-muted); font-size: 1.1875rem; margin: 0; }
.close-phone { display: block; width: fit-content; margin-top: 0.35rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.875rem, 4.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; text-underline-offset: 6px; }


/* ---------- Inner pages ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow-x: clip; }
.page-head .status { margin-bottom: 1.25rem; }
.page-head h1 { max-width: 11em; margin-bottom: 1.5rem; }
.page-head h1:last-child { margin-bottom: 0; }
.page-head .lead { margin-bottom: 2.25rem; }
.page-head .lead:last-child { margin-bottom: 0; }
/* A page head with one thing in the square: the website alone, or the phone alone. */
.bench--site .window { width: 100%; }
.bench--phone .square { display: grid; justify-items: center; }
.bench--phone .handset { position: static; width: min(64%, 16rem); }

/* Ledger: a name on the left, what it means on the right, ruled like a job sheet. */
.ledger { margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.ledger > * { display: grid; gap: 0.75rem 3rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .ledger > * { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); align-items: start; } }
.ledger :is(h2, h3, dt) { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.6rem; }
.ledger dd { margin: 0; color: var(--muted); font-size: 1.1875rem; max-width: 36rem; }
.ledger p:not([class]) { color: var(--muted); font-size: 1.1875rem; max-width: 36rem; }
.ledger .actions { margin-top: 1.5rem; }
.marks { list-style: none; margin: 0; padding: 0; }
.marks li { position: relative; padding: 0.4rem 0 0.4rem 1.75rem; }
.marks li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 0.7rem; height: 0.7rem; background: var(--amber); border: 2px solid var(--navy); }

/* A panel on navy without a picture: heading on the left, the list on the right. */
.tool--plain { align-items: start; }
@media (min-width: 60rem) { .tool--blake.tool--plain { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tool--plain .does { margin: 0; }
.tool--plain .does strong { color: var(--bg); }
.does strong { color: var(--bg); }

/* About: the story beside a short column of facts read off a ruler. */
@media (min-width: 60rem) { .split--prose { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); } }
.prose h2 { margin-bottom: 1.25rem; }
.glance { margin: 0; padding-top: 1.25rem; border-top: 3px solid var(--navy); background: var(--ticks); }
.glance > div { display: flex; flex-direction: column-reverse; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.glance dt { color: var(--muted); font-size: 1rem; margin-top: 0.3rem; }
.glance dd { margin: 0; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.glance a { color: inherit; text-underline-offset: 5px; }

/* ---------- Carried over from the earlier stylesheet: lists, the sign-up card, forms, the sample request, long pages ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plain-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.plain-list strong { color: var(--navy); }

.signup {
  background: var(--surface); border: 2px solid var(--navy); border-radius: 10px; padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.signup ul { margin: 1rem 0 1.5rem; padding-left: 1.25rem; }

/* About */
.prose { max-width: var(--measure); }
.prose p { font-size: 1.1875rem; }

/* Contact */
.choose { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .choose { grid-template-columns: 1fr 1fr; } }
.choose > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.choose > div.is-primary { border: 2px solid var(--navy); }
.big-phone { font-size: clamp(1.5rem, 4vw, 1.875rem); font-weight: 700; white-space: nowrap; }

/* Forms (shared) */
.field { margin-bottom: 1.25rem; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; padding: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hint { display: block; color: var(--muted); font-size: 1rem; margin-bottom: 0.4rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field textarea, .field select {
  display: block; width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--field-border); border-radius: var(--radius); padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--navy); outline-offset: 1px; }
.choice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.3rem 0; }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--navy); flex: none; }
.choice label { font-weight: 400; color: var(--ink); margin: 0; }
.form-note { color: var(--muted); font-size: 1rem; margin-top: 1rem; }
.error { color: var(--error); font-weight: 700; font-size: 1rem; margin: 0.4rem 0 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }

/* ---------- Free sample funnel ---------- */
.funnel { padding: clamp(2rem, 6vw, 4.5rem) 0 var(--section); }
.funnel .wrap { max-width: 44rem; }
.funnel-intro { margin-bottom: 2rem; }
.funnel-intro h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 0; }
.funnel-intro p { color: var(--muted); }

.progress { margin-bottom: 1.75rem; }
.progress-text { font-weight: 700; color: var(--navy); font-size: 1rem; margin: 0 0 0.6rem; }
.progress-ruler {
  position: relative; height: 26px;
  border-bottom: 3px solid var(--navy);
  background:
    repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px calc(100% / 7)) 0 100% / calc(100% + 2px) 14px no-repeat,
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px calc(100% / 28)) 0 100% / 100% 7px no-repeat;
}
.progress-ruler .done {
  position: absolute; left: 0; bottom: -3px; height: 3px; background: var(--amber);
  width: var(--pct, 0%); transition: width 250ms ease;
}
.progress-ruler[data-at="1"] { --pct: 14.2857%; }
.progress-ruler[data-at="2"] { --pct: 28.5714%; }
.progress-ruler[data-at="3"] { --pct: 42.8571%; }
.progress-ruler[data-at="4"] { --pct: 57.1429%; }
.progress-ruler[data-at="5"] { --pct: 71.4286%; }
.progress-ruler[data-at="6"] { --pct: 85.7143%; }
.progress-ruler[data-at="7"] { --pct: 100%; }
.progress-ruler .marker {
  position: absolute; bottom: 4px; width: 18px; height: 18px; background: var(--amber); border: 2px solid var(--navy);
  left: calc(var(--pct, 0%) - 9px); transition: left 250ms ease;
}

.step {
  border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0;
}
.step-q { display: block; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; font-weight: 700; color: var(--navy);
  margin-bottom: 0.5rem; padding: 0; letter-spacing: -0.01em; }
.step .hint { font-size: 1.0625rem; margin-bottom: 1rem; }
.step input[type="text"], .step input[type="email"], .step input[type="tel"], .step textarea {
  display: block; width: 100%; font: inherit; font-size: 1.25rem; color: var(--ink); background: var(--surface);
  border: 2px solid var(--field-border); border-radius: var(--radius); padding: 0.85rem 1rem;
}
.step textarea { min-height: 7rem; font-size: 1.125rem; }
.step input:focus-visible, .step textarea:focus-visible { border-color: var(--navy); outline-offset: 1px; }
.step-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.step-nav .back { margin-right: auto; }
.enter-hint { color: var(--muted); font-size: 0.9375rem; }

.review { background: var(--surface); border: 2px solid var(--navy); border-radius: 10px; padding: 0.5rem 1.25rem; margin: 0.5rem 0 1.25rem; }
.review dl { margin: 0; }
.review div { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: 0.75rem 0; border-bottom: 1px dotted var(--line); }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); font-size: 1rem; }
.review dd { margin: 0; grid-column: 1; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.review .edit { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; font-size: 1rem;
  background: none; border: 0; padding: 0.4rem; color: var(--navy); text-decoration: underline; cursor: pointer; font-family: inherit; }
.consent { border-left: 4px solid var(--amber); padding: 0.25rem 0 0.25rem 1rem; margin: 1.25rem 0; }
.consent p { font-size: 1rem; color: var(--ink); }

/* JS turns the single-page form into one-question-per-screen. Without JS every step shows, in order. */
.js-steps .step[hidden] { display: none; }
.js-steps .no-js-only { display: none; }
.js-only { display: none; }
.js-steps .js-only { display: revert; }

.done-panel { text-align: left; }
.done-panel h1 { margin-top: 1rem; }

.step-nav.is-last { margin-top: 0; }
.js-steps .step { margin-bottom: 0; }
.funnel .form-note { margin-top: 2.5rem; }
[hidden] { display: none !important; }
.step-nav .back { margin-left: auto; margin-right: 0; }
.funnel.is-past-first .funnel-intro p { display: none; }
.funnel.is-past-first .funnel-intro { margin-bottom: 1.25rem; }

@media (max-width: 40rem) { .enter-hint { display: none; } }
.step-nav.is-last { margin-top: 0.75rem; }
.choose { align-items: start; }
.choose .form-note + p { margin-top: 0.25rem; }
.review div { grid-template-columns: 1fr; }
.review dd { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.review dd .edit { grid-column: auto; grid-row: auto; flex: none; }

/* ---------- Additions for the live site ---------- */
/* Spam honeypot: off-screen, not display:none (simple bots skip hidden fields). */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-weight: 700; margin: 0.75rem 0; }
.cf-turnstile { margin-bottom: 0.75rem; }
.form .button[type="submit"] { margin-top: 0.25rem; }
.sms-choice { margin-top: 1.25rem; }
.sms-choice label { font-weight: 700; color: var(--navy); }
.sms-choice + .hint { margin-left: 1.85rem; }
.step .sms-choice + .hint { font-size: 1rem; }
/* /start/ step 6: "How should we reach you?" checkboxes (any combination), then the phone number, then the separate texting box. */
.reach { border: 0; padding: 0; margin: 0 0 0.5rem; min-width: 0; }
.reach .choice label { font-size: 1.125rem; }
.reach .choice { padding: 0.45rem 0; }
.sub-q { display: block; font-weight: 700; color: var(--navy); font-size: 1.125rem; margin: 1rem 0 0.4rem; }
.sub-q span { font-weight: 400; color: var(--muted); }
/* Optional marketing box (review step on /start/, and /contact/): plain weight, so it reads as optional. */
.optin-choice { margin-top: 0.5rem; }
.optin-choice + .hint { margin-left: 1.85rem; }
.steps-stack h2 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.4rem; }

.section-head .plain-list { margin-top: 1.5rem; }
.section-head .plain-list li { color: var(--ink); font-size: 1.125rem; }

/* Long-form pages (privacy) */
.policy h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.policy h3 { margin-top: 1.75rem; }
.policy ul { padding-left: 1.25rem; }
.policy li + li { margin-top: 0.6rem; }
.page-head .prose { max-width: var(--measure); }

/* Error and status pages from the Worker (src/common.js page()) */
.notice-page .lead { margin-bottom: 1.25rem; }
.notice-page ul { padding-left: 1.25rem; }

/* Adjustments to the carried-over rules for the new type and section colours. */
.signup { background: var(--surface); box-shadow: 10px 10px 0 var(--shadow-block); }
.signup .marks { margin: 0 0 1.75rem; padding: 0; }
.choose > div.is-primary { box-shadow: 10px 10px 0 var(--shadow-block); }
.choose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.big-phone { font-family: var(--display); letter-spacing: -0.015em; }
.step-q { font-family: var(--display); letter-spacing: -0.02em; }
.steps-stack { margin-top: 2rem; }
.steps-stack h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.1; }
.policy h2 { letter-spacing: -0.015em; margin-top: 2.5rem; }
.policy h3 { font-size: 1.375rem; }
.plain-list li { color: var(--muted); }
.field input, .field textarea, .step input, .step textarea { border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 3.5rem 0 3rem; color: var(--muted); font-size: 1rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid img { height: 56px; width: auto; display: block; margin-bottom: 0.75rem; }
.footer-grid h2 { font-family: var(--font); font-size: 1rem; letter-spacing: 0; line-height: 1.4; margin-bottom: 0.5rem; color: var(--navy); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }

/* ---------- Motion: one entrance, then each block arrives as it is reached. The page is whole without any of it. ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(44px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes arm-up { from { transform: scaleY(0); } }
@keyframes arm-out { from { transform: scaleX(0); } }
@keyframes set-down { from { opacity: 0; transform: translateY(-36px); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* The entrance: the words rise in turn, the square is laid out from its corner, then the website and the phone are set down in it. */
  .hero h1 { animation: rise 800ms var(--ease-reveal) both; }
  .hero .lead { animation: rise 800ms var(--ease-reveal) 130ms both; }
  .hero .actions { animation: rise 800ms var(--ease-reveal) 260ms both; }
  .page-head .status { animation: rise 700ms var(--ease-reveal) both; }
  .page-head h1 { animation: rise 800ms var(--ease-reveal) 60ms both; }
  .page-head .lead { animation: rise 800ms var(--ease-reveal) 190ms both; }
  .page-head .actions { animation: rise 800ms var(--ease-reveal) 320ms both; }
  .page-head .fine { animation: fade 600ms linear 700ms both; }
  .square::before { animation: arm-up 800ms var(--ease-in-out) var(--start, 350ms) both; }
  .square::after { animation: arm-out 800ms var(--ease-in-out) var(--start, 350ms) both; }
  .bench .window { animation: set-down 800ms var(--ease-reveal) calc(var(--start, 350ms) + 550ms) both; }
  .bench .handset { animation: set-down 800ms var(--ease-reveal) calc(var(--start, 350ms) + 800ms) both; }
  .bench figcaption { animation: fade 500ms linear calc(var(--start, 350ms) + 1400ms) both; }
  .facts { animation: fade 600ms linear var(--start, 900ms) both; }
  .facts > div { animation: rise 700ms var(--ease-reveal) calc(var(--start, 900ms) + 100ms) both; }
  .facts > div:nth-child(2) { animation-delay: calc(var(--start, 900ms) + 190ms); }
  .facts > div:nth-child(3) { animation-delay: calc(var(--start, 900ms) + 280ms); }
  .facts > div:nth-child(4) { animation-delay: calc(var(--start, 900ms) + 370ms); }
  /* Where the picture or the facts sit below the first screen (a phone), reveal.js holds their entrance until they are reached, and sets --start to 0 so they begin at once. */
  .js [data-reveal="hold"]:not(.is-in),
  .js [data-reveal="hold"]:not(.is-in) *,
  .js [data-reveal="hold"]:not(.is-in) *::before,
  .js [data-reveal="hold"]:not(.is-in) *::after { animation-play-state: paused; }

  /* Reveals: reveal.js sets .js only when it is running, so nothing below is hidden without it.
     --reveal-delay is set by the script so that blocks arriving together follow one another. */
  .js [data-reveal="rise"] { opacity: 0; transform: translateY(48px); transition: opacity 650ms ease-out var(--reveal-delay, 0ms), transform 900ms var(--ease-reveal) var(--reveal-delay, 0ms); }
  .js [data-reveal="rise"].is-in { opacity: 1; transform: none; }

  /* Display type rises out of its own line. */
  .js [data-reveal="lift"] { clip-path: inset(-0.1em -0.1em 100% -0.1em); transform: translateY(100%); transition: clip-path 850ms var(--ease-reveal) var(--reveal-delay, 0ms), transform 850ms var(--ease-reveal) var(--reveal-delay, 0ms); }
  .js [data-reveal="lift"].is-in { clip-path: inset(-0.1em -0.1em -0.3em -0.1em); transform: none; }

  /* Pictures open from the left: a cover in the section's own colour is drawn back. The picture is never clipped or faded,
     because a browser will not fetch a lazy picture it counts as hidden, and the wipe would then open on an empty frame. */
  .js [data-reveal="wipe"] { transform: translateY(32px); transition: transform 1000ms var(--ease-reveal) var(--reveal-delay, 0ms); }
  .js [data-reveal="wipe"]::after { content: ""; position: absolute; inset: -4px -22px -22px -4px; background: var(--cover, var(--bg)); transform-origin: right center; pointer-events: none; transition: transform 1000ms var(--ease-in-out) var(--reveal-delay, 0ms); }
  .js [data-reveal="wipe"].is-in { transform: none; }
  .js [data-reveal="wipe"].is-in::after { transform: scaleX(0); }

  /* A section head: its length of ruler is drawn across, then the words rise. */
  .js [data-reveal="rule"]::before { transform: scaleX(0); transition: transform 900ms var(--ease-in-out) var(--reveal-delay, 0ms); }
  .js [data-reveal="rule"].is-in::before { transform: none; }
  .js [data-reveal="rule"] > * { opacity: 0; transform: translateY(40px); transition: opacity 650ms ease-out calc(var(--reveal-delay, 0ms) + 180ms), transform 900ms var(--ease-reveal) calc(var(--reveal-delay, 0ms) + 180ms); }
  .js [data-reveal="rule"] > :nth-child(2) { transition-delay: calc(var(--reveal-delay, 0ms) + 320ms); }
  .js [data-reveal="rule"].is-in > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .js [data-reveal]:not([data-reveal="hold"]), .js [data-reveal="rule"] > *, .js [data-reveal]::before { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="wipe"]::after { display: none; }
  .site-header { position: static; }
}
@media (forced-colors: active) {
  .section-head::before, .band::before { background: none; border-top: 3px solid CanvasText; }
}
[hidden] { display: none !important; }
