/* Layout: a one-column operator console. Komori navy band with a press colour bar on top,
   one dominant scan action, then a ledger of leads grouped by day.
   Look follows komori.eu: navy and Komori blue, green as the accent, corners rounded on one
   diagonal only, light diagonal panels on navy. Figtree stands in for the site's Proxima Nova. */
:root {
  --komori: #0b2152;
  --komori-blue: #2858bc;
  --green: #44af01;
  --sky: #5d9fd7;
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f5f6f9;
  --fg: #333333;
  --muted: #656565;
  --line: #e0e3ea;
  --line-strong: #c4c9d4;
  --accent: #2858bc;
  --accent-soft: #e5ecf9;
  --on-accent: #ffffff;
  --focus: #2858bc;
  /* komori.eu's corner: rounded top-left and bottom-right, square on the other diagonal */
  --r-brand: 14px 0;
  /* komori.eu's navy panels: faint diagonal bands over a navy-to-blue sweep */
  --navy-panel:
    linear-gradient(115deg, transparent 0 52%, rgba(255,255,255,.05) 52% 70%, transparent 70%),
    linear-gradient(115deg, transparent 0 64%, rgba(255,255,255,.05) 64% 86%, transparent 86%),
    linear-gradient(135deg, #0b2152 0%, #14347a 100%);
  --hot-bg: #ffb433;  --hot-fg: #4a2f00;
  --warm-bg: #e9dfc2; --warm-fg: #4e4222;
  --cold-bg: #dde5ee; --cold-fg: #34495f;
  --danger: #b42318;  --danger-bg: #fbe9e7;
  --scan-bg: #0a1220;
  --scan-fg: #e7ecf3;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6677' stroke-width='1.8'/%3E%3C/svg%3E");

  --font-display: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Proxima Nova", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d131c;
    --surface: #151d29;
    --surface-2: #1a2432;
    --fg: #e7ecf3;
    --muted: #97a3b4;
    --line: #253142;
    --line-strong: #3a4a60;
    --accent: #5d9fd7;
    --focus: #5d9fd7;
    --accent-soft: #17304d;
    --on-accent: #04182f;
    --hot-bg: #ffb433;  --hot-fg: #3a2500;
    --warm-bg: #4a4128; --warm-fg: #efe3bf;
    --cold-bg: #2a3a4e; --cold-fg: #cfdbe9;
    --danger: #ff8a7a;  --danger-bg: #3a1714;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2397a3b4' stroke-width='1.8'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d131c;
  --surface: #151d29;
  --surface-2: #1a2432;
  --fg: #e7ecf3;
  --muted: #97a3b4;
  --line: #253142;
  --line-strong: #3a4a60;
  --accent: #5d9fd7;
  --focus: #5d9fd7;
  --accent-soft: #17304d;
  --on-accent: #04182f;
  --hot-bg: #ffb433;  --hot-fg: #3a2500;
  --warm-bg: #4a4128; --warm-fg: #efe3bf;
  --cold-bg: #2a3a4e; --cold-fg: #cfdbe9;
  --danger: #ff8a7a;  --danger-bg: #3a1714;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2397a3b4' stroke-width='1.8'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
/* Hold the app still on phones: no sideways drift, no rubber-band bounce, no double-tap zoom */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; overscroll-behavior: none; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.45 var(--font-body);
  padding-bottom: var(--safe-bottom);
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  overscroll-behavior: none;
  touch-action: manipulation;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.display {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 750;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.eyebrow, .section-label, .day-label {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 650;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Top band ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--komori);
  color: #fff;
  padding-top: var(--safe-top);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 640px; margin: 0 auto;
  padding-block: 12px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { height: 19px; width: auto; display: block; }
.brand-x { font-family: var(--font-mono); font-size: .8rem; opacity: .6; }
.brand-partner {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 750;
  font-size: .92rem; letter-spacing: .12em;
}
/* Press colour control strip, in the KOMORI palette */
.colour-bar {
  height: 5px;
  background: linear-gradient(90deg,
    #00428e 0 9%, #5d9fd7 9% 18%, #707070 18% 27%, #282828 27% 36%,
    #88a0b9 36% 45%, #9ac5e4 45% 54%, #c5cb99 54% 63%, #d2c091 63% 72%,
    #ae99c7 72% 81%, #ffb433 81% 90%, #aac952 90% 100%);
}

.pill {
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 4px 10px;
  background: transparent; color: #fff;
  font: 500 .72rem/1.2 var(--font-mono);
  letter-spacing: .02em; white-space: nowrap; cursor: pointer;
}
.pill::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #aac952; vertical-align: 1px; }
.pill.warn::before { background: #ffb433; }
.pill.err { border-color: #ffb4a8; }
.pill.err::before { background: #ff7a66; }

/* ---------- Views ---------- */
main { max-width: 640px; margin: 0 auto; }
.view {
  padding-block: 20px 32px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; gap: 20px; align-content: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-brand);
  padding: 20px;
  display: grid; gap: 16px;
}
.stack { display: grid; gap: 14px; }

/* ---------- Auth ---------- */
.view-auth { padding-top: 40px; }
.auth-head { display: grid; gap: 6px; }
.wordmark {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 2.6rem; line-height: 1; letter-spacing: .02em; color: var(--accent);
  display: flex; align-items: baseline; gap: 10px;
}
.wordmark span { font-stretch: 100%; font-weight: 400; font-size: 1.1rem; letter-spacing: 0; color: var(--muted); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: none; cursor: pointer;
  padding: 10px 4px 12px; margin-bottom: -1px;
  font: 600 .95rem var(--font-body); color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--green); }
.hint { font-size: .82rem; color: var(--muted); margin-top: -4px; }
.code-input { font-size: 1.5rem !important; letter-spacing: .35em; text-align: center; }

/* ---------- Fields ---------- */
.field { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
input, textarea, select {
  width: 100%;
  font: 400 16px/1.35 var(--font-body);
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mono-input { font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
textarea { resize: vertical; min-height: 104px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > * { min-width: 0; }
/* Side by side only when there is room; on phones each field gets its own row */
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.field input { min-width: 0; max-width: 100%; }
/* iOS gives date inputs an intrinsic width and its own styling; make them behave like the other fields */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-height: 46px; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-brand);
  font: 650 1rem var(--font-body); cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--on-accent); width: 100%; }
.btn.primary:active { filter: brightness(.92); }
.btn.primary:disabled { opacity: .55; }
.btn.quiet { background: transparent; color: var(--accent); border-color: var(--line); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .85rem; font-weight: 600; }
.btn.big { min-height: 56px; font-size: 1.05rem; }
.btn.ghost-dark { background: transparent; color: var(--scan-fg); border-color: rgba(255,255,255,.3); }

.msg { padding: 10px 12px; border-radius: var(--r-sm); font-size: .9rem; }
.msg.error { background: var(--danger-bg); color: var(--danger); }
.msg.info { background: var(--accent-soft); color: var(--fg); }

/* ---------- Icons (Komori icon set, coloured by CSS) ---------- */
.ic {
  display: block; flex: none; width: 30px; height: 30px; background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.ic-scan { --ic: url("/icons/ic-scan.png"); }
.ic-card { --ic: url("/icons/ic-card.png"); }
.ic-manual { --ic: url("/icons/ic-manual.png"); }

/* ---------- Capture ---------- */
.capture { display: grid; gap: 10px; }
.scan-btn {
  display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 96px; padding: 18px 20px;
  border: 0; border-radius: var(--r-brand);
  background: var(--navy-panel); color: #fff; text-align: left; cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(11, 33, 82, .9);
}
.scan-btn .ic { width: 44px; height: 44px; }
.scan-btn:active { transform: scale(.985); }
.scan-text { display: grid; gap: 3px; min-width: 0; }
.scan-title { font-family: var(--font-display); font-stretch: 122%; font-weight: 750; font-size: 1.35rem; line-height: 1.1; }
.scan-sub { font-size: .85rem; opacity: .78; }
.capture-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alt-btn {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 14px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-brand);
  background: var(--surface); color: var(--fg);
  font: 600 .92rem var(--font-body); cursor: pointer; text-align: left;
}
.alt-btn .ic { width: 24px; height: 24px; color: var(--accent); }
.alt-btn:active { background: var(--surface-2); }

/* ---------- List ---------- */
.list-head { display: grid; gap: 12px; padding-top: 4px; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.stats b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.toolbar input { min-width: 0; }
.filter { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.filter label { display: flex; position: relative; }
.filter span { display: flex; align-items: center; padding: 0 12px; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.filter label + label span { border-left: 1px solid var(--line); }
.filter input:checked + span { background: var(--accent-soft); color: var(--accent); }
.filter input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }

#lead-list { display: grid; gap: 18px; }
.day { display: grid; gap: 8px; }
.day-label { display: flex; justify-content: space-between; align-items: baseline; }
.day-label .mono { letter-spacing: 0; font-weight: 500; }
.lead-list {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-brand);
  overflow: hidden;
}
.lead-list li + li { border-top: 1px solid var(--line); }
.lead {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  width: 100%; padding: 14px; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.lead:active { background: var(--surface-2); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font: 700 .82rem var(--font-display);
}
.lead-main { display: grid; gap: 3px; min-width: 0; }
.lead-name { font-weight: 650; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-sub { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-next { font-size: .86rem; color: var(--accent); font-weight: 600; margin-top: 2px; }
.lead-next .mono { font-weight: 500; font-size: .8rem; }
.lead-next.none { color: var(--muted); font-weight: 400; font-style: italic; }
.lead-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 4px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.lead-meta { display: grid; justify-items: end; gap: 4px; font-size: .74rem; color: var(--muted); }
.lead-meta .mono { font-size: .74rem; }
.temp {
  font: 600 .66rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 4px;
}
.temp-hot { background: var(--hot-bg); color: var(--hot-fg); }
.temp-warm { background: var(--warm-bg); color: var(--warm-fg); }
.temp-cold { background: var(--cold-bg); color: var(--cold-fg); }
.pend { color: var(--danger); font-weight: 600; }
.empty {
  padding: 28px 16px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--r-brand);
}

.home-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.home-foot #me { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-actions { display: flex; gap: 8px; }

/* ---------- Scanner ---------- */
.view-scan { min-height: calc(100vh - 80px); background: var(--scan-bg); color: var(--scan-fg); }
.viewfinder { position: relative; padding: 14px; }
#scan-video { display: block; width: 100%; max-width: 100%; aspect-ratio: 3 / 4; max-height: 62vh; object-fit: cover; border-radius: 4px; background: #000; }
/* Printer's crop marks around the viewfinder */
.crop { position: absolute; width: 22px; height: 22px; border-color: var(--sky); border-style: solid; border-width: 0; }
.crop.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.crop.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.crop.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.crop.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.scan-help { text-align: center; opacity: .75; font-size: .92rem; }
.scan-actions { display: grid; gap: 10px; }

/* ---------- Form ---------- */
.view-form { padding-bottom: 0; }
#lead-form { display: grid; gap: 24px; }
.form-head { display: flex; align-items: center; gap: 12px; }
.form-head h1 { flex: 1; min-width: 0; }
.icon-btn {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--fg); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.source {
  font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 4px; color: var(--accent); background: var(--accent-soft);
}
.source:empty { display: none; }
.section { display: grid; gap: 10px; }
.fields { display: grid; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; position: relative; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--fg); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg label { margin: 0; display: flex; position: relative; }
.seg label + label span { border-left: 1px solid var(--line); }
.seg span { flex: 1; display: grid; place-items: center; min-height: 46px; font-weight: 650; cursor: pointer; color: var(--muted); }
.seg input[value="hot"]:checked + span { background: var(--hot-bg); color: var(--hot-fg); }
.seg input[value="warm"]:checked + span { background: var(--warm-bg); color: var(--warm-fg); }
.seg input[value="cold"]:checked + span { background: var(--cold-bg); color: var(--cold-fg); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }

.photo-wrap { display: grid; gap: 8px; justify-items: start; }
.photo-wrap img { width: 100%; max-height: 240px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-brand); }
.raw { font-size: .82rem; color: var(--muted); }
.raw summary { cursor: pointer; }
.raw pre { font-family: var(--font-mono); white-space: pre-wrap; word-break: break-all; background: var(--surface); border: 1px solid var(--line); padding: 10px; border-radius: var(--r-sm); margin: 8px 0 0; }

.save-bar {
  position: sticky; bottom: 0;
  padding-block: 12px calc(14px + var(--safe-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 28%);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + var(--safe-bottom)); z-index: 50;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--fg); color: var(--bg);
  font-weight: 600; font-size: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .scan-btn:active { transform: none; }
}

.link-btn {
  justify-self: center; border: 0; background: none; padding: 6px;
  font: 600 .88rem var(--font-body); color: var(--accent); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* Visually hidden radio/checkbox inputs behind chips, filters and the temperature switch.
   Sized explicitly so the general input { width: 100% } can't push them past the screen edge. */
.chip input, .seg input, .filter input {
  position: absolute; inset: 0; width: 1px; height: 1px; margin: 0; padding: 0;
  opacity: 0; pointer-events: none; overflow: hidden;
}

.lead-owner { font-size: .8rem; color: var(--muted); }

/* Dropdown (Owner): same look as the text fields, with our own chevron */
select {
  -webkit-appearance: none; appearance: none;
  min-height: 46px; padding-right: 38px;
  background-image: var(--chevron);
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}

/* ---------- Admin ---------- */
.tabs-3 { grid-template-columns: repeat(3, 1fr); }
.admin-pane { display: grid; gap: 18px; }
.row-start { display: flex; gap: 8px; }

/* Headline KPI: visitors per day */
.kpi-hero {
  display: grid; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-brand);
  padding: 18px 18px 14px;
}
.kpi-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kpi-value { font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--fg); letter-spacing: -.02em; }
.kpi-unit { color: var(--muted); font-size: .9rem; }
.kpi-sub { color: var(--muted); font-size: .85rem; }
.kpi-sub b { color: var(--fg); font-variant-numeric: tabular-nums; }

/* Leads per day: one series, so one hue and values written on the bars */
.day-bars {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px;
  height: 170px; margin-top: 10px;
}
.dbar { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; min-width: 0; }
.dbar-value { font-size: .72rem; color: var(--fg); }
.dbar-col { width: 100%; display: flex; justify-content: center; align-items: flex-end; height: 100%; border-bottom: 1px solid var(--line-strong); }
.dbar-fill { width: 100%; max-width: 34px; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .55; }
.dbar.is-today .dbar-fill { opacity: 1; }
.dbar-label { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.dbar:hover .dbar-fill { opacity: .85; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: grid; gap: 2px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-brand);
}
.tile-value { font-size: 1.5rem; font-weight: 600; color: var(--fg); }
.tile-label { font-size: .78rem; color: var(--muted); }
.tile.warn { border-color: var(--hot-bg); }
.tile.warn .tile-label::before { content: "! "; color: var(--hot-fg); font-weight: 700; background: var(--hot-bg); border-radius: 3px; padding: 0 4px; margin-right: 4px; }

.breakdowns { display: grid; gap: 18px; }
@media (min-width: 560px) { .breakdowns { grid-template-columns: 1fr 1fr; } }
.bd { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-brand); padding: 14px; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(0, 38%) 1fr auto; align-items: center; gap: 10px; }
.hbar-label { font-size: .85rem; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 12px; display: block; }
.hbar-fill { display: block; height: 100%; min-width: 2px; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar:hover .hbar-fill { filter: brightness(1.15); }
.hbar-value { font-size: .8rem; color: var(--fg); min-width: 2ch; text-align: right; }

/* People */
.people { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-brand); overflow: hidden; }
.person { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
.person + .person { border-top: 1px solid var(--line); }
.person-main { display: grid; gap: 3px; min-width: 0; }
.person-name { font-weight: 650; }
.person-email { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.person-meta { font-size: .78rem; color: var(--muted); }
.person-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.person-actions:empty { display: none; }
.badge { font: 600 .66rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; }
.badge.ok { background: var(--cold-bg); color: var(--cold-fg); }
.badge.warn { background: var(--hot-bg); color: var(--hot-fg); }
.badge.admin { background: var(--accent); color: var(--on-accent); }

/* Delete lead */
.delete-wrap { display: grid; gap: 8px; }
.delete-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-radius: var(--r-sm); background: var(--danger-bg); color: var(--danger); font-size: .9rem; }
.btn.danger { background: var(--danger); color: var(--surface); }
.btn.danger-quiet { background: transparent; color: var(--danger); border-color: var(--line); justify-self: start; }

.demo-tag {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font: 600 .6rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 5px; border-radius: 3px; border: 1px dashed var(--line-strong); color: var(--muted);
}

/* ---------- Drill-down ---------- */
.drill-hint { margin: 0; }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fc-label { font-size: .78rem; color: var(--muted); margin-right: 2px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px;
  border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--fg);
  font: 600 .82rem var(--font-body); cursor: pointer;
}
.fchip-dim { font-weight: 400; color: var(--muted); }
.link-btn.small { font-size: .8rem; padding: 4px; }

/* Bars become buttons: reset native button look, keep the bar layout */
button.hbar, button.dbar {
  width: 100%; border: 0; background: none; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
button.hbar { padding: 3px 4px; margin: -3px -4px; width: calc(100% + 8px); border-radius: var(--r-sm); }
button.hbar:hover { background: var(--surface-2); }
.hbar.is-selected .hbar-label { font-weight: 700; color: var(--accent); }
.hbar.is-selected .hbar-fill { filter: none; }
.hbar.is-dimmed .hbar-fill, .dbar.is-dimmed .dbar-fill { opacity: .28; }
.dbar.is-selected .dbar-fill { opacity: 1; }
.dbar.is-selected .dbar-label { color: var(--accent); font-weight: 700; }
button.dbar { height: 100%; }

/* Heatmap: one row per show day, one column per hour; five shades of one hue */
.bd-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.heat-legend { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; color: var(--muted); }
.heat-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; border: 1px solid var(--line); }
.heatmap-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.heatmap {
  display: grid;
  grid-template-columns: 56px repeat(var(--heat-cols, 10), minmax(24px, 1fr));
  gap: 3px;
  min-width: calc(56px + var(--heat-cols, 10) * 27px);
}
.hm-corner { display: block; }
.hm-hour, .hm-day {
  border: 0; background: none; padding: 2px 0; cursor: pointer; color: var(--muted);
  font: 500 .66rem var(--font-mono); border-radius: 4px;
}
.hm-day { text-align: left; font-family: var(--font-body); font-size: .74rem; font-weight: 600; color: var(--fg); padding-left: 2px; }
.hm-hour:hover, .hm-day:hover { background: var(--surface-2); }
.hm-hour.is-selected, .hm-day.is-selected { background: var(--accent); color: var(--on-accent); }
.hm-cell {
  display: grid; place-items: center; aspect-ratio: 1 / 1; min-height: 24px;
  border-radius: 4px; font: 600 .68rem var(--font-mono); color: var(--fg);
  background: var(--surface-2); border: 1px solid var(--line);
}
.hm-cell.s1, .heat-legend .s1 { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: transparent; }
.hm-cell.s2, .heat-legend .s2 { background: color-mix(in srgb, var(--accent) 34%, var(--surface)); border-color: transparent; }
.hm-cell.s3, .heat-legend .s3 { background: color-mix(in srgb, var(--accent) 54%, var(--surface)); border-color: transparent; }
.hm-cell.s4, .heat-legend .s4 { background: color-mix(in srgb, var(--accent) 76%, var(--surface)); border-color: transparent; color: var(--on-accent); }
.hm-cell.s5, .heat-legend .s5 { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.hm-cell.s0 { color: transparent; }

/* ---------- FLOW case tool ---------- */
.req { font: 600 .62rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }

/* Case status: five steps from the lead flow */
.case-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.step input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .78rem; font-weight: 600; border: 1.5px solid var(--line-strong); color: var(--muted); background: var(--surface);
}
.step-text { display: grid; gap: 1px; }
.step-label { font-weight: 600; font-size: .92rem; color: var(--fg); }
.step-when { font-size: .74rem; color: var(--muted); }
.step:hover { background: var(--surface-2); }
.step input:checked ~ .step-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step input:checked ~ .step-text .step-label { color: var(--accent); }
.step input:focus-visible ~ .step-dot { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Collapsible sections (qualification, technical fit) */
.fold { border: 1px solid var(--line); border-radius: var(--r-brand); background: var(--surface); padding: 0; }
.fold > summary {
  list-style: none; cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; font: 600 1rem var(--font-mono); color: var(--muted); }
.fold[open] > summary::after { content: "−"; }
.fold-count { margin-left: auto; font: 500 .72rem var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.fold-body { display: grid; gap: 16px; padding: 0 16px 16px; }
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: q; }
.question { counter-increment: q; }
.question .field { color: var(--fg); font-size: .9rem; }
.question .field::before { content: counter(q) ". "; color: var(--accent); font-weight: 700; }
.probe { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: -2px; }
.listen { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; }
.listen-title { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.listen ul { margin: 0; padding-left: 18px; font-size: .84rem; display: grid; gap: 2px; }
.do-not { font-size: .8rem; color: var(--fg); border-left: 3px solid var(--hot-bg); padding: 6px 10px; background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.do-not:empty { display: none; }

.tech-list { display: grid; gap: 14px; }
.tech-row { display: grid; gap: 6px; }
.tech-check { font-weight: 650; font-size: .9rem; }
.tech-note { font-size: .8rem; color: var(--muted); }
.tech-source { font: 500 .66rem var(--font-mono); color: var(--muted); letter-spacing: .02em; }

/* ---------- Guide ---------- */
.tabs-4 { grid-template-columns: repeat(4, 1fr); }
.tabs-4 .tab { font-size: .85rem; padding-inline: 2px; }
.guide-body { display: grid; gap: 10px; font-size: .95rem; line-height: 1.55; min-width: 0; }
.guide-body h2 { font-family: var(--font-display); font-stretch: 112%; font-size: 1.25rem; line-height: 1.2; margin: 6px 0 0; text-wrap: balance; }
.guide-body h3 { font-size: 1rem; margin: 10px 0 0; }
.guide-body h4 { font-size: .92rem; margin: 6px 0 0; color: var(--muted); }
.guide-body p, .guide-body ul, .guide-body ol { margin: 0; max-width: 65ch; }
.guide-body ul, .guide-body ol { padding-left: 20px; display: grid; gap: 4px; }
.guide-body strong { color: var(--fg); }
.guide-body code { font-size: .85em; }
.cite { font: 600 .66rem var(--font-mono); color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 3px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .84rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-size: .74rem; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.table-wrap tr:last-child td { border-bottom: 0; }

.condition { display: grid; gap: 6px; padding: 12px 14px; border-left: 3px solid var(--hot-bg); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .88rem; }
.cap-panel { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-brand); padding: 14px; }
.cap-title { font-size: .9rem; margin: 0; }
.cap-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.cap-label { font-size: .8rem; color: var(--muted); }
.cap-row { grid-template-columns: 1fr auto; grid-template-areas: "label label" "track value"; column-gap: 10px; }
.cap-label { grid-area: label; }
.cap-track { grid-area: track; height: 14px; display: block; }
.cap-fill { display: block; height: 100%; min-width: 2px; background: var(--accent); border-radius: 0 4px 4px 0; }
.cap-value { grid-area: value; font-size: .82rem; color: var(--fg); text-align: right; min-width: 6ch; }

.howto { display: grid; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-brand); font-size: .88rem; }
.howto-title { font-weight: 700; }
.howto ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cap-unit { font-size: .7rem; color: var(--muted); font-weight: 400; }
.cap-value { min-width: 12ch; white-space: nowrap; }

/* ---------- Bottom navigation ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  box-shadow: 0 -6px 18px -12px rgba(0, 0, 0, .25);
}
.tabbar[hidden] { display: none !important; }
.tabbar-btn {
  display: grid; justify-items: center; gap: 3px; padding: 8px 4px 9px; min-height: 58px;
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 .7rem var(--font-body); letter-spacing: .01em;
}
.tabbar-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar-btn.is-active { color: var(--accent); }
.tabbar-btn.is-active svg { stroke-width: 2.3; }
body.has-tabbar main { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
body.has-tabbar .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 720px) {
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 640px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; }
}

/* A phone turned sideways: use the whole width instead of a centred 640px column */
@media (orientation: landscape) and (max-height: 540px) {
  main, .topbar-inner { max-width: none; }
  .tabbar { left: 0; right: 0; transform: none; width: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .tabbar-btn { min-height: 48px; padding-block: 5px 6px; }
  body.has-tabbar main { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .capture { grid-template-columns: 3fr 2fr; align-items: stretch; }
  .capture-alt { grid-template-columns: 1fr; }
}

/* ---------- Capture page ---------- */
.stand-card { display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-brand); }
.ssaa { margin: 0; display: grid; gap: 8px; }
.ssaa-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; }
.ssaa dt { font: 700 .7rem var(--font-mono); letter-spacing: .08em; color: var(--accent); }
.ssaa dd { margin: 0; font-size: .88rem; line-height: 1.4; }
.stand-card .link-btn { justify-self: start; padding-left: 0; }
.recent { display: grid; gap: 8px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; }
.recent-head .link-btn { padding: 4px 0; }
#view-leads .list-head { gap: 14px; }

/* ---------- Guide on phones ---------- */
.guide-cover { display: block; width: 100%; max-width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--r-brand); }
.g-fig { margin: 4px 0; display: grid; gap: 6px; }
.g-fig img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; }
.g-fig figcaption { font-size: .78rem; color: var(--muted); }
.pdf-link {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--accent); font-weight: 650; font-size: .88rem; text-decoration: none; background: var(--surface);
}
.pdf-link::before { content: "PDF"; font: 700 .62rem var(--font-mono); letter-spacing: .06em; background: var(--accent); color: var(--on-accent); padding: 3px 5px; border-radius: 3px; }
.guide-body { overflow-wrap: anywhere; }

/* Markdown tables become one card per row on narrow screens */
@media (max-width: 560px) {
  .md-table { border: 0; background: none; overflow: visible; }
  .md-table table, .md-table tbody, .md-table tr, .md-table td { display: block; width: 100%; }
  .md-table thead { display: none; }
  .md-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 8px; }
  .md-table td { border: 0; padding: 3px 0; }
  .md-table td::before { content: attr(data-label); display: block; font: 600 .66rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .tabs-4 .tab { font-size: .8rem; }
  .guide-body { font-size: .93rem; }
}

/* Guide cover: show the whole logo, never crop it */
.guide-cover { aspect-ratio: auto; height: auto; object-fit: initial; max-height: none; }
button.pdf-link { cursor: pointer; font-family: var(--font-body); }

/* ---------- Brochure viewer ---------- */
body.viewer-open { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; z-index: 60;
  display: grid; grid-template-rows: auto 1fr;
  background: #10161f; color: #e7ecf3;
}
.viewer[hidden] { display: none !important; }
.viewer-bar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: #0b1018; border-bottom: 1px solid rgba(255,255,255,.1);
}
.viewer-title { margin: 0; flex: 1; min-width: 0; font-weight: 650; font-size: .95rem; }
.viewer-title .mono { font-size: .8rem; opacity: .7; margin-left: 6px; }
.viewer-btn {
  min-height: 40px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #e7ecf3;
  font: 650 .88rem var(--font-body); cursor: pointer;
}
.viewer-close { background: #e7ecf3; color: #10161f; border-color: #e7ecf3; }
.viewer-pages {
  overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: grid; gap: 12px; align-content: start;
  padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
.viewer-page { margin: 0; }
.viewer-page img { display: block; width: 100%; height: auto; background: #fff; border-radius: 4px; }
/* Zoomed: pages wider than the screen, scroll sideways to read the small print */
.viewer.is-zoomed .viewer-pages { justify-content: start; }
.viewer.is-zoomed .viewer-page img { width: 250vw; max-width: none; }
@media (min-width: 900px) {
  .viewer-page img { max-width: 1000px; margin: 0 auto; }
  .viewer.is-zoomed .viewer-page img { width: 1600px; }
}

/* Tap-to-zoom: guide photos open full screen, viewer images toggle zoom where tapped */
#guide-body .g-fig { position: relative; }
#guide-body .g-fig img { cursor: zoom-in; }
#guide-body .g-fig::after {
  content: "Tap to enlarge"; position: absolute; top: 8px; right: 8px; pointer-events: none;
  font: 600 .66rem var(--font-body); padding: 4px 8px; border-radius: 999px;
  background: rgba(16, 22, 31, .72); color: #fff;
}
.viewer-page img { cursor: zoom-in; touch-action: pan-x pan-y pinch-zoom; }
.viewer.is-zoomed .viewer-page img { cursor: zoom-out; }
.viewer.is-zoomed .viewer-page { width: max-content; }

/* ---------- Key selling points ---------- */
.why {
  display: grid; gap: 12px; padding: 16px;
  background: var(--navy-panel); color: #fff; border-radius: var(--r-brand);
}
.why .section-label { color: rgba(255,255,255,.75); }
.why-body { display: grid; gap: 12px; }
.why-core {
  margin: 0; font-family: var(--font-display); font-stretch: 108%; font-weight: 700;
  font-size: 1.12rem; line-height: 1.3; text-wrap: balance;
}
.why-core::before { content: "“"; } .why-core::after { content: "”"; }
.why-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.why-points > li { display: grid; }
.why-point {
  display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start;
  padding: 10px; border-radius: var(--r-sm); background: rgba(255,255,255,.1);
  border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  position: relative; padding-right: 22px;
}
.why-point::after { content: "›"; position: absolute; right: 8px; top: 8px; opacity: .6; font-size: 1.1rem; line-height: 1; }
.why-point:hover { background: rgba(255,255,255,.16); }
.why-point:active { background: rgba(255,255,255,.22); }
.why-point:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* Selling-point explanation: a bottom sheet on phones, a centred card on wider screens */
.usp-dialog {
  border: 0; padding: 0; background: transparent; color: var(--fg);
  width: 100%; max-width: 560px; max-height: 88dvh; margin: auto auto 0;
}
.usp-dialog::backdrop { background: rgba(4, 12, 24, .55); }
.usp-sheet {
  display: grid; grid-template-rows: auto 1fr; max-height: 88dvh;
  background: var(--surface); border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 16px var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
}
.usp-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.usp-head h2 { margin: 0; font-family: var(--font-display); font-stretch: 108%; font-size: 1.2rem; line-height: 1.25; text-wrap: balance; }
.usp-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 8px; }
.usp-body h3 { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px; }
@media (min-width: 600px) {
  .usp-dialog { margin: auto; }
  .usp-sheet { border-radius: var(--r-brand); }
}
.why-num {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #0b2152; font-size: .72rem; font-weight: 700;
}
.why-text { display: grid; gap: 3px; min-width: 0; }
.why-text strong { font-size: .88rem; line-height: 1.25; }
.why-text span { font-size: .78rem; line-height: 1.35; opacity: .85; }
@media (max-width: 360px) { .why-points { grid-template-columns: 1fr; } }
.guide-body .why-guide { margin: 4px 0 6px; }
.guide-body .why-guide h3 { margin: 0; }
