:root {
  --ink: #1c1c1e;
  --muted: #5f6368;
  --line: #e6e6e8;
  --bg: #ffffff;
  --accent: #0B7A4B;
  --accent-ink: #ffffff;
  --wash: #f6f7f5;
  --error: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
header { display: flex; align-items: center; justify-content: space-between; height: 68px; }
nav a { margin-left: 1.25rem; text-decoration: none; color: var(--muted); font-size: 0.95rem; }
nav a:hover { color: var(--ink); }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--ink);
}
.brand img { display: block; flex: none; }

.card {
  max-width: 400px; margin: 3rem auto; padding: 2rem;
  background: var(--wash); border-radius: 12px;
}
.card.wide { max-width: 560px; }
.card section + section { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.card h2:first-child { margin-top: 0; }
h1 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
h2 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
input[type=email] {
  width: 100%; padding: 0.65rem 0.75rem; font: inherit;
  border: 1px solid #c9cbc7; border-radius: 8px; background: var(--bg); color: var(--ink);
}
input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.btn {
  display: inline-block; margin-top: 0.85rem; padding: 0.7rem 1.2rem; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer;
}
form .btn { width: 100%; }
.btn:hover { filter: brightness(0.95); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
p > .btn:first-child { margin-top: 0; }
.actions { display: flex; gap: 0.75rem; }
.actions .btn { flex: 1; }
button.link { background: none; border: 0; padding: 0.25rem 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.devices li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.steps { padding-left: 1.25rem; margin: 1rem 0 0; }
.steps li { margin-bottom: 0.35rem; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

.g_id_signin { display: flex; justify-content: center; min-height: 44px; }
/* Google sizes its fallback button (used when its iframe can't render) with
   inline styles, which our CSP blocks; keep its "G" icon from filling the card. */
.g_id_signin svg { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--muted); font-size: 0.9rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.notice { padding: 0.75rem 0.9rem; border-radius: 8px; margin: 0 0 1.25rem; font-size: 0.95rem; }
.notice.ok { background: #e3eee9; color: #1d3d34; }
.notice.error { background: #fbe9e7; color: var(--error); }
.notice[hidden] { display: none; }
.fine { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1.25rem; }
ul.plain li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 480px) {
  .card { margin: 1.5rem auto; padding: 1.5rem 1.1rem; }
}

/* ---- waitlist form ---- */
.wrap.wide { max-width: 1180px; }
.card.full { max-width: none; margin-top: 1.5rem; }
form.waitlist { margin-top: 1.25rem; }
.group { border: 0; padding: 0; margin: 0 0 1.5rem; }
.group > legend { font-weight: 650; font-size: 1.05rem; padding: 0; margin-bottom: 0.75rem; }
.q { border: 0; padding: 0; margin: 0 0 1.1rem; }
.q > legend, .q > label { display: block; font-weight: 500; padding: 0; margin-bottom: 0.45rem; }
.hint { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.opts.stack { flex-direction: column; }
.opt { display: inline-flex; align-items: flex-start; gap: 0.5rem; padding: 0.45rem 0.7rem; border: 1px solid #d6d8d3;
  border-radius: 8px; background: var(--bg); cursor: pointer; font-weight: 400; line-height: 1.35; }
.opt input { margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; }
.opt:has(input:checked) { border-color: var(--accent); background: #eaf3ee; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.opt.check { display: flex; }
.q input[type=text], .q input[type=email], .q input[type=tel], .q textarea {
  width: 100%; padding: 0.6rem 0.75rem; font: inherit; border: 1px solid #c9cbc7; border-radius: 8px; background: var(--bg); color: var(--ink);
}
.q textarea { resize: vertical; }
.q input[type=text]:focus, .q input[type=email]:focus, .q input[type=tel]:focus, .q textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
form.waitlist .actions { margin-top: 0.5rem; }

/* ---- admin ---- */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-head h1 { margin: 0; }
.btn.small { margin-top: 0; padding: 0.4rem 0.8rem; font-size: 0.9rem; width: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.88rem; }
.demand { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.demand summary { cursor: pointer; font-weight: 600; }
.tallies { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.5rem 1.5rem; margin-top: 0.75rem; }
.tally h3 { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin: 0.5rem 0 0.35rem; }
.tally ul { list-style: none; margin: 0; padding: 0; }
.tally li { display: grid; grid-template-columns: 1fr 80px 2rem; align-items: center; gap: 0.5rem; font-size: 0.85rem; padding: 0.12rem 0; }
.tally .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.tally .bar i { display: block; height: 100%; background: var(--accent); }
.tally b { text-align: right; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 0.75rem; }
.filters a { margin: 0; padding: 0.25rem 0.65rem; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); font-size: 0.88rem; color: var(--ink); }
.filters a.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.filters .sep { width: 1px; height: 1.2rem; background: var(--line); margin: 0 0.4rem; }
table.people { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem; }
.people th { text-align: left; font-size: 0.8rem; color: var(--muted); font-weight: 600; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.people td { vertical-align: top; padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--line); }
.people td.person { width: 28%; word-break: break-word; }
.people td.act { width: 120px; }
.people td.act form { margin-top: 0.4rem; }
.people .ask p { margin: 0 0 0.4rem; }
.tag { display: inline-block; font-size: 0.78rem; background: #eaf3ee; color: #0a5a38; border-radius: 99px; padding: 0.1rem 0.55rem; margin: 0 0.3rem 0.3rem 0; }
.star { color: #8a5a00; font-size: 0.85rem; font-weight: 600; }
.ok { color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.wait { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 720px) {
  .people thead { display: none; }
  .people tr, .people td { display: block; width: auto !important; }
}
.lede { font-size: 1.05rem; }
h2.sub { font-size: 1.15rem; margin: 0.25rem 0; }
.q select { width: 100%; padding: 0.55rem 0.6rem; font: inherit; border: 1px solid #c9cbc7; border-radius: 8px; background: var(--bg); color: var(--ink); }
.q select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
@media (min-width: 560px) {
  form.waitlist .q.half { display: inline-block; width: calc(50% - 0.5rem); vertical-align: top; }
  form.waitlist .q.half + .q.half { margin-left: 0.75rem; }
}
.req { color: var(--muted); font-weight: 400; font-size: 0.8rem; margin-left: 0.25rem; }
.q.missing input, .q.missing textarea { border-color: var(--error); outline: 2px solid #f4c7c3; }
.demo-box { margin: 0.6rem 0 0; padding: 0.6rem 0.75rem; border-left: 3px solid var(--accent); background: var(--accent-soft, #e8f3ed); border-radius: 0 8px 8px 0; }
.demo-box p { margin: 0.2rem 0; }
.badge-demo { display: inline-block; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 99px; padding: 0.05rem 0.5rem; }
.demo-box .contact { color: var(--ink); font-size: 0.9rem; }
