/* Free-audit URL box ("Enter your website → Get free audit", free tier design §6).
   Shared by index.html and pricing.html, so the box looks and behaves the same on both.
   Uses each page's own :root tokens (--brand, --line-2, --ink, --ink-3, --font).

   Focus: the field sits borderless inside the box and drops its own outline, so the BOX
   carries the focus ring via :focus-within. WCAG 2.4.7 needs a visible indicator, and
   the old inline rule removed the outline with nothing in its place. */
.scanbox {
  max-width: 560px;
  margin: 34px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 40px -18px rgba(79, 70, 229, 0.35);
}
.scanbox:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.scanbox input[name="domain"] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  font-size: 16px;
  padding: 0 14px;
  font-family: var(--font);
  color: var(--ink);
  background: transparent;
}
.scanbox .btn {
  white-space: nowrap;
}
/* A live region: it stays in the layout at zero height while empty (display:none
   regions are skipped by some screen readers when text arrives). #b91c1c on white
   is 6.5:1. */
.fa-error {
  flex-basis: 100%;
  margin: 0;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #b91c1c;
  text-align: left;
}
.fa-error:not(:empty) {
  padding-top: 8px;
  padding-bottom: 4px;
}
.fa-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
.fa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 560px) {
  .scanbox {
    flex-direction: column;
    gap: 0;
  }
  /* Spacing by margin, not gap: the empty live region below must add no space. */
  .scanbox .btn {
    margin-top: 8px;
  }
  /* pricing.html puts .center straight under a <section> (no .wrap gutter); index.html's
     .center sits inside .wrap, so this selector leaves the home page unchanged. */
  section > .center > .scanbox,
  section > .center > .fa-note {
    margin-inline: 16px;
  }
  .fa-error {
    flex-basis: auto;
  }
}
