/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f5f2ef;
  --surface: #ffffff;
  --surface-2: #ece7e2;
  --text: #18130f;
  --text-soft: #5c5249;
  --border: #ddd5cc;
  --accent: #d81f26;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6e5;
  --short: #d81f26;
  --long: #f2a900;
  --good: #1f9d55;
  --warn-bg: #fff6df;
  --warn-border: #f0c33c;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Manrope', var(--sans);

  --radius: 14px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0908;
    --surface: #141210;
    --surface-2: #1e1a17;
    --text: #f6f2ee;
    --text-soft: #b4a99f;
    --border: #3c362f;
    --accent: #ff3b30;
    --accent-ink: #18130f;
    --accent-soft: #341613;
    --short: #ff3b30;
    --long: #ffc233;
    --warn-bg: #2b2310;
    --warn-border: #6b5720;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0908;
  --surface: #141210;
  --surface-2: #1e1a17;
  --text: #f6f2ee;
  --text-soft: #b4a99f;
  --border: #3c362f;
  --accent: #ff3b30;
  --accent-ink: #18130f;
  --accent-soft: #341613;
  --short: #ff3b30;
  --long: #ffc233;
  --warn-bg: #2b2310;
  --warn-border: #6b5720;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 50% -12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; font-family: var(--display); font-weight: 800; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.content-narrow { max-width: 760px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Header / footer
   ============================================================= */
.header-wrap { position: sticky; top: 0; z-index: 50; }
.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: .45rem;
}
.logo span { color: var(--accent); }
.logo-icon { width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px; box-shadow: 0 2px 6px -2px rgba(216,31,38,.5); }
.header-nav {
  display: flex; gap: 1.1rem; font-size: .87rem; font-weight: 600;
  position: absolute; top: 0; right: 1.25rem; height: 60px; align-items: center;
}
.header-nav a { color: var(--text-soft); transition: color .2s var(--ease-out); }
.header-nav a:hover { color: var(--accent); }
.header-nav a.is-active { color: var(--accent); }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: none; border: none; border-radius: 8px;
  color: var(--text); cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle svg { width: 22px; height: 22px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  color: var(--text-soft);
  font-size: .85rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { position: relative; transition: color .2s var(--ease-out); }
.footer-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1.5px;
  background: var(--accent); transition: right .2s var(--ease-out);
}
.footer-links a:hover { color: var(--accent); }
.footer-links a:hover::after { right: 0; }
.footer-cross-link { margin-top: .85rem; font-size: .8rem; opacity: .75; }
.footer-cross-link a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-cross-link a:hover { color: var(--accent); opacity: 1; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero { padding-block: 3.5rem 1.75rem; position: relative; overflow: hidden; text-align: center; }
.hero-inner { max-width: 700px; margin-inline: auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  animation: badgeIn .5s var(--ease-out) both;
}
.hero-eyebrow svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero h1 {
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  max-width: 20ch;
  margin-inline: auto;
  animation: heroIn .55s var(--ease-out) .05s both;
}
.hero-sub {
  color: var(--text-soft); margin: .8rem auto 0; max-width: 54ch;
  font-size: 1.05rem;
  animation: heroIn .55s var(--ease-out) .12s both;
}

.hero-flag-decor {
  position: absolute;
  top: -22%; right: -6%;
  width: 620px; height: auto;
  transform-origin: top right;
  transform: rotate(14deg);
  opacity: .1;
  pointer-events: none;
  z-index: 0;
  animation: flagIn .8s var(--ease-out) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 360px;
  background: radial-gradient(55% 55% at 50% 15%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
@media (max-width: 719px) { .hero-flag-decor { width: 380px; top: -22%; right: -9%; } }

@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes badgeIn { from { opacity: 0; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes flagIn { from { opacity: 0; transform: rotate(14deg) translateY(-8px); } to { opacity: .1; transform: rotate(14deg) translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-sub, .hero-flag-decor { animation: none; }
}

/* =============================================================
   6. Tool card
   ============================================================= */
.tool-section { padding-block: .25rem 1.5rem; }

.tool-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(20,20,20,.04), 0 20px 44px -22px rgba(20,20,20,.28);
  animation: cardIn .5s var(--ease-out) both;
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--short), var(--accent) 45%, var(--long));
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tool-card { animation: none; } }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
.field-full { grid-column: 1 / -1; }
.tool-grid-triple { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 719px) { .tool-grid-triple { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 539px) { .tool-grid-triple { grid-template-columns: 1fr; } }

/* Converter groups */
.converter-group { margin-bottom: 1.5rem; }
.converter-group:last-child { margin-bottom: 0; }
.converter-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .6rem;
}
.converter-label .icon { width: 15px; height: 15px; color: var(--accent); }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-size: .85rem; font-weight: 600; color: var(--text-soft);
}
.field label .hint { font-weight: 400; opacity: .8; }

.field input[type="number"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.field input[type="number"]:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
/* hide native spinners for a calmer look, keep keyboard/touch input */
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button { opacity: .5; }

.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: .7rem .85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.field select:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field.is-invalid input[type="number"] {
  border-color: #e03131;
  background: color-mix(in srgb, #e03131 8%, var(--surface-2));
}

.input-with-unit { display: flex; gap: .5rem; align-items: stretch; }
.input-with-unit input { flex: 1 1 auto; min-width: 0; }

.unit-toggle {
  display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; flex: 0 0 auto;
}
.unit-btn {
  padding: 0 .7rem; font-size: .8rem; font-weight: 700;
  color: var(--text-soft); background: var(--surface-2);
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
  white-space: nowrap;
}
.unit-btn.is-active { background: var(--accent); color: var(--accent-ink); }

/* Ratio chips */
.ratio-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ratio-chip {
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.ratio-chip:hover { border-color: var(--accent); color: var(--accent); }
.ratio-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Results */
.results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.result-box {
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .25rem;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}
.result-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -14px rgba(20,20,20,.35);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.result-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .03em;
}
.result-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); color: var(--accent);
  box-shadow: 0 1px 2px rgba(20,20,20,.08);
}
.icon { width: 15px; height: 15px; flex-shrink: 0; }
.result-value { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.15rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.result-sub { font-size: .8rem; color: var(--text-soft); }

@keyframes valuePulse { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }
.result-value.is-updated, .compare-speed.is-updated, .compare-ratio.is-updated { animation: valuePulse .32s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .result-value.is-updated, .compare-speed.is-updated, .compare-ratio.is-updated { animation: none; }
}

/* Gauge */
.gauge-block { margin-top: 1.75rem; }
.gauge-labels {
  display: flex; justify-content: space-between;
  font-size: .78rem; font-weight: 700; color: var(--text-soft);
  margin-bottom: .5rem;
}
.gauge-labels span { display: inline-flex; align-items: center; gap: .3rem; }
.gauge-labels .icon:first-child { color: var(--short); }
.gauge-labels span:last-child .icon { color: var(--long); }
.gauge-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--short), var(--surface-2) 50%, var(--long));
  overflow: visible;
  box-shadow: inset 0 1px 2px rgba(20,20,20,.08);
}
.gauge-marker {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  background: var(--surface);
  border: 3px solid var(--text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left .35s var(--ease-out);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
@media (prefers-reduced-motion: reduce) { .gauge-marker { transition: none; } }
.gauge-caption {
  text-align: center; margin-top: .7rem;
  font-size: .9rem; font-weight: 700; color: var(--text);
}

/* Compare toggle + panel */
.compare-toggle {
  margin-top: 1.5rem;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  font-weight: 700;
  color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out), background .2s var(--ease-out);
}
.compare-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.compare-toggle[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); border-style: solid; }
.compare-toggle .icon { transition: transform .3s var(--ease-out); }
.compare-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.compare-panel {
  margin-top: 0;
  padding: 0 1.25rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: max-height .4s var(--ease-out), opacity .3s var(--ease-out), padding .35s var(--ease-out), margin-top .35s var(--ease-out);
}
.compare-panel.is-open {
  margin-top: 1rem;
  padding: 1.25rem;
  max-height: 900px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) { .compare-panel { transition: none; } }
.compare-note { font-size: .82rem; color: var(--text-soft); margin-bottom: 1rem; }
.compare-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 1.25rem; }

.compare-results {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .75rem;
  text-align: center;
}
.compare-col h3 { font-size: .85rem; color: var(--text-soft); font-weight: 700; margin-bottom: .3rem; }
.compare-ratio { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.compare-speed { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-top: .1rem; }
.compare-character { font-size: .8rem; color: var(--text-soft); margin-top: .2rem; }
.compare-vs { font-size: .8rem; font-weight: 800; color: var(--text-soft); }
.compare-delta {
  margin-top: 1rem;
  font-size: .85rem;
  text-align: center;
  color: var(--text-soft);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  border: 1px solid var(--border);
}

/* Disclaimer */
.disclaimer {
  margin-top: 1.5rem;
  padding: .85rem 1rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--text-soft);
  display: flex; align-items: flex-start; gap: .55rem;
}
.disclaimer strong { color: var(--text); }
.icon-warn { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem; color: #b8860b; }

/* =============================================================
   7. Ad slots
   ============================================================= */
.ad-slot {
  margin-block: 1.5rem;
  min-height: 90px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  background: var(--surface-2);
}
.ad-label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; }

/* =============================================================
   8. Content sections
   ============================================================= */
.content-section { padding-block: 1.75rem; }
.content-section h1 { margin-bottom: 1.3rem; }
.content-section h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .8rem; }
.content-section p { color: var(--text-soft); margin-bottom: 1rem; }
.content-section p strong { color: var(--text); }


.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.step { text-align: left; transition: transform .25s var(--ease-out); }
.step:hover { transform: translateY(-3px); }
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--long) 14%, var(--accent-soft)));
  color: var(--accent);
  margin-bottom: .7rem;
  box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--accent) 45%, transparent);
}
.step-icon svg { width: 21px; height: 21px; }
.step h3 { font-size: 1rem; margin-bottom: .3rem; }
.step p { margin-bottom: 0; font-size: .88rem; }

@media (max-width: 719px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.feature-list li {
  color: var(--text-soft);
  padding-left: 1.4rem;
  position: relative;
}
.feature-list li::before {
  content: "→";
  position: absolute; left: 0; color: var(--accent); font-weight: 800;
}
.feature-list li strong { color: var(--text); }

.examples-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(20,20,20,.04); }
.examples-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.examples-table th, .examples-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--border); }
.examples-table th { background: var(--surface-2); font-weight: 700; color: var(--text-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.examples-table tbody tr { transition: background .15s var(--ease-out); }
.examples-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.examples-table tbody tr:hover { background: var(--accent-soft); }
.examples-table tbody tr:last-child td { border-bottom: none; }
.examples-table td:nth-child(4) { font-weight: 700; color: var(--accent); font-family: var(--display); }

/* More tools cross-links */
.tool-links-list { margin-top: 1rem; border-top: 1px solid var(--border); }
.tool-link-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: .95rem .1rem;
  border-bottom: 1px solid var(--border);
  transition: padding-left .2s var(--ease-out);
}
.tool-link-row:hover { padding-left: .35rem; }
.tool-link-row-text { display: flex; align-items: baseline; gap: .6rem; min-width: 0; }
.tool-link-row-title { font-weight: 700; color: var(--text); transition: color .2s var(--ease-out); white-space: nowrap; }
.tool-link-row:hover .tool-link-row-title { color: var(--accent); }
.tool-link-row-desc { font-size: .85rem; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-link-row-arrow { width: 16px; height: 16px; color: var(--text-soft); flex-shrink: 0; transition: transform .2s var(--ease-out), color .2s var(--ease-out); }
.tool-link-row:hover .tool-link-row-arrow { transform: translateX(3px); color: var(--accent); }
@media (max-width: 539px) {
  .tool-link-row-text { flex-direction: column; gap: .15rem; }
  .tool-link-row-desc { white-space: normal; }
}

/* FAQ */
.faq-section details {
  border-bottom: 1px solid var(--border);
  padding-block: .9rem;
}
.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .4rem .6rem;
  margin-inline: -.6rem;
  border-radius: var(--radius-sm);
  transition: background .2s var(--ease-out);
}
.faq-section summary:hover { background: var(--surface-2); }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: "+";
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 1.1rem; font-weight: 700;
  transition: transform .25s var(--ease-out), background .2s var(--ease-out), color .2s var(--ease-out);
}
.faq-section details[open] summary::after { transform: rotate(135deg); background: var(--accent); color: var(--accent-ink); }
.faq-section details p { margin-top: .6rem; margin-bottom: 0; padding-inline: .6rem; }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (max-width: 539px) {
  .tool-grid, .results, .compare-grid { grid-template-columns: 1fr; }
  .compare-results { grid-template-columns: 1fr; }
  .compare-vs { padding-block: .25rem; }
  .nav-toggle { display: inline-flex; }
  .header-nav {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0; height: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: color-mix(in srgb, var(--surface) 74%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 28px -16px rgba(0,0,0,.4);
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: .85rem 1.25rem; border-top: 1px solid var(--border); }
  .header-nav a:first-child { border-top: none; }
}

@media (min-width: 720px) {
  .tool-card { padding: 2rem; }
}

/* =============================================================
   10. Scroll reveal
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.step:nth-of-type(1) { transition-delay: 0s; }
.step:nth-of-type(2) { transition-delay: .08s; }
.step:nth-of-type(3) { transition-delay: .16s; }

.faq-section details:nth-of-type(1) { transition-delay: .02s; }
.faq-section details:nth-of-type(2) { transition-delay: .06s; }
.faq-section details:nth-of-type(3) { transition-delay: .10s; }
.faq-section details:nth-of-type(4) { transition-delay: .14s; }
.faq-section details:nth-of-type(5) { transition-delay: .18s; }
.faq-section details:nth-of-type(6) { transition-delay: .22s; }
.faq-section details:nth-of-type(7) { transition-delay: .26s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
