:root {
  --bg: #3a4e59;
  --panel: #465963;
  --panel-2: #55666f;
  --line: #728088;
  --muted: #b0b8bd;
  --text: #ffffff;
  --accent: #88aaaa;
  --accent-dark: #799f9f;
  --accent-soft: rgba(136, 170, 170, 0.2);
  --danger: #f2b8a2;
  --ok: #9fd3b3;
  --font-body: "Roboto Slab", Georgia, serif;
  --font-head: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --max: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); margin-top: 2.2rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: #fff; }
ul { padding-left: 1.2em; }
li { margin-bottom: 0.5em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.topbar a.sub { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.topbar a.sub:hover { color: #fff; }

.hero { padding: 48px 0 24px; }
.hero p.lead { font-size: 1.15rem; color: #e6eaec; }
.fine { color: var(--muted); font-size: 0.92rem; }

.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  background: var(--accent); color: #1f2d33; text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; line-height: 1.2;
  transition: background 0.15s, transform 0.05s;
}
.btn:hover { background: #a6c2c2; color: #1f2d33; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: #fff; border: 1.5px solid var(--line); }
.btn.secondary:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }

.card { background: var(--panel); border-radius: var(--radius); padding: 22px 20px; margin: 18px 0; }
.card.pop { border-left: 4px solid var(--accent); }

footer { margin-top: 56px; padding: 28px 0 44px; border-top: 1px solid rgba(255,255,255,0.08); color: var(--muted); font-size: 0.9rem; }

/* ---------- survey ---------- */
.progress { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.progress .meta { display: flex; justify-content: space-between; font-family: var(--font-head); font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.progress .bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.progress .bar > div { height: 100%; background: var(--accent); width: 0; transition: width 0.25s; }

.screen { padding: 22px 0 60px; }
.screen h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
.note { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 6px; color: #e6eaec; font-size: 0.95rem; margin-bottom: 22px; }
.banner { background: var(--panel-2); padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 0.95rem; }

.field { background: var(--panel); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 14px; scroll-margin-top: 80px; }
.field.error { outline: 2px solid var(--danger); }
.field .label { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; display: block; margin-bottom: 4px; }
.field .help { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }
.field .err { color: var(--danger); font-size: 0.9rem; margin: 8px 0 0; font-family: var(--font-head); }
.field .warn { background: rgba(242,184,162,0.12); border: 1px solid var(--danger); border-radius: 8px; padding: 10px 12px; margin-top: 10px; font-size: 0.93rem; }
.field .warn .btn { padding: 8px 14px; font-size: 0.9rem; margin-top: 8px; }

.choices { display: flex; flex-direction: column; gap: 8px; }
.choices.inline { flex-direction: row; flex-wrap: wrap; }
.choice {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--panel-2); border: 1.5px solid transparent; border-radius: 8px; padding: 11px 14px;
  font-size: 1rem; user-select: none;
}
.choices.inline .choice { padding: 10px 16px; }
.choice:hover { border-color: var(--line); }
.choice.on { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }

.amount-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.money { display: flex; align-items: center; background: var(--panel-2); border: 1.5px solid transparent; border-radius: 8px; flex: 1 1 160px; max-width: 240px; }
.money:focus-within { border-color: var(--accent); }
.money .cur { padding: 0 0 0 12px; color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.money input {
  flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; color: #fff; font: inherit; font-size: 1.15rem;
  padding: 11px 12px 11px 8px; outline: none;
}
.money input:disabled { color: var(--muted); }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 999px; padding: 3px; }
.seg button {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); padding: 7px 13px; border-radius: 999px;
}
.seg button.on { background: var(--accent); color: #1f2d33; }
.seg button:disabled { opacity: 0.4; cursor: default; }

.skips { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.skips .lbl { color: var(--muted); font-size: 0.85rem; font-family: var(--font-head); margin-right: 2px; }
.chip {
  font-family: var(--font-head); font-size: 0.82rem; border: 1px solid var(--line); background: transparent; color: #e6eaec;
  border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.chip:hover { border-color: #fff; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #1f2d33; }

.text-input, textarea {
  width: 100%; background: var(--panel-2); border: 1.5px solid transparent; border-radius: 8px; color: #fff;
  font: inherit; font-size: 1.02rem; padding: 11px 12px; outline: none;
}
.text-input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.text-input.short { max-width: 160px; }

.computed { margin-top: 10px; color: var(--accent); font-family: var(--font-head); font-weight: 700; }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.nav .spacer { flex: 1; }

.currency-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .currency-pick { grid-template-columns: 1fr; } }
.currency-pick .choice { justify-content: center; font-family: var(--font-head); font-weight: 700; padding: 16px; }

.status { margin-top: 12px; color: var(--muted); font-size: 0.92rem; font-family: var(--font-head); }
.status.bad { color: var(--danger); }

.cf-turnstile { margin: 10px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
