/* AuditLint — auditlint.com
   This site is the shop window for a contrast checker, so every pairing below
   is measured, not eyeballed. Body text clears AAA (7:1) and nothing anywhere
   is under AA. The tool is run against this page before each deploy; if it
   reports a failure, the site is wrong, not the tool. */

:root {
  --ground:      #ffffff;
  --raised:      #f6f8fb;
  --line:        #dde2ea;
  --ink:         #14161b;   /* 17.4:1 on ground */
  --ink-dim:     #4b5058;   /*  8.3:1 on ground */
  --accent:      #1743c3;   /*  8.1:1 on ground */
  --accent-ink:  #ffffff;
  --flag:        #8c0715;   /*  8.4:1 on ground */
  --flag-bg:     #fdeef0;
  --ok:          #0d5732;   /*  7.6:1 on ground */
  --ok-bg:       #e6f3ec;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:     #101317;
    --raised:     #191d23;
    --line:       #2c323b;
    --ink:        #f4f6f8;  /* 16.6:1 on ground */
    --ink-dim:    #b6bdc7;  /*  9.1:1 on ground */
    --accent:     #a8c0ff;  /*  9.7:1 on ground */
    --accent-ink: #0b0e12;
    --flag:       #ffa3ac;  /*  9.2:1 on ground */
    --flag-bg:    #2b1418;
    --ok:         #7fdcab;  /* 11.4:1 on ground */
    --ok-bg:      #10281c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.65 "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px;
}

/* skip link — this is an accessibility company's website */
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; border-radius: 0 0 6px 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

/* ---------- masthead ---------- */

.site-head {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.mark {
  display: flex; align-items: center; gap: .55rem;
  font: 600 1.05rem "IBM Plex Sans", sans-serif;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.mark svg { flex: none; }
.site-nav {
  margin-left: auto; display: flex; flex-wrap: wrap;
  gap: .5rem 1.4rem; font-size: .95rem;
}

/*
 * WCAG 1.4.10 Reflow: content must not require horizontal scrolling at 320px.
 * Five nav links in a non-wrapping row pushed the page 103px sideways on a
 * phone. Our own tools do not check reflow -- it is a layout criterion, not a
 * naming or contrast one -- which is a fair reminder that passing every check
 * they run is not the same as the page being right.
 */
@media (max-width: 44rem) {
  .site-head { flex-wrap: wrap; gap: .6rem 1rem; }
  .site-nav { margin-left: 0; width: 100%; gap: .5rem 1.1rem; }
}
.site-nav a { color: var(--ink-dim); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- hero ---------- */

.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3.5rem;
  align-items: start;
}
/* One column before the panel would have to shrink below its real width. A
   squashed screenshot of a fixed-width popup is a lie about the product. */
@media (max-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 2rem; }
}

/*
 * min-width: 0 is doing real work here.
 *
 * A grid item defaults to min-width: auto, which is its min-content size. The
 * panel is a fixed 420px, so the column refused to go below that and pushed the
 * whole page sideways on a phone -- 103px of horizontal scroll, with `1fr`
 * silently computing to 420px. Allowing the item to shrink is what lets
 * max-width: 100% on the panel mean anything.
 */
.hero-copy, .hero-shot { min-width: 0; }
.hero h1 {
  margin: 0 0 1.1rem;
  font: 600 clamp(2.2rem, 5.5vw, 3.6rem)/1.08 "IBM Plex Serif", Georgia, serif;
  letter-spacing: -.025em; text-wrap: balance; max-width: 20ch;
}
.hero .lede {
  margin: 0 0 2rem; font-size: 1.2rem; color: var(--ink-dim);
  max-width: 54ch; text-wrap: pretty;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 8px;
  font: 600 1rem "IBM Plex Sans", sans-serif; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-dim); }
.cta-note { font-size: .9rem; color: var(--ink-dim); }

/* ---------- stat band ---------- */

.band { background: var(--raised); border-block: 1px solid var(--line); padding: 2.6rem 0; }
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.8rem;
}
.stats b {
  display: block;
  font: 600 2.1rem/1.05 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -.03em; color: var(--flag);
}
.stats span { display: block; margin-top: .35rem; font-size: .95rem; color: var(--ink-dim); }
.band-note { margin: 1.8rem 0 0; font-size: .88rem; color: var(--ink-dim); }

/* ---------- sections ---------- */

section { padding: 3.6rem 0; }
h2 {
  margin: 0 0 .7rem;
  font: 600 clamp(1.5rem, 3vw, 2rem)/1.15 "IBM Plex Serif", Georgia, serif;
  letter-spacing: -.02em; text-wrap: balance;
}
.section-lede { margin: 0 0 2rem; color: var(--ink-dim); max-width: 58ch; }

/* ---------- tool cards ---------- */

.tools {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.1rem;
}
.tool {
  border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem;
  display: flex; flex-direction: column; gap: .6rem; background: var(--ground);
}
.tool h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.tool p { margin: 0; font-size: .95rem; color: var(--ink-dim); }
.tool .sc {
  font: 500 .78rem "IBM Plex Mono", monospace; color: var(--ink-dim);
  letter-spacing: .02em;
}
.pill {
  align-self: flex-start; margin-top: auto;
  font: 600 .72rem "IBM Plex Mono", monospace; letter-spacing: .06em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: 4px;
}
.pill-soon { background: var(--ok-bg); color: var(--ok); }
.pill-later { background: var(--raised); color: var(--ink-dim); border: 1px solid var(--line); }

/* ---------- feature rows ---------- */

.rows { display: grid; gap: 1.6rem; }
.row-item { display: grid; grid-template-columns: 1.6rem 1fr; gap: .9rem; align-items: start; }
.row-item svg { margin-top: .28rem; color: var(--accent); }
.row-item h3 { margin: 0 0 .2rem; font-size: 1.02rem; font-weight: 600; }
.row-item p { margin: 0; color: var(--ink-dim); font-size: .97rem; max-width: 60ch; }

/* ---------- pricing ---------- */

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; }
.price {
  border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.price.feature { border-color: var(--accent); border-width: 2px; }
.price .amount { font: 600 2rem/1 "IBM Plex Mono", monospace; letter-spacing: -.03em; }
.price .amount small { font-size: .95rem; font-weight: 400; color: var(--ink-dim); letter-spacing: 0; }
.price h3 { margin: 0; font-size: 1.02rem; }
.price ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--ink-dim); font-size: .93rem; }
.price li { margin-bottom: .25rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line); padding: 2.2rem 0 3rem;
  color: var(--ink-dim); font-size: .92rem;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: baseline; }
.foot-row nav { margin-left: auto; display: flex; gap: 1.2rem; }

/* ---------- legal pages ---------- */

.legal { padding: 3rem 0 4rem; }
.legal h1 { font: 600 2.1rem/1.15 "IBM Plex Serif", Georgia, serif; margin: 0 0 .4rem; }
.legal .updated { color: var(--ink-dim); font-size: .9rem; margin: 0 0 2.4rem; }
.legal h2 { font-size: 1.2rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-dim); }
.legal p { margin: 0 0 .9rem; }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- product illustration ---------- */

/* A still of the real panel. The numbers in it come from an actual scan of
   fixtures/alt-basic.html and fixtures/contrast-basic.html, not from
   imagination -- this is a shop window for a tool that sells on its numbers
   being right. */
.shot-eyebrow {
  margin: 0 0 .6rem;
  font: 600 .7rem "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim);
}
.shot {
  /* The real popup is 420px. Showing it any wider makes it read as part of the
     page rather than a picture of an extension. */
  width: 26.25rem;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 15, 30, .04), 0 18px 40px -18px rgba(10, 15, 30, .22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -18px rgba(0, 0, 0, .7);
  }
}
.shot-bar {
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--line);
  background: var(--ground);
}
.shot-bar b { font-size: .85rem; font-weight: 600; }
.shot-bar .sc {
  font: 500 .7rem "IBM Plex Mono", monospace; color: var(--ink-dim);
  letter-spacing: .03em;
}
.shot-bar .btn-mini {
  margin-left: auto; font: 600 .72rem "IBM Plex Sans", sans-serif;
  background: var(--accent); color: var(--accent-ink);
  padding: .3rem .7rem; border-radius: 5px;
}
.shot-body { padding: .9rem; }
.shot-head { font: 600 1rem/1.35 "IBM Plex Sans", sans-serif; margin: 0 0 .6rem; }
.shot-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.shot-chips li {
  font: 500 .7rem "IBM Plex Mono", monospace; padding: .2rem .5rem; border-radius: 999px;
}
.chip-crit { background: var(--flag-bg); color: var(--flag); }
.chip-warn { background: var(--raised); color: var(--ink-dim); border: 1px solid var(--line); }

.shot-rows { list-style: none; margin: 0; padding: 0; }
.shot-row {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem;
  padding: .6rem 0; border-top: 1px solid var(--line);
}
.shot-row:first-child { border-top: 0; }
.shot-badge {
  grid-row: 1 / span 2; align-self: start;
  font: 700 .62rem "IBM Plex Mono", monospace; letter-spacing: .04em;
  padding: .18rem .4rem; border-radius: 4px;
  background: var(--flag-bg); color: var(--flag);
}
.shot-row .t { margin: 0; font-size: .86rem; font-weight: 500; }
.shot-row .m { margin: .1rem 0 0; font-size: .78rem; color: var(--ink-dim); }
.shot-row code { font: .74rem "IBM Plex Mono", monospace; }
/*
 * Shows a colour pair without rendering text in it.
 *
 * It used to say "Aa" in the failing foreground colour, which is a genuine
 * low-contrast text node on our own page -- we were illustrating a failure by
 * committing one, and our own scanner rightly flagged it in light mode. The
 * inner bar carries the foreground colour instead, and the hex codes on the
 * line below carry the meaning in readable text.
 */
.shot-swatch {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 4px; border: 1px solid var(--line);
  vertical-align: -.4rem; margin-right: .4rem;
}
.shot-swatch i {
  display: block; width: .95rem; height: .32rem; border-radius: 1px;
  background: currentColor;
}
.shot-lock {
  margin: .5rem -.9rem -.9rem; padding: .9rem; text-align: center;
  background: var(--ground); border-top: 1px solid var(--line);
}
.shot-lock b { display: block; font-size: .9rem; }
.shot-lock span { font-size: .78rem; color: var(--ink-dim); }

/* ---------- verification ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.checks li {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: baseline;
}
.checks .n {
  font: 600 1.1rem "IBM Plex Mono", monospace; color: var(--ok);
  font-variant-numeric: tabular-nums; min-width: 4.5rem;
}
.checks p { margin: 0; color: var(--ink-dim); font-size: .95rem; max-width: 58ch; }
.checks b { color: var(--ink); }


/* The caption has to say this is a picture. A panel that looks operable and is
   not reads as a broken page -- the same mistake as a button that does nothing,
   which is worth avoiding twice on a page selling careful work. */
.shot-cap {
  padding: .7rem .9rem;
  border-top: 1px solid var(--line);
  background: var(--ground);
  font-size: .82rem;
  color: var(--ink-dim);
}

/* ---------- classes replacing inline styles ---------- */

/*
 * The CSP is `style-src 'self'` with no 'unsafe-inline', so every style=""
 * attribute on this site was being silently dropped -- including the two colour
 * swatches, which are the whole visual point of a contrast tool's output. They
 * are classes now. Adding 'unsafe-inline' would have been the smaller diff and
 * the worse trade.
 *
 * These two hold the colours of the *audited* page, so they are deliberately
 * literal and must not follow our theme.
 */
.sw-fail-777 { background: #ffffff; color: #777777; }
.sw-fail-959 { background: #ffffff; color: #959595; }

.shot-badge.manual { background: var(--raised); color: var(--ink-dim); }

.flush { margin-inline: 0; }
.centred { margin-inline: auto; }
.mt-sm { margin-top: 1.4rem; }
.mt-lg { margin-top: 2rem; }
