/* Signup flow, "Quiet" (founder's pick of direction C, Sep 2026; mockup
   history in .lavish/trust-signup.html). Loaded only by the signup pages,
   on top of style.css. Everything here is scoped to .onboard / the pages
   that carry it, so the ballot page, admin and research pages are
   untouched. One centered column, minimal copy, calm sand-and-sage
   palette. */

:root {
  --oq-bg: #f4f1ea;
  --oq-surface: #fffdf8;
  --oq-ink: #23261f;
  --oq-muted: #6c6e64;
  --oq-line: #e2dccd;
  --oq-brand: #4d6b5c;
  --oq-tint: #e5ebe3;
  --oq-focus: rgba(77, 107, 92, .18);
  --oq-amber-bg: #fdf3dd;
  --oq-amber-ink: #7c5f13;
  --oq-r: 18px;
}

body:has(.container.onboard) {
  background: var(--oq-bg);
}
body:has(.container.onboard) .site-header,
body:has(.container.onboard) .site-footer {
  max-width: 440px;
}
body:has(.container.onboard) .site-header {
  padding: 22px 24px 0;
}
/* Signup pages replace the long footer (block footer) with two short lines:
   the three promises, then where the records come from and the legal links. */
body:has(.container.onboard) .onboard-legal {
  margin: 6px 0 0; font-size: 12px; color: var(--oq-muted); text-align: center;
}
body:has(.container.onboard) .onboard-legal a { color: inherit; }
body:has(.container.onboard) .wordmark {
  display: flex; align-items: center; gap: 0;
  font: 700 17px/1 "Figtree", sans-serif; letter-spacing: -.01em; color: var(--oq-ink);
}
body:has(.container.onboard) .wordmark::before {
  content: ""; display: block; width: 24px; height: 24px; border-radius: 7px;
  background-color: var(--oq-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px 14px;
  margin-right: 8px;
}
body:has(.container.onboard) .wordmark span { color: inherit; }

.onboard-foot { margin: 0; font-size: 12px; color: var(--oq-muted); text-align: center; letter-spacing: .01em; }
.onboard-foot span + span::before { content: "\00b7"; margin: 0 6px; }
body:has(.container.onboard) .site-footer p { color: var(--oq-muted); }

.container.onboard {
  max-width: 440px;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--oq-ink);
  padding-top: 4px;
}

/* --- step dots, in the header aside --- */
.step-dots { display: flex; gap: 6px; }
.step-dots b { width: 7px; height: 7px; border-radius: 50%; background: var(--oq-line); display: block; }
.step-dots b.on { background: var(--oq-brand); }

.onboard h1 {
  margin: 22px 0 8px; font: 700 34px/1.15 "Figtree", sans-serif; letter-spacing: -.02em;
  text-align: center; color: var(--oq-ink);
}
.onboard .sub { margin: 0 0 26px; color: var(--oq-muted); font-size: 16px; text-align: center; }
.onboard .eyebrow { display: none; }

/* the small illustration above the first screen's headline */
.onboard-art { display: flex; justify-content: center; margin: 4px 0 0; }
.onboard-art svg { width: 100%; max-width: 220px; height: auto; }

/* --- entrance --- */
.onboard-screen { animation: onboard-in .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes onboard-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  .onboard-screen { animation: none; }
}

/* --- forms & fields --- */
.onboard input, .onboard select {
  width: 100%; padding: 15px 16px; border: 1px solid var(--oq-line); border-radius: var(--oq-r);
  font: 500 16px "Figtree", sans-serif; color: var(--oq-ink); background: var(--oq-surface);
  outline: none; margin-bottom: 10px; min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.onboard input::placeholder { color: #9aa3a0; }
.onboard input:focus, .onboard select:focus {
  border-color: var(--oq-brand); box-shadow: 0 0 0 4px var(--oq-focus);
}
.onboard .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onboard .field-error { color: #8a5a1e; font-size: 13.5px; font-weight: 600; margin: -4px 0 10px; }

/* --- primary / ghost buttons --- */
.onboard .btn, .onboard .btn-go {
  display: block; width: 100%; margin-top: 6px; background: var(--oq-brand); color: #fff;
  border: 0; border-radius: 999px; padding: 16px; font: 700 16px "Figtree", sans-serif;
  text-align: center; text-decoration: none; cursor: pointer; min-height: 44px;
  transition: filter .15s ease, transform .15s ease;
}
.onboard .btn:hover, .onboard .btn-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.onboard .btn-inline { display: inline-block; width: auto; }
.onboard .btn-ghost {
  display: block; width: 100%; background: none; border: 0; padding: 12px; margin-top: 4px;
  color: var(--oq-muted); font: 600 15px "Figtree", sans-serif; text-align: center;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px;
}
.onboard .link {
  background: none; border: 0; padding: 0; color: var(--oq-muted); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; display: block; margin: 14px auto 0;
  text-align: center; cursor: pointer;
}

/* --- state chooser rows --- */
.pick-list { display: grid; gap: 10px; margin-top: 8px; }
.pick-list form { margin: 0; }
.pick-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--oq-surface); border: 1px solid var(--oq-line); border-radius: var(--oq-r);
  padding: 16px 18px; min-height: 44px; color: var(--oq-ink); font: 600 17px "Figtree", sans-serif;
  cursor: pointer; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.pick-card:hover { border-color: var(--oq-brand); transform: translateY(-1px); }
.pick-card small { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--oq-muted); }
.pick-card.soon { background: transparent; border-style: dashed; color: var(--oq-muted); }
.pick-card.soon small { color: var(--oq-muted); }

/* --- "is this you?" match cards --- */
.match-list { display: grid; gap: 10px; margin-top: 8px; }
.match-card {
  display: block; width: 100%; text-align: left; background: var(--oq-surface);
  border: 1px solid var(--oq-line); border-radius: var(--oq-r); padding: 16px 18px;
  color: var(--oq-ink); cursor: pointer; min-height: 44px;
  transition: border-color .15s ease;
}
.match-card:hover { border-color: var(--oq-brand); }
.match-card b { display: block; font-size: 17px; }
.match-card .match-sub { display: block; color: var(--oq-muted); font-size: 14px; margin-top: 2px; }
.match-status {
  margin-top: 10px; background: var(--oq-amber-bg); border-radius: 12px; padding: 9px 10px;
  font-size: 12.5px; line-height: 1.45; color: var(--oq-amber-ink); text-align: left;
}
.match-status b { display: block; color: var(--oq-amber-ink); margin-bottom: 2px; }
.match-status a { display: inline-block; margin-top: 4px; color: var(--oq-amber-ink); font-weight: 700; }

/* --- fine print (privacy line) --- */
.onboard .fine {
  display: flex; gap: 7px; justify-content: center; align-items: center; margin: 14px 0 0;
  font-size: 13px; color: var(--oq-muted); text-align: center;
}
.onboard .fine svg { width: 14px; height: 14px; flex: none; }

/* small "change state" line, kept unobtrusive */
.onboard .state-reset {
  display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0 0 18px;
  color: var(--oq-muted); font-size: 13px;
}
.onboard .state-reset .linkish { color: var(--oq-muted); text-decoration: underline; }

/* --- disclosures (details/summary) --- */
.onboard details {
  margin-top: 10px; font-size: 13.5px; color: var(--oq-muted);
}
.onboard details > summary {
  cursor: pointer; font-weight: 600; color: var(--oq-brand); list-style: none;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.onboard details[open] { text-align: left; }
.onboard details[open] > summary { justify-content: flex-start; }
.onboard details > summary::-webkit-details-marker { display: none; }
.onboard details p { margin: 6px 0 10px; line-height: 1.5; }

/* phone consent disclosure on the email step */
.onboard .phone-reveal { margin-top: 10px; }

/* SMS consent — wording is legally required, styling only */
.onboard .consent {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45;
  color: var(--oq-muted); margin: 10px 0 6px;
}
.onboard .consent input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.onboard .consent a { color: inherit; }

.onboard-voter { text-align: center; font-size: 13.5px; color: var(--oq-muted); margin: -18px 0 20px; }

/* --- check email --- */
.onboard-circle {
  width: 72px; height: 72px; border-radius: 50%; background: var(--oq-tint); color: var(--oq-brand);
  display: grid; place-items: center; margin: 32px auto 0;
}
.onboard-circle svg { width: 30px; height: 30px; }
.onboard .center { text-align: center; }
.onboard .sent-to { text-align: center; font-size: 14px; color: var(--oq-muted); margin: -14px 0 20px; }
.onboard .sent-to b { color: var(--oq-ink); }

/* --- cards used for the "no match" recovery options --- */
.onboard .card { background: none; border: 0; padding: 0; margin: 14px 0 0; box-shadow: none; }
.onboard .report .thanks { text-align: center; }
.onboard .panel-title { font-size: 14px; }
.onboard .thanks { color: var(--oq-brand); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .onboard *, .onboard *::before, .onboard *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}
