:root {
  --brand: #f43f5e;
  --brand-2: #f59e0b;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --card: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
nav { border-bottom: 1px solid var(--line); background: var(--card); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.logo span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.hero { text-align: center; padding: 48px 0 8px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff1f2; color: var(--brand); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: 40px; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
h1 .grad { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
#dropzone { border: 2px dashed #fecdd3; border-radius: 18px; background: var(--card); padding: 48px 24px; cursor: pointer; transition: .15s; margin-bottom: 32px; }
#dropzone:hover, #dropzone.drag { border-color: var(--brand); background: #fff1f2; }
.dz-icon { font-size: 40px; margin-bottom: 12px; }
.dz-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.dz-hint { font-size: 14px; color: var(--muted); }
#workspace { margin-bottom: 32px; }
.compare { position: relative; border-radius: 18px; overflow: hidden; background: #1c1917; aspect-ratio: 4/3; max-height: 520px; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#after-img { z-index: 1; }
#before-wrap { position: absolute; inset: 0; z-index: 2; overflow: hidden; width: 50%; }
#before-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; max-width: none; }
#compare-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 3; pointer-events: none; }
#compare-marker::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; color: #111; font-size: 11px; padding: 5px 8px; border-radius: 999px; }
#compare-slider { position: absolute; inset: 0; width: 100%; z-index: 4; opacity: 0; cursor: ew-resize; }
.compare-labels { position: absolute; z-index: 3; top: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; }
.compare-labels.before { left: 12px; }
.compare-labels.after { right: 12px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.meta { font-size: 13px; color: var(--muted); }
.meta b { color: var(--ink); }
#loading { font-size: 14px; color: var(--brand); font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .15s; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
section { padding: 32px 0; }
h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card .emoji { font-size: 26px; margin-bottom: 8px; display: block; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step { counter-increment: step; }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: #fff1f2; color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; font-size: 15px; }
details p { margin-top: 10px; color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 28px 0; text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
footer .foot-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.hidden { display: none !important; }
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
