/* Swipr — Calm Flat Pop: white ground, ink type, colour only in moments (keep green, delete red). */
:root {
  --ground: #ffffff;
  --ground-2: #f4f4f6;
  --ink: #111114;
  --ink-2: #5d5d66;
  --ink-3: #9a9aa3;
  --line: #e6e6ea;
  --green: #00b46a;
  --red: #ff4a3d;
  --red-text: #c42b1c;
  --yellow: #ffc400;
  --blue: #2f5bff;
  --pink: #ff6fb5;
  --phone: #111114;
  --screen: #ffffff;
  --radius: 24px;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --icon-moon: block;
  --icon-sun: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #000000;
    --ground-2: #121214;
    --ink: #f5f5f7;
    --ink-2: #a1a1aa;
    --ink-3: #6b6b74;
    --line: #26262b;
    --green: #2ed287;
    --red: #ff6a5e;
    --red-text: #ff6a5e;
    --yellow: #ffd23f;
    --blue: #3566ff;
    --pink: #ff85c2;
    --phone: #2a2a2e;
    --screen: #000000;
    color-scheme: dark;
    --icon-moon: none;
    --icon-sun: block;
  }
}
:root[data-theme="dark"] {
  --ground: #000000;
  --ground-2: #121214;
  --ink: #f5f5f7;
  --ink-2: #a1a1aa;
  --ink-3: #6b6b74;
  --line: #26262b;
  --green: #2ed287;
  --red: #ff6a5e;
  --red-text: #ff6a5e;
  --yellow: #ffd23f;
  --blue: #3566ff;
  --pink: #ff85c2;
  --phone: #2a2a2e;
  --screen: #000000;
  color-scheme: dark;
  --icon-moon: none;
  --icon-sun: block;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--rounded); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav { align-items: center; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px -10px 0;
  border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); background: var(--ground-2); }
.theme-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: var(--icon-moon); }
.theme-toggle .sun { display: var(--icon-sun); }

/* Type */
h1, h2, h3 { font-family: var(--rounded); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.04; font-weight: 800; }
h1 .line { display: block; }
@media (min-width: 861px) { h1 .line { white-space: nowrap; } }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34ch; margin: 22px 0 0; }
.eyebrow { font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.keep { color: var(--green); }
.del { color: var(--red); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none;
}
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink svg { width: 20px; height: 20px; fill: currentColor; }
.btn-ink small { display: block; font-size: 11px; font-weight: 500; opacity: .7; margin-bottom: 3px; }
.btn-text { color: var(--ink-2); padding: 0 6px; }
.btn-text:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-block: 32px 56px; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
}

/* Phone */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 620px; max-width: 100%;
  background: var(--phone); border-radius: 52px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(17,17,20,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.screen {
  position: relative; height: 100%; border-radius: 41px; background: var(--screen); overflow: hidden;
  display: flex; flex-direction: column; padding: 46px 16px 14px;
}
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; z-index: 3; }
.status { position: absolute; top: 15px; left: 28px; right: 28px; display: flex; justify-content: space-between; font: 600 13px/1 var(--text); color: var(--ink); }
.topline { display: flex; align-items: center; justify-content: space-between; font: 600 13px/1 var(--text); color: var(--ink); padding: 6px 4px 12px; }
.goal { display: flex; align-items: center; gap: 6px; }
.ring { width: 16px; height: 16px; }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--yellow); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .4s ease; }
.trash-pill { color: var(--ink-2); font-weight: 500; transition: color .3s; }
.trash-pill.bump { color: var(--red-text); }
.deck { position: relative; flex: 1; }
.card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--ground-2);
  will-change: transform, opacity;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .wash { position: absolute; inset: 0; opacity: 0; transition: opacity .15s; }
.card .wash.keep { background: var(--green); }
.card .wash.del { background: var(--red); }
.stamp {
  position: absolute; top: 22px; padding: 6px 12px; border: 3px solid currentColor; border-radius: 10px;
  font: 800 22px/1 var(--rounded); letter-spacing: .04em; opacity: 0; background: rgba(255,255,255,.92);
}
.stamp.keep { left: 18px; color: var(--green); transform: rotate(-12deg); }
.stamp.del { right: 18px; color: var(--red); transform: rotate(12deg); }
.dateline { display: flex; justify-content: space-between; font: 600 13px/1 var(--text); color: var(--ink); padding: 12px 4px 10px; }
.dateline span:last-child { color: var(--ink-3); font-weight: 500; }
.controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding-bottom: 12px; }
.controls .undo { font: 500 14px/1 var(--text); color: var(--ink-3); width: 44px; }
.round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.round svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.round.red { background: var(--red); }
.round.green { background: var(--green); }
.round.press { transform: scale(.86); }
.tabbar { display: flex; justify-content: space-around; align-items: center; height: 50px; border-radius: 25px; background: var(--ground-2); font: 600 10px/1 var(--text); color: var(--ink-3); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tabbar span.on { color: var(--blue); }
.tabbar i { width: 18px; height: 14px; border-radius: 4px; background: currentColor; opacity: .85; }
.freed {
  position: absolute; inset: 0; background: var(--green); color: #111114; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 8px; opacity: 0; pointer-events: none; z-index: 2;
  transition: opacity .35s ease;
}
.freed.show { opacity: 1; }
.freed b { font: 800 46px/1 var(--rounded); letter-spacing: -.02em; }
.freed span { font: 600 16px/1.3 var(--text); }
.freed .pill { margin-top: 18px; background: #111114; color: #fff; border-radius: 999px; padding: 12px 22px; font: 600 14px/1 var(--text); }
.confetti { position: absolute; width: 8px; height: 14px; border-radius: 2px; top: -20px; }

/* Sections */
section { padding-block: 88px; }
.band { background: var(--ground-2); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); margin: 16px 0 0; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--ground); border-radius: var(--radius); padding: 24px; min-width: 0; }
.band .step { background: var(--ground); }
.step .n { font: 700 14px/1 var(--rounded); color: var(--ink-3); }
.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
.mini { position: relative; height: 150px; border-radius: 16px; background: var(--ground-2); margin-bottom: 22px; overflow: hidden; }
.band .mini { background: var(--ground-2); }
.mini .m-card { position: absolute; left: 50%; top: 50%; width: 92px; height: 112px; margin: -56px 0 0 -46px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 14px -6px rgba(0,0,0,.25); }
.mini .m-card img { width: 100%; height: 100%; object-fit: cover; }
.mini .m-badge { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; }
.mini .m-badge svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mini.keep .m-badge { right: 18px; background: var(--green); }
.mini.del .m-badge { left: 18px; background: var(--red); }
.mini.keep .m-card { animation: mini-keep 3.2s cubic-bezier(.5,0,.2,1) infinite; }
.mini.del .m-card { animation: mini-del 3.2s cubic-bezier(.5,0,.2,1) infinite; }
.mini.keep .m-badge, .mini.del .m-badge { animation: badge 3.2s ease infinite; }
@keyframes mini-keep {
  0%, 18% { transform: translateX(0) rotate(0); opacity: 1; }
  52% { transform: translateX(150px) rotate(14deg); opacity: 0; }
  53% { transform: translateX(0) scale(.9); opacity: 0; }
  75%, 100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes mini-del {
  0%, 18% { transform: translateX(0) rotate(0); opacity: 1; }
  52% { transform: translateX(-150px) rotate(-14deg); opacity: 0; }
  53% { transform: translateX(0) scale(.9); opacity: 0; }
  75%, 100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes badge { 0%, 25% { transform: scale(.6); opacity: 0; } 40%, 55% { transform: scale(1.08); opacity: 1; } 70%, 100% { transform: scale(1); opacity: 0; } }
.mini.trash { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mini.trash .t-thumb { width: 46px; height: 56px; border-radius: 9px; overflow: hidden; animation: t-in 3.6s ease infinite; }
.mini.trash .t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini.trash .t-thumb:nth-child(2) { animation-delay: .15s; }
.mini.trash .t-thumb:nth-child(3) { animation-delay: .3s; }
.mini.trash .t-note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font: 600 13px/1 var(--text); color: var(--ink-2); }
.mini.trash .t-note b { color: var(--green); }
@keyframes t-in { 0%, 30% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(-8px) scale(.6); opacity: 0; } 85%, 100% { transform: translateY(0); opacity: 1; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.feature .dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 18px; }
.feature p { color: var(--ink-2); margin: 8px 0 0; font-size: 16px; }

.privacy-band { text-align: left; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 17px; }
.checks li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 2px; }

.pro { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-radius: 28px; padding: 40px; background: var(--ink); color: var(--ground); }
.pro p { margin: 10px 0 0; opacity: .75; max-width: 46ch; }
.pro .price { font: 800 22px/1 var(--rounded); background: var(--yellow); color: #111114; border-radius: 999px; padding: 14px 22px; }

/* Footer */
footer { padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding-block: 48px 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal .meta { color: var(--ink-3); margin: 12px 0 40px; }
.legal h2 { font-size: 21px; letter-spacing: -.01em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal li { margin: 6px 0; }
.legal .caps { font-size: 15px; letter-spacing: .01em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mini .m-card, .mini .m-badge, .mini.trash .t-thumb { animation: none !important; }
  .mini .m-badge { opacity: 1; }
}

/* AI search */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }
.ai-copy { min-width: 0; }
.ai-lead { color: var(--ink-2); font-size: 18px; margin: 16px 0 28px; max-width: 46ch; }
.ai-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ai-list li { display: grid; gap: 2px; padding-left: 18px; border-left: 3px solid var(--line); }
.ai-list b { font: 700 17px/1.3 var(--rounded); }
.ai-list span { color: var(--ink-2); font-size: 15px; }
.ai-demo { margin: 0; min-width: 0; background: var(--ground-2); border-radius: 28px; padding: 22px; }
.search-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 26px; background: var(--ground); font-size: 17px; }
.search-bar svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.query { white-space: nowrap; overflow: hidden; }
.caret { width: 2px; height: 22px; background: var(--blue); animation: caret 1s steps(1) infinite; flex: none; }
@keyframes caret { 50% { opacity: 0; } }
.kind-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.kind-chips span { font: 600 13px/1 var(--text); padding: 8px 12px; border-radius: 999px; background: var(--ground); color: var(--ink-2); }
.kind-chips span.on { background: var(--ink); color: var(--ground); }
.ai-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ai-photos img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1), outline-color .3s, filter .45s;
  outline: 3px solid transparent; outline-offset: 2px;
}
.ai-photos.searching img { opacity: .22; filter: grayscale(.6); transform: scale(.94); }
.ai-photos.searching img.match { opacity: 1; filter: none; transform: scale(1); outline-color: var(--blue); }
.on-device { display: flex; align-items: center; gap: 8px; margin-top: 16px; font: 600 13px/1.3 var(--text); color: var(--ink-2); }
.on-device svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; flex: none; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; background: var(--ground); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 700 18px/1.35 var(--rounded); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--text); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } .ai-photos img { transition: none; } }

.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound p { color: var(--ink-2); margin: 14px 0 28px; }
