/* Open Aisle Studio. Plain CSS, no build step. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --tint: #f6f6f3;
  --surface: #ffffff;
  --ink: #0f1115;
  --text: #1c1f26;
  --muted: #535a68;
  --rule: #e4e3de;
  --rule-strong: #c9c8c1;
  --accent: #2443d6;
  --accent-hover: #1a33ab;
  --accent-ink: #ffffff;
  --accent-tint: #eef1fd;
  --focus: #2443d6;
  --band: #0f1115;
  --band-text: #f4f4f1;
  --band-muted: #b8bcc6;
  --shadow: 0 1px 2px rgb(15 17 21 / 0.04), 0 12px 32px -12px rgb(15 17 21 / 0.18);

  --crit-fg: #a8221a;
  --crit-bg: #fdeeec;
  --serious-fg: #93400a;
  --serious-bg: #fdf1e3;
  --moderate-fg: #1d3db8;
  --moderate-bg: #edf1fd;
  --ok-fg: #1f6b3a;
  --ok-bg: #e8f4ec;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f13;
    --tint: #121519;
    --surface: #171a20;
    --ink: #f4f4f1;
    --text: #e6e7ea;
    --muted: #a9aeb9;
    --rule: #262a32;
    --rule-strong: #3a3f49;
    --accent: #93a6ff;
    --accent-hover: #b4c1ff;
    --accent-ink: #0d1330;
    --accent-tint: #1a2040;
    --focus: #93a6ff;
    --band: #171a20;
    --band-text: #f4f4f1;
    --band-muted: #b2b7c2;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    --crit-fg: #ffb4ab;
    --crit-bg: #3a1714;
    --serious-fg: #ffc58a;
    --serious-bg: #3a2610;
    --moderate-fg: #a9b8ff;
    --moderate-bg: #1c2348;
    --ok-fg: #8ad6a4;
    --ok-bg: #16301f;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0f13;
  --tint: #121519;
  --surface: #171a20;
  --ink: #f4f4f1;
  --text: #e6e7ea;
  --muted: #a9aeb9;
  --rule: #262a32;
  --rule-strong: #3a3f49;
  --accent: #93a6ff;
  --accent-hover: #b4c1ff;
  --accent-ink: #0d1330;
  --accent-tint: #1a2040;
  --focus: #93a6ff;
  --band: #171a20;
  --band-text: #f4f4f1;
  --band-muted: #b2b7c2;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  --crit-fg: #ffb4ab;
  --crit-bg: #3a1714;
  --serious-fg: #ffc58a;
  --serious-bg: #3a2610;
  --moderate-fg: #a9b8ff;
  --moderate-bg: #1c2348;
  --ok-fg: #8ad6a4;
  --ok-bg: #16301f;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
}

h3 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  min-height: 4.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

.mark-arch {
  fill: var(--ink);
}

.mark-path {
  fill: var(--accent);
}

.brand:hover .mark-path {
  fill: var(--accent-hover);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--text);
  font-size: 0.975rem;
  text-decoration: none;
}

.site-nav ul a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-small {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.button-invert {
  background: var(--band-text);
  color: var(--band);
  border-color: var(--band-text);
}

.button-invert:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(3.5rem, 7vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4.5rem;
  }
}

.kicker,
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before,
.section-label::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 13ch;
}

.lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.25rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.facts strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Sample report */

.report {
  margin: 0;
}

.report-sheet {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.report-sheet::before {
  content: "";
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  z-index: -1;
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.report-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.report-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.report-stats div {
  padding: 1rem 0.5rem 1rem 0;
}

.report-stats div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.report-stats dt {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
}

.report-stats dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.findings {
  list-style: none;
  margin: 0;
  padding: 0;
}

.findings li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "sev text status"
    "sev ref status";
  column-gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.findings li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sev {
  grid-area: sev;
  min-width: 5.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.sev-critical {
  color: var(--crit-fg);
  background: var(--crit-bg);
}

.sev-serious {
  color: var(--serious-fg);
  background: var(--serious-bg);
}

.sev-moderate {
  color: var(--moderate-fg);
  background: var(--moderate-bg);
}

.finding-text {
  grid-area: text;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.4;
  color: var(--ink);
}

.finding-ref {
  grid-area: ref;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ok-fg);
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.28rem;
  margin-top: -0.15rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.report figcaption {
  margin-top: 2rem;
  max-width: 32rem;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .report-sheet {
    padding: 1.25rem;
  }
  .report-sheet::before {
    display: none;
  }
  .findings li {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "sev status"
      "text text"
      "ref ref";
    row-gap: 0.35rem;
  }
  .sev {
    justify-self: start;
    min-width: 0;
  }
}

/* Sections */

.section {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.section-tint {
  background: var(--tint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.split {
  display: grid;
  gap: 2rem 4rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.split-body {
  max-width: 40rem;
}

.large {
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
}

.issue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0 2rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: issue;
}

.issue-list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule-strong);
  counter-increment: issue;
}

.issue-list h3::before {
  content: counter(issue, decimal-leading-zero);
  margin-right: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.issue-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.pull {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.pull p {
  max-width: 52rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

/* Comparison table */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.975rem;
}

.compare th,
.compare td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare tbody th {
  width: 24%;
  font-weight: 600;
  color: var(--ink);
}

.compare td {
  color: var(--muted);
}

.compare .us {
  background: var(--accent-tint);
  color: var(--ink);
  font-weight: 600;
}

.compare thead .us {
  color: var(--accent);
}

.note {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Process */

.steps {
  display: grid;
  gap: 0 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 0 2rem;
  border-top: 2px solid var(--ink);
}

.step-num {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.step p {
  color: var(--muted);
}

.step .step-you {
  margin: auto 0 0;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.step-you span {
  font-weight: 650;
  color: var(--ink);
}

/* Pricing */

.plan {
  display: grid;
  gap: 2rem 4rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

@media (min-width: 56rem) {
  .plan {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}

.plan h3 {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-price,
.addon-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0.75rem 0 1rem;
}

.amount {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.unit {
  color: var(--muted);
}

.plan-main p:not(.plan-price) {
  max-width: 26rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.plan-list li:last-child {
  border-bottom: 0;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.15rem;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.addon {
  display: grid;
  gap: 0.5rem 3rem;
  margin-top: 1.25rem;
  padding: 1.75rem clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

@media (min-width: 48rem) {
  .addon {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.addon h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.addon-optional {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.addon p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
}

.addon .addon-price {
  margin: 0;
}

.addon .amount {
  font-size: 2.5rem;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--rule-strong);
}

.faq details:first-child {
  border-top: 1px solid var(--rule-strong);
}

.faq summary {
  position: relative;
  display: block;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.4rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  margin-top: -0.1rem;
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq details p {
  margin: 0;
  padding: 0 2.5rem 1.35rem 0;
  color: var(--muted);
}

/* CTA band */

.cta-band {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  background: var(--band);
  color: var(--band-text);
}

.cta-inner {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: end;
}

@media (min-width: 56rem) {
  .cta-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  }
}

.cta-band h2 {
  max-width: 18ch;
  color: var(--band-text);
}

.cta-band p {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--band-muted);
}

.cta-band :focus-visible {
  outline-color: var(--band-text);
}

.cta-actions .cta-email {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  padding: 3rem 0 3.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }
}

.footer-grid p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem !important;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.fine-print {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}

/* Inner pages */

.page {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}

.prose {
  max-width: 42rem;
}

.prose h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.prose h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: 1.75rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.updated {
  margin-top: 1rem;
  color: var(--muted);
}

/* Windows high contrast / forced colors */

@media (forced-colors: active) {
  .button,
  .report-sheet,
  .plan,
  .addon,
  .table-scroll,
  .sev {
    border: 1px solid CanvasText;
  }
  .mark-arch,
  .mark-path {
    fill: CanvasText;
  }
  .kicker::before,
  .section-label::before {
    background: CanvasText;
  }
}

.footer-mark {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}

/* Free store check */

.checker {
  max-width: 34rem;
  margin-top: 2.25rem;
}

.checker-label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 650;
  color: var(--ink);
}

.checker-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checker-row:focus-within {
  border-color: var(--accent);
}

.checker-row input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.checker-row input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.checker-row input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.checker-row .button {
  flex: none;
}

.checker-hint {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.checker-error {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--crit-fg);
  background: var(--crit-bg);
  color: var(--ink);
  font-size: 0.95rem;
  border-radius: 4px;
}

.checker-error[hidden] {
  display: none;
}

@media (max-width: 30rem) {
  .checker-row {
    flex-direction: column;
  }
  .checker-row .button {
    width: 100%;
  }
}

/* Results */

.results {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
}

.results-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.scan-card {
  max-width: 36rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.scan-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
}

.scan-bar {
  height: 4px;
  margin: 1.25rem 0 1.5rem;
  overflow: hidden;
  background: var(--rule);
  border-radius: 999px;
}

.scan-bar span {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  animation: scan 1.4s ease-in-out infinite;
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

.scan-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.scan-steps li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.6rem;
  opacity: 0.35;
  animation: step-on 0.4s ease forwards;
  animation-delay: calc(var(--i) * 1.6s);
}

.scan-steps li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes step-on {
  to { opacity: 1; color: var(--ink); }
}

.results-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.results-head h2:focus {
  outline: none;
}

.results-head h2:focus-visible {
  outline: none;
}

.results-sub {
  margin-top: 0.85rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.results-overlay {
  max-width: 46rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--serious-bg);
  border-left: 3px solid var(--serious-fg);
  border-radius: 4px;
  color: var(--ink);
}

.results-grid {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .results-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.result-item {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.result-item:last-child {
  border-bottom: 0;
}

.result-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "sev title count"
    "sev ref ref";
  column-gap: 0.9rem;
  align-items: start;
}

.result-row .sev {
  grid-area: sev;
}

.result-title {
  grid-area: title;
  font-weight: 600;
  color: var(--ink);
}

.result-count {
  grid-area: count;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.result-row .finding-ref {
  grid-area: ref;
}

.result-detail {
  margin: 0.9rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--accent-tint);
  border-radius: 8px;
}

.result-detail p {
  margin: 0 0 0.5rem;
}

.result-where {
  font-size: 0.9rem;
  color: var(--muted);
}

.result-code {
  display: block;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.result-locked {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.lock {
  position: relative;
  width: 0.75rem;
  height: 0.6rem;
  margin-top: 0.3rem;
  background: var(--muted);
  border-radius: 2px;
  flex: none;
}

.lock::before {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: -0.4rem;
  width: 0.51rem;
  height: 0.55rem;
  border: 2px solid var(--muted);
  border-bottom: 0;
  border-radius: 0.3rem 0.3rem 0 0;
}

@media (max-width: 30rem) {
  .result-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "sev count"
      "title title"
      "ref ref";
    row-gap: 0.3rem;
  }
  .result-row .sev {
    justify-self: start;
    min-width: 0;
  }
}

@media (min-width: 60rem) {
  .results-grid .lead-card {
    position: sticky;
    top: 1.5rem;
  }
}

.lead-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lead-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.lead-card > p {
  color: var(--muted);
}

.lead-card label[for="lead-email"] {
  display: block;
  margin: 1.25rem 0 0.4rem;
  font-weight: 600;
  color: var(--ink);
}

.lead-card input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.lead-card input[type="email"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--text);
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--accent);
}

.lead-card .button {
  width: 100%;
  margin-top: 1.25rem;
}

.lead-privacy {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.lead-done:focus {
  outline: none;
}

.lead-tick {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent);
}

.lead-tick::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.75rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--accent-ink);
  border-bottom: 3px solid var(--accent-ink);
  transform: rotate(-45deg);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.results-note {
  max-width: 46rem;
  margin: 1.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Private leads page */

.leads-h {
  margin: 2.5rem 0 1rem;
  font-size: 1.6rem;
}

.leads-table {
  min-width: 52rem;
}

.leads-table td {
  color: var(--text);
}

/* Motion: only for visitors who haven't asked for reduced motion */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .steps .step:nth-child(2) { transition-delay: 0.08s; }
  .steps .step:nth-child(3) { transition-delay: 0.16s; }
  .steps .step:nth-child(4) { transition-delay: 0.24s; }

  .hero-copy > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }

  .report-sheet {
    animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .findings li {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .findings li:nth-child(1) { animation-delay: 0.6s; }
  .findings li:nth-child(2) { animation-delay: 0.75s; }
  .findings li:nth-child(3) { animation-delay: 0.9s; }
  .findings li:nth-child(4) { animation-delay: 1.05s; }

  .findings .status {
    animation: pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  }
  .findings li:nth-child(1) .status { animation-delay: 1.5s; }
  .findings li:nth-child(2) .status { animation-delay: 1.75s; }
  .findings li:nth-child(3) .status { animation-delay: 2s; }
  .findings li:nth-child(4) .status { animation-delay: 2.25s; }

  .result-item {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i) * 0.07s);
  }

  .button {
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  }

  .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -8px rgb(36 67 214 / 0.55);
  }

  .button:active {
    transform: none;
  }

  .faq details[open] p {
    animation: fade 0.3s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-bar span {
    width: 100%;
    opacity: 0.6;
    animation: none;
  }
  .scan-steps li {
    opacity: 1;
    animation: none;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* What's covered */

.scope-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scope-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.scope-card h3 {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.check-list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list-plain li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.check-list-plain li:last-child {
  border-bottom: 0;
}

.check-list-plain li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95rem;
  width: 0.8rem;
  height: 0.42rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.report figcaption a {
  white-space: nowrap;
}

/* Sample report page */

.report-intro {
  max-width: 46rem;
}

.report-intro h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.report-intro .large {
  margin-top: 1.25rem;
  color: var(--muted);
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2.5rem 0 3rem;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .report-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.report-summary div {
  padding: 1.1rem 1rem 1.1rem 0;
}

.report-summary dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.report-summary dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}

.report-body {
  max-width: 52rem;
}

.report-body > section {
  margin-bottom: 3rem;
}

.report-body h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.meta-line {
  font-size: 0.92rem;
  color: var(--muted);
}

.issue {
  margin-bottom: 1.25rem;
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.issue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 1rem;
}

.issue-head h3 {
  font-size: 1.15rem;
}

.issue-facts {
  margin: 0;
}

.issue-facts div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .issue-facts div {
    grid-template-columns: 9rem 1fr;
  }
}

.issue-facts dt {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
}

.issue-facts dd {
  margin: 0;
}

.issue code,
.code-compare code {
  font-family: var(--mono);
  font-size: 0.85em;
}

.code-compare {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 52rem) {
  .code-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.code-compare figure {
  margin: 0;
  min-width: 0;
}

.code-compare figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.code-compare pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink);
}

.code-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.sev-minor {
  color: var(--muted);
  background: var(--tint);
}

.sev-fixed {
  color: var(--ok-fg);
  background: var(--ok-bg);
}

.plain-list {
  padding-left: 1.25rem;
}

.plain-list li {
  margin-bottom: 0.5rem;
}

.report-cta {
  max-width: 52rem;
  padding: 2rem;
  background: var(--accent-tint);
  border-radius: 12px;
}

.report-cta h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}
