/* Commutro brand tokens (static/brand/Commutro-brand-guidelines.docx).
   Graphite carries the brand; signal amber is the single accent and is
   used ONLY on graphics and large elements - amber on paper is 3.7:1,
   so it never carries body-size text (guidelines section 6). */

:root {
  --ink: #2c2c2a;
  --ink-2: #5f5e5a;
  --muted: #8b897f;
  --hairline: #e6e4dd;
  --baseline: #c6c4bb;
  --surface: #ffffff;
  --plane: #f7f6f3;
  --accent: #ba7517;
  --accent-soft: #f9f1e4;
  --good: #006300;
  --bad: #d03b3b;
  --warn-bg: #fff6e5;
  --error-bg: #fdecec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--plane);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
}

main, .site-header, .site-footer {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.site-header { padding-top: 3rem; padding-bottom: 1.4rem; }
.site-header h1 { margin: 0 0 .3rem; font-size: 1.9rem; letter-spacing: -.015em; }
/* Lockup PNG is 1880x320; height fixes the scale, width follows. */
.site-header .lockup { display: block; height: 2.3rem; width: auto; }
.site-header h1::before {
  content: "";
  display: block;
  width: 2.6rem; height: .28rem;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: .9rem;
}
.tagline { margin: 0; color: var(--ink-2); font-size: 1.02rem; max-width: 34rem; }

.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.3rem 1.5rem 1.5rem;
  margin: 1.1rem 0;
  box-shadow: 0 1px 2px rgba(11, 11, 11, .03), 0 6px 18px rgba(11, 11, 11, .04);
}
.step h2 { font-size: 1.02rem; margin: 0 0 .25rem; }
.hint, .hint-inline { color: var(--muted); font-size: .88rem; font-weight: 400; }
.hint { margin: .25rem 0 .75rem; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: .6rem .75rem;
  margin: .28rem 0;
  border: 1px solid var(--baseline);
  border-radius: 7px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
input[type="text"]:hover, input[type="email"]:hover, textarea:hover { border-color: var(--muted); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.checkbox, .file-label { display: block; margin: .55rem 0; font-size: .92rem; color: var(--ink-2); }
.checkbox input, .file-label input { width: auto; margin-right: .4rem; }

/* ---------- workforce entry table ---------- */

.roster-table { margin: .3rem 0 .2rem; }
.roster-head, .roster-row {
  display: grid; grid-template-columns: 1fr 6.5rem 2rem;
  gap: .5rem; align-items: center;
}
.roster-head {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
  padding: 0 0 .15rem .1rem;
}
.roster-row .r-count { text-align: center; }
.roster-row .r-del {
  border: 0; background: none; color: var(--muted); font-size: 1.15rem;
  cursor: pointer; border-radius: 6px; padding: .2rem .45rem; line-height: 1;
}
.roster-row .r-del:hover { color: var(--bad); background: var(--error-bg); }
.ghost-btn {
  border: 1px dashed var(--baseline); background: none; color: var(--ink-2);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  border-radius: 7px; padding: .45rem .9rem; margin: .3rem 0 .2rem;
}
.ghost-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.paste-toggle { margin-top: .8rem; }
.paste-toggle summary {
  cursor: pointer; font-size: .9rem; color: var(--ink-2); font-weight: 600;
}
.paste-toggle[open] summary { margin-bottom: .4rem; }

/* ---------- address typeahead ---------- */

.ac-wrap { position: relative; }
.ac-list {
  position: absolute;
  z-index: 20;
  top: calc(100% - .1rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: .25rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--baseline);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(11, 11, 11, .12);
  max-height: 15rem;
  overflow-y: auto;
}
.ac-item {
  padding: .45rem .6rem;
  border-radius: 5px;
  font-size: .9rem;
  color: var(--ink-2);
  cursor: pointer;
}
.ac-item.ac-active, .ac-item:hover { background: var(--accent-soft); color: var(--ink); }

.data-statement {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: .65rem .9rem;
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: var(--ink-2);
}
.data-statement strong { color: var(--ink); }

button.primary {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: .8rem 1.6rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 11, 11, .1), 0 4px 12px rgba(44, 44, 42, .18);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
button.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(11, 11, 11, .1), 0 7px 18px rgba(44, 44, 42, .24);
}
button.primary:active { transform: translateY(0); }
.gate-form button.primary { width: 100%; }
.analyze-form > button.primary { margin-top: .3rem; }

/* ---------- results ---------- */

/* The results stage is an unstyled wrapper: two sibling chunks (free
   preview card, then the gate) with a page-level header between them.
   .chunk is the shared card; notice pages (check email, share link,
   unsubscribed) combine both classes on one element. */
.results { margin: 1.4rem 0; }
.chunk {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.3rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(11, 11, 11, .03), 0 6px 18px rgba(11, 11, 11, .04);
}
.chunk-eyebrow {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 700; margin: 0 0 .4rem;
}
.results h2 { font-size: 1.15rem; margin: 0 0 .2rem; }
.report-avail-head { margin: 2.1rem 0 .9rem; }
.report-avail-head h2 { font-size: 1.35rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
/* Same amber tick the page h1 wears: graphics-only accent use. */
.report-avail-head h2::before {
  content: ""; display: block; width: 2.2rem; height: .24rem;
  background: var(--accent); border-radius: 2px; margin-bottom: .6rem;
}
.report-avail-head p { margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 36rem; }
.snapshot-sub { color: var(--ink-2); font-size: .9rem; margin: 0 0 .3rem; max-width: 38rem; }
.results-meta { color: var(--muted); font-size: .85rem; margin: .1rem 0 .9rem; }
.bridge-note {
  margin: 1rem 0 0; font-size: .92rem; font-weight: 600; color: var(--ink-2);
  border-left: 3px solid var(--accent); padding: .1rem 0 .1rem .7rem;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.card {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: .9rem 1rem 1rem;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(11, 11, 11, .04);
}
.card.benchmark {
  background: var(--plane);
  border-style: dashed;
  border-color: var(--baseline);
  margin-bottom: .9rem;
}
.card-label {
  margin: 0 0 .15rem; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 700;
}
.card-address { margin: 0 0 .35rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
/* Compact: the cards are evidence the locations were processed, not the
   product - the gate below is the main event. */
.card-range { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.range-label { display: block; font-size: .74rem; font-weight: 400; color: var(--muted); margin-top: .1rem; }
.card-note, .transit-note { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }

.warning { background: var(--warn-bg); padding: .55rem .8rem; border-radius: 8px; font-size: .9rem; }
.error-box {
  background: var(--error-bg); color: var(--bad);
  padding: .7rem 1rem; border-radius: 8px; margin: 1rem 0; font-weight: 500;
}
.row-errors { font-size: .88rem; margin: .5rem 0 .9rem; color: var(--ink-2); }
.address-ok { color: var(--good); font-size: .88rem; }
.address-bad { color: var(--bad); font-size: .88rem; }

/* ---------- gate panel ---------- */

.gate-teaser {
  margin: 0;
  padding: 1.3rem 1.4rem 1.4rem;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  background: var(--accent-soft);
  box-shadow: 0 2px 4px rgba(11, 11, 11, .04), 0 10px 28px rgba(186, 117, 23, .1);
}
.gate-teaser h3 { margin: 0 0 .5rem; font-size: 1.18rem; letter-spacing: -.01em; }
.gate-teaser > p { margin: 0 0 .9rem; font-size: .92rem; color: var(--ink-2); }
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .6rem; }
.consent-line { font-size: .82rem; color: var(--ink-2); margin: .8rem 0 .6rem; }
.delivery-note { font-size: .8rem; color: var(--ink-2); margin: .5rem 0 0; }

/* "Analysis complete" panel: proof of work, the visitor's own buildings,
   and one redacted finding per real report section. Bars are empty shapes -
   nothing to read. */
.analysis-complete {
  margin: .7rem 0 1rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  padding: .9rem 1rem 1rem;
  box-shadow: 0 1px 3px rgba(11, 11, 11, .05);
}
/* Compact proof-of-work status row: one line, counts only - the addresses
   already appear on the cards above. */
.status-row { margin: 0; font-size: .95rem; }
.status-row .tick { color: var(--good); font-weight: 700; margin-right: .2rem; }
.status-meta { color: var(--ink-2); font-size: .88rem; margin-left: .35rem; }
.findings-wrap { display: flex; gap: 1.1rem; align-items: stretch; }
.findings-list { flex: 1; min-width: 0; }
.findings-title {
  margin: .9rem 0 .35rem; padding-top: .85rem;
  border-top: 1px solid var(--hairline);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}

/* Locked previews: one per report capability - title + honest subline.
   No bars (grey bars read as loading skeletons). */
.lock-item { padding: .4rem 0; }
.lock-item + .lock-item { border-top: 1px solid var(--hairline); }
.lock-name { margin: 0; font-weight: 700; font-size: .92rem; }
.lock-num { color: var(--ink-2); font-weight: 700; margin-right: .1rem; }
.lock-desc { margin: .1rem 0 0 2.5rem; font-size: .82rem; color: var(--ink-2); }

/* Mini report document: pure CSS, contains no data - a scan-level signal
   that a real, polished document sits behind the gate. */
.mini-doc {
  flex: none; width: 5.4rem; align-self: center;
  aspect-ratio: 17 / 22;
  background: #fff; border: 1px solid var(--hairline); border-radius: 5px;
  box-shadow: 0 2px 6px rgba(11, 11, 11, .1);
  padding: .45rem .5rem;
  display: flex; flex-direction: column; gap: .3rem;
  position: relative;
}
.doc-band { height: .3rem; background: var(--accent); border-radius: 2px; margin-bottom: .1rem; }
.doc-line { height: .22rem; background: var(--hairline); border-radius: 2px; }
.doc-bars { display: flex; gap: .16rem; align-items: flex-end; margin-top: .15rem; height: .85rem; }
.doc-bars i { width: .5rem; background: var(--band-mini, #86b6ef); border-radius: 2px 2px 0 0; }
.doc-bars i:nth-child(2) { background: #3987e5; }
.doc-bars i:nth-child(3) { background: #1c5cab; }
.doc-bars i:nth-child(4) { background: #0d366b; }
.doc-chip {
  position: absolute; right: -.45rem; bottom: .5rem;
  background: var(--accent); color: #fff; font-size: .58rem; font-weight: 700;
  letter-spacing: .04em; padding: .12rem .32rem; border-radius: 4px;
}

.chip {
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--baseline); border-radius: 999px;
  padding: .22rem .65rem; background: var(--surface);
}
.delivered-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  margin: .8rem 0 0; font-size: .78rem; color: var(--muted); font-weight: 600;
}
.contents-note { margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.form-heading { margin: 1rem 0 .2rem; font-weight: 700; font-size: 1.02rem; }
.share-url { word-break: break-all; }
/* Content links: brand ink with a quiet underline, not browser blue.
   (Accent amber is below 4.5:1 and never carries body-size text.) */
main a {
  color: var(--ink);
  text-decoration-color: var(--baseline);
  text-underline-offset: 2px;
}
main a:hover { text-decoration-color: var(--ink); }

/* Honeypot (R8): visually gone, still in the DOM for bots to fill. */
.hp-field { position: absolute; left: -6000px; width: 1px; height: 1px; opacity: 0; }

.method-note { color: var(--muted); font-size: .8rem; margin: 1rem 0 0; }
.site-footer {
  color: var(--muted); font-size: .82rem;
  border-top: 1px solid var(--hairline);
  margin-top: 2.5rem; padding-top: 1rem; padding-bottom: 2.5rem;
}
/* Guidelines: badge minimum width 120px on screen. */
.site-footer .powered-by { margin-top: .9rem; }
.site-footer .powered-by img { width: 150px; height: auto; display: block; }

@media (max-width: 40rem) {
  .gate-grid { grid-template-columns: 1fr; }
}
