/* Brand75 tokens, from brand75-site/app/globals.css */
:root {
  --white: #ffffff;
  --cream: #f7f5f0;
  --navy: #374168;
  --navy-deep: #1f2644;
  --ink: #0f1620;
  --muted: #5f7386;
  --border: rgba(15, 22, 32, 0.09);
  --border-card: rgba(22, 49, 78, 0.12);

  --green: #5bb45e; /* brand accent: rings, bars, on-navy text */
  --green-btn: #3d8441; /* AA with white text */
  --green-btn-hover: #367a3a;
  --green-text: #2f7a33; /* AA on white */
  --green-tint: #eaf5ea;

  --red: #d64545;
  --red-text: #b5322b;
  --red-tint: #fbeceb;
  --amber: #e5a02e;
  --amber-text: #9a5f00;
  --amber-tint: #fdf3e1;
  --blue: #4a7fd6;
  --blue-text: #2f5fae;
  --blue-tint: #eaf1fb;

  --radius: 16px;
  --shadow:
    0 1px 2px rgba(15, 22, 32, 0.04), 0 12px 32px rgba(31, 38, 68, 0.08);
  --font-body:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

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

.wrap {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font: 700 15px/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.btn-green {
  color: var(--white);
  background: var(--green-btn);
}

.btn-green:hover {
  background: var(--green-btn-hover);
}

.btn-green:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn-outline {
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--navy);
}

.btn-ghost-dark {
  color: var(--navy);
  background: var(--white);
  border-color: var(--border-card);
}

.btn-ghost-dark:hover {
  border-color: var(--navy);
}

.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.btn-ghost-light:hover {
  border-color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand img {
  width: auto;
  height: 30px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      900px 420px at 85% 10%,
      rgba(91, 180, 94, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 0% 100%,
      rgba(55, 65, 104, 0.9),
      transparent
    ),
    var(--navy-deep);
}

/* Faint ledger grid, the "report paper" texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 96px;
}

.eyebrow {
  margin-bottom: 14px;
  font: 600 14px/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow-dark {
  color: var(--green-text);
}

.hero h1 {
  font: 700 clamp(40px, 5.4vw, 64px) / 1.04 var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lede {
  max-width: 34em;
  margin-top: 20px;
  font-size: 18px;
  color: #c9d0e3;
}

.audit-form {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-top: 32px;
  padding: 8px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.audit-form input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  font: 500 17px var(--font-body);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.audit-form input::placeholder {
  color: #8a96a8;
}

.audit-form input:focus {
  outline: none;
}

.audit-form:focus-within {
  box-shadow:
    0 0 0 3px var(--green),
    0 18px 48px rgba(0, 0, 0, 0.28);
}

.form-hint {
  min-height: 24px;
  margin-top: 10px;
  font-size: 14px;
  color: #b0bad0;
}

.form-hint.is-error {
  color: #ffb4ae;
}

.checks {
  margin-top: 22px;
}

.checks-label {
  margin: 14px 0 8px;
  font: 600 12px/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa6c2;
}

.checks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks-row li {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #dfe4f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.checks-row li::before {
  content: '✓';
  margin-right: 6px;
  color: var(--green);
}

/* Sample report card in the hero */
.hero-sample {
  display: flex;
  justify-content: center;
}

.sample-card {
  width: min(100%, 360px);
  padding: 24px;
  color: var(--navy);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sample-label {
  font: 600 12px/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample-score {
  position: relative;
  width: 132px;
  margin: 18px auto 20px;
}

.sample-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 44px/1 var(--font-display);
  color: var(--navy-deep);
}

.sample-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.sample-split span {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  background: #f4f5f9;
  border-radius: 10px;
}

.sample-split b {
  font: 700 18px/1 var(--font-display);
  color: var(--navy-deep);
}

.sample-bars {
  display: grid;
  gap: 12px;
}

.sbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 8px;
  font-size: 13px;
  font-weight: 600;
}

.sbar b {
  font: 600 14px/1.2 var(--font-display);
}

.sbar i {
  grid-column: 1 / -1;
  height: 6px;
  background: linear-gradient(90deg, var(--bar) var(--w), #edf0f5 var(--w))
    no-repeat;
  border-radius: 3px;
}

.sample-issue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--red-tint);
  border-radius: 10px;
}

/* ---------- Shared pieces ---------- */
.red {
  --bar: var(--red);
  --ring: var(--red);
}

.amber {
  --bar: var(--amber);
  --ring: var(--amber);
}

.green {
  --bar: var(--green);
  --ring: var(--green);
}

.blue {
  --bar: var(--blue);
  --ring: var(--blue);
}

.ring {
  display: block;
  width: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-track {
  stroke: #edf0f5;
}

.ring-fill {
  stroke: var(--ring, var(--green));
  stroke-linecap: round;
  /* circumference of r=52 is 326.73 */
  stroke-dasharray: 326.73;
  stroke-dashoffset: calc(326.73 * (1 - var(--pct, 0)));
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font: 600 13px/1.4 var(--font-body);
  border-radius: 999px;
}

.pill-red {
  color: var(--red-text);
  background: var(--red-tint);
}

.pill-amber {
  color: var(--amber-text);
  background: var(--amber-tint);
}

.pill-green {
  color: var(--green-text);
  background: var(--green-tint);
}

.sev {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  border-radius: 50%;
}

.sev.big {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.sev-high {
  background: var(--red);
}

.sev-medium {
  background: var(--amber);
}

.sev-low {
  background: var(--blue);
}

.panel {
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Loading ---------- */
.loading,
.error-section {
  padding: 56px 0;
  background: var(--cream);
}

.loading-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px;
}

.loading-panel h2 {
  font: 600 28px/1.2 var(--font-display);
  color: var(--navy-deep);
  overflow-wrap: anywhere;
}

.progress {
  height: 6px;
  margin: 24px 0;
  overflow: hidden;
  background: #edf0f5;
  border-radius: 3px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.loading-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loading-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--muted);
}

.loading-steps li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d7dce5;
  border-radius: 50%;
}

.loading-steps li.is-active {
  color: var(--navy);
}

.loading-steps li.is-active::before {
  border-color: var(--green) transparent var(--green) var(--green);
  animation: spin 0.8s linear infinite;
}

.loading-steps li.is-done {
  color: var(--navy);
}

.loading-steps li.is-done::before {
  content: '✓';
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Error ---------- */
.error-panel {
  display: flex;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
}

.error-panel h2 {
  font: 600 24px/1.25 var(--font-display);
  color: var(--navy-deep);
}

.error-panel p {
  margin: 8px 0 20px;
  color: var(--muted);
}

/* ---------- Report ---------- */
.report {
  padding: 56px 0 72px;
  background: var(--cream);
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.report-head h2 {
  font: 700 clamp(28px, 4vw, 40px) / 1.1 var(--font-display);
  color: var(--navy-deep);
  overflow-wrap: anywhere;
}

.report-head .muted {
  margin-top: 4px;
  font-size: 14px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
}

.score-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.score-ring {
  position: relative;
  width: 200px;
}

.score-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  align-items: baseline;
  font: 700 68px/1 var(--font-display);
  color: var(--navy-deep);
}

.score-num small {
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
}

.score-main .pill {
  margin-top: 18px;
  padding: 6px 16px;
  font-size: 14px;
}

.summary {
  margin-top: 16px;
  font-size: 15px;
  color: var(--navy);
}

.severity-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.severity-counts li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.severity-counts .sev {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.score-cats {
  padding: 32px 36px;
}

.panel-label {
  margin-bottom: 20px;
  font: 600 13px/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two-part score under the ring */
.group-list {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 20px 0 0;
  padding: 16px 0 0;
  list-style: none;
  text-align: left;
  border-top: 1px solid var(--border);
}

.group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
}

.group-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-deep);
}

.group-points {
  font: 600 20px/1.2 var(--font-display);
  color: var(--navy-deep);
}

.group-points small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* Categories, grouped by half */
.cat-groups {
  display: grid;
  gap: 28px;
}

.cat-group-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  font: 600 16px/1.2 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep);
  border-bottom: 2px solid var(--navy-deep);
}

.cat-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cat-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.method {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.method-measured {
  color: var(--navy);
  background: #eef0f6;
}

.method-ai {
  color: var(--green-text);
  background: var(--green-tint);
}

/* AI search readiness panel */
.ai-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  margin-top: 20px;
}

.crawler-groups {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-right: 1px solid var(--border);
}

.crawler-group h4 {
  font: 600 16px/1.2 var(--font-display);
  color: var(--navy-deep);
}

.crawler-note {
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.crawler-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crawler-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-card);
  border-radius: 10px;
}

.crawler-list .dot {
  grid-row: span 2;
}

.crawler-list .is-allowed .dot {
  background: var(--green-btn);
}

.crawler-list .is-blocked {
  background: var(--red-tint);
  border-color: rgba(214, 69, 69, 0.3);
}

.crawler-list .is-blocked .dot {
  background: var(--red);
}

.crawler-training .is-blocked {
  background: #f7f7f5;
  border-color: var(--border-card);
}

.crawler-training .is-blocked .dot {
  background: var(--muted);
}

.crawler-product {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
}

.crawler-list code,
.file-head code {
  font:
    500 12px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--muted);
}

.ai-side {
  padding: 28px;
}

.ai-side .panel-label {
  margin-bottom: 12px;
}

.file-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.file-head code {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
}

.file-pill {
  padding: 2px 10px;
  font-size: 12px;
}

.file-found .file-pill {
  color: var(--green-text);
  background: var(--green-tint);
}

.file-missing .file-pill {
  color: var(--amber-text);
  background: var(--amber-tint);
}

.file-unknown .file-pill {
  color: var(--muted);
  background: #eef0f6;
}

.file-note {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.schema-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schema-chip {
  padding: 4px 10px;
  font:
    500 12px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--navy);
  background: #eef0f6;
  border-radius: 6px;
}

.schema-empty {
  font-size: 14px;
  color: var(--red-text);
}

.cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
}

.cat-name {
  font-weight: 700;
  color: var(--navy-deep);
}

.cat-points {
  font: 600 18px/1.3 var(--font-display);
  color: var(--navy-deep);
}

.cat-points small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.cat-bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  background: #edf0f5;
  border-radius: 4px;
}

.cat-bar span {
  display: block;
  height: 100%;
  width: var(--w, 0);
  background: var(--bar);
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-note {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted);
}

.section-title {
  margin-top: 56px;
  font: 700 28px/1.2 var(--font-display);
  color: var(--navy-deep);
}

.section-sub {
  margin-top: 6px;
  color: var(--muted);
}

.issue-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.issue {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--bar);
  border-radius: 12px;
}

.issue-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.issue-head:hover {
  background: #fbfbf9;
}

.issue-title {
  font-weight: 700;
  color: var(--navy-deep);
}

.issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.tag {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 999px;
}

.tag-cat {
  color: var(--navy);
  background: #eef0f6;
}

.tag-first {
  color: var(--white);
  background: var(--navy-deep);
}

.tag-level.high {
  color: var(--red-text);
  background: var(--red-tint);
}

.tag-level.medium {
  color: var(--amber-text);
  background: var(--amber-tint);
}

.tag-level.low {
  color: var(--blue-text);
  background: var(--blue-tint);
}

.chev {
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.issue-head[aria-expanded='true'] .chev {
  transform: rotate(225deg);
}

.issue-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.pf {
  padding: 18px 20px 20px;
  background: var(--white);
}

.pf-fix {
  background: #fbfdfb;
}

.pf h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font: 600 13px/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 800;
  color: var(--white);
  border-radius: 50%;
}

.dot-red {
  background: var(--red);
}

.dot-green {
  background: var(--green-btn);
}

.pf p {
  font-size: 15px;
}

.mid-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--green-tint);
  border: 1px solid rgba(61, 132, 65, 0.25);
  border-radius: 12px;
}

.mid-cta strong {
  display: block;
  font: 600 20px/1.25 var(--font-display);
  color: var(--navy-deep);
}

.mid-cta span {
  color: var(--navy);
}

.passed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.passed-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--white);
  border: 1px solid var(--border-card);
  border-radius: 12px;
}

.passed-list li .dot {
  margin-top: 3px;
}

.passed-list small {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Closing CTA ---------- */
.cta-band {
  padding: 64px 0;
  color: var(--white);
  background:
    radial-gradient(
      600px 300px at 100% 0%,
      rgba(91, 180, 94, 0.2),
      transparent 70%
    ),
    var(--navy-deep);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

/* ---------- Inline call form ---------- */
.lead-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: #dfe4f0;
}

.lead-points li {
  display: flex;
  gap: 10px;
}

.lead-points li::before {
  content: '✓';
  font-weight: 800;
  color: var(--green);
}

/* The band's light paragraph color must not leak into the white card. */
.cta-band .lead-card p {
  max-width: none;
  margin-top: 0;
  font-size: 15px;
  color: var(--navy);
}

.cta-band .lead-card .lead-fine,
.cta-band .lead-card .lead-status {
  font-size: 13px;
  color: var(--muted);
}

.cta-band .lead-card .lead-status.is-error {
  color: var(--red-text);
}

.lead-done a {
  font-weight: 700;
  color: var(--green-text);
}

.lead-card {
  padding: 28px;
  color: var(--navy);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.lead-form h3,
.lead-done h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font: 700 24px/1.2 var(--font-display);
  color: var(--navy-deep);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
}

.field .optional {
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: 500 16px var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #d5dae4;
  border-radius: 10px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green-btn);
  outline: 3px solid rgba(91, 180, 94, 0.3);
  outline-offset: 0;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form .btn {
  width: 100%;
  margin-top: 6px;
}

.lead-status {
  min-height: 22px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.lead-status.is-error {
  color: var(--red-text);
}

.lead-fine {
  font-size: 13px;
  color: var(--muted);
}

.lead-done p {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.lead-pick {
  margin-top: 18px;
  font-weight: 700;
}

.booking {
  margin-top: 10px;
}

.booking-frame {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
  overflow: hidden;
}

.lead-fallback .btn {
  width: 100%;
}

.lead-again {
  width: 100%;
  margin-top: 12px;
}

.cta-band h2 {
  font: 700 clamp(30px, 4vw, 44px) / 1.08 var(--font-display);
  text-transform: uppercase;
}

.cta-band p {
  max-width: 36em;
  margin-top: 12px;
  font-size: 17px;
  color: #c9d0e3;
}

.print-only {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0;
  font-size: 14px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer a {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Entrance motion ---------- */
.reveal {
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 64px;
  }

  .hero-sample {
    display: none;
  }

  .score-panel {
    grid-template-columns: 1fr;
  }

  .score-main {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .crawler-groups {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .ai-side {
    padding: 24px 20px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .brand img {
    height: 24px;
  }

  .audit-form {
    flex-direction: column;
    border-radius: 20px;
  }

  .audit-form input {
    padding: 14px;
  }

  .audit-form .btn {
    width: 100%;
  }

  .score-cats,
  .loading-panel,
  .error-panel {
    padding: 24px 20px;
  }

  .error-panel {
    flex-direction: column;
  }

  .issue-head {
    grid-template-columns: auto 1fr auto;
    padding: 16px;
  }

  .issue-tags {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-content: flex-start;
  }

  .issue-body {
    grid-template-columns: 1fr;
  }

  .cta-band .btn {
    width: 100%;
  }
}

/* ---------- Print / PDF ---------- */
@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: var(--white);
  }

  .site-header {
    position: static;
    border: 0;
  }

  .site-header .btn,
  .hero,
  .loading,
  .error-section,
  .report-actions,
  .btn,
  .chev,
  .mid-cta,
  #lead {
    display: none !important;
  }

  /* One column at letter width, and no blank page before "Site files". */
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .ai-panel {
    break-before: auto;
  }

  .crawler-groups {
    border-right: 0;
  }

  .print-url {
    margin-top: 32px;
    padding-top: 16px;
    font-weight: 700;
    border-top: 2px solid var(--navy);
  }

  .report,
  .cta-band {
    padding: 0;
    color: var(--navy);
    background: none;
  }

  .issue-body[hidden] {
    display: grid !important;
  }

  .section-title,
  .section-sub {
    break-after: avoid;
  }

  .cta-band {
    break-inside: avoid;
  }

  /* Keep the score panel side by side so it fits on page one. */
  .score-panel {
    grid-template-columns: 210px 1fr;
    box-shadow: none;
  }

  .score-main {
    padding: 20px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .score-ring {
    width: 150px;
  }

  .score-num {
    font-size: 48px;
  }

  .score-cats {
    padding: 20px 24px;
  }

  .cat-list {
    gap: 12px;
  }

  .issue,
  .passed-list li,
  .crawler-group,
  .ai-side,
  .cat-group {
    break-inside: avoid;
    box-shadow: none;
  }

  .ai-panel {
    break-before: page;
  }

  .ai-grid {
    box-shadow: none;
  }

  .cta-band {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--navy);
  }

  .cta-band p {
    color: var(--navy);
  }

  .print-only {
    display: block;
    font-weight: 700;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
