:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --accent: #6366f1;
  --soft-accent: #eef2ff;
  --soft-accent-border: #c7d2fe;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;

  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #b91c1c;

  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #b45309;

  --ai-bg: #f5f3ff;
  --ai-border: #ddd6fe;
  --ai-text: #6d28d9;

  --safe-bg: #ecfdf5;
  --safe-border: #a7f3d0;
  --safe-text: #047857;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Portal Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.local-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--safe-text);
  background: var(--safe-bg);
  border: 1px solid var(--safe-border);
  padding: 4px 10px;
  border-radius: 999px;
}

.all-tools-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--soft-accent);
  border: 1px solid var(--soft-accent-border);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.all-tools-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb-bar {
  padding: 14px 0 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb-bar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-bar a {
  color: var(--muted);
  font-weight: 500;
}

.breadcrumb-bar a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: #94a3b8;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* Hero Header */
.hero-section {
  padding: 14px 0 22px;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--soft-accent);
  color: var(--primary);
  border: 1px solid var(--soft-accent-border);
}

.hero-section h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-lead {
  margin: 0;
  max-width: 850px;
  color: var(--muted);
  font-size: 1.04rem;
}

/* Ad Slots */
.ad-slot {
  display: none;
  margin: 18px 0;
  padding: 14px;
  background: var(--card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--subtle);
  font-size: 0.82rem;
}

.ad-slot.is-visible {
  display: block;
}

/* Main Interactive Tool Card */
.tool-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 28px;
}

.tool-top-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sample-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.toolbar-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 4px;
}

.sample-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sample-btn:hover {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--primary);
}

.sample-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Workspace Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

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

/* Left Column: Dropzone, Preview, Scrub Controls */
.left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dropzone {
  border: 2px dashed var(--soft-accent-border);
  background: var(--soft-accent);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--primary);
  background: #e0e7ff;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 10px;
  background: var(--card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.dropzone-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Image Preview Card */
.preview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
}

.preview-frame {
  width: 100%;
  height: 210px;
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #ffffff 0% 50%) 50% / 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.preview-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.preview-meta-bar {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  font-size: 0.82rem;
}

.meta-kv {
  display: flex;
  flex-direction: column;
}

.meta-k {
  color: var(--subtle);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.meta-v {
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-mono);
  word-break: break-all;
}

/* Batch Queue List */
.batch-queue-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--card);
}

.batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.batch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 185px;
  overflow-y: auto;
}

.batch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.82rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.batch-item:hover {
  border-color: var(--accent);
}

.batch-item.is-selected {
  border-color: var(--primary);
  background: var(--soft-accent);
}

.batch-item-name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-item-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pill-risk {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.pill-warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid var(--warn-border);
}

.pill-clean {
  background: var(--safe-bg);
  color: var(--safe-text);
  border: 1px solid var(--safe-border);
}

/* Scrub Settings & CTA */
.scrub-controls-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.control-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
}

.control-select {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.control-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted);
  cursor: pointer;
}

.control-check input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.primary-cta-btn {
  appearance: none;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.primary-cta-btn:hover {
  background: var(--primary-hover);
}

.primary-cta-btn:active {
  transform: translateY(1px);
}

.secondary-cta-btn {
  appearance: none;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.secondary-cta-btn:hover {
  background: var(--soft-accent);
}

.scrub-result-banner {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--safe-bg);
  border: 1px solid var(--safe-border);
  color: var(--safe-text);
  font-size: 0.84rem;
}

.scrub-result-banner.is-visible {
  display: block;
}

.scrub-result-banner strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.88rem;
}

/* Right Column: Privacy Audit Report & Metadata Inspector */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.audit-summary-card {
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.audit-summary-card.status-high {
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

.audit-summary-card.status-medium {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.audit-summary-card.status-ai {
  background: var(--ai-bg);
  border-color: var(--ai-border);
}

.audit-summary-card.status-clean {
  background: var(--safe-bg);
  border-color: var(--safe-border);
}

.audit-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.audit-headline {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-score-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.risk-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
}

.risk-badge.badge-danger {
  color: var(--danger-text);
  border-color: var(--danger-border);
}

.risk-badge.badge-warn {
  color: var(--warn-text);
  border-color: var(--warn-border);
}

.risk-badge.badge-ai {
  color: var(--ai-text);
  border-color: var(--ai-border);
}

.risk-badge.badge-safe {
  color: var(--safe-text);
  border-color: var(--safe-border);
}

/* Highlight Cards: GPS & AI Prompt */
.highlight-box {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  background: var(--card);
}

.highlight-box.is-visible {
  display: block;
}

.highlight-box.gps-box {
  border-left: 4px solid #dc2626;
}

.highlight-box.ai-box {
  border-left: 4px solid #7c3aed;
}

.highlight-title {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gps-coords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  font-size: 0.84rem;
}

.coord-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.coord-chip span {
  display: block;
  font-size: 0.73rem;
  color: var(--subtle);
  text-transform: uppercase;
  font-weight: 700;
}

.coord-chip code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}

.ai-prompt-pre {
  margin: 0;
  padding: 11px 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.5;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Binary Segments Strip Bar */
.segments-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--card);
}

.segments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.segment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segment-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.segment-chip.is-metadata {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
  font-weight: 600;
}

/* Metadata Inspector Table */
.inspector-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}

.inspector-toolbar {
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tab {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.tag-search-input {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 0.83rem;
  min-width: 190px;
}

.table-scroll {
  max-height: 410px;
  overflow-y: auto;
}

.exif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.exif-table th,
.exif-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.exif-table th {
  background: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 2;
}

.exif-table tr:last-child td {
  border-bottom: none;
}

.tag-group-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--soft-accent);
  color: var(--primary);
}

.tag-group-badge.group-gps {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.tag-group-badge.group-ai {
  background: var(--ai-bg);
  color: var(--ai-text);
}

.tag-name-cell {
  font-weight: 700;
  color: var(--text);
}

.tag-hex {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--subtle);
  font-weight: 500;
}

.tag-val-cell {
  font-family: var(--font-mono);
  font-size: 0.81rem;
  color: var(--text);
  word-break: break-word;
}

.empty-table-msg {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Recommended Tools & Partner Resources */
.partners-section {
  margin: 30px 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.partners-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.partners-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.ftc-disclosure {
  font-size: 0.78rem;
  color: var(--subtle);
  margin: 0;
}

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

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

.partner-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.partner-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.partner-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft-accent);
  color: var(--primary);
  border: 1px solid var(--soft-accent-border);
  margin-bottom: 6px;
}

.partner-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--text);
}

.partner-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
}

.partner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.partner-cta:hover {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

/* Editorial Content & Benchmarks */
.content-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 28px;
}

.content-section h2 {
  margin-top: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.content-section h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.12rem;
  color: var(--text);
}

.content-section p,
.content-section li {
  color: var(--muted);
  font-size: 0.97rem;
}

.content-section ul,
.content-section ol {
  padding-left: 20px;
}

.formula-callout {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--soft-accent);
  border-left: 4px solid var(--primary);
  font-size: 0.92rem;
  color: var(--text);
}

.formula-callout code {
  font-family: var(--font-mono);
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--soft-accent-border);
  font-size: 0.86rem;
}

.benchmark-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.benchmark-table th,
.benchmark-table td {
  padding: 11px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.benchmark-table th {
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
}

.benchmark-table td {
  color: var(--muted);
}

/* FAQ Accordion */
.faq-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 28px;
}

.faq-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 15px 18px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.93rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  background: var(--card);
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Related Tools & Cross-Linking */
.related-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 34px;
}

.related-section h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.related-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.related-group-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin: 18px 0 10px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.related-link-card {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  transition: all 0.15s ease;
}

.related-link-card:hover {
  border-color: var(--primary);
  background: var(--soft-accent);
  text-decoration: none;
}

.related-link-card.is-current {
  border-color: var(--primary);
  background: var(--soft-accent);
}

.related-link-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 4px;
}

.related-link-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .tool-shell,
  .content-section,
  .faq-section,
  .related-section,
  .partners-section {
    padding: 18px;
  }
  .local-trust-pill {
    display: none;
  }
}
