/* MY BAD — design system
   Direction taken from the supplied mobile demo: dark hero, warm orange action colour,
   numbered "01 / …" sections on a light page, outlined selection cards, black copy
   buttons and a black footer. Mobile-first; everything is tokens so it is easy to retune. */

:root {
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #6a6a66;
  --muted-2: #8e8e89;
  --bg: #f6f6f3;
  --panel: #efefeb;
  --card: #ffffff;
  --line: #e4e4df;
  --line-2: #d4d4ce;

  --orange: #e5531a;
  --orange-press: #c94512;
  --orange-tint: #fdf0e9;
  --orange-line: #ec7a4b;

  --dark: #121212;
  --dark-2: #1d1d1c;
  --dark-line: #34342f;
  --on-dark: #f4f4f1;
  --on-dark-muted: #b4b4ad;

  --green: #23824a;
  --green-tint: #e2f4e7;
  --purple: #7a3fc2;
  --purple-tint: #f1e8fb;
  --blue: #2c59cf;
  --blue-tint: #e7eefd;
  --yellow: #ffd84a;
  --red: #c4321b;
  --red-tint: #fdeceb;

  --radius: 10px;
  --radius-sm: 8px;
  --pill: 999px;
  --gutter: 16px;
  --max: 560px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "HelveticaNeue-CondensedBlack", "Helvetica Neue Condensed Black", "Arial Narrow", Impact, "Roboto Condensed", "sans-serif-condensed", var(--font);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange-line); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.flow { padding-top: 8px; padding-bottom: 40px; }
.flow > section, #builder > section { padding: 30px 0 6px; scroll-margin-top: 12px; }

.testbar {
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px var(--gutter);
}
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--dark); color: var(--on-dark); font-size: 34px; }
.noscript { padding: 24px; text-align: center; }

/* -------------------------------------------------------------------- hero */
.hero {
  background: var(--dark);
  color: var(--on-dark);
  padding: 18px 0 26px;
}
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.topnav .wordmark { font-size: 30px; color: #fff; }
.topnav-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); border: 1px solid #4a2a1d; padding: 4px 8px; border-radius: var(--pill);
}
.hero h1 { font-size: clamp(30px, 8.4vw, 52px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; }
.hero-sub { color: var(--orange); font-size: clamp(19px, 5vw, 26px); font-weight: 800; letter-spacing: -0.01em; margin-top: 8px; }
.hero-lede { color: var(--on-dark-muted); margin-top: 14px; font-size: 15px; max-width: 34em; }
.hero-lede strong { color: var(--on-dark); }
.hero-art { margin-top: 22px; }
.hero-ctas { display: grid; gap: 10px; margin-top: 22px; }
.hero-note { color: var(--on-dark-muted); font-size: 13px; text-align: center; margin-top: 12px; }

.art-card {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #ff9a64 0%, #f06a2d 45%, #d9481a 100%);
}
.art-card svg.note { position: absolute; width: 46%; right: 10%; top: 12%; transform: rotate(-8deg); filter: drop-shadow(0 14px 18px rgba(80, 20, 0, .35)); animation: wobble 6s var(--ease) infinite; }
.art-bubble {
  position: absolute; left: 6%; bottom: 8%; max-width: 64%;
  background: #fff; color: var(--ink); border-radius: 16px 16px 16px 4px;
  padding: 10px 12px; font-size: 13px; line-height: 1.35;
  box-shadow: 0 10px 24px rgba(60, 15, 0, .28);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.art-bubble small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.art-bubble.is-out { opacity: 0; transform: translateY(6px); }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-6px); } }

/* ----------------------------------------------------------------- buttons */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--pill); border: 1px solid transparent;
  font-size: 13.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease);
  width: 100%;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-press); }
.btn-dark { background: var(--ink); color: #fff; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 14.5px; }
.btn-dark:hover { background: #000; }
.btn-outline { background: var(--card); border-color: var(--line-2); color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 14.5px; }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; border-color: #4a4a45; color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--on-dark); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--orange-press); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-small { min-height: 34px; padding: 6px 12px; font-size: 12.5px; width: auto; }

/* --------------------------------------------------------- section header */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.section-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.section-head h2 .num { font-variant-numeric: tabular-nums; }
.step-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.section-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--pill); white-space: nowrap; }
.badge-green { background: var(--green-tint); color: var(--green); }
.badge-purple { background: var(--purple-tint); color: var(--purple); }
.badge-blue { background: var(--blue-tint); color: var(--blue); }
.badge-orange { background: var(--orange-tint); color: var(--orange-press); }
.badge-grey { background: var(--panel); color: var(--muted); }
.badge-yellow { background: #fff3c2; color: #6b5300; }
.badge-red { background: var(--red-tint); color: var(--red); }

/* ---------------------------------------------------------- option cards */
.options { display: grid; gap: 10px; }
.opt {
  -webkit-appearance: none; appearance: none;
  position: relative; display: block; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .12s var(--ease);
}
.opt:hover { border-color: var(--line-2); }
.opt:active { transform: scale(.99); }
.opt.is-selected { border-color: var(--orange-line); background: #fffaf7; box-shadow: 0 0 0 3px var(--orange-tint); }
.pkg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pkg-name { font-weight: 800; font-size: 15.5px; }
.pkg-price { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.opt.is-selected .pkg-price { color: var(--orange); }
.pkg-tagline { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.pkg-badge { margin-left: 6px; vertical-align: 2px; }
.pkg-features { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: none; gap: 4px; font-size: 13px; color: var(--ink-2); }
.opt.is-selected .pkg-features { display: grid; }
.pkg-features li::before { content: "✓"; color: var(--orange); font-weight: 900; margin-right: 8px; }
.check-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); display: none; place-items: center; }
.check-dot svg { width: 10px; height: 10px; }
.opt.is-selected .check-dot { display: inline-grid; }

/* categories */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat { padding: 14px 12px 13px; min-height: 112px; display: flex; flex-direction: column; gap: 6px; }
.cat-emoji { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 21px; background: var(--panel); }
.opt.is-selected .cat-emoji { background: var(--orange-tint); }
.cat-name { font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.cat-blurb { color: var(--muted); font-size: 12px; line-height: 1.35; }
.cat .check-dot { position: absolute; top: 12px; right: 12px; }

/* situations: chips with a dot, two per row */
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 11px;
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
}
.chip::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transition: background-color .15s, box-shadow .15s; }
.chip.is-selected { font-weight: 800; }
.chip.is-selected::before { background: var(--orange); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--orange-line); }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > label, .field > .label, legend { font-weight: 700; font-size: 13.5px; }
.label-opt { color: var(--muted); font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 13px; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange-line); box-shadow: 0 0 0 3px var(--orange-tint); }
.select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.counter { justify-self: end; font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; margin-top: -3px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: 12.5px; font-weight: 600; }

.radio-list { display: grid; gap: 2px; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 7px 2px; cursor: pointer; font-size: 15px; }
.radio-row input, .check-row input {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0;
  width: 20px; height: 20px; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s;
}
.radio-row input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .15s var(--ease); }
.radio-row input:checked { border-color: var(--ink); border-width: 2px; }
.radio-row input:checked::after { transform: scale(1); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card span { display: block; height: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 11px; font-size: 13.5px; font-weight: 600; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.radio-card input:checked + span { border-color: var(--orange-line); background: #fffaf7; box-shadow: 0 0 0 3px var(--orange-tint); font-weight: 800; }
.radio-card input:focus-visible + span { outline: 3px solid var(--orange-line); outline-offset: 2px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--panel); border-radius: var(--pill); padding: 4px; gap: 2px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 8px 4px; border-radius: var(--pill); font-size: 13px; font-weight: 600; color: var(--muted); transition: background-color .15s, color .15s; }
.segmented input:checked + span { background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.segmented input:focus-visible + span { outline: 3px solid var(--orange-line); }
.seg-hint { font-size: 12px; color: var(--muted); }

.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check-row input { border-radius: 5px; margin-top: 1px; }
.check-row input:checked { background: var(--ink); border-color: var(--ink); }
.check-row input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check-row a { font-weight: 700; }

/* ------------------------------------------------------------ panels/cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel { background: var(--panel); border-radius: 12px; padding: 16px 14px; }
.ready-tones { font-size: 13.5px; color: var(--ink-2); margin: 2px 0 14px; }
.ready-meta { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.how-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.how-list li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; }
.how-num { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--orange); line-height: 1; }
.how-list b { display: block; font-size: 14.5px; }
.how-list p { color: var(--muted); font-size: 13px; margin-top: 2px; }

.resume { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; background: var(--card); border: 1.5px solid var(--orange-line); border-radius: var(--radius); padding: 12px 14px; font-size: 13.5px; }
.resume a { font-weight: 800; color: var(--orange-press); white-space: nowrap; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 13px 22px 13px 0; position: relative; font-size: 14.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 20px; font-weight: 500; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 13.5px; padding-bottom: 14px; }

/* --------------------------------------------------------------- summary */
.mini-header { background: var(--dark); color: var(--on-dark); padding: 14px 0; }
.mini-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini-header .wordmark { font-size: 24px; color: #fff; }
.mini-header .crumb { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row:first-child { padding-top: 2px; }
.row-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); grid-column: 1 / -1; }
.row-value { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; white-space: pre-line; }
.row-total { border-bottom: 0; padding-bottom: 0; }
.row-total .row-value { font-size: 15px; font-weight: 800; }
.total-price { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 10px; }
.fine { font-size: 12.5px; color: var(--muted); }
.fine.center { text-align: center; }
.alert { border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13.5px; }
.alert-error { background: var(--red-tint); color: var(--red); font-weight: 600; }
.alert-info { background: var(--blue-tint); color: #1d3f99; }
.alert-test { background: #fff3c2; color: #5c4700; }

/* ---------------------------------------------------------------- payment */
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 4px; }
.order-ref { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.pay { background: var(--dark); color: var(--on-dark); border-radius: 14px; padding: 18px 16px; }
.pay-amount { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--dark-line); }
.pay-amount span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); display: block; }
.pay-amount strong { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pay-steps { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.pay-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; }
.pay-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-size: 12.5px; display: grid; place-items: center; }
.pay-steps b { color: #fff; }
.copy-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.mono-pill { font-family: var(--mono); font-weight: 700; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 7px; padding: 5px 9px; font-size: 14px; color: #fff; letter-spacing: .02em; }
.copy-mini {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; border-radius: var(--pill); padding: 5px 10px;
  border: 1px solid var(--dark-line); background: transparent; color: var(--on-dark);
  transition: background-color .15s, color .15s, border-color .15s;
}
.copy-mini svg { width: 13px; height: 13px; }
.copy-mini.light { border-color: var(--line-2); color: var(--ink); background: #fff; }
.copy-mini.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.pay-actions { margin-top: 16px; display: grid; gap: 10px; }
.pay-qr { display: none; margin-top: 14px; background: #fff; border-radius: 10px; padding: 10px; width: 180px; }
.pay-note { margin-top: 12px; }

/* ------------------------------------------------------------ status card */
.status-card { text-align: center; padding: 28px 18px 24px; }
.status-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; margin-top: 14px; }
.status-card p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.status-emoji { font-size: 44px; line-height: 1; }
.live { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--green); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(35, 130, 74, .5); } 80%, 100% { box-shadow: 0 0 0 9px rgba(35, 130, 74, 0); } }

.hourglass { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--orange-tint); display: grid; place-items: center; }
.hourglass svg { width: 30px; height: 30px; animation: flip 2.4s var(--ease) infinite; }
@keyframes flip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

.typing { display: inline-flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; padding: 14px 16px; }
.typing span { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.gen-msg { min-height: 1.5em; transition: opacity .3s; }
.gen-msg.is-out { opacity: 0; }

/* ----------------------------------------------------------------- result */
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.result-head h2 { font-size: 15px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.excuse { background: var(--card); border-radius: var(--radius-sm); padding: 14px 15px; animation: rise .45s var(--ease) both; }
.excuse + .excuse { margin-top: 8px; }
.excuse-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.excuse-tone { font-weight: 800; font-size: 14.5px; }
.excuse-opt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.excuse-text { font-size: 15.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.excuse-meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.excuse-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.result-actions { display: grid; gap: 10px; margin-top: 14px; }
.version { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.prev { margin-top: 12px; }
.prev summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.prev .excuse { background: transparent; border: 1px dashed var(--line-2); animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.excuse:nth-child(2) { animation-delay: .06s; } .excuse:nth-child(3) { animation-delay: .12s; }
.excuse:nth-child(4) { animation-delay: .18s; } .excuse:nth-child(5) { animation-delay: .24s; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 26px var(--gutter) 30px; }
.site-footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.site-footer .wordmark { font-size: 26px; color: #fff; }
.footer-tag { color: var(--orange); font-weight: 700; font-size: 14px; margin-top: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; }
.site-footer nav a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.footer-fine { color: #85857f; font-size: 12px; margin-top: 12px; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: var(--pill); padding: 10px 16px;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
  transition: opacity .2s, transform .25s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ larger screens */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .hero-ctas { grid-template-columns: 1fr 1fr; }
  .options.pkgs { gap: 12px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .radio-cards { grid-template-columns: repeat(4, 1fr); }
  .pay-qr { display: block; }
}
@media (min-width: 980px) {
  .hero { padding: 26px 0 46px; }
  .hero .wrap { max-width: 1040px; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
  .hero-art { margin-top: 0; }
  .hero-ctas { max-width: 520px; }
  .hero-note { text-align: left; }
  .topnav { margin-bottom: 40px; }
}

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

/* spacing utilities (inline style attributes are blocked by the CSP) */
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; } .mt-18 { margin-top: 18px; } .mt-22 { margin-top: 22px; }
.boot-error { text-align: center; }
.boot-error .wordmark { font-size: 34px; }
.boot-error p { margin: 14px 0 18px; color: var(--on-dark-muted); font-size: 15px; }
.resume a { display: inline-flex; align-items: center; gap: 4px; }
.resume svg { width: 14px; height: 14px; }
