:root, [data-theme="dark"] {
  --brand-900: #1a0533;
  --brand-800: #2e0a57;
  --brand-700: #4a1280;
  --brand-500: #7c3aed;
  --brand-400: #9d5cf5;
  --brand-300: #c4a0fb;
  --brand-100: #f3ecff;
  --surface-base: #0f0b17;
  --surface-elevated: #18122b;
  --surface-floating: #221940;
  --text-primary: #f0eaf9;
  --text-muted: #9d8fbc;
  --border: rgba(124, 58, 237, 0.18);
  --navbar-bg: rgba(15, 11, 23, 0.85);

  /* Glyph sitting on a dark plate (tip icons). The plate keeps the
     brand-800/700 gradient in both themes, so this must not flip with
     the theme the way --brand-300 does. */
  --icon-on-dark: #c4a0fb;

  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.12), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.18), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 48px rgba(124, 58, 237, 0.22), 0 4px 16px rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --brand-900: #1a0533;
  --brand-800: #2e0a57;
  --brand-700: #4a1280;
  --brand-500: #7c3aed;
  --brand-400: #6d28d9;
  --brand-300: #5b21b6;
  --brand-100: #ede9fe;
  --surface-base: #faf8ff;
  --surface-elevated: #ffffff;
  --surface-floating: #ede8ff;
  --text-primary: #1a0533;
  --text-muted: #5f4e7e;
  --border: rgba(124, 58, 237, 0.15);
  --navbar-bg: rgba(250, 248, 255, 0.92);
  --icon-on-dark: #eee3ff;

  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 48px rgba(124, 58, 237, 0.13), 0 4px 16px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] {
    --brand-900: #1a0533;
    --brand-800: #2e0a57;
    --brand-700: #4a1280;
    --brand-500: #7c3aed;
    --brand-400: #6d28d9;
    --brand-300: #5b21b6;
    --brand-100: #ede9fe;
    --surface-base: #faf8ff;
    --surface-elevated: #ffffff;
    --surface-floating: #ede8ff;
    --text-primary: #1a0533;
    --text-muted: #5f4e7e;
    --border: rgba(124, 58, 237, 0.15);
    --navbar-bg: rgba(250, 248, 255, 0.92);
    --icon-on-dark: #eee3ff;

    --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.08), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.10), 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 48px rgba(124, 58, 237, 0.13), 0 4px 16px rgba(0,0,0,0.08);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--surface-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* ── Tooltips ── */
.tooltip {
  --bs-tooltip-bg: #2d2558;
  --bs-tooltip-color: var(--text-primary);
  max-width: none !important;
}
[data-theme="light"] .tooltip { --bs-tooltip-bg: #bdb4e8; }
@media (prefers-color-scheme: light) {
  [data-theme="system"] .tooltip { --bs-tooltip-bg: #bdb4e8; }
}
.tooltip-inner {
  font-size: 0.8rem;
  white-space: nowrap;
  text-align: left;
  border: 1px solid var(--border);
  line-height: 1.7;
  padding: 0.5rem 0.75rem;
  max-width: none !important;
}

/* ── Navbar ── */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  text-decoration: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-svg-icon {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
}

.navbar-logo {
  height: 28px;
  width: auto;
  display: block;
}

.navbar-logo-light { display: none; }

[data-theme="light"] .navbar-logo-dark { display: none; }
[data-theme="light"] .navbar-logo-light { display: block; }

@media (prefers-color-scheme: light) {
  [data-theme="system"] .navbar-logo-dark { display: none; }
  [data-theme="system"] .navbar-logo-light { display: block; }
}

.navbar-toggler {
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3); }

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240,234,249,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--text-primary) !important;
  background: rgba(124, 58, 237, 0.12);
}

.nav-link.active {
  color: var(--brand-300) !important;
}

.nav-cta {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0.4rem 1.1rem !important;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md) !important;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500)) !important;
}

.nav-cta:active { transform: translateY(0); }

/* ── Tools dropdown ── */
.dropdown-menu {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 0.25rem !important;
  min-width: 220px;
}

.dropdown-item {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.12);
}

.dropdown-favicon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Show on hover (desktop only) */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
  }
  .dropdown-toggle::after {
    vertical-align: 0.15em;
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(124, 58, 237, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(74, 18, 128, 0.22) 0%, transparent 60%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-300);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary-brand {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-brand:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 0.95;
  color: #fff;
}

.btn-primary-brand:active { transform: translateY(0); }
.btn-primary-brand:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.07);
}

.btn-ghost:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 3px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  flex: 1 1 auto;
  min-width: 0;
}

.font-card-demo {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.font-card-demo .demo-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.font-card-demo .demo-image-strip {
  background: var(--surface-floating);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.demo-font-sample {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.font-match-result {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}

.match-score {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.match-info .match-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.match-info .match-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.match-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--brand-300);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.float-card {
  position: absolute;
  background: var(--surface-floating);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  white-space: nowrap;
}

.float-card-1 {
  top: -18px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.float-card-2 {
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.stat-number {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-300);
  display: block;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0.25rem 0;
}

/* ── Section common ── */
section { position: relative; z-index: 1; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-400);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── How It Works ── */
.how-section {
  padding: 5rem 0;
}

.step-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.35);
}

.step-card:hover::before { opacity: 1; }

.step-number {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(124, 58, 237, 0.35);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Tools section ── */
.tools-category-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.tools-category-label i {
  font-size: 0.85rem;
  color: var(--brand-300);
}

.tools-section {
  padding: 5rem 0;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tool-card {
  background: var(--surface-base);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.35);
}

.tool-card:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 3px;
}

.tool-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--surface-floating);
  border: 1px solid var(--border);
  padding: 8px;
}

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

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tool-meta { flex: 1; }

.tool-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.tool-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tool-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-300);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-400);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.tool-link:hover { color: var(--brand-300); gap: 0.6rem; }
.tool-link:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 2px; border-radius: 3px; }

/* ── Tips section ── */
.tips-section {
  padding: 5rem 0;
}

.tip-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.tip-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.tip-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.tip-text h5 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.tip-text p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── FAQ ── */
.faq-section {
  padding: 5rem 0;
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.accordion-item {
  background: var(--surface-base) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.accordion-button {
  background: var(--surface-base) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1.1rem 1.4rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--brand-300) !important;
  background: rgba(124, 58, 237, 0.06) !important;
}

.accordion-button::after {
  filter: invert(1) brightness(0.7);
}

.accordion-body {
  background: var(--surface-base) !important;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 1.4rem 1.2rem;
}

/* ── CTA Banner ── */
.cta-section {
  padding: 5rem 0;
}

.cta-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ── Footer ── */
footer {
  background: var(--surface-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-brand-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-brand-name span { color: var(--brand-400); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--brand-300); }
.footer-link:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 2px; border-radius: 3px; }

.footer-divider {
  border-color: var(--border);
  margin: 2rem 0 1.5rem;
}

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

/* ── Responsive ── */
/* ── Step cards — horizontal variant (tool pages) ── */
.step-card-h {
  height: auto;
}

.step-card-h .step-number {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.step-card-img {
  border-radius: 12px;
  display: block;
  width: 100%;
}

a.glightbox .step-card-img {
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.glightbox:hover .step-card-img {
  opacity: 0.92;
  transform: scale(1.01);
}

/* ── Feature cards (tool pages) ── */
.feature-card {
  background: var(--surface-floating);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 1rem;
}

.feature-card .step-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-bottom: 0;
}

.feature-card .step-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.feature-card .step-desc {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

[data-theme="light"] .feature-card .step-icon i {
  color: #fff !important;
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] .feature-card .step-icon i {
    color: #fff !important;
  }
}

@media (max-width: 767px) {
  .hero { padding: 4rem 0 3.5rem; }
  .hero-visual { margin-top: 3rem; }
  .float-card-1, .float-card-2 { display: none; }
  .stat-divider { display: none; }
  .cta-card { padding: 2.5rem 1.25rem; }
}

@media (min-width: 992px) {
  .hero-subtitle { font-size: 1.15rem; }
}

/* ── Theme switcher ── */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--surface-floating);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.theme-btn:hover {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.12);
}

.theme-btn.active {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.theme-btn:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
}

/* ── Language selector ── */
.flag {
  display: inline-block;
  width: 1.25rem;
  height: 0.85rem;
  margin-right: 0.5rem;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(26, 5, 51, 0.18);
  vertical-align: -0.1em;
}

.flag-gb { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 40%22%3E%3CclipPath id=%22a%22%3E%3Cpath d=%22M0 0h60v40H0z%22/%3E%3C/clipPath%3E%3CclipPath id=%22b%22%3E%3Cpath d=%22M30 20h30v20zv20H0zH0V0zV0h30z%22/%3E%3C/clipPath%3E%3Cg clip-path=%22url%28%23a%29%22%3E%3Cpath d=%22M0 0v40h60V0z%22 fill=%22%23012169%22/%3E%3Cpath d=%22M0 0l60 40m0-40L0 40%22 stroke=%22%23fff%22 stroke-width=%228%22/%3E%3Cpath d=%22M0 0l60 40m0-40L0 40%22 clip-path=%22url%28%23b%29%22 stroke=%22%23C8102E%22 stroke-width=%225%22/%3E%3Cpath d=%22M30 0v40M0 20h60%22 stroke=%22%23fff%22 stroke-width=%2212%22/%3E%3Cpath d=%22M30 0v40M0 20h60%22 stroke=%22%23C8102E%22 stroke-width=%227%22/%3E%3C/g%3E%3C/svg%3E"); }
.flag-es { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 40%22%3E%3Cpath fill=%22%23AA151B%22 d=%22M0 0h60v40H0z%22/%3E%3Cpath fill=%22%23F1BF00%22 d=%22M0 10h60v20H0z%22/%3E%3C/svg%3E"); }
.flag-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 40%22%3E%3Cpath fill=%22%23fff%22 d=%22M0 0h60v40H0z%22/%3E%3Cpath fill=%22%23002395%22 d=%22M0 0h20v40H0z%22/%3E%3Cpath fill=%22%23ED2939%22 d=%22M40 0h20v40H40z%22/%3E%3C/svg%3E"); }
.flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 40%22%3E%3Cpath fill=%22%23FFCE00%22 d=%22M0 0h60v40H0z%22/%3E%3Cpath fill=%22%23DD0000%22 d=%22M0 0h60v26.7H0z%22/%3E%3Cpath d=%22M0 0h60v13.3H0z%22/%3E%3C/svg%3E"); }
.flag-br { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 40%22%3E%3Cpath fill=%22%23009C3B%22 d=%22M0 0h60v40H0z%22/%3E%3Cpath fill=%22%23FFDF00%22 d=%22M30 4l26 16-26 16L4 20z%22/%3E%3Ccircle cx=%2230%22 cy=%2220%22 r=%228%22 fill=%22%23002776%22/%3E%3C/svg%3E"); }

.dropdown-menu .dropdown-item.active .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }

/* ── Light-mode component overrides ── */
[data-theme="light"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,5,51,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .accordion-button::after {
  filter: none;
}

[data-theme="light"] body::before {
  opacity: 0.02;
}

@media (prefers-color-scheme: light) {
  [data-theme="system"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,5,51,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  [data-theme="system"] .accordion-button::after {
    filter: none;
  }

  [data-theme="system"] body::before {
    opacity: 0.02;
  }
}

/* ── Comparison matrix ── */
.compare-section { padding: 5rem 0; background: var(--surface-base); }
.compare-wrap {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.08), 0 12px 32px rgba(124, 58, 237, 0.12);
  overflow-x: auto;
}
.compare-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 0.9rem; color: var(--text-primary); }
.compare-table th, .compare-table td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-floating); white-space: nowrap; }
.compare-table tbody th { font-weight: 600; white-space: nowrap; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: var(--surface-floating); }
.compare-table a { color: var(--brand-300); text-decoration: none; }
.compare-table a:hover, .compare-table a:focus-visible { text-decoration: underline; }
.compare-table .yes { color: #22c55e; font-weight: 600; }
.compare-table .no { color: var(--text-muted); }
.compare-score { display: inline-block; min-width: 2.6rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--brand-800); color: var(--brand-100); font-weight: 600; text-align: center; }
.compare-score.top { background: var(--brand-500); color: #fff; }
.compare-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }

/* ── Tool card footer ── */
.tool-footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.btn-review {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-400);
  text-decoration: none;
  background: transparent;
  border: 1.5px solid var(--brand-500);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-review:hover { transform: translateY(-2px); color: var(--brand-300); background: rgba(124, 58, 237, 0.08); }
.btn-review:active { transform: translateY(0); }
.btn-review:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 3px; }
.compare-table th:nth-child(3), .compare-table td:nth-child(3),
.compare-table th:nth-child(5), .compare-table td:nth-child(5),
.compare-table th:nth-child(6), .compare-table td:nth-child(6) { text-align: center; }

/* ── Hero demo images ── */
.demo-image-strip img { display: block; width: 100%; height: auto; }
.font-card-demo .demo-image-strip, .font-card-demo .font-match-result { transition: opacity 0.25s ease; }
.font-card-demo.is-swapping .demo-image-strip { opacity: 0; }
.font-card-demo.is-swapping .match-glyph { opacity: 0; }
.match-info { flex: 1; min-width: 0; }
.match-glyph { display: block; width: 100%; height: 64px; max-width: 100%; object-fit: contain; object-position: center; padding: 6px 12px; transition: opacity 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  .font-card-demo .demo-image-strip, .font-card-demo .font-match-result, .match-glyph { transition: none; }
}
.font-match-result { position: relative; }
.font-match-result .match-badge { position: absolute; top: 0.3rem; right: 0.3rem; margin-left: 0; background: rgba(124, 58, 237, 0.75); color: #fff; border-color: rgba(124, 58, 237, 0.85); box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35); }
.glyph-light { display: none; }
[data-theme="light"] .glyph-dark { display: none; }
[data-theme="light"] .glyph-light { display: block; }
@media (prefers-color-scheme: light) {
  [data-theme="system"] .glyph-dark { display: none; }
  [data-theme="system"] .glyph-light { display: block; }
}

/* ── Hero arrows ── */
.hero-visual { gap: 0.75rem; }
.hero-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hero-arrow:hover { transform: scale(1.1); color: var(--text-primary); border-color: rgba(124, 58, 237, 0.4); }
.hero-arrow:active { transform: scale(0.95); }
.hero-arrow:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 3px; }

.match-font-name { font-size: 0.72rem; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-card-demo.is-swapping .match-font-name { opacity: 0; }
.match-font-name { transition: opacity 0.25s ease; }
