/* Design-system tokens shared by the landing pages (.lp), the report (.rp) and the app (.app).
   Values and contrast ratios are documented on the canvas "Design system · Teal" page. */
/* Plus Jakarta Sans, self-hosted (OFL). One variable file per subset covers weights 400 to 800; the layouts preload the latin one (shared/_fonts). */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/plus-jakarta-sans-latin-817f351b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/plus-jakarta-sans-latin-ext-977b89d0.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #12161b; --slate: #3d4651; --muted: #5b6572; --border: #7a838e; --line: #e2e6ea; --line-strong: #c7cdd4;
  --white: #fff; --surface: #f5f7f8; --chip: #eef1f3; --rival: #5e6875;
  --teal: #0a7a73; --teal-800: #075e59; --teal-50: #e8f5f3;
  --teal-400: #3cc2b6; --ink-raised: #1d232a; --mark-on-dark: #9aa3ad; /* on --ink: teal-400 8.29:1, mark-on-dark 7.11:1, line-strong 11.34:1; on ink-raised (a card on --ink): 7.23, 6.2, 9.89 */
  --red: #b42318; --red-50: #fdecec; --amber: #7a4600; --amber-50: #fff4e5;
  --star: #b45309;                               /* rating stars: 5.0:1 on white; empty stars use --line-strong (decorative) */
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Sizes every sheet shares, taken from the scale the screens already use. */
  --ctl: 48px; --ctl-sm: 36px;                   /* button and input heights; compact buttons */
  --r-tag: 6px; --r-sm: 8px; --r: 10px; --r-card: 16px;
  --gutter: 32px; --gutter-sm: 20px;             /* page side padding; phones */
  --card-pad: 28px; --card-pad-sm: 20px;
  --field-gap: 24px;                             /* between form fields */
  --title-gap: 24px;                             /* page title block to content */
  --shadow-card: 0 1px 2px rgba(18,22,27,.06), 0 6px 20px rgba(18,22,27,.06);
  --shadow-pop: 0 20px 48px rgba(18,22,27,.16);
}
body { margin: 0; }

/* Honeypot field (shared/_honeypot): off-screen for people, still filled by form bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Rating stars (ReportsHelper#rating_stars), on the report and the market scan */
.rp .stars, .app .stars { position: relative; display: inline-flex; line-height: 0; }
.rp .stars-row, .app .stars-row { display: inline-flex; gap: 1px; color: var(--line-strong); white-space: nowrap; }
.rp .stars-on, .app .stars-on { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); }
.rp .stars .icon, .app .stars .icon { flex: none; }

/* progress (runs/_progress): the app's audit page and the free check on the landing layout, so it lives here */
.pg { display: flex; flex-direction: column; gap: 18px; }
.pg .big { font-size: 22px; margin: 0; }
.pg .pg-now { display: flex; align-items: center; gap: 12px; } .pg .pg-now .spin { color: var(--teal); }
.pg .bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.pg .bar span { display: block; height: 100%; background: var(--teal); transition: width .4s; }
.pg .ailist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pg .ailist li { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.pg .ailist li:last-child { border-bottom: 0; padding-bottom: 0; }
.pg .pai { font-weight: 700; }
.pg .tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--r-tag); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pg .t-done { background: var(--teal-50); color: var(--teal-800); } .pg .t-run { background: var(--teal-50); color: var(--teal-800); } .pg .t-wait { background: var(--chip); color: var(--slate); } .pg .t-fail { background: var(--red-50); color: var(--red); }
.pg .pg-fu { border: 1px solid var(--teal); border-radius: var(--r); background: var(--teal-50); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.pg .pg-fu-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.pg .pg-fu-head h2 { font-size: 17px; margin: 0; margin-right: auto; }
.pg .pg-fu-icon { display: inline-flex; color: var(--teal-800); }
.pg .pg-fu p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.pg .pg-fu .t-done, .pg .pg-fu .t-run { background: var(--white); } /* their teal-50 would vanish on the block */
.pg .pg-note { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }
/* free check running card (canvas CheckBRunning): tighter, no dividers, larger note */
.lp .pg { gap: 16px; }
.lp .pg .ailist li { padding-bottom: 0; border-bottom: 0; }
.lp .pg .pg-note { font-size: 15px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .pg .bar span { transition: none; } }

/* Loading: one spinner (a teal ring) on anything we are waiting for, a moving bar where there is no
   count yet, and a busy state on a button that started slow work (application.js). People who ask
   for less motion get the same shapes, still. */
.spin { display: inline-block; flex: none; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.spin-lg { width: 18px; height: 18px; border-width: 2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar-indet { position: relative; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-indet::after { content: ""; position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; border-radius: 3px; background: var(--teal); animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { to { left: 100%; } }
/* A busy button keeps its own look and shows the spinner as an animated background image, since a
   submit <input> cannot hold an element or ::before. Turbo disables the button meanwhile; a primary
   button keeps its colors through that (an agency's own color, set inline, still wins). Text and
   icon-only buttons have no room for it and simply stop taking clicks. */
.btn.is-busy { pointer-events: none; cursor: progress; }
.btn.is-busy:not(.btn-t, .btn-icon) { padding-left: 40px !important; background-repeat: no-repeat !important; background-position: 16px center !important; background-size: 16px 16px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%2312161b' stroke-width='2' stroke-dasharray='30 11' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 8 8' to='360 8 8' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important; }
.btn.btn-p.is-busy:not(.btn-t, .btn-icon) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-dasharray='30 11' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 8 8' to='360 8 8' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important; }
html .app .btn.btn-p.is-busy, html .lp .btn.btn-p.is-busy { background-color: var(--teal); border-color: var(--teal); color: #fff !important; }
.btn.is-busy:not(.btn-t, .btn-icon) > .icon { display: none; } /* the spinner takes the icon's place */
@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
  .btn.is-busy:not(.btn-t, .btn-icon) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%2312161b' stroke-width='2' stroke-dasharray='30 11' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
  .btn.btn-p.is-busy:not(.btn-t, .btn-icon) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-dasharray='30 11' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
  .bar-indet::after { animation: none; left: 0; width: 100%; opacity: .4; }
}
