:root {
  --ink: #182c3b;
  --strong: #142635;
  --paper: #f4f6f5;
  --teal: #12695f;
  --muted: #586b77;
  --border: #dce3e5;
  --mint: #dcefe7;
  --white: #fff;
  --radius: 10px;
  --side: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; line-height: 1.43; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #33998b; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1:focus, h2:focus { outline: none; }
.wrap { max-width: 900px; margin-inline: auto; padding-inline: var(--side); }
.masthead { color: var(--white); background: var(--ink); border-bottom: 1px solid #ffffff13; }
.brand { display: flex; align-items: center; min-height: 60px; gap: 12px; font-size: clamp(18px, 5.2vw, 22px); font-weight: 800; letter-spacing: -.025em; }
.brand img { flex: 0 0 34px; }
.hero { color: var(--white); background: var(--ink); }
.hero .wrap { padding-block: 21px 22px; }
.hero h1, .verify h1 { font-weight: 820; line-height: 1.075; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(27px, 8.65vw, 35px); }
.hero h1 span { display: block; }
.hero p { max-width: 430px; color: #d7e4e9; font-size: 17px; line-height: 1.37; margin-top: 14px; }
.ballot { padding-top: 15px; }
.caption { color: var(--muted); font-size: 14px; }
.ballot h2 { font-size: 25px; letter-spacing: -.036em; line-height: 1.15; margin: 7px 0 16px; color: var(--strong); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.vote-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 12px 9px; text-align: left; transition: border-color .15s, background-color .15s; }
.vote-card:hover { border-color: #7bb2a8; background: #fcfefd; }
.vote-card:active { background: #eef7f3; }
.monogram { display: grid; flex-shrink: 0; place-items: center; width: 38px; height: 31px; border-radius: 6px; color: #192c2c; background: #d8e9cc; font-size: 19px; font-weight: 800; }
.tone-a { background: #d8e9cc; }
.tone-b { background: #d2e5f7; }
.tone-c { background: #fae1b4; }
.tone-d { background: #e5d9f4; }
.card-name { color: var(--strong); font-size: 18px; letter-spacing: -.025em; margin-top: 5px; }
.reference { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 9px; }
.vote-cta { display: flex; gap: 6px; width: 100%; margin-top: auto; padding-top: 5px; border-top: 1px solid var(--border); color: var(--teal); font-size: 15.5px; font-weight: 760; align-items: center; }
.vote-cta span { font-size: 20px; line-height: 1; }
.report, .anti-bot, .picked { display: flex; align-items: center; gap: 14px; }
.report, .picked, .form-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.report { margin-top: 18px; padding: 12px 14px; }
.report strong, .anti-bot strong { display: block; color: var(--strong); font-size: 16px; }
.report p, .anti-bot p { margin-top: 1px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.report svg, .anti-bot svg { color: var(--teal); flex: 0 0 32px; }
footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 12px 0 18px; }
.tally { margin-top: 10px; text-align: center; }
.verify { max-width: 490px; padding-block: 12px 24px; }
.text-action { border: 0; background: transparent; color: var(--teal); padding: 5px 0; font-weight: 650; }
.back { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 15px; }
.back span { font-size: 21px; }
.verify h1 { font-size: clamp(27px, 8vw, 34px); color: var(--strong); margin-bottom: 18px; }
.picked { padding: 12px 14px; margin-bottom: 16px; }
.picked .monogram { width: 44px; height: 44px; border-radius: 8px; font-size: 23px; }
.picked strong { display: block; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.picked div span { color: var(--muted); font-size: 15px; }
.anti-bot { align-items: flex-start; padding: 13px 14px; margin-bottom: 16px; border-radius: var(--radius); background: var(--mint); }
.anti-bot strong { font-size: 18px; }
.anti-bot svg { margin-top: 3px; }
.form-card { padding: 14px; }
label { display: block; color: var(--strong); font-size: 15px; font-weight: 730; margin-bottom: 5px; }
input { width: 100%; display: block; min-height: 44px; border: 1px solid #a9bbc0; border-radius: 7px; background: #fcfdfd; padding: 8px 12px; color: var(--strong); }
input[readonly] { background: #f6f8f8; }
#email, #chosen-email { font-size: clamp(12px, 4vw, 16px); }
input[aria-invalid="true"] { border-color: #a43a32; }
input[name="code"] { font-size: 22px; letter-spacing: .15em; font-variant-numeric: tabular-nums; }
.ready { margin: 6px 0 16px; font-size: 13.5px; color: var(--muted); }
.ready span { color: var(--teal); font-weight: 800; margin-right: 4px; }
.primary { display: block; width: 100%; min-height: 48px; margin-top: 16px; padding: 9px 14px; border: 0; border-radius: 8px; background: var(--teal); color: var(--white); font-size: 17px; font-weight: 770; }
.primary:hover { background: #0b5b52; }
button:disabled { opacity: .65; cursor: wait; }
.preview-settings { margin-top: 14px; text-align: center; }
.resend { display: block; width: 100%; min-height: 42px; margin-top: 5px; font-size: 15px; }
.resend:hover, .back:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-note { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 12px; }
.error { color: #992b24; font-size: 13.5px; margin-top: 6px; }
.success-mark { display: grid; place-items: center; margin: 26px 0 16px; background: var(--mint); color: var(--teal); width: 54px; height: 54px; border-radius: 50%; font-size: 28px; font-weight: 750; }
.success-copy { font-size: 17px; }
@media (max-width: 330px) { :root { --side: 14px; } .vote-card { padding-inline: 9px; } }
@media (min-width: 640px) {
  :root { --side: 28px; }
  .hero .wrap { padding-block: 28px 33px; }
  .hero h1 { font-size: 42px; max-width: 660px; text-wrap: balance; }
  .hero h1 span { display: inline; }
  .hero p { max-width: 540px; }
  .ballot { padding-top: 23px; }
  .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vote-card { min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .vote-card { transition: none; } }
