/* audit.fpfuel.com, on the fpfuel Ignition tokens */

:root {
  --ok: #2E7A4E;
  --caution: #A66A12;
  --bad: #B23A25;
  --gutter: clamp(20px, 6vw, 96px);
}
[data-theme="dark"] { --ok: #74C795; --caution: #E3AC55; --bad: #F08C76; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ok: #74C795; --caution: #E3AC55; --bad: #F08C76; }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
em { font-style: italic; font-weight: 700; }

.kicker { display: block; font-size: 11px; color: var(--terra); }
.fineprint { margin-top: 22px; max-width: 78ch; font-size: 13px; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: var(--espresso);
  color: var(--cream);
  border-bottom: 1px solid rgba(246, 241, 231, .12);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 22px; height: auto; }
.brand-name { font-size: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7em 1.4em;
  border: 0;
  border-radius: var(--r-sm);
  font: 600 15px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-lg { min-height: 54px; padding: .9em 2em; font-size: 16px; }
.btn-primary { background: var(--blaze); color: var(--cream); }
.btn-primary:hover { background: var(--ember); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: var(--espresso-2); }
.btn-quiet { background: none; color: var(--fg); border: 1px solid var(--line); font-size: 14px; }
.btn-quiet:hover { border-color: var(--blaze); color: var(--blaze); }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--blaze); outline-offset: 2px; }
.nav-cta { font-size: 13px; padding: .5em 1.1em; }

/* ---------- sheet background ---------- */
.hero, .wait, .report-head, .band {
  background:
    repeating-linear-gradient(0deg,  var(--grid) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 56px),
    var(--bg);
}

/* ---------- ask ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(56px, 8vw, 112px);
  min-height: calc(100svh - 77px);
}
.hero-copy { max-width: 600px; }
.hero-title { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.04; letter-spacing: -0.03em; }
.hero-body { margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 50ch; }
.hero-micro { margin-top: 16px; font-size: 13px; color: var(--muted); }

.ask { margin-top: 32px; }
.field + .field { margin-top: 18px; }
.field label, .retry label { display: block; font-weight: 600; font-size: 15px; }
.optional { margin-left: 6px; font-weight: 500; font-size: 12px; color: var(--muted); }
.field input, .retry input {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 0 16px;
  font: 500 17px/1 var(--font-body);
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
}
.field input::placeholder, .retry input::placeholder { color: var(--muted); opacity: .7; }
.field-hint { margin-top: 7px; font-size: 13px; color: var(--muted); }
.ask .btn { margin-top: 24px; width: 100%; }
.ask-error {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--bad);
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  background: var(--bg);
}

/* ---------- sample card ---------- */
.sample-card {
  max-width: 440px;
  margin-left: auto;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  transform: rotate(1.2deg);
}
.sample-top { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.sample-rank { font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; }
.sample-phrase { margin-top: 4px; font-size: 14px; color: var(--muted); }
.sample-rows { list-style: none; padding: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.sample-rows li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }

/* ---------- status marks ---------- */
.mark {
  flex: none;
  position: relative;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.mark::before, .mark::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.mark-pass { color: var(--ok); }
.mark-pass::before { left: 5px; top: 10.5px; width: 5.5px; height: 1.8px; transform: rotate(45deg); }
.mark-pass::after { left: 8px; top: 9.3px; width: 9px; height: 1.8px; transform: rotate(-48deg); }
.mark-warn { color: var(--caution); }
.mark-warn::before { left: 8.6px; top: 4.5px; width: 1.8px; height: 7px; }
.mark-warn::after { left: 8.6px; top: 13.2px; width: 1.8px; height: 1.8px; }
.mark-fail { color: var(--bad); }
.mark-fail::before, .mark-fail::after { left: 4.5px; top: 8.6px; width: 10px; height: 1.8px; }
.mark-fail::before { transform: rotate(45deg); }
.mark-fail::after { transform: rotate(-45deg); }
.mark-none { color: var(--muted); border-style: dashed; }

/* ---------- ring ---------- */
.ring { width: 172px; height: 172px; display: block; }
.ring-sm { width: 96px; height: 96px; flex: none; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-value {
  fill: none; stroke: var(--blaze); stroke-width: 9; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 60px 60px;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1);
}
.ring-num { fill: var(--fg); font-size: 38px; letter-spacing: -0.03em; }
.ring-label { margin-top: 14px; font-size: 11px; color: var(--muted); text-align: center; }

/* ---------- wait ---------- */
.wait { display: grid; place-items: center; padding: clamp(48px, 8vw, 120px) var(--gutter); min-height: calc(100svh - 77px); }
.wait-card {
  width: min(560px, 100%);
  padding: clamp(26px, 4vw, 44px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.wait-card h2 { margin-top: 12px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.steps { list-style: none; padding: 0; margin-top: 28px; }
.steps li {
  position: relative;
  padding: 13px 0 13px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15.5px;
}
.steps li::before {
  content: "";
  position: absolute; left: 4px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.steps li.is-done { color: var(--fg); }
.steps li.is-done::before { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3.5px var(--bg); }
.steps li.is-now { color: var(--fg); font-weight: 600; }
.steps li.is-now::before { border-color: var(--blaze); border-top-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait-note { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------- report head ---------- */
.report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 6vw, 88px) var(--gutter) clamp(40px, 5vw, 72px);
}
.report-head h1 { margin-top: 12px; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.report-verdict { margin-top: 20px; max-width: 34ch; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.report-summary { margin-top: 14px; max-width: 66ch; color: var(--muted); }
.report-head .btn-quiet { margin-top: 24px; }
.report-score { display: grid; justify-items: center; }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 8vw, 104px) var(--gutter); border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-2); }
.band-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 auto clamp(30px, 4.5vw, 52px);
  max-width: 24ch;
}
.band > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.band > .band-title { max-width: 24ch; }

/* ---------- rank ---------- */
.rank { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rank-hero {
  position: sticky; top: 24px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.rank-big { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--blaze); }
.rank-phrase { margin-top: 14px; font-size: 17px; line-height: 1.4; }
.rank-phrase b { font-weight: 600; }
.rank-note { margin-top: 10px; font-size: 13px; color: rgba(246, 241, 231, .62); }
.results { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.results li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
.results .pos { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.results .dom { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.results .ttl { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.results .tag { margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.results li.is-mine { background: rgba(244, 81, 11, .09); border-radius: var(--r-sm); border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--blaze); }
.results li.is-mine .pos, .results li.is-mine .tag { color: var(--blaze); }

.retry { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.retry-row { display: flex; gap: 10px; margin-top: 8px; max-width: 560px; }
.retry-row input { margin-top: 0; min-height: 48px; font-size: 16px; }
.retry-row .btn { flex: none; min-height: 48px; }

/* ---------- compare ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); box-shadow: var(--shadow-1); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 12.5px; font-weight: 600; vertical-align: bottom; overflow-wrap: anywhere; }
.compare thead .col-pos { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--muted); min-width: 190px; }
.compare .is-you { background: rgba(244, 81, 11, .07); }
.compare thead .is-you .col-pos { color: var(--blaze); }
.compare td .cell { display: inline-flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; }
.compare td .mark { width: 20px; height: 20px; transform: scale(.92); }

/* ---------- fixes ---------- */
.fixes { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: fix; }
.fix {
  counter-increment: fix;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 20px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.fix::before {
  content: counter(fix, decimal-leading-zero);
  grid-row: span 4;
  font: 600 1.9rem/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--blaze);
}
.fix-impact { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.fix h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
.fix p { color: var(--muted); font-size: 15px; max-width: 72ch; }
.fix p b { color: var(--fg); font-weight: 600; }

.paste { margin-top: 28px; padding: clamp(20px, 2.6vw, 30px); border: 1px dashed var(--terra); border-radius: var(--r-md); background: var(--bg); }
.paste-item { margin-top: 18px; }
.paste-item + .paste-item { padding-top: 18px; border-top: 1px solid var(--line); }
.paste-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.paste-text { margin-top: 6px; font-size: 1.08rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; user-select: all; }
.paste-was { margin-top: 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- checklist ---------- */
.strengths { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.strengths li { display: flex; gap: 12px; padding: 18px; font-size: 14.5px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.strengths .mark { margin-top: 1px; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.group { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 22px 8px; }
.group h3 { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); margin-bottom: 8px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.check .mark { margin-top: 1px; }
.check-label { font-weight: 600; font-size: 15px; }
.check-value { font-size: 13.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 16ch; }
.check-detail { grid-column: 2 / -1; font-size: 13.5px; color: var(--muted); }

/* ---------- cta band (the one blaze flood) ---------- */
.cta-band { background: var(--blaze); color: var(--espresso); text-align: center; padding: clamp(60px, 9vw, 116px) 24px; }
.cta-band h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 28px; }

/* ---------- footer ---------- */
.footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 36px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; }
.footer-nav a { text-decoration: none; opacity: .8; padding: 6px 0; }
.footer-nav a:hover { opacity: 1; }
.footer-legal { font-size: 13px; color: rgba(246, 241, 231, .65); }

/* ---------- dark mode surfaces ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rank-hero { background: var(--espresso-2); border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .btn-dark { background: var(--cream); color: var(--espresso); }
  :root:not([data-theme="light"]) .cta-band .btn-dark { background: var(--espresso); color: var(--cream); }
}
[data-theme="dark"] .rank-hero { background: var(--espresso-2); border: 1px solid var(--line); }

/* ---------- narrow ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .sample { display: none; }
  .report-head { grid-template-columns: 1fr; }
  .report-score { justify-items: start; grid-auto-flow: column; align-items: center; gap: 18px; justify-content: start; }
  .ring { width: 120px; height: 120px; }
  .ring-label { margin-top: 0; text-align: left; max-width: 12ch; }
  .rank { grid-template-columns: 1fr; }
  .rank-hero { position: static; }
  .strengths, .groups { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fix { grid-template-columns: 1fr; }
  .fix::before { grid-row: auto; font-size: 1.5rem; }
  .retry-row { flex-direction: column; }
  .check { grid-template-columns: 22px minmax(0, 1fr); }
  .check-value { grid-column: 2; text-align: left; max-width: none; }
  .band-title { text-align: left; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-value { transition: none; }
  .steps li.is-now::before { animation: none; border-top-color: var(--blaze); }
}

@media print {
  .nav-cta, .retry, #r-copy, .cta-band, .footer-nav { display: none !important; }
  .band, .report-head { background: #fff; padding: 28px 0; }
  .rank-hero { position: static; box-shadow: none; }
  .fix, .group, .table-wrap, .strengths li { box-shadow: none; break-inside: avoid; }
}
