/* The design kit in public/assets carries the system: grid, type scale, buttons,
   nav, cards, motion. This file holds only the dealt palette and the page CSS
   the kit's references allow (inside a visual, --p-h, .wall, .rail, .device). */

:root {
  /* The palette as dealt by the skill for a developer tool: a near-black
     ground with a pale lime accent. The two muted inks are lifted off the
     dealt #8f8f8f and #5f5f5f, which read 5.95:1 and 6.49:1; the checker
     holds body text to 7:1. The hues are the dealt ones. */
  --p-bg: #0f0f0f; --p-surface: #1a1a1a; --p-ink: #ffffff; --p-muted: #a4a4a4;
  --p-accent: #dafa9c; --p-accent-ink: #0f0f0f; --p-action: #dafa9c; --p-action-ink: #0f0f0f;
  --p-inv-bg: #ffffff; --p-inv-surface: #ececec; --p-inv-ink: #0f0f0f; --p-inv-muted: #555555;
  --p-inv-accent: #0f0f0f; --p-inv-accent-ink: #ffffff; --p-inv-action: #0f0f0f; --p-inv-action-ink: #ffffff;
  --font-display: "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;

  /* The severities, used by the product's own UI wherever it appears. Each
     reads 7:1 or better on the window's #141414 ground, and none of them is
     near the lime accent, so a severity is never read as an action. */
  --sev-critical: #ff8270;
  --sev-high: #ffa94d;
  --sev-medium: #ffd666;
  --sev-low: #a0a0a0;

  /* The window's own three inks: dim (labels, times), mid (prose), strong
     (names, values). The dim one is the floor that still clears 7:1. */
  --win-dim: #a0a0a0;
  --win-mid: #bdbdbd;
  --win-ink: #e8e8e8;
}

/* ------------------------------------------------ the product's own UI
   One window, reused by the hero, the app-frame and the steps. It is the
   real thing: the same rule ids, severities and SQL the CLI prints. */

.pg-win {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: #141414;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 60px -30px rgb(0 0 0 / .8);
  font: 400 13px/1.5 var(--font-mono);
  color: var(--win-ink);
  overflow: hidden;
}

.pg-win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #1c1c1c;
  border-bottom: 1px solid rgb(255 255 255 / .07);
  font: 400 12px/1 var(--font-text);
  color: var(--win-dim);
}
.pg-win__dots { display: inline-flex; gap: 6px; margin-right: 6px; }
.pg-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #343434; }
.pg-win__bar .sp { flex: 1; }
.pg-win__bar b { color: var(--win-ink); font-weight: 500; }

.pg-win__body { display: grid; grid-template-columns: 196px 1fr; min-height: 0; }
@media (max-width: 859px) { .pg-win__body { grid-template-columns: 1fr; } .pg-runs { display: none; } }

/* the run list */
.pg-runs {
  border-right: 1px solid rgb(255 255 255 / .07);
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 1px;
  min-width: 0;
}
.pg-runs__head { padding: 6px 8px 8px; color: var(--win-dim); font: 500 11px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; }
.pg-run {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 2px 9px;
  padding: 8px;
  min-width: 0;
}
.pg-run.is-on { background: rgb(255 255 255 / .06); }
.pg-run i { width: 8px; height: 8px; border-radius: 50%; grid-row: 1 / span 2; }
.pg-run i.ok { background: var(--p-accent); }
.pg-run i.bad { background: var(--sev-critical); }
.pg-run b { font-weight: 500; color: var(--win-ink); font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.pg-run time { color: var(--win-dim); font-size: 11px; }
.pg-run span { grid-column: 2 / -1; color: var(--win-dim); font-size: 11px; min-width: 0; overflow-wrap: anywhere; }

/* the open run */
.pg-body { padding: 14px 16px; display: grid; align-content: start; gap: 10px; min-width: 0; }
.pg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--win-dim); font-size: 11px; }
.pg-meta b { color: var(--win-ink); font-weight: 500; }

.pg-finding { display: grid; gap: 4px; padding: 10px 0 0; border-top: 1px solid rgb(255 255 255 / .07); min-width: 0; }
.pg-finding__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pg-sev { font-weight: 500; font-size: 11px; letter-spacing: .04em; }
.pg-sev--critical { color: var(--sev-critical); }
.pg-sev--high { color: var(--sev-high); }
.pg-sev--medium { color: var(--sev-medium); }
.pg-rule { color: var(--win-ink); font-weight: 500; }
.pg-at { color: var(--win-dim); font-size: 11px; margin-left: auto; }
.pg-finding p { color: var(--win-mid); font-size: 12px; margin: 0; font-family: var(--font-text); }
.pg-sql {
  background: #0a0a0a;
  border-left: 2px solid var(--sev-critical);
  padding: 7px 10px;
  color: var(--win-mid);
  font-size: 12px;
  /* The statement wraps rather than scrolling sideways: a sideways scroller
     in a mock hides the end of the line and lies over the text beside it. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.pg-sql--high { border-left-color: var(--sev-high); }
.pg-exit { color: var(--sev-critical); font-size: 12px; padding-top: 4px; }
.pg-exit--ok { color: var(--p-accent); }

/* the terminal, for step one */
.pg-term { padding: 14px 16px; display: grid; align-content: start; gap: 2px; min-width: 0; }
/* A long line wraps with a hanging indent, the way a terminal wraps it: cut
   with an ellipsis it would hide the end of the CLI's own output. */
.pg-term__line {
  white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0;
  padding-left: 1.4em; text-indent: -1.4em;
  font-size: 12px; color: var(--win-mid);
}
.pg-term__line em { color: var(--win-dim); font-style: normal; }

/* the pull request comment, for step two */
.pg-pr { padding: 14px 16px; display: grid; align-content: start; gap: 9px; font-family: var(--font-text); }
.pg-pr__who { display: flex; align-items: center; gap: 8px; color: var(--win-dim); font-size: 12px; }
.pg-pr__who i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--p-accent); color: var(--p-accent-ink);
  display: grid; place-items: center; font: 500 11px/1 var(--font-text); font-style: normal;
}
.pg-pr__card { border: 1px solid rgb(255 255 255 / .09); padding: 11px 13px; display: grid; gap: 7px; }
.pg-pr__title { color: var(--win-ink); font-weight: 500; font-size: 13px; }
.pg-pr__row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; font-size: 12px; }
.pg-pr__row code { font-family: var(--font-mono); color: var(--win-dim); font-size: 11px; }
.pg-pr__row span:last-child { color: var(--win-mid); min-width: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------ the rule cards' fragments */
.rule-sql {
  display: block;
  background: #0a0a0a;
  padding: 9px 11px;
  font: 400 12px/1.5 var(--font-mono);
  color: var(--win-mid);
  overflow-x: auto;
  white-space: pre;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
}
.rule-sql b { color: var(--sev-critical); font-weight: 400; }
.rule-id {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .06em;
  color: var(--p-accent);
}

/* ------------------------------------------------ pricing, glass */
.plan {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding: var(--s-5);
  background: rgb(255 255 255 / .035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09);
}
.plan--team { background: rgb(218 250 156 / .07); box-shadow: inset 0 0 0 1px rgb(218 250 156 / .3); }
.plan__price { font: var(--display-weight) var(--t-h2)/1 var(--font-display); letter-spacing: var(--display-tracking); }
.plan__price small { font: 400 14px/1 var(--font-text); color: var(--p-muted); display: block; margin-top: 6px; }
/* The real product icons on each plan: what the free tier runs inside, and
   where a paid plan delivers a high-severity finding. */
.plan__icons {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: var(--s-2); margin-top: auto;
}
.plan__icons .ic { flex: none; }
.plan__icons span { flex: 1 1 11ch; min-width: 0; }
.plan__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan__list li { color: var(--p-muted); font-size: 15px; padding-left: 18px; position: relative; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1px; background: var(--p-accent); }

.rule-fix { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: baseline;
  font-size: 13px; color: var(--muted); margin: 0; }
.rule-fix span { font: 500 11px/1 var(--font-mono); color: var(--p-accent); letter-spacing: .06em; }

/* the diagram's panel carries the section's height on its own */
#formats .panel { --p-h: 540px; }
#formats .dg { width: 100%; height: 100%; }

/* the questions under the plans */
.faq { display: grid; gap: var(--s-4); margin: var(--s-4) 0 0; }
.faq__item dt { font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.faq__item dd { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }

.rule-sql { white-space: normal; }
.rule-sql__line { display: block; white-space: pre; }
.rule-sql__line + .rule-sql__line { padding-left: 1.2em; }

/* ---------------------------------------------- tablet and phone heights
   The product's UI windows are the tall element in every stacked section, so
   they are what has to give when the columns become one. Without this the
   steps run to 2.4 screens on a phone and the next section's ground shows
   through the one above it. */
@media (max-width: 1023px) {
  .mo-pc__visual { overflow: hidden; }
}
@media (max-width: 639px) {
  .pg-win { font: 400 12px/1.45 var(--font-mono); }
  .pg-win__body { grid-template-columns: 1fr; }
  /* the dashboard keeps its two newest findings on a phone; the third is the
     same shape and only makes the section taller than its screens */
  #dashboard .pg-finding:nth-of-type(n + 3) { display: none; }
  .pg-term__line { font-size: 11px; }
  .plan { padding: var(--s-4); }
  .faq__item dd { font-size: 14px; }
}

@media (max-width: 639px) {
  /* the last of the three sections that each run a little past their screen */
  #rules .rule-sql { font-size: 11px; padding: 7px 9px; }
  #rules .card { gap: var(--s-2); }
  .plan { gap: var(--s-2); }
  .plan__list li { font-size: 14px; }
  .faq { gap: var(--s-3); }
}

@media (max-width: 639px) {
  #rules .rule-fix { font-size: 12px; }
  #rules .card .t-small { font-size: 13px; }
  .plan__price small { margin-top: 4px; }
  .faq__item dd { line-height: 1.45; }
}

/* The four rule cards stack on a phone and land between screens; --hm is the
   kit's phone-only screen count, so the section ends where a screen ends. */
#rules { --hm: 2; }

/* ------------------------------------------------------- the closing band
   .footer--statement puts the close on the page's lit ground, which
   re-tokenises --action: the main action would be drawn in a second fill
   (#25303a on sky, #262d24 on sage) and the one mint fill reads 1.24:1 on a
   lit slab, so it cannot simply be forced back.
   system.css states the rule for the other dealt footer: "On a dark page it
   stays dark ... never a light slab under a dark page." That block is only
   written for .footer--dark; this applies it to the dealt statement footer,
   token for token, so the close keeps the page's palette and the main action
   keeps one look in the nav, the hero and here. */
html[data-tone="dark"] .footer--statement {
  background: color-mix(in oklab, var(--p-bg) 72%, #000);
  color: var(--p-ink);
  --bg: color-mix(in oklab, var(--p-bg) 72%, #000);
  --surface: var(--p-surface); --ink: var(--p-ink); --muted: var(--p-muted);
  --accent: var(--p-accent); --accent-ink: var(--p-accent-ink);
  --action: var(--p-action); --action-ink: var(--p-action-ink);
  --line: color-mix(in oklab, var(--p-ink) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--p-ink) 28%, transparent);
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------- the rules section, v2
   Two compositions, not four copies of one card: the lead rule as the CLI
   really prints it on the lit panel, the other three as rows beside it. */
.rule-panel { padding: 0; overflow: hidden; --p-h: auto; }
.rule-panel > .pg-win { min-height: 0; }
.rule-panel .pg-term { padding: 12px 14px; gap: 5px; }
.rule-panel .pg-term__line { white-space: pre-wrap; }
.rule-panel .pg-exit { padding-top: 6px; }

.rule-rows { display: grid; align-content: start; gap: var(--s-4); }
.rule-row {
  display: grid; gap: var(--s-2);
  padding-top: var(--s-4); border-top: 1px solid var(--line);
}
.rule-row:first-child { padding-top: 0; border-top: 0; }

/* The questions run the full container in two columns: half-width boxes on
   their own lines, and the band fills instead of leaving 500px of air. */
.faq-row { margin-top: var(--s-8); }
#pricing .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap, 24px); }
@media (max-width: 859px) { #pricing .faq { grid-template-columns: 1fr; } }

/* The footer's wordmark: no tile, so the name starts on the page margin. */
.footer__wordmark { gap: 0; }

/* The diagram's nodes settle their border as they are scrolled into view;
   nothing below the first screen reveals itself on this page. */
#formats .dg, #formats .dg * { transition: none !important; }

/* A phone shows the rule count alone: the full pill runs wider than half the
   container and lands off its lines. */
@media (max-width: 639px) { .hero__c .pill .muted { display: none; } }

/* ------------------------------------------- tablet and phone, the footer
   Below 1024 the kit leaves .span-* undefined, so the footer's link columns
   fall into single grid tracks and the row stops well short of the page's
   right line. They take whole fractions here instead. */
@media (max-width: 1023px) {
  .closing__links > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closing__links > .grid > * { grid-column: auto / span 1; }
  .closing__links > .grid > .stack-4 { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .closing__links > .grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------- tablet: every section one screen
   Below 1024 a section is as tall as its content, so the windows are
   capped to keep #dashboard and #steps inside one 1024px screen. */
@media (min-width: 640px) and (max-width: 1023px) {
  #dashboard .stats { gap: var(--s-4); }
  .mo-pc__steps { gap: var(--s-5); }
}

/* The three sections that still ran past a 1024px tablet screen. */
@media (min-width: 640px) and (max-width: 1023px) {
  .mo-pc__steps { gap: var(--s-4); }
  .mo-pc__step p { font-size: 15px; }
  #rules .rule-panel .pg-term { padding: 10px 12px; }
  #rules .rule-rows { gap: var(--s-3); }
  #rules .rule-row { padding-top: var(--s-3); }
  #formats .panel { --p-h: 470px; }
}

/* On a tablet the lead rule and the three rows sit side by side rather than
   stacking: stacked they ran the section 250px past its one screen. */
@media (min-width: 640px) and (max-width: 1023px) {
  #rules .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  #rules .grid > .card.span-6,
  #rules .grid > .rule-rows { grid-column: auto / span 1; }
  #rules .rule-panel .pg-win__bar { display: none; }
}

/* The pricing band is two screens: the plans on the first, the questions on
   the second. .g2 gives the wrap its two rows; this holds the first row's
   own parts together. */
.pricing-top { display: grid; align-content: start; gap: var(--s-6); }
.faq-row { align-content: start; }

/* ===================================================== the phone, 390x844
   Every section one screen or two, measured at 390x844. The mocks grow on
   the two-screen sections rather than shrinking to fill: a phone reader
   needs the terminal larger, not smaller. */
@media (max-width: 639px) {
  /* #steps: three steps with a mock each read better over two screens */
  #steps { --hm: 2; }
  .mo-pc__steps { gap: var(--s-7); }

  /* #rules: one screen, so the lead panel and the rows are compact */
  #rules { --hm: 1; }
  #rules .rule-panel .pg-term { padding: 9px 11px; gap: 3px; }
  #rules .rule-panel .pg-term__line { font-size: 11px; }
  #rules .card > .t-small { display: none; }
  #rules .rule-rows { gap: var(--s-3); }
  #rules .rule-row { padding-top: var(--s-3); }
  #rules .rule-fix { font-size: 11px; }

  /* the three link columns side by side again: stacked they ran the close
     to a screen and a half */
  .closing__links > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closing__links > .grid > .stack-4 { grid-column: 1 / -1; }
  .footer__col h3 { font-size: 13px; }
  .footer__col ul { font-size: 14px; }
  #formats .panel { --p-h: 330px; }
}

@media (max-width: 639px) {
  /* the last of the phone trims: #rules to one screen, the close with it */
  #rules .rule-panel .pg-win__bar { display: none; }
  #rules .rule-row .rule-sql { display: none; }
  #rules .section-head p { font-size: 14px; }
  .closing__cta .t-lead { font-size: 16px; }
  .closing__links { gap: var(--s-4); }
  .closing__cta { gap: var(--s-4); }
  .close__word { margin-top: 0; }
  .footer__legal { font-size: 12px; margin-top: var(--s-3); padding-top: var(--s-3); }
}

/* 768: the two-row pricing band ran 140px past its two screens. */
@media (min-width: 640px) and (max-width: 1023px) {
  #pricing .plan__list li { font-size: 14px; }
  #pricing .plan { gap: var(--s-3); }
  #pricing .faq__item dd { font-size: 14px; line-height: 1.45; }
  #pricing .pricing-top { gap: var(--s-4); }
  #pricing .faq { gap: var(--s-3); }
  #pricing .plan__price small { margin-top: 3px; }
  #pricing .plan__icons { padding-top: 0; }
}

/* On a tablet the two plans sit side by side: stacked they made the band's
   first row taller than its second and pushed it past two screens. */
@media (min-width: 640px) and (max-width: 1023px) {
  #pricing .pricing-top > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pricing .pricing-top > .grid > .plan { grid-column: auto / span 1; }
}

/* The phone, measured at a real 390x844 viewport (Chrome will not open a
   window that narrow, so these were tuned through device emulation). */
@media (max-width: 639px) {
  #dashboard .section-head p { font-size: 14px; }
  #dashboard .stats { gap: var(--s-3); }
  #dashboard .stat .t-small { font-size: 12px; }

  #rules .rule-panel .pg-term { padding: 8px 10px; }
  #rules .rule-panel .pg-term__line:nth-of-type(3) { display: none; }
  #rules .card > .t-card { font-size: 15px; }
  #rules .rule-row > .t-card { font-size: 14px; }
  #rules .grid { row-gap: var(--s-4); }

  #pricing .plan__list li { font-size: 13px; }
  #pricing .plan__icons span { font-size: 12px; }
  #pricing .faq__item dd { font-size: 13px; }

  .section-head--split { gap: var(--s-3); }
  .closing__cta .t-lead { font-size: 15px; }
  .footer__legal { gap: var(--s-1); }
}

@media (max-width: 639px) {
  #rules .section-head p { font-size: 13px; }
  #rules .rule-rows { gap: var(--s-2); }
  #pricing .section-head p { font-size: 14px; }
  #pricing .plan { gap: 10px; }
  #pricing .faq { gap: 14px; }
  #pricing .faq__item dt { font-size: 14px; }
  .closing__cta .t-lead { font-size: 14px; }
  .closing__links > .grid { row-gap: var(--s-3); }
}

/* ------------------------------------------- the mocks on a narrow screen
   A mock is never cut to fit: it shows less. Below 1024 the windows drop the
   statement preview under each finding, which is what a narrow pane of the
   real dashboard does. */
@media (max-width: 1023px) {
  .mo-pc__visual .pg-sql,
  #dashboard .pg-sql { display: none; }
  .pg-meta span:nth-of-type(n+2) { display: none; }
}

/* ------------------------------------------------- #steps below 1024
   pinned-chapters does not mount under 1024: its section falls back to a
   one-screen minimum and whatever its content needs, which landed it at
   1.8 screens. The kit's own remedy is to fix the height and fit the
   content, so the section is two screens here as it is on a desktop. */
@media (max-width: 1023px) {
  main > section#steps { height: calc(2 * 100lvh); }
  #steps .mo-pc__grid { height: 100%; }
}
@media (max-width: 639px) {
  /* and the phone content trimmed to fit those two screens */
  #steps .mo-pc__step p { font-size: 14px; }
  #steps .mo-pc__steps { gap: var(--s-5); }
  #dashboard .pg-finding p { font-size: 11px; }
  #dashboard .pg-win__bar { display: none; }
  #dashboard .section-head { gap: var(--s-2); }
  .footer__legal { font-size: 11px; }
}

@media (max-width: 1023px) {
  #dashboard .stats { gap: var(--s-3); }
  #dashboard .stat .t-small { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 639px) {
  #dashboard .pg-finding { padding-top: 7px; gap: 3px; }
  #dashboard .pg-body { gap: 7px; padding: 11px 13px; }
  .closing__cta .section-head--split { gap: var(--s-2); }
}

/* Step three is "read the scan history", so on a phone its window shows the
   run list itself rather than one run's findings: shorter, and the right
   half of the product for what the step says. */
@media (max-width: 639px) {
  .mo-pc__step:nth-of-type(3) .pg-runs { display: grid; }
  .mo-pc__step:nth-of-type(3) .pg-body { display: none; }

  #dashboard .section-head p { font-size: 13px; line-height: 1.45; }
  #dashboard .stats { gap: 10px; }
  .closing__links > .grid { row-gap: var(--s-2); }
}

@media (max-width: 639px) {
  #dashboard .pg-finding:nth-of-type(4) { display: none; }
  #dashboard .pg-exit { font-size: 11px; }
  .footer__legal span:last-child { font-size: 11px; }
}

@media (max-width: 1023px) {
  #dashboard .stat .t-stat { line-height: 1; }
  #dashboard .section-head { gap: var(--s-2); }
}
@media (max-width: 639px) {
  #dashboard .pg-meta { display: none; }
  #dashboard .stats { gap: 8px; }
}

@media (max-width: 639px) {
  #dashboard .pg-finding p { line-height: 1.4; }
  #dashboard .pg-sev, #dashboard .pg-rule, #dashboard .pg-at { font-size: 10px; }
  #dashboard .section-head h2 { line-height: 1.12; }
}

@media (max-width: 639px) {
  #dashboard .pg-body { gap: 6px; padding: 9px 12px; }
  #dashboard .stat .t-small { font-size: 11px; }
}

@media (max-width: 639px) { #dashboard .pg-finding { padding-top: 6px; } }

@media (max-width: 639px) { #dashboard .pg-exit { padding-top: 0; } #dashboard .stats { gap: 6px; } }

/* The product's mark is the shield from the favicon, drawn as an inline SVG
   rather than the kit's masked tile, so the application bar and this page
   wear exactly the same thing. */
.mark.mark--shield {
  background: none;
  -webkit-mask: none;
  mask: none;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  border-radius: 0;
}

/* ------------------------------------------------------- the live scanner
   The one part of this page that is not a picture of the product: the form
   posts to /api/scan and the window beside it fills with the real report.
   It borrows the product's window wholesale, so a visitor sees the same
   thing here, in the pull request and in the dashboard. */

.try { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap, 24px); align-items: start; }
.try__form { display: grid; gap: var(--s-3, 12px); align-content: start; min-width: 0; }

.try__samples { display: grid; gap: 8px; }
.try__chip {
  display: grid; gap: 2px; text-align: left; cursor: pointer;
  padding: 9px 12px; background: transparent; color: var(--muted);
  border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius, 0);
  font-family: var(--font-text);
}
.try__chip b { font: 500 14px/1.3 var(--font-text); color: var(--ink); }
.try__chip span { font: 400 12px/1.3 var(--font-mono); color: var(--p-muted); }
.try__chip.is-on { border-color: var(--p-accent); background: rgb(218 250 156 / .07); }
.try__chip.is-on b { color: var(--p-accent); }
@media (hover: hover) and (pointer: fine) {
  .try__chip { transition: border-color .18s cubic-bezier(.2,.8,.2,1), background-color .18s cubic-bezier(.2,.8,.2,1); }
  .try__chip:hover { border-color: rgb(255 255 255 / .28); }
}

.try__label { font: 500 13px/1 var(--font-text); color: var(--ink); }
.try__code {
  width: 100%; min-width: 0; resize: vertical;
  background: #0a0a0a; color: var(--win-ink);
  border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius, 0);
  padding: 12px 14px; font: 400 12.5px/1.65 var(--font-mono);
  tab-size: 4; white-space: pre; overflow-wrap: normal; overflow-x: auto;
}
.try__code:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 1px; border-color: transparent; }

.try__actions { display: grid; gap: 10px; justify-items: start; }
.try__note { max-width: 52ch; }

/* The report. It sizes to its content up to a screenful, then scrolls inside
   its own frame -- which is what a terminal pane does, and keeps the section
   two screens tall however many findings come back. */
.try__out { min-width: 0; position: sticky; top: calc(var(--nav-h, 64px) + 16px); }
.try__out .pg-win { --p-h: auto; min-height: 0; max-height: min(74vh, 720px); grid-template-rows: auto minmax(0, 1fr); }
.try__out .pg-body { overflow-y: auto; overscroll-behavior: contain; }
.try__out .pg-win--waiting .pg-body { align-content: center; min-height: 180px; }

.try__title { color: var(--win-ink); font-weight: 500; }
.try__why, .try__fix, .try__docs, .try__filenote, .try__clean {
  font-family: var(--font-text); font-size: 12px; margin: 0; color: var(--win-dim); min-width: 0;
}
.try__why { color: var(--win-mid); }
.try__fix { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: baseline; color: var(--win-mid); }
.try__fix span { font: 500 11px/1.5 var(--font-mono); color: var(--p-accent); letter-spacing: .06em; }
.try__docs a { color: var(--win-dim); font-size: 11px; font-family: var(--font-mono); }
.try__clean { color: var(--p-accent); }
.try__filenote { color: var(--sev-medium); }

/* the two severities the hand-typed windows never needed */
.pg-sev--low { color: var(--sev-low); }
.pg-sql--medium { border-left-color: var(--sev-medium); }
.pg-sql--low { border-left-color: var(--sev-low); }

@media (max-width: 1023px) {
  .try { grid-template-columns: 1fr; }
  .try__out { position: static; }
  .try__out .pg-win { max-height: min(70vh, 620px); }
  .try__samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The narrow windows drop everything after the file name, because in a
     typed-out mock it is decoration. Here it is the answer -- how many
     findings, of what severity -- so it stays. */
  .try__out .pg-meta span { display: inline; }
}
@media (max-width: 639px) {
  .try__samples { grid-template-columns: 1fr; }
  .try__code { font-size: 12px; padding: 10px 11px; }
}

/* The free-and-still-worth-paying-for table, under the scanner: what the
   open source checker cannot do, named instead of implied. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap, 24px); }
.split__col { display: grid; align-content: start; gap: var(--s-3, 12px); padding: var(--s-5, 20px); border: 1px solid rgb(255 255 255 / .1); }
.split__col--paid { background: rgb(218 250 156 / .06); box-shadow: inset 0 0 0 1px rgb(218 250 156 / .26); border-color: transparent; }
.split__head { display: grid; gap: 4px; }
.split__head h3 { font: 500 16px/1.3 var(--font-text); color: var(--ink); margin: 0; }
.split__head p { font: 400 13px/1.5 var(--font-mono); color: var(--p-muted); margin: 0; }
.split__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.split__list li { color: var(--p-muted); font-size: 14.5px; padding-left: 18px; position: relative; }
.split__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1px; background: currentColor; }
.split__col--paid .split__list li::before { background: var(--p-accent); }
@media (max-width: 859px) { .split { grid-template-columns: 1fr; } }
