/* ==========================================================================
   FreeLocalSEOTool.com — Swiss Gallery & Editorial Monochrome Design System
   Pure white canvas · Carbon ink · Hairline geometry · Surgical #ff5500
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f7f7f6;
  --surface-2: #f0f0ee;
  --paper: #f8f8f7;
  --obsidian: #111111;
  --obsidian-2: #191918;

  --ink: #111111;
  --ink-2: #2d2d2b;
  --muted: #666662;
  --subtle: #8f8f8a;

  --line: #eaeae7;
  --line-strong: #d4d4d0;

  --accent: #ff5500;
  --accent-hover: #e54c00;
  --accent-soft: #fff3ec;

  --good: #15803d;
  --good-soft: #ecfdf3;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --bad: #dc2626;
  --bad-soft: #fef2f2;

  /* Compatibility aliases for client tool scripts */
  --ink-muted: var(--muted);
  --ink-subtle: var(--subtle);
  --border: var(--line);
  --radius-sm: 8px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   Header — Borderless Inspora-Clean Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.main-nav a.active {
  color: var(--ink);
  background: var(--surface);
}

.nav-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.16s ease, transform 0.16s ease;
  flex-shrink: 0;
}

.header-cta:hover {
  background: #2b2b29;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: #2b2b29;
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--ink);
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 7px;
}

/* --------------------------------------------------------------------------
   Homepage Hero — Compact Audit Composer + Minimalist Architectural Street Map
   -------------------------------------------------------------------------- */
.home-hero {
  padding: 44px 0 64px;
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}

.home-intro {
  max-width: 508px;
}

.editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 16px;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.16);
  flex-shrink: 0;
}

.kicker-dot.is-mono {
  background: var(--ink);
  box-shadow: none;
}

.home-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.044em;
  color: var(--ink);
  max-width: 14ch;
}

.home-lead {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 46ch;
}

/* Compact Stacked Audit Composer (crisp 500px max, never stretched full-width) */
.audit-composer-wrap {
  width: 100%;
  max-width: 500px;
}

.audit-composer {
  background: #ffffff;
  border: 1px solid #d6d6d2;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.04),
    0 14px 30px -24px rgba(17, 17, 17, 0.22);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.audit-composer:focus-within {
  border-color: var(--ink);
  box-shadow:
    0 0 0 3px rgba(17, 17, 17, 0.06),
    0 14px 30px -24px rgba(17, 17, 17, 0.2);
}

.composer-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px;
}

.composer-main input[type="text"] {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--ink);
}

.composer-main input::placeholder {
  color: var(--subtle);
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 7px 7px 14px;
  border-top: 1px solid var(--line);
  background: #fafaf9;
  border-radius: 0 0 13px 13px;
}

.composer-kw {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.kw-icon {
  width: 14px;
  height: 14px;
  color: var(--subtle);
  flex-shrink: 0;
}

.composer-kw input[type="text"] {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 0;
}

.composer-kw input::placeholder {
  color: var(--subtle);
}

.composer-btn {
  height: 34px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 13px;
  flex-shrink: 0;
}

.composer-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--subtle);
}

.audit-output-region {
  width: 100%;
}

/* Minimalist Architectural City Street Map Frame */
.hero-map-frame {
  position: relative;
  height: 456px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f3;
  border: 1px solid #dfdfda;
  box-shadow: 0 24px 50px -38px rgba(17, 17, 17, 0.25);
  user-select: none;
}

.hero-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-road-label {
  font-family: var(--font-sans);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  fill: #84847e;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.6px;
  stroke-linejoin: round;
}

.map-road-label.is-major {
  font-size: 8.2px;
  fill: #5f5f5a;
}

.map-water-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  fill: #8c9ca9;
}

.map-district-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  fill: #a5a59e;
}

.map-radius-label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: #7b7b75;
  paint-order: stroke;
  stroke: rgba(245, 245, 243, 0.92);
  stroke-width: 3px;
}

/* Interactive 3x3 GPS Rank Pins on the Minimalist Map */
.hero-map-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hmap-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  box-shadow: 0 4px 12px -2px rgba(17, 17, 17, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.hmap-pin:hover,
.hmap-pin:focus-visible,
.hmap-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.16);
  z-index: 5;
  outline: none;
}

.hmap-pin.is-primary {
  width: 36px;
  height: 36px;
  font-size: 12.5px;
  background: var(--accent);
  color: #ffffff;
  border-width: 2.5px;
  box-shadow: 0 6px 18px -2px rgba(255, 85, 0, 0.45);
}

.hmap-pin.is-top3 {
  background: #111111;
  color: #ffffff;
}

.hmap-pin.is-mid {
  background: #ffffff;
  color: #242422;
  border: 1.5px solid #2c2c29;
  box-shadow: 0 3px 10px -2px rgba(17, 17, 17, 0.16);
}

.hmap-pin.is-selected.is-top3,
.hmap-pin.is-selected.is-mid {
  box-shadow:
    0 0 0 4px rgba(17, 17, 17, 0.14),
    0 6px 14px -2px rgba(17, 17, 17, 0.24);
}

.hmap-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 85, 0, 0.5);
  animation: mapPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes mapPulse {
  0% {
    transform: scale(0.88);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

/* Map Frame Floating HUD */
.hero-map-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.map-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.09);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}

.map-hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.map-hud-action {
  pointer-events: auto;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: 0 4px 12px -4px rgba(17, 17, 17, 0.28);
  transition: background-color 0.16s ease;
}

.map-hud-action:hover {
  background: #2b2b29;
}

.hero-map-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.map-inspector-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px -12px rgba(17, 17, 17, 0.2);
}

.map-card-rank {
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.map-card-rank.is-primary {
  background: var(--accent);
  color: #ffffff;
}

.map-card-rank.is-top3 {
  background: var(--ink);
  color: #ffffff;
}

.map-card-rank.is-mid {
  background: var(--surface-2);
  color: var(--ink);
}

.map-card-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.map-card-body span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.map-card-body em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.map-card-body b {
  font-weight: 500;
  color: var(--ink-2);
}

.map-scale-hud {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.map-solv-chip {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
}

.map-scale-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.map-scale-bar i {
  display: inline-block;
  width: 34px;
  height: 5px;
  border-left: 1.5px solid var(--ink-2);
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
}

/* --------------------------------------------------------------------------
   Search Dock (Sub-Pages) & Form Controls
   -------------------------------------------------------------------------- */
.search-dock-form {
  width: 100%;
  max-width: 620px;
}

.search-dock {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 5px 5px 5px 14px;
  gap: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-dock:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.dock-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dock-field-main {
  flex: 1.6;
}

.dock-field-kw {
  flex: 0.72;
  padding-left: 4px;
}

.dock-icon {
  width: 17px;
  height: 17px;
  color: var(--subtle);
  flex-shrink: 0;
}

.dock-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
  flex-shrink: 0;
}

.search-dock input[type="text"],
.search-dock input[type="url"] {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 4px;
  font-size: 14.5px;
  color: var(--ink);
}

.search-dock input::placeholder {
  color: var(--subtle);
}

.dock-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  flex-shrink: 0;
}

.sample-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 8px;
  font-size: 12.5px;
}

.sample-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-right: 2px;
}

.sample-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.sample-chip:hover {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.sample-link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.sample-link:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* Standard Tool Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.mini-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 2px;
}

.field small {
  font-size: 12px;
  color: var(--subtle);
}

.field small a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field input[type="text"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea,
.mono-input,
#tool-root input[type="text"][readonly] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #ffffff;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.mono-input {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface);
}

.form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.form-actions-bar {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.checkbox-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* Autocomplete dropdown */
.ac-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.16);
}

.ac-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.ac-item:hover {
  background: var(--surface);
}

.ac-item strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.ac-item span {
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Sub-Tool Page Header & Workspace
   -------------------------------------------------------------------------- */
.sub-hero {
  padding: 36px 0 56px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--subtle);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.sub-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sub-hero-head h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.038em;
  color: var(--ink);
  max-width: 24ch;
}

.sub-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}

.sub-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sub-tab {
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: #ffffff;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.sub-tab:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

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

.tool-workspace {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 28px;
}

.workspace-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--subtle);
}

/* --------------------------------------------------------------------------
   Inspora-Style 9-Tool Visual Gallery (#gallery)
   -------------------------------------------------------------------------- */
.gallery-section {
  padding: 56px 0 80px;
  border-top: 1px solid var(--line);
}

.gallery-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-heading {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.032em;
  color: var(--ink);
}

.gallery-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.gallery-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--subtle);
  letter-spacing: 0.06em;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.gallery-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 340px;
}

.gallery-search-box svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--subtle);
  pointer-events: none;
}

.gallery-search-box input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.gallery-search-box input::placeholder {
  color: var(--subtle);
}

.gallery-search-box input:focus {
  background: #ffffff;
  border-color: var(--ink);
}

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

.filter-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

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

/* Borderless Inspora Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 44px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.075);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-card:hover .gallery-thumb {
  border-color: rgba(17, 17, 17, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.28);
}

.thumb-tag {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.thumb-tag.is-live {
  padding-left: 17px;
}

.thumb-tag.is-live::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.gallery-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 2px;
}

.gallery-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gallery-icon svg {
  width: 15px;
  height: 15px;
}

.gallery-card:hover .gallery-icon {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.gallery-text {
  min-width: 0;
  flex: 1;
}

.gallery-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.gallery-text h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.gallery-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--subtle);
  flex-shrink: 0;
}

.gallery-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Bespoke 16:10 Gallery Specimens (Architectural UI Miniatures)
   -------------------------------------------------------------------------- */
.spec {
  width: 100%;
  height: 100%;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.spec-light {
  background: #f5f5f3;
}

.spec-dark {
  background: #111110;
  color: #ffffff;
}

.spec-sheet {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 10px;
  padding: 14px 15px;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease);
}

.gallery-card:hover .spec-sheet,
.gallery-card:hover .spec-poster,
.gallery-card:hover .spec-grid-matrix,
.gallery-card:hover .spec-code-inner {
  transform: scale(1.02);
}

/* 1. Audit specimen */
.spec-audit-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.spec-ring-box {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.spec-ring-box svg {
  width: 100%;
  height: 100%;
}

.spec-ring-box span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.spec-audit-head b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.spec-audit-head small {
  display: block;
  font-size: 10.5px;
  color: var(--subtle);
  margin-top: 2px;
}

.spec-audit-chips {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.spec-audit-chips span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-2);
}

.spec-audit-chips span.is-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.spec-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-bar-row {
  display: grid;
  grid-template-columns: 34px 1fr 20px;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.spec-bar-row i {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.spec-bar-row b {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--ink);
}

.spec-bar-row b.is-accent {
  background: var(--accent);
}

.spec-bar-row em {
  font-style: normal;
  text-align: right;
  color: var(--ink);
  font-weight: 600;
}

/* 2. Minimalist Light Map + 3x3 Rank Grid specimen */
.spec-map-thumb {
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px 12px;
  background: #f3f3f0;
}

.spec-map-roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.spec-grid-matrix {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 9px 18px;
  margin-top: 6px;
  transition: transform 0.35s var(--ease);
}

.sg-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.8px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  box-shadow: 0 3px 8px -2px rgba(17, 17, 17, 0.22);
}

.sg-pin.is-center {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.2);
}

.sg-pin.is-top {
  background: #111111;
  color: #ffffff;
}

.sg-pin.is-mid {
  background: #ffffff;
  color: #111111;
  border: 1.5px solid #2b2b29;
}

.sg-pin.is-low {
  background: #f5f5f3;
  color: #777771;
  border: 1px solid #c9c9c3;
}

.spec-map-foot {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}

.spec-map-foot span {
  background: rgba(255, 255, 255, 0.88);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 3. Website AEO specimen */
.spec-aeo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.spec-aeo-head code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.spec-mono-ok {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--good-soft);
  color: var(--good);
}

.spec-aeo-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.spec-aeo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
}

.dot-ok {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
}

.spec-aeo-ratio {
  font-size: 10px;
  color: var(--accent);
}

/* 4. Review QR Poster specimen */
.spec-poster {
  width: 132px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 10px;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease);
}

.spec-poster-stars {
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--accent);
}

.spec-qr-svg {
  width: 72px;
  height: 72px;
}

.spec-poster-cap {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 5. Rating Calculator Dot-Matrix specimen */
.spec-calc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.spec-calc-head small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--subtle);
}

.spec-calc-head strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.spec-arrow {
  color: var(--subtle);
  font-weight: 400;
}

.spec-calc-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
}

.spec-dot-matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
}

.spec-dot-matrix i {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
}

.spec-dot-matrix i.dm-on {
  background: var(--ink);
}

.spec-dot-matrix i.dm-accent {
  background: var(--accent);
}

.spec-dot-matrix i.dm-off {
  background: var(--surface-2);
}

/* 6. JSON-LD Dark Code specimen */
.spec-code-inner {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 6px;
  transition: transform 0.35s var(--ease);
}

.spec-code-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-code .ck {
  color: rgba(255, 255, 255, 0.94);
}

.spec-code .cs {
  color: #ffb188;
}

.spec-code .cn {
  color: #86efac;
}

.spec-code-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.48);
}

.spec-valid-dot {
  color: #4ade80;
}

/* 7. NAP Diff specimen */
.spec-nap .spec-sheet {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-nap-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.spec-nap-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spec-nap-row b {
  font-weight: 600;
  color: var(--ink);
}

.spec-nap-row code {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sn-ok,
.sn-warn,
.sn-bad {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
}

.sn-ok {
  background: var(--good-soft);
  color: var(--good);
}

.sn-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.sn-bad {
  background: var(--bad-soft);
  color: var(--bad);
}

/* 8. GBP Post + UTM specimen */
.spec-utm-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.spec-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spec-utm-head b {
  display: block;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.2;
}

.spec-utm-head small {
  font-size: 9.5px;
  color: var(--subtle);
}

.spec-utm-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.spec-utm-lines i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: var(--surface-2);
}

.spec-fold-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.spec-fold-rule::before,
.spec-fold-rule::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--accent);
}

.spec-fold-rule span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--accent);
}

.spec-utm-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-2);
  background: var(--surface);
  border-radius: 5px;
  padding: 5px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 9. Keyword Combiner Node Flow specimen */
.spec-kw {
  background-image: radial-gradient(#dcdcd8 1px, transparent 1px);
  background-size: 14px 14px;
}

.spec-kw-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.spec-kw-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.spec-kw-col span {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink);
  text-align: right;
}

.spec-kw-wires {
  width: 36px;
  height: 76px;
  flex-shrink: 0;
}

.spec-kw-out {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.25);
}

.spec-kw-out small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--accent);
}

.spec-kw-out code {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Dynamic Tool Output Components (Reports, KPIs, Tables, Leaflet Grid, QR)
   -------------------------------------------------------------------------- */
.status-box {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-2);
}

.status-box.loading {
  border-color: var(--line-strong);
  background: var(--surface);
}

.status-box.error {
  border-color: #fecaca;
  background: var(--bad-soft);
  color: #991b1b;
}

.status-box a {
  text-decoration: underline;
  font-weight: 500;
}

.result-area {
  margin-top: 24px;
}

.report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 18px;
}

.report-score-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}

.score-donut {
  position: relative;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
}

.score-donut svg {
  width: 100%;
  height: 100%;
}

.score-donut-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}

.score-donut-text strong {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.score-donut-text span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-top: 2px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.kpi {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.kpi-sub {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.sub-heading {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.pillar-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 13.5px;
}

.pillar-score {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.bar-track {
  height: 5px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 9px;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--ink);
}

.bar-strong,
.bar-good {
  background: var(--good);
}

.bar-needs_work,
.bar-warn {
  background: var(--accent);
}

.bar-critical,
.bar-bad {
  background: var(--bad);
}

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

.action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.action-item h4 {
  margin: 6px 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.action-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 68ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pill-pass {
  background: var(--good-soft);
  color: var(--good);
}

.pill-warn,
.pill-medium {
  background: var(--warn-soft);
  color: var(--warn);
}

.pill-fail,
.pill-high {
  background: var(--bad-soft);
  color: var(--bad);
}

.pill-low,
.pill-info {
  background: var(--surface);
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.badge-neutral {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table-wrap th {
  text-align: left;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.table-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap tr.is-target td {
  background: var(--accent-soft);
}

.table-wrap td a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bot-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.bot-card {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.bot-card code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.bot-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--subtle);
}

/* Maps Rank Grid */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.map-box {
  height: 430px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 22px;
}

.rank-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.rank-top3 {
  background: #16a34a;
}

.rank-mid {
  background: #d97706;
}

.rank-low {
  background: var(--accent);
}

.rank-out {
  background: #dc2626;
}

/* Code / Schema Box */
.code-header {
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code-box {
  margin: 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #111110;
  color: #e9e9e5;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
}

/* Review QR & GBP Preview */
.qr-card {
  width: 100%;
  max-width: 280px;
  padding: 24px 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.qr-card svg {
  width: 100%;
  height: 100%;
}

.gbp-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.gbp-preview-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.gbp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Swiss Editorial Lower Sections (How-To, Verification Spec, FAQ, Closing)
   -------------------------------------------------------------------------- */
.editorial-section {
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.micro-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--subtle);
  margin-bottom: 10px;
}

.editorial-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.editorial-muted {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36ch;
}

.editorial-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.minimal-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.minimal-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.minimal-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  padding-top: 2px;
}

.minimal-steps p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.minimal-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.minimal-checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-2);
}

.minimal-checks li:last-child {
  border-bottom: 1px solid var(--line);
}

.check-mark {
  font-family: var(--font-mono);
  color: var(--accent);
}

.data-boundary {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--subtle);
}

.data-boundary strong {
  color: var(--muted);
  font-weight: 600;
}

/* FAQ Hairline Accordion */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 64px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

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

.faq-plus {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--subtle);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  color: var(--ink);
}

.faq-item p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.text-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.text-link:hover {
  color: var(--ink);
}

/* Closing Strip */
.closing-strip {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

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

.closing-inner h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 44ch;
}

.closing-inner p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   Legal / About Prose Pages
   -------------------------------------------------------------------------- */
.prose-section {
  padding: 56px 0 88px;
}

.prose {
  max-width: 720px;
}

.prose h1 {
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.038em;
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.024em;
}

.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 10px;
}

.prose strong {
  color: var(--ink);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  background: #ffffff;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 56px;
  padding-bottom: 44px;
}

.footer-desc {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
}

.footer-desc a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-cols h4 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-cols a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-cols a:hover {
  color: var(--ink);
}

.footer-bar {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--subtle);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-stage {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-intro,
  .audit-composer-wrap {
    max-width: 560px;
  }

  .hero-map-frame {
    height: 390px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-two,
  .faq-split,
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 18px;
  }

  .main-nav {
    display: none;
  }

  .home-hero {
    padding: 32px 0 48px;
  }

  .hero-map-frame {
    height: 340px;
  }

  .map-scale-hud {
    display: none;
  }

  .composer-foot {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .composer-btn {
    width: 100%;
  }

  .search-dock {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 6px;
  }

  .dock-sep {
    width: 100%;
    height: 1px;
  }

  .dock-field-kw {
    padding-left: 0;
  }

  .dock-btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .tool-workspace {
    padding: 18px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
