/* site.css: latchlineworks.com. Built ON core/static/ui-tokens.css (colours,
   radii, spacing, fonts come from there), so the site matches the hub.
   Mobile first: base rules are for phones; min-width queries add room.
   No hex values here: every colour is a token or derived from one. */

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
/* Type scale per PLAN.md 4.3: display 2.5 -> 3.5rem, H2 1.875 -> 2.5rem, H3 1.25rem, body 1.0625rem. */
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--sp-3); letter-spacing: -0.02em; text-wrap: balance; }
.lede, .section-sub { text-wrap: pretty; }
h1 { font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 1.55rem + 1.4vw, 2.5rem); font-weight: 720; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 var(--sp-4); }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 0.05em 0.35em; border-radius: 4px; }

/* Site-level tokens derived from the shared ones. */
:root, html[data-theme='light'] {
  --link: var(--accent);
  --muted: var(--ink-2);
  --hero-glow: color-mix(in srgb, var(--accent) 16%, transparent);
  --tint: color-mix(in srgb, var(--accent) 5%, var(--bg));
}
html[data-theme='dark'] {
  /* The raw accent is too dark for small text on the dark background. */
  --link: color-mix(in srgb, var(--accent) 55%, white);
  --hero-glow: color-mix(in srgb, var(--accent) 26%, transparent);
  --tint: color-mix(in srgb, var(--accent) 7%, var(--bg));
}

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.prose { max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* ---- buttons: 48px minimum tap target everywhere ------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.25rem; border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--logo-ink, var(--accent-ink)); font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 0.5rem 1.25rem -0.5rem color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 3.25rem; padding: 0.85rem 1.5rem; font-size: 1.0625rem; }
.btn-sm { min-height: 3rem; padding: 0.6rem 1.1rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: var(--sp-5) 0 var(--sp-4); }
.cta-row .btn { flex: 1 1 14rem; }
.link-quiet { color: var(--muted); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 3rem; }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.125rem; min-height: 3rem; }
.logo-tile {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.6rem;
  background: var(--accent); color: var(--logo-ink, var(--accent-ink)); flex: none;
}
.logo-glyph { height: 78%; width: auto; fill: currentColor; }
.nav-desktop { display: none; }
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 3rem; min-width: 3rem;
  padding: 0 0.9rem; border: 1px solid var(--line-2); border-radius: var(--radius-pill); cursor: pointer; font-weight: 600;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(16rem, calc(100vw - 2.5rem));
  display: grid; gap: 0.25rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.nav-mobile nav a:not(.btn) { display: flex; align-items: center; min-height: 3rem; padding: 0 0.75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-mobile nav a:not(.btn):hover, .nav-mobile nav a[aria-current] { background: var(--surface-2); }
.nav-mobile nav .btn { margin-top: 0.25rem; }
@media (min-width: 48rem) {
  .nav-mobile { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
  .nav-desktop a:not(.btn) { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 0.9rem; color: var(--ink-2); text-decoration: none; font-weight: 600; border-radius: var(--radius-pill); }
  .nav-desktop a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
  .nav-desktop a[aria-current]:not(.btn) { color: var(--ink); }
  .nav-desktop .btn { margin-left: 0.5rem; }
}

/* ---- hero: centred, product visual directly below (PLAN.md 4.2) ----------- */
.hero { position: relative; padding: 2.5rem 0 3.5rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 30% -30% auto; height: 40rem; z-index: -1;
  background: radial-gradient(closest-side, var(--hero-glow), transparent); pointer-events: none;
}
.hero-inner { display: grid; gap: 2.5rem; justify-items: center; text-align: center; }
.hero-copy { max-width: 46rem; display: grid; justify-items: center; }
.hero-copy .lede { margin-inline: auto; }
.hero-copy .cta-row { justify-content: center; width: 100%; }
.hero-copy .cta-row .btn { flex: 0 1 auto; }
@media (max-width: 30rem) { .hero-copy .cta-row .btn { flex: 1 1 100%; } }
.hero-visual { width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: var(--sp-4); padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--link); font-size: 0.875rem; font-weight: 650;
}
.lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); color: var(--muted); max-width: 38rem; }
.fine { font-size: 0.875rem; color: var(--muted); margin: 0; }
@media (min-width: 64rem) {
  .hero { padding: 5.5rem 0 6rem; }
  .hero-inner { gap: 3.5rem; }
}

/* ---- sample phone (from the hub thread view) ------------------------------ */
.phone {
  margin: 0 auto; width: 100%; max-width: 23rem; background: var(--surface); border: 1px solid var(--line); text-align: left;
  border-radius: 1.75rem; box-shadow: var(--shadow-lg), 0 2rem 4rem -2rem color-mix(in srgb, var(--accent) 40%, transparent);
  overflow: hidden;
}
.phone-head { padding: 0.75rem 1.25rem 0.85rem; border-bottom: 1px solid var(--line); background: var(--surface-2); text-align: center; display: grid; justify-items: center; gap: 0.35rem; }
.phone-who { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.phone-sub { font-size: 0.8125rem; color: var(--muted); margin-top: -0.3rem; }
.thread { list-style: none; margin: 0; padding: 1rem; display: grid; gap: 0.6rem; }
.msg { display: grid; gap: 0.2rem; max-width: 85%; }
.msg.in { justify-self: start; }
.msg.out { justify-self: end; text-align: right; }
.bubble { display: block; padding: 0.6rem 0.85rem; border-radius: 1.1rem; font-size: 0.9375rem; line-height: 1.45; text-align: left; }
.msg.in .bubble { background: var(--bubble-in); color: var(--bubble-in-ink); border-bottom-left-radius: 0.35rem; }
.msg.out .bubble { background: var(--accent); color: var(--logo-ink, var(--bubble-out-ink)); border-bottom-right-radius: 0.35rem; }
.meta { font-size: 0.75rem; color: var(--muted); padding: 0 0.4rem; }
.sample-tag {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: var(--radius-pill);
  background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-bd); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .msg { animation: msg-in 0.5s ease both; animation-delay: calc(0.35s + var(--i) * 0.45s); }
  @keyframes msg-in { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
}

/* ---- sample dashboard (from the hub overview tiles) ------------------------ */
.dash { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.1rem; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.dash-title { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.9375rem; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.75rem; }
.stat-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; color: var(--muted); }
.stat-label .ico { color: var(--link); }
.stat-value { font-size: 1.625rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-chart { margin-top: 1rem; }
.chart-label { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.4rem; }
.dash-chart svg { width: 100%; height: 6rem; display: block; }
.dash-chart rect { fill: var(--accent); opacity: 0.85; }
.dash-chart rect.alt { opacity: 1; }

/* ---- sections ---------------------------------------------------------------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-flush { padding-top: 0; }
.section-slim { padding: 1.25rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-title { margin-bottom: var(--sp-4); }
.section-sub { color: var(--muted); font-size: 1.125rem; }
@media (min-width: 64rem) { .section-slim { padding: 1.5rem 0; } }
.page-hero { padding: 3rem 0 2rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: -40% -20% auto; height: 26rem; z-index: -1; background: radial-gradient(closest-side, var(--hero-glow), transparent); }
.page-hero-tight { padding-bottom: 1.5rem; }
@media (min-width: 64rem) { .page-hero { padding: 5rem 0 3rem; } }

.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pain { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.pain > .ico { width: 1.75rem; height: 1.75rem; color: var(--link); margin-top: 0.1rem; }
.pain p { margin: 0; color: var(--muted); }
@media (min-width: 48rem) { .pain-list { grid-template-columns: repeat(3, 1fr); } .pain { flex-direction: column; } }

.tiles { display: grid; gap: 1rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.2s ease, transform 0.2s ease; }
.tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.tile p { margin: 0; color: var(--muted); }
.tile-ico { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--accent-soft); color: var(--link); margin-bottom: 1rem; }
.tile-ico .ico { width: 1.4rem; height: 1.4rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: s; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step p { margin: 0; color: var(--muted); }
.step h3 { margin-bottom: 0.25rem; }
.step-n { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); color: var(--logo-ink, var(--accent-ink)); font-weight: 750; }
@media (min-width: 64rem) {
  .steps:not(.steps-tight) { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps:not(.steps-tight) .step { flex-direction: column; }
}
.steps-tight { gap: 1.25rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split-rev .split-copy { order: 2; }
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checks li > .ico { color: var(--ok-fg); width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; }
.checks-inline { margin-top: var(--sp-4); gap: 0.6rem; }

.price-teaser { display: grid; gap: 1.5rem; align-items: center; }
.price-teaser .section-title, .price-teaser .section-sub { margin-bottom: 0.5rem; }
@media (min-width: 48rem) { .price-teaser { grid-template-columns: 1fr auto; } }

.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: 0.75rem 1.25rem; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--link); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

.cta-band { padding: 3.5rem 0; }
.cta-inner {
  text-align: center; padding: 2.5rem 1.5rem; border-radius: 1.5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}
.cta-inner p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.cta-inner .cta-row { justify-content: center; margin-bottom: 0; }
.cta-inner .cta-row .btn { flex: 0 1 auto; }
@media (max-width: 30rem) { .cta-inner .cta-row .btn { flex: 1 1 100%; } }
@media (min-width: 64rem) { .cta-band { padding: 2rem 0 6rem; } .cta-inner { padding: 4rem 2rem; } }

/* ---- how it works ------------------------------------------------------------ */
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--line-2); display: grid; gap: 1.75rem; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: calc(-1.5rem - 7px); top: 0.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.timeline h3 .ico { color: var(--link); }
.timeline p { margin: 0; color: var(--muted); }
.coming-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.coming-list li { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--muted); }
.tag-coming {
  display: inline-block; margin-right: 0.6rem; padding: 0.1rem 0.55rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; background: var(--info-bg); color: var(--info-fg); border: 1px solid var(--info-bd); vertical-align: 0.1em;
}

/* ---- pricing ---------------------------------------------------------------- */
.price-wrap { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 64rem) { .price-wrap { grid-template-columns: 1.4fr 1fr; gap: 2rem; } }
.price-card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 1.5rem; padding: 1.5rem; box-shadow: var(--shadow-lg); }
@media (min-width: 48rem) { .price-card { padding: 2.25rem; } }
.price-head h2 { margin-bottom: 0.25rem; }
.price-figures { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin: 1.25rem 0 1.5rem; }
.price-figures > div { display: grid; }
.price-num { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-unit { color: var(--muted); font-size: 0.9375rem; margin-top: 0.35rem; }
.price-plus { font-size: 1.75rem; color: var(--muted); padding-bottom: 1.4rem; }
.list-title { margin: 1.75rem 0 0.75rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.incl li { display: flex; gap: 0.6rem; align-items: flex-start; }
.incl li > .ico { color: var(--ok-fg); margin-top: 0.2rem; }
.incl-coming li { color: var(--muted); align-items: center; }
.price-side { display: grid; gap: 1rem; }
.note-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.note-card h3, .card-title { display: flex; align-items: center; gap: 0.5rem; }
.note-card h3 .ico, .card-title .ico { color: var(--link); }
.note-card p:last-child { margin: 0; }
.note-card p { color: var(--muted); }

/* ---- demo page ----------------------------------------------------------------- */
.demo-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 64rem) { .demo-grid { grid-template-columns: 1.15fr 1fr; gap: 2rem; } }
.scheduler-card, .form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem; box-shadow: var(--shadow); }
@media (min-width: 48rem) { .scheduler-card, .form-card { padding: 1.75rem; } }
.card-title { font-size: 1.25rem; }
/* Hero text shares the card grid's left edge; only its line length is capped. */
.demo-hero > * { max-width: 46rem; }
/* Sized for the real Cal.com inline embed (roughly 600px+ tall), so the
   layout doesn't change when the embed replaces the placeholder. */
.scheduler-mount { min-height: 12rem; display: grid; }
.scheduler-placeholder { display: grid; place-content: center; text-align: center; min-height: 12rem; padding: 1.5rem; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
@media (min-width: 64rem) {
  .scheduler-card { position: sticky; top: 5.5rem; }
  .scheduler-mount, .scheduler-placeholder { min-height: 34rem; }
}
.scheduler-placeholder p { margin: 0 0 0.5rem; }
/* display:grid above beats the UA [hidden] rule; scheduler.js hides the notice once the embed mounts. */
.scheduler-placeholder[hidden] { display: none; }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.trust-strip span { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-strip .ico { color: var(--link); }

/* ---- forms: 16px inputs (no iOS zoom), 48px controls ---------------------------- */
.form { display: grid; gap: 1.1rem; margin-top: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field > label:not(.consent-check) { font-weight: 650; font-size: 0.9375rem; }
.opt { font-weight: 500; color: var(--muted); }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder { color: var(--muted); opacity: 0.75; }
.consent-check { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 0.35rem; padding: 0.85rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.form-error { margin: 0; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--bad-bg); color: var(--bad-fg); border: 1px solid var(--bad-bd); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- legal pages ------------------------------------------------------------------ */
.legal h2 { font-size: 1.375rem; margin-top: 2.25rem; }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; margin: 0 0 1rem; }
.legal .highlight { padding: 1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; }
.legal a { overflow-wrap: anywhere; }

/* ---- footer ----------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-brand p { margin: 0.5rem 0 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.footer-links a { display: flex; align-items: center; min-height: 3rem; color: var(--ink-2); text-decoration: none; font-weight: 550; }
.footer-links a[href^="mailto:"] { grid-column: 1 / -1; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .footer-links { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 2.5rem; } .footer-links a { white-space: nowrap; } .footer-links a[href^="mailto:"] { grid-column: auto; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1fr auto; } .footer-links { justify-content: end; } }

/* ---- motion: scroll-in reveal, pure CSS (scroll-driven animation) -----------
   Where animation-timeline is supported, cards fade/slide in as they enter the
   viewport. Everywhere else, and for anyone who asks for reduced motion,
   content is simply visible. Nothing depends on JS, so no capture, crawler or
   print view can catch content in a hidden state. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes reveal-in { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
  }
}
