/* comply-web.com — shared styles. Accessibility-first: WCAG 2.2 AA contrast, visible focus, semantic layout. */
:root {
  --ink: #1a2332;
  --ink-soft: #40506b;
  --paper: #ffffff;
  --paper-alt: #f4f6f9;
  --brand: #0b5fff;
  --brand-dark: #0043c8;
  --accent: #0d8a4f;
  --line: #d4dae3;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -4rem;
  background: var(--brand); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 100;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; color: #fff; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.4rem; border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.logo { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.logo span { color: var(--brand); }
nav.site ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.site a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--brand-dark); }

main { max-width: 68rem; margin: 0 auto; padding: 2.5rem 1.4rem 4rem; }
.hero { max-width: 46rem; }
h1 { font-size: 2.3rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 0.8rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.scan-box {
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; margin: 2rem 0;
}
.scan-box h2 { margin-top: 0; }
form.lead { display: grid; gap: 0.9rem; max-width: 30rem; }
form.lead label { font-weight: 600; }
form.lead input {
  font: inherit; padding: 0.6rem 0.7rem; border: 2px solid var(--line);
  border-radius: 6px; width: 100%;
}
form.lead input:focus { border-color: var(--brand); outline: 3px solid var(--brand); outline-offset: 2px; }
button.cta, a.cta {
  display: inline-block; font: inherit; font-weight: 700;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  padding: 0.75rem 1.6rem; border-radius: 6px; text-decoration: none;
}
button.cta:hover, a.cta:hover { background: var(--brand-dark); color: #fff; }
a.cta.secondary { background: transparent; color: var(--brand-dark); border: 2px solid var(--brand-dark); }
a.cta.secondary:hover { background: var(--paper-alt); }
.form-note { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.form-status { font-weight: 600; color: var(--accent); margin: 0.4rem 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; background: var(--paper);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.card h3 { margin: 0; font-size: 1.2rem; }
.card .price { font-size: 1.6rem; font-weight: 700; }
.card .price small { font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); }
.card p { margin: 0; color: var(--ink-soft); }
.card .cta { margin-top: auto; text-align: center; }

ul.checks { padding-left: 1.2rem; }
ul.checks li { margin-bottom: 0.5rem; }
.callout {
  border-left: 4px solid var(--brand); background: var(--paper-alt);
  padding: 1rem 1.2rem; margin: 1.6rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; margin-bottom: 1rem; padding-left: 2.6rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
footer.site {
  border-top: 1px solid var(--line); padding: 1.4rem;
  color: var(--ink-soft); font-size: 0.95rem; text-align: center;
}
@media (max-width: 40rem) {
  html { font-size: 17px; }
  h1 { font-size: 1.8rem; }
  nav.site ul { gap: 0.8rem; }
}

@media (max-width: 40rem) {
  header.site { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .logo { white-space: nowrap; flex-shrink: 0; }
  nav.site ul { gap: .5rem 1rem; }
}

.site-footer-legal { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 40rem) { nav.site a[aria-current="page"] { text-decoration: underline; } }
/* WCAG 2.5.5 target size: header links need at least 24x24 CSS px. */
.skip-link, .logo, nav.site a { min-height: 24px; min-width: 24px; display: inline-flex; align-items: center; }

main:focus { outline: none; }
