/* ============================================================
   Field Manual - Hannah's guide to building sites with Claude
   Register: brand. Lane: instructional field manual / signage.
   Color strategy: Committed (spruce green carries the surface),
   acid citrus as the single signal color. Reference point:
   a forestry service field guide, not a dev-tool landing page.
   ============================================================ */

:root {
  /* ---- Color. OKLCH. Neutrals tinted toward the brand hue (165),
     deliberately away from the saturated warm cream band. ---- */
  --ink:          oklch(0.19 0.030 165);
  --ink-2:        oklch(0.26 0.038 166);
  --ink-3:        oklch(0.34 0.042 167);
  --spruce:       oklch(0.44 0.090 168);
  --spruce-deep:  oklch(0.33 0.078 168);
  --paper:        oklch(0.976 0.008 165);
  --paper-2:      oklch(0.944 0.016 166);
  --paper-3:      oklch(0.912 0.022 167);
  --acid:         oklch(0.885 0.185 104);
  --acid-deep:    oklch(0.795 0.170 100);
  --rust:         oklch(0.605 0.155 44);
  --rust-pale:    oklch(0.945 0.038 60);

  --text:         var(--ink);
  --text-muted:   oklch(0.435 0.024 166);
  --text-invert:  oklch(0.955 0.012 165);
  --text-invert-muted: oklch(0.775 0.024 166);
  --rule:         oklch(0.855 0.020 166);
  --rule-invert:  oklch(0.34 0.030 166);

  /* ---- Shadows tinted into the ink-green, never gray ---- */
  --sh-1: 0 1px 2px rgba(16, 34, 28, 0.06), 0 2px 6px rgba(16, 34, 28, 0.05);
  --sh-2: 0 2px 4px rgba(16, 34, 28, 0.07), 0 8px 18px rgba(16, 34, 28, 0.08);
  --sh-3: 0 4px 8px rgba(16, 34, 28, 0.08), 0 18px 40px rgba(16, 34, 28, 0.12);

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-hero: clamp(2.75rem, 8.6vw, 5.25rem);
  --fs-h2:   clamp(1.95rem, 5.2vw, 3.15rem);
  --fs-h3:   clamp(1.3rem, 2.6vw, 1.6rem);
  --fs-body: clamp(1.0625rem, 0.98rem + 0.35vw, 1.1875rem);
  --fs-sm:   clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --fs-xs:   0.8125rem;

  /* ---- Space ---- */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(3.5rem, 9vw, 7.5rem);
  --stack: clamp(1.5rem, 3vw, 2.25rem);
  --measure: 68ch;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 460ms;

  /* ---- Semantic z-index scale ---- */
  --z-grain: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 200;
  --z-toast: 400;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  /* No overflow-x:hidden here. It turns body into a scroll container,
     which silently breaks position:sticky on the step numerals.
     Wide content scrolls inside its own container instead. */
}

/* Paper grain. 4%, multiply, non-interactive. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.042;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

p { text-wrap: pretty; margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--measure); }

.muted { color: var(--text-muted); }

/* ============================================================
   Sticky rail: progress + step jumper
   ============================================================ */
.rail {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.rail__bar {
  height: 3px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}

.rail__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--acid-deep);
  transition: width 320ms var(--ease-out);
}

.rail__inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding-block: 0.5rem;
}

.rail__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: none;
}

.rail__mark span { color: var(--spruce); }

.rail__steps {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
  -webkit-overflow-scrolling: touch;
}
.rail__steps::-webkit-scrollbar { display: none; }

.rail__step {
  flex: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur) ease, color var(--dur) ease,
              border-color var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.rail__step:hover { color: var(--ink); border-color: var(--ink-3); }
.rail__step:active { transform: scale(0.94); }
.rail__step[data-done="1"] {
  background: var(--spruce);
  border-color: var(--spruce);
  color: var(--text-invert);
}

/* ============================================================
   Hero - drenched ink, asymmetric, no centered CTA stack
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--text-invert);
  padding-block: clamp(3.25rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
              oklch(0.44 0.09 168 / 0.55), transparent 62%);
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--acid);
  border: 1px solid oklch(0.885 0.185 104 / 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: var(--fs-hero);
  max-width: 15ch;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--acid);
}

.hero__lede {
  max-width: 46ch;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-invert-muted);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-invert);
}

.hero__meta div { padding-block: 0.5rem; }

.hero__meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-invert-muted);
  margin-bottom: 0.3rem;
}

.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* ============================================================
   Section shells - three distinct grounds for rhythm
   ============================================================ */
.band { padding-block: var(--section-y); }
.band--paper { background: var(--paper); }
.band--tint  { background: var(--paper-2); }
.band--ink   { background: var(--ink); color: var(--text-invert); }
.band--ink h2, .band--ink h3 { color: var(--text-invert); }
.band--ink .muted { color: var(--text-invert-muted); }

.band__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.band__head h2 { font-size: var(--fs-h2); max-width: 18ch; margin-bottom: 0.9rem; }
.band__head p { max-width: 54ch; color: var(--text-muted); }
.band--ink .band__head p { color: var(--text-invert-muted); }

/* ============================================================
   Cost panel
   ============================================================ */
.cost {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
@media (min-width: 46rem) { .cost { grid-template-columns: repeat(3, 1fr); } }

.cost__cell { background: var(--paper); padding: 1.6rem 1.5rem; }
.cost__cell:first-child { background: var(--acid); }

.cost__amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.cost__what { font-weight: 650; margin-bottom: 0.35rem; }
.cost__note { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.cost__cell:first-child .cost__note { color: oklch(0.36 0.06 100); }

.source {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ============================================================
   Steps - numbered because this genuinely is a sequence
   ============================================================ */
.step {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  scroll-margin-top: 5.5rem;
}
.step:first-of-type { border-top: 0; padding-top: 0; }

.step__grid { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) {
  .step__grid { grid-template-columns: 8rem minmax(0, 1fr); gap: 3rem; }
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 11vw, 5rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  /* Carries the step number, so it clears the 3:1 large-text floor
     rather than sitting on the page as a near-invisible watermark. */
  color: oklch(0.622 0.058 168);
}
@media (min-width: 60rem) {
  /* align-self:start matters: a stretched grid item fills its row,
     leaving sticky no room to travel, so it silently never pins. */
  .step__num { position: sticky; top: 6rem; align-self: start; font-size: 5rem; }
}

.step__body { min-width: 0; }
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.85rem; max-width: 24ch; }
.step__body > p { max-width: var(--measure); color: var(--text-muted); }
.step__body > p strong { color: var(--text); font-weight: 650; }

/* Ordered instruction list */
.dolist { counter-reset: d; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.dolist li {
  counter-increment: d;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 0.9rem;
  max-width: var(--measure);
}
.dolist li::before {
  content: counter(d);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--spruce);
  color: var(--text-invert);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.band--ink .dolist li::before { background: var(--acid); color: var(--ink); }

/* ============================================================
   Command blocks + copy affordance
   ============================================================ */
.cmd {
  position: relative;
  margin: 1.35rem 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--text-invert);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.band--ink .cmd { background: var(--ink-2); box-shadow: none; border: 1px solid var(--rule-invert); }

.cmd__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border-bottom: 1px solid var(--rule-invert);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-invert-muted);
}

.cmd pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}
.cmd code { white-space: pre; }
.cmd .sigil { color: var(--acid); user-select: none; }

.copy {
  flex: none;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 7px;
  border: 1px solid var(--rule-invert);
  background: transparent;
  color: var(--text-invert);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: background-color var(--dur) ease, border-color var(--dur) ease,
              color var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .copy:hover { background: var(--spruce); border-color: var(--spruce); }
}
.copy:active { transform: scale(0.95); }
.copy[data-copied="1"] { background: var(--acid); border-color: var(--acid); color: var(--ink); }

/* ============================================================
   Callouts
   ============================================================ */
/* Stacked on narrow screens: a long tag in an auto column crushes the
   text column to zero and pushes the whole page sideways. */
/* Flow, not a grid. The tag used to sit in an `auto` grid column beside
   the text, which meant a note with two paragraphs put its second one in
   the tag column and stretched it across the card. The tag is a label
   above the body now, so the number of paragraphs cannot affect layout. */
.note {
  margin: 1.35rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  max-width: var(--measure);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.band--ink .note { background: var(--ink-2); border-color: var(--rule-invert); }

.note__tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: var(--paper-3);
  color: var(--ink-2);
}

.note--warn { background: var(--rust-pale); border-color: oklch(0.86 0.07 55); }
.note--warn .note__tag { background: var(--rust); color: oklch(0.99 0.01 60); }
.note p { margin: 0; }
.note p + p { margin-top: 0.6rem; }

/* ============================================================
   Step completion toggle
   ============================================================ */
.done {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease,
              border-color var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.done:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .done:hover { border-color: var(--ink-3); color: var(--ink); }
}
.done__box {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--rule);
  display: grid;
  place-items: center;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.done__box svg {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
}
.done[aria-pressed="true"] {
  background: var(--spruce);
  border-color: var(--spruce);
  color: var(--text-invert);
}
.done[aria-pressed="true"] .done__box { background: var(--acid); border-color: var(--acid); }
.done[aria-pressed="true"] .done__box svg { opacity: 1; transform: scale(1); }

/* ============================================================
   Journey diagram
   ============================================================ */
.diagram {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--rule-invert);
  border-radius: 16px;
  background: var(--ink-2);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
}
.diagram svg { display: block; width: 100%; min-width: 34rem; height: auto; }

.diagram__hint {
  margin: 0.9rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-invert-muted);
}
@media (min-width: 46rem) { .diagram__hint { display: none; } }

/* ============================================================
   Skills catalog - a list with a rail, not a card grid
   ============================================================ */
.cat { margin-top: 2.5rem; }
.cat + .cat { margin-top: 3.25rem; }

.cat__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}
.cat__title h3 { font-size: 1.375rem; }
/* The label drops to its own line on narrow screens rather than
   forcing the page wider than the viewport. */
.cat__title span {
  flex: 1 1 100%;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
@media (min-width: 40rem) {
  .cat__title span { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
}

.skill {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 54rem) {
  .skill { grid-template-columns: 14rem minmax(0, 1fr); align-items: start; }
}

.skill__name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.skill__by {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0;
}
.skill__what { margin: 0; max-width: var(--measure); }
.skill__use {
  margin: 0.55rem 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: var(--measure);
}
.skill__use b { color: var(--ink); font-weight: 650; }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
  background: var(--acid);
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.pill--quiet { background: var(--paper-3); color: var(--ink-2); }

/* ============================================================
   Prompt swipe file
   ============================================================ */
.prompts { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .prompts { grid-template-columns: 1fr 1fr; } }

.prompt {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem;
  border: 1px solid var(--rule-invert);
  border-radius: 14px;
  background: var(--ink-2);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease;
}
@media (hover: hover) and (pointer: fine) {
  .prompt:hover { transform: translateY(-4px); border-color: var(--spruce); }
}
.prompt h4 {
  font-size: 0.9375rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--acid);
}
.prompt blockquote {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-invert-muted);
}
.prompt .copy { align-self: flex-start; margin-top: auto; }

/* ============================================================
   Traps list
   ============================================================ */
.traps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.traps li { background: var(--paper); padding: 1.25rem 0; }
.traps__q { font-weight: 700; font-family: var(--font-display); letter-spacing: -0.02em; font-size: 1.0625rem; margin-bottom: 0.35rem; }
.traps__a { color: var(--text-muted); font-size: var(--fs-sm); max-width: var(--measure); margin: 0; }

/* ============================================================
   Claude 101 wizard
   ============================================================ */
.wiz { max-width: 44rem; }

.wiz__stage {
  position: relative;
  border: 1px solid var(--rule-invert);
  border-radius: 18px;
  background: var(--ink-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 19rem;
  display: grid;
}

.wiz__card {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  visibility: hidden;
  transition: opacity var(--dur) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              visibility 0s linear var(--dur-slow);
}
.wiz__card[data-active="1"] {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.wiz__idx {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--acid);
  letter-spacing: 0.04em;
}
.wiz__card h3 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); max-width: 20ch; }
.wiz__card p { color: var(--text-invert-muted); max-width: 52ch; }
.wiz__card .ex {
  margin-top: auto;
  padding: 0.9rem 1.05rem;
  border-radius: 10px;
  background: var(--ink);
  border: 1px solid var(--rule-invert);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-invert);
}
.wiz__card .ex b { color: var(--acid); font-weight: 600; }

.wiz__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.wiz__btn {
  min-height: 2.875rem;
  padding: 0 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--rule-invert);
  background: transparent;
  color: var(--text-invert);
  font-family: var(--font-body);
  font-weight: 650;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background-color var(--dur) ease, border-color var(--dur) ease,
              opacity var(--dur) ease, transform var(--dur-fast) var(--ease-out);
}
.wiz__btn:active { transform: scale(0.96); }
.wiz__btn:disabled { opacity: 0.35; cursor: default; }
.wiz__btn--go { background: var(--acid); border-color: var(--acid); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .wiz__btn:not(:disabled):hover { border-color: var(--spruce); background: var(--spruce); }
  .wiz__btn--go:not(:disabled):hover { background: oklch(0.93 0.19 104); border-color: oklch(0.93 0.19 104); color: var(--ink); }
}

.wiz__dots { display: flex; gap: 0.4rem; margin-left: auto; flex-wrap: wrap; }
.wiz__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--rule-invert);
  cursor: pointer;
  transition: background-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.wiz__dot[data-active="1"] { background: var(--acid); transform: scale(1.35); }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.foot__sig {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 1rem;
}
.foot p { max-width: 52ch; color: var(--text-muted); font-size: var(--fs-sm); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: var(--z-toast);
  transform: translate(-50%, 12px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--text-invert);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--sh-3);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur) var(--ease-out),
              visibility 0s linear var(--dur);
}
.toast[data-show="1"] {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}

/* ============================================================
   Reveal - enhances an already-visible default, never gates it
   ============================================================ */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js-reveal .reveal[data-seen="1"] { opacity: 1; transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .wiz__card { transition: opacity 0.01ms linear; transform: none; }
}
