:root {
  --paper: oklch(0.958 0.004 85);
  --paper-hi: oklch(0.978 0.003 85);
  --paper-lo: oklch(0.925 0.005 80);
  --ink: oklch(0.205 0.006 60);
  --ink-2: oklch(0.43 0.008 60);
  --ink-3: oklch(0.52 0.008 60);
  --hair: oklch(0.205 0.006 60 / 0.12);
  --danger: oklch(0.53 0.19 27);
  --ok: oklch(0.55 0.12 150);
  --font: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; min-height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.bar { position: sticky; top: 0; z-index: 5; height: 52px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 8px;
  background: color-mix(in oklch, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.back { grid-column: 1; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.mark { grid-column: 2; justify-self: center; text-decoration: none; color: var(--ink); font: 500 13px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; }
.mark span { letter-spacing: .04em; text-transform: none; color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.step { grid-column: 3; justify-self: end; padding-right: 8px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.view { max-width: 480px; margin: 0 auto; padding: 4px 16px 40px; animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
h1 { font: 400 clamp(32px, 9vw, 40px)/1.02 var(--serif); letter-spacing: -0.01em; margin: 6px 0 14px; }
h1 em { font-style: italic; }
h2 { font: 400 30px/1.1 var(--serif); margin: 12px 0 16px; }
.sub { color: var(--ink-2); margin: -6px 0 16px; }
.fine { font-size: 13px; color: var(--ink-3); text-align: center; margin: 10px 0 0; }

.cta { display: block; width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper-hi); font-weight: 500; font-size: 17px; margin-top: 18px;
  transition: transform .12s, opacity .2s; }
.cta:active { transform: scale(.985); }
.cta:disabled { opacity: .28; cursor: default; }

/* before / after */
.ba { position: relative; aspect-ratio: 2/3; height: min(calc(100svh - 350px), calc((100vw - 32px) * 1.5), 690px); min-height: 300px; margin: 0 auto; border-radius: var(--r); overflow: hidden; background: var(--paper-lo); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 44px; margin-left: -22px; cursor: ew-resize; display: grid; place-items: center; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #fff; box-shadow: 0 0 10px #0004; }
.ba-handle span { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px #0003; }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 13px; border: 5px solid transparent; }
.ba-handle span::before { left: 6px; border-right-color: var(--ink); }
.ba-handle span::after { right: 6px; border-left-color: var(--ink); }
.tag { position: absolute; top: 12px; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: #0006; color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tag-l { left: 12px; } .tag-r { right: 12px; }

.more { margin-top: 36px; }
.pairs { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.pairs::-webkit-scrollbar { display: none; }
.pairs figure { position: relative; margin: 0; scroll-snap-align: center; border-radius: var(--r); overflow: hidden; aspect-ratio: 2/3; background: var(--paper-lo); }
.pairs figure > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.pip { position: absolute; left: 10px; bottom: 10px; width: 30%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 4px 14px #0004; }
.real { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }

.faq { margin-top: 28px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; padding: 16px 0; font-weight: 500; display: flex; justify-content: space-between; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: -6px 0 16px; color: var(--ink-2); font-size: 15px; }
.foot { display: flex; gap: 18px; justify-content: center; margin-top: 28px; font-size: 13px; }
.foot a { color: var(--ink-3); }

/* step 1 */
.drop { display: grid; justify-items: center; gap: 18px; padding: 8px 0 0; cursor: pointer; }
.phone { width: 62%; aspect-ratio: 9/19.5; border-radius: 30px; padding: 7px; background: var(--ink); box-shadow: 0 30px 60px oklch(0.2 0.01 60 / .18); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; background: #fff; }
.drop.has .phone { width: 72%; }
.pill { display: inline-flex; height: 50px; align-items: center; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper-hi); font-weight: 500; }
.drop.has .pill { background: transparent; color: var(--ink-2); height: 40px; text-decoration: underline; text-underline-offset: 3px; }

/* step 2 */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed oklch(0.205 0.006 60 / .3); background: var(--paper-hi); display: grid; place-items: center; padding: 0; overflow: hidden; }
.slot.add::after { content: "+"; font-size: 26px; color: var(--ink-3); font-weight: 300; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.good { border: 2px solid var(--paper-hi); box-shadow: 0 0 0 1.5px var(--ok); }
.slot.bad { border: 2px solid var(--paper-hi); box-shadow: 0 0 0 1.5px var(--danger); }
.slot.bad img { opacity: .45; }
.slot .why { position: absolute; inset: auto 0 0 0; font-size: 11px; font-weight: 500; line-height: 1.1; background: var(--danger); color: #fff; padding: 3px 2px 5px; text-align: center; }
.slot.busy::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hair); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { font-size: 13px; color: var(--ink-3); text-align: center; margin: 14px 0 22px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 14px; border-radius: 14px; background: var(--paper-hi); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* step 3 */
.stage { position: relative; aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; background: var(--paper-lo); }
.stage img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(1.02); }
.scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, oklch(1 0 0 / .55) 48%, transparent 52%); background-size: 100% 260%; animation: scan 2.6s ease-in-out infinite; mix-blend-mode: soft-light; }
@keyframes scan { 0% { background-position: 0 100%; } 100% { background-position: 0 0%; } }
.progress { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 3px; border-radius: 3px; background: #fff5; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: #fff; transition: width 1s linear; }
.waiting { text-align: center; color: var(--ink-2); margin: 14px 0 18px; font-variant-numeric: tabular-nums; }
.mail { display: flex; gap: 8px; }
.mail input { flex: 1; min-width: 0; height: 48px; border-radius: 999px; border: 1px solid var(--hair); background: var(--paper-hi); padding: 0 18px; font: inherit; font-size: 16px; }
.mail button { height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper-hi); font-weight: 500; }
.mail.done { justify-content: center; color: var(--ok); font-size: 15px; }

/* step 4 */
.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.swipe figure { margin: 0; scroll-snap-align: center; aspect-ratio: 2/3; background: var(--paper-lo); }
.swipe img { width: 100%; height: 100%; object-fit: cover; }
.swipe .failed { display: grid; place-items: center; text-align: center; color: var(--ink-3); padding: 24px; font-size: 15px; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hair); }
.dots i.on { background: var(--ink); }
.vote { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 4px; font-size: 14px; color: var(--ink-2); }
.vote button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hair); background: var(--paper-hi); font-size: 18px; }
.vote button.on { background: var(--ink); border-color: var(--ink); }
.vote.done span::after { content: " · thanks"; color: var(--ink-3); }
.pay { margin-top: 18px; padding: 20px 18px; border-radius: var(--r); background: var(--paper-hi); box-shadow: 0 0 0 1px var(--hair); }
.pay-h { font: 400 26px/1.1 var(--serif); margin: 0; }
.pay-s { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }

/* gallery */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: var(--paper-lo); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .acts { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.tile .acts a, .tile .acts button { flex: 1; height: 34px; border-radius: 999px; border: 0; font-size: 13px; font-weight: 500; display: grid; place-items: center; text-decoration: none;
  background: #ffffffd9; color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile.gen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #fff8 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tile.gen .lbl, .tile.bad .lbl { position: absolute; inset: auto 0 12px; text-align: center; font-size: 13px; color: var(--ink-2); }
.tile.addp { border: 1.5px dashed oklch(0.205 0.006 60 / .3); background: transparent; display: grid; place-items: center; text-align: center; color: var(--ink-2); font-size: 14px; padding: 0; }
.tile.addp b { display: block; font: 400 34px/1 var(--font); color: var(--ink); margin-bottom: 6px; font-weight: 300; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper-hi);
  padding: 12px 18px; border-radius: 14px; font-size: 14px; max-width: calc(100% - 32px); transition: .25s; z-index: 20; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.cookie { position: fixed; max-height: 64px; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15; display: flex; align-items: center; gap: 8px; max-width: 456px; margin: 0 auto;
  background: var(--paper-hi); box-shadow: 0 0 0 1px var(--hair), 0 10px 30px #0001; padding: 10px 10px 10px 16px; border-radius: 16px; font-size: 13px; color: var(--ink-2); }
.cookie span { flex: 1; }
.cookie button { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; }
.cookie .ok { background: var(--ink); color: var(--paper-hi); }

@media (min-width: 760px) {
  .view { max-width: 460px; padding-top: 16px; }
  .ba { height: min(calc(100svh - 400px), 690px); }
  h1 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.tile .linkish{background:none;border:0;text-decoration:underline;color:var(--ink);font-size:13px;margin-top:4px}

.hero .cta { margin-top: 14px; }
.hero { padding-bottom: 72px; }
