/* Restore Windows Photo Viewer — landing
   Spacing scale: 8 / 24 / 64–96 */

:root {
  --bg: #f7f5f0;
  --panel: #ffffff;
  --ink: #1c2430;
  --ink-soft: #5a6472;
  --ink-faint: #8b93a0;
  --line: #e2ddd2;
  --line-strong: #d1c9ba;
  --primary: #1f4e79;
  --primary-hover: #163a5c;
  --accent: #c17f2e;
  --accent-hover: #a86a1f;
  --accent-soft: #f6ebd9;
  --ok: #2f7a4f;
  --ok-soft: #e3f0e6;
  --warn: #a67c00;
  --warn-soft: #faf1d6;

  --s1: 8px;
  --s2: 24px;
  --s3: 96px;

  --radius: 4px;
  --radius-frame: 6px;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --frame-shadow: 0 1px 0 rgba(28, 36, 48, .04), 0 18px 40px -24px rgba(28, 36, 48, .35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.04; letter-spacing: -0.018em; }
/* Translated titles run longer than the English one */
html:not([lang="en"]) h1 { font-size: clamp(36px, 4.6vw, 60px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.012em; }
h3 { font-size: 22px; line-height: 1.3; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s2);
}

.section { padding: var(--s3) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head p { margin-top: var(--s2); color: var(--ink-soft); font-size: 19px; }

.mono { font-family: var(--mono); }

.icon { width: 16px; height: 16px; fill: currentColor; flex: none; }
.icon-24 { width: 24px; height: 24px; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  min-height: 48px;
  padding: 0 var(--s2);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-hover); background: var(--panel); }

/* ---------- Nav ---------- */

.nav {
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.brand-mark { width: 28px; height: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links .gh {
  display: inline-flex; align-items: center; gap: var(--s1);
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.nav-links .gh:hover { border-color: var(--ink-soft); }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 var(--s3); }

.eyebrow {
  font: 500 13px/1 var(--mono);
  letter-spacing: .08em;
  color: var(--accent-hover);
  margin-bottom: var(--s2);
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.hero-lede { font-size: 19px; color: var(--ink-soft); max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.hero-meta {
  margin-top: var(--s2);
  font: 400 13px/1.4 var(--mono);
  color: var(--ink-faint);
}

/* ---------- Compare slider (hero) ---------- */

.compare {
  position: relative;
  --pos: 50%;
}
.compare-stage {
  position: relative;
  aspect-ratio: 16 / 9.2;
  border-radius: var(--radius-frame);
  overflow: hidden;
  box-shadow: var(--frame-shadow);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  container-type: inline-size;
}
.compare-layer { position: absolute; inset: 0; }
.compare-layer.is-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  z-index: 2;
}
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  z-index: 3;
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(28, 36, 48, .3);
}
.compare-knob svg { width: 22px; height: 22px; fill: currentColor; }
.compare-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}
.compare:has(.compare-range:focus-visible) .compare-knob {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.compare-labels {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: var(--s2);
  font-size: 15px;
  color: var(--ink-soft);
}
.compare-labels strong { color: var(--ink); font-weight: 600; }
.compare-labels .hint { font: 400 13px/1.6 var(--mono); color: var(--ink-faint); }

/* ---------- Mock windows (sized in cqw so they scale as pictures) ---------- */

.win {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", var(--sans);
  font-size: 1.15cqw;
  line-height: 1.2;
  overflow: hidden;
}
.win-ctrls { display: flex; margin-left: auto; height: 100%; }
.win-ctrls i {
  width: 3.6cqw; height: 100%;
  display: grid; place-items: center;
}
.win-ctrls i::before { content: ""; display: block; width: .9cqw; height: .9cqw; }
.win-ctrls i:nth-child(1)::before { height: 0; border-top: 1px solid currentColor; }
.win-ctrls i:nth-child(2)::before { border: 1px solid currentColor; }
.win-ctrls i:nth-child(3)::before {
  background:
    linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%);
}

/* Windows Photo Viewer (classic) */
.pv { background: #fff; color: #1e3950; }
.pv-title {
  display: flex; align-items: center; gap: .8cqw;
  height: 3.2cqw; padding-left: 1.2cqw;
  background: #fff;
  color: #1c2430;
  border-bottom: 1px solid #e5e5e5;
}
.pv-title .app-ico { width: 1.5cqw; height: 1.5cqw; }
.pv-cmd {
  display: flex; align-items: center; gap: 2.4cqw;
  height: 3.2cqw; padding: 0 1.6cqw;
  background: #dfe9f5;
  border-bottom: 1px solid #b9cde5;
  color: #1e3950;
}
.pv-cmd span::after { content: " \25BE"; font-size: .8em; color: #56708c; }
.pv-cmd span.no-caret::after { content: none; }
.pv-cmd .help { margin-left: auto; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #3c7fc1; color: #fff; display: grid; place-items: center; font-size: .9cqw; font-weight: 700; }
.pv-cmd .help::after { content: none; }
.pv-stage {
  flex: 1;
  display: grid; place-items: center;
  padding: 2.4cqw 6cqw;
  background: #fff;
  min-height: 0;
}
.pv-stage svg { width: 100%; height: 100%; }
.pv-bar {
  height: 5.6cqw;
  background: #dfe9f5;
  border-top: 1px solid #b9cde5;
  display: grid; place-items: center;
}
.pv-bar svg { height: 4.4cqw; width: auto; }

/* Photos app (modern) */
.ph { background: #202020; color: #e8e8e8; }
.ph-title {
  display: flex; align-items: center; gap: 1cqw;
  height: 3.2cqw; padding-left: 1.2cqw;
  background: #1b1b1b;
  color: #e8e8e8;
}
.ph-title .app-ico { width: 1.4cqw; height: 1.4cqw; border-radius: .2cqw; background: #3a8ee6; }
.ph-body { flex: 1; display: flex; min-height: 0; }
.ph-side {
  width: 15cqw;
  padding: 1.2cqw .8cqw;
  background: #1b1b1b;
  display: flex; flex-direction: column; gap: .4cqw;
  color: #cfcfcf;
}
.ph-side span {
  display: flex; align-items: center; gap: .8cqw;
  padding: .7cqw .8cqw;
  border-radius: .4cqw;
}
.ph-side span::before { content: ""; width: 1.2cqw; height: 1.2cqw; border-radius: .2cqw; border: 1px solid #8a8a8a; }
.ph-side span.on { background: #2d2d2d; color: #fff; }
.ph-side span.on::before { border-color: #6cb2ff; }
.ph-side hr { border: 0; border-top: 1px solid #333; margin: .6cqw 0; }
.ph-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ph-tools {
  display: flex; align-items: center; gap: .9cqw;
  height: 4.2cqw; padding: 0 1.6cqw;
  border-bottom: 1px solid #2e2e2e;
  color: #cfcfcf;
}
.ph-tools .file { color: #fff; margin-right: auto; }
.ph-tools i {
  width: 2.2cqw; height: 2.2cqw;
  border-radius: .4cqw;
  display: grid; place-items: center;
}
.ph-tools i::before { content: ""; width: 1.2cqw; height: 1.2cqw; border: 1px solid #bdbdbd; border-radius: .2cqw; }
.ph-tools i.round::before { border-radius: 50%; }
.ph-tools i.line::before { height: 0; border-width: 1px 0 0; }
.ph-tools .edit {
  padding: .5cqw 1.2cqw;
  background: #3a3a3a;
  border-radius: .4cqw;
  color: #fff;
}
.ph-tools .ai { padding: .5cqw 1cqw; border: 1px solid #555; border-radius: .4cqw; }
.ph-stage {
  flex: 1; min-height: 0;
  position: relative;
  display: grid; place-items: center;
  padding: 2cqw 4cqw;
}
.ph-stage svg { width: 100%; height: 100%; opacity: .45; filter: blur(.35cqw) saturate(.7); }
.ph-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 1.2cqw;
  color: #cfcfcf;
}
.ph-loading b {
  width: 3.4cqw; height: 3.4cqw; border-radius: 50%;
  border: .35cqw solid rgba(255,255,255,.18);
  border-top-color: #6cb2ff;
  animation: spin 1s linear infinite;
  justify-self: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ph-loading b { animation: none; } }
.ph-strip {
  height: 6cqw;
  display: flex; align-items: center; justify-content: center; gap: .6cqw;
  border-top: 1px solid #2e2e2e;
}
.ph-strip i { width: 5.4cqw; height: 3.8cqw; background: #333; border-radius: .3cqw; }
.ph-strip i.on { outline: 2px solid #6cb2ff; outline-offset: 1px; background: #4c5b67; }
.ph-toast {
  position: absolute;
  right: 1.6cqw; bottom: 7.4cqw;
  width: 28cqw;
  padding: 1.2cqw 1.4cqw;
  background: #2c2c2c;
  border: 1px solid #3d3d3d;
  border-radius: .6cqw;
  box-shadow: 0 1cqw 3cqw rgba(0,0,0,.45);
  display: grid; gap: .8cqw;
}
.ph-toast strong { color: #fff; font-weight: 600; }
.ph-toast span { color: #bdbdbd; }
.ph-toast em {
  font-style: normal; justify-self: start;
  padding: .5cqw 1.2cqw; border-radius: .4cqw;
  background: #6cb2ff; color: #111;
}

/* ---------- Proof strip ---------- */

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.proof ul {
  list-style: none; margin: 0; padding: var(--s2) 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: var(--s1) 64px;
  font-size: 15px;
  color: var(--ink-soft);
}
.proof li { display: inline-flex; align-items: center; gap: var(--s1); }
.proof .icon { color: var(--primary); }
.proof a { color: inherit; text-decoration: none; }
.proof a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Before / after ---------- */

.ba {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: var(--s2);
}
.ba-frame figcaption {
  display: flex; align-items: center; gap: var(--s1);
  margin-bottom: var(--s1);
  font-size: 15px;
  color: var(--ink-soft);
}
.ba-frame figcaption strong { color: var(--ink); font-weight: 600; }
.ba-frame { margin: 0; }
.ba-shot {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-frame);
  overflow: hidden;
  box-shadow: var(--frame-shadow);
  container-type: inline-size;
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius);
  font: 500 12px/1.6 var(--mono);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-warn { background: var(--warn-soft); color: var(--warn); }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.ba-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  display: grid; place-items: center;
  color: var(--accent);
  margin-top: 32px;
}

.diff {
  margin-top: 64px;
  border-top: 1px solid var(--ink);
}
.diff-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
}
.diff-row.head {
  padding: var(--s1) 0;
  font: 500 13px/1.6 var(--mono);
  color: var(--ink-faint);
}
.diff-row h3 { font-size: 19px; }
.diff-row p { color: var(--ink-soft); font-size: 16px; }
.diff-row .gain { color: var(--ink); display: flex; gap: var(--s1); }
.diff-row .gain .icon { color: var(--ok); margin-top: 5px; }
.diff-row .lose { display: flex; gap: var(--s1); }
.diff-row .lose .icon { color: var(--ink-faint); margin-top: 5px; }

/* ---------- Steps ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  counter-reset: step;
}
.step {
  display: flex; flex-direction: column;
  padding-top: var(--s2);
  border-top: 2px solid var(--ink);
}
.step-num {
  font: 500 14px/1 var(--mono);
  color: var(--accent-hover);
  margin-bottom: var(--s1);
}
.step h3 { margin-bottom: var(--s1); }
.step p { color: var(--ink-soft); font-size: 16px; }
.step p { margin-bottom: var(--s2); }
.step-visual {
  margin-top: auto;
  height: 232px;
  padding: var(--s2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  display: grid; place-items: center;
}

.file-row {
  width: 100%;
  font: 400 14px/1.4 "Segoe UI", var(--sans);
  color: #1c2430;
  border: 1px solid #d9d9d9;
  background: #fff;
}
.file-row .fr-item { display: flex; align-items: center; gap: var(--s1); padding: 6px 10px; }
.file-row .fr-item.sel { background: #cce8ff; }
.file-row .fr-item .icon { color: #c19b2e; }
.file-row .fr-item small { margin-left: auto; color: #6b6b6b; font-size: 12px; }
.file-row .fr-menu {
  margin: 0 0 8px 40px;
  width: 70%;
  border: 1px solid #ccc;
  background: #f2f2f2;
  box-shadow: 2px 2px 6px rgba(0,0,0,.15);
  font-size: 13px;
}
.file-row .fr-menu span { display: block; padding: 5px 12px 5px 28px; }
.file-row .fr-menu .hl { background: #91c9f7; }

.restore-crop { max-width: 100%; height: auto; border: 1px solid var(--line); }
.restore-crop-wrap { display: grid; gap: var(--s1); justify-items: center; }
.restore-crop-wrap small { font: 400 12px/1.4 var(--mono); color: var(--ink-faint); }

.ctx {
  position: relative;
  width: 100%;
  font: 400 13px/1.4 "Segoe UI", var(--sans);
  color: #1c2430;
  padding-bottom: 40px;
}
.ctx-menu {
  width: 50%;
  white-space: nowrap;
  background: #f2f2f2;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px rgba(0,0,0,.15);
  padding: 2px 0;
}
.ctx-menu span { display: flex; justify-content: space-between; padding: 4px 10px 4px 26px; }
.ctx-menu hr { border: 0; border-top: 1px solid #d7d7d7; margin: 2px 4px; }
.ctx-menu .hl { background: #91c9f7; }
.ctx-sub { position: absolute; left: 47%; top: 86px; width: auto; min-width: 50%; }
.ctx-sub .hl { font-weight: 600; }

/* ---------- Features ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.feature + .feature { margin-top: var(--s3); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.feature-text h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  margin-bottom: var(--s2);
}
.feature-text p { color: var(--ink-soft); }
.feature-text p + p { margin-top: var(--s1); }
.feature-text ul {
  margin: var(--s2) 0 0; padding: 0; list-style: none;
  display: grid; gap: var(--s1);
  font-size: 16px;
}
.feature-text li { display: flex; gap: var(--s1); }
.feature-text li .icon { color: var(--ok); margin-top: 5px; }

.shot {
  margin: 0;
}
.shot-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-frame);
  overflow: hidden;
  box-shadow: var(--frame-shadow);
  background: #f0f0f0;
}
.shot-frame img { width: 100%; height: auto; }
.shot figcaption {
  margin-top: var(--s1);
  font: 400 13px/1.5 var(--mono);
  color: var(--ink-faint);
}

.undo-demo {
  padding: 64px var(--s2);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
}
.undo-demo .shot-frame { box-shadow: none; }
.undo-ring {
  position: absolute;
  left: 39.2%; width: 27.6%;
  top: 8%; height: 84%;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  pointer-events: none;
}
.undo-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s1) var(--s2);
  margin: var(--s2) auto 0;
  max-width: 440px;
  font-size: 15px;
  color: var(--ink-soft);
}
.undo-note .icon-24 { color: var(--accent); }
.undo-note strong { color: var(--ink); font-weight: 600; }

.facts {
  margin-top: var(--s3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.fact { display: grid; grid-template-columns: 48px 1fr; gap: var(--s2); }
.fact-ico {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: grid; place-items: center;
}
.fact h3 { font-size: 22px; margin-bottom: var(--s1); }
.fact p { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.tag {
  font: 400 12px/1 var(--mono);
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--panel);
}

/* ---------- Comparison table ---------- */

.table-wrap { overflow-x: auto; }
.vs {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 640px;
}
.vs th, .vs td {
  padding: var(--s2);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.vs thead th {
  font: 600 15px/1.3 var(--sans);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
  padding-top: 0;
}
.vs thead th.us { color: var(--ink); }
.vs tbody th { font-weight: 500; color: var(--ink); width: 34%; }
.vs .us { background: var(--panel); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.vs thead th.us { border-top: 3px solid var(--accent); padding-top: var(--s2); }
.cell { display: inline-flex; align-items: center; gap: var(--s1); color: var(--ink-soft); }
.cell.yes { color: var(--ok); font-weight: 500; }
.cell.part { color: var(--warn); }
.cell.no { color: var(--ink-faint); }
.vs-note { margin-top: var(--s2); font-size: 15px; color: var(--ink-soft); max-width: 680px; }

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: var(--s2); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: var(--s2) 0;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 21px; }
.faq-list summary .icon { color: var(--ink-faint); transition: transform .2s; }
.faq-list details[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.faq-list summary:hover h3 { color: var(--primary); }
.faq-list .answer { padding: 0 64px var(--s2) 0; color: var(--ink-soft); }
.faq-list .answer p + p { margin-top: var(--s1); }
@media (prefers-reduced-motion: reduce) { .faq-list summary .icon { transition: none; } }

/* ---------- Final CTA ---------- */

.cta {
  background: var(--primary);
  color: #fff;
  padding: var(--s3) 0;
}
.cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: end;
}
.cta h2 { color: #fff; max-width: 640px; }
.cta p { margin-top: var(--s2); color: #c9d6e3; max-width: 560px; }
.cta-side { display: grid; gap: var(--s1); justify-items: start; }
.cta-side .btn { min-height: 56px; font-size: 17px; }
.cta-side small { font: 400 13px/1.5 var(--mono); color: #a9bdd1; }
.cta :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */

.footer { padding: 64px 0 var(--s2); font-size: 15px; color: var(--ink-soft); }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s1); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2);
  padding-top: var(--s2);
}
.langs { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; font: 400 13px/1 var(--mono); }
.langs .icon { color: var(--ink-faint); margin-right: 4px; }
.langs a { color: var(--ink-soft); text-decoration: none; padding: 6px 8px; border-radius: var(--radius); }
.langs a:hover { color: var(--ink); background: var(--panel); }
.langs a[aria-current="true"] { color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); }
.made { display: inline-flex; align-items: center; gap: 6px; }
.made .icon { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  :root { --s3: 64px; }
  .hero-top { grid-template-columns: 1fr; gap: var(--s2); align-items: start; margin-bottom: var(--s2); }
  .hero-lede { max-width: 560px; }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 64px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: var(--s2); }
  .feature.flip .feature-text { order: 0; }
  .facts { grid-template-columns: 1fr; gap: var(--s2); }
  .faq-grid { grid-template-columns: 1fr; gap: var(--s2); }
  .faq-grid .section-head { position: static; }
  .cta .wrap { grid-template-columns: 1fr; gap: var(--s2); }
  .diff-row { grid-template-columns: 1fr 1fr; }
  .diff-row h3 { grid-column: 1 / -1; }
  .diff-row.head span:first-child { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .nav-links li:not(:last-child) { display: none; }
  .hero { padding-top: var(--s2); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .compare-stage { aspect-ratio: 4 / 3.4; }
  .compare-labels { flex-direction: column; gap: 4px; }
  .proof ul { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .diff-row { grid-template-columns: 1fr; gap: var(--s1); }
  .diff-row.head { display: none; }
  .undo-demo { padding: var(--s2) var(--s1); }
  .faq-list .answer { padding-right: 0; }
  .cta-side .btn { width: 100%; justify-content: center; }
}
