:root {
  --bg: #f4f4f7; --card: #fff; --ink: #191c1f; --muted: #6b6f7b; --line: #e3e4ea;
  --accent: #2f6bff; --dark: #0b0c0f; --dark-card: #1b1d23; --dark-ink: #f4f4f7; --err: #c62828;
  --r: 24px; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.card { background: var(--card); border-radius: var(--r); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; margin: 0; }
.top nav { margin-left: auto; display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a:not(.lang), .top .pill { display: none; } .brand span { font-size: 15px; } }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 16px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill.small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.pill.dark { background: var(--dark); color: #fff; }
.pill.light { background: #fff; color: var(--dark); }
.pill.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.pill.ghost { background: transparent; color: var(--muted); }
.pill:focus-visible, input:focus-visible + span, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }

/* Tool */
.tool { padding: 20px; box-shadow: 0 20px 60px rgb(20 24 40 / .08); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 340px; border: 2px dashed var(--line); border-radius: 18px; text-align: center; padding: 24px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--accent); background: #f7f9ff; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-art { width: 92px; height: 92px; border-radius: 22px; background: conic-gradient(#d9dbe3 25%, #fff 0 50%, #d9dbe3 0 75%, #fff 0) 0 0 / 23px 23px; }
.drop-hint { color: var(--muted); font-size: 14px; }
.tool.busy .drop { opacity: .5; pointer-events: none; }
.tool progress { width: 100%; height: 6px; margin-top: 14px; accent-color: var(--accent); }
.status { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; }
.status.err { color: var(--err); }
.quota, .local { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.bg-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.bg-pick label { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; cursor: pointer; }
.bg-pick input[type=radio] { position: absolute; opacity: 0; }
.bg-pick label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.bg-pick .sw, .bg-pick input[type=color] { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); padding: 0; background: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.batch ul { margin: 14px 0; padding-left: 18px; font-size: 14px; color: var(--muted); max-height: 140px; overflow: auto; }

/* Before / after */
.checker { background: conic-gradient(#dcdee5 25%, #fff 0 50%, #dcdee5 0 75%, #fff 0) 0 0 / 20px 20px; }
.ba { --p: 50%; position: relative; border-radius: 16px; overflow: hidden; background: #eee; }
.ba img { width: 100%; height: 100%; object-fit: contain; }
.ba .ba-before { max-height: 420px; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .15); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba.small { aspect-ratio: 1; }
.ba.small img { position: absolute; inset: 0; object-fit: cover; }

/* Sections */
.band { padding: 56px 0; }
.band .narrow p { color: #3b3f4a; }
.samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .samples { grid-template-columns: repeat(2, 1fr); } }
.sample { margin: 0; padding: 10px; }
.sample figcaption { padding: 10px 6px 4px; font-weight: 600; font-size: 15px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 28px; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 28px; }
.feature p { color: var(--muted); margin: 0; }

/* Pricing (dark section) */
.dark-band { background: var(--dark); color: var(--dark-ink); padding: 72px 0; border-radius: 32px; margin: 24px 8px; }
.sub { color: #a9adba; max-width: 60ch; }
.sub.small { font-size: 14px; margin-top: 20px; }
.period { display: inline-flex; background: var(--dark-card); border-radius: 999px; padding: 4px; margin: 12px 0 28px; }
.period input { position: absolute; opacity: 0; }
.period span { display: block; padding: 10px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.period input:checked + span { background: #fff; color: var(--dark); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--dark-card); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { background: linear-gradient(160deg, #2f6bff, #6a3cff); }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.price small { font-size: 1rem; font-weight: 600; opacity: .7; margin-left: 4px; }
.billed { margin: 0; font-size: 14px; opacity: .75; }
.plan ul { padding-left: 20px; margin: 18px 0 24px; flex: 1; }
.plan li { margin: 6px 0; }
.soon { background: var(--dark-card); border-radius: 16px; padding: 14px 18px; margin-top: 16px; }

/* FAQ, links, footer */
details { background: var(--card); border-radius: 18px; margin: 10px 0; padding: 0 22px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style-position: outside; }
details p { margin: 0 0 18px; color: var(--muted); }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.more a { padding: 24px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.more span { color: var(--muted); font-size: 15px; }
.foot { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.foot a { color: var(--muted); }
.prose p { color: #3b3f4a; }
[hidden] { display: none !important; }
