/* =========================================================
   Stallscore, visual system
   A per-listing audit for Etsy sellers. Independent.

   Design mood: editorial maker-magazine, not SaaS landing.
   Palette derived from kraft paper, charcoal ink,
   brick-red stamp, sage linen, mustard rule.
   Typography: Fraunces (display) + Inter (UI/body).
   ========================================================= */

/* ---------- Tokens ---------- */

:root {
  /* Paper & ink */
  --paper:          #f4ead8;   /* kraft-linen background */
  --paper-deep:     #ead9bc;   /* recessed paper */
  --card:           #fbf5e8;   /* card stock */
  --card-edge:      #e1cfb0;   /* paper edge */
  --ink:            #1f1b17;   /* deep charcoal ink */
  --ink-soft:       #3a332d;   /* secondary ink */
  --ink-muted:      #6b5f52;   /* metadata, captions */
  --ink-fade:       #8a7e6f;

  /* Maker accents */
  --brick:          #a8472e;   /* stamp red, primary action */
  --brick-deep:     #8a3822;   /* pressed / hover */
  --brick-wash:     #efd9cf;   /* tint for pills */
  --sage:           #6a8370;   /* safe / success */
  --sage-wash:      #dde4d9;
  --mustard:        #c28a2a;   /* warn / highlight */
  --mustard-wash:   #efe0bb;
  --forest:         #36503e;   /* grade-A dark */
  --clay:           #b26a3a;   /* grade-C */
  --rust:           #7a2e1c;   /* critical */

  /* Functional status */
  --ok:             var(--sage);
  --warn:           var(--mustard);
  --crit:           var(--rust);

  /* Structure */
  --rule:           #d8c6a6;   /* hairline, 1px */
  --rule-strong:    #b8a179;
  --shadow-low:     0 1px 0 #e6d6b5, 0 1px 2px rgba(31, 27, 23, 0.04);
  --shadow-mid:     0 1px 0 #e6d6b5, 0 10px 28px -18px rgba(31, 27, 23, 0.28);

  /* Spacing, 8pt grid */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --t-caption: 12px;
  --t-small:   14px;
  --t-body:    16px;
  --t-lead:    18px;
  --t-h4:      20px;
  --t-h3:      26px;
  --t-h2:      34px;
  --t-h1:      48px;
  --t-display: 64px;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Subtle paper grain via layered low-opacity noise */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(168, 71, 46, 0.035), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(106, 131, 112, 0.035), transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--brick); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Typography helpers ---------- */

.serif    { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.mono     { font-family: var(--font-mono); font-feature-settings: "tnum", "zero"; }
.eyebrow  {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.lead     { font-size: var(--t-lead); color: var(--ink-soft); line-height: 1.55; }
.muted    { color: var(--ink-muted); }

/* ---------- Layout shell ---------- */

.wrap      { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-6); }
.wrap-tight { max-width: 760px; margin: 0 auto; padding: 0 var(--s-6); }

section { padding: var(--s-16) 0; }

/* ---------- Masthead (header) ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.1);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  max-width: 1120px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 6px;
}
.wordmark .stamp {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--brick);
  border-radius: 2px;
  transform: translateY(-1px) rotate(-6deg);
}
.wordmark em {
  font-style: italic;
  color: var(--brick);
  font-weight: 500;
}
.nav-links {
  display: flex; gap: var(--s-5);
  font-size: var(--t-small);
  color: var(--ink-muted);
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--brick); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  padding: var(--s-20) 0 var(--s-12);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-12);
  align-items: center;
}
.hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: var(--s-5);
}
.hero-copy .kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--brick);
  display: inline-block;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, var(--t-display));
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s-6);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brick);
}
.hero h1 .underline {
  background-image: linear-gradient(transparent 62%, var(--mustard-wash) 62%, var(--mustard-wash) 94%, transparent 94%);
  padding: 0 2px;
}
.hero-sub {
  font-size: var(--t-lead);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: var(--s-8);
  max-width: 48ch;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-md);
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 #000, 0 6px 16px -8px rgba(31, 27, 23, 0.4);
}
.btn-primary:hover { background: var(--brick); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  background: transparent;
}
.btn-ghost:hover { background: var(--card); text-decoration: none; }
.cta-fine {
  font-size: 13px;
  color: var(--ink-muted);
}
.cta-fine strong { color: var(--ink-soft); font-weight: 600; }

/* Hero visual, audit report mockup */
.hero-visual {
  position: relative;
  padding: var(--s-5);
}
.report-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-mid);
  position: relative;
  transform: rotate(-0.6deg);
}
.report-card::before {
  content: "";
  position: absolute;
  left: 20px; right: 20px; top: -6px;
  height: 10px;
  background:
    repeating-linear-gradient(90deg, var(--rule-strong) 0 10px, transparent 10px 18px);
  opacity: 0.4;
  border-radius: 2px;
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--s-4);
  border-bottom: 1px dashed var(--rule-strong);
  margin-bottom: var(--s-5);
}
.report-head .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.report-head .shop {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}
.report-score {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "lnum";
}
.report-score small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.report-finding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  align-items: start;
  border-bottom: 1px dotted var(--rule);
  font-size: var(--t-small);
}
.report-finding:last-child { border-bottom: 0; }
.sev-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-top: 6px;
  background: var(--mustard);
}
.sev-dot.crit { background: var(--crit); }
.sev-dot.ok   { background: var(--sage); }
.report-finding strong { color: var(--ink); font-weight: 600; }
.report-finding p { color: var(--ink-muted); font-size: 13px; margin-top: 2px; }
.stamp-badge {
  position: absolute;
  top: -14px; right: -8px;
  background: var(--brick);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 3px;
  transform: rotate(7deg);
  box-shadow: 0 2px 6px -2px rgba(31, 27, 23, 0.35);
}

/* ---------- Hairline strip (credibility bar) ---------- */

.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--s-5) 0;
  background: var(--paper-deep);
}
.strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.strip p { font-size: 13px; color: var(--ink-soft); }
.strip .eyebrow { color: var(--brick); }

/* ---------- Section heads ---------- */

.section-head {
  margin-bottom: var(--s-10);
  max-width: 720px;
}
.section-head .eyebrow { margin-bottom: var(--s-3); display: block; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, var(--t-h2));
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
}
.section-head h2 em { font-style: italic; color: var(--brick); }
.section-head p {
  color: var(--ink-soft);
  font-size: var(--t-lead);
  max-width: 56ch;
}

/* ---------- Signals (what we check) ---------- */

.signals-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
}
.signal {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  padding: var(--s-6);
  position: relative;
  grid-column: span 4;
}
.signal .sig-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-fade);
  letter-spacing: 0.12em;
  margin-bottom: var(--s-3);
  display: block;
}
.signal h3 {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 500;
  margin-bottom: var(--s-3);
  line-height: 1.25;
}
.signal p {
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.55;
}
.signal .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: var(--s-3);
}
.tag-new   { background: var(--brick); color: var(--paper); }
.tag-silent{ background: var(--mustard-wash); color: #5a3d10; }
.tag-mobile{ background: var(--sage-wash); color: var(--forest); }
.tag-std   { background: var(--paper-deep); color: var(--ink-soft); }

/* Feature rows, asymmetric, some wide some narrow */
.signal.wide   { grid-column: span 6; }
.signal.narrow { grid-column: span 3; }
.signal.half   { grid-column: span 6; }

.signal.callout {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.signal.callout h3 { color: var(--paper); }
.signal.callout p { color: #d9cdb6; }
.signal.callout .sig-num { color: #8a7e6f; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
  position: relative;
}
.step { position: relative; }
.step .num {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 400;
  color: var(--brick);
  line-height: 1;
  margin-bottom: var(--s-3);
  font-feature-settings: "lnum";
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.step p { color: var(--ink-soft); font-size: var(--t-small); }

/* ---------- Compare table ---------- */

.compare-block {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
}
.compare-table caption {
  text-align: left;
  padding: var(--s-5) var(--s-6) var(--s-3);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-table th,
.compare-table td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  border-top: 1px solid var(--rule);
  vertical-align: middle;
}
.compare-table th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-deep);
}
.compare-table tbody tr.us {
  background: var(--brick-wash);
}
.compare-table tbody tr.us td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.compare-table .yes { color: var(--forest); font-weight: 600; }
.compare-table .no  { color: var(--ink-muted); }
.compare-table .partial { color: var(--mustard); font-weight: 500; }
.compare-table .price { font-variant-numeric: tabular-nums; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.plan {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: relative;
}
.plan.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-6px);
}
.plan.featured .plan-name,
.plan.featured .plan-price,
.plan.featured .plan-feat { color: var(--paper); }
.plan.featured .plan-feat::before { background: var(--brick); }
.plan.featured .plan-meta { color: #d9cdb6; }
.plan.featured .ribbon {
  position: absolute;
  top: -10px; left: var(--s-6);
  background: var(--brick);
  color: var(--paper);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
}
.plan-name {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 500;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  font-feature-settings: "lnum";
}
.plan-price small {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 4px;
}
.plan.featured .plan-price small { color: #baa98c; }
.plan-meta { font-size: 13px; color: var(--ink-muted); }
.plan-feats { display: flex; flex-direction: column; gap: var(--s-2); }
.plan-feat {
  font-size: var(--t-small);
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.plan-feat::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 2px;
  background: var(--brick);
}
.plan .btn { margin-top: auto; }
.plan.featured .btn-primary { background: var(--brick); color: var(--paper); }
.plan.featured .btn-primary:hover { background: var(--brick-deep); }

/* ---------- FAQ / close ---------- */

.close-note {
  border-top: 1px solid var(--rule);
  padding: var(--s-10) 0;
  text-align: center;
}
.close-note h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
}
.close-note h2 em { font-style: italic; color: var(--brick); }

/* ---------- Footer ---------- */

.colophon {
  background: var(--ink);
  color: #cfc2a9;
  padding: var(--s-12) 0 var(--s-8);
  margin-top: var(--s-16);
}
.colophon-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-8);
}
.colophon h5 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7e6f;
  margin-bottom: var(--s-4);
}
.colophon .wordmark { color: var(--paper); }
.colophon .wordmark em { color: var(--brick); }
.colophon p { font-size: 13px; line-height: 1.6; color: #a89a82; max-width: 42ch; }
.colophon a { color: #e5d7b7; text-decoration: none; }
.colophon a:hover { color: var(--paper); text-decoration: underline; }
.colophon ul { display: flex; flex-direction: column; gap: var(--s-2); }
.colophon .fine {
  grid-column: 1 / -1;
  border-top: 1px solid #3a332d;
  padding-top: var(--s-5);
  margin-top: var(--s-5);
  font-size: 12px;
  color: #8a7e6f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.colophon .fine strong { color: #cfc2a9; font-weight: 600; }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-12) var(--s-6) var(--s-16);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.legal .updated {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-top: var(--s-10);
  margin-bottom: var(--s-3);
  letter-spacing: -0.005em;
}
.legal h2::before {
  content: attr(data-n);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--brick);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--s-2);
}
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: var(--t-body);
  line-height: 1.6;
}
.legal p + p { margin-top: var(--s-3); }
.legal ul { padding-left: 0; margin: var(--s-3) 0; }
.legal li {
  padding: 4px 0 4px 22px;
  position: relative;
}
.legal li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 1px;
  background: var(--brick);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0;
  font-size: var(--t-small);
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  overflow: hidden;
}
.legal th, .legal td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-top: 1px solid var(--rule);
}
.legal th {
  background: var(--paper-deep);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-top: 0;
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal-nav {
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
  margin-top: var(--s-10);
  font-size: 13px;
  color: var(--ink-muted);
  display: flex; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap;
}

/* ---------- App (dashboard) ---------- */

.app-shell { padding: var(--s-10) 0 var(--s-16); }

.app-loading {
  text-align: center;
  padding: var(--s-16) var(--s-4);
}
.app-loading .rule {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.app-loading .rule em { font-style: italic; color: var(--brick); }
.app-loading p { color: var(--ink-muted); font-size: 15px; }
.spinner-dots {
  display: inline-flex; gap: 6px;
  margin-top: var(--s-5);
}
.spinner-dots span {
  width: 8px; height: 8px;
  background: var(--brick);
  border-radius: 50%;
  animation: dot-pulse 1.2s infinite ease-in-out;
}
.spinner-dots span:nth-child(2) { animation-delay: 0.15s; }
.spinner-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.9); }
  40%           { opacity: 1;    transform: scale(1.05); }
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  margin-bottom: var(--s-10);
  box-shadow: var(--shadow-low);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-8);
  align-items: center;
}
.summary-card .score-block {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  border-right: 1px dashed var(--rule-strong);
  padding-right: var(--s-8);
}
.summary-card .score-num {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "lnum";
}
.summary-card .score-num small {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.summary-card .shop-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-2);
}
.summary-card h2 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--s-2);
}
.summary-card .stat-row {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}
.stat {
  display: flex; flex-direction: column;
  padding-right: var(--s-5);
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; padding-right: 0; }
.stat .n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  font-feature-settings: "lnum";
}
.stat .n.crit { color: var(--crit); }
.stat .n.warn { color: var(--mustard); }
.stat .n.ok   { color: var(--sage); }
.stat .l {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Grade badges */
.grade {
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  letter-spacing: 0;
  line-height: 1;
}
.grade-A, .grade-a { background: var(--forest); color: var(--paper); }
.grade-B, .grade-b { background: var(--sage); color: var(--ink); }
.grade-C, .grade-c { background: var(--mustard); color: var(--ink); }
.grade-D, .grade-d { background: var(--clay); color: var(--paper); }
.grade-F, .grade-f { background: var(--rust); color: var(--paper); }

.grade-lg {
  font-size: 32px;
  min-width: 56px;
  height: 56px;
  border-radius: var(--r-md);
}

/* Listings list head */
.listings-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.listings-head h3 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.listings-head .sort-note { font-size: 13px; color: var(--ink-muted); }

/* Listing card */
.listing-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  overflow: hidden;
  box-shadow: var(--shadow-low);
}
.listing-top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.listing-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.listing-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.listing-score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  font-feature-settings: "lnum";
  color: var(--ink);
  min-width: 58px; text-align: right;
}
.listing-score small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.findings { padding: var(--s-3) var(--s-6) var(--s-5); }
.finding {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px dotted var(--rule);
  align-items: start;
}
.finding:last-child { border-bottom: 0; }
.finding .sev {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  align-self: start;
  min-width: 72px;
  text-align: center;
  line-height: 1.2;
}
.sev-critical { background: var(--rust); color: var(--paper); }
.sev-high     { background: var(--mustard); color: var(--ink); }
.sev-medium   { background: var(--mustard-wash); color: #5a3d10; }
.sev-low      { background: var(--sage-wash); color: var(--forest); }
.sev-info     { background: var(--paper-deep); color: var(--ink-soft); }

.finding .f-body strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.finding .f-body p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.fix-btn {
  background: transparent;
  border: 1px solid var(--rule-strong);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  white-space: nowrap;
  align-self: start;
}
.fix-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fix-btn.pro-locked {
  color: var(--ink-muted);
  cursor: default;
}
.fix-btn.pro-locked:hover { background: transparent; color: var(--ink-muted); border-color: var(--rule-strong); }
.fix-btn .lock {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
  margin-left: 4px;
}

/* ---------- Focus + motion ---------- */

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .report-card { transform: none; }
  .stamp-badge { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid      { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero-visual    { order: -1; }
  .signal.wide, .signal.narrow, .signal.half { grid-column: span 6; }
  .steps          { grid-template-columns: 1fr; gap: var(--s-6); }
  .plans          { grid-template-columns: 1fr; }
  .plan.featured  { transform: none; }
  .colophon-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: var(--s-12) 0; }
  .hero { padding: var(--s-10) 0 var(--s-8); }
  .signal, .signal.wide, .signal.narrow, .signal.half { grid-column: span 12; }
  .summary-card {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    padding: var(--s-6);
    text-align: left;
  }
  .summary-card .score-block {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px dashed var(--rule-strong);
    padding-bottom: var(--s-5);
  }
  .listing-top {
    grid-template-columns: 1fr auto;
    gap: var(--s-3);
    padding: var(--s-4);
  }
  .listing-id { grid-column: 1 / -1; }
  .listing-score { text-align: left; }
  .listing-title { grid-column: 1 / -1; }
  .finding { grid-template-columns: auto 1fr; }
  .fix-btn { grid-column: 2; justify-self: start; }
  .colophon-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: var(--s-3); }
  .hero h1 { font-size: 38px; }
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 4px;
  padding: var(--s-4) var(--s-5);
  transition: border-color 150ms ease;
}

.faq-item[open] {
  border-color: var(--rule-strong);
  background: var(--paper-deep);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  color: var(--ink);
}

.faq-item summary::after {
  content: "+";
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item p {
  margin: var(--s-3) 0 0 0;
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 16px;
}

.faq-item p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.sticky-cta:hover {
  background: var(--ink);
  opacity: 0.94;
}

@media (max-width: 720px) {
  .sticky-cta { display: block; }
  /* Ensure last section isn't obscured */
  .close-note { padding-bottom: 96px; }
  .faq-item { padding: var(--s-3) var(--s-4); }
  .faq-item summary h3 { font-size: 18px; }
}

/* ---------- Utility ---------- */

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