/* Ask Andy — askandy.co.za
   A live demo of Bob Pay QR+ with PayShap.
   Palette: navy ink, cool fog, and car-guard hi-vis yellow. */

:root {
  --fog: #eef1ec;
  --paper: #ffffff;
  --ink: #16213a;
  --ink-soft: #2b3757;
  --muted: #56607a;
  --line: #d5dae0;
  --vis: #ffd23f;
  --vis-deep: #f2b705;
  --vis-ink: #241c00;
  --go: #12775a;
  --go-soft: #dff2ea;
  --stop: #b2361f;
  --stop-soft: #fbe6e1;
  --code-bg: #16213a;
  --code-ink: #e7ecf6;
  --code-muted: #9fb0d1;
  --code-key: #ffd23f;
  --code-str: #8fe3bf;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.2vw, 4.4rem);

  --measure: 68ch;
  --wrap: 72rem;
  --radius-s: 6px;
  --radius-m: 12px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fog: #0d1424;
    --paper: #151f35;
    --ink: #e9eef7;
    --ink-soft: #c9d3e6;
    --muted: #a2adc4;
    --line: #2a3651;
    --vis-ink: #241c00;
    --go: #52cfa1;
    --go-soft: #12352a;
    --stop: #ff8f78;
    --stop-soft: #3a1c17;
    --code-bg: #0a1020;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--vis);
  color: var(--vis-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  z-index: 10;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--fog);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem 1.4rem;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: var(--step--1);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--vis-deep); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

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

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) 1.5rem;
}
.hero h1 {
  max-width: 14ch;
}
.demo-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 46rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--vis-deep);
  background: var(--paper);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.demo-note p { margin: 0; }

/* ---------- Pay section: form + live slip ---------- */

.pay {
  padding-block: 1.5rem clamp(3rem, 7vw, 5.5rem);
}
.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .pay-grid { grid-template-columns: minmax(0, 1fr); }
}

.pay-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.pay-form h2 { font-size: var(--step-2); margin-bottom: 0.3em; }
.pay-form > p { color: var(--muted); }

.field { margin-top: 1.35rem; }
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 1rem;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

label, .label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.optional { font-weight: 400; color: var(--muted); }
.hint {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--fog);
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.7rem 0.85rem;
  min-height: 3rem;
  transition: border-color 0.15s ease;
}
input:hover, select:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--vis);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2356607a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.field.invalid input,
.field.invalid select { border-color: var(--stop); }
.field-error {
  display: none;
  color: var(--stop);
  font-size: var(--step--1);
  font-weight: 700;
  margin-top: 0.35rem;
}
.field.invalid .field-error { display: block; }

.cause-explainer {
  margin-top: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-s);
  background: var(--go-soft);
  color: var(--ink);
  font-size: var(--step--1);
}
.cause-explainer:empty { display: none; }

/* Amount */
.amount-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--fog);
  max-width: 14rem;
  transition: border-color 0.15s ease;
}
.amount-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--vis); }
.field.invalid .amount-wrap { border-color: var(--stop); }
.amount-prefix {
  display: grid;
  place-items: center;
  padding-inline: 0.85rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}
.amount-wrap input {
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  padding-left: 0.2rem;
  box-shadow: none !important;
}
.chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}
.chip {
  font: inherit;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.amount-quip {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0.55rem 0 0;
  min-height: 1.4em;
}

/* Method choice */
.methods {
  border: 0;
  margin: 1.35rem 0 0;
  padding: 0;
}
.methods legend { font-weight: 700; padding: 0; margin-bottom: 0.35rem; }
.method {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  margin-top: 0.5rem;
  cursor: pointer;
  font-weight: 400;
}
.method:has(input:checked) { border-color: var(--ink); background: var(--fog); }
.method input { margin-top: 0.3rem; accent-color: var(--ink); width: 1.1rem; height: 1.1rem; flex: none; }
.method strong { display: block; }
.method span { display: block; font-size: var(--step--1); color: var(--muted); }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  font-weight: 400;
  font-size: var(--step--1);
}
.consent input { margin-top: 0.25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--ink); flex: none; }
.field.invalid .consent { color: var(--stop); }

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

/* Primary button — the hi-vis vest */
.btn-pay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--vis-ink);
  background:
    linear-gradient(to bottom,
      transparent 0 30%,
      rgba(255,255,255,0.55) 30% 36%,
      transparent 36% 64%,
      rgba(255,255,255,0.55) 64% 70%,
      transparent 70%) no-repeat,
    var(--vis);
  background-size: 0% 100%, auto;
  border: 2px solid var(--vis-deep);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-size 0.35s ease, transform 0.1s ease;
}
.btn-pay:hover { background-size: 100% 100%, auto; }
.btn-pay:active { transform: translateY(1px); }
.btn-pay[disabled] { cursor: progress; opacity: 0.85; }
.btn-pay .spinner {
  width: 1.1rem; height: 1.1rem;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}
.btn-pay.busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-s);
  background: var(--stop-soft);
  color: var(--stop);
  font-weight: 700;
  font-size: var(--step--1);
}
.form-alert:empty { display: none; }
.secure-note {
  font-size: var(--step--1);
  color: var(--muted);
  text-align: center;
  margin: 0.8rem auto 0;
}

/* Live payment slip */
.slip-col { position: sticky; top: 1.5rem; }
@media (max-width: 860px) { .slip-col { position: static; } }

.slip-tabs {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 1rem;
}
.slip-tabs button {
  font: inherit;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  cursor: pointer;
}
.slip-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.slip-shadow { filter: drop-shadow(0 14px 22px rgba(22, 33, 58, 0.16)); }
@media (prefers-color-scheme: dark) {
  .slip-shadow { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); }
}
.slip {
  --edge: 10px;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 1.6rem 1.5rem 1.8rem;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--edge) * 2) var(--edge) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--edge) + 1px) no-repeat;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--edge) * 2) var(--edge) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--edge) + 1px) no-repeat;
}
.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px dashed var(--line);
}
.slip-head strong { font-family: var(--font-display); font-size: 1.2rem; }
.slip-head span { font-size: var(--step--1); color: var(--muted); }
.slip dl { margin: 0.9rem 0 0; }
.slip-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding-block: 0.45rem;
  font-size: var(--step--1);
}
.slip-row dt { color: var(--muted); }
.slip-row dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.slip-row dd.placeholder { font-weight: 400; color: var(--muted); font-style: italic; }
.slip-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 2px dashed var(--line);
}
.slip-total span { font-weight: 700; }
.slip-total strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.slip-total strong.bump { animation: bump 0.3s ease; }
@keyframes bump { 50% { transform: scale(1.06); } }
.slip-foot { margin: 0.8rem 0 0; font-size: var(--step--1); color: var(--muted); }

.api-view { display: none; }
.slip-col.show-api .api-view { display: block; }
.slip-col.show-api .slip-shadow { display: none; }
.api-caption { font-size: var(--step--1); color: var(--muted); margin-top: 0.8rem; }

/* ---------- Code ---------- */

pre, code { font-family: var(--font-code); }
code { font-size: 0.92em; }
p code, li code {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}
.code {
  position: relative;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.code pre {
  margin: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  tab-size: 2;
}
.code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.75rem 0.6rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: var(--step--1);
  color: var(--code-muted);
}
.copy-btn {
  font: inherit;
  font-weight: 700;
  color: var(--vis-ink);
  background: var(--vis);
  border: 0;
  border-radius: var(--radius-s);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}
.copy-btn.done { background: var(--code-str); }
.tk-k { color: var(--code-key); }
.tk-s { color: var(--code-str); }
.tk-c { color: var(--code-muted); }
.prompt-text { white-space: pre-wrap; }

/* ---------- Sections ---------- */

.band {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.band-paper { background: var(--paper); }
.section-intro { max-width: 44rem; margin-bottom: 2.25rem; }

/* How QR+ works — a true sequence */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  counter-reset: flow;
}
.flow li {
  counter-increment: flow;
  position: relative;
  padding: 3.4rem 1.5rem 0 0;
  border-top: 3px solid var(--ink);
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  top: -1.35rem;
  left: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--vis);
  color: var(--vis-ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.flow p { color: var(--ink-soft); }
@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

/* Causes */
.causes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.cause {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.cause:nth-child(odd) { border-right: 1px solid var(--line); }
.cause:nth-child(even) { padding-left: 1.5rem; }
.cause h3 { margin-bottom: 0.35em; }
.cause p { color: var(--ink-soft); margin: 0; }
.cause-tally {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  color: var(--muted);
  display: none;
}
.has-stats .cause-tally { display: block; }
.tally-bar {
  height: 8px;
  background: var(--fog);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.tally-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--vis-deep);
  border-radius: 999px;
  transition: width 0.8s ease;
}
@media (max-width: 700px) {
  .causes { grid-template-columns: minmax(0, 1fr); }
  .cause, .cause:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
  .cause:nth-child(odd) { border-right: 0; }
}

.fine-print {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  max-width: 52rem;
}
.fine-print h3 { font-size: var(--step-0); margin-bottom: 0.5em; }
.fine-print ul { margin: 0; padding-left: 1.2rem; }
.fine-print li { margin-bottom: 0.35rem; max-width: var(--measure); }

/* Build your own */
.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .build-grid { grid-template-columns: minmax(0, 1fr); } }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { padding-top: 0; }
.steps li::before {
  content: counter(step);
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.steps h3 { margin: 0.25rem 0 0.3rem; font-size: var(--step-0); }
.steps p { margin: 0; color: var(--ink-soft); }
.btn-ghost {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-s);
  padding: 0.4rem 0.9rem;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.meta-note {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--vis-deep);
  background: var(--paper);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.band-paper .meta-note { background: var(--fog); }

/* ---------- Prose pages (policies, contact) ---------- */

.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.page-head h1 { font-size: var(--step-3); max-width: 22ch; }
.prose {
  padding-bottom: clamp(3rem, 7vw, 5rem);
  max-width: var(--measure);
}
.prose h2 { font-size: var(--step-1); margin-top: 2.2rem; letter-spacing: -0.01em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.updated { color: var(--muted); font-size: var(--step--1); }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0 2rem;
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-card dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .contact-card dd { margin-bottom: 0.7rem; }
}

/* ---------- Result pages ---------- */

.result {
  padding-block: clamp(3rem, 9vw, 6.5rem);
  text-align: left;
}
.result-badge {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 3px solid var(--ink);
}
.result-badge.ok { background: var(--vis); color: var(--vis-ink); }
.result-badge.wait { background: var(--paper); }
.result-badge.stop { background: var(--paper); }
.result-badge svg { width: 2rem; height: 2rem; }
.result h1 { font-size: var(--step-3); max-width: 18ch; }
.result-ref {
  display: inline-block;
  font-family: var(--font-code);
  font-size: var(--step--1);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.3rem 0.6rem;
}
.result-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.75rem; }
.btn-solid {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-s);
  background: var(--vis);
  color: var(--vis-ink);
  border: 2px solid var(--vis-deep);
}
.btn-solid:hover { background: var(--vis-deep); }
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

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

.site-footer {
  background: var(--ink);
  color: var(--fog);
  padding-block: 3rem 2rem;
  font-size: var(--step--1);
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #070c18; color: var(--ink); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 {
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer p { margin-bottom: 0.5rem; }
.site-footer .brand { font-size: 1.15rem; margin-bottom: 0.6rem; }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  opacity: 0.85;
}
.footer-legal p { max-width: none; }
.meta-note p { margin: 0; }
.result-actions .btn-ghost { margin-top: 0; padding: 0.75rem 1.2rem; font-family: var(--font-display); font-weight: 800; }
.method span.method-note { margin-top: 0.35rem; color: var(--ink-soft); font-weight: 700; }
