[hidden] { display: none !important; }
:root {
  --page: #f7f6f2;
  --surface: #fcfcfb;
  --ink: #16201d;
  --ink-2: #4c5551;
  --muted: #7d8580;
  --line: #e1e0d9;
  --axis: #c3c2b7;
  --accent: #1f5f53;
  --accent-ink: #ffffff;
  --accent-soft: #e4efeb;
  --focus: #2a78d6;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --pos: #2a78d6; --neu: #c3c2b7; --neg: #eb6834;
  --critical: #d03b3b; --warning: #fab219; --good: #0ca30c;
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 18px 48px; }
.wrap.wide { max-width: 1180px; }
.brandbar { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; color: var(--accent); letter-spacing: .01em; }
.pulse-mark { width: 26px; height: 26px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.12; margin: 18px 0 12px; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 22px; }
.small, small { font-size: 14px; color: var(--ink-2); }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stack > * + * { margin-top: 14px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 17px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--surface); color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); min-height: 44px; width: auto; }
.btn.small { min-height: 38px; font-size: 14px; width: auto; padding: 8px 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: grid; gap: 12px; margin: 24px 0; }
.action-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.action-card:hover { border-color: var(--accent); }
.action-card strong { display: block; font-size: 18px; color: var(--accent); }
.action-card span { color: var(--ink-2); font-size: 15px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: 15px; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* Survey steps */
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 6px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.progress-label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.step { display: none; }
.step.active { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 21px; font-weight: 650; line-height: 1.3; margin-bottom: 6px; padding: 0; }
.hint { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; cursor: pointer; }
.choice label::before { content: ""; flex: 0 0 18px; height: 18px; border: 2px solid var(--axis); border-radius: 50%; }
.choice input[type=checkbox] + label::before { border-radius: 5px; }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.choice input:checked + label::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent-soft); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:disabled + label { opacity: .45; }
.nav { display: flex; gap: 10px; margin-top: 22px; align-items: center; }
.nav .btn { flex: 1; }
.nav .back { flex: 0 0 auto; width: auto; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 15px; }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 16px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--axis); border-radius: 10px; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.notice { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 16px; border-radius: 8px; font-size: 15px; }
.notice.warn { border-color: var(--critical); background: #fbeeee; }
.error { color: var(--critical); font-weight: 600; font-size: 15px; min-height: 1em; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.pulse-id { font: 700 clamp(26px, 8vw, 34px)/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-align: center; padding: 18px; background: #fff; border: 2px dashed var(--accent); border-radius: 12px; user-select: all; }
.demo-ribbon { background: #fff4d6; border: 1px solid #eda100; color: #5a4000; border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
footer.site { margin-top: 36px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
details summary { cursor: pointer; font-weight: 600; color: var(--accent); }

/* Admin */
.topbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 160px; flex: 1; }
.filters select { min-height: 40px; }
.seg { display: inline-flex; border: 1.5px solid var(--axis); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 9px 14px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; min-height: 40px; }
.seg button[aria-pressed=true] { background: var(--accent); color: #fff; }
.banner-demo { background: repeating-linear-gradient(45deg, #fff4d6, #fff4d6 12px, #ffefc2 12px, #ffefc2 24px); border: 2px solid #eda100; color: #4a3500; border-radius: 12px; padding: 12px 16px; font-weight: 700; margin-bottom: 16px; }
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cols2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.kpi .v { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 14px; color: var(--ink-2); }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ind .v { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ind .meter { height: 8px; background: var(--line); border-radius: 99px; margin: 8px 0; overflow: hidden; }
.ind .meter > div { height: 100%; background: var(--ink-2); border-radius: 99px; }
section.panel { margin-top: 18px; }
section.panel > h2 { font-size: 19px; margin-bottom: 4px; }
section.panel > p.small { margin-top: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.alert + .alert { margin-top: 8px; }
.alert .tag { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--axis); white-space: nowrap; }
.alert.triggered.inv { border-color: var(--critical); }
.alert.triggered.inv .tag { background: var(--critical); color: #fff; border-color: var(--critical); }
.alert.triggered.elev { border-color: var(--warning); }
.alert.triggered.elev .tag { background: var(--warning); color: #0b0b0b; border-color: var(--warning); }
.alert .icon { font-weight: 800; width: 18px; text-align: center; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--ink-2); font-weight: 600; }
table.data td.num, table.data th.num { text-align: right; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin: 6px 0 4px; }
.chart .legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.chart .legend i.sq { height: 10px; width: 10px; border-radius: 2px; }
.tip { position: fixed; pointer-events: none; background: #16201d; color: #fff; font-size: 13px; padding: 7px 10px; border-radius: 8px; max-width: 260px; z-index: 50; display: none; white-space: pre-line; }
.suppressed { color: var(--muted); font-style: italic; }
.method { font-size: 14.5px; color: var(--ink-2); }
.method h3 { color: var(--ink); margin-top: 14px; }
.rules-table input { min-height: 36px; width: 80px; padding: 4px 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) { .choices.two { grid-template-columns: 1fr; } .cols2 { grid-template-columns: 1fr; } }
@media print { .filters, .toolbar, .no-print { display: none !important; } body { background: #fff; } }
.legend-h1 { margin: 14px 0 6px; }
#pctBox { margin-top: 14px; }
#pctBox legend { float: left; width: 100%; margin-bottom: 10px; font-size: 15px; }
#pctBox .choices { clear: both; }

/* ---------- Warm, community look for the public pages ---------- */
body.warm { --page: #fdf8f1; --surface: #ffffff; --line: #ece3d5; --accent-soft: #e7f1ec; background: var(--page); }
body.warm h1 { font-size: clamp(30px, 7.5vw, 44px); letter-spacing: -.015em; }
body.warm .brandbar { font-size: 14px; }
.storefronts { display: block; width: 100%; height: auto; max-height: 210px; margin: 14px 0 4px; }
.btn.big { flex-direction: column; gap: 2px; min-height: 64px; font-size: 18px; border-radius: 16px; }
.btn-sub { font-size: 13px; font-weight: 500; opacity: .85; }
.count-line { text-align: center; font-weight: 600; color: var(--accent); margin: -8px 0 18px; }
.promises { display: grid; gap: 10px; margin: 8px 0 26px; }
.promises > div { position: relative; padding: 12px 14px 12px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; color: var(--ink-2); }
.promises > div::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: #e7f1ec; }
.promises > div::after { content: ""; position: absolute; left: 20px; top: 17px; width: 6px; height: 10px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.promises strong { color: var(--ink); }
.small-promises { margin: 14px 0 16px; }
.small-promises > div { font-size: 14px; padding-top: 10px; padding-bottom: 10px; }
.why { background: #f6eee2; border-radius: 18px; padding: 20px 22px; }
.why h2 { font-size: 20px; }
.why p { margin: 0 0 12px; color: #3d4643; }
.why .signoff { font-weight: 600; color: var(--ink); margin: 4px 0 0; }
.welcome { margin-bottom: 4px; }
.codebox { margin: 6px 0 4px; }
.codebox summary { font-size: 15px; padding: 8px 0; }
.codebox .field { margin-top: 8px; }
.center { text-align: center; }
.warm-note { border-left: 4px solid #f0c25a; background: #fff6e0; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.done .pulse-id { font-size: 26px; border-style: solid; border-color: var(--line); margin: 8px 0; }
.plain h2 { font-size: 18px; margin-top: 8px; }
body.warm .choice label { border-radius: 14px; }
@media (min-width: 640px) { .promises:not(.small-promises) { grid-template-columns: repeat(3, 1fr); } .promises:not(.small-promises) > div { padding-top: 40px; padding-left: 14px; } .promises:not(.small-promises) > div::before { top: 12px; } .promises:not(.small-promises) > div::after { top: 16px; } }
.why .why-lead { font-size: 19px; font-weight: 700; color: var(--ink); }
