/* Kelpie landing site. Neo-brutalist receipt tape: ink on paper, pastel fields,
   hard ink shadows, one typeface (Space Grotesk). Tokens follow DESIGN.md. */

/* Space Grotesk: SIL Open Font License 1.1, see /fonts/OFL-SpaceGrotesk.txt.
   One variable font for the whole site; hierarchy comes from weight and size only. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #121214;
  --paper: #fffdf9;
  --white: #ffffff;
  --mint: #bcf0da;
  --yellow: #fef08a;
  --lavender: #e6e8ff;
  --peach: #ffd4b2;
  --orange: #fdba74;
  --pink: #f9a8d4;
  --ink-soft: #3a3a40;

  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --line: 3px solid var(--ink);
  --shadow-sm: 3px 3px 0 0 var(--ink);
  --shadow: 5px 5px 0 0 var(--ink);
  --shadow-lg: 9px 9px 0 0 var(--ink);
  --radius: 14px;
  --radius-sm: 9px;

  --page: 1240px;
  /* Side padding grows on wide screens so content stays in a centred --page column. */
  --gutter: max(clamp(16px, 4vw, 48px), calc((100vw - var(--page)) / 2));
  --section-y: clamp(72px, 10vw, 140px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over component display rules (.btn, .field, grids). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
a { color: inherit; }
strong { font-weight: 700; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--ink); color: var(--yellow);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Shared atoms ---------- */

.card {
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.mark {
  display: inline-block;
  padding: 0 0.16em 0.04em;
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2.5deg);
}
.mark-mint { background: var(--mint); }
.mark-white { background: var(--white); }

.chip {
  display: inline-flex; align-items: center;
  border: var(--line); border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700; font-size: 0.92rem; line-height: 1.3;
  box-shadow: var(--shadow-sm);
}
.chip-white { background: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: var(--line); border-radius: 12px;
  font: 800 1.08rem/1 var(--text);
  letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background-color 160ms;
}
.btn-primary { background: var(--orange); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 0 var(--ink); transition-duration: 60ms; }
.btn[disabled] { cursor: progress; opacity: 0.7; transform: none; box-shadow: var(--shadow-sm); }
.btn.is-sent, .btn.is-sent:hover { cursor: default; opacity: 1; background: var(--mint); transform: translate(4px, 4px); box-shadow: 1px 1px 0 0 var(--ink); }
.waitlist-form :disabled:not(.btn) { opacity: 0.6; cursor: not-allowed; }
.btn-on-ink { box-shadow: 5px 5px 0 0 var(--yellow); border-color: var(--yellow); }
.btn-on-ink:hover { box-shadow: 7px 7px 0 0 var(--yellow); }
.btn-on-ink:active { box-shadow: 1px 1px 0 0 var(--yellow); }
.btn-on-ink:focus-visible { outline-color: var(--yellow); }

.btn-link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.btn-link:hover { text-decoration-color: var(--orange); }

/* ---------- Top bar ---------- */

.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  background: var(--yellow);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.9rem; line-height: 1; text-decoration: none;
}
.wordmark img { width: 40px; height: 40px; }
.topbar-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); font-weight: 700; }
.topbar-nav a { text-decoration: none; }
.topbar-nav a:not(.topbar-cta):hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.topbar-cta {
  background: var(--ink); color: var(--yellow);
  padding: 10px 16px; border-radius: 10px; border: var(--line);
  box-shadow: 3px 3px 0 0 var(--orange);
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.topbar-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--orange); }
@media (max-width: 640px) {
  .topbar-nav a:not(.topbar-cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 112px);
  background-color: var(--yellow);
  background-image: radial-gradient(rgba(18, 18, 20, 0.13) 1.6px, transparent 1.7px);
  background-size: 22px 22px;
}
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; }
}

.hero-copy { max-width: 46rem; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem;
  background: var(--white); border: var(--line); border-radius: 999px;
  padding: 6px 16px 6px 12px; box-shadow: var(--shadow-sm);
}
.hero-kicker .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--ink);
  animation: blink 2.4s steps(1) infinite;
}

.hero-title {
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 1.1rem + 5.6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-title .mark { margin: 0.06em 0; }

.hero-lede {
  margin-top: clamp(22px, 3vw, 30px);
  max-width: 34rem;
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.hero-banks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; }
.hero-banks-note { font-weight: 700; }

/* Load choreography: the title prints line by line, then the sticker lands. */
@media (prefers-reduced-motion: no-preference) {
  .hero-kicker { animation: rise 600ms var(--ease-out) both; }
  .hero-title { animation: rise 700ms 80ms var(--ease-out) both; }
  .hero-title .mark { animation: stamp-in 520ms 620ms var(--ease-out) both; }
  .hero-lede { animation: rise 700ms 260ms var(--ease-out) both; }
  .hero-actions { animation: rise 700ms 360ms var(--ease-out) both; }
  .hero-banks { animation: rise 700ms 440ms var(--ease-out) both; }
  .machine { animation: drop-in 900ms 200ms var(--ease-out) both; }
}

/* ---------- Machine: inbox, printer, tape ---------- */

.machine {
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
  display: grid;
  justify-items: center;
}

.inbox {
  position: relative; z-index: 3;
  width: 100%;
  padding: 14px 14px 10px;
  transform: rotate(-1.6deg);
}
.inbox-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px 10px; border-bottom: var(--line);
}
.inbox-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.5rem; line-height: 1; }
.inbox-count {
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--pink); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px;
}
.inbox-list {
  list-style: none; margin: 0; padding: 0;
  height: calc(3 * 68px);
  overflow: hidden;
  position: relative;
}
.mail {
  display: grid; gap: 2px;
  height: 68px; padding: 11px 6px 9px;
  align-content: center;
  border-bottom: 2px dashed rgba(18, 18, 20, 0.35);
  background: var(--white);
}
.mail:last-child { border-bottom: 0; }
.mail-from { font-weight: 700; font-size: 0.86rem; display: flex; align-items: center; gap: 8px; }
.mail-from::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--ink); flex: none;
}
.mail.is-read .mail-from::before { background: transparent; }
.mail-subject {
  font-size: 0.9rem; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail.is-reading { background: var(--mint); }

.printer {
  position: relative; z-index: 2;
  width: 88%;
  margin-top: -6px;
}
.printer-body {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 78px; padding: 0 18px;
  background: var(--orange);
  border: var(--line); border-radius: 18px 18px 10px 10px;
  box-shadow: var(--shadow);
}
.printer-badge { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--ink); background: var(--paper); }
.printer-name { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: 0.04em; }
.printer-led {
  margin-left: auto;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
  transition: background-color 120ms;
}
.printer-led.is-on { background: #22c55e; }
.printer-slot {
  height: 14px; margin: -7px 16px 0;
  background: var(--ink); border-radius: 0 0 8px 8px;
  position: relative; z-index: 3;
}
.printer.is-printing .printer-body { animation: press 320ms var(--ease-out); }

.tape {
  position: relative; z-index: 1;
  width: 80%;
  margin-top: -8px;
  background: var(--white);
  border-inline: var(--line);
  box-shadow: 6px 0 0 0 var(--ink);
  padding: 18px 0 0;
}
.tape-list {
  list-style: none; margin: 0; padding: 0 12px;
  height: calc(3 * 58px);
  overflow: hidden;
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  height: 58px; padding: 6px 4px;
  border-bottom: 2px dotted rgba(18, 18, 20, 0.45);
  font-variant-numeric: tabular-nums;
}
.row-time { grid-row: 1 / span 2; font-weight: 700; font-size: 0.78rem; color: var(--ink-soft); }
.row-merchant { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-cat {
  grid-column: 2; grid-row: 2; justify-self: start;
  font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px;
}
.cat-eat { background: var(--peach); }
.cat-income { background: var(--mint); }
.cat-transport { background: var(--lavender); }
.cat-shop { background: var(--pink); }
.cat-groceries { background: var(--yellow); }
.row-amt { grid-column: 3; grid-row: 1 / span 2; font-weight: 700; font-size: 1.05rem; }
.row-amt-in { color: #0d6b45; }

.stamp {
  position: absolute; right: 70px; top: 50%;
  font-family: var(--display); font-weight: 700; font-size: 0.82rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--pink);
  border: 2px solid var(--ink); border-radius: 6px;
  padding: 4px 8px 3px;
  transform: translateY(-50%) rotate(-11deg);
  box-shadow: 2px 2px 0 0 var(--ink);
  pointer-events: none;
}

.tape-edge {
  position: relative;
  height: 14px;
  margin-inline: -3px;
}
.tape-edge::before, .tape-edge::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  -webkit-mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) 0 0 / 20px 100%;
  mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) 0 0 / 20px 100%;
}
.tape-edge::after { top: 3px; background: var(--ink); }
.tape-edge::before { top: 0; background: var(--white); z-index: 1; }

.packet {
  position: absolute; z-index: 10; left: 0; top: 0;
  font-weight: 700; font-size: 0.95rem;
  background: var(--yellow); border: var(--line); border-radius: 999px;
  padding: 4px 12px; box-shadow: var(--shadow-sm);
  pointer-events: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}


.machine-note { margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }

@media (max-width: 520px) {
  .printer { width: 100%; }
  .tape { width: 94%; }
  .tape-list { padding: 0 8px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row-time { display: none; }
  .row-merchant, .row-cat { grid-column: 1; }
  .row-amt { grid-column: 2; }
  .stamp { right: 64px; top: 24%; font-size: 0.85rem; }
  .row-merchant { font-size: 0.9rem; padding-right: 76px; }
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative; z-index: 4;
  margin: -22px 0 0;
  width: 100%;
  background: var(--ink); color: var(--yellow);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.4deg) scaleX(1.04);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 14px 0;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1;
  white-space: nowrap;
}
/* Two identical groups; each carries its trailing gap as padding, so shifting the
   track by exactly -50% lands the second group where the first began. */
.ticker-group { display: flex; align-items: center; gap: 26px; padding-right: 26px; flex: none; }
.tick-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); border: 2px solid var(--yellow); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: marquee var(--ticker-duration, 34s) linear infinite; }
}

/* ---------- Join: the coupon ---------- */

.join {
  padding: calc(var(--section-y) + 10px) var(--gutter) var(--section-y);
  background: var(--lavender);
}
.coupon {
  position: relative;
  max-width: 1080px; margin-inline: auto;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-lg);
  outline: 3px dashed var(--ink);
  outline-offset: -16px;
}


.coupon-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .coupon-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

.coupon-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem); line-height: 0.98; }
.coupon-intro p { margin-top: 18px; max-width: 30rem; font-size: 1.08rem; }
.coupon-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 700; }
.coupon-points li { display: flex; align-items: center; gap: 12px; }
.coupon-points li::before {
  content: ""; width: 22px; height: 22px; flex: none;
  border: 2px solid var(--ink); border-radius: 6px; background: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23121214' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 18px; background-position: center; background-repeat: no-repeat;
}

.coupon-form { position: relative; }
.waitlist-form { display: grid; gap: 18px 16px; }
@media (min-width: 560px) { .waitlist-form { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }

.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: 0.98rem; }
.field input[type="email"], .field input[type="password"], .field select {
  width: 100%; min-height: 54px;
  font: 600 1.05rem/1.2 var(--text); color: var(--ink);
  background: var(--paper);
  border: var(--line); border-radius: 11px;
  padding: 0 16px;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background-color 140ms;
}
.field input::placeholder { color: #6b6b72; opacity: 1; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23121214' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field select:invalid { color: #6b6b72; }
.field input[type="email"]:focus, .field input[type="password"]:focus, .field select:focus {
  outline: none; background-color: var(--white);
  transform: translate(-2px, -2px); box-shadow: 4px 4px 0 0 var(--ink);
}
.field input[type="email"]:focus-visible, .field input[type="password"]:focus-visible, .field select:focus-visible { box-shadow: 4px 4px 0 0 var(--ink), 0 0 0 4px var(--yellow); }

.field-checkbox { display: flex; align-items: center; gap: 12px; }
.field-checkbox input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 28px; height: 28px; cursor: pointer;
  border: var(--line); border-radius: 8px; background: var(--paper);
  transition: background-color 120ms, transform 120ms var(--ease-out);
}
.field-checkbox input:checked {
  background: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23121214' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat;
}
.field-checkbox input:active { transform: scale(0.9); }
.field-checkbox label { font-weight: 700; cursor: pointer; }

.turnstile-slot { min-height: 65px; }
.btn-submit { width: 100%; min-height: 62px; font-size: 1.2rem; }
.fine { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); line-height: 1.5; }
.fine a { font-weight: 700; color: var(--ink); }

.status { margin-top: 14px; font-weight: 700; }
.status:empty { display: none; }
.status-error {
  background: var(--pink); border: var(--line); border-radius: 10px; padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.status-success {
  background: var(--mint); border: var(--line); border-radius: 12px;
  padding: 18px 18px; font-size: 1.15rem; box-shadow: var(--shadow-sm);
}

.coupon-stamp {
  display: none;
  margin: 28px auto 0;
  width: max-content;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 0.95; text-align: center;
  color: var(--ink); background: var(--pink);
  border: 4px solid var(--ink); border-radius: 14px;
  padding: 18px 26px 14px;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}
.coupon.is-done .coupon-stamp { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .coupon.is-done .coupon-stamp { animation: stamp-in 520ms var(--ease-out) both; }
  .coupon.is-done .status-success { animation: rise 500ms 200ms var(--ease-out) both; }
  .status-error { animation: nudge 360ms var(--ease-out); }
}

/* ---------- Miss: the Shortcuts receipt ---------- */

.miss {
  display: grid; gap: clamp(36px, 5vw, 72px); align-items: center;
  padding: var(--section-y) var(--gutter);
  background: var(--pink);
}
@media (min-width: 960px) { .miss { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }
.miss-copy { max-width: 36rem; justify-self: end; }
.miss-copy p { margin-top: 22px; font-size: 1.12rem; }
.miss-copy .miss-punch {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.1;
}

.receipt {
  width: min(100%, 460px);
  margin: 0;
  padding: 26px 26px 22px;
  transform: rotate(1.8deg);
  font-variant-numeric: tabular-nums;
}
.receipt-head { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: var(--line); text-align: center; }
.receipt-head span:first-child { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.6rem; line-height: 1.05; }
.receipt-sub { font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); }
.receipt-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.receipt-lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.leader { flex: 1; display: flex; align-items: baseline; gap: 8px; font-weight: 700; }
.leader::after { content: ""; flex: 1; border-bottom: 3px dotted rgba(18, 18, 20, 0.4); transform: translateY(-4px); }
.verdict {
  font-family: var(--display); font-weight: 700; font-size: 0.82rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 6px; padding: 5px 8px 3px;
}
.verdict-ok { background: var(--mint); }
.verdict-miss { background: var(--ink); color: var(--yellow); transform: rotate(-4deg); }
.receipt-total {
  display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px;
  border-top: 6px double var(--ink);
  font-weight: 700; font-size: 1.25rem;
}
.receipt-foot { margin-top: 10px; text-align: center; font-weight: 700; font-size: 0.9rem; background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: 6px; }

/* ---------- How ---------- */

.how { padding: var(--section-y) var(--gutter); background: var(--mint); }
.how .section-title { max-width: 18ch; }
.steps {
  list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; gap: 28px;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.step { position: relative; padding: 30px 26px 28px; }
.step:nth-child(1) { background: var(--white); transform: rotate(-1.4deg); }
.step:nth-child(2) { background: var(--yellow); transform: rotate(0.9deg); }
.step:nth-child(3) { background: var(--lavender); transform: rotate(-0.6deg); }
@media (min-width: 900px) { .step:nth-child(2) { margin-top: 44px; } .step:nth-child(3) { margin-top: 18px; } }
.step-n {
  position: absolute; top: -26px; right: 18px;
  width: 58px; height: 58px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 2rem; line-height: 1;
  background: var(--orange); border: var(--line); border-radius: 50%; box-shadow: var(--shadow-sm);
}
.step h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.05; padding-right: 54px; }
.step p { margin-top: 12px; }

/* ---------- Extras: itemised receipt ---------- */

.extras { padding: var(--section-y) var(--gutter); background: var(--paper); }
.extras .section-title { text-align: center; }
.items {
  margin: clamp(36px, 5vw, 56px) auto 0; max-width: 960px;
  background: var(--white);
  border: var(--line); border-block-style: dashed; border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 8px clamp(18px, 4vw, 44px);
  transform: rotate(-0.6deg);
}
.item {
  display: grid; gap: 4px 28px; padding: 22px 0;
  border-bottom: 2px dashed rgba(18, 18, 20, 0.45);
}
.item:last-child { border-bottom: 0; }
@media (min-width: 720px) { .item { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); align-items: baseline; } }
.item dt { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.05; }
.item dd { margin: 0; font-size: 1.05rem; max-width: 42ch; }

/* ---------- Privacy promise ---------- */

.privacy-promise { padding: var(--section-y) var(--gutter); background: var(--peach); }
.privacy-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.4rem, 1.3rem + 4.4vw, 5rem); line-height: 1; max-width: 16ch; }
.privacy-title .mark { margin-top: 0.12em; }
.promises {
  list-style: none; margin: clamp(40px, 5vw, 60px) 0 0; padding: 0;
  display: grid; gap: 26px 40px;
}
@media (min-width: 860px) { .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promises li { border-top: 5px solid var(--ink); padding-top: 16px; font-size: 1.05rem; }
.promises strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.promises-link { margin-top: 36px; }
.promises-link a { font-weight: 700; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- FAQ ---------- */

.faq { padding: var(--section-y) var(--gutter); background: var(--paper); }
.faq .section-title { text-align: center; }
.faq-list { max-width: 820px; margin: clamp(32px, 5vw, 52px) auto 0; display: grid; gap: 16px; }
.faq details {
  background: var(--white); border: var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: box-shadow 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.faq details[open] { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.5rem; line-height: 1;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%;
  transition: transform 220ms var(--ease-out), background-color 160ms;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--pink); }
.faq-a { padding: 0 20px 20px; max-width: 64ch; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Closing total ---------- */

.total {
  padding: var(--section-y) var(--gutter);
  background: var(--ink); color: var(--paper);
  display: grid; justify-items: center; text-align: center; gap: 26px;
}
.total-line {
  display: flex; align-items: baseline; gap: 14px; width: min(100%, 640px);
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; color: var(--yellow);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
}
.total-line span:last-child { font-size: 2.2em; line-height: 0.8; }
.total-dots { flex: 1; border-bottom: 4px dotted var(--yellow); transform: translateY(-6px); }
.total-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); line-height: 1; max-width: 14ch; }

/* ---------- Footer ---------- */

.footer {
  padding: clamp(48px, 7vw, 80px) var(--gutter) 40px;
  background: var(--paper); border-top: var(--line);
  display: grid; justify-items: center; text-align: center; gap: 14px;
}
.barcode { width: 200px; height: 40px; stroke: var(--ink); stroke-width: 2; }
.footer-thanks { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.6rem; line-height: 1; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-weight: 700; }
.footer-links a { text-underline-offset: 4px; text-decoration-thickness: 2px; }
.footer-fine { max-width: 60ch; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- Document pages (privacy, terms, confirmed, 404) ---------- */

.doc-top { background: var(--yellow); border-bottom: var(--line); }
.doc {
  max-width: 820px; margin: clamp(32px, 6vw, 64px) auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.doc-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); line-height: 1; }
.doc-meta { margin-top: 12px; font-weight: 700; color: var(--ink-soft); }
.doc-summary {
  margin-top: 28px; padding: 18px 20px;
  background: var(--mint); border: var(--line); border-radius: 12px;
}
.doc .doc-summary h2 { margin-top: 0; font-family: var(--text); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; }
.doc-summary ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc h2 { margin-top: 40px; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.85rem; line-height: 1.1; }
.doc h3 { margin-top: 24px; font-family: var(--text); font-weight: 700; font-size: 1.1rem; }
.doc p, .doc li { max-width: 68ch; }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.doc a { font-weight: 700; text-underline-offset: 3px; }
.doc table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 2px solid var(--ink); }
.doc th { background: var(--lavender); font-weight: 700; }
.doc-scroll { overflow-x: auto; }

.solo {
  min-height: 70vh; display: grid; place-items: center;
  padding: var(--section-y) var(--gutter);
  background-color: var(--yellow);
  background-image: radial-gradient(rgba(18, 18, 20, 0.13) 1.6px, transparent 1.7px);
  background-size: 22px 22px;
}
.solo-card { max-width: 620px; padding: clamp(28px, 5vw, 48px); text-align: center; display: grid; gap: 18px; justify-items: center; }
.solo-card .doc-title { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }
.solo-card p { font-size: 1.1rem; }

.solo-stamp {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--pink); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 14px 6px;
  box-shadow: var(--shadow-sm); transform: rotate(-6deg);
}
@media (prefers-reduced-motion: no-preference) { .solo-stamp { animation: stamp-in 520ms 200ms var(--ease-out) both; } }

.plain-caps { font-weight: 700; }

.solo-form { display: grid; gap: 18px; justify-items: center; }
.solo-card [hidden] { display: none; }
#link-invalid { display: grid; gap: 18px; justify-items: center; }
#link-invalid[hidden] { display: none; }

/* ---------- Keyframes ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-40px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(1.7) rotate(-14deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-2.5deg); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes press { 0% { transform: none; box-shadow: var(--shadow); } 35% { transform: translateY(3px); box-shadow: 2px 2px 0 0 var(--ink); } 100% { transform: none; box-shadow: var(--shadow); } }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Mascots ----------
   Three layers so animations never fight over one transform:
   .mascot (placement + scroll entrance) > .m-boop (hover / event reactions, mascots.js) > img (idle loop).
   Decorative only: aria-hidden, no pointer events except the hover boop on the image itself. */

.mascot {
  position: absolute; z-index: 6;
  width: var(--m-w, 110px);
  pointer-events: none;
}
.mascot .m-boop { display: block; }
.mascot img {
  display: block; width: 100%; height: auto;
  transform-origin: 50% 100%;
  filter: drop-shadow(5px 5px 0 var(--ink));
  pointer-events: auto;
  -webkit-user-drag: none; user-select: none;
  animation-play-state: var(--m-play, running);
}
.mascot-inline { position: relative; z-index: auto; margin: 0 auto -18px; }

/* Placement */
/* Sits on the top edge of the inbox card, between the title and the alert pill. */
.mascot-printer { --m-w: clamp(72px, 8vw, 100px); top: calc(var(--m-w) * -1.08); left: 42%; }
.mascot-coupon { --m-w: clamp(84px, 11vw, 128px); bottom: calc(100% - 6px); right: clamp(24px, 6vw, 72px); }
.receipt { position: relative; }
.mascot-receipt { --m-w: clamp(78px, 9vw, 112px); right: calc(var(--m-w) * -0.7); bottom: -26px; }
.mascot-step { --m-w: clamp(74px, 8vw, 96px); bottom: calc(100% - 4px); left: 22px; }
.items-wrap { position: relative; max-width: 960px; margin: clamp(36px, 5vw, 56px) auto 0; }
.items-wrap > .items { margin-top: 0; }
.mascot-items { --m-w: clamp(78px, 9vw, 108px); bottom: calc(100% - 8px); left: clamp(8px, 3vw, 36px); }
.privacy-promise { position: relative; }
.mascot-privacy { --m-w: clamp(120px, 15vw, 210px); top: var(--section-y); right: var(--gutter); }
.mascot-privacy img { scale: -1 1; }
.faq-list { position: relative; }
.mascot-faq { --m-w: clamp(72px, 8vw, 96px); bottom: calc(100% - 6px); right: 18px; }
.total { position: relative; }
.mascot-total { --m-w: clamp(84px, 11vw, 150px); bottom: 0; left: var(--gutter); }
.mascot-footer { --m-w: 64px; }
.mascot-solo { --m-w: clamp(90px, 18vw, 130px); bottom: calc(100% - 10px); right: 26px; }
.solo-card { position: relative; }
@media (max-width: 859px) {
  /* The privacy heading fills the width on small screens; the mascot moves under the promises. */
  .mascot-privacy { --m-w: 96px; top: auto; bottom: 8px; right: var(--gutter); }
}

/* Entrance: hidden until mascots.js sees it on screen. Without scripting or with reduced motion,
   mascots are simply shown. */
.mascot { opacity: 0; transform: translateY(26px) scale(0.86); }
.mascot[data-enter="left"] { transform: translateX(-90px) rotate(-10deg); }
.mascot[data-enter="right"] { transform: translateX(90px) rotate(10deg); }
.mascot.is-in {
  opacity: 1; transform: none;
  transition: opacity 260ms ease-out, transform 720ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (scripting: none) { .mascot { opacity: 1; transform: none; } }

/* Idle loops, only while on screen */
@media (prefers-reduced-motion: no-preference) {
  .mascot.is-active .m-bob { animation: m-bob 3.4s ease-in-out infinite; }
  .mascot.is-active .m-wave { animation: m-wave 1.5s ease-in-out infinite alternate; }
  .mascot.is-active .m-sway { animation: m-sway 4.2s ease-in-out infinite; }
  .mascot.is-active .m-hop { animation: m-hop 2.6s cubic-bezier(0.3, 0, 0.3, 1) infinite; }
  .mascot.is-active .m-breathe { animation: m-breathe 3s ease-in-out infinite; }
  .mascot-printer img { animation-delay: -0.8s; }
  .mascot-faq img { animation-delay: -0.4s; }
  .mascot-total img { animation-delay: -1.6s; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot[data-enter] { opacity: 1; transform: none; transition: none; }
}

@keyframes m-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-1.5deg); } }
@keyframes m-wave { from { transform: rotate(-5deg); } to { transform: rotate(7deg); } }
@keyframes m-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes m-hop {
  0%, 62%, 100% { transform: translateY(0) scale(1, 1); }
  68% { transform: translateY(0) scale(1.06, 0.92); }
  80% { transform: translateY(-22px) scale(0.96, 1.05); }
  90% { transform: translateY(0) scale(1.05, 0.94); }
}
@keyframes m-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97); } }

/* Small screens stack every section, so the creatures that sit beside a card have nowhere free
   to stand. Keep six, give each room, and drop the three that would cover text. */
@media (max-width: 759px) {
  .mascot-receipt, .mascot-step, .mascot-items { display: none; }
  .machine { margin-top: calc(var(--m-w-printer, 72px) * 0.95); }
  .mascot-printer { --m-w: 72px; }
  .faq-list { margin-top: 84px; }
  .mascot-faq { right: 6px; }
  .total { padding-bottom: calc(var(--section-y) + 64px); }
  .mascot-total { --m-w: 84px; }
}

/* ---------- Admin (kelpie.site/admin) ---------- */

.admin-page { background: var(--paper); }
.admin { padding: clamp(24px, 4vw, 48px) var(--gutter) 80px; }
.admin-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; }
.admin-lede { margin-top: 10px; color: var(--ink-soft); }
.admin-login { max-width: 440px; margin: clamp(24px, 8vw, 96px) auto 0; padding: clamp(24px, 4vw, 40px); }
.admin-form { display: grid; gap: 18px; margin-top: 24px; }
.admin-who { font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.btn-small { min-height: 0; padding: 8px 14px; font-size: 0.92rem; box-shadow: var(--shadow-sm); }
.btn[disabled] { cursor: not-allowed; }
.status-error { color: #a1141b; }
.status-success { color: #0d5c35; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.tiles { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tile { padding: 16px 18px; display: grid; gap: 4px; box-shadow: var(--shadow-sm); }
.tile-key { background: var(--mint); }
.tile-label { font-weight: 700; font-size: 0.88rem; color: var(--ink-soft); }
.tile-value { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 0.82rem; color: var(--ink-soft); }

.admin-grid { margin-top: 22px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.panel { padding: 18px 20px; box-shadow: var(--shadow-sm); }
.panel-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem; line-height: 1.2; }
.panel-note { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }

/* Breakdown bars: one hue, ink outline for contrast, the number in ink beside it. */
.bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(84px, 1fr) 2fr auto; align-items: center; gap: 10px; font-size: 0.9rem; }
.bar-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 14px; }
.bar-fill { display: block; height: 100%; background: var(--orange); border: 2px solid var(--ink); border-radius: 0 4px 4px 0; }
.bar-value { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.bars-empty { color: var(--ink-soft); font-size: 0.9rem; }

.daily { margin-top: 14px; height: 120px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; border-bottom: 2px solid var(--ink); }
.day { position: relative; height: 100%; display: flex; align-items: flex-end; outline: none; }
.day-bar { display: block; width: 100%; background: var(--orange); border: 2px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0; }
.day-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: 6px 9px; font-size: 0.8rem; font-weight: 700;
  background: var(--ink); color: var(--paper); border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity 120ms ease-out; z-index: 2;
}
.day:hover .day-tip, .day:focus-visible .day-tip { opacity: 1; }
.day:focus-visible .day-bar { box-shadow: 0 0 0 3px var(--yellow); }

.people { margin-top: 22px; }
.people-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.people-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button {
  font: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer;
  padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.bank-filter { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.bank-filter select { font: inherit; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); }
.people-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.people-count { font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }

.table-scroll { margin-top: 12px; overflow-x: auto; border: 2px solid var(--ink); border-radius: 10px; }
.people-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.people-table th, .people-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(18, 18, 20, 0.15); white-space: nowrap; }
.people-table th { background: var(--lavender); font-weight: 700; position: sticky; top: 0; }
.people-table tbody tr:hover { background: #fffbe0; }
.people-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.cell-email { font-weight: 700; }
.cell-date { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.people-empty { text-align: center; color: var(--ink-soft); padding: 28px; }
.chip { display: inline-block; padding: 2px 9px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 0.78rem; }
.chip-unconfirmed { background: var(--white); }
.chip-confirmed { background: var(--mint); }
.chip-invited { background: var(--lavender); }
.chip-unsubscribed { background: #e8e8ea; }

/* ---------- Setup pages (connect, help) ---------- */

.setup-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.setup-step { counter-increment: step; position: relative; padding: 18px 18px 18px 64px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.setup-step::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-weight: 700;
}
.setup-step.is-done { background: var(--mint); }
.setup-step h2 { margin: 0; font-size: 1.2rem; letter-spacing: 0; }
.setup-step p { margin-top: 8px; }
.setup-step ol { margin-top: 8px; }
.copy-row { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-value {
  flex: 1 1 220px; min-width: 0; padding: 10px 12px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px;
  font-weight: 700; overflow-wrap: anywhere; user-select: all;
}
.copy-value.is-code { font-size: 1.6rem; letter-spacing: 0.12em; }
.setup-note { font-size: 0.92rem; color: var(--ink-soft); }
.setup-banner { margin-top: 20px; padding: 14px 16px; border: var(--line); border-radius: var(--radius-sm); background: var(--lavender); font-weight: 700; }
.setup-banner.is-ok { background: var(--mint); }
.setup-banner.is-error { background: var(--pink); }
.setup-invalid { display: grid; gap: 18px; justify-items: start; margin-top: 20px; }
.setup-invalid p { margin-top: 0; }
.setup-foot { margin-top: 20px; }
