/* =============================================================
   LocalBusinessEngine.com — Global Stylesheet (V1)
   Design system: Local Trust Editorial
   Layers: 1) Design Tokens  2) Base  3) Components  4) Layout
   Ref: LocalBusinessEngine-UI设计文档.md (v1.0)
   ============================================================= */

/* -------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------- */
:root {
  /* Color */
  --ink: #18221C;
  --ink-2: #5A645A;
  --ink-3: #8A9187;
  --moss: #1E6A56;
  --moss-deep: #174F40;
  --moss-soft: #E3EFE8;
  --amber: #F5A623;
  --amber-soft: #FBF1DC;
  --coral: #E2503C;
  --coral-soft: #FBE7E1;
  --paper: #F4F1E9;
  --paper-2: #ECE7DB;
  --card: #FFFDF7;
  --line: rgba(24,34,28,.12);

  /* Score semantics */
  --score-good: #1E6A56;
  --score-mid: #F5A623;
  --score-low: #E2503C;

  /* Spacing (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20,25,40,.05);
  --shadow-md: 0 1px 2px rgba(20,25,40,.05), 0 12px 40px -18px rgba(20,25,40,.28);
  --shadow-btn: 0 10px 22px -10px rgba(30,106,86,.7);

  /* Type scale */
  --fs-hero: clamp(38px, 6.4vw, 64px);
  --fs-h1: 30px;
  --fs-h2: 22px;
  --fs-h3: 17px;
  --fs-body: 16px;
  --fs-ui: 15px;
  --fs-meta: 13px;
  --fs-label: 12px;

  --lh-hero: 1.02;
  --lh-h1: 1.2;
  --lh-h2: 1.3;
  --lh-h3: 1.4;
  --lh-body: 1.7;
  --lh-ui: 1.5;
}

/* Dark theme reserved structure (not enabled in V1) */
:root[data-theme="dark"] {
  --paper: #14191483;
}

/* -------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; }

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-h2);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-h3);
}

p { margin: 0 0 var(--sp-4); }

p:last-child { margin-bottom: 0; }

a { color: var(--moss); text-decoration: none; }
a:hover { text-decoration: underline; }

small { font-size: var(--fs-meta); }

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

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

/* -------------------------------------------------------------
   3. COMPONENTS
   ------------------------------------------------------------- */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: 0.66rem 1.35rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font-family: "Manrope", sans-serif;
  font-size: var(--fs-ui);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--moss);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--moss-deep); }

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 22px -10px rgba(245,166,35,.6);
}
.btn-amber:hover { background: #e99a12; }

.btn-outline {
  background: transparent;
  border-color: rgba(24,34,28,.4);
  color: var(--ink);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--moss);
  border-color: transparent;
  box-shadow: none;
  font-weight: 600;
}
.btn-ghost:hover { background: var(--moss-soft); }

.btn-block { width: 100%; }

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* ---- Pill ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: .01em;
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.pill-impact-high { background: var(--amber-soft); color: var(--ink); }
.pill-impact-high .dot { background: var(--amber); }
.pill-impact-med  { background: rgba(24,34,28,.07); color: var(--ink-2); }
.pill-impact-med .dot { background: var(--ink-2); }
.pill-diff-easy { background: var(--moss-soft); color: var(--moss-deep); }
.pill-diff-easy .dot { background: var(--moss); }
.pill-diff-hard { background: var(--coral-soft); color: var(--coral); }
.pill-diff-hard .dot { background: var(--coral); }

.pill-cat {
  background: var(--moss-soft);
  color: var(--moss-deep);
}
.pill-cat .dot { background: var(--moss); }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: var(--sp-3);
}

/* ---- Form ---- */
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .req { color: var(--coral); }
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid rgba(24,34,28,.25);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: var(--fs-ui);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 4px var(--moss-soft);
}
.field .hint { font-size: var(--fs-meta); color: var(--ink-3); margin-top: 4px; }
.field .err {
  font-size: var(--fs-meta);
  color: var(--coral);
  margin-top: 4px;
  display: none;
}
.field.invalid input,
.field.invalid select { border-color: var(--coral); }
.field.invalid .err { display: block; }

/* Optional row + skip */
.optional {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.optional label { margin-bottom: 0; }
.optional .skip {
  font-size: var(--fs-meta);
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  text-decoration: underline;
}
.optional .skip:hover { color: var(--moss); }
.field.has-skipped input { opacity: .4; pointer-events: none; }
.field.has-skipped .skip { color: var(--moss); font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }

@media (min-width: 640px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(24,34,28,.25);
  border-radius: var(--r-sm);
  background: var(--card);
  cursor: pointer;
  font-size: var(--fs-ui);
  font-weight: 600;
  transition: border-color .15s, background .15s;
  margin-bottom: 0;
}
.segmented label small {
  font-weight: 400;
  color: var(--ink-2);
}
.segmented input:checked + label {
  border-color: var(--moss);
  background: var(--moss-soft);
  box-shadow: 0 0 0 1px var(--moss) inset;
}
.segmented input:focus-visible + label { outline: 2px solid var(--moss); outline-offset: 2px; }

/* ---- Check rows (tri-state diagnostic) ---- */
.checklist { display: grid; gap: var(--sp-2); }
.check-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.check-row:hover { border-color: var(--moss); }
.check-row .row-txt { font-size: var(--fs-ui); font-weight: 600; line-height: 1.4; }
.check-row .row-txt small { display: block; color: var(--ink-2); font-weight: 400; margin-top: 2px; }
.check-row .segmented { margin-top: 2px; }
.check-row.checked { border-color: var(--moss); background: var(--moss-soft); }

/* tri-state Yes / No / Not sure segments */
.seg-3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.seg-3 label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
}
.seg-3 label small { display: none; }

/* ---- Card ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

/* ---- Gauge (score ring) ---- */
.gauge-wrap { text-align: center; }
.gauge {
  position: relative;
  width: 160px; height: 160px;
  margin: 0 auto var(--sp-4);
}
.gauge svg { transform: rotate(-90deg); display: block; width: 100%; height: 100%; }
.gauge .track { fill: none; stroke: rgba(24,34,28,.1); stroke-width: 13; }
.gauge .bar {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(.25,.6,.2,1), stroke .4s ease;
}
.gauge .val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge .val .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.gauge .val .of { font-size: var(--fs-meta); color: var(--ink-3); }

/* ---- Opportunity card ---- */
.opp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.opp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.opp-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-3);
  margin-right: var(--sp-2);
}
.opp-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-3);
}
.opp-block { margin-bottom: var(--sp-3); }
.opp-block .b-label {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--moss);
  margin-bottom: var(--sp-1);
}
.opp-block .b-label.coral { color: var(--coral); }
.opp-block p { margin-bottom: var(--sp-1); font-size: var(--fs-ui); }
.evidence-list { list-style: none; padding: 0; margin: 0; }
.evidence-list li {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--fs-ui);
  padding: 5px 0;
  margin: 0;
}
.evidence-list .sym { flex: 0 0 auto; font-weight: 700; }
.evidence-list .sym.ok { color: var(--moss); }
.evidence-list .sym.no { color: var(--coral); }
.evidence-list .sym.un { color: var(--ink-3); }

/* ---- Scan animation ---- */
.scan {
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.scan-title { font-family: "Fraunces", Georgia, serif; font-size: var(--fs-h2); font-weight: 600; margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-2); }
.scan-title .pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--amber);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.25} 50%{opacity:1} }
.scan-step {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(24,34,28,.08);
}
.scan-step .icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink-3); transition: all .3s ease;
}
.scan-step.done .icon { border-color: var(--moss); background: var(--moss); color: #fff; }
.scan-step .s-txt { flex: 1; font-weight: 600; color: var(--ink-3); transition: color .3s; }
.scan-step.done .s-txt { color: var(--ink); }
.scan-step .s-bar { flex: 0 0 120px; height: 6px; border-radius: 3px; background: rgba(24,34,28,.12); overflow: hidden; }
.scan-step .s-bar i { display: block; height: 100%; width: 0; background: var(--moss); border-radius: 3px; transition: width .3s ease; }
.scan-step.done .s-bar i { width: 100%; }

/* ---- Lead capture ---- */
.lead-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  text-align: left;
}
.lead-card h3 { font-family: "Fraunces", Georgia, serif; font-size: var(--fs-h2); font-weight: 600; margin-bottom: var(--sp-2); }
.lead-card .privacy { font-size: var(--fs-meta); color: var(--ink-2);margin-top: var(--sp-2); }
.lead-success {
  text-align: center;
  padding: var(--sp-6);
}
.lead-success .tick {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--moss-soft); color: var(--moss);
  display: grid; place-items: center;
  font-size: 28px; font-weight: 800;
  margin: 0 auto var(--sp-4);
}
.lead-success.sending .spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid var(--line);
  border-top-color: var(--moss);
  margin: 0 auto var(--sp-4);
  animation: lbe-spin 0.8s linear infinite;
}
@keyframes lbe-spin { to { transform: rotate(360deg); } }
.lead-success.text-left { text-align: left; }
.lead-success.text-left h3 { margin-bottom: var(--sp-2); }
.lead-success.text-left p { color: var(--ink-2); }
.lead-success.text-left .recheck { border-top: 1px dashed var(--line); padding-top: var(--sp-4); }
#lead-recheck input { padding: 0 var(--sp-3); }

/* ---- Nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,233,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 var(--sp-5);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--moss); color: #fff;
  display: grid; place-items: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 16px;
}
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: var(--sp-5); }
.nav-links a { color: var(--ink-2); font-size: var(--fs-ui); font-weight: 600; }
.nav-links a:hover { color: var(--moss); text-decoration: none; }
.nav-links a.active { color: var(--moss); }
.nav-cta { margin-left: var(--sp-2); }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper);
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .22s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { display: block; padding: var(--sp-3) 0; min-height: 44px; font-size: var(--fs-ui); width: 100%; }
  .nav-links .nav-cta { margin: var(--sp-3) 0 0; }
  .nav-links .nav-cta .btn { width: 100%; }
}

/* ---- Footer ---- */
.site-footer { background: var(--paper-2); margin-top: var(--sp-7); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  padding: var(--sp-7) var(--sp-5) var(--sp-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer-grid h4 { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: var(--sp-3); }
.footer-grid a { display: block; color: var(--ink); font-size: var(--fs-ui); padding: 4px 0; }
.footer-grid a:hover { color: var(--moss); text-decoration: none; }
.footer-brand p { color: var(--ink-2); font-size: var(--fs-ui); max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--fs-meta); color: var(--ink-2);
}
.footer-legal a { color: var(--ink-2); }

/* ---- Article card ---- */
.article-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .15s, border-color .15s;
}
.article-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--moss); box-shadow: var(--shadow-md); }
.article-card .ac-title { font-family: "Fraunces", Georgia, serif; font-size: 18px; font-weight: 600; line-height: 1.35; margin: var(--sp-3) 0; color: var(--ink); transition: color .15s; }
.article-card:hover .ac-title { color: var(--moss); }
.article-card .ac-ex { color: var(--ink-2); font-size: var(--fs-meta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .ac-more { font-size: var(--fs-meta); font-weight: 700; color: var(--moss); margin-top: var(--sp-3); }

/* ---- FAQ (details) ---- */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  margin-bottom: var(--sp-3);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4);
  font-weight: 700;
  font-size: var(--fs-ui);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .caret { transition: transform .2s; color: var(--moss); font-weight: 800; }
.faq details[open] summary .caret { transform: rotate(180deg); }
.faq details .faq-body {
  padding: 0 var(--sp-4) var(--sp-4);
  border-left: 3px solid var(--moss);
  margin-left: var(--sp-4);
}
.faq-body p { font-size: var(--fs-ui); color: var(--ink-2); }

/* ---- Audit CTA block (in-article) ---- */
.cta-audit {
  background: var(--moss-soft);
  border: 1px solid rgba(30,106,86,.25);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
}
.cta-audit h3 { font-family: "Fraunces", Georgia, serif; font-size: var(--fs-h2); font-weight: 600; margin-bottom: var(--sp-2); }
.cta-audit p { color: var(--ink-2); margin-bottom: var(--sp-4); }

/* ---- Alert / notice ---- */
.notice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--amber-soft);
  border: 1px solid rgba(245,166,35,.35);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-size: var(--fs-ui);
}
.notice .n-icon { font-weight: 800; color: var(--amber); }

/* ---- Trust strip ---- */
.trust-strip {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.trust-item { display: flex; gap: var(--sp-3); padding: var(--sp-4); }
.trust-item .t-icon { font-size: 22px; }
.trust-item .t-txt { font-size: var(--fs-ui); color: var(--ink-2); }
.trust-item .t-txt strong { display: block; color: var(--ink); font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(3,1fr); } }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: var(--fs-meta); color: var(--ink-3); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--moss); }
.breadcrumb span { margin: 0 6px; }

/* ---- Meta row ---- */
.meta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-5); }

/* ---- 404 hero ---- */
.error-hero { text-align: center; padding: var(--sp-7) var(--sp-4); }
.error-hero .e-num { font-family: "Fraunces", Georgia, serif; font-size: clamp(80px, 18vw, 160px); font-weight: 600; line-height: 1; color: var(--moss); }
.error-hero h1 { margin: var(--sp-3) 0; }
.error-hero p { color: var(--ink-2); max-width: 44ch; margin: 0 auto var(--sp-5); }
.error-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section { padding: var(--sp-7) 0; }
.section-tight { padding: var(--sp-6) 0; }

.prose {
  max-width: 66ch;
  margin: 0 auto;
}
.prose h2 { margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { margin: var(--sp-5) 0 var(--sp-2); }
.prose p, .prose li { font-size: 17px; color: var(--ink); }
.prose em { font-family: "Fraunces", Georgia, serif; font-style: normal; font-weight: 600; color: var(--moss); }
.prose blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--moss);
  background: var(--moss-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
}
.prose ul, .prose ol { margin-bottom: var(--sp-4); }

/* ---- Hero ---- */
.hero { padding: var(--sp-7) 0; position: relative; overflow: hidden; }
.hero-inner { max-width: 1140px; margin: 0 auto; padding: 0 var(--sp-5); }
.hero h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  max-width: 16ch;
}
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 50ch; margin: var(--sp-5) 0; }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-7); }
.hero-stat .h-num { font-family: "Fraunces", Georgia, serif; font-size: 30px; font-weight: 700; color: var(--moss); }
.hero-stat .h-lbl { font-size: var(--fs-meta); color: var(--ink-2); }

/* ---- Hub grid ---- */
.hub-section { margin-bottom: var(--sp-7); }
.hub-section h2 { margin-bottom: var(--sp-4); }
.hub-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) { .hub-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Tool page widget ---- */
.widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}
.tool-page-head { margin-bottom: var(--sp-5); }

.stage { display: none; }
.stage.active { display: block; }

.report-grid {} 
.dim-scores { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-3); margin: var(--sp-5) 0; }
@media (max-width: 480px) { .dim-scores { grid-template-columns: 1fr; } }
.dim-score {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  background: var(--paper);
}
.dim-score .d-name { font-weight: 700; font-size: var(--fs-ui); }
.dim-score .d-num { font-family: "Fraunces", Georgia, serif; font-size: 28px; font-weight: 600; }
.dim-score .d-note { font-size: var(--fs-meta); color: var(--ink-3); }
.dim-score.na .d-num { color: var(--ink-3); font-size: 18px; }

.report-head { text-align: center; margin-bottom: var(--sp-5); }
.report-head .brand-slug { font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); }
.report-head h1 { font-family: "Fraunces", Georgia, serif; font-size: var(--fs-h2); margin: var(--sp-2) 0; }
.report-head .biz { color: var(--ink-2); }

.opp-title-lg { font-family: "Fraunces", Georgia, serif; font-size: 28px; font-weight: 600; text-align: center; margin: var(--sp-6) 0 var(--sp-5); }

.service-cta {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
}
.service-cta h3 { font-family: "Fraunces", Georgia, serif; font-size: var(--fs-h2); font-weight: 600; margin-bottom: var(--sp-2); }
.service-cta p { color: var(--ink-2); max-width: 46ch; margin: 0 auto var(--sp-4); }

.hidden { display: none !important; }

/* -------------------------------------------------------------
   5. REDUCED MOTION & PRINT
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
    animation-iteration-count: 1 !important;
  }
  .scan-step .s-bar i { width: 100% !important; }
  .scan-step { opacity: 1 !important; }
  .scan-title .pulse { animation: none; opacity: 1; }
}

@media print {
  .site-nav, .site-footer, .btn, .nav-cta { display: none; }
  body { background: #fff; }
  .card, .widget, .opp-card { box-shadow: none; border-color: #ccc; }
}
