/* ==========================================================================
   STR Intel: Free Teardown Tool  (/str-intel/teardown/)
   Base tokens + shared site components (navbar, footer, buttons) match the
   rest of the STR Intel site, plus new components for the live report UI.
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-primary: #1a56db;
  --clr-primary-dark: #1244b0;
  --clr-primary-light: #e8effc;
  --clr-accent: #f59e0b;
  --clr-accent-dark: #d97706;
  --clr-bg: #ffffff;
  --clr-surface: #f8fafc;
  --clr-surface-alt: #f1f5f9;
  --clr-border: #e2e8f0;
  --clr-text: #1e293b;
  --clr-text-secondary: #475569;
  --clr-text-light: #94a3b8;
  --clr-success: #16a34a;
  --clr-success-light: #ecfdf5;
  --clr-error: #dc2626;
  --clr-error-light: #fef2f2;
  --clr-warn: #d97706;
  --clr-warn-light: #fffbeb;
  --font-heading: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Fira Code', monospace;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --sp-20: 80px; --sp-24: 96px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --transition: .25s cubic-bezier(.4,0,.2,1);

  /* Grade / score colors */
  --clr-grade-a: #16a34a;
  --clr-grade-b: #65a30d;
  --clr-grade-c: #d97706;
  --clr-grade-d: #ea580c;
  --clr-grade-f: #dc2626;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--clr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary-dark); }

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

/* ---------- Container ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: 800px; }
.container--report { max-width: 920px; }

/* ---------- Utility ---------- */
.text-primary { color: var(--clr-primary); }
.text-muted { color: var(--clr-text-secondary); }
.text-red { color: var(--clr-error); }
.text-green { color: var(--clr-success); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 32px; border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.btn--primary {
  background: var(--clr-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(26,86,219,.35);
}
.btn--primary:hover:not(:disabled) {
  background: var(--clr-primary-dark); color: #fff; text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,86,219,.4);
}
.btn--outline {
  background: transparent; color: var(--clr-primary); border: 2px solid var(--clr-primary);
}
.btn--outline:hover:not(:disabled) { background: var(--clr-primary); color: #fff; text-decoration: none; }
.btn--accent { background: var(--clr-accent); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.35); }
.btn--accent:hover:not(:disabled) { background: var(--clr-accent-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--clr-text-secondary); border: 1px solid var(--clr-border); }
.btn--ghost:hover:not(:disabled) { border-color: var(--clr-primary); color: var(--clr-primary); }
.btn--lg { padding: 16px 40px; font-size: 1.1rem; }
.btn--sm { padding: 9px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn .btn__spinner { display: none; }
.btn.is-loading .btn__spinner { display: inline-flex; }
.btn.is-loading .btn__label { opacity: .85; }


/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-3) 0;
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); }
.navbar__logo img { height: 38px; width: auto; }
.navbar__links { display: flex; align-items: center; gap: var(--sp-8); list-style: none; }
.navbar__links > li { position: relative; }
.navbar__links a { font-size: .92rem; font-weight: 500; color: var(--clr-text-secondary); transition: color var(--transition); }
.navbar__links a:hover, .navbar__links a[aria-current="page"] { color: var(--clr-primary); text-decoration: none; }
.navbar__cta { display: flex; align-items: center; gap: var(--sp-4); }
.navbar__toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--sp-2); }
.navbar__toggle svg { width: 26px; height: 26px; stroke: var(--clr-text); }


/* ==========================================================================
   SECTION HEADER (reusable)
   ========================================================================== */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-header--left { text-align: left; margin: 0 0 28px; max-width: none; }
.section-header__label {
  display: inline-block; font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--clr-primary); margin-bottom: 10px;
}
.section-header__heading {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700; color: var(--clr-text); margin-bottom: 12px; line-height: 1.25;
}
.section-header__sub { font-size: 1.02rem; color: var(--clr-text-secondary); line-height: 1.7; }


/* ==========================================================================
   TEARDOWN HERO
   ========================================================================== */
.td-hero {
  padding: 56px 0 44px;
  background: linear-gradient(165deg, #f0f5ff 0%, #e8effc 35%, #ffffff 75%);
  position: relative; overflow: hidden;
}
.td-hero::before {
  content: ''; position: absolute; top: -200px; right: -140px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,.07) 0%, transparent 70%);
  pointer-events: none;
}
.td-hero__inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.td-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--clr-primary-light); color: var(--clr-primary);
  font-size: .8rem; font-weight: 600; padding: 6px 14px;
  border-radius: 50px; margin-bottom: 22px;
}
.td-hero h1 {
  font-family: var(--font-heading); font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  font-weight: 800; line-height: 1.2; color: var(--clr-text); margin-bottom: 18px;
}
.td-hero__desc {
  font-size: 1.05rem; color: var(--clr-text-secondary); line-height: 1.75;
  max-width: 600px; margin: 0 auto 32px;
}
.td-hero__note { font-size: .82rem; color: var(--clr-text-light); margin-top: 16px; line-height: 1.6; }
.td-hero__note strong { color: var(--clr-text-secondary); font-weight: 600; }


/* ==========================================================================
   URL FORM
   ========================================================================== */
.url-form { max-width: 620px; margin: 0 auto; text-align: left; }
.url-form__row {
  display: flex; gap: 10px; background: #fff; border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); padding: 6px; box-shadow: var(--shadow-md);
}
.url-form__field { flex: 1; position: relative; display: flex; align-items: center; }
.url-form__field svg {
  position: absolute; left: 14px; width: 18px; height: 18px; color: var(--clr-text-light); flex-shrink: 0;
}
.url-form__field input {
  width: 100%; border: none; background: transparent; font-family: var(--font-body);
  font-size: .96rem; color: var(--clr-text); padding: 12px 14px 12px 40px;
}
.url-form__field input:focus { outline: none; }
.url-form__row:focus-within { border-color: var(--clr-primary); box-shadow: 0 0 0 3px var(--clr-primary-light); }
.url-form__submit { flex-shrink: 0; padding: 12px 26px; }
.url-form__error {
  margin-top: 10px; font-size: .86rem; color: var(--clr-error); font-weight: 500; text-align: left;
  padding-left: 4px;
}
.url-form__error:empty { display: none; }

/* ?link= prefill cue (cold-email "lazy link"): a hint line under the form
   plus a short, silent pulse on the button. script.js adds both only when a
   valid ?link= is present and removes them when the visitor clicks or edits. */
.url-form__hint {
  margin-top: 12px; font-size: .92rem; font-weight: 500; line-height: 1.5;
  color: var(--clr-primary-dark); text-align: center;
}
.url-form__hint strong { font-weight: 700; }
.url-form__submit.is-prefilled { animation: prefillPulse 1.6s ease-out .4s 3; }
@keyframes prefillPulse {
  0%   { box-shadow: 0 2px 8px rgba(26,86,219,.35), 0 0 0 0 rgba(26,86,219,.45); }
  70%  { box-shadow: 0 2px 8px rgba(26,86,219,.35), 0 0 0 14px rgba(26,86,219,0); }
  100% { box-shadow: 0 2px 8px rgba(26,86,219,.35), 0 0 0 0 rgba(26,86,219,0); }
}
@media (prefers-reduced-motion: reduce) {
  .url-form__submit.is-prefilled { animation: none; }
}

@media (max-width: 560px) {
  .url-form__row { flex-direction: column; background: transparent; border: none; box-shadow: none; padding: 0; gap: 10px; }
  .url-form__field { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
  .url-form__submit { width: 100%; }
}


/* ==========================================================================
   RESULTS SHELL / STATUS BANNERS
   ========================================================================== */
.results-section { padding: 8px 0 24px; }
.status-banner {
  display: flex; align-items: flex-start; gap: 12px;
  border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 22px;
  font-size: .92rem; line-height: 1.6;
}
.status-banner__icon { flex-shrink: 0; font-size: 1.1rem; line-height: 1; margin-top: 1px; }
.status-banner__body strong { display: block; margin-bottom: 2px; font-family: var(--font-heading); font-size: .95rem; }
.status-banner__actions { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.status-banner--sample { background: var(--clr-primary-light); color: var(--clr-primary-dark); }
.status-banner--sample strong { color: var(--clr-primary-dark); }
.status-banner--loading { background: var(--clr-surface); color: var(--clr-text-secondary); border: 1px solid var(--clr-border); }
.status-banner--error { background: var(--clr-error-light); color: #7f1d1d; }
.status-banner--error strong { color: #7f1d1d; }
.status-banner--success { background: var(--clr-success-light); color: #14532d; }
.status-banner[hidden] { display: none; }


/* ==========================================================================
   PREVIEW STRIP
   ========================================================================== */
.preview-strip {
  background: #fff; border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.preview-strip__media { width: 100%; height: 280px; background: var(--clr-surface-alt); overflow: hidden; }
.preview-strip__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--clr-surface-alt);
}
.preview-strip__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-surface-alt));
  display: flex; align-items: center; justify-content: center; color: var(--clr-primary);
}
.preview-strip__img-placeholder svg { width: 56px; height: 56px; }
.preview-strip__body { min-width: 0; padding: 18px 20px 20px; }
.preview-strip__eyebrow {
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--clr-text-light); margin-bottom: 4px;
}
.preview-strip__title {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--clr-text);
  margin-bottom: 6px; line-height: 1.3;
}
.preview-strip__meta { font-size: .85rem; color: var(--clr-text-secondary); display: flex; gap: 10px; flex-wrap: wrap; }
.preview-strip__desc { font-size: .87rem; color: var(--clr-text-light); margin-top: 8px; line-height: 1.6; }

@media (max-width: 640px) {
  .preview-strip__media { height: 190px; }
  .preview-strip__body { padding: 16px; }
}


/* ==========================================================================
   PROGRESS BLOCK
   ========================================================================== */
.progress-block {
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  padding: 26px 24px; margin-bottom: 22px; text-align: center;
}
.progress-block__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.progress-block__sub { font-size: .84rem; color: var(--clr-text-light); margin-bottom: 18px; }
.progress-track {
  width: 100%; height: 8px; border-radius: 50px; background: var(--clr-surface-alt); overflow: hidden;
  margin-bottom: 14px;
}
.progress-fill {
  height: 100%; width: 4%; border-radius: 50px;
  background: linear-gradient(90deg, var(--clr-primary), #4f7fe8);
  transition: width .6s ease-out;
}
.progress-status {
  font-size: .88rem; color: var(--clr-text-secondary); min-height: 1.4em;
}
.progress-elapsed { font-family: var(--font-mono); font-size: .72rem; color: var(--clr-text-light); margin-top: 10px; }


/* ==========================================================================
   REPORT TOOLBAR
   ========================================================================== */
.report-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.report-toolbar__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-toolbar__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }


/* ==========================================================================
   BADGES / CHIPS
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px; letter-spacing: .01em; white-space: nowrap;
}
.badge--grade-a { background: #ecfdf5; color: var(--clr-grade-a); }
.badge--grade-b { background: #f7fee7; color: var(--clr-grade-b); }
.badge--grade-c { background: #fffbeb; color: var(--clr-grade-c); }
.badge--grade-d { background: #fff7ed; color: var(--clr-grade-d); }
.badge--grade-f { background: #fef2f2; color: var(--clr-grade-f); }
.badge--minor { background: var(--clr-surface-alt); color: var(--clr-text-secondary); }
.badge--major { background: var(--clr-warn-light); color: var(--clr-warn); }
.badge--critical { background: var(--clr-error-light); color: var(--clr-error); }
.badge--good { background: var(--clr-success-light); color: var(--clr-success); }
.badge--locked { background: #f1f5f9; color: var(--clr-text-secondary); }
.badge--superhost { background: #fff7ed; color: #c2410c; }
.badge--sample { background: var(--clr-primary); color: #fff; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--clr-text-secondary);
  background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: 50px; padding: 6px 13px;
}
.chip--muted { color: var(--clr-text-light); }
.chip strong { color: var(--clr-text); font-weight: 700; }


/* ==========================================================================
   SNAPSHOT STRIP
   ========================================================================== */
.snapshot-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px;
  margin-bottom: 22px;
}
.snapshot-chip {
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  padding: 14px 16px; text-align: center;
}
.snapshot-chip__value { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; color: var(--clr-text); }
.snapshot-chip__label { display: block; font-size: .68rem; color: var(--clr-text-light); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }


/* ==========================================================================
   SCORE CARD
   ========================================================================== */
.score-card {
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  padding: 28px 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.score-card__top { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.score-ring {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  border: 6px solid var(--clr-surface-alt); position: relative;
}
.score-ring__num { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--clr-text); line-height: 1; }
.score-ring__max { font-size: .62rem; color: var(--clr-text-light); }
.score-card__headtext { flex: 1; min-width: 200px; }
.score-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.score-card__scope { font-size: .84rem; color: var(--clr-text-light); line-height: 1.55; }
.category-bars { display: flex; flex-direction: column; gap: 16px; }
.category-bar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 10px; }
.category-bar__name { font-size: .9rem; font-weight: 600; color: var(--clr-text); }
.category-bar__score { font-family: var(--font-mono); font-size: .85rem; font-weight: 700; color: var(--clr-text-secondary); flex-shrink: 0; }
.category-bar__track { height: 8px; border-radius: 50px; background: var(--clr-surface-alt); overflow: hidden; margin-bottom: 8px; }
.category-bar__fill { height: 100%; border-radius: 50px; }
.category-bar__why { font-size: .84rem; color: var(--clr-text-secondary); line-height: 1.6; }

.fill-good { background: var(--clr-success); }
.fill-mid { background: var(--clr-accent); }
.fill-bad { background: var(--clr-error); }
/* Neutral fill: for figures like calendar blocked-% where a bigger number
   isn't inherently good or bad (see cal-stat--neutral below), so no
   good/bad color judgment is applied, just the site's plain primary tone. */
.fill-neutral { background: var(--clr-primary); opacity: .55; }


/* ==========================================================================
   EXECUTIVE SUMMARY
   ========================================================================== */
.exec-summary {
  background: linear-gradient(135deg, #0f172a 0%, #1e2a4a 100%); color: #e2e8f0;
  border-radius: var(--radius-lg); padding: 30px 28px; margin-bottom: 20px;
}
.exec-summary__label {
  font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: #93c5fd; margin-bottom: 14px; display: block;
}
.exec-summary__list { list-style: none; counter-reset: findingnum; margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.exec-summary__list li {
  counter-increment: findingnum; position: relative; padding-left: 32px;
  font-size: .95rem; line-height: 1.65; color: #e2e8f0;
}
.exec-summary__list li::before {
  content: counter(findingnum); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.exec-callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.exec-callout {
  border-radius: var(--radius-md); padding: 16px 18px; background: rgba(255,255,255,.06);
  border-left: 3px solid var(--clr-accent);
}
.exec-callout--gap { border-left-color: #f87171; }
.exec-callout--action { border-left-color: #4ade80; }
.exec-callout__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.exec-callout__body { font-size: .9rem; line-height: 1.6; color: #f1f5f9; }
.exec-quote {
  font-size: .95rem; line-height: 1.75; color: #cbd5e1; border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px; font-style: italic;
}

@media (max-width: 640px) {
  .exec-callouts { grid-template-columns: 1fr; }
}


/* ==========================================================================
   FINDINGS ACCORDION
   ========================================================================== */
.findings-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.finding-card {
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-lg); overflow: hidden;
}
.finding-card__head {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: none; cursor: pointer; padding: 16px 18px; font-family: var(--font-body);
}
.finding-card__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--clr-surface);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.finding-card__headtext { flex: 1; min-width: 0; }
.finding-card__title { font-family: var(--font-heading); font-weight: 700; font-size: .96rem; color: var(--clr-text); margin-bottom: 2px; }
.finding-card__verdict {
  font-size: .82rem; color: var(--clr-text-light); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; display: block;
}
.finding-card__badges { flex-shrink: 0; display: flex; gap: 6px; align-items: center; }
.finding-card__chevron {
  flex-shrink: 0; width: 22px; height: 22px; color: var(--clr-text-light); transition: transform var(--transition);
}
.finding-card__head[aria-expanded="true"] .finding-card__chevron { transform: rotate(180deg); }
.finding-card__body {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.finding-card__body-inner { padding: 4px 20px 22px 72px; display: flex; flex-direction: column; gap: 16px; }
.finding-card--locked { background: var(--clr-surface); }

.fs-block__label {
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--clr-text-light); margin-bottom: 8px; display: block;
}
.fs-block p { font-size: .92rem; line-height: 1.7; color: var(--clr-text-secondary); }
.fs-block ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fs-block ul li {
  font-size: .9rem; line-height: 1.6; color: var(--clr-text-secondary); position: relative; padding-left: 18px;
}
.fs-block ul li::before { content: '\2013'; position: absolute; left: 0; color: var(--clr-text-light); }
.fs-block__quote {
  font-size: .84rem; color: var(--clr-text-light); font-style: italic; margin-top: 2px; display: block;
}

.rewrite-box {
  background: var(--clr-primary-light); border-radius: var(--radius-md); padding: 14px 16px;
}
.rewrite-box__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--clr-primary); margin-bottom: 4px; display: block; }
.rewrite-box__text { font-family: var(--font-heading); font-weight: 600; font-size: .96rem; color: var(--clr-text); }

.locked-panel {
  background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
  border: 1px dashed var(--clr-border); border-radius: var(--radius-md); padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.locked-panel__icon { font-size: 1.1rem; flex-shrink: 0; }
.locked-panel__text { font-size: .88rem; line-height: 1.6; color: var(--clr-text-secondary); }
.locked-panel__text strong { color: var(--clr-text); }

.data-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--clr-border); font-size: .88rem; }
.data-row:last-child { border-bottom: none; }
.data-row__key { color: var(--clr-text-light); }
.data-row__val { color: var(--clr-text); font-weight: 600; text-align: right; }

.subsection-title { font-family: var(--font-heading); font-weight: 700; font-size: .88rem; color: var(--clr-text); margin-bottom: 2px; }


/* ==========================================================================
   SPOT GRID (hyperlocal)
   ========================================================================== */
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.spot-card { background: var(--clr-surface); border-radius: var(--radius-md); padding: 13px 15px; }
.spot-card__top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.spot-card__name { font-family: var(--font-heading); font-weight: 700; font-size: .86rem; color: var(--clr-text); }
.spot-card__dist { font-family: var(--font-mono); font-size: .76rem; color: var(--clr-primary); font-weight: 700; flex-shrink: 0; }
.spot-card__why { font-size: .78rem; color: var(--clr-text-secondary); line-height: 1.55; }

.poi-toggle { font-size: .84rem; font-weight: 600; }
.poi-list { display: none; margin-top: 12px; border-top: 1px solid var(--clr-border); padding-top: 12px; }
.poi-list.is-open { display: block; }
.poi-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .82rem; border-bottom: 1px solid var(--clr-border); }
.poi-row:last-child { border-bottom: none; }
.poi-row__name { color: var(--clr-text); }
.poi-row__meta { color: var(--clr-text-light); flex-shrink: 0; font-family: var(--font-mono); font-size: .76rem; }


/* ==========================================================================
   CALENDAR VISUALS
   ========================================================================== */
.cal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cal-stat { background: var(--clr-surface); border-radius: var(--radius-md); padding: 14px; text-align: center; }
.cal-stat__val { font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; }
.cal-stat__label { font-size: .7rem; color: var(--clr-text-light); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
/* Deliberately no good/bad color coding here: a high blocked-% can mean a
   healthy, fully-booked calendar just as easily as it can mean a host
   hasn't opened those dates yet, so the figure is presented neutrally
   (see .cal-caveat below, rendered right next to these stats). */
.cal-stat--neutral .cal-stat__val { color: var(--clr-primary); }

.cal-caveat {
  display: flex; gap: 10px; align-items: flex-start; background: var(--clr-primary-light);
  border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 12px 14px;
  margin-top: 10px; font-size: .83rem; color: var(--clr-text-secondary); line-height: 1.55;
}
.cal-caveat__icon { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }

.cal-bars { display: flex; flex-direction: column; gap: 6px; }
.cal-bar-row { display: grid; grid-template-columns: 64px 1fr 40px; gap: 10px; align-items: center; }
.cal-bar-label { font-size: .76rem; color: var(--clr-text-light); font-family: var(--font-mono); }
.cal-bar-track { height: 10px; border-radius: 50px; background: var(--clr-surface-alt); overflow: hidden; }
.cal-bar-fill { height: 100%; border-radius: 50px; }
.cal-bar-value { font-size: .74rem; color: var(--clr-text-secondary); font-family: var(--font-mono); text-align: right; }


/* ==========================================================================
   RATING DISTRIBUTION / TAG CLOUD
   ========================================================================== */
.rating-dist { display: flex; flex-direction: column; gap: 6px; }
.rating-dist-row { display: grid; grid-template-columns: 44px 1fr 46px; gap: 10px; align-items: center; }
.rating-dist-row__label { font-size: .78rem; color: var(--clr-text-light); font-family: var(--font-mono); }
.rating-dist-row__track { height: 8px; border-radius: 50px; background: var(--clr-surface-alt); overflow: hidden; }
.rating-dist-row__fill { height: 100%; border-radius: 50px; background: var(--clr-accent); }
.rating-dist-row__pct { font-size: .74rem; color: var(--clr-text-secondary); font-family: var(--font-mono); text-align: right; }

.category-ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.category-rating { background: var(--clr-surface); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; }
.category-rating__val { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; }
.category-rating__label { font-size: .68rem; color: var(--clr-text-light); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--clr-primary-light); color: var(--clr-primary-dark); font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 50px; }
.tag-pill small { font-weight: 400; opacity: .75; }


/* ==========================================================================
   TABLES (rules, tiers)
   ========================================================================== */
.rule-groups { display: flex; flex-direction: column; gap: 14px; }
.rule-group__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--clr-text-light); margin-bottom: 6px; }
.rule-group ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rule-group ul li { font-size: .88rem; color: var(--clr-text-secondary); padding-left: 18px; position: relative; }
.rule-group ul li::before { content: '\2022'; position: absolute; left: 0; color: var(--clr-text-light); }

.tiers-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tiers-table th, .tiers-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--clr-border); }
.tiers-table th { color: var(--clr-text-light); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.tiers-table tr:last-child td { border-bottom: none; }

.camera-quote {
  border-left: 3px solid var(--clr-accent); background: var(--clr-warn-light);
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem; font-style: italic; color: var(--clr-text);
}


/* ==========================================================================
   UNLOCK / PAID AUDIT CTA
   ========================================================================== */
.unlock-block {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #2f6fe0 100%); color: #fff;
  border-radius: var(--radius-xl); padding: 34px 30px; margin-bottom: 30px;
}
.unlock-block__label { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.75); display: block; margin-bottom: 10px; }
.unlock-block__heading { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.unlock-block__text { font-size: .96rem; line-height: 1.7; color: rgba(255,255,255,.92); max-width: 640px; margin-bottom: 22px; }
.unlock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 24px; }
.unlock-item { background: rgba(255,255,255,.1); border-radius: var(--radius-md); padding: 14px 16px; }
.unlock-item__title { font-weight: 700; font-size: .85rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: flex-start; }
.unlock-item__title svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 3px; opacity: .8; }
.unlock-item__why { font-size: .8rem; color: rgba(255,255,255,.78); line-height: 1.55; }
.unlock-block__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.unlock-block .btn--primary { background: #fff; color: var(--clr-primary); }
.unlock-block .btn--primary:hover:not(:disabled) { background: var(--clr-primary-light); }
.unlock-block__price-note { font-size: .82rem; color: rgba(255,255,255,.75); }


/* ==========================================================================
   RAW JSON TOGGLE
   ========================================================================== */
.raw-json { margin-bottom: 40px; }
.raw-json__toggle {
  background: none; border: none; cursor: pointer; font-size: .84rem; color: var(--clr-text-light);
  font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
}
.raw-json__toggle:hover { color: var(--clr-primary); }
.raw-json__pre {
  display: none; margin-top: 10px; background: #0f172a; color: #cbd5e1; border-radius: var(--radius-md);
  padding: 18px; font-family: var(--font-mono); font-size: .76rem; line-height: 1.6; overflow-x: auto;
  max-height: 420px; overflow-y: auto; white-space: pre-wrap; word-break: break-word;
}
.raw-json__pre.is-open { display: block; }


/* ==========================================================================
   MARKETING: "WHAT READS IT CLOSELY MEANS"
   ========================================================================== */
.check-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.check-detail {
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 22px 22px;
}
.check-detail__icon {
  width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--clr-primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px;
}
.check-detail h3 { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; }
.check-detail p { font-size: .88rem; line-height: 1.7; color: var(--clr-text-secondary); margin-bottom: 10px; }
.check-detail p:last-child { margin-bottom: 0; }


/* ==========================================================================
   MARKETING: "STRUCTURALLY IMPOSSIBLE TO FAKE FOR FREE"
   ========================================================================== */
.locked-feature-list {
  background: var(--clr-surface); border-radius: var(--radius-lg); padding: 8px 28px;
}
.locked-feature { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--clr-border); }
.locked-feature:last-child { border-bottom: none; }
.locked-feature__icon { flex-shrink: 0; font-size: 1.2rem; margin-top: 2px; }
.locked-feature__title { font-family: var(--font-heading); font-weight: 700; font-size: .96rem; margin-bottom: 4px; }
.locked-feature__body { font-size: .9rem; line-height: 1.7; color: var(--clr-text-secondary); }


/* ==========================================================================
   FINAL CTA BAND
   ========================================================================== */
.final-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e2a4a 100%); border-radius: var(--radius-xl);
  padding: 52px 40px; text-align: center; color: #fff;
}
.final-cta__label { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #93c5fd; margin-bottom: 12px; display: block; }
.final-cta h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.2vw, 1.9rem); font-weight: 700; margin-bottom: 14px; }
.final-cta p { font-size: 1rem; line-height: 1.7; opacity: .88; max-width: 560px; margin: 0 auto 28px; }
.final-cta__note { font-size: .82rem; opacity: .65; margin-top: 18px; }


/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.footer { padding: var(--sp-16) 0 var(--sp-10); background: #0f172a; color: #94a3b8; font-size: .9rem; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8);
  padding-bottom: var(--sp-12); border-bottom: 1px solid #1e293b; margin-bottom: var(--sp-8);
}
.footer__brand-name { font-size: 1.1rem; font-weight: 700; color: #e2e8f0; margin-bottom: var(--sp-3); letter-spacing: .01em; }
.footer__brand p { font-size: .85rem; line-height: 1.65; max-width: 280px; color: #64748b; }
.footer__col h4 { color: #e2e8f0; font-size: .88rem; font-weight: 700; margin-bottom: var(--sp-4); }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__col a { color: #64748b; font-size: .85rem; transition: color var(--transition); }
.footer__col a:hover { color: #e2e8f0; text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-4); }
.footer__copy { font-size: .82rem; color: #475569; }
.footer__social { display: flex; gap: var(--sp-3); }
.footer__social a {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: var(--radius-sm); background: #1e293b; color: #94a3b8; transition: all var(--transition);
}
.footer__social a:hover { background: var(--clr-primary); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }


/* ==========================================================================
   BLOG BODY / SECTION SPACING
   ========================================================================== */
.blog-body { padding: 8px 0 0; }
.blog-section { margin-bottom: 56px; }
.pricing-section { padding: 56px 0; }
.pricing-section--alt { background: var(--clr-surface); }


/* ==========================================================================
   LOCAL MARKET SNAPSHOT
   A separate bonus tool below the main teardown (its own input, its own
   script file, see local-market-snapshot.js). Visually set apart with a
   tinted background band, same treatment as .pricing-section--alt, so it
   reads as a distinct panel rather than more of the teardown report.
   ========================================================================== */
.lms-section { background: var(--clr-surface); border-top: 1px solid var(--clr-border); border-bottom: 1px solid var(--clr-border); padding: 48px 0 52px; }
.lms-resolved { font-size: .88rem; color: var(--clr-text-secondary); margin-bottom: 18px; }
.lms-resolved strong { color: var(--clr-text); }
.lms-report .fs-block { margin-bottom: 22px; }
.lms-report .cal-stats { margin-bottom: 14px; }
.lms-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lms-list-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; font-size: .84rem; border-bottom: 1px solid var(--clr-border); }
.lms-list-row:last-child { border-bottom: none; }
.lms-list-row__key { color: var(--clr-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lms-list-row__key a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--clr-border); }
.lms-list-row__key a:hover, .lms-list-row__key a:focus-visible { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }
.lms-list-row__count { color: var(--clr-text-light); flex-shrink: 0; font-family: var(--font-mono); font-size: .76rem; }
.lms-more { font-size: .78rem; color: var(--clr-text-light); margin-top: 8px; }
.lms-note { font-size: .78rem; color: var(--clr-text-light); margin-top: 10px; line-height: 1.6; }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .lms-list-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .navbar__links { display: none; }
  .navbar__cta .btn { display: none; }
  .navbar__toggle { display: block; }
  .navbar__links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--clr-bg); border-bottom: 1px solid var(--clr-border);
    padding: var(--sp-4) var(--sp-6); box-shadow: var(--shadow-md); z-index: 200;
  }
  .navbar__links.open li { width: 100%; }
  .navbar__links.open a { padding: var(--sp-3) 0; width: 100%; display: block; }

  .td-hero { padding: 40px 0 32px; }
  .score-card__top { flex-direction: column; align-items: flex-start; }
  .snapshot-strip { grid-template-columns: repeat(2, 1fr); }
  .cal-stats { grid-template-columns: 1fr; }
  .finding-card__body-inner { padding-left: 20px; }
  .finding-card__verdict { white-space: normal; }
  .final-cta { padding: 40px 24px; }
  .locked-feature-list { padding: 4px 18px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .snapshot-strip { grid-template-columns: repeat(2, 1fr); }
  .cal-bar-row { grid-template-columns: 50px 1fr 34px; }
  .exec-callouts { grid-template-columns: 1fr; }
}
