/* Same palette as the daily email (render.py): page #dfe7ee, white card, blue sky hero, ink/muted text. */
:root {
  --page: #dfe7ee;
  --card: #ffffff;
  --soft: #f2f7fb;
  --line: #e3eaf0;
  --ink: #1b2b3a;
  --muted: #5f7385;
  --faint: #8aa0b2;
  --blue: #1565c0;
  --blue-2: #4aa3e8;
  --link-bg: #e8f1f8;
  --accent: #3d9be9;
  --good-bg: #eaf7ee;
  --good: #43a047;
  --bad-bg: #fdecea;
  --bad: #d32f2f;
  --shadow: 0 4px 18px rgba(20, 50, 80, .15);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b141c; --card: #15222e; --soft: #1e2f3f; --line: #2b4052; --ink: #e8f0f6; --muted: #9fb3c4;
    --faint: #7f95a7; --link-bg: #1f3a52; --good-bg: #173323; --bad-bg: #3b1f1f; --shadow: 0 4px 18px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --page: #0b141c; --card: #15222e; --soft: #1e2f3f; --line: #2b4052; --ink: #e8f0f6; --muted: #9fb3c4;
  --faint: #7f95a7; --link-bg: #1f3a52; --good-bg: #173323; --bad-bg: #3b1f1f; --shadow: 0 4px 18px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }

.logo { display: flex; justify-content: center; padding: 18px 20px 12px; }
.logo img { display: block; width: 190px; max-width: 60%; height: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo img { background: #ffffff; border-radius: 14px; padding: 8px 12px; }
}
:root[data-theme="dark"] .logo img { background: #ffffff; border-radius: 14px; padding: 8px 12px; }

.hero {
  background: var(--blue); background-image: linear-gradient(160deg, var(--blue), var(--blue-2));
  color: #ffffff; padding: 26px 24px 22px;
}
.eyebrow { font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; opacity: .85; }
.hero h1 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 8px; }
.hero p { margin: 0; font-size: 16px; opacity: .95; }

.section { padding: 22px 20px 8px; }
.section:last-of-type { padding-bottom: 22px; }
.title {
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px;
}

label.field { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
input[type=email], input[type=text], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 155, 233, .25); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.tabs { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 12px; }
.tabs button {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: transparent; border: 0;
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--blue); color: #ffffff; }
.row { display: flex; gap: 10px; }
.row > :first-child { flex: 1 1 auto; min-width: 0; }
.row > :last-child { flex: 0 0 110px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box {
  height: 100%; background: var(--soft); border: 2px solid var(--line); border-radius: 14px; padding: 14px 14px 12px;
  transition: border-color .15s, background .15s;
}
.choice input:checked + .box { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 3px rgba(61, 155, 233, .18); }
.choice input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice .emoji { font-size: 26px; line-height: 1; }
.choice .name { font-size: 17px; font-weight: 800; margin: 8px 0 2px; }
.choice .what { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.choice ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.choice li { padding: 2px 0 2px 20px; position: relative; }
.choice li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.choice li.plus { color: var(--muted); }
.choice li.plus::before { content: "+"; color: var(--accent); }

.submit {
  display: block; width: 100%; font: inherit; font-size: 16px; font-weight: 800; color: #ffffff; background: var(--blue);
  border: 0; border-radius: 12px; padding: 14px; cursor: pointer;
}
.submit:hover { filter: brightness(1.08); }
.submit:disabled { opacity: .6; cursor: progress; }

.msg { display: none; border-radius: 8px; padding: 10px 12px; margin-top: 12px; font-size: 14px; border-left: 4px solid; }
.msg.show { display: block; }
.msg.ok { background: var(--good-bg); border-color: var(--good); }
.msg.err { background: var(--bad-bg); border-color: var(--bad); }

.footer { padding: 16px 20px 22px; font-size: 11px; color: var(--faint); text-align: center; line-height: 1.6; }
.footer a { color: var(--faint); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
