:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #16202a;
  --muted: #5b6672;
  --line: #e2ddd3;
  --accent: #e8590c;        /* warm orange: BOB's colour */
  --accent-ink: #ffffff;
  --accent-soft: #fde7d9;
  --ok: #1f7a4d;
  --ok-soft: #e3f4ea;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --focus: #2563eb;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1720; --surface: #17212c; --ink: #eef2f6; --muted: #a3afbb; --line: #2a3644;
    --accent: #ff7a33; --accent-ink: #1a0d04; --accent-soft: #3a2416;
    --ok: #4ade80; --ok-soft: #12301f; --bad: #f87171; --bad-soft: #3a1a1a; --focus: #60a5fa;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1720; --surface: #17212c; --ink: #eef2f6; --muted: #a3afbb; --line: #2a3644;
  --accent: #ff7a33; --accent-ink: #1a0d04; --accent-soft: #3a2416;
  --ok: #4ade80; --ok-soft: #12301f; --bad: #f87171; --bad-soft: #3a1a1a; --focus: #60a5fa;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: .06em; color: var(--accent); }
.by { color: var(--muted); font-size: 14px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); }

.hero { text-align: center; padding: 16px 0 8px; }
h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.1; margin: 8px 0; letter-spacing: -.01em; }
.kicker { margin: 4px 0 0; font-size: 18px; font-weight: 600; color: var(--accent); }
.lede { color: var(--ink); font-size: 17px; margin: 0 auto 6px; max-width: 30em; }
.disclose { color: var(--muted); font-size: 13px; margin: 0 0 20px; }

.stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.talk {
  position: relative; width: 168px; height: 168px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; align-content: center; gap: 4px;
  font: inherit; font-weight: 700; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .15s ease; touch-action: manipulation;
}
.talk:active { transform: scale(.97); }
.talk:disabled { opacity: .6; cursor: default; }
.mic { width: 44px; height: 44px; fill: currentColor; }
.ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; }
.stage[data-state="connecting"] .ring { animation: pulse 1.2s ease-out infinite; }
.stage[data-state="speaking"] .ring { animation: pulse .8s ease-out infinite; }
.stage[data-state="listening"] .ring { opacity: .45; }
@keyframes pulse { from { transform: scale(.95); opacity: .7; } to { transform: scale(1.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none !important; } }

.hint, .muted { color: var(--muted); font-size: 14px; margin: 0; }
.small { font-size: 13px; }
.call { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.status { margin: 0; font-weight: 600; }
.caption { margin: 6px 0 10px; min-height: 1.5em; color: var(--muted); }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ctl { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.ctl[aria-pressed="true"] { background: var(--accent-soft); }
.ctl.end { background: var(--bad); color: #fff; border-color: transparent; }
.timer { font-variant-numeric: tabular-nums; color: var(--muted); }
.overwhelmed { width: 100%; display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--accent-soft); text-align: center; }
.overwhelmed .primary { margin-top: 0; }
.notice { width: 100%; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); text-align: left; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin-top: 16px; }
.card h2 { font-size: 19px; margin: 0 0 6px; }
.event { border-left: 5px solid var(--accent); }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }

form { display: grid; gap: 6px; margin-top: 10px; }
label { font-weight: 600; font-size: 15px; margin-top: 8px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: var(--bad); }
.readback { margin: 2px 0 0; font-size: 14px; min-height: 1.2em; color: var(--ok); }
.readback.bad { color: var(--bad); }
.youth { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.youth input { width: 24px; height: 24px; min-height: 0; flex: none; margin-top: 1px; accent-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-top: 14px; }
.consent input { width: 24px; height: 24px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--accent); }
.methods { border: 0; padding: 0; margin: 10px 0 0; }
.methods legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { margin: 0; font-weight: 600; font-size: 14px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; min-height: 48px; padding: 0 6px; text-align: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.addq { margin-top: 8px; }
.addq summary { cursor: pointer; font-weight: 600; font-size: 15px; min-height: 36px; display: flex; align-items: center; gap: 6px; }
.addq summary { list-style: none; color: var(--accent); }
.addq summary::-webkit-details-marker { display: none; }
.addq summary::before { content: "+"; font-size: 20px; line-height: 1; }
.addq[open] summary::before { content: "−"; }
.addq textarea { margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.primary { margin-top: 12px; min-height: 52px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: progress; }
.saved { margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--ok-soft); }
.saved h3 { margin: 0 0 6px; font-size: 17px; }
.saved p { margin: 4px 0; }

.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.faq p { margin: 6px 0 0; color: var(--muted); }

.share { text-align: center; margin-top: 20px; }
.ghost { min-height: 48px; padding: 0 20px; border-radius: 14px; border: 2px solid var(--accent); background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.foot { margin-top: 24px; color: var(--muted); font-size: 13px; text-align: center; }

/* Staff + privacy pages */
.doc h1 { font-size: 28px; }
.doc h2 { font-size: 18px; margin-top: 20px; }
.doc li { margin: 4px 0; }
.staff-wrap { max-width: 1100px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.leads { display: grid; gap: 10px; margin-top: 12px; }
.lead { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.lead header { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.lead .tag { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); }
.lead form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.lead form select, .lead form input { width: auto; min-height: 40px; flex: 1 1 160px; }
.lead form button { min-height: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.filters a { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.filters a.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
