/* Digital Facade Score — white-label EDC theme system.
   Every brand knob is a :root custom property; the values below are the
   neutral defaults (the original Triggers palette). A per-EDC theme.css —
   generated from configs/<edc>.json by scripts/build-config.mjs and loaded
   AFTER this file — overrides them. No brand values elsewhere in this file. */

:root {
  /* palette slots */
  --primary: #00689D;          /* headers, links, panel accents, gate button */
  --primary-deep: #063A53;     /* hero/CTA gradient end */
  --secondary: #198FC7;        /* "Good" band, bars, radar, site checkup */
  --success: #27A84A;          /* "Excellent" band, passed checks */
  --accent: #F99B1C;           /* CTA buttons, highlights, "Needs work" band */
  --accent-contrast: #FFFFFF;  /* text on accent-colored buttons */
  --alert: #ED3693;            /* money number, "Priority fix" band */
  --ink: #15303F;
  --paper: #FFFFFF;
  --mist: #EAECF5;
  --muted: #5B6B78;
  --error: #B00020;
  /* type slots */
  --font-display: "Bebas Neue", sans-serif;
  --font-body: Comfortaa, system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: 0.05em;
  --h1-size: clamp(42px, 8vw, 72px);
  --h2-size: clamp(30px, 5.5vw, 42px);
  --h3-size: 24px;
  --num-ring: 40px;
  --num-money: clamp(44px, 9vw, 64px);
  --num-speed: 44px;
  /* chrome */
  --wordmark-bg: transparent;  /* set when the EDC logo needs a dark chip */
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* the hidden attribute must always win, even over display'd classes
   (e.g. the CTA book button when no calendly_url is configured) */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
}
/* hero state: the search view sits on the EDC's primary gradient */
body.on-hero { background: linear-gradient(150deg, var(--primary), var(--primary-deep)); }

h1, h2, h3 {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 1.05; margin: 0 0 12px;
}
h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
a { color: var(--primary); }
.muted { color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- shell ---------- */
.top {
  max-width: 720px; margin: 0 auto; padding: 20px 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.wordmark {
  font-family: var(--font-body); font-weight: 700; font-size: 18px;
  color: var(--primary); text-decoration: none;
  display: inline-flex; align-items: center;
  background: var(--wordmark-bg); border-radius: 10px;
}
/* EDC logo lockup: when --wordmark-bg is set the logo sits in its brand chip
   (mirrors EDC sites whose logo only exists in a light-on-dark variant) */
.wordmark img { display: block; height: 44px; width: auto; padding: 6px 10px; }
body.on-hero .wordmark { color: #fff; }
.wordmark .dot { color: var(--accent); }

/* ---------- header "scan a business" (hidden on the search hero) ---------- */
.scan-again {
  border: 0; cursor: pointer; border-radius: 999px; margin-left: auto;
  background: var(--accent); color: var(--accent-contrast);
  font: 700 12px/1 var(--font-body); padding: 10px 16px;
  transition: transform 150ms var(--ease-out);
}
.scan-again:hover { transform: translateY(-1px); }
.scan-again:active { transform: scale(0.97); }
body.on-hero .scan-again { display: none; }
@media (prefers-reduced-motion: reduce) {
  .scan-again, .scan-again:hover, .scan-again:active { transition: none; transform: none; }
}

/* ---------- language toggle (EN / ES) ---------- */
.lang-toggle {
  display: inline-flex; gap: 2px; padding: 3px; flex: none;
  border-radius: var(--radius-pill);
  background: rgba(21, 48, 63, 0.06);
  border: 1px solid rgba(21, 48, 63, 0.12);
}
.lang-btn {
  min-width: 42px; padding: 6px 13px; border: 0; cursor: pointer;
  background: transparent; border-radius: var(--radius-pill);
  font: 700 13px var(--font-body); letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 150ms ease, color 150ms ease;
}
.lang-btn.active { background: var(--accent); color: var(--accent-contrast); }
.lang-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* invert on the blue hero so it stays legible on the gradient */
body.on-hero .lang-toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}
body.on-hero .lang-btn { color: rgba(255, 255, 255, 0.9); }
body.on-hero .lang-btn.active { background: #fff; color: var(--primary); }
body.on-hero .lang-btn:focus-visible { outline-color: #fff; }
main { max-width: 720px; margin: 0 auto; padding: 0 20px 48px; }
.view { padding-top: clamp(36px, 9vh, 80px); }
.foot {
  max-width: 720px; margin: 0 auto; padding: 24px 20px 40px;
  color: var(--muted); font-size: 13px;
}
body.on-hero .foot, body.on-hero .foot a { color: rgba(255, 255, 255, 0.75); }
.foot a { color: var(--muted); }

/* ---------- search view (on the gradient) ---------- */
#view-search { color: #fff; }
.eyebrow {
  display: inline-block; padding: 7px 16px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14); color: #fff;
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 18px;
}
h1 .pop { color: var(--accent); }
.lede { font-size: 17px; max-width: 56ch; margin: 0 0 28px; }
#view-search .lede { opacity: 0.92; }

.searchbar { display: flex; flex-direction: column; gap: 10px; }
.searchbar input {
  width: 100%; min-height: 56px; padding: 16px 24px;
  background: #fff; color: var(--ink);
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 400 16px var(--font-body);
  transition: border-color 150ms ease;
}
.searchbar input:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.searchbar input::placeholder { color: #8A97A0; }
.searchbar button, .btn-accent {
  min-height: 56px; padding: 16px 30px;
  background: var(--accent); color: var(--accent-contrast);
  border: 0; border-radius: var(--radius-pill);
  font: 700 16px var(--font-body); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  transition: transform 160ms var(--ease-out), filter 150ms ease;
}
.searchbar button:active, .btn-accent:active, .candidates button:active { transform: scale(0.97); }
.searchbar button:focus-visible, .btn-accent:focus-visible,
.candidates button:focus-visible, .linklike:focus-visible,
.gate-form button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
#view-search button:focus-visible { outline-color: #fff; }
.searchbar button[disabled] { opacity: 0.6; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .searchbar button:hover, .btn-accent:hover, .gate-form button:hover { filter: brightness(1.07); }
}
.trust { font-size: 13px; margin-top: 16px; opacity: 0.8; }

/* ---------- "why facade" manifesto (hero, below the search) ---------- */
.facade-note {
  margin-top: clamp(48px, 9vh, 84px); max-width: 58ch;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.facade-note h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 6px; }
.facade-sub {
  color: var(--accent); font-weight: 700; font-size: 17px; margin: 0 0 12px;
}
.facade-p { font-size: 15px; line-height: 1.7; opacity: 0.88; margin: 0 0 20px; }
.btn-ghost {
  min-height: 48px; padding: 12px 26px; cursor: pointer;
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius-pill);
  font: 700 15px var(--font-body);
  transition: background 150ms ease, border-color 150ms ease,
              transform 160ms var(--ease-out);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-ghost:active { transform: scale(0.97); }
.btn-ghost:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .btn-ghost, .btn-ghost:active { transition: background 150ms ease; transform: none; }
}
.field-error { color: var(--error); font-size: 14px; margin: 10px 4px 0; }
#view-search .field-error { color: #FFD9DE; }

/* ---------- pick view ---------- */
.candidates { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.candidates button {
  width: 100%; text-align: left; padding: 16px 22px; min-height: 56px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--mist); border-radius: var(--radius-lg);
  font: 400 16px var(--font-body); cursor: pointer;
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .candidates button:hover { border-color: var(--secondary); }
}
.candidates .c-name { font-weight: 700; display: block; }
.candidates .c-addr { color: var(--muted); font-size: 14px; }

.linklike {
  background: none; border: 0; color: var(--primary); font: 400 15px var(--font-body);
  cursor: pointer; padding: 12px 4px; text-decoration: underline;
}

/* ---------- loading view: radar + polaroids ---------- */
.scan-stage {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; /* photos drop below the radar on narrow screens */
  margin: 26px 0 10px; min-height: 300px;
}
.radar { position: relative; width: 210px; height: 210px; flex: 0 0 auto; }
.radar svg { width: 100%; height: 100%; }
.radar .rr { fill: none; stroke: var(--mist); stroke-width: 1.5; }
.radar-sweep {
  position: absolute; inset: 5px; border-radius: 50%;
  background: conic-gradient(from 0deg,
    color-mix(in srgb, var(--secondary) 45%, transparent),
    color-mix(in srgb, var(--secondary) 12%, transparent) 55deg, transparent 80deg);
  animation: spin 2.6s linear infinite;
}
.radar-you {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* polaroid stack — the business's real Google photos */
.polaroids { position: relative; flex: 1 1 280px; min-width: 0; height: 290px; }
.polaroid {
  position: absolute; left: 50%; top: 50%;
  width: min(225px, 56vw); padding: 8px 8px 30px;
  background: #fff; border: 1px solid #E3E6EF;
  box-shadow: 0 10px 22px rgba(21, 48, 63, 0.18);
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
  opacity: 1;
  transition: transform 500ms var(--ease-out), opacity 400ms ease;
}
.polaroid img { display: block; width: 100%; height: 160px; object-fit: cover; background: var(--mist); }
.polaroid .cap {
  position: absolute; left: 0; right: 0; bottom: 7px; text-align: center;
  font: 700 11px var(--font-body); color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.polaroid.deal-in { transform: translate(-50%, -110%) rotate(0deg); opacity: 0; }
.polaroid.empty { border-style: dashed; border-color: #C6CCDB; box-shadow: none; }
.polaroid.empty .ph { display: grid; place-content: center; height: 160px; background: var(--mist); color: var(--muted); font-size: 26px; }

/* small fan of photos in the report header */
.polaroids-head { display: none; }
@media (min-width: 700px) {
  .polaroids-head { display: block; width: 240px; height: 195px; flex: 0 0 auto; }
  .polaroids-head .polaroid { width: 175px; padding-bottom: 22px; }
  .polaroids-head .polaroid img { height: 122px; }
  .polaroids-head .cap { display: none; }
}
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { color: var(--muted); padding-left: 30px; position: relative; transition: color 200ms ease; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  border: 2px solid var(--mist); border-radius: 50%;
  transition: border-color 200ms ease, background 200ms ease;
}
.steps li.done { color: var(--ink); }
.steps li.done::before {
  background: var(--success); border-color: var(--success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* ---------- report ---------- */
.score-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.ring-wrap { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.ring { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring-track, .ring-fill {
  fill: none; stroke-width: 11; stroke-linecap: round;
  cx: 60px; cy: 60px; r: 52px;
}
.ring-track { stroke: var(--mist); }
.ring-fill {
  stroke: var(--score-color, var(--secondary));
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 900ms var(--ease-out);
}
.ring-number {
  position: absolute; inset: 0; display: grid; place-content: center;
  font: var(--display-weight) var(--num-ring)/1 var(--font-display);
}
.ring-number small { font: 700 12px var(--font-body); color: var(--muted); text-align: center; }
.score-meta { min-width: 220px; flex: 1; }
.chip {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-pill);
  font: 700 13px var(--font-body); color: #fff;
  background: var(--score-color, var(--secondary)); margin-bottom: 10px;
}
#biz-name { margin-bottom: 4px; }

/* soft geofence note — informative, never alarming */
.geo-note {
  margin: 0 0 16px; padding: 12px 16px; border-radius: 12px;
  border-left: 4px solid var(--secondary);
  background: color-mix(in srgb, var(--secondary) 8%, var(--paper));
  color: var(--muted); font-size: 14px;
}

/* strict-geofence stop card (view-blocked) */
.geo-blocked { max-width: 560px; display: grid; gap: 14px; justify-items: start; }
.geo-blocked h2 { margin: 0; }
.geo-blocked .lede { margin: 0; }
#blocked-status { margin: 0; font-weight: 700; color: var(--secondary); }

/* certificate row (90+ reports) */
.cert-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.cert-btn { min-height: 48px; padding: 12px 24px; font-size: 15px; border: 0; cursor: pointer; }

.panel {
  background: #fff; border: 1px solid var(--mist);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-lg); padding: 26px 26px 24px; margin: 16px 0;
  box-shadow: 0 2px 14px rgba(21, 48, 63, 0.06);
}

/* money panel — the honest version of owner.com's loss number */
.money { border-top-color: var(--alert); }
.money-line { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 16px; flex-wrap: wrap; }
.money-num {
  font: var(--display-weight) var(--num-money)/1 var(--font-display);
  color: var(--alert); letter-spacing: 0.02em;
}
.money-per { color: var(--muted); font-size: 14px; line-height: 1.45; }
.money-slider { display: block; font-size: 14px; color: var(--muted); max-width: 380px; }
.money-slider b { color: var(--ink); }
.money-slider input {
  display: block; width: 100%; margin-top: 10px; accent-color: var(--primary);
  min-height: 28px;
}
.money-how { margin-top: 16px; font-size: 14px; }
.money-how summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.money-how ul { margin: 12px 0 8px; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.small { font-size: 13px; }

/* website checkup */
.sitecheck { border-top-color: var(--secondary); }
.speed-row {
  display: flex; align-items: center; gap: 20px;
  margin: 14px 0 10px; flex-wrap: wrap;
}
.speed-dial {
  display: grid; justify-items: center; gap: 2px;
  padding: 14px 22px; border-radius: 16px;
  background: color-mix(in srgb, var(--secondary) 6%, var(--paper));
}
.speed-num {
  font: var(--display-weight) var(--num-speed)/1 var(--font-display);
  color: var(--speed-color, var(--muted));
}
.speed-dial.loading .speed-num { animation: pulse-fade 1.2s ease-in-out infinite; }
@keyframes pulse-fade { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .speed-dial.loading .speed-num { animation: none; opacity: 0.6; }
}
.speed-dial small { color: var(--muted); font-size: 12px; }
.speed-cap {
  font: 700 9px/1.3 var(--font-body); color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.speed-row p { flex: 1; min-width: 200px; margin: 0; }

/* offer cards inside the CTA */
.offers { display: grid; gap: 12px; margin: 18px 0; }
@media (min-width: 560px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px; padding: 16px 18px;
}
.offer h4 {
  font: var(--display-weight) 20px var(--font-display); letter-spacing: var(--display-tracking);
  color: var(--accent); margin: 0 0 6px;
}
.offer p { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin: 0; }
.cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-alt { color: rgba(255, 255, 255, 0.85); font-size: 14px; }

/* benchmark map: rivals plotted at real bearings/distances */
.bench-map {
  position: relative; width: min(300px, 100%); height: 240px;
  margin: 18px auto 6px;
}
.bench-map svg { width: 100%; height: 100%; }
.bench-map .field { fill: color-mix(in srgb, var(--secondary) 10%, var(--paper)); }
.bench-map .rr { fill: none; stroke: color-mix(in srgb, var(--secondary) 32%, var(--paper)); stroke-width: 1.5; }
.bench-map .rr-x { stroke: color-mix(in srgb, var(--secondary) 18%, var(--paper)); stroke-width: 1; }
.bench-map .dot { stroke: #fff; stroke-width: 2.5; }
.bench-map .dot-label { font: 700 9px var(--font-body); fill: var(--muted); }
.bench-map .map-n { font: 700 11px var(--font-body); fill: var(--muted); }
.bench-map .you-pulse { animation: pulse 2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
.bench-map .map-cap {
  position: absolute; right: 4px; bottom: 0;
  font: 700 10px var(--font-body); color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* benchmark */
.bench-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.bench-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.bench-list .bar {
  grid-column: 1 / -1; height: 6px; border-radius: 3px;
  background: var(--mist); overflow: hidden;
}
.bench-list .bar i { display: block; height: 100%; background: var(--secondary); border-radius: 3px; }
.bench-list li.you { font-weight: 700; }
.bench-list li.you .bar i { background: var(--accent); }
.bench-list li.you .b-name { color: var(--accent); }

/* gate */
.gate-zone { position: relative; }
.gated.locked {
  filter: blur(10px); pointer-events: none; user-select: none;
  max-height: 560px; overflow: hidden; /* don't scroll through miles of blur */
}
.gate {
  position: absolute; inset: 0; margin: 16px 0;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border-top-color: var(--accent);
}
.gate-zone.open .gate { display: none; }
.gate-zone.open .gated { filter: none; pointer-events: auto; user-select: auto; max-height: none; }
.gate-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gate-form input {
  min-height: 52px; padding: 14px 22px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--mist); border-radius: var(--radius-pill);
  font: 400 16px var(--font-body);
}
.gate-form input:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.gate-form button {
  min-height: 52px; padding: 14px 26px;
  background: var(--primary); color: #fff; border: 0;
  border-radius: var(--radius-pill); font: 700 15px var(--font-body);
  cursor: pointer; transition: transform 160ms var(--ease-out), filter 150ms ease;
}
.gate-form button:active { transform: scale(0.97); }
.gate-form button[disabled] { opacity: 0.6; cursor: default; }

/* checkpoints */
.checkpoints { list-style: none; margin: 8px 0 0; padding: 0; }
.checkpoints li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--mist); align-items: start;
}
.checkpoints li:last-child { border-bottom: 0; }
.checkpoints .mark { font-weight: 700; text-align: center; }
.checkpoints li.pass .mark { color: var(--success); }
.checkpoints li.part .mark { color: var(--accent); }
.checkpoints li.fail .mark { color: var(--error); }
.checkpoints .cp-label { font-weight: 700; }
.checkpoints .cp-detail { color: var(--muted); font-size: 14px; display: block; }
.checkpoints .cp-flag { color: var(--accent); font-size: 13px; font-weight: 700; }
.checkpoints .pts { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* fixes */
.fixes { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 14px; }
.fixes b { display: block; font-weight: 700; color: var(--ink); }
.fixes span { color: var(--muted); font-size: 15px; }
.fixes .fix-guide {
  display: inline-block; margin-top: 4px;
  color: var(--primary); font-size: 14px; font-weight: 700;
}
.fixes-more { margin: 18px 0 0; }
.fixes-more a { color: var(--primary); font-weight: 700; }
/* an EDC without website help drops the second offer card — let the
   remaining one take the full row */
.offers .offer:only-child { grid-column: 1 / -1; }
#view-report .panel:nth-of-type(2) { border-top-color: var(--success); }

/* cta — matches the city-site .card-cta */
.cta {
  background: linear-gradient(150deg, var(--primary), var(--primary-deep));
  border-top: 4px solid var(--accent); color: #fff;
}
.cta p { color: rgba(255, 255, 255, 0.88); margin: 0 0 18px; }

/* website-help anchor — only rendered when the business has no real site */
.cta p.upsell {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 13px 16px;
  color: #fff; font-weight: 600; font-size: 15px;
}

@media (min-width: 560px) {
  .searchbar { flex-direction: row; }
  .searchbar input { flex: 1; }
  /* email + phone share a row; the button takes the full row below */
  .gate-form { flex-direction: row; flex-wrap: wrap; }
  .gate-form input { flex: 1 1 220px; }
  .gate-form button { flex: 1 1 100%; }
}

/* checkpoint rows rise in when the gate opens */
.gate-zone.open .checkpoints li {
  animation: rise 320ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ring-fill { transition: none; }
  .radar-sweep { animation: none; opacity: 0.4; }
  .bench-map .you-pulse { animation: none; }
  .polaroid { transition: opacity 200ms ease; }
  .gate-zone.open .checkpoints li { animation: none; }
  .searchbar button, .btn-accent, .gate-form button, .candidates button { transition: filter 150ms ease; }
}
