/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ── Design tokens — Light (default) ───────────────────────── */
:root {
  /* Surfaces */
  --bg:           #ffffff;
  --bg-subtle:    #f7f7f8;
  --bg-card:      #ffffff;
  --bg-input:     #ffffff;

  /* Borders */
  --border:       #e4e4e7;
  --border-focus: #2563eb;

  /* Text */
  --ink:          #09090b;
  --ink-2:        #3f3f46;
  --ink-3:        #71717a;
  --ink-4:        #73737c;

  /* Brand */
  --blue:         #2563eb;
  --blue-hover:   #1d4ed8;
  --blue-bg:      #eff6ff;
  --blue-text:    #1d4ed8;
  --violet-bg:    #f5f3ff;
  --violet-text:  #6d28d9;
  --green-bg:     #f0fdf4;
  --green-text:   #15803d;
  --amber-bg:     #fffbeb;
  --amber-text:   #b45309;

  /* Toggle */
  --toggle-bg:    #e4e4e7;
  --toggle-thumb: #ffffff;

  /* Misc */
  --shadow-sm:    0 1px 2px rgba(0 0 0 / 0.06);
  --shadow-md:    0 4px 16px rgba(0 0 0 / 0.08);
  --shadow-lg:    0 12px 40px rgba(0 0 0 / 0.1);

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max-w: 1080px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Dark mode tokens ───────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0f1117;
  --bg-subtle:    #161b27;
  --bg-card:      #161b27;
  --bg-input:     #1c2030;

  --border:       #2a2f42;
  --border-focus: #3b82f6;

  --ink:          #f4f4f5;
  --ink-2:        #d4d4d8;
  --ink-3:        #a1a1aa;
  --ink-4:        #52525b;

  --blue:         #3b82f6;
  --blue-hover:   #60a5fa;
  --blue-bg:      rgba(59 130 246 / 0.1);
  --blue-text:    #93c5fd;
  --violet-bg:    rgba(139 92 246 / 0.1);
  --violet-text:  #c4b5fd;
  --green-bg:     rgba(34 197 94 / 0.1);
  --green-text:   #86efac;
  --amber-bg:     rgba(245 158 11 / 0.1);
  --amber-text:   #fcd34d;

  --toggle-bg:    #3b82f6;
  --toggle-thumb: #ffffff;

  --shadow-sm:    0 1px 2px rgba(0 0 0 / 0.3);
  --shadow-md:    0 4px 16px rgba(0 0 0 / 0.4);
  --shadow-lg:    0 12px 40px rgba(0 0 0 / 0.5);
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

::selection { background: rgba(37 99 235 / 0.18); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}

.nav__logo-img {
  border-radius: 6px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 0;
}

.nav__links a {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--ink-3);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  cursor: pointer;
  color: var(--ink-3);
  font: inherit;
  font-size: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: var(--ink-4); background: var(--bg-subtle); }

.theme-toggle__track {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--toggle-bg);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--toggle-thumb);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease);
}

[data-theme="dark"] .theme-toggle__thumb { transform: translateX(12px); }

.icon-sun { display: block; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 120px var(--gutter) 80px;
  text-align: center;
  background: var(--bg);
  transition: background 0.25s ease;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  animation: fade-up 0.7s var(--ease) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Badges */
.hero__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* Headline */
.hero__h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
  transition: color 0.25s ease;
}

.hero__sub {
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 400;
  color: var(--ink-3);
  margin-bottom: 36px;
  line-height: 1.7;
  transition: color 0.25s ease;
}

/* ── Search bar ─────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  max-width: 720px; /* was 600 — +20% */
  margin: 0 auto 19px;
  border-radius: 17px;
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  box-shadow: var(--shadow-sm);
  height: 65px; /* was 54 — +20% */
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37 99 235 / 0.12), var(--shadow-sm);
}

.search-bar.shake {
  animation: shake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  border-color: #ef4444;
}
@keyframes shake {
  10%, 90% { transform: translateX(-3px); }
  20%, 80% { transform: translateX(5px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.search-bar__icon {
  padding: 0 5px 0 19px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.search-bar__icon svg {
  width: 26px;
  height: 26px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px; /* was 14.5 — +20% */
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  height: 100%;
  transition: color 0.25s ease;
}
.search-bar input::placeholder { color: var(--ink-4); }

.search-bar__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 7px;
  height: 50px; /* was 42 — +20% */
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 17px; /* was 14 — +20% */
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease);
  white-space: nowrap;
}
.search-bar__btn svg {
  width: 19px;
  height: 19px;
}
.search-bar__btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
.search-bar__btn:active { transform: scale(0.97); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink-3);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.filter-tab:hover { border-color: var(--blue); color: var(--blue); }
.filter-tab.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* ── Result card ─────────────────────────────────────────────── */
.result-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  text-align: left;

  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.result-card--multi {
  grid-template-columns: 1fr;
  max-width: 720px;
  gap: 14px;
}
.result-card.is-visible { opacity: 1; transform: none; }
.result-card[hidden] { display: none; }

.result-card__thumb {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 1;
  max-height: 140px;
  align-self: start;
}
.result-card__thumb-img {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.result-card__thumb-inner {
  height: 114px;
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 50%, #bfdbfe 100%);
}
[data-theme="dark"] .result-card__thumb-inner {
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #0c1a4e 100%);
}

.result-card__type-badge {
  position: absolute;
  bottom: 6px; left: 6px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(0 0 0 / 0.55);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255 255 255 / 0.9);
  display: flex;
  align-items: center;
}

.result-card__head { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.result-card__info { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.result-card__handle { font-size: 14px; font-weight: 600; color: var(--ink); }
.result-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}
.result-card__title--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-card__more {
  align-self: start;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}
.result-card__caption { font-size: 12.5px; color: var(--ink-3); }
.result-card__meta {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0;
}
.result-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.res-quality, .res-format { display: flex; gap: 5px; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.result-slide {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle, #f4f4f5);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.result-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.result-slide__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0 0 0 / 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.result-slide__dl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0 0 0 / 0.72));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.result-slide:hover .result-slide__dl,
.result-slide:focus-visible .result-slide__dl {
  opacity: 1;
}
@media (hover: none) {
  .result-slide__dl { opacity: 1; }
}

.res-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-3);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.res-btn:hover { border-color: var(--blue); color: var(--blue); }
.res-btn.is-active {
  border-color: var(--blue);
  background: var(--blue-bg);
  color: var(--blue-text);
  font-weight: 600;
}

.dl-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}
.dl-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }

/* ── Shared section styles ───────────────────────────────────── */
.section {
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.section-h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 48px;
  transition: color 0.25s ease;
}

/* ── Steps ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 36px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--ease), background 0.25s ease;
}
.step:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step__num {
  position: absolute;
  top: 20px; right: 22px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

.step__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.25s ease;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.step p { font-size: 13.5px; color: var(--ink-3); line-height: 1.7; transition: color 0.25s ease; }

/* ── Features ───────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 26px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--ease), background 0.25s ease;
}
.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  align-items: start;
}
.feature-card--wide .feature-card__icon { grid-row: span 3; }
.feature-card--wide .feature-card__tag { grid-column: 2; }

.feature-card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-card__icon--blue   { background: var(--blue-bg);   color: var(--blue); }
.feature-card__icon--violet { background: var(--violet-bg); color: var(--violet-text); }
.feature-card__icon--green  { background: var(--green-bg);  color: var(--green-text); }
.feature-card__icon--amber  { background: var(--amber-bg);  color: var(--amber-text); }

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.feature-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; transition: color 0.25s ease; }
.feature-card__tag {
  display: inline-flex;
  margin-top: 12px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue-bg);
  color: var(--blue-text);
  font-size: 11px;
  font-weight: 600;
  align-items: center;
}

/* ── FAQ ────────────────────────────────────────────────────── */
/* ── FAQ ────────────────────────────────────────────────────── */
.faq-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px 80px;
  align-items: start;
}

.faq-intro { position: sticky; top: 80px; }
.faq-intro .section-h2 { margin-bottom: 12px; }
.faq-intro__sub { font-size: 14px; color: var(--ink-3); line-height: 1.7; transition: color 0.25s ease; }

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

.faq-item {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.25s ease;
}
.faq-item[open] { border-color: var(--blue); }

.faq-item summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.faq-item[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
  transition: color 0.25s ease;
}

/* ── Guides ─────────────────────────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--ease), background 0.25s ease;
  position: relative;
}
.guide-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.guide-card__icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--blue-bg);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.guide-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: color 0.25s ease;
}
.guide-card p { font-size: 13px; color: var(--ink-3); line-height: 1.6; transition: color 0.25s ease; }
.guide-card__arrow {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 16px;
  color: var(--ink-4);
  transition: transform 0.2s ease, color 0.2s ease;
}
.guide-card:hover .guide-card__arrow { transform: translateX(3px); color: var(--blue); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) 0 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.footer__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-bottom: clamp(32px, 5vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__brand p { font-size: 13px; color: var(--ink-3); line-height: 1.65; transition: color 0.25s ease; }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color 0.25s ease;
}
.footer__col a { font-size: 13.5px; color: var(--ink-3); transition: color 0.15s ease; }
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-4);
  flex-wrap: wrap;
  transition: border-color 0.25s ease;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }

  /* Compact first viewport so How it works peeks in — keep a short breath after tabs */
  .hero { padding-top: 76px; padding-bottom: 24px; }
  .hero__badges { margin-bottom: 12px; }
  .hero__h1 {
    font-size: clamp(28px, 8.5vw, 36px);
    margin-bottom: 8px;
  }
  .hero__sub {
    margin-bottom: 16px;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .search-bar {
    max-width: 100%;
    height: 54px;
    margin-bottom: 12px;
  }
  .filter-tabs { margin-bottom: 10px; }
  .steps-section { padding-top: 40px; }

  /* While pasting: drop marketing chrome so the bar sits above the keyboard */
  .hero:has(#url-input:focus) {
    padding-top: 68px;
    padding-bottom: 12px;
  }
  .hero:has(#url-input:focus) .hero__badges,
  .hero:has(#url-input:focus) .hero__h1,
  .hero:has(#url-input:focus) .hero__sub,
  .hero:has(#url-input:focus) .filter-tabs {
    display: none;
  }
  .hero:has(#url-input:focus) .search-bar { margin-bottom: 0; }

  .search-bar input { font-size: 14px; padding: 0 8px; }
  .search-bar__btn span { display: none; }
  .search-bar__btn { padding: 0 14px; gap: 0; }

  .steps, .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card--wide { grid-column: span 1; grid-template-columns: 1fr; }
  .feature-card--wide .feature-card__icon { grid-row: auto; }

  .faq-container { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }

  .guide-grid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .result-card { grid-template-columns: 1fr; }
}

/* ── Scroll-reveal classes (replaces inline style.animation) ── */
.will-reveal { opacity: 0; }
.is-revealed  { animation: fade-up 0.6s cubic-bezier(0.22,1,0.36,1) both; }

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

.lang-switcher-wrap {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 120;
}
.lang-switcher,
.lang-switcher--native {
  /* Visually hidden but kept for no-JS / crawlers */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.lang-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated, var(--bg));
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lang-dd__btn:hover,
.lang-dd.is-open .lang-dd__btn {
  border-color: var(--blue);
}
.lang-dd__flag {
  font-size: 14px;
  line-height: 1;
}
.lang-dd__code { letter-spacing: 0.02em; }
.lang-dd__chev {
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.15s ease;
}
.lang-dd.is-open .lang-dd__chev {
  transform: translateY(2px) rotate(225deg);
}

/* Always open downward below the trigger */
.lang-dd__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated, var(--bg-card, var(--bg)));
  box-shadow: var(--shadow-sm, 0 8px 24px rgba(0 0 0 / 0.12));
  z-index: 130;
}
.lang-dd__menu[hidden] { display: none; }
.lang-dd__menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.lang-dd__menu li:hover,
.lang-dd__menu li:focus {
  background: var(--bg-subtle, rgba(37, 99, 235, 0.08));
  outline: none;
}
.lang-dd__menu li[aria-selected="true"] {
  color: var(--blue);
}

.form-error {
  margin: 12px auto 0;
  max-width: 640px;
  color: #dc2626;
  font-size: 14px;
  text-align: center;
}

.search-bar__btn.is-loading { opacity: 0.7; pointer-events: none; }

/* Turnstile — fixed corner so the hero paste bar stays clean */
.cf-turnstile {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  margin: 0 !important;
  display: block !important;
  justify-content: unset !important;
  filter: drop-shadow(0 8px 24px rgba(0 0 0 / 0.28));
}
@media (max-width: 640px) {
  .cf-turnstile {
    right: 10px;
    bottom: 10px;
    transform: scale(0.92);
    transform-origin: bottom right;
  }
}

.result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.res-download {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.result-card__warn {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted, #6b7280);
}

.tool-link-list {
  list-style: none;
  padding: 0;
  margin: 16px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tool-link-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tool-link-list a:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 6%, transparent);
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
