*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FDFCF8;
  --fg: #2C2C24;
  --primary: #5D7052;
  --primary-fg: #F3F4F1;
  --secondary: #C18C5D;
  --accent: #E6DCCD;
  --accent-fg: #4A4A40;
  --muted: #F0EBE5;
  --muted-fg: #78786C;
  --border: #DED8CF;
  --surface: #FEFEFA;
  --surface2: #F0EBE5;
  --destructive: #A85448;
  --warn: #B87333;
  --pass: #4A7A52;
  --shadow-moss: 0 4px 20px -2px rgba(93,112,82,0.15);
  --shadow-clay: 0 4px 20px -2px rgba(193,140,93,0.15);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Nunito', system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

.blob-bg { position: fixed; pointer-events: none; z-index: 0; filter: blur(80px); opacity: 0.16; }
.blob-1 { width: 500px; height: 400px; background: #5D7052; border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; top: -100px; left: -150px; }
.blob-2 { width: 400px; height: 350px; background: #C18C5D; border-radius: 40% 60% 70% 30%/40% 70% 30% 60%; top: 200px; right: -100px; }
.blob-3 { width: 350px; height: 300px; background: #E6DCCD; border-radius: 50% 50% 30% 70%/40% 60% 40% 60%; bottom: 100px; left: 30%; opacity: 0.25; }

.app-wrapper { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,252,248,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(222,216,207,0.6);
  padding: 0 2.5rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }
.nav-logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 17px; color: var(--fg); font-variation-settings: 'SOFT' 100,'opsz' 24; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600;
  color: var(--muted-fg); text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--fg); }
.nav-tools-wrap { position: relative; }
.nav-tools-btn {
  padding: 7px 14px; border-radius: 999px;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; color: var(--muted-fg);
}
.nav-tools-btn:hover { color: var(--primary); }
.nav-tools-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(253,252,248,0.97); backdrop-filter: blur(16px);
  border: 1.5px solid rgba(222,216,207,0.8); border-radius: 16px;
  box-shadow: 0 12px 36px -8px rgba(93,112,82,0.18); padding: 6px; min-width: 220px; z-index: 200;
}
.nav-tools-menu.open { display: block; }
.nav-tools-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--fg); font-weight: 600; font-size: 14px;
  transition: background 0.15s;
}
.nav-tools-item:hover { background: rgba(93,112,82,0.08); }
.nav-tools-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(93,112,82,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-signin {
  background: transparent; color: var(--primary); border-radius: 999px;
  font-weight: 700; padding: 8px 18px; font-size: 14px;
  font-family: var(--font-sans); text-decoration: none; white-space: nowrap; transition: background 0.2s;
}
.nav-signin:hover { background: rgba(93,112,82,0.1); }
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  border: none; border-radius: 999px; font-weight: 700;
  padding: 8px 20px; font-size: 14px; font-family: var(--font-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: #4A5B41; }
.btn-primary:disabled { background: var(--muted-fg); cursor: not-allowed; }

/* ── Hero ── */
.hero {
  max-width: 780px; margin: 0 auto;
  padding: 3.5rem 2rem 0;
  text-align: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(93,112,82,0.1); color: var(--primary);
  border-radius: 999px; padding: 4px 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700;
  color: var(--fg); line-height: 1.12; margin-bottom: 0.8rem;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-sub {
  font-size: 1.05rem; color: var(--muted-fg); line-height: 1.65;
  max-width: 520px; margin: 0 auto 2rem;
}

/* ── Input card ── */
.tool-wrap {
  max-width: 860px; margin: 0 auto;
  padding: 0 2rem 3rem;
  width: 100%; box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.input-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 2rem; padding: 2rem;
  box-shadow: var(--shadow-moss);
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}
.field-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted-fg); margin-bottom: 0.45rem; display: block;
}
.field-row { margin-bottom: 1.2rem; }
.field-input {
  width: 100%; padding: 0.65rem 0.95rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 0.75rem; font-family: var(--font-sans); font-size: 0.92rem;
  color: var(--fg); outline: none; transition: border-color 0.2s;
}
.field-input:focus { border-color: var(--primary); }
.field-textarea {
  width: 100%; padding: 0.65rem 0.95rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 0.75rem; font-family: var(--font-sans); font-size: 0.92rem;
  color: var(--fg); outline: none; resize: vertical; min-height: 110px;
  transition: border-color 0.2s; line-height: 1.6;
}
.field-textarea:focus { border-color: var(--primary); }
.field-meta { font-size: 0.72rem; color: var(--muted-fg); margin-top: 0.3rem; }
.field-meta.warn-text { color: var(--warn); }
.field-meta.ok-text { color: var(--pass); }
.input-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.input-footer-hint { font-size: 0.8rem; color: var(--muted-fg); }
.analyze-btn {
  background: var(--primary); color: var(--primary-fg);
  border: none; border-radius: 999px; font-weight: 700;
  padding: 0.7rem 2rem; font-size: 0.95rem; font-family: var(--font-sans);
  cursor: pointer; transition: background 0.2s; display: flex; align-items: center; gap: 8px;
}
.analyze-btn:hover { background: #4A5B41; }
.analyze-btn:disabled { background: var(--muted-fg); cursor: wait; opacity: 0.72; }

/* ── Results ── */
#results-section { display: none; max-width: 860px; margin: 0 auto; padding: 0 2rem 3rem; width: 100%; box-sizing: border-box; }

.results-top {
  display: grid; grid-template-columns: auto 1fr;
  gap: 1.5rem; align-items: start;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 2rem; padding: 1.75rem 2rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-moss);
}
.score-ring-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; min-width: 150px; }
.health-badge {
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: var(--muted);
  text-align: center;
}
.health-badge.strong { background: rgba(74,122,82,0.12); border-color: rgba(74,122,82,0.22); }
.health-badge.good { background: rgba(122,158,90,0.12); border-color: rgba(122,158,90,0.24); }
.health-badge.medium { background: rgba(193,140,93,0.15); border-color: rgba(193,140,93,0.28); }
.health-badge.weak { background: rgba(168,84,72,0.12); border-color: rgba(168,84,72,0.24); }
.health-score-row {
  display: flex; align-items: baseline; gap: 3px;
  justify-content: center; margin-bottom: 0.25rem;
}
.health-emoji { font-size: 1.5rem; margin-right: 4px; }
.health-score-num {
  font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700;
  color: var(--fg); line-height: 1;
}
.health-score-denom {
  font-size: 1rem; font-weight: 600; color: var(--muted-fg);
}
.health-grade-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-fg); margin-bottom: 0.4rem;
}
.health-band {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.score-label { font-size: 0.68rem; font-weight: 700; color: var(--muted-fg); letter-spacing: 0.04em; }
.score-meta { }
.score-title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.risk-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.risk-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 4px 12px;
  font-size: 0.75rem; font-weight: 700;
}
.risk-pill.low { background: rgba(74,122,82,0.12); color: #3A6642; }
.risk-pill.medium { background: rgba(193,140,93,0.15); color: #8B5A1A; }
.risk-pill.high { background: rgba(168,84,72,0.12); color: #7A3028; }
.score-status-text { font-size: 0.85rem; color: var(--muted-fg); line-height: 1.55; }

/* ── Opportunities ── */
.results-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 1.75rem; padding: 1.5rem 1.75rem; margin-bottom: 1.25rem;
}
.results-card-title {
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700;
  color: var(--fg); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.results-card-title .ri {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.ri-orange { background: rgba(193,140,93,0.15); }
.ri-green { background: rgba(93,112,82,0.12); }
.ri-red { background: rgba(168,84,72,0.1); }

.opp-list { display: flex; flex-direction: column; gap: 0.65rem; }
.opp-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 0.7rem 0.9rem; border-radius: 10px;
  background: var(--muted); font-size: 0.875rem; line-height: 1.5; color: var(--fg);
}
.opp-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--secondary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; margin-top: 1px;
}
.opp-text { flex: 1; }
.opp-badge {
  font-size: 0.68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.opp-badge.high { background: rgba(168,84,72,0.12); color: #7A3028; }
.opp-badge.medium { background: rgba(193,140,93,0.15); color: #8B5A1A; }
.opp-badge.low { background: rgba(74,122,82,0.12); color: #3A6642; }
.opp-established-note {
  font-size: 0.8rem;
  color: var(--muted-fg);
  font-style: italic;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(93,112,82,0.06);
  border-radius: 8px;
  line-height: 1.5;
}

/* ── Field checks ── */
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 600px) { .checks-grid { grid-template-columns: 1fr; } }

.check-block {
  border-radius: 12px; border: 1.5px solid var(--border);
  padding: 0.85rem 1rem; background: var(--bg);
}
.check-block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.check-block-name { font-size: 0.8rem; font-weight: 700; color: var(--fg); }
.check-level {
  font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
}
.check-level.strong { background: rgba(74,122,82,0.12); color: #3A6642; }
.check-level.good { background: rgba(122,158,90,0.12); color: #4A6820; }
.check-level.needs_work { background: rgba(168,84,72,0.12); color: #7A3028; }
.check-score-bar {
  height: 5px; border-radius: 999px; background: var(--muted);
  margin-bottom: 0.55rem; overflow: hidden;
}
.check-score-fill { height: 100%; border-radius: 999px; transition: width 0.7s ease; }
.check-score-fill.strong { background: #4A7A52; }
.check-score-fill.good { background: #7A9E5A; }
.check-score-fill.needs_work { background: #A85448; }
.check-signals { display: flex; flex-direction: column; gap: 4px; }
.signal-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.78rem; line-height: 1.45; color: var(--fg);
  margin-bottom: 0.5rem;
}
.signal-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.signal-dot.pass { background: #4A7A52; }
.signal-dot.warn { background: #C18C5D; }
.signal-dot.tip { background: #9a9a8c; }
.signal-dot.fail { background: #A85448; }
.signal-body { display: flex; flex-direction: column; gap: 2px; }
.signal-text { font-weight: 600; color: var(--fg); }
.signal-comment { font-size: 0.74rem; color: var(--muted-fg); line-height: 1.4; }

/* ── Tag Coverage Matrix ── */
.tag-cov-summary {
  font-size: 0.8rem; font-weight: 700; color: var(--muted-fg);
  margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.tag-cov-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.tag-cov-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: var(--muted);
}
.tag-cov-icon {
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; width: 14px;
}
.tag-cov-body { display: flex; flex-direction: column; gap: 2px; }
.tag-cov-label {
  font-size: 0.8rem; font-weight: 700;
}
.tag-cov-label.covered  { color: var(--pass); }
.tag-cov-label.missing  { color: var(--destructive); }
.tag-cov-label.moderate { color: var(--warn); }
.tag-cov-tip { font-size: 0.74rem; color: var(--muted-fg); line-height: 1.4; }
.tag-cov-icon.covered { color: var(--pass); }
.tag-cov-icon.missing  { color: var(--destructive); }
.tag-cov-gap-label {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-fg);
  margin: 0.75rem 0 0.35rem;
}

/* ── CTA ── */
.results-cta {
  background: linear-gradient(135deg, rgba(93,112,82,0.08) 0%, rgba(193,140,93,0.06) 100%);
  border: 1.5px solid rgba(93,112,82,0.2);
  border-radius: 2rem; padding: 2rem; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-text-wrap {}
.cta-headline { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--fg); margin-bottom: 0.35rem; }
.cta-sub { font-size: 0.85rem; color: var(--muted-fg); line-height: 1.55; max-width: 420px; }
.cta-btn-wrap { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-cta-primary {
  background: var(--primary); color: var(--primary-fg);
  border: none; border-radius: 999px; font-weight: 700;
  padding: 0.7rem 1.6rem; font-size: 0.9rem; font-family: var(--font-sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-cta-primary:hover { background: #4A5B41; }
.btn-cta-secondary {
  background: transparent; color: var(--primary);
  border: 1.5px solid rgba(93,112,82,0.35);
  border-radius: 999px; font-weight: 700;
  padding: 0.7rem 1.4rem; font-size: 0.9rem; font-family: var(--font-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-cta-secondary:hover { background: rgba(93,112,82,0.08); }

/* ── Re-analyze ── */
.re-analyze-bar {
  display: flex; justify-content: center; margin-bottom: 2rem;
}
.re-analyze-btn {
  background: transparent; color: var(--muted-fg);
  border: 1.5px solid var(--border); border-radius: 999px;
  padding: 0.5rem 1.4rem; font-size: 0.82rem; font-weight: 700;
  font-family: var(--font-sans); cursor: pointer; transition: all 0.2s;
}
.re-analyze-btn:hover { color: var(--fg); border-color: var(--fg); }

/* ── SEO / GEO layer ── */
.seo-layer {
  background: rgba(240,235,229,0.35);
  border-top: 1px dashed rgba(222,216,207,0.8);
  padding: 4rem 2rem;
}
.seo-inner { max-width: 860px; margin: 0 auto; }
.seo-head { text-align: center; margin-bottom: 2.5rem; }
.seo-kicker {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(93,112,82,0.1); border-radius: 999px;
  padding: 3px 12px; margin-bottom: 0.75rem;
}
.seo-head h2 {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700;
  color: var(--fg); margin-bottom: 0.5rem;
}
.seo-head p { font-size: 0.88rem; color: var(--muted-fg); line-height: 1.6; max-width: 520px; margin: 0 auto; }
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .seo-grid { grid-template-columns: 1fr; } }
.seo-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 1.25rem; padding: 1.4rem 1.5rem;
}
.seo-card.tint { background: rgba(93,112,82,0.04); }
.seo-label {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.5rem;
}
.seo-label.warn { color: var(--warn); }
.seo-card h3 { font-family: var(--font-serif); font-size: 0.98rem; font-weight: 700; color: var(--fg); margin-bottom: 0.5rem; }
.seo-card p, .seo-card li { font-size: 0.82rem; color: var(--muted-fg); line-height: 1.65; }
.seo-list { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 4px; }
.seo-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.seo-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.seo-panel-head .seo-label { margin-bottom: 0; }
.seo-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
}
.seo-check-table {
  display: grid;
  gap: 0.65rem;
}
.seo-check-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  background: var(--muted);
}
.seo-check-row strong {
  font-size: 0.82rem;
  color: var(--fg);
}
.seo-check-row span {
  font-size: 0.82rem;
  color: var(--muted-fg);
  line-height: 1.6;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.example-card {
  background: var(--muted);
  border-radius: 0.9rem;
  padding: 1rem;
}
.example-card h4 {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 0.45rem;
}
.example-card p {
  font-size: 0.8rem;
  color: var(--muted-fg);
  line-height: 1.55;
  margin-bottom: 0.45rem;
}
.example-card p:last-child { margin-bottom: 0; }
.seo-faq { margin-bottom: 2rem; }
.faq-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin: 1.75rem 0 0.35rem;
}
.seo-faq details {
  border-bottom: 1px solid var(--border); padding: 0.9rem 0;
}
.seo-faq summary {
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--fg);
}
.seo-faq summary::after { content: '+'; font-size: 1.1rem; color: var(--muted-fg); }
.seo-faq details[open] summary::after { content: '−'; }
.seo-faq details p { font-size: 0.82rem; color: var(--muted-fg); line-height: 1.65; padding-top: 0.6rem; }
.seo-links { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 2rem; }
.seo-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 5px 14px;
  font-size: 0.8rem; font-weight: 600; color: var(--fg);
  text-decoration: none; transition: all 0.15s;
}
.seo-link:hover { border-color: var(--primary); color: var(--primary); }
.seo-bottom-cta {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 1.5rem; padding: 1.75rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.seo-bottom-cta h3 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--fg); margin-bottom: 0.25rem; }
.seo-bottom-cta p { font-size: 0.82rem; color: var(--muted-fg); }

/* ── Footer ── */
.site-footer {
  border-top: 1px dashed rgba(222,216,207,0.8);
  background: rgba(240,235,229,0.4);
  font-family: var(--font-sans);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 52px 40px 28px;
  display: grid; grid-template-columns: minmax(220px,1.4fr) repeat(3,1fr); gap: 40px;
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 36px 24px 20px; }
}
.footer-brand p { color: var(--muted-fg); font-size: 14px; line-height: 1.6; max-width: 260px; margin: 0; }
.footer-col-head { font-weight: 700; font-size: 14px; color: var(--fg); margin-bottom: 14px; }
.footer-link { display: block; color: var(--muted-fg); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.15s; }
.footer-link:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid rgba(222,216,207,0.6);
  color: #9a9a8c; font-size: 13px;
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: white;
  border-radius: 999px; padding: 0.5rem 1.2rem;
  font-size: 0.82rem; font-weight: 600; pointer-events: none;
  opacity: 0; transition: all 0.3s; z-index: 9000; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── URL Import Tab Strip ── */
.url-tab-strip {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.url-tab {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.url-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}
.url-tab.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* ── URL Import Row ── */
.url-import-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.url-import-input {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.url-import-btn {
  padding: 0.65rem 1.4rem;
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: var(--font-sans);
}
.url-import-btn:hover { background: #4A5B41; }
.url-import-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── URL Import Status ── */
.url-import-status {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
}
.url-import-status.loading {
  background: var(--muted);
  color: var(--muted-fg);
}
.url-import-status.error {
  background: #fef2f0;
  color: var(--destructive);
  border: 1px solid #f5c3bb;
}
.url-import-status.success {
  background: #f0f5f0;
  color: var(--pass);
  border: 1px solid #c3d9c5;
}

/* ── Snapshot Preview ── */
.url-snapshot {
  margin-top: 1rem;
  border-top: 1.5px solid var(--border);
  padding-top: 1rem;
}
.snapshot-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
  margin-bottom: 0.35rem;
}
.snapshot-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 0.85rem;
}
.snapshot-desc {
  font-size: 0.82rem;
  color: var(--muted-fg);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  position: relative;
}
.snapshot-desc-text {
  overflow: hidden;
  max-height: 4.5em; /* ~3 lines */
  line-height: 1.5;
}
.snapshot-desc-text.expanded {
  max-height: none;
}
.snapshot-desc-toggle {
  font-size: 0.78rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.2rem;
}
.snapshot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.snapshot-tag-pill {
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.snapshot-images {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.snapshot-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--border);
}

/* ── Market Signals Card ── */
.mv-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1.75rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.mv-header { margin-bottom: 1rem; }
.mv-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mv-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-fg);
}
.mv-badge {
  font-size: 0.78rem; font-weight: 700; padding: 3px 12px;
  border-radius: 999px;
}
.mv-top    { background: rgba(74,122,82,0.15);  color: #2D6638; }
.mv-strong { background: rgba(93,140,82,0.12);  color: #3A6642; }
.mv-good   { background: rgba(193,140,93,0.15); color: #8B5A1A; }
.mv-early  { background: rgba(150,150,130,0.12); color: #5A5A50; }
.mv-stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.mv-stat {
  display: flex; align-items: center; gap: 0.55rem;
}
.mv-stat-est { flex-basis: 100%; }
.mv-stat-icon { font-size: 1.2rem; flex-shrink: 0; }
.mv-stat-val { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--fg); line-height: 1.1; }
.mv-stat-key { font-size: 0.72rem; color: var(--muted-fg); font-weight: 600; }
.mv-est-note { font-weight: 400; font-size: 0.68rem; }
.mv-bar-wrap { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.65rem; }
.mv-bar-track {
  flex: 1; height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden;
}
.mv-bar-fill {
  height: 100%; border-radius: 999px; transition: width 0.8s ease;
}
.mv-bar-fill.mv-top    { background: #4A7A52; }
.mv-bar-fill.mv-strong { background: #7A9E5A; }
.mv-bar-fill.mv-good   { background: #C18C5D; }
.mv-bar-fill.mv-early  { background: #9a9a8c; }
.mv-bar-label { font-size: 0.72rem; font-weight: 700; color: var(--muted-fg); white-space: nowrap; }
.mv-disclaimer { font-size: 0.7rem; color: var(--muted-fg); line-height: 1.5; font-style: italic; }
.mv-est-tooltip {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--muted-fg); cursor: help;
  border: 1px solid var(--border); border-radius: 50%;
  width: 13px; height: 13px; line-height: 1; font-style: normal;
  margin-left: 2px; vertical-align: middle;
}

/* ── Score verdict + inline CTA ── */
.score-verdict {
  font-size: 0.87rem; color: var(--muted-fg); line-height: 1.55;
  margin-bottom: 1rem;
}
.score-inline-cta {
  display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center;
}

/* ── Show original toggle ── */
.show-original-btn {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 700; color: var(--primary);
  background: none; border: none; cursor: pointer; padding: 0;
  margin-top: 0.6rem; font-family: var(--font-sans);
}
.show-original-btn:hover { text-decoration: underline; }

/* ── Analyzed summary line ── */
.analyzed-summary {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Opp anchor button ── */
.opp-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.opp-anchor-btn {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  background: rgba(93,112,82,0.1); border: none; border-radius: 999px;
  padding: 2px 9px; cursor: pointer; font-family: var(--font-sans);
  transition: background 0.15s; white-space: nowrap;
}
.opp-anchor-btn:hover { background: rgba(93,112,82,0.18); }
.opp-none { font-size: 0.85rem; color: var(--muted-fg); }

/* ── Review Sections (accordion) ── */
.review-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1.75rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.accordion-header {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.75rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); text-align: left;
  transition: background 0.15s;
}
.accordion-header:hover { background: rgba(93,112,82,0.04); }
.accordion-header-right { display: flex; align-items: center; gap: 0.65rem; }
.accordion-chevron { font-size: 0.75rem; color: var(--muted-fg); flex-shrink: 0; }
.accordion-issue-count {
  font-size: 0.72rem; font-weight: 700; padding: 2px 9px;
  border-radius: 999px;
}
.accordion-issue-count.has-issues { background: rgba(168,84,72,0.1); color: #7A3028; }
.accordion-issue-count.no-issues  { background: rgba(74,122,82,0.1);  color: #3A6642; }

.accordion-body {
  display: none;
  padding: 0 1.75rem 1.4rem;
  border-top: 1px solid var(--border);
}
.accordion-body.open { display: block; }

.review-section-label {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-fg);
}
.review-grade {
  font-size: 0.8rem; font-weight: 700; padding: 3px 11px; border-radius: 999px;
}
.review-grade.strong     { background: rgba(74,122,82,0.12);  color: #3A6642; }
.review-grade.good       { background: rgba(193,140,93,0.15); color: #8B5A1A; }
.review-grade.needs_work { background: rgba(168,84,72,0.12);  color: #7A3028; }

.review-content-box {
  background: var(--muted); border-radius: 0.75rem;
  padding: 0.75rem 1rem; margin: 0.75rem 0;
  font-size: 0.87rem; color: var(--fg); line-height: 1.55; word-break: break-word;
}
.review-value-text { color: var(--fg); }
.review-empty { color: var(--muted-fg); font-style: italic; font-size: 0.82rem; }
.review-tags-wrap { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Description stats strip */
.review-desc-stats {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.desc-stat {
  background: var(--surface2); border-radius: 999px;
  padding: 2px 10px; font-size: 0.75rem; font-weight: 700; color: var(--muted-fg);
}

.review-signals { display: flex; flex-direction: column; gap: 0; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 2rem 1.25rem 0; }
  .tool-wrap { padding: 0 1.25rem 2rem; }
  #results-section { padding: 0 1.25rem 2rem; }
  .results-top { grid-template-columns: 1fr; }
  .results-cta { flex-direction: column; }
  .seo-layer { padding: 3rem 1.25rem; }
  .site-nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .seo-panel-head { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .seo-check-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .example-grid { grid-template-columns: 1fr; }
}
