@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Lora:ital,wght@0,400..700;1,400..700&family=STIX+Two+Text:ital,wght@0,400..700;1,400..700&family=Signika+Negative:wght@300..700&display=swap');

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

:root {
  --bg-page: #f5f5f4;
  --bg-sidebar: #ebebea;
  --bg-card: #ffffff;
  --bg-card-subtle: #fafaf9;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-lg: 16px;
  --accent-green: #16a34a;
  --accent-green-light: #dcfce7;
  --accent-red: #dc2626;
  --accent-red-light: #fee2e2;
  --accent-blue: #2563eb;
  --ring-bg: #e5e7eb;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: transparent;
  color: var(--text-primary);
  min-height: 100vh;
}

/* Atmospheric theme overrides */
:root {
  /* Core atmospheric theme */
  --bg-0: #070a0f;
  --bg-1: #0b0f18;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --muted-2: rgba(255, 255, 255, 0.48);

  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);

  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.35);

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --accent: #7aa4ff;     /* cool blue */
  --accent-2: #00d2c6;   /* teal */
  --good: #2dd4bf;
  --warn: #fbbf24;
  --bad: #fb7185;

  /* Legacy variable aliases (keep existing names working) */
  --bg-page: var(--bg-1);
  --bg-sidebar: rgba(255, 255, 255, 0.03);
  --bg-card: var(--glass);
  --bg-card-subtle: var(--glass-2);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: var(--muted-2);
  --shadow: var(--shadow-sm);
  --accent-green: var(--good);
  --accent-green-light: rgba(45, 212, 191, 0.14);
  --accent-red: var(--bad);
  --accent-red-light: rgba(251, 113, 133, 0.14);
  --accent-blue: var(--accent);
  --ring-bg: rgba(255, 255, 255, 0.06);
  --radius: var(--radius-md);
}

html {
  scrollbar-gutter: stable;
}

html,
body {
  height: 100%;
}

body {
  color: var(--text);
  overflow-x: hidden;
}

:root {
  /* Core atmospheric theme */
  --bg-0: #070a0f;
  --bg-1: #0b0f18;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --muted-2: rgba(255, 255, 255, 0.48);

  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);

  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.35);

  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;

  --accent: #7aa4ff;     /* cool blue */
  --accent-2: #00d2c6;   /* teal */
  --good: #2dd4bf;
  --warn: #fbbf24;
  --bad: #fb7185;

  /* Legacy variable aliases (keep existing names working) */
  --bg-page: var(--bg-1);
  --bg-sidebar: rgba(255, 255, 255, 0.03);
  --bg-card: var(--glass);
  --bg-card-subtle: var(--glass-2);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: var(--muted-2);
  --shadow: var(--shadow-sm);
  --accent-green: var(--good);
  --accent-green-light: rgba(45, 212, 191, 0.14);
  --accent-red: var(--bad);
  --accent-red-light: rgba(251, 113, 133, 0.14);
  --accent-blue: var(--accent);
  --ring-bg: rgba(255, 255, 255, 0.06);
  --radius: var(--radius-md);
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Typography */
h1,
.h1 {
  font-size: clamp(34px, 3.2vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 10px;
}

p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.small {
  color: var(--muted-2);
  font-size: 13px;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  cursor: pointer;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-brand:hover {
  transform: translateY(-1px);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.logo-icon-link:hover {
  transform: translateY(-1px);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-title {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: inline-block;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes logo-typing {
  from {
    width: 0;
  }
  to {
    width: 11ch;
  }
}

@keyframes logo-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent-blue);
  }
}

@keyframes landing-typing {
  from {
    width: 0;
  }
  to {
    width: 9.5ch;
  }
}

@keyframes landing-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #2dd4bf;
  }
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-section {
  padding: 0 12px;
}

.nav-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-bottom: 6px;
  padding-left: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.nav-item:hover {
  color: var(--text);
  opacity: 0.9;
}

.nav-item--active {
  color: var(--text);
  font-weight: 500;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 24px;
  opacity: 0.8;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Main area */
.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: transparent;
}

/* Animated gradient background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  /* Darker, more even base so the blobs don't create a harsh hotspot */
  background: radial-gradient(circle at 75% 30%, rgba(24, 40, 120, 0.6), transparent 60%),
              radial-gradient(circle at 85% 80%, rgba(40, 120, 160, 0.55), transparent 65%),
              linear-gradient(40deg, rgb(4, 2, 24), rgb(1, 6, 28));
}

.gradients-container {
  width: 100%;
  height: 100%;
  filter: url(#blurMe) blur(40px);
}

@supports (-webkit-hyphens: none) {
  .gradients-container {
    filter: blur(40px);
  }
}

.gradient-blob {
  position: absolute;
  /* Slightly smaller and pushed away from the left hero text */
  width: 70%;
  height: 70%;
  top: calc(50% - 35%);
  left: calc(55% - 35%);
  border-radius: 50%;
  /* Keep animation but soften intensity for better readability */
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

.gradient-blob-1 {
  /* Main cool blue light placed behind the GEO card on the right */
  background: radial-gradient(circle at 75% 35%, rgba(12, 60, 180, 0.42) 0%, rgba(0, 0, 0, 0) 55%) no-repeat;
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
}

.gradient-blob-2 {
  /* Purple accent kept subtle and more central/right */
  background: radial-gradient(circle at 65% 55%, rgba(160, 40, 210, 0.32) 0%, rgba(0, 0, 0, 0) 55%) no-repeat;
  transform-origin: calc(55% - 300px);
  animation: moveInCircle 20s reverse infinite;
}

.gradient-blob-3 {
  /* Teal accent supporting the right-hand glow */
  background: radial-gradient(circle at 80% 70%, rgba(40, 160, 200, 0.32) 0%, rgba(0, 0, 0, 0) 55%) no-repeat;
  transform-origin: calc(60% + 350px);
  animation: moveInCircle 40s linear infinite;
}

.gradient-blob-4 {
  /* Warm accent very soft so it doesn't flare under the hero text */
  background: radial-gradient(circle at 60% 40%, rgba(140, 30, 40, 0.26) 0%, rgba(0, 0, 0, 0) 55%) no-repeat;
  transform-origin: calc(55% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.55;
}

.gradient-blob-5 {
  /* Deep background accent mostly off-canvas to avoid bright patches */
  background: radial-gradient(circle at 90% 95%, rgba(130, 130, 40, 0.26) 0%, rgba(0, 0, 0, 0) 55%) no-repeat;
  transform-origin: calc(60% - 700px) calc(55% + 700px);
  animation: moveInCircle 20s ease infinite;
}

.gradient-blob-interactive {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  /* Make the cursor-following glow more subtle so it doesn't create a local hotspot */
  background: radial-gradient(circle at center, rgba(90, 70, 200, 0.34) 0%, rgba(0, 0, 0, 0) 55%) no-repeat;
  mix-blend-mode: soft-light;
  opacity: 0.36;
  pointer-events: none;
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%);
  }
  50% {
    transform: translateX(50%) translateY(10%);
  }
  100% {
    transform: translateX(-50%) translateY(-10%);
  }
}

@keyframes moveInCircle {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
  }
  100% {
    transform: translateY(-50%);
  }
}

.topbar {
  padding: 16px 24px;
  background: transparent;
  border-bottom: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.topbar-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.topbar-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.topbar-menu-toggle {
  display: none;
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  align-items: center;
  justify-content: center;
}

.topbar-menu-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}

.topbar-menu-toggle span:nth-child(1) {
  top: 11px;
}

.topbar-menu-toggle span:nth-child(2) {
  top: 16px;
}

.topbar-menu-toggle span:nth-child(3) {
  top: 21px;
}

.topbar-menu-toggle.is-open span:nth-child(1) {
  top: 16px;
  transform: translateX(-50%) rotate(45deg);
}

.topbar-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.topbar-menu-toggle.is-open span:nth-child(3) {
  top: 16px;
  transform: translateX(-50%) rotate(-45deg);
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.topbar-nav .nav-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0;
}

.topbar-nav .nav-section-label {
  display: none;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted-2);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 200px;
}

.search-icon {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input {
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  width: 100%;
}

.search-input::placeholder {
  color: var(--muted-2);
}

/* Content views */
.content-view {
  display: block;
}

.content-view--hidden {
  display: none;
}

#checker-view,
#questions-view {
  max-width: 880px;
  margin-inline: auto;
}

#checker-view {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  column-gap: 24px;
  row-gap: 16px;
}

#checker-view.content-view--hidden {
  display: none;
}

#checker-view .content-header {
  grid-column: 1 / -1;
}

/* Content */
.content {
  flex: 1;
  padding: 24px 32px 32px;
  max-width: 1100px;
  margin-inline: auto;
}

/* Landing hero */
.landing-hero {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  column-gap: 40px;
  align-items: center;
  padding: 40px 0 48px;
  max-width: 1100px;
  margin-inline: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  max-width: 640px;
}

.landing-hero-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-preview-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  max-width: 380px;
}

.hero-preview-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  /* Match the subtler GEO explainer cards */
  background: var(--glass-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
}

.hero-preview-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(122, 164, 255, 0.3), transparent 60%),
    radial-gradient(circle at 90% 120%, rgba(45, 212, 191, 0.3), transparent 65%);
  opacity: 0.22;
  filter: blur(36px);
  z-index: -1;
}

.hero-preview-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.08), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.hero-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(226, 232, 240, 0.7);
}

.hero-preview-title {
  font-weight: 600;
  color: #ecfdf5;
  letter-spacing: 0.05em;
}

.hero-preview-url {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.9);
  opacity: 0.96;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-preview-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 16px;
  /* Match the softer card aesthetic */
  background: var(--glass-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  min-width: 90px;
}

.hero-preview-score-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-preview-score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.9);
}

.hero-preview-copy {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.96);
}

.hero-preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.hero-preview-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: rgba(226, 232, 240, 0.9);
}

.hero-preview-form {
  padding: 0;
}

.hero-preview-helper {
  margin: 4px 0 0;
}

.hero-preview-full-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-preview-full-link:hover {
  color: var(--text);
}

.hero-preview-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.95);
}

.hero-preview-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, rgba(122, 164, 255, 0.45), rgba(0, 210, 198, 0.4));
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 18px rgba(122, 164, 255, 0.35);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.hero-preview-cta:hover {
  box-shadow: 0 0 28px rgba(122, 164, 255, 0.5);
  color: #fff;
}

.hero-preview-cta:active {
  transform: scale(0.98);
}

.landing-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.landing-title {
  margin: 0;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #f9fafb;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.landing-title span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-style: italic;
  color: #2dd4bf;
  border-right: 2px solid #2dd4bf;
  animation:
    landing-typing 2s steps(13, end) 0.4s forwards,
    landing-caret 0.8s step-end infinite;
}

.landing-subtitle {
  max-width: 540px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.86);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.landing-primary {
  padding-inline: 26px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.45), rgba(56, 189, 248, 0.16)) padding-box,
    linear-gradient(120deg, rgba(56, 189, 248, 0.08), rgba(37, 99, 235, 0.45)) border-box;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 0 20px rgba(56, 189, 248, 0.35),
    0 16px 36px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: #ecfeff;
}

.landing-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 32px rgba(56, 189, 248, 0.75),
    0 22px 55px rgba(15, 23, 42, 0.95);
}

/* Interactive pill CTA */
.pill-cta {
  position: relative;
  overflow: hidden;
  padding-inline: 28px 32px;
  gap: 0;
}

.pill-cta::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  right: 16px;
  top: 50%;
  transform: translate(50%, -50%) scale(0);
  transform-origin: center;
  transition: transform 0.45s ease-out;
  z-index: 0;
}

.pill-cta__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.pill-cta__label--default {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.25s ease-out,
    transform 0.3s ease-out;
}

.pill-cta__label--hover {
  position: absolute;
  left: 18px;
  opacity: 0;
  transform: translateX(-16px);
  transition:
    opacity 0.28s ease-out 0.08s,
    transform 0.32s ease-out 0.08s;
}

.pill-cta:hover::before,
.pill-cta.is-hovered::before {
  transform: translate(50%, -50%) scale(40);
}

.pill-cta:hover .pill-cta__label--default,
.pill-cta.is-hovered .pill-cta__label--default {
  opacity: 0;
  transform: translateX(18px);
}

.pill-cta:hover .pill-cta__label--hover,
.pill-cta.is-hovered .pill-cta__label--hover {
  opacity: 1;
  transform: translateX(0);
}

.landing-secondary {
  padding-inline: 20px;
}

.landing-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px 32px;
    border-radius: 24px;
    min-height: auto;
    row-gap: 28px;
  }

  .landing-hero-visual {
    justify-content: flex-start;
  }
}

/* Landing GEO explainer with parallax */
.landing-geo-explainer {
  position: relative;
  margin-top: 32px;
  margin-inline: auto;
  max-width: 1100px;
  padding: 32px 0 40px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.landing-geo-parallax {
  display: none; /* remove visual background from the box */
}

.landing-geo-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.landing-geo-content h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

.landing-geo-content h3 {
  margin: 22px 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.95);
}

.landing-geo-content p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.landing-geo-content p:last-child {
  margin-bottom: 0;
}

.landing-geo-callout {
  margin: 14px 0 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.95);
  background: rgba(122, 164, 255, 0.12);
  border: 1px solid rgba(122, 164, 255, 0.28);
  border-radius: var(--radius-lg);
  border-left: 3px solid #7aa4ff;
}

.landing-geo-callout strong {
  color: #e2e8f0;
}

/* GEO explainer cards */
.landing-geo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.landing-geo-card {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  /* Make the GEO cards much softer than the hero / social proof glass blocks */
  background: var(--glass-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}

.landing-geo-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(122, 164, 255, 0.35), transparent 60%),
    radial-gradient(circle at 90% 120%, rgba(45, 212, 191, 0.35), transparent 65%);
  opacity: 0.14;
  filter: blur(36px);
  z-index: -1;
}

.landing-geo-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.08), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.landing-geo-card-title {
  margin: 0 0 10px;
  font-size: 1.4rem !important;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.98);
  text-align: center;
}

.landing-geo-card p {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
}

.landing-geo-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.landing-geo-card li {
  margin-bottom: 4px;
}

/* Social proof / examples section */
.landing-social-proof {
  margin-top: 32px;
  margin-bottom: 8px;
  margin-inline: auto;
  max-width: 1100px;
}

.landing-faq {
  margin-top: 32px;
  margin-bottom: 8px;
  margin-inline: auto;
  max-width: 1100px;
}

.landing-social-inner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 22px 24px 26px;
  /* Soften to match GEO cards */
  background: var(--glass-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}

.landing-social-inner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(122, 164, 255, 0.3), transparent 60%),
    radial-gradient(circle at 90% 120%, rgba(45, 212, 191, 0.3), transparent 65%);
  opacity: 0.2;
  filter: blur(36px);
  z-index: -1;
}

.landing-social-inner::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.08), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.social-proof-link {
  text-decoration: none;
  color: inherit;
}

.social-proof-link:hover .social-proof-card {
  transform: translateY(-2px);
  box-shadow:
    0 0 26px rgba(122, 164, 255, 0.3),
    0 14px 38px rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-social-header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-align: center;
}

.landing-social-title {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.98);
}

.landing-social-caption {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted-2);
  max-width: 52ch;
  margin-inline: auto;
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.social-proof-card {
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.social-proof-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 4px;
}

.social-proof-metric {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #e5e7eb;
}

.social-proof-metric span {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.95);
}

.social-proof-text {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .landing-geo-explainer {
    max-width: 100%;
    padding: 24px 18px 28px;
    border-radius: 20px;
  }

  .landing-geo-content {
    max-width: 100%;
  }

  .landing-geo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-geo-content h2 {
    font-size: 1.2rem;
  }
}

.content-header {
  margin-bottom: 24px;
}

.content-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-blue);
  background: transparent;
}

.content-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.content-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Blog back link in headers */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-2);
  font-size: 0.78rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-back-link:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

/* Blog article body spacing */
.blog-article {
  padding-top: 32px;
  padding-bottom: 32px;
  max-width: 720px;
  margin-inline: auto;
}

.blog-article .card-title + .card-desc {
  margin-bottom: 24px;
}

.blog-article h2.card-title {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.blog-article h2.card-title:first-of-type {
  margin-top: 0;
}

.blog-article p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.examples-label {
  font-weight: 500;
  color: var(--text);
}

.blog-article ul {
  margin: 4px 0 20px 20px;
}

.blog-article ul li {
  margin-bottom: 6px;
}

.blog-article .footer-list li {
  position: relative;
  padding-left: 1.1em;
}

.blog-article .footer-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.8em;
  color: var(--muted-2);
}

/* Panels & cards */
.panel {
  padding: 28px;
}

.card {
  background: var(--glass);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-soft {
  background: var(--glass-2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card,
.panel,
.glass {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card:hover,
.panel:hover,
.glass:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Keep main tool panels static (no hover lift) */
.card.card-input:hover,
.card.card-results:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: var(--border-soft);
}

/* Extra spacing when a card-input follows a card-results (used on rankings pages) */
.card.card-results + .card.card-input {
  margin-top: 24px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.card-desc {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.card-input {
  margin-bottom: 24px;
}

.card-results {
  min-height: 200px;
}

/* Compare tool */
.compare-input-card .compare-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .compare-input-card .compare-fields {
    grid-template-columns: 1fr;
  }
}

.compare-field .field-label {
  display: block;
  margin-bottom: 6px;
}

.compare-actions {
  margin-top: 8px;
}

.compare-results-card {
  margin-top: 28px;
}

.compare-results-card .card-title {
  margin-bottom: 20px;
}

/* Winner: side-by-side score cards + banner */
.compare-winner-wrap {
  margin-bottom: 28px;
}

.compare-scores-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.compare-score-card {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  padding: 20px 24px;
  background: var(--glass-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.compare-score-card--leader {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), var(--shadow-sm);
}

.compare-score-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.compare-score-value {
  display: inline-block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.compare-score-card--leader .compare-score-value {
  color: var(--accent-green);
}

.compare-score-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}

.compare-score-vs {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-2);
}

.compare-winner-banner {
  margin: 0;
  padding: 14px 20px;
  background: var(--glass-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  font-size: 1rem;
  color: var(--text);
  text-align: center;
}

.compare-winner-banner strong {
  color: var(--accent-green);
}

/* Table: clearer rows and badges */
.compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--glass-2);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: middle;
}

.compare-th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* Signal column: center header and cell text (override table default left align) */
.compare-table th.compare-th--signal,
.compare-table td.compare-signal-label {
  text-align: center;
}

.compare-table-row {
  border-bottom: 1px solid var(--border-soft);
}

.compare-table-row:last-child {
  border-bottom: none;
}

.compare-table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.compare-cell {
  width: 1%;
  white-space: nowrap;
}

.compare-signal-label {
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  padding-left: 20px;
  padding-right: 20px;
}

/* Pass/Fail badges */
.compare-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.compare-badge--pass {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-green);
}

.compare-badge--pass.compare-badge--win {
  background: var(--accent-green);
  color: #0a0f14;
}

.compare-badge--fail {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

/* Summary as insight card */
.compare-summary-card {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.15);
  border-radius: var(--radius-lg);
}

.compare-summary-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-summary-icon {
  font-size: 1.1rem;
  opacity: 0.9;
}

.compare-summary-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.compare-disclaimer {
  font-size: 0.85rem;
  color: var(--muted-2);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .compare-scores-row {
    flex-direction: column;
    align-items: center;
  }
  .compare-score-card {
    max-width: 100%;
    width: 100%;
  }
  .compare-score-vs {
    margin: 4px 0;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
  }
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.field-row {
  display: flex;
  gap: 10px;
}

.field-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.field-input::placeholder {
  color: var(--muted-2);
}

.field-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23fff' d='M7 9L3 5h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

/* Inputs & controls */
.input,
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(122, 164, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(122, 164, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

.button,
button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-family: inherit;
  font-size: 0.9rem;
  white-space: nowrap;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow-sm), 0 0 28px rgba(122, 164, 255, 0.14);
}

.btn-primary {
  /* Subtle primary button to match softer cards */
  background: rgba(122, 164, 255, 0.18);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ecfeff;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.28);
  box-shadow: 0 0 26px rgba(45, 212, 191, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  min-height: 20px;
  font-size: 0.85rem;
  margin-top: 4px;
}

.status--info {
  color: var(--accent-blue);
}

.status--error {
  color: var(--accent-red);
}

.status--success {
  color: var(--accent-green);
}

/* Empty state */
.empty-state {
  padding: 20px 0;
  color: var(--muted);
}
.empty-state.hidden {
  display: none;
}

.empty-state-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.empty-state-text {
  margin: 0;
  font-size: 0.9rem;
}

/* Results */
.results.hidden {
  display: none;
}

.results-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

/* Score card with ring */
.score-card {
  min-width: 180px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.score-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-ring {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-ring-bg {
  stroke: var(--ring-bg);
}

.score-ring-fill {
  stroke: var(--accent-green);
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease, stroke 0.3s ease;
}

.score-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.score-unit {
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-top: 2px;
}

.score-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Band colors for score */
.score-card.score-strong .score-value { color: #15803d; }
.score-card.score-strong .score-ring-fill { stroke: #15803d; }
.score-card.score-good .score-value { color: var(--accent-green); }
.score-card.score-good .score-ring-fill { stroke: var(--accent-green); }
.score-card.score-needs_improvement .score-value { color: #ea580c; }
.score-card.score-needs_improvement .score-ring-fill { stroke: #ea580c; }
.score-card.score-weak .score-value { color: var(--accent-red); }
.score-card.score-weak .score-ring-fill { stroke: var(--accent-red); }

/* Summary card */
.summary-card {
  flex: 1;
  min-width: 220px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.summary-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 6px;
}

.summary-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Checks as chips */
.checks-section {
  margin-bottom: 20px;
}

.checks-section--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.checks-column {
  min-width: 0;
}

.checks-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.checks-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-view#dashboard-view .checks-grid {
  gap: 16px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.check-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.08);
}

.content-view#dashboard-view .check-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}

/* Disable hover lift for overview cards page-wide */
.checks-section .check-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.04);
}

.check-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted-2);
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.4);
}

.check-indicator--ok {
  background: var(--good);
  /* Reduce glow to keep status colors readable on dark background */
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.25);
}

.check-indicator--warn {
  background: var(--warn);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.28);
}

.check-main {
  flex: 1;
  min-width: 0;
}

/* Extra spacing between description and CTA in overview cards */
.check-main .landing-primary {
  margin-top: 10px;
}

.check-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Blog overview card links: bold white without needing hover */
.check-card .footer-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.check-detail {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Dashboard overview cards: neutral styling, no status dot */
.content-view#dashboard-view .check-card {
  background: transparent;
  border-color: transparent;
  padding: 18px 20px;
}

.content-view#dashboard-view .check-card:has(.check-indicator--ok),
.content-view#dashboard-view .check-card:has(.check-indicator--warn) {
  background: transparent;
  border-color: transparent;
}

.content-view#dashboard-view .check-indicator {
  display: none;
}

.content-view#dashboard-view .check-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.content-view#dashboard-view .btn-primary {
  margin-top: 4px;
  background: rgba(122, 164, 255, 0.18);
}

.disclaimer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--muted-2);
  line-height: 1.5;
}

/* Question Opportunity Finder */
.hidden {
  display: none;
}

.questions-results.hidden {
  display: none;
}

.questions-intro {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.questions-section-title {
  margin-top: 28px;
  margin-bottom: 12px;
}

.questions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.question-item::before {
  content: '❓';
  flex-shrink: 0;
  font-size: 1rem;
}

.page-item::before {
  content: '📄';
}

.pages-list .question-item {
  background: rgba(122, 164, 255, 0.08);
  border-color: rgba(122, 164, 255, 0.14);
}

.page-footer {
  padding: 28px 32px 32px;
  font-size: 0.78rem;
  color: var(--muted-2);
  border-top: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

.footer-link {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.8rem;
}

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

.footer-text {
  font-size: 0.8rem;
  color: var(--muted-2);
}

.footer-meta {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: right;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Cookie / privacy banner */
.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 520px;
  margin-inline: auto;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner-button {
  font-size: 0.8rem;
  padding: 8px 12px;
}

.cookie-banner-link {
  color: #e5e7eb;
  text-decoration: underline;
}

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

/* Rankings tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 8px;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
  color: var(--text);
}

.rankings-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

.rankings-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.rankings-table tbody tr:last-child td {
  border-bottom-color: transparent;
}

.rankings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rankings-table .rank-col {
  width: 64px;
  text-align: right;
  color: var(--muted-2);
}

.rankings-table .score-col,
.rankings-table .date-col {
  white-space: nowrap;
}

/* Score band colors: 0–24 red, 25–49 yellow, 50–64 light green, 65+ green */
.rankings-table .score-cell--red { color: var(--accent-red); font-weight: 600; }
.rankings-table .score-cell--yellow { color: var(--warn); font-weight: 600; }
.rankings-table .score-cell--light-green { color: #86efac; font-weight: 600; }
.rankings-table .score-cell--green { color: var(--accent-green); font-weight: 600; }

.rankings-table .url-col a {
  color: #fff;
  text-decoration: none;
  word-break: break-all;
}

.rankings-table .url-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.rankings-empty {
  text-align: center;
  padding: 16px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Interactive rankings table (sortable, resizable, paginated) */
.rankings-table-wrapper {
  position: relative;
}

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

.rankings-controls-left {
  flex: 1;
  min-width: 0;
}

.rankings-card-desc {
  margin-bottom: 0;
}

.rankings-controls-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.rankings-sort-trigger {
  min-width: 90px;
}

.rankings-sort-menu {
  position: absolute;
  right: 24px;
  margin-top: 4px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 20;
}

.rankings-sort-menu.is-open {
  display: flex;
}

.rankings-sort-option {
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.rankings-sort-option:hover,
.rankings-sort-option.is-active {
  background: rgba(122, 164, 255, 0.18);
}

.rankings-table--interactive {
  table-layout: fixed;
}

.rankings-table--interactive th,
.rankings-table--interactive td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkbox-col {
  width: 44px;
  text-align: center;
}

.checkbox-col input[type="checkbox"] {
  cursor: pointer;
}

.resizable-col {
  position: relative;
}

.resizable-col-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.resizable-col-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 1;
  color: rgba(148, 163, 184, 0.5);
  transition: color 0.16s ease;
}

/* Neutral: show up/down hint when column is not sorted */
.resizable-col .resizable-col-indicator::before {
  content: "↕";
}

/* Sorted ascending: up arrow */
.resizable-col[data-sort="asc"] .resizable-col-indicator::before {
  content: "▲";
  color: rgba(255, 255, 255, 0.9);
}

/* Sorted descending: down arrow */
.resizable-col[data-sort="desc"] .resizable-col-indicator::before {
  content: "▼";
  color: rgba(255, 255, 255, 0.9);
}

.resizable-col:hover .resizable-col-indicator {
  color: rgba(148, 163, 184, 0.85);
}

.col-resizer {
  position: relative;
  width: 8px;
  height: 20px;
  cursor: col-resize;
  flex-shrink: 0;
}

.col-resizer::before {
  content: "";
  position: absolute;
  inset-block: 2px;
  left: 3px;
  width: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.col-resizer.is-resizing::before {
  background: rgba(122, 164, 255, 0.9);
}

.rankings-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.rankings-page-status {
  font-size: 0.85rem;
  color: var(--muted-2);
}

.rankings-page-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.rankings-row-selected {
  background: rgba(122, 164, 255, 0.08);
}

@media (max-width: 720px) {
  .rankings-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .rankings-controls-right {
    align-items: flex-start;
  }

  .rankings-sort-menu {
    right: 16px;
  }
}

@media (max-width: 720px) {
  .rankings-table {
    min-width: 0;
  }

  .rankings-table thead {
    display: none;
  }

  .rankings-table,
  .rankings-table tbody,
  .rankings-table tr,
  .rankings-table td {
    display: block;
    width: 100%;
  }

  .rankings-table tbody tr {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }

  .rankings-table tbody td {
    border-bottom: none;
    padding: 6px 12px;
  }

  .rankings-table .rank-col {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
  }

  .rankings-table .score-col,
  .rankings-table .date-col {
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    inset-inline: 12px;
    bottom: 12px;
    padding: 14px 14px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-right: none;
    border-bottom: none;
  }

  .sidebar-brand {
    padding: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-section {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-section-label {
    display: none;
  }

  .content {
    padding: 20px 16px 24px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .footer-meta {
    text-align: left;
  }

  .topbar {
    padding: 12px 16px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar-menu-toggle {
    display: inline-flex;
  }

  .topbar-nav {
    display: none;
    flex-wrap: nowrap;
    width: auto;
    margin-top: 0;
  }

  .topbar-nav.topbar-nav--open {
    display: flex;
    width: auto;
  }

  .topbar-nav .nav-section {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .field-row {
    flex-direction: column;
  }

  #checker-view {
    display: block;
  }

  .checks-section--split {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .results-hero {
    flex-direction: column;
  }

  .score-card {
    width: 100%;
  }

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