/* AuditBolt marketing site. Colors and type follow brand/BRAND-GUIDE.md. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
}

:root {
  --navy: #0f1b3d;
  --night: #0b1430;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --light-blue: #7fa6ff;
  --ice: #eef3ff;
  --off-white: #f3f6ff;
  --muted: #5b6684;
  --muted-dark: #9aa6c4;
  --line: rgba(15, 27, 61, 0.12);
  --line-dark: rgba(243, 246, 255, 0.16);
  --pass: #15803d;
  --warn: #c2410c;
  --fail: #b91c1c;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--navy);
  font-family: "Plus Jakarta Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark :focus-visible {
  outline-color: var(--light-blue);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  background: #fff;
  padding: 8px 16px;
}
.skip:focus {
  left: 16px;
}

/* Section labels: Bold 700, 12px, uppercase, spaced out a little. */
.label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.dark .label {
  color: var(--light-blue);
}

.section {
  padding: 96px 0;
}
.section-title {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  max-width: 18ch;
}
.lead {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-hover);
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: rgba(15, 27, 61, 0.24);
}
.btn-secondary:hover {
  border-color: var(--navy);
}
.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  color: var(--navy);
}
.brand img {
  width: 144px;
  height: auto;
  margin: -6px 0 -6px -10px; /* the logo file carries its own clear space */
}
.brand .tm {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  margin: 10px 0 0 -6px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a:not(.btn) {
  color: var(--navy);
  font-weight: 600;
}
.nav a:not(.btn):hover {
  color: var(--blue);
}

/* Hero */
.hero {
  padding: 56px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero h1 span {
  display: block;
  color: var(--blue);
}
.hero .sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  max-width: 34em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.fine {
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.hero-visual {
  padding-bottom: 8px;
}
.devices {
  position: relative;
}
.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 27, 61, 0.06), 0 16px 40px -16px rgba(15, 27, 61, 0.22);
}
.laptop {
  border-top-width: 14px;
  border-color: var(--navy);
  border-radius: 12px;
}
.phone {
  position: absolute;
  left: -4px;
  top: 34%;
  width: 30%;
  max-width: 200px;
  border: 6px solid var(--navy);
  border-radius: 26px;
  background: var(--navy);
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(15, 27, 61, 0.45);
}
.phone img {
  border-radius: 20px;
  aspect-ratio: 300 / 560;
  object-fit: cover;
  object-position: top;
}

.grade {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 20px;
  margin: 24px 0 0 34%;
  padding-left: 8px;
}
.grade-letter {
  grid-row: span 3;
  font-size: clamp(104px, 13vw, 156px);
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--warn);
}
.grade-score {
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
}
.grade-score small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.grade-goal {
  font-size: 15px;
  line-height: 22px;
}
.grade-goal b {
  color: var(--pass);
}
.statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.st-pass {
  color: var(--pass);
}
.st-warn {
  color: var(--warn);
}
.st-fail {
  color: var(--fail);
}
.sample-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .grade-letter {
    animation: flip-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 250ms both;
    transform-origin: 50% 70%;
  }
  @keyframes flip-in {
    from {
      opacity: 0;
      transform: perspective(400px) rotateX(-80deg);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* The problem: three numbered statements */
.problems {
  display: grid;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.problems li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.problems .num {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}
.problems h3 {
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.01em;
}
.problems p {
  margin-top: 8px;
  color: var(--muted);
}

/* How it works */
.steps {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.step .num {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}
.step h3 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 32px;
}
.step p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 34em;
}
.step .aside {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
  color: var(--navy);
  font-weight: 600;
}

/* Dark bands */
.dark {
  background: var(--navy);
  color: var(--off-white);
}
.dark a {
  color: var(--light-blue);
}
.dark .lead {
  color: var(--muted-dark);
}

/* Two reports */
.reports {
  display: grid;
  gap: 56px;
  margin-top: 56px;
}
.report-col h3 {
  font-size: 24px;
  line-height: 32px;
}
.facts {
  margin: 20px 0 28px;
}
.facts div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
}
.facts dt {
  color: var(--muted-dark);
  font-size: 14px;
}
.facts dd {
  margin: 0;
}
.report-col .shot {
  border-color: transparent;
}
.after-note {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  max-width: 60ch;
}

/* Two ways */
.ways {
  display: grid;
  margin-top: 48px;
}
.way {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.way h3 {
  font-size: 24px;
  line-height: 32px;
}
.way p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 27px;
}

/* Your brand */
.brand-grid {
  display: grid;
  gap: 48px;
  margin-top: 8px;
}
.ticks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--line);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 12px;
  color: var(--pass);
  font-weight: 800;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pair figure {
  margin: 0;
}
.pair figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.pair figcaption b {
  color: var(--navy);
}

/* Honest by design: a short letter on Ice */
.ice {
  background: var(--ice);
}
.letter {
  max-width: 680px;
}
.letter dl {
  margin: 32px 0 0;
}
.letter dt {
  font-weight: 800;
  font-size: 19px;
  line-height: 28px;
  margin-top: 24px;
}
.letter dd {
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 27px;
}

/* Who it's for */
.who {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  max-width: 820px;
}
.who li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 19px;
  line-height: 28px;
}
.who li:last-child {
  border-bottom: 1px solid var(--line);
}
.who-note {
  margin-top: 24px;
  color: var(--muted);
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-top: 40px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 17px;
  font-size: 24px;
  font-weight: 500;
  color: var(--blue);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
  max-width: 62ch;
}

/* Final CTA + form */
.cta-grid {
  display: grid;
  gap: 40px;
}
.cta-grid h2 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  max-width: 14ch;
}
.cta-grid .lead {
  color: var(--muted-dark);
}
.form-card {
  background: #fff;
  color: var(--navy);
  border-radius: 12px;
  padding: 32px 24px;
}
.field {
  margin-bottom: 20px;
}
.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 15px;
}
.field .opt {
  font-weight: 500;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="url"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 27, 61, 0.28);
  border-radius: 8px;
  font: inherit;
  color: var(--navy);
  background: #fff;
}
.field input:focus-visible {
  outline-offset: 0;
  border-color: var(--blue);
}
.field input[aria-invalid="true"] {
  border-color: var(--fail);
}
fieldset.field {
  border: 0;
  padding: 0;
  margin-inline: 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid rgba(15, 27, 61, 0.28);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.choices input {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  margin: 0;
}
.choices label:has(input:checked) {
  border-color: var(--blue);
  background: var(--ice);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-card .btn {
  width: 100%;
  margin-top: 4px;
}
.form-msg {
  margin-top: 16px;
  font-size: 15px;
  line-height: 22px;
}
.form-msg.error {
  color: var(--fail);
  font-weight: 600;
}
.form-done h3 {
  font-size: 24px;
  line-height: 32px;
}
.form-done h3::before {
  content: "✓ ";
  color: var(--pass);
}
.form-done p {
  margin-top: 8px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 32px 0 40px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.site-footer strong {
  color: var(--navy);
}
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(91, 102, 132, 0.4);
}
.site-footer a:hover {
  color: var(--blue);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Text pages (Privacy, Terms, 404) */
.doc {
  max-width: 720px;
  padding: 64px 0 96px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
}
.doc .updated {
  margin-top: 12px;
  color: var(--muted);
}
.doc h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.01em;
}
.doc p,
.doc ul {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 27px;
}
.doc ul {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 6px;
}

/* Larger screens */
@media (min-width: 720px) {
  .problems {
    grid-template-columns: repeat(3, 1fr);
  }
  .problems li {
    padding: 0 32px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .problems li:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .ways {
    grid-template-columns: 1fr 1fr;
  }
  .way {
    padding: 32px 40px 0 0;
  }
  .way + .way {
    padding: 32px 0 0 40px;
    border-left: 1px solid var(--line);
  }
  .form-card {
    padding: 40px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 48px 0 96px;
  }
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
  }
  .hero-copy {
    grid-column: 1 / span 5;
  }
  .hero-visual {
    grid-column: 6 / span 7;
    padding-left: 24px;
  }
  .phone {
    left: -12px;
  }
  .section {
    padding: 120px 0;
  }
  .step {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    padding: 56px 0;
  }
  .step:nth-child(even) .step-text {
    order: 2;
  }
  .reports {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .brand-grid {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
  .cta-grid {
    grid-template-columns: 5fr 6fr;
    gap: 80px;
    align-items: start;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 16px;
  }
  .nav {
    gap: 16px;
  }
  .nav .btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  .brand img {
    width: 120px;
  }
  .grade {
    margin-left: 0;
    padding-left: 0;
    margin-top: 8px;
  }
  .devices {
    padding-bottom: 48px;
  }
  .phone {
    top: 10%;
    width: 32%;
    border-width: 4px;
    border-radius: 18px;
  }
  .phone img {
    border-radius: 14px;
  }
  .hero-visual {
    padding-bottom: 0;
  }
  .laptop {
    margin-left: 18%;
    border-top-width: 10px;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pair {
    gap: 12px;
  }
  .section {
    padding: 72px 0;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
