/* ============================================================
   Andrew Nelson — Google Ads audits for Toronto medspas
   Design language: an audit document, not a marketing page.
   A margin rail carries lettered section codes down the page;
   findings are set as ruled table rows with mono identifiers.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subset, no external requests) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: light is the base palette ---------- */
:root {
  --paper:        #eff0eb;
  --paper-raised: #f8f8f5;
  --paper-sunk:   #e5e7e0;
  --ink:          #16211d;
  --ink-soft:     #5c6862;
  --ink-faint:    #8a948e;
  --rule:         #d6d8d1;
  --rule-strong:  #b9bdb5;
  --accent:       #0f5c52;
  --accent-hover: #0b463e;
  --accent-wash:  #dfe9e6;
  --flag:         #a8352c;
  --flag-wash:    #f2ddd9;
  --on-accent:    #f4f6f3;
  --focus:        #0f5c52;
  --shadow:       0 1px 2px rgba(22, 33, 29, .05), 0 8px 24px -12px rgba(22, 33, 29, .16);

  --display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:    'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;
  --mono:    'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 62ch;
  --rail: 4.5rem;         /* width of the margin rail on desktop */
  --gutter: 1.5rem;
  --shell: 68rem;

  --step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
  --step-0:  clamp(1.0625rem, 1.02rem + .22vw, 1.1875rem);
  --step-1:  clamp(1.25rem, 1.18rem + .35vw, 1.4375rem);
  --step-2:  clamp(1.5rem, 1.36rem + .68vw, 1.9375rem);
  --step-3:  clamp(1.875rem, 1.6rem + 1.35vw, 2.75rem);
  --step-4:  clamp(2.25rem, 1.79rem + 2.3vw, 3.4rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #101614;
    --paper-raised: #18211d;
    --paper-sunk:   #0b100e;
    --ink:          #e7eae5;
    --ink-soft:     #9aa49d;
    --ink-faint:    #6d7873;
    --rule:         #2a3430;
    --rule-strong:  #3d4a44;
    --accent:       #4fbfae;
    --accent-hover: #6fd2c3;
    --accent-wash:  #142623;
    --flag:         #e4796c;
    --flag-wash:    #2a1a18;
    --on-accent:    #08120f;
    --focus:        #4fbfae;
    --shadow:       0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  }
}

:root[data-theme="dark"] {
  --paper:        #101614;
  --paper-raised: #18211d;
  --paper-sunk:   #0b100e;
  --ink:          #e7eae5;
  --ink-soft:     #9aa49d;
  --ink-faint:    #6d7873;
  --rule:         #2a3430;
  --rule-strong:  #3d4a44;
  --accent:       #4fbfae;
  --accent-hover: #6fd2c3;
  --accent-wash:  #142623;
  --flag:         #e4796c;
  --flag-wash:    #2a1a18;
  --on-accent:    #08120f;
  --focus:        #4fbfae;
  --shadow:       0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.021em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

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

::selection { background: var(--accent); color: var(--on-accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1.25rem;
  font-family: var(--display);
  font-size: var(--step--1);
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Utility type ---------- */
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'zero' 1;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: .9em; }
.prose--soft { color: var(--ink-soft); }

/* ---------- Shell & the margin rail ----------
   The rail is the page's organising device: a hairline running the
   full height with a lettered code beside each section, the way a
   reviewed document carries marks in its margin. */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Below the breakpoint the rail is not rendered at all, so .railed must
   stay a plain block — a grid with a fixed first column would drop the
   section into the rail's slot once the rail leaves the flow. */
.railed { display: block; }

.rail {
  position: relative;
  display: none;
  border-right: 1px solid var(--rule);
}

.rail__code {
  position: sticky;
  top: 5.5rem;
  display: block;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-align: right;
  padding-right: 1rem;
}

.rail__code::after {
  content: "";
  position: absolute;
  top: .5rem;
  right: -.25rem;
  width: .5rem;
  height: 1px;
  background: var(--rule-strong);
}

@media (min-width: 62rem) {
  /* The rail column stretches to its row's full height, so consecutive
     sections produce one unbroken rule down the whole document. */
  .railed {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: 2rem;
  }
  .rail { display: block; }
  .rail--blank { border-right-color: transparent; }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

.section:first-of-type { border-top: 0; }
.section--flush { border-top: 0; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 2.25rem;
}

.section__title { font-size: var(--step-2); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark__dot {
  width: .4rem;
  height: .4rem;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
  transform: translateY(-.1em);
}

.wordmark__sub {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

@media (max-width: 34rem) {
  .wordmark__sub { display: none; }
}

.masthead__actions { display: flex; align-items: center; gap: 1.25rem; }

.masthead__tel {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.masthead__tel:hover { color: var(--accent); }

@media (max-width: 46rem) {
  .masthead__tel { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--lg { font-size: var(--step-0); padding: 1.05rem 1.9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
/* No bottom padding: section A's top padding provides the gap, and the
   rail rule stays unbroken from the hero into the body of the document. */
.hero { padding-block: clamp(2.75rem, 6vw, 4.75rem) 0; }

@media (max-width: 61.99rem) {
  .hero { padding-bottom: clamp(1rem, 4vw, 2rem); }
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.5rem; }
}

.hero__title {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -.032em;
  margin-block: 1.1rem .95rem;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__body { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.hero__note {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

.hero__note--spaced { margin-top: 1.75rem; }

/* Slot counter — real scarcity, edited by hand in the HTML. */
.slots {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--flag);
  background: var(--flag-wash);
  border: 1px solid color-mix(in srgb, var(--flag) 28%, transparent);
  border-radius: 2px;
  padding: .4rem .7rem;
}

.slots__pip {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--flag);
  flex: none;
}

/* ---------- The specimen finding (hero right column) ---------- */
.specimen {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.specimen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-sunk);
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.specimen__tag {
  color: var(--flag);
  font-weight: 500;
}

.specimen__body { padding: 1.25rem 1.1rem 1.35rem; display: grid; gap: 1.1rem; }

.specimen__row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: .5rem 1rem;
  align-items: baseline;
}

@media (max-width: 26rem) {
  .specimen__row { grid-template-columns: 1fr; gap: .15rem; }
}

.specimen__key {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.specimen__val { font-size: .9375rem; line-height: 1.45; }

.specimen__val strong { font-weight: 600; }

.specimen__term {
  font-family: var(--mono);
  font-size: .8125rem;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .1rem .4rem;
  white-space: nowrap;
}

.specimen__foot {
  border-top: 1px dashed var(--rule);
  padding: .8rem 1.1rem;
  font-family: var(--mono);
  font-size: .6875rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* ---------- The deal ---------- */
.deal {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .deal { grid-template-columns: 1fr 1fr; }
}

.deal__half {
  background: var(--paper-raised);
  padding: clamp(1.5rem, 3.5vw, 2.15rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deal__title {
  font-size: var(--step-1);
  font-weight: 700;
}

.deal__note { font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }
.deal__note strong { color: var(--ink); font-weight: 600; }
.deal__note em { font-style: italic; }

/* Two marks, and the difference carries meaning: a ticked box for things
   included, a struck box for things explicitly excluded. An empty box
   would read as an unfinished to-do rather than a deliberate "not this". */
.checks { display: flex; flex-direction: column; gap: .7rem; list-style: none; }

.checks li {
  position: relative;
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  font-size: .9375rem;
  line-height: 1.5;
}

.checks li::before {
  content: "";
  width: .95rem;
  height: .95rem;
  margin-top: .34em;
  border: 1px solid var(--accent);
  border-radius: 2px;
  flex: none;
}

/* The tick: a rotated corner, so it scales with the type and follows
   the theme tokens instead of being baked into an image. */
.checks li::after {
  content: "";
  position: absolute;
  left: .34rem;
  top: calc(.34em + .17rem);
  width: .26rem;
  height: .5rem;
  border: solid var(--accent);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.checks--none li::before { border-color: var(--rule-strong); }

.checks--none li::after {
  left: .17rem;
  top: calc(.34em + .44rem);
  width: .62rem;
  height: 0;
  border-width: 0 0 1.6px 0;
  border-color: var(--rule-strong);
  transform: none;
}

/* ---------- Findings index (the 30-point checklist) ---------- */
.index { display: flex; flex-direction: column; gap: 2.5rem; }

.index__group { display: flex; flex-direction: column; gap: .25rem; }

.index__groupHead {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--ink);
}

.index__groupCode {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .08em;
}

.index__groupTitle {
  font-size: var(--step-1);
  font-weight: 700;
}

.index__groupCount {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--ink-faint);
  letter-spacing: .07em;
  white-space: nowrap;
}

.index__item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: .35rem 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.index__n {
  font-family: var(--mono);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.index__text { font-size: .9688rem; line-height: 1.5; }

.index__text b {
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.008em;
  display: block;
  margin-bottom: .1rem;
}

.index__text span { color: var(--ink-soft); }

/* ---------- Why medspas differ ---------- */
.reasons { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }

@media (min-width: 52rem) {
  .reasons { grid-template-columns: 1fr 1fr; }
}

.reason {
  background: var(--paper);
  padding: 1.6rem 0;
  padding-right: clamp(0rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

@media (min-width: 52rem) {
  .reason { padding-inline: clamp(1.25rem, 2.5vw, 1.9rem); }
  .reason:nth-child(odd) { padding-left: 0; }
}

.reason__title {
  font-size: 1.0625rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.reason__mark {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--flag);
  flex: none;
}

.reason__body { font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }
.reason__body strong { color: var(--ink); font-weight: 600; }

/* ---------- Process (a true sequence, so it is numbered) ---------- */
.steps { display: grid; gap: 1.75rem; counter-reset: step; }

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.step {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--accent);
  counter-increment: step;
}

.step::before {
  content: "Step " counter(step);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
}

.step__title { font-size: 1.125rem; font-weight: 700; }
.step__body { font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }
.step__meta {
  margin-top: auto;
  padding-top: .5rem;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--ink-faint);
  letter-spacing: .05em;
}

/* ---------- Fit / no fit ---------- */
.fit { display: grid; gap: 2rem; }

@media (min-width: 48rem) {
  .fit { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.fit__title {
  font-size: 1.0625rem;
  font-weight: 700;
  padding-bottom: .7rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-strong);
}

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; align-items: start; }

@media (min-width: 52rem) {
  .about { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; }
}

.about__card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.about__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.about__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
}
.about__row:last-child { border-bottom: 0; padding-bottom: 0; }
.about__row dt { color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; font-size: .6875rem; }
.about__row dd { margin: 0; text-align: right; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }

.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item:first-child { border-top: 1px solid var(--rule); }

.faq__q {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.012em;
  padding: 1.15rem 2.5rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--ink);
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}

.faq__item[open] .faq__q::after { content: "\2013"; }

.faq__a {
  padding-bottom: 1.3rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: .9688rem;
  line-height: 1.6;
}
.faq__a p + p { margin-top: .75em; }

/* ---------- Form ---------- */
.formband {
  background: var(--paper-sunk);
  border-top: 1px solid var(--rule);
}

.formband__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }

@media (min-width: 58rem) {
  .formband__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3.5rem; }
}

.form {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3.5vw, 2rem);
  display: grid;
  gap: 1.1rem;
}

.form__row { display: grid; gap: 1.1rem; }

@media (min-width: 32rem) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: .4rem; }

.field label {
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.004em;
  color: var(--ink);
}

.field label .opt {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .6875rem;
  color: var(--ink-faint);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: .68rem .75rem;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field select {
  font-family: var(--display);
  font-size: .9375rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1rem center, right .65rem center;
  background-size: .35rem .35rem, .35rem .35rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.field textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); opacity: 1; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.error-msg {
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--flag);
  min-height: 0;
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--flag); }
.field.has-error .error-msg,
.consent.has-error .error-msg { display: block; }

.consent {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: .2rem .7rem;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 1.05rem;
}

.consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: .2rem 0 0;
  accent-color: var(--accent);
  flex: none;
}

.consent label { font-size: .8438rem; line-height: 1.5; color: var(--ink-soft); }
.consent label strong { color: var(--ink); font-weight: 600; }
.consent .error-msg { grid-column: 2; }

.form__fine {
  font-family: var(--mono);
  font-size: .6875rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

.formband__pitch { display: flex; flex-direction: column; gap: 1.25rem; }

.formband__title { font-size: var(--step-3); letter-spacing: -.028em; }

.formband__list { display: flex; flex-direction: column; gap: .8rem; list-style: none; }

.formband__list li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: .75rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
}

.formband__list li b {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem 3rem;
  font-size: .875rem;
  color: var(--ink-soft);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; font-family: var(--mono); font-size: .75rem; }
.footer__links a { color: var(--ink-soft); text-decoration: none; }
.footer__links a:hover { color: var(--accent); text-decoration: underline; }

.footer__fine { font-family: var(--mono); font-size: .6875rem; color: var(--ink-faint); line-height: 1.6; max-width: 46ch; }
.footer__fine--spaced { margin-top: .75rem; }

.wordmark--footer { font-size: 1rem; }

/* ---------- Interior pages (privacy, thank-you, 404) ---------- */
.page { padding-block: clamp(3rem, 7vw, 5rem); }
.page__title { font-size: var(--step-3); margin-bottom: 1rem; }

.doc { max-width: var(--measure); display: flex; flex-direction: column; gap: 1.1rem; }
.doc h2 {
  font-size: var(--step-1);
  margin-top: 1.4rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}
.doc h3 { font-size: 1.0625rem; margin-top: .8rem; }
.doc ul { padding-left: 1.15rem; list-style: disc; display: flex; flex-direction: column; gap: .45rem; }
.doc li { line-height: 1.55; }
.doc .updated {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Thank-you / confirmation */
.confirm { max-width: 44rem; display: flex; flex-direction: column; gap: 1.5rem; }

.confirm__mark {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.confirm__mark::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
}

.next {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

@media (min-width: 44rem) {
  .next { grid-template-columns: repeat(3, 1fr); }
}

.next__cell {
  background: var(--paper-raised);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.next__when {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.next__what { font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }
.next__what strong { color: var(--ink); font-weight: 600; }
