/* CrimeGrade public business pages (index, how-it-works, ideal-denominators, pricing, enterprise) and the public
   mode of data-definitions-v3.html and contact.html. Pages are GENERATED by tools/build_public_pages.py from
   public-src/. Colours are the portal's (common.css, js/cg-model.js); fonts are the portal's system stack (the CSP
   allows no font host). No cards shaded down the left edge (sales-pages plan section 8). */
:root {
  --pb-blue: #2c5aa0;
  --pb-blue-dark: #1a3a6b;
  --pb-navy: #142d55;
  --pb-gold: #e1cc62;
  --pb-green: #207440;
  --pb-red: #dd4545;
  --pb-ink: #1c2633;
  --pb-body: #3b4554;
  --pb-muted: #5d6878;
  --pb-line: #dde3ec;
  --pb-band: #f3f6fb;
  --pb-white: #ffffff;
  --pb-radius: 12px;
  --pb-shadow: 0 6px 24px rgba(26, 58, 107, 0.08);
}

.pb-page { margin: 0; background: var(--pb-white); color: var(--pb-body);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 17px; line-height: 1.65; }
.pb-page *, .pb-page *::before, .pb-page *::after { box-sizing: border-box; }
.pb-page h1, .pb-page h2, .pb-page h3 { color: var(--pb-ink); line-height: 1.2; margin: 0 0 0.5em; }
.pb-page h1 { font-size: 44px; letter-spacing: -0.01em; }
.pb-page h2 { font-size: 32px; letter-spacing: -0.005em; }
.pb-page h3 { font-size: 20px; }
.pb-page p { margin: 0 0 1em; }
.pb-page a { color: var(--pb-blue); }
.pb-page img { max-width: 100%; height: auto; display: block; }
.pb-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.pb-narrow { max-width: 780px; }

/* ---- header ------------------------------------------------------------------------------------------------- */
.pb-demo { background: var(--pb-gold); color: var(--pb-ink); font-size: 14px; text-align: center; padding: 6px 16px; }
.pb-header { position: sticky; top: 0; z-index: 50; background: var(--pb-white); border-bottom: 3px solid var(--pb-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); }
.pb-header-inner { max-width: 1160px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.pb-logo img { height: 40px; width: auto; }
.pb-nav { display: flex; align-items: center; gap: 22px; flex: 1; }
.pb-nav a { color: var(--pb-ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0;
  border-bottom: 2px solid transparent; }
.pb-nav a:hover, .pb-nav a[aria-current="page"] { color: var(--pb-blue); border-bottom-color: var(--pb-blue); }
.pb-actions { display: flex; gap: 10px; align-items: center; }
.pb-menu { display: none; margin-left: auto; }
.pb-menu summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--pb-ink); border: 1px solid var(--pb-line);
  border-radius: 8px; padding: 8px 14px; font-size: 15px; }
.pb-menu summary::-webkit-details-marker { display: none; }
.pb-menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--pb-white); border-bottom: 3px solid var(--pb-blue);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); padding: 8px 24px 20px; }
.pb-menu-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--pb-line); color: var(--pb-ink);
  text-decoration: none; font-weight: 600; }
.pb-menu-panel .pb-actions { margin-top: 16px; }

/* ---- buttons ------------------------------------------------------------------------------------------------ */
.pb-btn { display: inline-block; font-weight: 700; font-size: 15px; line-height: 1; padding: 13px 22px; border-radius: 8px;
  text-decoration: none; border: 2px solid var(--pb-blue); background: var(--pb-blue); color: var(--pb-white); cursor: pointer; }
.pb-page a.pb-btn { color: var(--pb-white); }
.pb-btn:hover { background: var(--pb-blue-dark); border-color: var(--pb-blue-dark); }
.pb-btn-ghost, .pb-page a.pb-btn-ghost { background: transparent; color: var(--pb-blue); }
.pb-btn-ghost:hover, .pb-page a.pb-btn-ghost:hover { background: var(--pb-band); color: var(--pb-blue-dark); }
.pb-btn-sm { padding: 9px 14px; font-size: 14px; }
.pb-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---- sections ----------------------------------------------------------------------------------------------- */
.pb-section { padding: 72px 0; }
.pb-band { background: var(--pb-band); }
.pb-hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--pb-band) 0%, var(--pb-white) 100%); }
.pb-hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.pb-eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pb-blue); margin-bottom: 12px; }
.pb-lead { font-size: 20px; color: var(--pb-muted); }
.pb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pb-split.pb-flip > :first-child { order: 2; }
.pb-meaning { border-top: 1px solid var(--pb-line); padding-top: 14px; margin-top: 18px; color: var(--pb-ink); font-weight: 600; }
.pb-more { font-weight: 700; text-decoration: none; }
.pb-more::after { content: " \2192"; }
.pb-section-head { max-width: 760px; margin-bottom: 36px; }

/* ---- figures ------------------------------------------------------------------------------------------------ */
.pb-figure { margin: 0; }
.pb-figure img, .pb-figure svg { border-radius: 10px; }
.pb-figure img[src$=".svg"] { max-height: 440px; width: auto; margin: 0 auto; }
.pb-shot img { border: 1px solid var(--pb-line); box-shadow: var(--pb-shadow); }
.pb-figure figcaption { font-size: 14px; color: var(--pb-muted); margin-top: 10px; line-height: 1.5; }
.pb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pb-pair h3 { font-size: 16px; text-align: center; margin-bottom: 6px; }
.pb-key { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--pb-muted); margin-top: 10px; flex-wrap: wrap; }
.pb-key-ramp { width: 140px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #207440, #e1cc62, #dd4545); }
.pb-key-gray { width: 14px; height: 10px; border-radius: 3px; background: #d9d9d9; }

/* ---- facts -------------------------------------------------------------------------------------------------- */
.pb-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pb-fact { background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 22px 24px; }
.pb-fact b { display: block; font-size: 38px; line-height: 1.1; color: var(--pb-blue-dark); margin-bottom: 6px; }
.pb-fact span { color: var(--pb-muted); font-size: 15px; }

/* ---- cards and tiles ---------------------------------------------------------------------------------------- */
.pb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pb-cards.pb-two { grid-template-columns: repeat(2, 1fr); }
.pb-cards.pb-four { grid-template-columns: repeat(4, 1fr); }
.pb-card { background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 24px;
  box-shadow: var(--pb-shadow); }
.pb-card h3 { margin-bottom: 8px; }
.pb-card p:last-child { margin-bottom: 0; }
.pb-card .pb-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pb-blue); margin-bottom: 8px; }
.pb-yard { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.pb-yard img { border-radius: 8px; border: 1px solid var(--pb-line); background: #fff; }
.pb-yard-list { display: grid; gap: 22px; }
.pb-scale-fact { font-size: 14px; color: var(--pb-muted); }

/* ---- store-score scale -------------------------------------------------------------------------------------- */
.pb-scale { background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 26px;
  box-shadow: var(--pb-shadow); }
.pb-scale-bar { position: relative; height: 14px; border-radius: 7px; margin: 46px 6px 64px;
  background: linear-gradient(90deg, #207440 0%, #e1cc62 33%, #dd4545 100%); }
.pb-tick { position: absolute; top: -34px; transform: translateX(-50%); text-align: center; font-size: 13px; color: var(--pb-muted);
  white-space: nowrap; }
.pb-tick b { display: block; font-size: 20px; color: var(--pb-ink); }
.pb-tick::after { content: ""; position: absolute; left: 50%; top: 42px; width: 2px; height: 22px; background: var(--pb-ink); }
.pb-tick-note { position: absolute; top: 30px; transform: translateX(-50%); font-size: 13px; color: var(--pb-muted);
  white-space: nowrap; text-align: center; }
.pb-weights { display: grid; gap: 10px; margin-top: 8px; }
.pb-weights div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--pb-line); padding-top: 10px;
  font-size: 15px; }
.pb-weights b { color: var(--pb-ink); }

/* ---- two views ---------------------------------------------------------------------------------------------- */
.pb-views { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--pb-line); border-radius: var(--pb-radius);
  overflow: hidden; box-shadow: var(--pb-shadow); background: var(--pb-white); }
.pb-views > div { padding: 24px; }
.pb-views > div + div { border-left: 1px solid var(--pb-line); background: #fbfcfe; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pb-chip { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 5px 11px; background: var(--pb-band);
  color: var(--pb-blue-dark); border: 1px solid var(--pb-line); }

/* ---- lists, tables, checks ---------------------------------------------------------------------------------- */
.pb-list { padding-left: 1.2em; margin: 0 0 1em; }
.pb-list li { margin-bottom: 0.4em; }
.pb-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--pb-white); }
.pb-table th, .pb-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--pb-line); vertical-align: top; }
.pb-table th { color: var(--pb-ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--pb-band); }
.pb-table-wrap { overflow-x: auto; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); }
.pb-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pb-checks div { background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: 10px; padding: 14px 16px; }
.pb-checks b { display: block; color: var(--pb-ink); }
.pb-checks span { font-size: 14px; color: var(--pb-muted); }
.pb-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pb-icons div { background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: 10px; padding: 16px; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--pb-ink); }
.pb-icons svg { width: 30px; height: 30px; display: block; margin: 0 auto 8px; stroke: var(--pb-blue); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.pb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: pbstep; }
.pb-steps div { background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 22px; }
.pb-steps div::before { counter-increment: pbstep; content: counter(pbstep); display: inline-flex; width: 32px; height: 32px;
  border-radius: 50%; background: var(--pb-blue); color: #fff; font-weight: 700; align-items: center; justify-content: center;
  margin-bottom: 10px; }
.pb-steps b { display: block; color: var(--pb-ink); margin-bottom: 4px; }

/* ---- bar chart (inline SVG) --------------------------------------------------------------------------------- */
.pb-bars { width: 100%; height: auto; }
.pb-bars text { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 14px; fill: var(--pb-body); }
.pb-bars .pb-bar { fill: var(--pb-blue); }
.pb-bars .pb-bar-us { fill: var(--pb-blue-dark); }
.pb-bars .pb-val { font-weight: 700; fill: var(--pb-ink); }

/* ---- pricing ------------------------------------------------------------------------------------------------ */
.pb-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pb-tier { background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 26px; text-align: center;
  box-shadow: var(--pb-shadow); }
.pb-tier .pb-qty { font-weight: 700; color: var(--pb-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.pb-tier .pb-price { font-size: 46px; font-weight: 700; color: var(--pb-ink); line-height: 1.1; margin: 10px 0 2px; }
.pb-tier .pb-per { color: var(--pb-muted); font-size: 14px; }
.pb-tier s { color: var(--pb-muted); }
.pb-launch { display: inline-block; background: var(--pb-gold); color: var(--pb-ink); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 999px; padding: 4px 10px; }
.pb-enterprise-card { background: var(--pb-navy); color: #e6ecf6; border-radius: var(--pb-radius); padding: 30px; }
.pb-enterprise-card h2, .pb-enterprise-card h3 { color: #fff; }
.pb-enterprise-card a { color: #fff; }

/* ---- closing bands ------------------------------------------------------------------------------------------ */
.pb-closers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pb-closer { background: var(--pb-white); border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 26px;
  display: flex; flex-direction: column; }
.pb-closer p { flex: 1; }

/* ---- FAQ ---------------------------------------------------------------------------------------------------- */
.pb-faq { border-top: 1px solid var(--pb-line); }
.pb-faq details { border-bottom: 1px solid var(--pb-line); padding: 16px 0; }
.pb-faq summary { cursor: pointer; font-weight: 700; color: var(--pb-ink); font-size: 18px; list-style: none; position: relative;
  padding-right: 32px; }
.pb-faq summary::-webkit-details-marker { display: none; }
.pb-faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 24px; color: var(--pb-blue); }
.pb-faq details[open] summary::after { content: "\2212"; }
.pb-faq details > div { padding-top: 10px; }

/* ---- footer ------------------------------------------------------------------------------------------------- */
.pb-footer { background: var(--pb-navy); color: #c9d4e6; padding: 40px 0; font-size: 15px; }
.pb-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.pb-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.pb-footer a { color: #ffffff; text-decoration: none; }
.pb-footer a:hover { text-decoration: underline; }

/* ---- the app pages' public mode (data-definitions-v3.html, contact.html) ------------------------------------ */
html.cg-public .sidebar-wrapper { display: none !important; }
html.cg-public .dashboard-container { display: block; margin: 0; padding: 0; min-height: 0; }
html.cg-public .main-content { margin: 0 auto !important; max-width: 1160px; padding: 32px 24px 56px !important; width: auto !important; }
html.cg-public body { background: var(--pb-band); }
.cg-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- small screens ------------------------------------------------------------------------------------------ */
@media (max-width: 980px) {
  .pb-nav, .pb-header-inner > .pb-actions { display: none; }
  .pb-menu { display: block; }
  .pb-hero-grid, .pb-split { grid-template-columns: 1fr; gap: 32px; }
  .pb-split.pb-flip > :first-child { order: 0; }
  .pb-cards, .pb-cards.pb-four, .pb-closers, .pb-tiers { grid-template-columns: 1fr 1fr; }
  .pb-icons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pb-page { font-size: 16px; }
  .pb-wrap { padding: 0 16px; }
  .pb-header-inner { padding: 10px 16px; }
  .pb-page h1 { font-size: 32px; }
  .pb-page h2 { font-size: 26px; }
  .pb-section { padding: 48px 0; }
  .pb-hero { padding: 36px 0 44px; }
  .pb-facts, .pb-cards, .pb-cards.pb-two, .pb-cards.pb-four, .pb-closers, .pb-tiers, .pb-steps, .pb-checks, .pb-pair,
  .pb-views { grid-template-columns: 1fr; }
  .pb-views > div + div { border-left: 0; border-top: 1px solid var(--pb-line); }
  .pb-yard { grid-template-columns: 1fr; }
  .pb-yard img { max-width: 260px; }
  .pb-scale-bar { margin: 46px 18px 64px; }
  .pb-tick-note { display: none; }
  html.cg-public .main-content { padding: 20px 16px 40px !important; }
}
