/* ==========================================================================
   Styles — one file, no build step.
   1. Fonts  2. Tokens (light + dark)  3. Base  4. Layout  5. Components
   6. Sections  7. Form  8. Motion  9. Legal pages
   ========================================================================== */

/* 1. Fonts — self-hosted, latin subset, variable weight. SIL Open Font License. */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: optional; /* no swap = no layout shift */
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}

/* 2. Tokens */
:root {
  color-scheme: light dark;

  --bg: #f6f2ea;
  --surface: #fffdf8;
  --surface-2: #eee8dc;
  --ink: #1d1c1a;
  --muted: #57534b;
  --line: #ddd5c6;
  --line-strong: #a89f8d;
  --accent: #1f5a4b;
  --accent-hover: #164336;
  --accent-ink: #ffffff;
  --accent-soft: #e0eae3;
  --mess: #8f8573;
  --danger: #a3361f;
  --invert-bg: #1f2a25;
  --invert-ink: #f3efe6;
  --invert-muted: #c3c9c0;
  --invert-accent: #9ed2bf;
  --redact: #2b2a27;

  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --max: 1100px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --header-h: 4rem;
  --shadow: 0 1px 2px rgb(40 30 10 / 0.05), 0 8px 24px -12px rgb(40 30 10 / 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131512;
    --surface: #1b1d1a;
    --surface-2: #232621;
    --ink: #ece7dc;
    --muted: #aaa496;
    --line: #2f332d;
    --line-strong: #5a6055;
    --accent: #8cc8b1;
    --accent-hover: #a9d8c6;
    --accent-ink: #0e1a15;
    --accent-soft: #1d2d27;
    --mess: #77726a;
    --danger: #f0907a;
    --invert-bg: #e9e4d8;
    --invert-ink: #1a1c19;
    --invert-muted: #4c4a44;
    --invert-accent: #1f5a4b;
    --redact: #d9d3c6;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  }
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--accent); color: var(--accent-ink); }
strong { font-weight: 650; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* 4. Layout */
.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--surface-2); border-top: 0 !important; }
.section--tint + .section { border-top: 0; }

.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.lede { font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); }
.lede:last-child { margin-bottom: 0; }

/* 5. Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }
.btn--primary:active { transform: translateY(1px); }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.text-link::after { content: "→"; transition: transform 0.15s ease; }
.text-link:hover::after { transform: translateX(3px); }

.pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--surface);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); text-decoration: none; }
.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 1.75rem; width: auto; }
.site-footer .logo img { height: 1.625rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav__links { display: none; list-style: none; gap: clamp(1rem, 2.5vw, 1.75rem); }
.site-nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.96875rem;
  font-weight: 520;
}
.site-nav__links a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 46rem) { .site-nav__links { display: flex; } }

/* 6. Sections ------------------------------------------------------------ */

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.08fr 1fr; } }
.hero h1 { max-width: 21ch; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.1rem); }
.nowrap { white-space: nowrap; }
.hero__sub { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero__note { margin: 1.5rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.hero__figure { margin: 0; }
.hero__figure figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* Shared diagram styling (inline SVG uses page tokens, so it follows dark mode) */
.diagram { width: 100%; height: auto; aspect-ratio: 600 / 440; overflow: visible; }
.diagram .frame { fill: var(--surface); stroke: var(--line); }
.diagram .node { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.25; }
.diagram .node--clean { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.diagram .node--soft { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.diagram .label { font-family: var(--font-sans); font-size: 13px; font-weight: 550; fill: var(--ink); }
.diagram .label--small { font-size: 11.5px; font-weight: 500; fill: var(--muted); }
.diagram .heading { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; fill: var(--muted); }
.diagram .mess { fill: none; stroke: var(--mess); stroke-width: 1.4; }
.diagram .mess--dash { stroke-dasharray: 4 4; }
.diagram .flow { fill: none; stroke: var(--accent); stroke-width: 1.75; }
.diagram .arrow-mess { fill: var(--mess); }
.diagram .arrow-flow { fill: var(--accent); }
.diagram .divider { stroke: var(--line); stroke-dasharray: 2 5; }
.diagram .num { font-family: var(--font-serif); font-size: 13px; font-weight: 700; fill: var(--accent); }

/* Recognition */
.symptoms { display: grid; gap: 1rem; list-style: none; }
@media (min-width: 40rem) { .symptoms { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.symptom {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 3.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.35;
}
.symptom::before {
  content: "“";
  position: absolute;
  left: 1.1rem; top: 0.9rem;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
}
.symptoms-close { margin: 2rem 0 0; max-width: 42rem; color: var(--muted); }

/* Honest filter — the main trust element, so it is inverted and large */
.honest {
  background: var(--invert-bg);
  color: var(--invert-ink);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 56rem) { .honest { grid-template-columns: 0.9fr 1.1fr; } }
.honest .eyebrow { color: var(--invert-muted); }
.honest h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 0.5em; }
.honest__intro { color: var(--invert-muted); font-size: 1.125rem; margin: 0; }
.honest__list { list-style: none; display: grid; gap: 1.25rem; }
.honest__list li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--invert-ink) 16%, transparent);
}
.honest__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.honest__list svg { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; stroke: var(--invert-accent); }
.honest__list strong { display: block; font-size: 1.0625rem; margin-bottom: 0.2rem; }
.honest__list span { color: var(--invert-muted); }

/* How it works */
.stages { display: grid; gap: 1.25rem; list-style: none; counter-reset: stage; }
@media (min-width: 58rem) { .stages { grid-template-columns: repeat(3, 1fr); } }
.stage { display: flex; flex-direction: column; }
.stage__num {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
}
.stage h3 { margin-bottom: 0.35rem; }
.stage__summary { color: var(--muted); }
.stage dl { margin: 0.5rem 0 0; display: grid; gap: 1rem; }
.stage dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.stage dd { margin: 0; }
.stage__credit {
  margin-top: auto;
  padding-top: 1.25rem;
}
.stage__credit p {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 0.9375rem;
  font-weight: 560;
}

/* AI / rules / people */
.trio { display: grid; gap: 1.25rem; }
@media (min-width: 58rem) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio h3 { margin-bottom: 0.7rem; }
.trio p { margin: 0; color: var(--muted); }
.trio .ticks { color: var(--ink); }

/* Diagnostic detail */
.diag__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
@media (min-width: 58rem) { .diag__grid { grid-template-columns: 1.1fr 0.9fr; } }
.deliverables { list-style: none; display: grid; gap: 1.5rem; counter-reset: d; }
.deliverables li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  counter-increment: d;
}
.deliverables li::before {
  content: counter(d);
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 650;
}
.deliverables h3 { font-size: 1.15rem; margin: 0.35rem 0 0.25rem; }
.deliverables p { margin: 0; color: var(--muted); }
.sample { position: relative; margin: 0; }
@media (min-width: 58rem) { .sample { position: sticky; top: calc(var(--header-h) + 2rem); } }
.sample__page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  transform: rotate(-1deg);
}
.sample__page svg { width: 100%; height: auto; aspect-ratio: 400 / 500; }
.sample__badge {
  position: absolute;
  top: -0.85rem; right: 1rem;
  z-index: 1;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sample figcaption { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }
.sample .r-ink { fill: var(--redact); }
.sample .r-line { fill: var(--line); }
.sample .r-accent { fill: var(--accent); }
.sample .r-soft { fill: var(--accent-soft); }
.sample .r-text { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; fill: var(--muted); }
.sample .r-title { font-family: var(--font-serif); font-size: 20px; font-weight: 650; fill: var(--ink); }
.sample .r-stroke { fill: none; stroke: var(--line); }

/* Illustrative example */
.example { padding: clamp(1.5rem, 4vw, 2.75rem); }
.example__head { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.example__head h3 { margin: 0; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); }
.example__ba { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 48rem) { .example__ba { grid-template-columns: 1fr 1fr; } }
.ba { border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.ba--before { background: var(--surface-2); }
.ba--after { background: var(--accent-soft); }
.ba h4 { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.ba p { margin: 0; }
.example__meta { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 48rem) { .example__meta { grid-template-columns: 1fr 1fr; } }
.example__meta h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.example__meta p { margin: 0; color: var(--muted); }
.ticks { list-style: none; display: grid; gap: 0.4rem; color: var(--muted); }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.6rem; height: 2px; background: var(--accent); }

/* Founding clients */
.founding { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .founding { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.founding__offer { border: 2px solid var(--accent); }
.founding__slots { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; color: var(--accent); margin-bottom: 0.5rem; }
.founding__offer .ticks { color: var(--ink); margin: 1rem 0 1.5rem; }

/* Results (hidden until real case studies exist) */
.results { display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 48rem) { .results { grid-template-columns: repeat(2, 1fr); } }
.result blockquote { margin: 0 0 1rem; font-family: var(--font-serif); font-size: 1.2rem; }
.result__metric { font-family: var(--font-serif); font-size: 2rem; color: var(--accent); }

/* About */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 48rem) { .about { grid-template-columns: minmax(13rem, 18rem) 1fr; } }
.about:has(> .about__photo[hidden]) { grid-template-columns: 1fr; }   /* no photo yet: text only */
.about__photo {
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.about__name { margin-bottom: 0.1rem; }
.about__role { color: var(--muted); margin-bottom: 1.5rem; }
.about__body { max-width: 40rem; }

/* Pricing */
.pricing { text-align: center; max-width: 46rem; margin-inline: auto; }
.pricing__statement { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); margin-bottom: 1rem; }
.pricing__statement em { font-style: normal; color: var(--accent); white-space: nowrap; }
.pricing__parts { display: grid; gap: 0.75rem; list-style: none; margin: 2rem 0 2.5rem; text-align: left; }
@media (min-width: 40rem) { .pricing__parts { grid-template-columns: repeat(3, 1fr); } }
.pricing__parts li { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.96875rem; }
.pricing__parts strong { display: block; font-family: var(--font-serif); font-size: 1.1rem; }

/* FAQ accordion */
.faq { max-width: 50rem; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 620; letter-spacing: 0; }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 0.25rem;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.faq__q:hover { color: var(--accent); }
.faq__icon { flex: none; width: 1.25rem; height: 1.25rem; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0.85rem; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 0.25rem 1.4rem; color: var(--muted); max-width: 44rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* 7. Final CTA + form */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 58rem) { .contact { grid-template-columns: 0.85fr 1.15fr; } }
.next-steps { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.5rem; counter-reset: n; }
.next-steps li { position: relative; padding-left: 1.75rem; counter-increment: n; color: var(--muted); }
.next-steps li::before { content: counter(n) "."; position: absolute; left: 0; font-family: var(--font-serif); font-weight: 700; color: var(--accent); }

.form { display: grid; gap: 1.25rem; }
@media (min-width: 36rem) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full, .form__footer, .form__alert { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.96875rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: 0.875rem; color: var(--muted); }
.field__error { font-size: 0.9rem; font-weight: 550; color: var(--danger); }
.field__error:empty { display: none; }
.field__error::before { content: "↑ "; }

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

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__privacy { margin: 0; font-size: 0.875rem; color: var(--muted); flex: 1 1 16rem; }
.form__alert { padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--danger); color: var(--ink); background: var(--surface); }
.form__alert p { margin: 0; }

.form-success { padding: clamp(1.5rem, 4vw, 2.5rem); border: 2px solid var(--accent); }
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.form-success h3 { font-size: 1.6rem; }
.form-success p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.site-footer__grid { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { margin-bottom: 0.75rem; }
.site-footer__legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; }

/* 8. Motion — reveal only when JS is on and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* 9. Legal / utility pages */
.prose { max-width: 44rem; padding-block: clamp(3rem, 7vw, 5rem); }
.prose h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }
.prose address { font-style: normal; margin-bottom: 1em; }
.template-note {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--danger);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

@media print {
  .site-header, .skip-link, .form, .hero__figure { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Holding page (served instead of the site while siteMode is "holding") */
.holding { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 2rem var(--gutter); text-align: center; }
.holding__inner { max-width: 32rem; }
.holding .logo { justify-content: center; margin-bottom: 2.5rem; }
.holding .logo img { height: 2.25rem; }
.holding h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 0.5em; }
.holding p { color: var(--muted); margin: 0; }
