/* 세 후보 랜딩 페이지가 함께 쓰는 스타일. 강조색은 페이지별 body 클래스로 바꾼다. */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5c5a55;
  --line: #e2e0d9;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e6f2f0;
  --danger: #b42318;
  --radius: 14px;
  color-scheme: light dark;
}
body.care { --accent: #0f766e; --accent-soft: #e6f2f0; }
body.snap { --accent: #b45309; --accent-soft: #fdf5ea; }
body.home { --accent: #1d4ed8; --accent-soft: #e8eefc; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1c1c1a;
    --text: #f1efe9;
    --muted: #b3b0a7;
    --line: #34332f;
    --accent-ink: #0b0b0a;
    --danger: #ff8a80;
    --accent: #4fd1c0;
    --accent-soft: #14302d;
  }
  body.care { --accent: #4fd1c0; --accent-soft: #14302d; }
  body.snap { --accent: #f4a259; --accent-soft: #3a2812; }
  body.home { --accent: #8fb0ff; --accent-soft: #1b2644; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
main { max-width: 640px; margin: 0 auto; padding: 40px 20px 56px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
h1 { margin: 0 0 16px; font-size: clamp(26px, 7vw, 34px); line-height: 1.3; letter-spacing: -0.02em; }
h2 { margin: 40px 0 16px; font-size: 20px; line-height: 1.4; }
.lead { margin: 0 0 8px; color: var(--muted); font-size: 17px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cards li {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.cards strong { display: block; margin-bottom: 2px; }
.cards span { color: var(--muted); }

.note-line { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius); background: var(--accent-soft); font-weight: 600; }
.disclaimer { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

form {
  margin-top: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { margin-bottom: 18px; }
label.title { display: block; margin-bottom: 6px; font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 16px; }
input[type="email"], input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 8px 0; }
.check input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { flex: 1; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button.submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
button.submit:disabled { opacity: 0.6; cursor: progress; }

.msg { margin: 14px 0 0; font-weight: 600; }
.msg.error { color: var(--danger); }
.done { padding: 20px; border-radius: var(--radius); background: var(--accent-soft); font-weight: 700; }
[hidden] { display: none !important; }

footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
footer p { margin: 0 0 6px; }
.check a, footer a, .doc a { color: var(--accent); text-underline-offset: 3px; }

.doc h2 { font-size: 18px; margin-top: 28px; }
.doc ul { padding-left: 20px; }
.doc .index-list { padding: 0; }
.doc li { margin-bottom: 6px; }
.index-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.index-list a {
  display: block;
  min-height: 48px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
