/* QuotingCrew — Direction A "Work Order" (Claude Design handoff, 2026-11-04)
   A canary carbon-copy form, ballpoint-blue pen, a red stamp, pink and teal copies
   for the two trades. Printed type for what we do, handwriting only for filled-in values. */

:root {
  --paper: #faf7ee;        /* page ground */
  --white: #ffffff;
  --ink: #1e1d1a;
  --text: #33322e;         /* body copy */
  --muted: #4a4842;        /* secondary text */
  --line: #3b3a35;         /* form rules and captions */
  --caption: #5e5b54;      /* nav numbers */
  --canary: #f6e38b;
  --canary-light: #fbefb5;
  --canary-edge: #d9c56a;
  --tan: #efe7cf;
  --perf: #dcd2b8;
  --pen: #1f3fa6;
  --pen-dark: #15307f;
  --stamp: #b42318;
  --roof: #f7cfc8;         /* pink copy: roofing */
  --pool: #cbe7e3;         /* teal copy: pools */
  --field: #8c887d;        /* input borders, 3.5:1 on white */
  --error: #b42318;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hand: "Kalam", "Bradley Hand", cursive;

  --wrap: 75rem;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --shadow-sheet: 0 1px 0 rgba(30, 29, 26, 0.06), 0 28px 44px -28px rgba(30, 29, 26, 0.55);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M2 12 C5 14, 8 17, 10 20 C14 12, 19 6, 24 2' fill='none' stroke='%231F3FA6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--pen); text-underline-offset: 0.18em; }
a:hover { color: var(--pen-dark); }

:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; color: var(--ink); }

h1 {
  font-size: clamp(2.625rem, 5.6vw, 4.75rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.625rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-size: 1.375rem;
  font-weight: 750;
  font-stretch: 108%;
  line-height: 1.2;
}

p { margin: 0; }

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 35rem;
}

/* mono captions: the printed labels of a form */
.eyebrow {
  margin: 0 0 0.625rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pen);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0 1.625rem;
  border: 0;
  border-radius: 6px;
  background: var(--pen);
  color: var(--white);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 0 var(--pen-dark), 0 12px 22px -14px rgba(31, 63, 166, 0.8);
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--pen-dark); color: var(--white); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.btn--light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(30, 29, 26, 0.16), 0 2px 4px rgba(30, 29, 26, 0.08);
}
.btn--light:hover {
  background: var(--white);
  color: var(--pen-dark);
  box-shadow: 0 0 0 2px var(--pen), 0 2px 4px rgba(30, 29, 26, 0.08);
}

/* ---------- Header ---------- */

.topstrip { background: var(--canary); }
.topstrip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2b2a26;
}
.topstrip__inner > * { padding-block: 0.5rem; }
.topstrip a { color: inherit; font-weight: 500; text-decoration: none; }
.topstrip a:hover { text-decoration: underline; }
.topstrip__short { display: none; }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.125rem 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 2.875rem; height: 2.875rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.5625rem; font-weight: 800; font-stretch: 118%; letter-spacing: -0.005em; }
.brand__tag {
  margin-top: 0.375rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.75rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__link:hover { color: var(--pen); text-decoration: underline; }
.nav__no {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--caption);
}
.nav .btn { margin-left: 0.875rem; min-height: 3rem; padding: 0 1.5rem; font-size: 1.0625rem; }

.nav-toggle { display: none; }

/* perforated tear-off edge */
.perf {
  height: 12px;
  background-image: radial-gradient(circle at 7px 6px, var(--perf) 2.4px, transparent 3px);
  background-size: 14px 12px;
  background-repeat: repeat-x;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(1.75rem, 5vw, 4.25rem) clamp(3.5rem, 7vw, 6rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 31rem);
  gap: clamp(2.5rem, 4vw, 3.25rem);
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .lede { margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }
.hero__note { margin-top: 1.75rem; font-family: var(--mono); font-size: 0.9375rem; color: var(--muted); }

/* The work order */

.order { position: relative; margin: 0; }
.order__copy {
  position: absolute;
  inset: 16px -12px -14px 14px;
  background: var(--roof);
  border-radius: 2px;
  transform: rotate(-2.4deg);
  box-shadow: 0 18px 30px -22px rgba(30, 29, 26, 0.45);
}
.order__sheet {
  position: relative;
  padding: 1.75rem 1.875rem 1.5rem;
  background: var(--canary);
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--canary-edge), 0 26px 44px -26px rgba(30, 29, 26, 0.5);
  transform: rotate(1.2deg);
}
.order__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.order__title {
  font-size: 1.625rem;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.order__no { font-family: var(--mono); font-size: 0.9375rem; white-space: nowrap; }
.order__no b { color: var(--stamp); font-weight: 600; }
.order__sub {
  margin: 0.375rem 0 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1.5px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--line);
}
.order__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding: 0.25rem 0 1.125rem;
}
.order__fields > div { display: grid; min-width: 0; }
.order__caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line);
}
.order__value {
  padding: 0.125rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--hand);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--pen);
}
.order__items { margin: 0.375rem 0 0; padding: 0; list-style: none; }
.order__items li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0;
  border-bottom: 1px dashed rgba(30, 29, 26, 0.35);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.3;
}
.order__box {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--canary-light);
}
.order__box .check { position: absolute; left: -1px; top: -10px; width: 30px; height: 26px; }
.check path {
  fill: none;
  stroke: var(--pen);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
}
.order__totals { padding-top: 1.125rem; padding-bottom: 0; }
.order__blank {
  display: flex;
  align-items: flex-end;
  height: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--line);
}
.order__sign { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 1.375rem; }
.order__approve { flex: 1 1 auto; display: grid; }
.order__line { height: 1.875rem; border-bottom: 1px solid var(--line); }
.order__label {
  margin: 1.375rem 0.375rem 0 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stamp {
  flex: none;
  padding: 0.375rem 0.75rem;
  border: 2.5px solid var(--stamp);
  border-radius: 4px;
  color: var(--stamp);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  opacity: 0.9;
}

/* the one orchestrated moment: the checks get written in, then the stamp lands */
@media (prefers-reduced-motion: no-preference) {
  .js .order__items .check path {
    stroke-dashoffset: 40;
    animation: write 0.45s cubic-bezier(0.5, 0, 0.3, 1) forwards;
  }
  .js .order__items li:nth-child(1) .check path { animation-delay: 0.5s; }
  .js .order__items li:nth-child(2) .check path { animation-delay: 0.8s; }
  .js .order__items li:nth-child(3) .check path { animation-delay: 1.1s; }
  .js .order__items li:nth-child(4) .check path { animation-delay: 1.4s; }
  .js .order__items li:nth-child(5) .check path { animation-delay: 1.7s; }
  .js .order__items li:nth-child(6) .check path { animation-delay: 2s; }
  .js .order .stamp { opacity: 0; animation: stamp 0.25s ease-out 2.5s forwards; }
}
@keyframes write { to { stroke-dashoffset: 0; } }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-8deg) scale(1.35); }
  to { opacity: 0.9; transform: rotate(-8deg) scale(1); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--first { padding-top: 0; }

.section__head {
  display: grid;
  gap: 0.875rem;
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.section__head .eyebrow { margin-bottom: -0.25rem; }
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: none;
}
.section__aside { font-size: 1.125rem; color: var(--muted); }

/* a white sheet of paper lying on the page */
.sheet-white {
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-sheet);
}

/* Niches: colored carbon copies */

.niches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.niche {
  display: flex;
  flex-direction: column;
  padding: 0.875rem;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sheet);
}
.niche:hover { color: var(--ink); }
.niche--roof { background: var(--roof); }
.niche--pool { background: var(--pool); }

.niche__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0.375rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--line);
}
.niche--pool .niche__meta { color: #2f3a38; }

.photo {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.niche .photo { height: clamp(11rem, 18vw, 14rem); }
.photo--roof img { object-position: 50% 45%; }
.photo--pool img { object-position: 50% 62%; }

.niche__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.375rem 0.875rem 0.75rem;
}
.niche__body h3 { font-size: clamp(1.6875rem, 2.6vw, 2rem); font-weight: 800; font-stretch: 110%; }
.niche__body p { font-size: 1.125rem; line-height: 1.5; }
.niche__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.625rem;
  min-height: 3.25rem;
  margin-top: auto;
  padding: 0 1.375rem;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(30, 29, 26, 0.2);
  transition: box-shadow 0.15s ease;
}
.niche__cta svg { width: 1.25rem; height: 1.25rem; color: var(--pen); }
.niche:hover .niche__cta { box-shadow: 0 0 0 2px var(--pen); }

/* checklists with the blue pen check */
.checks {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}
.checks li {
  position: relative;
  padding-left: 2.25rem;
  font-weight: 600;
  line-height: 1.4;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.5rem;
  height: 1.25rem;
  background: var(--check) no-repeat center / contain;
}
.checks--plain li { font-weight: 400; }

/* What we handle: an itemized sheet */

.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  margin: 0;
  padding: clamp(0.75rem, 2.5vw, 1.5rem) clamp(1.25rem, 3.5vw, 2.5rem);
}
.item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.375rem;
  padding: 1.25rem 0 1.25rem 2.25rem;
  border-bottom: 1px dashed rgba(30, 29, 26, 0.3);
}
.item:nth-last-child(-n + 2) { border-bottom: 0; }
.item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 1.5rem;
  height: 1.25rem;
  background: var(--check) no-repeat center / contain;
}
.item dt { font-size: 1.25rem; font-weight: 750; font-stretch: 106%; }
.item dd { margin: 0; color: var(--muted); }

/* How it works */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  counter-reset: step;
}
.step {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
  counter-increment: step;
}
.step::before {
  content: "Step " counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pen);
}
.step p { color: var(--muted); font-size: 1.0625rem; }

/* Case studies: the report every case study uses */

.report { position: relative; max-width: 54rem; padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.report__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--line);
}
.report__rows { margin: 0; }
.report__rows > div {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.875rem;
  border-bottom: 1px dashed rgba(30, 29, 26, 0.3);
}
.report__rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.report__rows dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line);
}
.report__rows dd { margin: 0; color: var(--text); }

/* Field notes */

.notes { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--line); }
.note {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-block: 1.5rem;
  border-bottom: 1px dashed rgba(30, 29, 26, 0.3);
}
.tag {
  justify-self: start;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  background: var(--tan);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--line);
}
.tag--roof { background: var(--roof); }
.tag--pool { background: var(--pool); }
.note__body { display: grid; gap: 0.375rem; max-width: 42rem; }
.note__title { font-size: 1.25rem; font-weight: 750; font-stretch: 104%; line-height: 1.3; }
.note__body p { color: var(--muted); }

/* ---------- Copy + form split (contact section, contact page, niche pages) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split__copy { display: grid; gap: 1.25rem; align-content: start; }
.split__alt { color: var(--muted); }
.split__copy .eyebrow { margin-bottom: -0.625rem; }

.page { padding-block: clamp(1.75rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6.5rem); }
.page__title {
  font-size: clamp(2.375rem, 4.6vw, 3.5rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-small { font-size: 1.25rem; font-weight: 750; font-stretch: 106%; }

.contact-info { margin: 0.5rem 0 0; display: grid; gap: 1rem; }
.contact-info dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--line);
}
.contact-info dd { margin: 0.125rem 0 0; font-weight: 600; }

/* niche landing: a colored copy holding the photo and the setup list */
.trade-sheet {
  display: grid;
  gap: 1.125rem;
  margin-top: 0.75rem;
  padding: 0.875rem 0.875rem 1.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sheet);
}
.trade-sheet--roof { background: var(--roof); }
.trade-sheet--pool { background: var(--pool); }
.trade-sheet .photo { aspect-ratio: 16 / 9; }
.trade-sheet__body { display: grid; gap: 0.875rem; padding-inline: 0.625rem; }

/* ---------- Lead form ---------- */

.lead-form {
  --fp: clamp(1.125rem, 3.5vw, 2rem);
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-sheet);
  font-size: 1rem;
}
.lead-form__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1.125rem var(--fp) 0.875rem;
  background: var(--canary);
}
.lead-form--roofing .lead-form__head { background: var(--roof); }
.lead-form--pools .lead-form__head { background: var(--pool); }
.lead-form__title {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 116%;
  text-transform: uppercase;
}
.lead-form__no {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line);
}
.lead-form__body { display: grid; gap: 1.25rem; padding: 1.5rem var(--fp) var(--fp); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: 0.375rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label,
.field > legend,
.consents > legend {
  padding: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line);
}
.field > legend { margin-bottom: 0.375rem; }
.opt { margin-left: 0.375rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--caption); }

.field input:not([type="radio"]),
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.8rem;
  border: 1.5px solid var(--field);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.field textarea { min-height: 5.5rem; resize: vertical; line-height: 1.45; }
.field input::placeholder,
.field textarea::placeholder { color: #75716a; }
.field input:not([type="radio"]):focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--pen); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.9375rem; font-weight: 600; }
.field__error:empty { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  min-width: 8.5rem;
  padding: 0.5rem 1.125rem 0.5rem 0.875rem;
  border: 1.5px solid var(--field);
  border-radius: 4px;
  font-weight: 650;
  cursor: pointer;
}
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--pen); }
.choice:has(input:checked) { border-color: var(--pen); background: var(--canary-light); color: var(--pen-dark); }
.choice:has(input:focus-visible) { outline: 3px solid var(--pen); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }

/* SMS consent: fine print that has to stay legible */
.consents {
  display: grid;
  gap: 0.875rem;
  margin: 0.25rem 0 0;
  padding: 1.125rem 1.125rem 1.25rem;
  border: 1px dashed rgba(30, 29, 26, 0.35);
  border-radius: 4px;
  background: var(--paper);
}
.consents > legend { float: left; width: 100%; margin-bottom: 0.125rem; }
.consent {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}
.consent b { color: var(--ink); font-weight: 700; }
.consent input { width: 1.375rem; height: 1.375rem; margin: 0.05rem 0 0; accent-color: var(--pen); cursor: pointer; }
.consent__note { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

.lead-form__foot { display: grid; gap: 0.75rem; justify-items: start; }
.chat-card__text { margin: 0; font-size: 1.125rem; line-height: 1.55; }
.chat-card .consent__note { margin: 0; }
.chat-card .consent__note.is-highlighted { color: var(--ink); font-weight: 600; }
.lead-form__foot .btn { min-width: 15rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form-status { font-size: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status--error { color: var(--error); }

/* ---------- Legal pages ---------- */

.legal { max-width: 48rem; }
.legal__updated { margin: 1rem 0 2rem; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; scroll-margin-top: 1rem; }
.legal h3 { font-size: 1.125rem; font-stretch: 100%; margin: 1.5rem 0 0.375rem; }
.legal p { margin-bottom: 1rem; color: var(--text); }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; color: var(--text); }

/* ---------- Thanks / 404 ---------- */

.stub {
  min-height: 56vh;
  display: grid;
  align-content: center;
  gap: 1.5rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.stub__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 2.25rem 2.5rem; font-size: 1rem; color: var(--muted); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.site-footer__biz { display: grid; gap: 0.625rem; max-width: 26rem; }
.site-footer__biz .brand svg { width: 2.25rem; height: 2.25rem; }
.site-footer__biz .brand__name { font-size: 1.25rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-content: start; gap: 0.25rem 1.5rem; max-width: 34rem; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-weight: 600; }
.site-footer__nav a:hover { color: var(--pen); }
.site-footer__copy {
  flex-basis: 100%;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(30, 29, 26, 0.3);
  display: grid;
  gap: 0.375rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.site-footer__copy p { margin: 0; max-width: 80ch; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0 0.875rem;
    border: 0;
    border-radius: 6px;
    background: var(--tan);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
  }
  .nav-toggle svg { width: 1.375rem; height: 1.375rem; }
  .js .nav { display: none; }
  .js .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  .js .nav.is-open .nav__link {
    align-items: center;
    min-height: 3rem;
    padding: 0.625rem 0.25rem;
    border-top: 1px dashed rgba(30, 29, 26, 0.25);
  }
  .js .nav.is-open .btn { margin: 0.75rem 0 0; }
  /* without JavaScript the links simply wrap under the logo */
  html:not(.js) .nav { width: 100%; }
  html:not(.js) .nav .btn { margin-left: 0; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid .order { max-width: 32.5rem; margin-right: 0.875rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .lead-form { max-width: 40rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .niches,
  .items { grid-template-columns: minmax(0, 1fr); }
  .item:nth-last-child(2) { border-bottom: 1px dashed rgba(30, 29, 26, 0.3); }
  .note { grid-template-columns: minmax(0, 1fr); gap: 0.625rem; }
  .report__rows > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .niche__url { display: none; }
  .niche__cta { align-self: stretch; justify-content: center; }
  .order__sheet { padding: 1.375rem 1.25rem 1.25rem; transform: rotate(0.8deg); }
  .order__copy { inset: 12px -8px -10px 10px; transform: rotate(-2deg); }
  .order__title { font-size: 1.375rem; }
  .order__items li { font-size: 1rem; }
  .order__value { font-size: 1.1875rem; }
}

@media (max-width: 600px) {
  .hide-sm { display: none; }
  .topstrip__long,
  .topstrip__mail { display: none; }
  .topstrip__short { display: inline; }
  .topstrip__inner { font-size: 0.6875rem; }
  .site-header__inner { padding-block: 0.75rem 0.625rem; }
  .brand { gap: 0.625rem; }
  .brand svg { width: 2.5rem; height: 2.5rem; }
  .brand__name { font-size: 1.3125rem; font-stretch: 115%; }
  .brand__tag { font-size: 0.625rem; letter-spacing: 0.12em; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn,
  .lead-form__foot .btn { width: 100%; }
  .lead-form__foot { justify-items: stretch; }
  .consents { padding: 1rem 0.875rem; }
  .order__fields { gap: 0.75rem 0.875rem; }
}

.photo picture { display: block; height: 100%; }
