:root {
  --bg: #f4f7f5;
  --ink: #10231d;
  --ink-soft: #3d534b;
  --muted: #6b8078;
  --line: #d5e0db;
  --card: #ffffff;
  --teal: #0f766e;
  --teal-2: #0d9488;
  --teal-dark: #115e59;
  --mint: #ecfdf5;
  --mint-2: #d1fae5;
  --ai: #dc2626;
  --ai-bg: #fef2f2;
  --mixed: #d97706;
  --mixed-bg: #fffbeb;
  --human: #059669;
  --human-bg: #ecfdf5;
  --shadow: 0 18px 50px rgba(16, 35, 29, 0.08);
  --radius: 18px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.nav, .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(244, 247, 245, 0.94);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled, .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.nav-inner, .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}
.brand, a.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  width: auto;
  height: auto;
  background: transparent;
}
.brand:hover, a.logo:hover {
  opacity: 0.95;
}
.brand .logo, span.logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-shield {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-dark);
  font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  gap: 4px;
  transition: background-color 0.15s, border-color 0.15s;
}
.nav-toggle:hover {
  background: var(--mint);
  border-color: var(--teal);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.btn {
  border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; transition: background-color 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #ffffff !important; }
.btn-primary:hover { background: var(--teal-dark); color: #ffffff !important; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f1f5f3; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero { padding: 48px 0 24px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--teal-dark);
  border: 1px solid var(--mint-2); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 600;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 800;
  margin: 18px 0 12px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero p.lead { max-width: 100%; margin: 0 auto; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }

.analyzer {
  margin: 36px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.tabs {
  display: flex; gap: 6px; padding: 14px 16px 0;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: transparent; border: 0; color: var(--muted);
  padding: 12px 14px; font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.panel { padding: 16px; display: none; }
.panel.active { display: block; }
textarea {
  width: 100%; min-height: 240px; resize: vertical;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; font-size: 15px; line-height: 1.65; color: var(--ink);
  outline: none; background: #fbfcfb;
}
textarea:focus, input:focus { border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1); }
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.counter { color: var(--muted); font-size: 13px; font-weight: 600; }
.counter.warn { color: var(--ai); }
.check {
  display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px;
}
.check input { accent-color: var(--teal); }
.error {
  margin: 0 16px 16px; background: var(--ai-bg); color: #991b1b;
  border-radius: 12px; padding: 10px 12px; font-size: 14px;
  display: none;
}
.error.show { display: block; }

/* Scanner Animation State */
.scanner-view {
  padding: 24px 16px 32px;
  animation: fadeIn 0.3s ease;
}
.scanner-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(15, 118, 110, 0.07);
}
.scanner-radar {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.radar-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.2);
  animation: radar-pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.radar-pulse.outer {
  animation-delay: 0.75s;
}
.radar-core {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.scanner-title {
  font-size: 24px;
  font-weight: 750;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.scanner-status {
  font-size: 14px;
  color: var(--teal-dark);
  font-weight: 600;
  margin: 0 0 18px;
  min-height: 22px;
}
.scanner-bar-wrap {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}
.scanner-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0d9488, #14b8a6, #2dd4bf);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.4);
}
.scanner-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
}
.scanner-pct {
  font-size: 14px;
  font-weight: 750;
  color: var(--teal-dark);
}
.scanner-model-tag {
  background: var(--mint);
  color: var(--teal-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}
.scanner-telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}
.tel-item {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.tel-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.tel-item.active {
  color: var(--teal-dark);
  font-weight: 650;
  border-color: var(--teal);
  background: #f0fdfa;
}
.tel-item.active .tel-icon {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.6);
}
.tel-item.done {
  color: #065f46;
  font-weight: 600;
  border-color: #a7f3d0;
  background: #f0fdf4;
}
.tel-item.done .tel-icon {
  background: #059669;
}
.scanner-preview {
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  padding: 14px 16px;
  overflow: hidden;
  height: 60px;
  display: flex;
  align-items: center;
}
.scanner-snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.scanner-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2dd4bf, #14b8a6, transparent);
  box-shadow: 0 0 12px #2dd4bf;
  animation: scan-beam 1.8s ease-in-out infinite;
}
@keyframes radar-pulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes scan-beam {
  0% { top: 0%; opacity: 0.3; }
  50% { top: 96%; opacity: 1; }
  100% { top: 0%; opacity: 0.3; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Premium Results View */
.results {
  padding: 16px 20px 28px;
  display: none;
  gap: 20px;
  animation: fadeIn 0.35s ease;
}
.results.show { display: grid; }

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.results-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-id-badge {
  font-size: 12px;
  font-weight: 650;
  color: var(--teal-dark);
  background: var(--mint);
  padding: 4px 10px;
  border-radius: 999px;
}
.results-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Result Showcase Card */
.result-showcase {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.result-showcase.ai {
  border-color: #fecaca;
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.07);
}
.result-showcase.likely {
  border-color: #fed7aa;
  box-shadow: 0 4px 24px rgba(234, 88, 12, 0.07);
}
.result-showcase.mixed {
  border-color: #fde68a;
  box-shadow: 0 4px 24px rgba(217, 119, 6, 0.07);
}
.result-showcase.human {
  border-color: #a7f3d0;
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.07);
}

.showcase-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gauge-sub {
  font-size: 11px;
  font-weight: 750;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}
.gauge-ring-outer {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.gauge-ring-inner {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.04);
}
.gauge-val {
  font-size: 38px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
.gauge-percent {
  font-size: 0.52em;
  font-weight: 750;
  margin-left: 2px;
  opacity: 0.9;
}
.verdict-pill-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.verdict-pill-badge.ai { background: #fee2e2; color: #991b1b; }
.verdict-pill-badge.likely { background: #ffedd5; color: #9a3412; }
.verdict-pill-badge.mixed { background: #fef3c7; color: #92400e; }
.verdict-pill-badge.human { background: #d1fae5; color: #065f46; }

.verdict-pill-badge svg,
.showcase-title svg,
.tier-verdict-pill svg,
.sib-badge svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.showcase-title {
  margin: 0;
  font-size: 26px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.showcase-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.detector-summary-copy {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
  color: var(--ink);
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 3.5px solid var(--accent, #6366f1);
  border-radius: 8px;
}

/* Dual Probability Bar */
.prob-balance {
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0;
}
.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.prob-lbl-ai { color: #dc2626; font-weight: 600; }
.prob-lbl-human { color: #059669; font-weight: 600; }
.prob-bar-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}
.prob-bar-ai {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  transition: width 0.6s ease;
}
.prob-bar-human {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.6s ease;
}

/* Quick Stats Row */
.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.qs-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.qs-label {
  display: block;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.qs-val {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
}

/* Diagnostic Metrics Grid */
.metrics-section-title {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
}
.metrics-grid, .engines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.metric-card, .engine {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.metric-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-card small, .engine small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.metric-score-val {
  font-size: 20px;
  font-weight: 800;
}
.metric-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin: 2px 0;
}
.metric-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.metric-card span, .engine span {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Heatmap Section */
.heat-section {
  display: grid;
  gap: 12px;
}
.heat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.heat-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  color: var(--ink);
}
.heat-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.heat-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.filter-btn.active {
  background: var(--teal-dark);
  color: #fff;
  border-color: var(--teal-dark);
}

.heat { display: grid; gap: 10px; }
.sentence {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid transparent;
  background: #fff;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.sentence.ai {
  background: #fffafa;
  border-color: #fecaca;
  border-left: 4px solid #dc2626;
}
.sentence.mixed {
  background: #fffdf5;
  border-color: #fde68a;
  border-left: 4px solid #d97706;
}
.sentence.human {
  background: #f7fdfa;
  border-color: #a7f3d0;
  border-left: 4px solid #059669;
}
.sentence.hidden-by-filter {
  display: none !important;
}

.sentence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}
.sentence-score-pill {
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 6px;
}
.sentence-score-pill.ai { background: #fee2e2; color: #991b1b; }
.sentence-score-pill.mixed { background: #fef3c7; color: #92400e; }
.sentence-score-pill.human { background: #d1fae5; color: #065f46; }

.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 600; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.ai { background: var(--ai); }
.dot.likely { background: #ea580c; }
.dot.mixed { background: var(--mixed); }
.dot.human { background: var(--human); }

/* Full Document Paragraph Audit Card */
.document-canvas-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}

.document-canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 22px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.canvas-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.canvas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.canvas-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.sentence-inspector-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  min-height: 24px;
  transition: all 0.2s ease;
}

.sentence-inspector-bar.is-ai {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}
.sentence-inspector-bar.is-mixed {
  background: #fffbeb;
  border-bottom-color: #fde68a;
}
.sentence-inspector-bar.is-human {
  background: #f0fdf4;
  border-bottom-color: #bbf7d0;
}

.sib-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.sentence-inspector-bar.is-ai .sib-badge {
  background: #fee2e2;
  color: #991b1b;
}
.sentence-inspector-bar.is-likely .sib-badge {
  background: #ffedd5;
  color: #9a3412;
}
.sentence-inspector-bar.is-mixed .sib-badge {
  background: #fef3c7;
  color: #92400e;
}
.sentence-inspector-bar.is-human .sib-badge {
  background: #dcfce7;
  color: #166534;
}

.sib-text {
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-paragraphs-view {
  padding: 32px 36px;
  font-size: 16px;
  line-height: 1.85;
  color: #1e293b;
  background: #fff;
  min-height: 160px;
}

.document-para {
  margin: 0 0 22px 0;
  line-height: 1.9;
  letter-spacing: -0.005em;
}
.document-para:last-child {
  margin-bottom: 0;
}

/* Highlighted Sentence Spans inside Paragraphs */
.hl-sentence {
  display: inline;
  border-radius: 4px;
  padding: 2px 3px;
  margin: 0 1px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.2s ease, box-shadow 0.15s ease;
  position: relative;
}

.hl-sentence.hl-ai {
  background: rgba(239, 68, 68, 0.15);
  border-bottom: 2.5px solid #dc2626;
  color: #111827;
}
.hl-sentence.hl-ai:hover, .hl-sentence.hl-ai.active {
  background: rgba(239, 68, 68, 0.28);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

.hl-sentence.hl-likely {
  background: rgba(234, 88, 12, 0.15);
  border-bottom: 2.5px solid #ea580c;
  color: #111827;
}
.hl-sentence.hl-likely:hover, .hl-sentence.hl-likely.active {
  background: rgba(234, 88, 12, 0.28);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.hl-sentence.hl-mixed {
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 2.5px solid #d97706;
  color: #111827;
}
.hl-sentence.hl-mixed:hover, .hl-sentence.hl-mixed.active {
  background: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

.hl-sentence.hl-human {
  background: transparent;
  color: #1e293b;
  border-bottom: 2px solid transparent;
}
.hl-sentence.hl-human:hover, .hl-sentence.hl-human.active {
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 2px solid #059669;
}

/* Dimmed state when filtering */
.document-paragraphs-view.filter-ai .hl-sentence:not(.hl-ai) {
  opacity: 0.22;
}
.document-paragraphs-view.filter-likely .hl-sentence:not(.hl-likely) {
  opacity: 0.22;
}
.document-paragraphs-view.filter-mixed .hl-sentence:not(.hl-mixed) {
  opacity: 0.22;
}
.document-paragraphs-view.filter-human .hl-sentence:not(.hl-human) {
  opacity: 0.22;
}
.document-paragraphs-view.filter-signal .hl-sentence:not(.has-signal) {
  opacity: 0.18;
}

/* CleverHumanizer Signal Chips */
.ai-reasons {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 14px;
}
.ai-reasons .chips-heading {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-reasons .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sig-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  text-decoration: none;
}
.sig-chip:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}
.sig-chip.active {
  box-shadow: 0 0 0 2px currentColor;
  font-weight: 750;
}
.sig-chip.sc-ai {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1.5px solid rgba(220, 38, 38, 0.25);
}
.sig-chip.sc-likely {
  background: rgba(234, 88, 12, 0.08);
  color: #ea580c;
  border: 1.5px solid rgba(234, 88, 12, 0.25);
}
.sig-chip.sc-mixed {
  background: rgba(217, 119, 6, 0.08);
  color: #d97706;
  border: 1.5px solid rgba(217, 119, 6, 0.25);
}
.sig-chip.sc-human {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border: 1.5px solid rgba(5, 150, 105, 0.25);
}
.sig-chip .sig-chip-ic {
  font-size: 11px;
  opacity: 0.8;
}

.results-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 42px 0 8px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  text-align: center;
}
.stat b { display: block; font-size: 28px; color: var(--teal-dark); }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ============================================================
   ELEVATED SECTIONS & DESIGN SYSTEM (How it Works till Footer)
   ============================================================ */

.section {
  padding: 88px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 100%;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--teal-dark);
  border: 1px solid rgba(15, 118, 110, 0.16);
  margin-bottom: 14px;
}

.section-badge svg {
  width: 14px;
  height: 14px;
}

.section h2 {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section .sub {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 auto;
}

/* --- Dual Comparison Cards (How AI Detection Works) --- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.compare-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 35, 29, 0.08);
}

.compare-card.human {
  border-top: 5px solid #059669;
}

.compare-card.ai {
  border-top: 5px solid #dc2626;
}

.compare-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}

.compare-title {
  font-size: 21px;
  font-family: var(--font-heading);
  font-weight: 750;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.compare-pill {
  font-size: 11px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.compare-pill.human {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.compare-pill.ai {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.compare-metric-lead {
  font-size: 32px;
  font-weight: 800;
  margin: 4px 0 10px;
  letter-spacing: -0.02em;
}

.compare-metric-lead.human { color: #059669; }
.compare-metric-lead.ai { color: #dc2626; }

.compare-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Rhythm Waveform Visualizer */
.waveform-box {
  background: #f8faf9;
  border: 1px solid #e5ede9;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.waveform-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 12px;
}

.waveform-bars {
  display: flex;
  align-items: flex-end;
  height: 64px;
  gap: 7px;
  padding: 4px 0;
}

.waveform-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}

.waveform-bar.human {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.waveform-bar.ai {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.compare-traits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.compare-traits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
}

.compare-traits li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Core Stylometric Diagnostic Signals (4-Grid) --- */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.signal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signal-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-2);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.08);
}

.signal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.signal-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
}

.signal-math-badge {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  background: #f1f5f3;
  color: var(--ink-soft);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.signal-title {
  font-size: 18px;
  font-weight: 750;
  margin: 0 0 8px;
  color: var(--ink);
}

.signal-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.signal-footer {
  padding-top: 14px;
  border-top: 1px solid #f1f5f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.signal-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Sentence Heatmap Showcase Section --- */
.heatmap-showcase-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.mock-inspector-window {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(16, 35, 29, 0.06);
  display: flex;
  flex-direction: column;
}

.inspector-window-bar {
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inspector-dots {
  display: flex;
  gap: 6px;
}

.inspector-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.inspector-dot.red { background: #f87171; }
.inspector-dot.yellow { background: #fbbf24; }
.inspector-dot.green { background: #34d399; }

.inspector-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.inspector-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.inspector-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.heatmap-features-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.heatmap-feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.heatmap-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-2);
}

.hf-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hf-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hf-title {
  font-size: 16px;
  font-weight: 750;
  margin: 0;
  color: var(--ink);
}

.hf-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* --- Industry Applications Grid --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 35, 29, 0.07);
}

.ind-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f1f8f5;
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.ind-title {
  font-size: 19px;
  font-family: var(--font-heading);
  font-weight: 750;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}

.ind-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 18px;
  flex-grow: 1;
}

.ind-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.ind-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.ind-bullets li svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex-shrink: 0;
}

/* --- Score Guide Spectrum & Tier Cards --- */
.spectrum-bar-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

.spectrum-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669 0%, #10b981 35%, #d97706 50%, #f59e0b 68%, #dc2626 100%);
  position: relative;
  margin: 12px 0 16px;
}

.spectrum-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.tier-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-card.ai { border-top: 4px solid #dc2626; }
.tier-card.likely { border-top: 4px solid #ea580c; }
.tier-card.mixed { border-top: 4px solid #d97706; }
.tier-card.human { border-top: 4px solid #059669; }

.tier-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tier-range {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.tier-verdict-pill {
  font-size: 11px;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 999px;
}
.tier-verdict-pill.ai { background: #fee2e2; color: #991b1b; }
.tier-verdict-pill.likely { background: #ffedd5; color: #9a3412; }
.tier-verdict-pill.mixed { background: #fef3c7; color: #92400e; }
.tier-verdict-pill.human { background: #d1fae5; color: #065f46; }

.tier-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.tier-action-box {
  background: #f8faf9;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.45;
  border-left: 3px solid var(--teal);
}

/* --- Diagnostic Metrics Overview Matrix --- */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.matrix-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.matrix-card h4 {
  font-size: 16px;
  font-weight: 750;
  margin: 0 0 8px;
  color: var(--ink);
}

.matrix-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: block;
}

.matrix-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 12px;
  flex-grow: 1;
}

.matrix-indicators {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  padding-top: 10px;
  border-top: 1px solid #f1f5f3;
}

/* --- FAQ Accordion (Single Column: 1 Question per Line) --- */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  width: 100%;
}

.faq-card:hover {
  border-color: var(--teal-2);
}

.faq-card[open] {
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.08);
}

.faq-card summary {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

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

.faq-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--teal);
}

.faq-card[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #f1f5f3;
}

/* --- Elevated CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #09332c 0%, #0f5247 45%, #115e59 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 64px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 118, 110, 0.2);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
  position: relative;
}

.cta-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  position: relative;
}

.cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-btn-pro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0f5247;
  font-size: 15px;
  font-weight: 750;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  color: #064036;
}

/* --- Enterprise Footer --- */
.footer-pro {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  margin-top: 48px;
}

.footer-pro-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand-col p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 14px 0 20px;
  max-width: 320px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links li,
.footer-links li a {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-links li a {
  text-decoration: none;
}

.footer-links li a:hover {
  color: var(--teal-dark);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid #eef2f0;
  font-size: 13px;
  color: var(--muted);
}

.pad-bottom { padding-bottom: 72px; }
.mt-12 { margin-top: 12px; }

@media (max-width: 1080px) {
  .nav-toggle { display: flex !important; }
  .nav-actions .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    padding: 18px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 999;
  }
  .nav-links.active {
    display: flex !important;
  }
  .nav-links a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink);
  }
  .nav-links a:hover {
    background: var(--mint);
  }
  .nav-links a.active {
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal-dark);
  }
  .metrics-grid, .engines, .stats, .split, .grid-4, .result-head, .result-showcase { grid-template-columns: 1fr; }
  .quick-stats-row { grid-template-columns: repeat(3, 1fr); }
  .scanner-telemetry { grid-template-columns: 1fr; }
  .compare-grid, .signals-grid, .industry-grid, .tier-grid, .matrix-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
  .heatmap-showcase-wrap {
    grid-template-columns: 1fr;
  }
  .footer-pro-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .quick-stats-row { grid-template-columns: repeat(2, 1fr); }
  .results-header, .results-footer-bar { flex-direction: column; align-items: stretch; }
  .results-actions { justify-content: stretch; }
  .results-actions .btn { flex: 1; text-align: center; justify-content: center; }
  .footer-pro-grid {
    grid-template-columns: 1fr;
  }
  .spectrum-labels {
    font-size: 10px;
  }
  .cta-banner {
    padding: 44px 20px;
  }
}

mark.ai-phrase-mark {
  background: rgba(220, 38, 38, 0.16);
  color: #991b1b;
  font-weight: 600;
  border-radius: 4px;
  padding: 1px 4px;
}

/* My Scans Tab & History Styling */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--mint);
  color: var(--teal-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  border: 1px solid var(--mint-2);
}
.tab.active .tab-badge {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal-dark);
}
.scans-empty-state {
  text-align: center;
  padding: 44px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.scans-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #f1f5f9;
  color: #94a3b8;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.scans-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.scans-empty-state p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.scans-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.scans-toolbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}
.scans-count-pill {
  padding: 2px 8px;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.scans-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}
.scan-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scan-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
}
.scan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.scan-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.scan-score-badge.ai {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}
.scan-score-badge.likely {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.2);
}
.scan-score-badge.mixed {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.scan-score-badge.human {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.scan-meta-info {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.scan-card-preview {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #cbd5e1;
}
.scan-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}
.btn-sm {
  padding: 6px 12px !important;
  font-size: 12.5px !important;
}

/* --- Legal & Content Pages (GDPR, AdSense, Terms, Privacy) --- */
.legal-wrap {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.legal-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.legal-header h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 10px;
}
.legal-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.legal-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.legal-body h2 {
  font-size: 22px;
  font-weight: 750;
  color: var(--ink);
  margin: 36px 0 14px;
  letter-spacing: -0.015em;
}
.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}
.legal-body p {
  margin: 0 0 18px;
}
.legal-body ul, .legal-body ol {
  margin: 0 0 20px 24px;
  padding: 0;
}
.legal-body li {
  margin-bottom: 8px;
}
.legal-body a:not(.btn) {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:not(.btn):hover {
  color: var(--teal-dark);
}
.legal-body .btn-primary {
  color: #ffffff !important;
  background: var(--teal) !important;
  text-decoration: none !important;
}
.legal-body .btn-primary:hover {
  color: #ffffff !important;
  background: var(--teal-dark) !important;
}
.legal-callout {
  background: #f8fafc;
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}
.legal-callout.privacy {
  border-left-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}
.legal-callout.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 13.5px;
}
.legal-table th, .legal-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.legal-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.contact-form .form-group {
  margin-bottom: 16px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--ink);
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Guide & How-To Page Styles --- */
.guide-figure {
  margin: 28px 0 36px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 118, 110, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-figure:hover {
  box-shadow: 0 12px 36px rgba(15, 118, 110, 0.1), 0 4px 10px rgba(0, 0, 0, 0.04);
}
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #f1f5f9;
}
.guide-figure figcaption {
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: #fbfcfd;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.guide-figure figcaption strong {
  color: var(--ink);
}
.guide-step {
  display: flex;
  gap: 20px;
  margin: 40px 0 24px;
  align-items: flex-start;
}
.guide-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  margin-top: 2px;
}
.guide-step-content {
  flex: 1;
}
.guide-step-content h2 {
  margin-top: 0 !important;
  padding-top: 4px;
}
@media (max-width: 640px) {
  .guide-step {
    flex-direction: column;
    gap: 12px;
  }
}
.guide-toc {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 28px 0 36px;
}
.guide-toc-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  gap: 24px;
}
@media (max-width: 680px) {
  .guide-toc ol {
    columns: 1;
  }
}
.guide-toc li {
  margin-bottom: 8px;
  font-size: 14px;
}
.guide-toc a {
  color: var(--teal) !important;
  text-decoration: none !important;
  font-weight: 550;
}
.guide-toc a:hover {
  text-decoration: none !important;
  color: var(--teal-dark) !important;
}

/* --- Blog Hub & Article Styles --- */
.blog-hero {
  text-align: center;
  padding: 44px 0 24px;
}
.blog-hero h1 {
  font-size: clamp(34px, 4.5vw, 50px);
  margin: 12px 0 16px;
  line-height: 1.15;
}
.blog-hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin: 40px 0 64px;
}
.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
  border-color: #cbd5e1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.blog-category-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-read-time {
  font-size: 12.5px;
  color: var(--muted);
}
.blog-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.35;
  color: var(--ink);
}
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card h3 a:hover {
  color: var(--teal);
}
.blog-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 18px;
  flex-grow: 1;
}
.blog-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card-link:hover {
  color: var(--teal-dark);
}

/* Article Page Enhancements */
.article-breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.article-breadcrumbs a {
  color: var(--teal);
  text-decoration: none;
}
.article-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Quick Tool Specs Table */
.tool-specs-table-wrap {
  margin: 24px 0 32px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  background: #ffffff;
}
.tool-specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}
.tool-specs-table th {
  width: 220px;
  padding: 14px 20px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.tool-specs-table td {
  padding: 14px 20px;
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.tool-specs-table tr:last-child th,
.tool-specs-table tr:last-child td {
  border-bottom: none;
}
.tool-specs-table tr:hover th,
.tool-specs-table tr:hover td {
  background: rgba(13, 148, 136, 0.025);
}
@media (max-width: 640px) {
  .tool-specs-table th, .tool-specs-table td {
    padding: 12px 14px;
    font-size: 13.5px;
  }
  .tool-specs-table th {
    width: 130px;
    white-space: normal;
  }
}

.article-tool-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0 32px;
}
.article-tool-item {
  font-size: 13.5px;
}
.article-tool-item strong {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
@media (max-width: 640px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}
.pros-box, .cons-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--line);
}
.pros-box {
  border-top: 4px solid #16a34a;
}
.cons-box {
  border-top: 4px solid #dc2626;
}
.pros-box h4, .cons-box h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pros-box h4 { color: #166534; }
.cons-box h4 { color: #991b1b; }
.pros-box ul, .cons-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
}
.pros-box li, .cons-box li { margin-bottom: 6px; }
.article-detector-cta {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 26px;
  margin: 36px 0;
  text-align: center;
}
.article-detector-cta h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #166534;
}
.article-detector-cta p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: #15803d;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   TABLE OF CONTENTS (TOC) COMPONENT
   ============================================================ */
.article-toc {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 28px 0 36px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}
.article-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.article-toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.article-toc-title svg {
  color: var(--teal);
}
.article-toc-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 18px;
}
.article-toc-item {
  margin: 0;
}
.article-toc-item a,
.article-toc-item a:hover,
.article-toc-item a:focus,
.article-toc-item a:visited,
.article-toc a,
.article-toc a:hover,
.article-toc a:focus,
.article-toc a:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none !important;
  transition: all 0.18s ease;
}
.article-toc-item a:hover {
  background: rgba(13, 148, 136, 0.06);
  color: var(--teal);
  text-decoration: none !important;
  transform: translateX(3px);
}
.article-toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.article-toc-item a:hover .article-toc-num {
  background: var(--teal);
  color: #ffffff;
}
.legal-body h2[id] {
  scroll-margin-top: 88px;
}

/* ============================================================
   2-COLUMN ARTICLE LAYOUT: TOC ON LEFT, MAIN CONTENT ON RIGHT
   ============================================================ */
.article-wrap {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 0 80px;
}
.article-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 14px 0 12px;
}
.article-subtitle {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 100%;
  margin: 0 0 20px;
}

/* Polished Article Meta Bar & Badges */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}
.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}
.article-meta-item:hover {
  border-color: #cbd5e1;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}
.article-meta-item svg {
  color: var(--teal);
  stroke: var(--teal);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
/* Highlighted Model/Feature Badge */
.article-meta-item:last-child {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(20, 184, 166, 0.06) 100%);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: var(--teal-dark) !important;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.article-meta-item:last-child:hover {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.18) 0%, rgba(20, 184, 166, 0.1) 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.15);
}
.article-meta-item:last-child svg {
  color: var(--teal-dark);
  stroke: var(--teal-dark);
  fill: rgba(13, 148, 136, 0.2);
}
@media (max-width: 640px) {
  .article-meta-bar {
    padding: 8px;
    gap: 8px;
  }
  .article-meta-item {
    font-size: 12px;
    padding: 5px 10px;
  }
}
.article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.article-sidebar {
  width: 290px;
  flex-shrink: 0;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.article-sidebar .article-toc {
  margin: 0;
  padding: 20px;
}
.article-sidebar .article-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-main-content {
  flex: 1;
  min-width: 0;
}
.article-hero-thumbnail {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 28px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.article-hero-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Blog Card Thumbnail */
.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: #0f172a;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.03);
}

@media (max-width: 960px) {
  .article-layout {
    flex-direction: column;
  }
  .article-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    margin-bottom: 28px;
  }
  .article-sidebar .article-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 12px;
  }
}

/* --- Blog Category Navigation Filter Bar --- */
.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px auto 40px;
  max-width: 1080px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.blog-filter-btn:hover {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.2);
  transform: translateY(-1px);
}
.blog-filter-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-color: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}
.blog-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  transition: all 0.2s ease;
}
.blog-filter-btn:hover .blog-filter-count {
  background: rgba(13, 148, 136, 0.15);
  color: var(--teal);
}
.blog-filter-btn.active .blog-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

@media (max-width: 768px) {
  .blog-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-radius: 14px;
    padding: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .blog-filter-bar::-webkit-scrollbar {
    display: none;
  }
}

/* --- Pros & Cons Section Styles --- */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.pros-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 24px;
}
.cons-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 24px;
}
.pros-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #166534;
  font-size: 17px;
  margin-top: 0;
  margin-bottom: 14px;
}
.cons-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #991b1b;
  font-size: 17px;
  margin-top: 0;
  margin-bottom: 14px;
}
.pros-card ul, .cons-card ul {
  margin: 0;
  padding-left: 20px;
}
.pros-card li {
  margin-bottom: 10px;
  color: #14532d;
  font-size: 14.5px;
  line-height: 1.55;
}
.cons-card li {
  margin-bottom: 10px;
  color: #7f1d1d;
  font-size: 14.5px;
  line-height: 1.55;
}

/* --- FAQ Section Styles --- */
.faq-section {
  margin: 36px 0;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.faq-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-answer {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  padding-left: 36px;
}

/* --- SEO & Feature Component Extensions --- */
.seo-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.seo-section-head {
  text-align: center;
  max-width: 100%;
  margin: 0 auto 36px;
}
.seo-section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 12px;
  line-height: 1.25;
}
.seo-section-head p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Feature 3-col Grid */
.seo-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.seo-feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.seo-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.08);
  border-color: #cbd5e1;
}
.seo-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal);
  margin-bottom: 18px;
}
.seo-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.seo-feature-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin: 32px 0;
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.comparison-table th {
  background: #f8fafc;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr.highlight-row {
  background: rgba(13, 148, 136, 0.03);
}
.comparison-table td.highlight-cell {
  background: rgba(13, 148, 136, 0.07);
  font-weight: 700;
  color: var(--teal-dark);
}
.comparison-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.comparison-badge.free {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.comparison-badge.paid {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Essay Guide Grid */
.essay-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.essay-tip-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  border-left: 4px solid var(--teal);
}
.essay-tip-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.essay-tip-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* Model Chips */
.models-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}
.model-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease;
}
.model-chip:hover {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.05);
  color: var(--teal-dark);
}
.model-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* Blog & Global site-footer Styles */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 64px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.footer-brand {
  max-width: 360px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.footer-links-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-col ul li a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links-col ul li a:hover {
  color: var(--teal-dark);
}

/* --- Dedicated /my-scans Page Styles --- */
.my-scans-wrap {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 0 80px;
}
.my-scans-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.my-scans-breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}
.my-scans-hero {
  margin-bottom: 28px;
}
.my-scans-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.my-scans-hero p.lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 100%;
  line-height: 1.6;
  margin: 0;
}
.my-scans-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.stat-card-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.stat-card-val {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1;
}
.stat-card-val.teal {
  color: var(--teal);
}
.stat-card-val.emerald {
  color: #059669;
}
.my-scans-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}
.my-scans-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
}
.my-scans-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #f8fafc;
}
.my-scans-search input:focus {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.my-scans-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
}
.my-scans-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.filter-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.filter-pill.active {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal-dark);
}
.filter-pill.active .filter-count {
  opacity: 0.85;
}
.filter-count {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}
.my-scans-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.my-scans-card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.my-scans-card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.08);
}
@media (max-width: 768px) {
  .my-scans-stats {
    grid-template-columns: 1fr;
  }
  .my-scans-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .my-scans-search {
    max-width: 100%;
  }
}

/* SweetAlert2 Brand Styling */
.swal2-popup.swal2-modal {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16) !important;
  border: 1px solid var(--line) !important;
}
.swal2-title {
  font-family: var(--font-heading, inherit) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
}
.swal2-html-container {
  font-size: 14.5px !important;
  color: var(--ink-soft) !important;
  line-height: 1.55 !important;
}
.swal2-actions {
  gap: 10px !important;
}
.swal2-confirm, .swal2-cancel {
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
}


