:root {
  --bg: #0f0f10;
  --panel: #18181a;
  --panel2: #222226;
  --text: #f7f2ea;
  --muted: #b9b1a6;
  --line: rgba(255,255,255,0.12);
  --accent: #f4d7a1;
  --accentText: #111;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, a { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
.app { min-height: 100svh; display: grid; place-items: stretch; }
.screen { min-height: 100svh; width: min(520px, 100%); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.hidden { display: none !important; }

.intro-screen, .paywall { justify-content: center; gap: 18px; }
.brand-pill { width: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--accent); letter-spacing: 0.14em; font-size: 12px; font-weight: 800; }
h1, h2 { margin: 0; line-height: 0.94; letter-spacing: -0.06em; }
h1 { font-size: clamp(48px, 15vw, 76px); }
h2 { font-size: clamp(38px, 10vw, 58px); }
.sub { color: var(--muted); font-size: 18px; line-height: 1.45; margin: 0; }
.tiny { color: var(--muted); font-size: 13px; line-height: 1.4; margin: 0; }
code { background: var(--panel2); border: 1px solid var(--line); padding: 2px 5px; border-radius: 6px; }

.hero-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 6px 0 10px; }
.fake-photo { aspect-ratio: 3 / 4; border-radius: 26px; border: 1px solid var(--line); display: grid; place-items: end center; padding: 14px; font-weight: 900; text-transform: uppercase; font-size: 13px; color: rgba(255,255,255,0.78); background: radial-gradient(circle at 20% 10%, #555 0 8%, transparent 9%), linear-gradient(145deg, #36363a, #171719); }
.fake-photo.after { background: radial-gradient(circle at 65% 18%, #9c8560 0 8%, transparent 9%), linear-gradient(145deg, #494039, #1b1a19); color: var(--accent); }
.arrow { color: var(--accent); font-size: 26px; font-weight: 900; }

.primary-btn, .ghost-btn, .small-btn { border: 0; border-radius: 18px; min-height: 54px; display: grid; place-items: center; text-align: center; text-decoration: none; cursor: pointer; }
.primary-btn { background: var(--accent); color: var(--accentText); font-weight: 900; padding: 16px 18px; box-shadow: 0 14px 36px rgba(244,215,161,0.16); }
.ghost-btn { background: var(--panel); color: var(--text); border: 1px solid var(--line); font-weight: 800; padding: 15px 18px; }
.small-btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 14px; min-height: 44px; padding: 0 12px; font-size: 13px; font-weight: 800; }

.camera-screen { padding-left: 0; padding-right: 0; background: #050505; }
.topbar { height: 72px; padding: 14px 14px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 2; }
.topbar > div { display: grid; text-align: center; gap: 2px; }
.topbar span { color: var(--muted); font-size: 12px; }
.topbar.simple { padding-inline: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.07); color: var(--text); font-size: 28px; display: grid; place-items: center; cursor: pointer; }

.camera-wrap { position: relative; flex: 1; background: #000; overflow: hidden; display: grid; place-items: center; border-radius: 28px 28px 0 0; min-height: 0; }
video, .overlay-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
video { transform: scaleX(1); }
video.mirror { transform: scaleX(-1); }
.overlay-img { opacity: 0.42; pointer-events: none; mix-blend-mode: normal; z-index: 1; }
.grid { position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: linear-gradient(to right, rgba(255,255,255,0.28) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.28) 1px, transparent 1px); background-size: 33.333% 33.333%; }
.controls { padding: 14px 16px 18px; background: #050505; display: grid; gap: 14px; }
.slider-row { display: grid; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.button-row { display: grid; grid-template-columns: 1fr 1fr 74px 1fr; gap: 10px; align-items: center; }
.capture-btn { width: 74px; height: 74px; border-radius: 999px; background: var(--text); border: 6px solid rgba(255,255,255,0.35); box-shadow: inset 0 0 0 3px #111; cursor: pointer; }

.preview-screen { gap: 16px; background: #050505; }
.preview-img { width: 100%; flex: 1; min-height: 0; object-fit: contain; border-radius: 26px; background: #000; border: 1px solid var(--line); }
.preview-actions { display: grid; gap: 10px; }

.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 22px; display: grid; gap: 8px; }
.price-card span { color: var(--muted); }
.price-card strong { font-size: 52px; letter-spacing: -0.06em; }
.price-card em { color: var(--accent); font-style: normal; }

@media (max-height: 700px) {
  h1 { font-size: 48px; }
  .sub { font-size: 16px; }
  .hero-card { display: none; }
}
