/* Shared structure for every brand site.
   Every colour, font, radius and spacing below comes from a custom property.
   The values here are neutral fallbacks: a brand sets its own in brand.json ("theme"),
   which the build writes into a <style> block after this file, and may add brand.css on top.
   Mobile first. No fixed heights. */

/* ---------- 1. Tokens ---------- */
:root {
  /* colours */
  --c-bg: #ffffff;
  --c-surface: #f3f3f1;
  --c-ink: #1a1a1a;
  --c-muted: #55595f;
  --c-heading: var(--c-ink);
  --c-brand: #24272c;
  --c-on-brand: #ffffff;
  --c-on-brand-muted: var(--c-on-brand);
  --c-accent: #24272c;
  --c-on-accent: #ffffff;
  --c-tint: #e9ecef;
  --c-on-tint: var(--c-ink);
  --c-line: #cdd1d6;
  --c-field-line: var(--c-muted);
  --c-error: #b3261e;
  --c-ok: #2e7d4f;
  --c-card: var(--c-bg);
  --c-on-card: var(--c-ink);
  --c-step-btn: var(--c-brand);
  --c-on-step-btn: var(--c-on-brand);
  --c-draft: #14161a;
  --c-on-draft: #ffffff;

  /* type */
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display-weight: 700;
  --display-leading: 1.05;
  --display-tracking: 0;
  --display-case: none;
  --body-size: 1.0625rem;
  --body-leading: 1.55;
  --small-size: 0.875rem;
  --consent-size: 0.84375rem;
  --h1-size: clamp(2.5rem, 10vw, 4.5rem);
  --h2-size: clamp(1.875rem, 6vw, 2.75rem);
  --h3-size: 1.375rem;
  --lead-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  --btn-size: 1.125rem;
  --btn-weight: var(--display-weight);
  --btn-font: var(--font-display);
  --label-weight: 600;

  /* space */
  --unit: 0.25rem;
  --s1: calc(var(--unit) * 1);
  --s2: calc(var(--unit) * 2);
  --s3: calc(var(--unit) * 3);
  --s4: calc(var(--unit) * 4);
  --s5: calc(var(--unit) * 6);
  --s6: calc(var(--unit) * 8);
  --s7: calc(var(--unit) * 12);
  --s8: calc(var(--unit) * 16);
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-pad: clamp(3.5rem, 9vw, 6.5rem);
  --wrap: 72rem;
  --wrap-text: 44rem;
  --wrap-form: 36rem;

  /* shape */
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;
  --radius-btn: var(--radius-m);
  --radius-input: var(--radius-m);
  --radius-chip: var(--radius-m);
  --radius-card: var(--radius-l);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.16);
  --border-w: 1px;
  --focus-w: 3px;
  --control-min: 3.25rem;
  --btn-min: 3.5rem;
}

/* A tone decides what a block sits on. Parts inside read --bg, --fg and friends, never a colour directly. */
.tone-plain, body {
  --bg: var(--c-bg); --fg: var(--c-ink); --fg-muted: var(--c-muted); --head: var(--c-heading);
  --rule: var(--c-line); --ring: var(--c-brand); --link: var(--c-heading);
}
.tone-soft {
  --bg: var(--c-surface); --fg: var(--c-ink); --fg-muted: var(--c-muted); --head: var(--c-heading);
  --rule: var(--c-line); --ring: var(--c-brand); --link: var(--c-heading);
}
.tone-tint {
  --bg: var(--c-tint); --fg: var(--c-on-tint); --fg-muted: var(--c-on-tint); --head: var(--c-on-tint);
  --rule: var(--c-on-tint); --ring: var(--c-on-tint); --link: var(--c-on-tint);
}
.tone-brand {
  --bg: var(--c-brand); --fg: var(--c-on-brand); --fg-muted: var(--c-on-brand-muted); --head: var(--c-on-brand);
  --rule: var(--c-on-brand-muted); --ring: var(--c-on-brand); --link: var(--c-on-brand);
}
/* A card is always its own light surface, whatever it sits on. */
.form-card, .ledger-sheet, .checklist-pad, .crew-board {
  --bg: var(--c-card); --fg: var(--c-on-card); --fg-muted: var(--c-muted); --head: var(--c-heading);
  --rule: var(--c-line); --ring: var(--c-brand); --link: var(--c-heading);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  color: var(--head);
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--focus-w) solid var(--ring); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { max-width: calc(var(--wrap-text) + var(--gutter) * 2); }
.wrap-form { max-width: calc(var(--wrap-form) + var(--gutter) * 2); }

.skip-link {
  position: absolute; left: var(--s4); top: var(--s4); z-index: 20; transform: translateY(-300%);
  background: var(--c-bg); color: var(--c-ink); padding: var(--s3) var(--s4); border-radius: var(--radius-s);
}
.skip-link:focus { transform: none; }

/* with JavaScript: .js-only shows; without (or if the script did not load): .nojs-only shows */
.js-only { display: none !important; }
.js .js-only { display: flex !important; }
.js .nojs-only { display: none !important; }

/* ---------- 3. Draft strip ---------- */
.draft-strip {
  background: var(--c-draft); color: var(--c-on-draft);
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; line-height: 1.2; padding: var(--s2) var(--gutter);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--btn-min); padding: var(--s3) var(--s6);
  border: var(--border-w) solid transparent; border-radius: var(--radius-btn);
  font-family: var(--btn-font); font-size: var(--btn-size); font-weight: var(--btn-weight);
  line-height: 1.1; letter-spacing: var(--display-tracking); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-main { background: var(--c-accent); color: var(--c-on-accent); }
.btn-main:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-main:active { transform: translateY(0); filter: brightness(0.97); }
.btn-step { background: var(--c-step-btn); color: var(--c-on-step-btn); }
.btn-step:hover { filter: brightness(1.15); }
.btn-back {
  background: transparent; color: var(--fg-muted); padding-inline: var(--s2); min-height: var(--btn-min);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-decoration: underline;
  text-underline-offset: 0.2em;
}
.btn[disabled] { cursor: progress; opacity: 0.75; transform: none; }

/* ---------- 5. Header ---------- */
.site-header { background: var(--bg); color: var(--fg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s3); }
.brandmark, .footer-brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--head); text-decoration: none; }
.brand-icon { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-wordmark { height: 2.5rem; width: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.75rem; line-height: 1;
  letter-spacing: var(--display-tracking); color: var(--head);
}
.call-btn {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 2.75rem; padding: var(--s2) var(--s4);
  border: var(--border-w) solid var(--rule); border-radius: var(--radius-btn);
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap;
}
.call-label { color: var(--fg-muted); font-weight: 400; }
.brandmark { min-width: 0; }
.call-btn { flex: none; }
/* On a phone the button reads "Call us" and still dials the number: logo, name and a full number do not
   fit one row at 320 to 400px. The number stays in the link for screen readers. */
@media (max-width: 34rem) {
  .site-header .call-label { color: inherit; font-weight: 600; }
  .site-header .call-number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- 6. Hero: shared copy block ---------- */
.hero { background: var(--bg); color: var(--fg); padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 7vw, 5.5rem); }
.hero-copy { max-width: 40rem; }
.eyebrow {
  font-size: var(--small-size); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: var(--s4);
}
.hero-title { font-size: var(--h1-size); }
.hero-tagline {
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1.1; color: var(--fg-muted); margin-top: var(--s4);
}
.hero-support { font-size: var(--lead-size); margin-top: var(--s4); max-width: 34rem; }
.hero-actions { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.hero-note { font-size: var(--small-size); color: var(--fg-muted); }
.is-sent .hero-actions { display: none; }   /* after sending there is nothing left to press */
.hero-points { margin-top: var(--s7); padding-top: var(--s4); border-top: var(--border-w) solid var(--rule); max-width: 34rem; }
.points-title { font-size: var(--small-size); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.points-list { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s3); font-weight: 600; }
.points-source { font-size: var(--small-size); color: var(--fg-muted); margin-top: var(--s3); }

/* 6a. split-form: words on one side, the form itself on the other */
/* phone: words, the form, then the supporting facts. wide: words and facts left, the form right. */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
.hero-split .hero-points { margin-top: 0; }
@media (min-width: 60rem) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 29rem); grid-template-rows: auto 1fr;
    column-gap: clamp(2.5rem, 6vw, 5rem); row-gap: var(--s7); align-items: start;
  }
  .hero-split .hero-copy { grid-column: 1; grid-row: 1; padding-top: var(--s6); }
  .hero-split .hero-form { grid-column: 2; grid-row: 1 / span 2; }
  .hero-split .hero-points { grid-column: 1; grid-row: 2; }
}

/* 6b. statement: one big centred line, nothing beside it */
.hero-statement { text-align: center; padding-block: clamp(3.5rem, 11vw, 8rem); }
.statement-frame { display: flex; flex-direction: column; align-items: center; }
.statement-rule { display: block; width: var(--s8); border-top: calc(var(--border-w) * 3) solid var(--head); margin-bottom: var(--s6); }
.hero-statement .hero-copy { max-width: 52rem; }
.hero-statement .hero-title { font-size: calc(var(--h1-size) * 1.12); }
.hero-statement .hero-support { margin-inline: auto; }
.hero-statement .hero-actions { justify-content: center; flex-direction: column; }
.hero-statement .hero-points { margin-inline: auto; }
.hero-statement .points-list { justify-content: center; }

/* 6c. ledger: words beside a sheet of labelled rows that add up */
.hero-ledger .hero-main, .hero-checklist .hero-main, .hero-crew-board .hero-main { min-width: 0; }
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); align-items: center; }
.ledger-sheet {
  background: var(--bg); color: var(--fg); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.ledger-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--h3-size); color: var(--head); line-height: 1.15; }
.ledger-rows { margin-top: var(--s4); }
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding-block: var(--s3); border-bottom: var(--border-w) dashed var(--rule); }
.ledger-row dd { text-align: right; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.ledger-total { border-bottom: 0; border-top: calc(var(--border-w) * 2) solid var(--head); margin-top: var(--s2); font-weight: 600; }
.ledger-total dd { color: var(--head); }
.ledger-footnote { font-size: var(--small-size); color: var(--fg-muted); margin-top: var(--s3); }
@media (min-width: 60rem) { .ledger-grid { grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr); gap: clamp(2.5rem, 6vw, 5rem); } }

/* 6d. checklist: a ticked pad first, the words after it */
.checklist-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); align-items: center; }
.checklist-pad {
  background: var(--bg); color: var(--fg); border: var(--border-w) solid var(--rule); border-radius: var(--radius-card);
  padding: clamp(1.25rem, 4vw, 2rem); order: 2;
}
.checklist-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--h3-size); color: var(--head); line-height: 1.15; }
.checklist-items { margin-top: var(--s4); display: grid; gap: var(--s3); }
.checklist-items li { display: flex; align-items: flex-start; gap: var(--s3); }
.check-box {
  flex: none; width: 1.375rem; height: 1.375rem; margin-top: 0.15em; border-radius: var(--radius-s);
  border: calc(var(--border-w) * 2) solid var(--head); position: relative;
}
.check-box::after {
  content: ""; position: absolute; left: 0.34rem; top: 0.08rem; width: 0.38rem; height: 0.72rem;
  border: solid var(--head); border-width: 0 0.16rem 0.16rem 0; transform: rotate(45deg);
}
.checklist-footnote { font-size: var(--small-size); color: var(--fg-muted); margin-top: var(--s4); }
@media (min-width: 60rem) {
  .checklist-grid { grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); }
  .checklist-pad { order: 0; }
}

/* 6e. crew-board: the words on top, a week of columns underneath, full width */
.board-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
.hero-crew-board .hero-copy { max-width: 46rem; }
.crew-board {
  background: var(--bg); color: var(--fg); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: clamp(1rem, 3vw, 1.75rem);
}
.board-title { font-size: var(--small-size); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.board-days { display: grid; gap: var(--s3); margin-top: var(--s4); grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.board-day { border-top: calc(var(--border-w) * 3) solid var(--head); padding-top: var(--s3); }
.board-day-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--h3-size); color: var(--head); line-height: 1.1; }
.board-slots { display: grid; gap: var(--s2); margin-top: var(--s3); }
.board-slots li { background: var(--c-surface); border-radius: var(--radius-s); padding: var(--s2) var(--s3); font-size: var(--small-size); font-weight: 600; }
.board-footnote { font-size: var(--small-size); color: var(--fg-muted); margin-top: var(--s4); }

/* ---------- 7. Sections ---------- */
.section { background: var(--bg); color: var(--fg); padding-block: var(--section-pad); }
.section-title { font-size: var(--h2-size); }
.section-intro { font-size: var(--lead-size); color: var(--fg-muted); margin-top: var(--s4); max-width: 38rem; }
.section-form { padding-block: clamp(2.5rem, 7vw, 5rem); }

/* steps */
.steps-list { display: grid; gap: var(--s6); margin-top: var(--s7); counter-reset: none; }
.step-card { border-top: calc(var(--border-w) * 2) solid var(--head); padding-top: var(--s4); }
.step-num {
  display: block; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(2.5rem, 8vw, 3.5rem); line-height: 1; color: var(--head); font-variant-numeric: tabular-nums;
}
.step-name { font-size: var(--h3-size); margin-top: var(--s3); }
.step-text { margin-top: var(--s2); max-width: 26rem; }
@media (min-width: 48rem) { .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); } }

/* who we are */
.who-grid { display: grid; gap: var(--s6); }
.who-body { display: grid; gap: var(--s5); max-width: 42rem; }
.who-body > p:first-child { font-size: var(--lead-size); }
.who-note { background: var(--c-tint); color: var(--c-on-tint); border-radius: var(--radius-m); padding: var(--s5); }
.who-note-title { font-size: var(--h3-size); color: var(--c-on-tint); margin-bottom: var(--s2); }
@media (min-width: 56rem) { .who-grid { grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 5rem); } }

/* plain answers */
.qa-list { display: grid; gap: var(--s6) clamp(2rem, 5vw, 4rem); margin-top: var(--s7); }
.qa { border-top: var(--border-w) solid var(--rule); padding-top: var(--s4); }
.qa-q { font-size: var(--h3-size); }
.qa-a { margin-top: var(--s2); max-width: 34rem; }
@media (min-width: 48rem) { .qa-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 8. The form ---------- */
.form-card {
  background: var(--bg); color: var(--fg); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: clamp(1.25rem, 5vw, 2rem); scroll-margin-top: var(--s4);
}
.form-title { font-size: clamp(1.75rem, 5vw, 2.125rem); }
.form-intro { color: var(--fg-muted); margin-top: var(--s1); }
.lead-form { margin-top: var(--s4); }
.progress { gap: var(--s2); margin-bottom: var(--s5); }
.progress li { flex: 1; border-top: calc(var(--border-w) * 4) solid var(--c-tint); border-radius: var(--radius-s); }
.progress li.is-on { border-top-color: var(--head); }

.step + .step { margin-top: var(--s7); }
.js .step + .step { margin-top: 0; }
/* before the script is ready, show only the first step so nothing jumps */
.js .lead-form:not(.is-ready) .step ~ .step { display: none; }
.step-legend { display: block; width: 100%; padding: 0; margin-bottom: var(--s4); }
.step-legend:focus { outline: none; }
.step-count { display: block; font-size: var(--small-size); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.step-title { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--h3-size); line-height: 1.15; color: var(--head); margin-top: var(--s1); }
.step-intro { color: var(--fg-muted); margin-bottom: var(--s4); }

/* Assessment flow (a form with data-assessment): one question per screen, then the result panel, then the
   last step. form.js marks the questions of the other screens .is-off; the panel is hidden without scripts. */
.field.is-off { display: none; }
.js .lead-form[data-assessment]:not(.is-ready) .field[data-screen]:not([data-screen="1"]) { display: none; }
.field[data-screen] > .label:focus { outline: none; }
.result-panel + .step { margin-top: var(--s7); }
.js .result-panel + .step { margin-top: 0; }
.reaction { margin-top: var(--s3); font-weight: 600; line-height: 1.4; color: var(--fg); }
.reaction:empty { display: none; }
.result-title { font-size: var(--h3-size); }
.result-title:focus { outline: none; }
.result-outcome { margin-top: var(--s4); }
.result-badge {
  display: inline-flex; align-items: center; padding: var(--s1) var(--s3); border-radius: var(--radius-chip);
  background: var(--c-tint); color: var(--c-on-tint); font-weight: 700; line-height: 1.3;
}
.result-panel .result-text { font-size: var(--lead-size); margin-top: var(--s3); }
.result-why { margin-top: var(--s5); }
.result-why-title { font-weight: 700; }
.result-reasons { margin-top: var(--s2); padding-left: 1.25rem; list-style: disc; }
.result-reasons li + li { margin-top: var(--s1); }
.result-disclaimer { margin-top: var(--s5); font-size: var(--small-size); font-weight: 600; }
.result-offer { margin-top: var(--s6); padding-top: var(--s5); border-top: var(--border-w) solid var(--rule); }
.result-offer-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--h3-size); line-height: 1.2; color: var(--head); }
.result-offer-text { margin-top: var(--s2); }
.result-stop { font-size: var(--small-size); color: var(--fg-muted); margin-top: var(--s4); }
/* the lookup step: a screen of its own between two questions; form.js writes what the lookup sent */
.lookup-panel + .step { margin-top: var(--s7); }
.js .lookup-panel + .step { margin-top: 0; }
.lookup-panel .step-count { margin-bottom: var(--s1); }
.lookup-loading { margin-top: var(--s4); font-weight: 600; }
.lookup-headline { font-size: var(--lead-size); font-weight: 700; line-height: 1.3; color: var(--head); }
.lookup-line, .lookup-list-title, .lookup-list-note, .lookup-source { margin-top: var(--s3); }
.lookup-list-title { font-weight: 700; }
.lookup-list { margin-top: var(--s2); border-top: var(--border-w) solid var(--rule); }
.lookup-list li { padding-block: var(--s2); border-bottom: var(--border-w) solid var(--rule); font-variant-numeric: tabular-nums; }
.lookup-list-note, .lookup-source { font-size: var(--small-size); color: var(--fg-muted); }
.lookup-panel .step-nav { flex-wrap: wrap; }

.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
.field { grid-column: span 6; min-width: 0; }
.field.w-half { grid-column: span 3; }
.field.w-third { grid-column: span 3; }
@media (min-width: 30rem) { .field.w-third { grid-column: span 2; } }
.label { display: block; width: 100%; padding: 0; font-weight: var(--label-weight); line-height: 1.3; color: var(--fg); margin-bottom: var(--s2); }
.optional { font-weight: 400; font-size: var(--small-size); color: var(--fg-muted); margin-left: var(--s1); }
.help { font-size: var(--small-size); color: var(--fg-muted); margin: calc(var(--s1) * -1) 0 var(--s2); }
.input {
  display: block; width: 100%; min-height: var(--control-min); padding: var(--s2) var(--s3);
  background: var(--c-card); color: var(--c-on-card);
  border: var(--border-w) solid var(--c-field-line); border-radius: var(--radius-input);
  font-size: max(1rem, var(--body-size)); line-height: 1.3;
}
.input:focus-visible { outline-offset: 1px; }
.field.has-error .input, .field.has-error .chip span { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: var(--small-size); font-weight: 600; margin-top: var(--s2); }
.field-error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* "columns" in brand.json: equal-width choices in a tidy grid */
.chips[data-cols] { display: grid; }
.chips[data-cols="1"] { grid-template-columns: minmax(0, 1fr); }
.chips[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 30rem) { .chips[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chips[data-cols] .chip, .chips[data-cols] .chip span { display: flex; width: 100%; }
.chips[data-cols] .chip span { padding-inline: var(--s2); }
.chip { position: relative; display: inline-flex; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: var(--s2) var(--s4);
  border: var(--border-w) solid var(--c-field-line); border-radius: var(--radius-chip);
  background: var(--c-card); color: var(--c-on-card); font-weight: 600; line-height: 1.2; text-align: center;
  transition: background 0.1s ease, color 0.1s ease;
}
.chip input:checked + span { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.chip input:focus-visible + span { outline: var(--focus-w) solid var(--ring); outline-offset: 2px; }
.chip:hover input:not(:checked) + span { background: var(--c-tint); color: var(--c-on-tint); }

.step-nav { align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); }
.step-nav .btn-step, .step-nav .btn-main { flex: 1 1 auto; }
.step-nav .btn-back { flex: 0 0 auto; }
/* on the smallest phones the send button gives up side padding so its label stays on one line beside Back */
@media (max-width: 24rem) { .step-send .btn-main { padding-inline: var(--s3); } }

/* the trap field: a real input moved off the page, never display:none */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.turnstile-box { margin-top: var(--s5); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s3); margin-top: var(--s6); align-items: start; }
.consent input { width: 1.375rem; height: 1.375rem; margin: 0.1rem 0 0; accent-color: var(--c-brand); }
.consent label { font-size: var(--consent-size); line-height: 1.5; color: var(--fg); }
.consent-links { grid-column: 2; font-size: var(--consent-size); margin-top: var(--s1); display: flex; gap: var(--s4); }
.consent-links a { color: var(--fg); font-weight: 600; display: inline-block; padding-block: var(--s2); }
/* shown once when the send button is pressed with the box unchecked; the next press sends */
.consent-hint {
  margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--radius-s);
  background: var(--c-tint); color: var(--c-on-tint); font-size: var(--small-size); font-weight: 600; line-height: 1.45;
}
.consent-hint a { color: inherit; }
.consent-hint:focus { outline: none; }
.form-error {
  margin-top: var(--s5); padding: var(--s3) var(--s4); border-radius: var(--radius-s);
  border: var(--border-w) solid var(--c-error); color: var(--c-error); font-weight: 600;
}
.form-error a { color: inherit; }
.notice { margin-top: var(--s5); padding: var(--s3) var(--s4); border-radius: var(--radius-s); background: var(--c-tint); color: var(--c-on-tint); font-weight: 600; }
.notice a { color: inherit; }
.privacy-line { font-size: var(--small-size); color: var(--fg-muted); margin-top: var(--s4); }

/* ---------- 9. Thank-you panel ---------- */
.thanks:focus, .thanks-title:focus { outline: none; }
.thanks-mark {
  display: block; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-brand); position: relative; margin-bottom: var(--s4);
}
.thanks-mark::after {
  content: ""; position: absolute; left: 1.08rem; top: 0.62rem; width: 0.72rem; height: 1.3rem;
  border: solid var(--c-on-brand); border-width: 0 0.24rem 0.24rem 0; transform: rotate(45deg);
}
.thanks-title { font-size: clamp(1.75rem, 5vw, 2.125rem); }
.thanks-text { font-size: var(--lead-size); margin-top: var(--s3); }
.thanks-steps-title { font-size: var(--small-size); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-top: var(--s6); }
.thanks-steps { display: grid; gap: var(--s4); margin-top: var(--s4); }
.thanks-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: start; }
.thanks-num {
  display: inline-flex; align-items: center; justify-content: center; width: 1.875rem; height: 1.875rem; border-radius: 50%;
  background: var(--c-tint); color: var(--c-on-tint); font-weight: 600; font-size: 1rem; line-height: 1;
}
.thanks-note, .thanks-call { margin-top: var(--s5); color: var(--fg-muted); }
.thanks-own-call { margin-top: var(--s4); }
.thanks-own-call a { font-weight: 600; }
.thanks-booking { margin-top: var(--s5); }
.thanks-call a { font-weight: 600; }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--bg); color: var(--fg); padding-block: var(--s7); font-size: var(--small-size); }
.footer-grid { display: grid; gap: var(--s5); }
.footer-line { font-weight: 600; font-size: 1rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); margin-top: var(--s2); color: var(--fg-muted); }
.footer-contact a { color: inherit; }
.footer-note { margin-top: var(--s2); color: var(--fg-muted); }
.footer-links { display: flex; gap: var(--s5); }
.footer-links a { color: var(--fg); font-weight: 600; font-size: 1rem; padding-block: var(--s2); }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s7); }
}

/* ---------- 11. Privacy, terms, 404 ---------- */
.legal { padding-block: clamp(2.5rem, 7vw, 5rem) var(--section-pad); }
.legal-status {
  display: inline-block; font-size: var(--small-size); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--c-tint); color: var(--c-on-tint); padding: var(--s1) var(--s3); border-radius: var(--radius-s); margin-bottom: var(--s4);
}
.legal-title { font-size: var(--h2-size); }
.legal-body { margin-top: var(--s6); display: grid; gap: var(--s4); }
.legal-body h2 { font-size: var(--h3-size); margin-top: var(--s5); }
.legal-body h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; margin-top: var(--s3); }
.legal-body ul, .legal-body ol { display: grid; gap: var(--s2); padding-left: 1.25rem; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-back { margin-top: var(--s7); font-weight: 600; }

/* Family strip: the operator's other brands, at the top of every footer. */
.family { padding-bottom: var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.family-title { font-weight: 700; letter-spacing: 0.01em; margin: 0 0 var(--s4); }
.family-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.family-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.875rem; border-radius: 10px; color: inherit; text-decoration: none;
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent); background: color-mix(in srgb, currentColor 7%, transparent); }
.family-item:hover, .family-item:focus-visible { background: color-mix(in srgb, currentColor 14%, transparent); }
.family-mark { flex: none; width: 36px; height: 36px; border-radius: 8px; background: #fff; }
.family-text { display: grid; gap: 0.125rem; min-width: 0; }
.family-name { font-weight: 700; }
.family-what { opacity: 0.86; font-size: 0.875em; }
