:root {
  --bg: #0b0b0f;
  --surface: #16161d;
  --surface-alt: #1f1f29;
  --text: #f5f5f7;
  --muted: #8e8e9a;
  --keep: #34c77b;
  --del: #ff4d5e;
  --accent: #7c5cff;
  --accent-2: #4dd0ff;
  --border: rgba(255, 255, 255, 0.08);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }

/* Nav */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.logo-mark { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.btn {
  background: var(--accent);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
}
.btn-sm { padding: 9px 16px; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 900; margin-bottom: 20px; }
.grad {
  background: linear-gradient(90deg, var(--keep), var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.tiny { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Phone mockup — mirrors the real app UI */
.hero-visual { position: relative; display: flex; justify-content: center; }
.glow { position: absolute; inset: 10% 15%; background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%); filter: blur(40px); z-index: 0; }
.phone {
  position: relative; z-index: 1; width: 300px; height: 620px; border-radius: 44px;
  background: #0b0b0f; padding: 5px; user-select: none; touch-action: none;
  border: 1.5px solid #3f3f4a;
  box-shadow: 0 0 0 1px #111, 0 40px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06), inset 0 1px 0 rgba(255,255,255,.12);
}
.phone-notch { position: absolute; z-index: 8; top: 14px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #000; border-radius: 999px; z-index: 3; box-shadow: inset 0 0 0 1px #1a1a1f; }
.screen { background: var(--bg); border-radius: 39px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); height: 100%; padding: 44px 12px 12px; display: flex; flex-direction: column; overflow: hidden; }
.screen-top { display: flex; justify-content: space-between; align-items: center; }
.screen-title { text-align: center; }
.screen-brand { font-weight: 800; font-size: 16px; letter-spacing: -.3px; }
.screen-sub { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.screen-sub .red { color: var(--del); }
.screen-sort { color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .6px; margin-top: 1px; }
.round-btn { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.round-btn svg { width: 15px; height: 15px; color: var(--text); }
.badge[hidden] { display: none; }
.badge { position: absolute; top: -4px; right: -4px; background: var(--del); color: #fff; font-size: 8px; font-weight: 800; min-width: 14px; height: 14px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; }
.progress { height: 3px; background: var(--surface); border-radius: 2px; margin: 8px 0 10px; }
.progress span { display: block; width: 9%; height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s; }
.deck { flex: 1; position: relative; cursor: grab; }
.deck:active { cursor: grabbing; }
.card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-alt); transform-origin: 50% 110%; will-change: transform; }
.card .photo { position: absolute; inset: 0; }
.card .expand { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; }
.card .expand svg { width: 12px; height: 12px; color: #fff; }
.card-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: rgba(0,0,0,.6); font-size: 10.5px; font-weight: 700; color: #fff; }
.card-foot .size { background: rgba(255,255,255,.18); padding: 1px 6px; border-radius: 5px; font-size: 9.5px; }
.stamp { position: absolute; top: 16px; padding: 3px 9px; border: 3px solid; border-radius: 7px; font-weight: 900; font-size: 18px; letter-spacing: .1em; opacity: 0; background: rgba(0,0,0,.25); }
.stamp.keep { left: 14px; color: var(--keep); border-color: var(--keep); transform: rotate(-16deg); }
.stamp.del { right: 14px; color: var(--del); border-color: var(--del); transform: rotate(16deg); }
.actions { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 12px; }
.round { display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid; cursor: pointer; padding: 0; transition: transform .12s; }
.round:active { transform: scale(.92); }
.round svg { width: 42%; height: 42%; }
.del-btn { width: 50px; height: 50px; border-color: var(--del); }
.keep-btn { width: 50px; height: 50px; border-color: var(--keep); }
.undo-btn { width: 38px; height: 38px; border-color: var(--muted); }
.hint { text-align: center; color: var(--muted); font-size: 8.5px; padding-top: 8px; }

/* Strip */
.strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.strip div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex; flex-direction: column;
}
.strip strong { font-size: 28px; font-weight: 900; }
.strip span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 80px 24px; }
.section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 600px; margin-bottom: 40px; }
.alt { position: relative; }
.alt::before {
  content: "";
  position: absolute; inset: 0 -100vw;
  background: var(--surface);
  z-index: -1;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
}
.alt .step, .alt .feature { background: var(--surface-alt); }
.step-icon { font-size: 34px; margin-bottom: 16px; height: 44px; display: flex; align-items: center; gap: 8px; }
.swipe-icon .arrow { font-weight: 900; font-size: 30px; }
.arrow.left { color: var(--del); }
.arrow.right { color: var(--keep); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.keep-text { color: var(--keep); }
.del-text { color: var(--del); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

.privacy-box {
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(77, 208, 255, 0.06));
  border-radius: 26px;
  padding: 48px;
  text-align: center;
}
.privacy-box p { color: var(--muted); max-width: 680px; margin: 0 auto; font-size: 16px; }
.final { text-align: center; }
.final h2 { margin-bottom: 28px; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px 50px;
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer nav { display: flex; gap: 18px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .steps, .grid, .strip { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  .phone { width: 270px; height: 560px; }
}

/* SVG icons */
.fi svg { width: 28px; height: 28px; color: var(--accent-2); }
.feature .fi { display: block; margin-bottom: 12px; }
.step-icon.fi svg { width: 34px; height: 34px; }
.swipe-icon .arrow svg { width: 32px; height: 32px; }
.arrow.left svg { color: var(--del); }
.arrow.right svg { color: var(--keep); }
.screen-sub .red { color: var(--del); }
.card-foot .size { background: rgba(255,255,255,0.18); color: #fff; padding: 1px 6px; border-radius: 5px; font-weight: 700; }

/* Official store badges — unmodified, min heights per Apple (40px) / Google (28px),
   clear space = ¼ badge height (built into the Play PNG; added via padding for Apple). */
.badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badges.center { justify-content: center; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { display: block; }
.store-badge-play img { height: 84px; }          /* PNG has ~15% transparent padding → visible badge ≈ 58px */
.store-badge-ios { padding: 14px; }               /* clear space for the 56px-high Apple badge */
.store-badge-ios img { height: 56px; }
.coming { color: var(--muted); font-size: 13px; padding-left: 4px; }
.footer .legal { color: var(--muted); font-size: 11px; margin-top: 6px; opacity: 0.8; }
@media (max-width: 900px) { .badges { justify-content: center; } }

/* Mockup overlays: trash screen + sort sheet */
.screen { position: relative; }
.ov { position: absolute; inset: 0; z-index: 5; }
.ov[hidden] { display: none; }
.trash-ov { background: var(--bg); padding: 44px 12px 12px; display: flex; flex-direction: column; }
.ov-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ov-head .back { display: flex; align-items: center; gap: 2px; background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 12px; cursor: pointer; width: 60px; padding: 0; }
.ov-head .back svg { width: 16px; height: 16px; }
.ov-head .spacer { width: 60px; }
.ov-title { text-align: center; line-height: 1.2; }
.ov-title b { font-size: 13px; }
.ov-title small { display: block; font-size: 9px; font-weight: 700; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; flex: 1; align-content: start; overflow: hidden; }
.tile { position: relative; aspect-ratio: 1; border-radius: 8px; border: 0; cursor: pointer; padding: 0; }
.tile .tr { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.tile .tr svg { width: 10px; height: 10px; }
.tile .ts { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 7.5px; font-weight: 700; padding: 1px 4px; border-radius: 4px; }
.tempty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 10px; text-align: center; padding: 0 20px; }
.tempty[hidden] { display: none; }
.tempty svg { width: 30px; height: 30px; }
.tfoot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; }
.tfoot small { color: var(--muted); font-size: 8.5px; }
.tdel { width: 100%; border: 0; border-radius: 999px; padding: 11px; background: var(--del); color: #fff; font-weight: 800; font-size: 11px; cursor: pointer; }
.tdel:disabled { opacity: .4; cursor: default; }
.dlg { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px; }
.dlg[hidden] { display: none; }
.dlg-box { background: #fff; color: #111; border-radius: 12px; padding: 14px; width: 100%; }
.dlg-box b { font-size: 13px; }
.dlg-box p { font-size: 10px; color: #444; margin: 6px 0 10px; line-height: 1.5; }
.dlg-acts { display: flex; justify-content: flex-end; gap: 14px; }
.dlg-acts button { background: none; border: 0; color: #0b8a7a; font-weight: 700; font-size: 10px; cursor: pointer; }
.dlg-acts .danger { color: #0b8a7a; }
.sort-ov .sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.handle { width: 32px; height: 3px; border-radius: 2px; background: var(--surface-alt); align-self: center; margin-bottom: 6px; }
.sheet-title { font-size: 13px; padding: 0 6px 6px; }
.sort-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; }
.sort-row.active { background: var(--surface-alt); }
.sort-row .si { width: 22px; display: grid; place-items: center; }
.sort-row .si svg { width: 16px; height: 16px; color: var(--text); }
.sort-row.active .si svg, .sort-row.active b { color: var(--accent); }
.sort-row .st { flex: 1; line-height: 1.2; }
.sort-row b { font-size: 11px; display: block; }
.sort-row small { font-size: 8px; color: var(--muted); }
.sort-row .sc { width: 14px; visibility: hidden; }
.sort-row .sc svg { width: 14px; height: 14px; }
.sort-row.active .sc { visibility: visible; }
.sheet-note { color: var(--muted); font-size: 7.5px; text-align: center; margin-top: 6px; }
.round-btn { border: 0; cursor: pointer; padding: 0; }

/* Free section */
.free-box { text-align: center; max-width: 900px; margin: 0 auto; }
.free-box h2 { margin-bottom: 10px; }
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }
.free-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.free-list li { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.free-list .fi { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,77,94,.12); display: grid; place-items: center; }
.free-list .fi svg { width: 16px; height: 16px; color: var(--del); }
.free-list b { color: var(--text); font-size: 15px; }
.free-list small { color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 900px) { .free-list { grid-template-columns: 1fr; } }
