:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --panel: #ffffff;
  --line: #dce3e1;
  --text: #24302e;
  --muted: #687572;
  --accent: #587973;
  --accent-soft: #e8f0ee;
  --blue: #647d91;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glow { display: none; }

main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 32px;
}

.brand {
  display: inline-block;
  margin-bottom: 76px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.hero { max-width: 800px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span { color: var(--blue); }

.intro {
  max-width: 720px;
  color: #52605d;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  line-height: 1.72;
}

.deadline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin: 24px 0 74px;
  padding: 13px 17px;
  border: 1px solid #cedbd8;
  border-radius: 12px;
  background: var(--accent-soft);
}

.deadline-label { color: #4e615d; }
#countdown { color: #315e55; font-variant-numeric: tabular-nums; }

.poll {
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(45, 62, 58, 0.07);
}

.section-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.vote-total { margin: 0; color: var(--muted); white-space: nowrap; }

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option {
  position: relative;
  display: block;
  min-height: 184px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfc;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.option:hover { border-color: #9db2ad; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { position: absolute; opacity: 0; }

.option-number {
  color: #7b8b88;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.option h3 { margin: 17px 0 9px; font-size: 1.15rem; }
.option p { margin: 0 0 28px; color: var(--muted); line-height: 1.5; }

.result-track {
  position: absolute;
  right: 22px;
  bottom: 19px;
  left: 22px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eae9;
}

.result-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 450ms ease;
}

.result-label {
  position: absolute;
  right: 22px;
  bottom: 31px;
  color: #667672;
  font-size: 0.76rem;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

button, .community a {
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
}

button {
  padding: 14px 21px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

button:hover:not(:disabled) { background: #496962; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
#form-message { margin: 0; color: #35685d; }

.community {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  margin: 24px 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #eef2f1;
}

.community p:not(.eyebrow) {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.community a {
  flex: 0 0 auto;
  padding: 13px 18px;
  color: #38534e;
  background: #dce8e5;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  color: #7a8582;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  main { width: min(100% - 24px, 1040px); padding-top: 24px; }
  .brand { margin-bottom: 54px; }
  .section-heading, .community, footer { align-items: flex-start; flex-direction: column; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 170px; }
  .submit-row { align-items: flex-start; flex-direction: column; }
  button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
