* { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  margin: 0 auto;
  max-width: 1080px;
  padding: 64px 32px 96px;
  line-height: 1.6;
  overflow-x: hidden;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Brand mark: the favicon, echoed on-page. Accent role (1) of 3. */
.wordmark::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--accent);
}

/* ---- Asymmetric hero: copy left, example verdict card right ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  position: relative;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* --ink-muted, not --ink-faint -- at 12px, --ink-faint on --bg falls
     under WCAG AA (~2.4:1). */
  color: var(--ink-muted);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  /* Marker-highlight under the key phrase. Accent role (2) of 3. */
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 34%;
  background-position: 0 82%;
  padding: 0 0.08em;
  /* If the phrase wraps, paint one band per line instead of one
     badly-positioned band across the fragmented inline box. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sub {
  color: var(--ink-muted);
  font-size: 17px;
  margin-top: 18px;
  max-width: 44ch;
}

.row { display: flex; gap: 10px; margin-top: 32px; }
input[type="text"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease;
}
input[type="text"]::placeholder { color: var(--ink-faint); }
input[type="text"]:focus { border-color: var(--ink); }

button {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  cursor: pointer;
}
button:disabled { opacity: 0.55; cursor: default; }
.check {
  background: var(--surface-dark);
  color: var(--on-dark);
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.check:hover:not(:disabled) { transform: translateY(-1px); }
.check .arrow { display: inline-block; transition: transform 0.15s ease; }
.check:hover:not(:disabled) .arrow { transform: translateX(3px); }

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  /* --ink-muted -- this line carries the price, it must stay AA-readable. */
  color: var(--ink-muted);
  margin-top: 16px;
}

/* The other questions the audit answers -- quiet static chips, not a
   rotating headline (a morphing H1 read as noise). */
.questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.questions span {
  font-size: 13.5px;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}

/* ---- The example verdict card ---------------------------------------- */
.card-wrap { position: relative; }
.card-wrap::before {
  /* One very subtle ambient glow -- an accent-tinted blur, not a fill. */
  content: "";
  position: absolute;
  inset: -40px -30px;
  background: radial-gradient(ellipse at 60% 35%, var(--accent-glow), transparent 65%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}
.verdict-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 50px -24px rgba(21, 20, 15, 0.25);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.verdict-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.verdict-score {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  /* A failing score should LOOK like a failing score. */
  color: var(--danger);
}
.verdict-score .of {
  font-size: 18px;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.verdict-meter {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}
.verdict-meter i {
  display: block;
  height: 100%;
  width: 42%; /* matches the example score */
  background: var(--danger);
  border-radius: 2px;
}
.verdict-summary {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 12px;
}
.verdict-issue {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 18px;
}
.verdict-issue .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--radius-xs);
  padding: 3px 7px;
  margin-bottom: 10px;
}
.verdict-issue h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.verdict-issue p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
}
.verdict-foot {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 16px;
}

/* ---- Entrance ---------------------------------------------------------- */
.fade-up { animation: fadeUp 0.7s ease both; }
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.16s; }
.fade-up.d3 { animation-delay: 0.24s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .verdict-card { animation: none; }
  .fade-up { animation: none; }
  .check, .check .arrow { transition: none; }
}

/* ---- Failure state -- ONE honest generic block, shown wherever the
   control that failed lives (hero errorBox vs. the checkout errorBox
   inside #result) so it's never scrolled out of view by the auto-scroll
   to #result on a successful check. ------------------------------------ */
.error-box {
  display: none;
  margin-top: 24px;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 15px;
}

/* ---- Live result (below the hero once a real check runs) -------------- */
#result { display: none; margin-top: 72px; max-width: 680px; }
/* "Audit for example.com" atop every result (deep-link or typed-in-URL
   alike) -- makes the report read as "this is about my site", not as one
   more generic marketing page. */
.audited-for {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.audited-for:empty { display: none; }
.score {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.summary {
  color: var(--ink-muted);
  font-size: 17px;
  margin-top: 12px;
  max-width: 52ch;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 28px;
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card p { font-size: 15px; color: var(--ink-muted); margin-top: 6px; }
.card .fix { color: var(--ink); }
.card .fix strong { font-weight: 600; }
.meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 16px;
}
/* The ONE lime-filled element on the page. */
.buy {
  width: 100%;
  margin-top: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 16px 22px;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  body { padding: 40px 20px 72px; }
  .wordmark { margin-bottom: 40px; }
  .hero { grid-template-columns: 1fr; gap: 44px; }
  .card-wrap { max-width: 460px; }
}
