/* BGScrub website. Layout follows mockup 03 "Soft Utility"; palette is the green
   family: light = mockup 01 "Fresh", dark = mockup 02 "Studio". Every colour is a
   token on :root so the palette can be swapped in one place. */

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* surfaces */
  --bg: #edf2ea;            /* pale sage page */
  --bg-band: #e3ebe0;       /* alternating section band */
  --surface: #ffffff;       /* cards */
  --surface-2: #f4f7f2;     /* viewer well, inputs */
  --line: #d4ded1;
  --line-strong: #b9c8b5;
  /* text */
  --ink: #14211a;
  --ink-2: #3f5046;
  --ink-3: #56685d;         /* >= 4.5:1 on --bg and --surface */
  /* brand */
  --primary: #1e5a3e;       /* forest green, white text 8.1:1 */
  --primary-hover: #174a33;
  --on-primary: #ffffff;
  --primary-soft: #dcebdc;  /* selected chip fill, pill */
  --on-primary-soft: #1a4d35;
  --outline-ink: #1e5a3e;   /* outline button text + border */
  --link: #1e5a3e;
  --focus: #2f8a5f;
  /* checkerboard behind transparent pixels */
  --checker-a: #ffffff;
  --checker-b: #e4e9e2;
  --tag-bg: rgba(255, 255, 255, 0.92);
  --tag-ink: #14211a;
  --shadow: 0 1px 2px rgba(20, 33, 26, 0.05), 0 8px 28px rgba(20, 33, 26, 0.07);
  --shadow-lg: 0 2px 4px rgba(20, 33, 26, 0.05), 0 24px 60px rgba(20, 33, 26, 0.10);
  --error: #a3261b;

  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --max: 1080px;
}

/* Dark = mockup 02 "Studio": charcoal surfaces, lime accent, dark text on lime. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1110;
    --bg-band: #141715;
    --surface: #191c1a;
    --surface-2: #121413;
    --line: #2b302c;
    --line-strong: #3d443f;
    --ink: #f0f3ec;
    --ink-2: #c1c8c0;
    --ink-3: #97a198;
    --primary: #d4f25a;       /* lime, #151a05 text 14.9:1 */
    --primary-hover: #c5e548;
    --on-primary: #151a05;
    --primary-soft: rgba(212, 242, 90, 0.12);
    --on-primary-soft: #d9f46e;
    --outline-ink: #f0f3ec;
    --link: #d4f25a;
    --focus: #d4f25a;
    --checker-a: #2a2e2b;
    --checker-b: #202421;
    --tag-bg: rgba(15, 17, 16, 0.82);
    --tag-ink: #f0f3ec;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
    --error: #ff8a7a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1110; --bg-band: #141715; --surface: #191c1a; --surface-2: #121413;
  --line: #2b302c; --line-strong: #3d443f;
  --ink: #f0f3ec; --ink-2: #c1c8c0; --ink-3: #97a198;
  --primary: #d4f25a; --primary-hover: #c5e548; --on-primary: #151a05;
  --primary-soft: rgba(212, 242, 90, 0.12); --on-primary-soft: #d9f46e;
  --outline-ink: #f0f3ec; --link: #d4f25a; --focus: #d4f25a;
  --checker-a: #2a2e2b; --checker-b: #202421;
  --tag-bg: rgba(15, 17, 16, 0.82); --tag-ink: #f0f3ec;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
  --error: #ff8a7a;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; }
p { margin: 0; }
kbd {
  font: 600 0.82em/1 var(--font); padding: 2px 6px; border-radius: 5px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
}
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .1s, color .15s;
  white-space: nowrap; user-select: none;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline { background: var(--surface); color: var(--outline-ink); border-color: var(--outline-ink); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; }
.btn-lg { min-height: 50px; padding: 0 28px; font-size: 1.06rem; font-weight: 700; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.link { color: var(--link); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- header ---------- */
.site-header { padding: 18px 0 8px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.logo-mark { width: 30px; height: 30px; stroke-width: 2.1; }
.logo-sm { font-size: 1.25rem; }
.logo-sm .logo-mark { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-link:hover { color: var(--link); }

/* ---------- hero ---------- */
.hero { padding-top: 28px; padding-bottom: 56px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 1.1rem + 3.6vw, 3.35rem); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin-top: 12px; color: var(--ink-2); font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); text-wrap: balance; }

.tool {
  margin: 34px auto 0; max-width: 900px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 12px 12px 0;
}
.viewer {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 12px; padding: 0; overflow: hidden;
  min-height: 220px;
}
.stage {
  --ar: 0.75;
  --cut: 50%;
  --maxh: min(58vh, 540px);
  position: relative; aspect-ratio: var(--ar);
  width: min(100%, calc(var(--maxh) * var(--ar)));
  overflow: hidden; border-radius: 10px; touch-action: pan-y;
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.before { object-fit: cover; }
.after { clip-path: inset(0 0 0 var(--cut)); background: var(--out-bg, transparent); }
.after img { width: 100%; height: 100%; object-fit: cover; }
.after.is-transparent {
  background-color: var(--checker-a);
  background-image: conic-gradient(var(--checker-b) 25%, transparent 0 50%, var(--checker-b) 0 75%, transparent 0);
  background-size: 20px 20px;
}
.tag {
  position: absolute; top: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--tag-bg); color: var(--tag-ink); font-size: 0.82rem; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12); pointer-events: none; backdrop-filter: blur(6px);
}
.tag-left { left: 12px; }
.tag-right { right: 12px; }
.divider { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.15); pointer-events: none; }
.knob {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: #fff; color: #14211a; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.knob svg { width: 20px; height: 20px; stroke-width: 2.2; }
.cut { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.stage:has(.veil:not([hidden])) :is(.divider, .tag-right, .cut),
.stage:has(.after[hidden]) :is(.divider, .tag-right, .cut) { display: none; }
.stage:has(.cut:focus-visible) .knob { outline: 3px solid var(--focus); outline-offset: 2px; }
.veil {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  background: rgba(10, 14, 12, 0.42); color: #fff; font-weight: 600; font-size: 1.02rem; text-align: center; padding: 16px;
  backdrop-filter: saturate(0.6);
}
.veil::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%); background-size: 250% 100%; animation: sweep 1.6s linear infinite; }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drop-hint {
  position: absolute; inset: 8px; border: 2.5px dashed var(--primary); border-radius: 12px;
  display: none; place-items: center; background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
}
body.dragging .drop-hint { display: grid; }

/* file + background row */
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding: 16px 6px 4px; }
.file { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-icon { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.file-icon svg { width: 22px; height: 22px; }
.file-text { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }
.file-name .muted { font-weight: 500; }
.file-dims { color: var(--ink-3); font-size: 0.9rem; }
.bg-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-left: 20px; border-left: 1px solid var(--line); }
.group-label { font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px;
  border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 0.92rem/1 var(--font); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 600; }
.chip:has(input:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.sw-transparent { background: conic-gradient(#d9ded7 25%, #fff 0 50%, #d9ded7 0 75%, #fff 0) 0 0 / 11px 11px; }
.sw-white { background: #fff; }
.sw-custom { background: var(--custom, transparent); color: var(--ink-2); }
.sw-custom svg { width: 15px; height: 15px; stroke-width: 2.2; }
.sw-custom.has-color svg { display: none; }
.chip-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

/* state blocks */
.tool [data-show] { display: none; }
.tool[data-state="idle"] [data-show="idle"],
.tool[data-state="loading"] [data-show="loading"],
.tool[data-state="working"] [data-show="working"],
.tool[data-state="result"] [data-show="result"],
.tool[data-state="error"] [data-show="error"] { display: flex; }
.actions { flex-direction: column; align-items: center; gap: 12px; padding: 18px 6px 6px; text-align: center; }
.actions-note { color: var(--ink-3); font-size: 0.95rem; }
.btn-pair { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; width: 100%; }
.btn-pair .btn { min-width: 230px; }
.save-note { color: var(--ink-3); font-size: 0.88rem; min-height: 1.3em; max-width: 60ch; }
.size-group { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 600 0.88rem/1 var(--font); cursor: pointer; }
.seg[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg:disabled { opacity: .5; cursor: not-allowed; }
.progress-block { flex-direction: column; gap: 10px; padding: 20px 8px 8px; align-items: stretch; max-width: 560px; margin: 0 auto; width: 100%; text-align: center; }
.progress-title { font-weight: 600; }
.progress-sub { color: var(--ink-3); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width .2s; }
.bar-indeterminate span { width: 35%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.error-block { flex-direction: column; align-items: center; gap: 12px; padding: 18px 8px 8px; text-align: center; color: var(--error); font-weight: 600; }

.tool-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  margin-top: 14px; padding: 14px 6px 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.92rem;
}
.device { display: inline-flex; align-items: center; gap: 8px; }
.device svg, .pill svg { width: 18px; height: 18px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 600; font-size: 0.88rem; }
.pill.is-out { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

/* extension strip + pricing line + trust row */
.ext-strip {
  max-width: 900px; margin: 16px auto 0; display: flex; align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); text-align: left;
}
.ext-strip:hover { border-color: var(--line-strong); }
.ext-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; flex: none; }
.ext-icon svg { width: 19px; height: 19px; }
.ext-text { font-weight: 700; font-size: 1.05rem; flex: 1; padding-left: 16px; border-left: 1px solid var(--line); }
.ext-cta { color: var(--link); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ext-cta svg { width: 18px; height: 18px; }
.price-line { margin-top: 12px; color: var(--ink-3); font-size: 0.9rem; }
.trust { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; margin: 34px 0 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 500; padding: 0 40px; }
.trust li + li { border-left: 1px solid var(--line-strong); }
.trust svg { width: 26px; height: 26px; stroke-width: 1.6; }

/* ---------- sections ---------- */
.section { padding-top: 80px; padding-bottom: 80px; }
.band { background: var(--bg-band); padding: 80px 0; border-block: 1px solid var(--line); }
.eyebrow { color: var(--link); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(1.65rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; max-width: 24ch; text-wrap: balance; }
.section-lede { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.012em; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.steps p { color: var(--ink-2); margin-top: 6px; }
.shot { margin: 40px 0 0; }
.shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
figcaption { margin-top: 12px; color: var(--ink-3); font-size: 0.86rem; text-align: center; }

.features { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.feature p { color: var(--ink-2); margin-top: 8px; }
.feature p.small { margin-top: 10px; color: var(--ink-3); }
.f-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--on-primary-soft); display: grid; place-items: center; margin-bottom: 16px; }
.f-icon svg { width: 22px; height: 22px; }
.feature-shot { display: grid; grid-template-rows: auto 1fr; gap: 20px; padding-bottom: 0; overflow: hidden; }
.feature-shot img { width: 100%; max-width: 360px; height: 340px; object-fit: cover; object-position: top; margin: 0 auto; border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: 0; align-self: end; }
.badge { display: inline-block; vertical-align: 2px; padding: 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; background: var(--primary); color: var(--on-primary); }
.badge-soft { background: var(--primary-soft); color: var(--on-primary-soft); }

.ext { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #e0a526; box-shadow: 0 0 0 4px rgba(224, 165, 38, .18); }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--primary-soft); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 8px; width: 7px; height: 4px; border-left: 2px solid var(--on-primary-soft); border-bottom: 2px solid var(--on-primary-soft); transform: rotate(-45deg); }
.ext-shot { margin: 0; justify-self: center; }
.ext-shot img { width: 100%; max-width: 380px; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }

.plans { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan-main { border: 2px solid var(--primary); }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.price-sub { color: var(--ink-2); margin-top: 2px; }
.plan .ticks { flex: 1; }
.plan .btn { align-self: flex-start; }

details { border-bottom: 1px solid var(--line-strong); padding: 4px 0; }
details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line-strong); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { color: var(--ink-2); padding: 0 0 18px; max-width: 64ch; }

.site-footer { padding: 48px 0 32px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-row .small { margin-top: 8px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--link); }
.credits { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
}

/* ---------- privacy page ---------- */
.doc { padding-top: 32px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
.doc .updated { color: var(--ink-3); margin-top: 10px; }
.doc .summary { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); }
.doc .summary .ticks { margin: 12px 0 0; }
.doc h2 { font-size: 1.4rem; margin-top: 40px; max-width: none; }
.doc p, .doc ul { margin-top: 12px; color: var(--ink-2); max-width: 68ch; }
.doc ul:not(.ticks) { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc code { font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; word-break: break-all; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .bg-group { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .features, .plans { grid-template-columns: 1fr; }
  .ext { grid-template-columns: 1fr; gap: 32px; }
  .trust li { padding: 0 22px; font-size: 1.05rem; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .nav { gap: 16px; }
  .logo { font-size: 1.35rem; }
  .logo-mark { width: 26px; height: 26px; }
  .site-header { padding-top: 14px; }
  .hero { padding-top: 18px; }
  .tool { margin-top: 24px; padding: 8px 8px 0; border-radius: 16px; }
  .stage { --maxh: 62vh; }
  .tool-row { padding: 14px 4px 0; }
  .bg-group { width: 100%; gap: 8px; }
  .chips { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .chip { justify-content: center; padding: 0 8px; gap: 6px; }
  .btn-pair { flex-direction: column; gap: 10px; }
  .btn-pair .btn { min-width: 0; width: 100%; }
  .tool-foot { justify-content: center; text-align: center; }
  .ext-strip { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
  .ext-text { border-left: 0; padding-left: 0; font-size: 1rem; flex-basis: calc(100% - 50px); }
  .ext-cta { margin-left: 46px; }
  .trust { flex-direction: column; align-items: center; gap: 14px; }
  .trust li { padding: 0; }
  .trust li + li { border-left: 0; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .band { padding: 56px 0; }
  .feature, .plan { padding: 22px; }
  .feature-shot { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}
