/* Minimal placeholder design. A designer bounty will replace this. */
:root { color-scheme: light dark; --bg: #fff; --text: #111; --muted: #666; --line: #e5e5e5; --soft: #f6f6f6; }
@media (prefers-color-scheme: dark) { :root { --bg: #111; --text: #eee; --muted: #999; --line: #2a2a2a; --soft: #1a1a1a; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
h3 { font-size: 16px; margin-bottom: 4px; }
p, li { color: var(--muted); }
h1 em { font-style: normal; }
code { font: 13px ui-monospace, Menlo, monospace; background: var(--soft); padding: 1px 5px; border-radius: 4px; color: var(--text); }
section { padding: 48px 0; border-top: 1px solid var(--line); }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.lead { font-size: 17px; max-width: 600px; }
.note { font-size: 14px; margin-top: 16px; }

nav { border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 700; text-decoration: none; color: var(--text); }
.logo span { display: none; }
nav ul { display: flex; gap: 18px; list-style: none; }
nav ul a, nav a.back { color: var(--muted); text-decoration: none; font-size: 14px; }
nav ul a:hover { color: var(--text); }
@media (max-width: 640px) { nav ul { display: none; } }

.hero, header { padding: 56px 0 48px; border-top: 0; }
.hero .lead, header .lead { margin: 16px 0 24px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn, button[type="submit"] { display: inline-block; padding: 10px 18px; border-radius: 8px; font: 600 15px system-ui, sans-serif;
  text-decoration: none; border: 1px solid var(--text); cursor: pointer; }
.btn.primary, button[type="submit"] { background: var(--text); color: var(--bg); }
.btn.ghost { background: none; color: var(--text); border-color: var(--line); }

.grid, .pay, .rules, .flag { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card, .fp, .panel { border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.num { font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
ul, ol { margin: 10px 0 0 18px; }
li { margin: 3px 0; font-size: 15px; }
li b { color: var(--text); }

.stages { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; }
.stage { padding: 16px; border-right: 1px solid var(--line); }
.stage:last-child { border-right: 0; }
.stage small { font-size: 12px; color: var(--muted); }
.stage p { font-size: 14px; }
@media (max-width: 640px) { .stages { grid-template-columns: 1fr 1fr; } .stage:nth-child(2) { border-right: 0; } .stage:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.fp .no { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fp h3 { font-size: 18px; }
.fp h3 a { text-decoration: none; }
.fp h3 a span { color: var(--muted) !important; font-size: 14px !important; }
.fp .sum { color: var(--text); margin: 2px 0 6px; }
.fp .earn { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.fp .earn b { color: var(--text); }
.cta { text-align: center; }
.cta .lead { margin: 0 auto 20px; }
.cta .btns { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* propose page */
.layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; padding-bottom: 56px; align-items: start; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
aside .panel + .panel { margin-top: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 4px; }
.hint { font-size: 13px; margin-bottom: 6px; }
input, textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  font: 15px system-ui, sans-serif; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid var(--text); outline-offset: -1px; }
textarea { min-height: 88px; resize: vertical; }
.req { color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
button[type="submit"] { width: 100%; margin-top: 20px; }
.small { font-size: 13px; margin-top: 10px; text-align: center; }
.err { font-size: 14px; margin-top: 10px; display: none; color: #c0392b; }
.list { display: grid; gap: 8px; margin-top: 14px; }
.prop { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-decoration: none; color: var(--text); }
.prop:hover { border-color: var(--text); }
.votes { min-width: 40px; text-align: center; font-weight: 700; font-size: 18px; line-height: 1; }
.votes small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 3px; }
.prop h3 { font-size: 15px; font-weight: 600; margin: 0; }
.meta { font-size: 13px; color: var(--muted); }
.empty { font-size: 14px; padding: 12px 0; }
.steps { font-size: 15px; }
