/*
 * AgentLaunchpad landing page — Bloom website layer.
 * Every colour, radius, shadow, size and duration comes from tokens.css (a verbatim copy of
 * packages/ui/src/tokens/tokens.css). The few landing-only values are declared as tokens below.
 */

:root {
  --lp-gutter: clamp(16px, 4vw, 44px);
  --lp-topbar-h: 64px;
  --lp-section-y: var(--space-8);
  --lp-step: 56px;
  --lp-feature-min-h: 260px;
  --lp-chip-h: 34px;
  --lp-petal: 30% 100% 30% 100%;
}

@media (max-width: 1079px) {
  :root { --lp-section-y: var(--space-7); }
}

@media (max-width: 639px) {
  :root {
    --lp-topbar-h: 56px;
    --lp-step: 48px;
    --lp-feature-min-h: 0px;
  }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--lp-topbar-h) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans-stack);
  font-size: var(--t-md);
  line-height: var(--t-md-lh);
  font-weight: var(--fw-regular);
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.skip-link {
  position: absolute;
  left: var(--lp-gutter);
  top: var(--space-2);
  z-index: var(--z-toast);
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--ground);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--pill);
  font-weight: var(--fw-semibold);
  font-size: var(--t-sm);
}
.skip-link:focus { transform: none; }

/* ---------- type ---------- */

.t-3xl { font-size: var(--t-3xl); line-height: var(--t-3xl-lh); letter-spacing: var(--t-3xl-tracking); }
.t-2xl { font-size: var(--t-2xl); line-height: var(--t-2xl-lh); letter-spacing: var(--t-2xl-tracking); }
.t-xl  { font-size: var(--t-xl);  line-height: var(--t-xl-lh);  letter-spacing: var(--t-xl-tracking); }
.t-lg  { font-size: var(--t-lg);  line-height: var(--t-lg-lh);  letter-spacing: var(--t-lg-tracking); }
.t-sm  { font-size: var(--t-sm);  line-height: var(--t-sm-lh); }
.t-xs  { font-size: var(--t-xs);  line-height: var(--t-xs-lh); }
.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }
.lede { max-width: var(--measure-lede); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h-md);
  padding: 0 var(--space-5);
  border-radius: var(--pill);
  border: var(--border-2) solid transparent;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--d-base) var(--ease-out),
    background-color var(--d-base) var(--ease),
    color var(--d-base) var(--ease),
    border-color var(--d-base) var(--ease);
}
.btn:hover { transform: translateY(var(--lift-button)); }
.btn:active { transform: translateY(var(--press)); }
.btn-lg { min-height: var(--control-h-lg); padding: 0 var(--space-6); font-size: var(--t-md); }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ground); }
.btn-ink { background: var(--ink); color: var(--ground); }

.btn[aria-disabled="true"] { cursor: progress; }
.btn[aria-disabled="true"]:hover { transform: none; }

.btn { position: relative; }
.btn[data-loading] > span:not(.spinner) { visibility: hidden; }
.btn .spinner {
  display: none;
  position: absolute;
  top: calc(50% - var(--icon-sm) / 2);
  left: calc(50% - var(--icon-sm) / 2);
  width: var(--icon-sm);
  height: var(--icon-sm);
  border-radius: var(--pill);
  border: var(--border-2) solid currentColor;
  border-right-color: transparent;
  animation: lp-spin 700ms linear infinite;
}
.btn[data-loading] .spinner { display: inline-block; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn .spinner { animation-duration: 2s; }
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  background: var(--topbar-bg);
  backdrop-filter: blur(var(--topbar-blur));
  -webkit-backdrop-filter: blur(var(--topbar-blur));
  border-bottom: var(--border-1) solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--lp-topbar-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-weight: var(--fw-bold);
  font-size: var(--t-lg);
  letter-spacing: var(--wordmark-tracking);
  border-radius: var(--r-xs);
  min-height: var(--touch-min);
}
.petal {
  display: inline-block;
  flex: none;
  width: var(--petal-size);
  height: var(--petal-size);
  border-radius: var(--lp-petal);
  background: var(--primary);
}
.topnav { margin-left: auto; }
.topnav ul { display: flex; gap: var(--space-1); }
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--nav-pill-h);
  padding: 0 var(--space-4);
  border-radius: var(--pill);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-2);
  transition: background-color var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.topnav a:hover { background: var(--sand); color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.topnav + .topbar-actions { margin-left: 0; }

@media (max-width: 1079px) {
  .topnav { display: none; }
}
@media (max-width: 639px) {
  .topbar-cta { display: none; }
  .brand { font-size: var(--t-md); }
  .topbar-inner { gap: var(--space-2); }
}

/* theme control: segmented pill, shown only when the script can run */
.theme-switch { display: none; }
.js .theme-switch {
  display: inline-flex;
  border: 0;
  margin: 0;
  padding: var(--space-1);
  gap: 0;
  background: var(--sand);
  border-radius: var(--pill);
}
.theme-switch legend { padding: 0; }
.theme-switch label { position: relative; display: inline-flex; }
.theme-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.theme-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--control-h-sm);
  min-width: var(--control-h-sm);
  padding: 0 var(--space-3);
  border-radius: var(--pill);
  font-size: var(--t-xs);
  font-weight: var(--fw-medium);
  color: var(--ink-2);
  transition: background-color var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.theme-switch svg { width: var(--icon-sm); height: var(--icon-sm); flex: none; }
.theme-switch input:hover + span { color: var(--ink); }
.theme-switch input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-rest);
}
.theme-switch input:focus-visible + span {
  outline: var(--focus-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}
@media (max-width: 639px) {
  .theme-switch .label-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .theme-switch span { padding: 0 var(--space-2); }
}

/* ---------- sections ---------- */

.section { padding-block: var(--lp-section-y); }
.section-head { margin-bottom: var(--space-6); }
.section-head p { margin-top: var(--space-3); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--lp-chip-h);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--pill);
  font-size: var(--t-sm);
  font-weight: var(--fw-semibold);
  background: var(--surface);
  color: var(--ink);
}
.chip-sand { background: var(--sand); color: var(--ink-2); }
.chip-sm { min-height: var(--chip-h); padding: 0 var(--space-3); font-size: var(--t-xs); font-weight: var(--fw-medium); }

/* ---------- hero ---------- */

.hero { padding-top: var(--space-5); }
.slab {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-radius: var(--r-lg);
  padding: var(--space-6);
}
@media (min-width: 768px) { .slab { padding: var(--space-7); } }
@media (min-width: 1080px) { .hero .slab { padding: var(--space-8) var(--space-7); } }

.slab-petal {
  position: absolute;
  top: calc(-1 * var(--space-6));
  right: 0;
  width: var(--ring-md);
  height: var(--ring-md);
  transform: translateX(33%);
  border-radius: var(--lp-petal);
  background: var(--primary);
  opacity: .9;
}
@media (min-width: 768px) {
  .slab-petal { width: calc(var(--ring-md) * 1.4); height: calc(var(--ring-md) * 1.4); }
}

.hero-grid { position: relative; display: grid; gap: var(--space-6); }
@media (min-width: 1080px) {
  .hero-grid { gap: var(--space-7); }
  .hero .shot { max-width: 1040px; }
}
.hero h1 { margin-top: var(--space-4); max-width: 22ch; }
.hero .lede { margin-top: var(--space-4); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.shot { position: relative; }
.shot-frame {
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-raise);
  aspect-ratio: 16 / 10;
}
.shot-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-light { display: var(--logo-light-display) !important; }
.shot-dark { display: var(--logo-dark-display) !important; }
.shot figcaption { margin-top: var(--space-2); }

/* ---------- journey ---------- */

.overview-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: var(--pill);
  background: var(--surface);
  box-shadow: var(--shadow-rest);
  font-size: var(--t-sm);
}
.overview-pill strong { font-weight: var(--fw-semibold); }
@media (max-width: 639px) {
  .overview-pill { border-radius: var(--r-sm); }
}

.stages {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
@media (min-width: 1080px) { .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stage {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--card-pad);
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-rest);
}
.step {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--lp-step);
  height: var(--lp-step);
  border-radius: var(--pill);
  font-size: var(--t-lg);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.step-1 { background: var(--stage-1); color: var(--on-stage-1); box-shadow: inset 0 0 0 var(--border-1) var(--line); }
.step-2 { background: var(--stage-2); color: var(--on-accent-2); }
.step-3 { background: var(--stage-3); color: var(--on-stage-3); }
.step-4 { background: var(--stage-4); color: var(--on-stage-4); }
.step-5 { background: var(--stage-5); color: var(--on-stage-5); }
.step-6 { background: var(--stage-6); color: var(--on-stage-6); }
.stage h3 { font-size: var(--t-lg); line-height: var(--t-lg-lh); letter-spacing: var(--t-lg-tracking); }
.stage p { margin-top: var(--space-1); color: var(--ink-2); }
.stage .mods { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.stage .mods li {
  display: inline-flex;
  align-items: center;
  min-height: var(--chip-h);
  padding: 0 var(--space-3);
  border-radius: var(--pill);
  background: var(--sand);
  font-size: var(--t-xs);
  font-weight: var(--fw-medium);
}

/* ---------- modules ---------- */

.modules {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.module {
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-rest);
  border: var(--border-1) solid var(--line);
}
.module-stage {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--t-xs);
  font-weight: var(--fw-medium);
  color: var(--ink-2);
}
.module-stage .dot {
  width: var(--space-3);
  height: var(--space-3);
  border-radius: var(--pill);
}
.module h3 { margin-top: var(--space-3); font-size: var(--t-lg); line-height: var(--t-lg-lh); letter-spacing: var(--t-lg-tracking); }
.module p { margin-top: var(--space-2); color: var(--ink-2); }
.module .outputs { margin-top: auto; padding-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.module .outputs li {
  display: inline-flex;
  align-items: center;
  min-height: var(--chip-h);
  padding: 0 var(--space-3);
  border-radius: var(--pill);
  background: var(--sand);
  font-size: var(--t-xs);
  font-weight: var(--fw-medium);
}
.module-wide { background: var(--sand); border-color: transparent; box-shadow: none; }
@media (min-width: 1080px) {
  .module-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--space-6); }
  .module-wide > div { flex: 1; }
  .module-wide .outputs { margin-top: 0; padding-top: 0; flex: none; }
}

/* ---------- feature cards ---------- */

.features {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: var(--lp-feature-min-h);
  padding: var(--space-5);
  border-radius: var(--r);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.feature:hover { transform: translateY(var(--lift-card)); box-shadow: var(--shadow-raise); }
.feature h3 { font-size: var(--t-xl); line-height: var(--t-xl-lh); letter-spacing: var(--t-xl-tracking); }
.feature .petal { width: var(--icon-lg); height: var(--icon-lg); background: currentColor; margin-top: auto; opacity: .85; }
.tone-primary { background: var(--primary); color: var(--on-primary); }
.tone-accent-1 { background: var(--accent-1); color: var(--on-accent-1); }
.tone-accent-2 { background: var(--accent-2); color: var(--on-accent-2); }
.tone-accent-3 { background: var(--accent-3); color: var(--on-accent-3); }

/* ---------- spine / split ---------- */

.split { display: grid; gap: var(--space-6); }
@media (min-width: 1080px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: var(--space-7); }
}
.ticks { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
html:not(.js) #interest-form { display: none; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); }
.ticks .petal { width: var(--icon-md); height: var(--icon-md); margin-top: var(--space-1); }
.ticks h3 { font-size: var(--t-lg); line-height: var(--t-lg-lh); letter-spacing: var(--t-lg-tracking); }
.ticks p { margin-top: var(--space-1); color: var(--ink-2); }

/* ---------- audience ---------- */

.audience { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .audience { grid-template-columns: 1.3fr 1fr; } }
.audience-card {
  padding: var(--space-6);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-rest);
}
.audience-card.alt { background: var(--sand); box-shadow: none; }
.audience-card h3 { font-size: var(--t-xl); line-height: var(--t-xl-lh); letter-spacing: var(--t-xl-tracking); }
.audience-card > p { margin-top: var(--space-3); color: var(--ink-2); }
.points { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
@media (min-width: 640px) { .points { grid-template-columns: 1fr 1fr; } }
.points h4 { margin: 0; font-size: var(--t-md); font-weight: var(--fw-semibold); }
.points p { margin-top: var(--space-1); color: var(--ink-2); font-size: var(--t-sm); line-height: var(--t-sm-lh); }
.audience-card .btn { margin-top: var(--space-5); }

/* ---------- register ---------- */

.register-slab {
  background: var(--ink);
  color: var(--ground);
  border-radius: var(--r-lg);
  padding: var(--space-6) var(--space-5);
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) { .register-slab { padding: var(--space-7); } }
@media (min-width: 1080px) {
  .register-slab { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-7); align-items: start; }
}
.register-copy p { margin-top: var(--space-3); color: color-mix(in srgb, var(--ground) 82%, var(--ink)); }
.register-copy .next { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.register-copy .next li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.register-copy .next .petal { width: var(--icon-md); height: var(--icon-md); margin-top: var(--space-1); }

.form-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r);
  padding: var(--space-5);
  box-shadow: var(--shadow-raise);
}
@media (min-width: 768px) { .form-card { padding: var(--space-6); } }

.field { display: grid; gap: var(--space-1); }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: var(--space-4); }
.field-row { display: grid; gap: var(--space-4); }
.field-row > .field + .field { margin-top: 0; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field .label {
  font-size: var(--t-sm);
  font-weight: var(--fw-medium);
}
.field .opt { color: var(--ink-3); font-weight: var(--fw-regular); }
.input {
  width: 100%;
  min-height: var(--control-h-md);
  padding: 0 var(--space-4);
  border: var(--border-1) solid var(--ink-3);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-md);
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-7);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-2); }
.input:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--border-1); }
.input[aria-invalid="true"] { border-color: var(--critical); border-width: var(--border-2); }
.help { font-size: var(--t-sm); line-height: var(--t-sm-lh); color: var(--ink-2); }
.error-msg {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font-size: var(--t-sm);
  line-height: var(--t-sm-lh);
  color: var(--critical);
  font-weight: var(--fw-medium);
}
.error-msg[hidden] { display: none; }
.error-msg svg { width: var(--icon-sm); height: var(--icon-sm); flex: none; margin-top: 3px; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  margin-top: var(--space-5);
}
.check input {
  width: var(--icon-lg);
  height: var(--icon-lg);
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.check label { font-size: var(--t-sm); line-height: var(--t-sm-lh); }
.check .error-msg { grid-column: 2; }

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

.form-actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.privacy {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border-1) solid var(--line);
  font-size: var(--t-sm);
  line-height: var(--t-sm-lh);
  color: var(--ink-2);
}
.privacy a, .banner a, .form-card a { color: var(--ink); text-underline-offset: 3px; }

.banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  line-height: var(--t-sm-lh);
  color: var(--ink);
}
.banner[hidden] { display: none; }
.banner svg { width: var(--icon-md); height: var(--icon-md); flex: none; }
.banner strong { display: block; font-weight: var(--fw-semibold); }
.banner-critical { background: var(--critical-subtle); }
.banner-critical svg { color: var(--critical); }
.banner-info { background: var(--info-subtle); }
.banner-info svg { color: var(--info); }
.form-status { margin-bottom: var(--space-4); }

.state-panel { text-align: left; }
.state-panel[hidden] { display: none; }
.state-panel .petal { width: var(--empty-mark); height: var(--empty-mark); }
.state-panel h3 { margin-top: var(--space-4); font-size: var(--t-xl); line-height: var(--t-xl-lh); letter-spacing: var(--t-xl-tracking); }
.state-panel h3:focus { outline: none; }
.state-panel h3:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.state-panel p { margin-top: var(--space-2); color: var(--ink-2); }
.state-panel .petal.ok { background: var(--positive); }

/* ---------- footer ---------- */

.footer {
  padding-block: var(--space-6);
  border-top: var(--border-1) solid var(--line);
  font-size: var(--t-sm);
  line-height: var(--t-sm-lh);
  color: var(--ink-2);
}
.footer-inner { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-6); } }
.footer .brand { color: var(--ink); font-size: var(--t-md); }
.footer .petal { width: var(--icon-lg); height: var(--icon-lg); }
.footer p + p { margin-top: var(--space-2); }
.footer a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- reveal (motion only when allowed and scripted) ---------- */

.js [data-reveal="pending"] { opacity: 0; transform: translateY(var(--rise-reveal)); }
.js [data-reveal="done"] {
  opacity: 1;
  transform: none;
  transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out);
}

/* ---------- forced colours ---------- */

@media (forced-colors: active) {
  .petal, .step, .btn, .chip, .input, .theme-switch span { forced-color-adjust: auto; }
  .btn, .input { border: var(--border-1) solid CanvasText; }
  .theme-switch input:checked + span { outline: var(--border-2) solid Highlight; }
}

@media print {
  .topbar, .theme-switch, .skip-link { display: none !important; }
}
