/* Report a problem: Revive design (Outfit headings, Source Sans 3 text, green to act), phone first */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=Outfit:wght@500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --bg: #f3f5f7; --surface: #fff; --ink: #111f2d; --ink-2: #3d546a; --ink-3: #5c7184;
  --line: #dce3e9; --line-strong: #b9c6d1; --hover: #eaeff3;
  --primary: #2bb673; --primary-hover: #249c62; --accent: #187a4c; --on-primary: #fff;
  --critical: #b02a2a; --wash: #e9f7f0;
  --font-head: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111f2d; --surface: #18293a; --ink: #fff; --ink-2: #a8bccb; --ink-3: #8499aa;
    --line: #2a4056; --line-strong: #3d546a; --hover: #203549; --accent: #34c681; --critical: #ff8a80; --wash: #173b30;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font-body); }
a { color: var(--accent); }
.top { display: flex; justify-content: center; padding: 22px 16px 6px; }
.logo { height: 34px; }
.logo.dark { display: none; }
@media (prefers-color-scheme: dark) { .logo.light { display: none; } .logo.dark { display: block; } }
.wrap { max-width: 780px; margin: 0 auto; padding: 12px 16px 40px; }
/* progress bar: stays at the top while scrolling on a phone */
.progress { position: sticky; top: 0; z-index: 5; margin: 0 -16px 12px; padding: 10px 16px 12px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.progress[hidden] { display: none; }
.progress-text { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
#progress-step { font: 600 14px var(--font-head); color: var(--accent); }
#progress-name { color: var(--ink-2); }
.progress-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; width: 20%; border-radius: 99px; background: var(--primary); transition: width .45s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; box-shadow: 0 8px 30px rgba(17, 31, 45, .06); }
@media (min-width: 600px) { .card { padding: 32px 36px; } }
.eyebrow { margin: 0; font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
h1 { font: 700 30px/1.15 var(--font-head); margin: 6px 0 8px; }
.lead { margin: 0; color: var(--ink-2); }
.intro { margin-bottom: 8px; }
.step { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; display: flex; flex-direction: column; gap: 12px; animation: step-in .3s ease-out; }
.step[hidden] { display: none; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } }
h2 { font: 600 20px var(--font-head); margin: 0; display: flex; align-items: center; gap: 10px; }
.n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 15px var(--font-head); }
.field { display: flex; flex-direction: column; gap: 4px; }
.label, .sub-label { font-weight: 600; }
.sub-label { margin: 0; }
.hint { font-size: 14px; color: var(--ink-3); }
.optional { font-weight: 400; color: var(--ink-3); }
input[type="text"], input:not([type]), input[type="email"], input[type="tel"], input[type="date"], input[type="time"], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 17px; /* 16px+ stops iPhones zooming in */
}
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
/* Ticks and choices: no box when clicked or tapped, a ring only for keyboard users */
input[type="checkbox"]:focus, input[type="radio"]:focus { outline: none; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
label, .choice, .check { -webkit-tap-highlight-color: transparent; }
input:disabled { background: var(--hover); color: var(--ink-3); }
[aria-invalid="true"] { border-color: var(--critical) !important; }
.digits { font-family: var(--font-mono); letter-spacing: .4em; max-width: 9em; }
#asset { font-family: var(--font-mono); letter-spacing: .25em; max-width: 9em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; } }
.money { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); padding-left: 14px; }
.money:focus-within { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
.money input { border: 0; padding-left: 6px; outline: none !important; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .choices.three { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover { background: var(--hover); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--wash); }
.choice input { margin-top: 3px; flex: none; }
.choice strong { display: block; line-height: 1.3; }
.choice small { color: var(--ink-3); font-size: 14px; }
.suggest { margin: -4px 0 0; font-size: 15px; color: var(--ink-2); }
.suggest button { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; cursor: pointer; }
.notice { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { margin: 0; flex: none; }

/* Tick boxes and round choices, drawn here so they look the same on every phone:
   a green box with a white tick, and a circle that darkens with a filled dot in the middle */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; flex: none; cursor: pointer;
  border: 2px solid var(--line-strong); background: var(--surface) center / 14px 14px no-repeat;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
input[type="checkbox"] { border-radius: 6px; }
input[type="checkbox"]:checked {
  background-color: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="radio"] { border-radius: 50%; }
/* chosen: the circle turns darker green with a filled dot in the middle (the gap matches what's behind it) */
input[type="radio"]:checked { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); background-color: var(--accent); }
.choice:has(input:checked) input[type="radio"] { box-shadow: inset 0 0 0 4px var(--wash); }
input[type="checkbox"]:hover:not(:checked), input[type="radio"]:hover:not(:checked) { border-color: var(--ink-3); }
.check.small { font-size: 15px; color: var(--ink-2); }
#card-box { display: flex; flex-direction: column; gap: 12px; }
.wallet-help { background: var(--hover); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.wallet-help summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.wallet-help p { margin: 8px 0 0; }
.error { margin: -4px 0 0; color: var(--critical); font-size: 15px; font-weight: 600; }
.error:empty { display: none; }
.form-error { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.btn { appearance: none; border: 0; border-radius: 99px; background: var(--primary); color: var(--on-primary); font: 600 18px var(--font-head); padding: 14px 24px; cursor: pointer; width: 100%; margin-top: 6px; transition: background-color .15s, transform .1s; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .7; cursor: progress; }
.done { text-align: center; animation: step-in .35s ease-out; }
.done:focus { outline: none; }
.tick { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 34px; font-weight: 700; }
.ref { font: 600 20px var(--font-head); color: var(--accent); margin: 0 0 8px; }
.ref:empty { display: none; }
.muted { color: var(--ink-3); font-size: 15px; }
.foot { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .step, .done { animation: none; } * { transition: none !important; } }
