/* Swipezy site. Tokens mirror app/docs/design/system.md (brand kit v3). */
:root{
  --canvas:#F2F5FD; --surface:#FFFFFF; --ink:#0E1330; --ink-2:#4A5170; --ink-3:#8289A6;
  --brand:#3B4FE0; --brand-ink:#2438B8; --brand-tint:#EAF1FE; --line:#DCE3F5;
  --freed:#16A34A; --danger:#E23D3D; --keep:#4FD2B4; --trash:#FC9486;
  --ease:cubic-bezier(.32,.72,0,1);
  --shadow:0 8px 24px rgba(14,19,48,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--canvas); color:var(--ink);
  font:400 16px/24px Manrope,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased; text-wrap:pretty; overflow-x:clip;
}
img{max-width:100%; display:block}
a{color:var(--brand-ink)}
h1,h2,h3,p{margin:0}
h1,h2,h3{text-wrap:balance; letter-spacing:-.02em}
:focus-visible{outline:2px solid var(--brand); outline-offset:2px; border-radius:4px}
.wrap{max-width:1120px; margin:0 auto; padding:0 24px}
.skip{position:absolute; left:16px; top:-64px; background:var(--ink); color:#fff; padding:8px 12px; border-radius:8px; z-index:50; transition:top .3s var(--ease)}
.skip:focus{top:16px}

/* Nav: floating pill */
.nav{position:sticky; top:0; z-index:30; padding-top:24px; pointer-events:none}
.nav-pill{
  pointer-events:auto; margin:0 auto; width:max-content; max-width:calc(100% - 32px);
  display:flex; align-items:center; gap:24px; padding:8px 8px 8px 12px; border-radius:9999px;
  background:rgba(255,255,255,.8); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--line); box-shadow:var(--shadow);
}
.brand{display:flex; align-items:center; gap:8px; font-weight:700; color:var(--ink); text-decoration:none}
.brand img{width:32px; height:32px; border-radius:8px}
.nav-links{display:flex; gap:4px}
.nav-links a{
  font-size:14px; line-height:20px; font-weight:600; color:var(--ink-2); text-decoration:none;
  padding:8px 12px; border-radius:9999px; transition:background .7s var(--ease), color .7s var(--ease);
}
.nav-links a:hover,.nav-links a[aria-current="page"]{background:var(--brand-tint); color:var(--brand-ink)}
.burger{display:none; position:relative; width:40px; height:40px; border:0; border-radius:9999px; background:var(--brand-tint); cursor:pointer}
.burger span{position:absolute; left:12px; width:16px; height:2px; border-radius:2px; background:var(--brand-ink); transition:transform .7s var(--ease), top .7s var(--ease)}
.burger span:nth-child(1){top:16px}
.burger span:nth-child(2){top:22px}
.menu-open .burger span:nth-child(1){top:19px; transform:rotate(45deg)}
.menu-open .burger span:nth-child(2){top:19px; transform:rotate(-45deg)}
.menu{
  position:fixed; inset:0; z-index:20; display:flex; flex-direction:column; justify-content:center; gap:16px; padding:32px;
  background:rgba(255,255,255,.8); backdrop-filter:blur(64px); -webkit-backdrop-filter:blur(64px);
  opacity:0; visibility:hidden; transition:opacity .7s var(--ease), visibility .7s;
}
.menu a{font-size:30px; line-height:36px; font-weight:700; color:var(--ink); text-decoration:none; opacity:0; transform:translateY(48px); transition:opacity .7s var(--ease), transform .7s var(--ease)}
.menu-open .menu{opacity:1; visibility:visible}
.menu-open .menu a{opacity:1; transform:none}
.menu-open .menu a:nth-child(1){transition-delay:.1s}
.menu-open .menu a:nth-child(2){transition-delay:.15s}
.menu-open .menu a:nth-child(3){transition-delay:.2s}
.menu-open .menu a:nth-child(4){transition-delay:.25s}
.menu-open{overflow:hidden}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:12px; border:0;
  font:600 16px/24px Manrope,sans-serif; text-decoration:none; color:#fff; background:var(--brand); cursor:pointer;
  transition:transform .7s var(--ease), background .7s var(--ease);
}
.btn:hover{background:var(--brand-ink); transform:translateY(-1px)}
.btn:active{transform:scale(.98)}
/* Store badges, same shape as boothieapp.com */
.store{
  display:inline-flex; align-items:center; gap:12px; padding:8px 16px; border-radius:12px; text-decoration:none;
  border:1px solid var(--ink); transition:transform .7s var(--ease), box-shadow .7s var(--ease);
}
.store svg{width:24px; height:24px; flex:none}
.store span{display:flex; flex-direction:column; align-items:flex-start}
.store small{font-size:12px; line-height:16px; font-weight:600; opacity:.7}
.store b{font-size:16px; line-height:20px; font-weight:700}
.store.ios{background:var(--ink); color:#fff}
.store.play{background:var(--surface); color:var(--ink); border-color:var(--line)}
.store[href]:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.store[href]:active{transform:scale(.98)}
.store[aria-disabled="true"]{cursor:default}
.btn.ghost{background:var(--brand-tint); color:var(--brand-ink)}

/* Hero */
.hero{padding:64px 0 96px}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center}
.hero h1{
  max-width:680px; font-size:60px; line-height:1; font-weight:700; padding-bottom:4px;
  background:linear-gradient(90deg,#000,#666); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.sub{max-width:680px; margin-top:24px; font-size:18px; line-height:28px; color:var(--ink-2)}
.hero .cta{margin-top:32px; display:flex; flex-wrap:wrap; align-items:center; gap:16px}
.proof{margin-top:24px; display:flex; flex-wrap:wrap; gap:8px 24px; padding:0; list-style:none; font-size:14px; line-height:20px; font-weight:600; color:var(--ink-2)}
.proof li{display:flex; align-items:center; gap:8px}
.proof i{color:var(--freed); font-size:16px}

/* Deck: the app's onboarding demo (SwipeDemo.swift, CardOffset), same numbers scaled to the card */
.demo{position:relative; width:min(280px,64vw); margin:0 auto}
.deck{position:relative; aspect-ratio:10/13}
.card{
  position:absolute; inset:0; border-radius:24px; overflow:hidden; background:var(--surface);
  border:2px solid rgba(255,255,255,.9); box-shadow:0 8px 28px rgba(0,0,0,.16);
  opacity:0; transform:translateY(48px) scale(.85);
  transition:transform .38s cubic-bezier(.3,1.2,.5,1), opacity .38s var(--ease);
}
.card img{width:100%; height:100%; object-fit:cover}
.card:nth-last-child(3){opacity:1; transform:translateY(32px) scale(.9)}
.card:nth-last-child(2){opacity:1; transform:translateY(16px) scale(.95)}
.card:nth-last-child(1){opacity:1; transform:none}
.card.reset{transition:none}
.stamp{
  position:absolute; top:24px; height:40px; padding:0 12px; display:grid; place-items:center; border:3px solid; border-radius:10px;
  font-size:20px; line-height:28px; font-weight:800; opacity:0; filter:drop-shadow(0 1px 5px rgba(0,0,0,.35));
}
.stamp.k{right:20px; color:var(--keep); transform:rotate(12deg)}
.stamp.d{left:20px; color:var(--trash); transform:rotate(-12deg)}
.finger{
  position:absolute; left:50%; top:calc(50% - 24px); width:40px; height:40px; margin:64px 0 0 -20px; border-radius:9999px;
  background:rgba(255,255,255,.85); border:2px solid rgba(59,79,224,.35); box-shadow:0 3px 8px rgba(0,0,0,.2);
  opacity:0; pointer-events:none;
}
.hints{margin-top:48px; display:flex; justify-content:space-between}
.hint{
  display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 16px; border-radius:9999px; background:var(--surface);
  font-size:14px; line-height:20px; font-weight:700; box-shadow:var(--shadow);
  transition:transform .3s cubic-bezier(.3,1.4,.5,1), background .2s var(--ease), color .2s var(--ease);
}
.hint.d{color:var(--danger)}
.hint.k{color:var(--freed)}
.hint.on{color:#fff; transform:scale(1.08)}
.hint.d.on{background:var(--danger)}
.hint.k.on{background:var(--freed)}

/* Sections */
section{padding:96px 0}
section[id]{scroll-margin-top:64px}
.eyebrow{font-size:14px; line-height:20px; font-weight:700; color:var(--brand-ink)}
.h2{margin-top:8px; max-width:680px; font-size:36px; line-height:40px; font-weight:700}
.lead{margin-top:16px; max-width:680px; font-size:18px; line-height:28px; color:var(--ink-2)}
.tagline{padding:96px 0}
.tagline p{max-width:880px; font-size:48px; line-height:1.1; font-weight:700; letter-spacing:-.02em}
.tagline .w{color:rgba(14,19,48,.28); transition:color .8s var(--ease)}
.tagline .w.on{color:var(--ink)}

.grid{margin-top:48px; display:grid; gap:16px; grid-template-columns:repeat(2,1fr)}
.tile{background:var(--surface); border:1px solid var(--line); border-radius:24px; padding:32px}
.tile h3{margin-top:16px; font-size:20px; line-height:28px; font-weight:700}
.tile p{margin-top:8px; color:var(--ink-2)}
.badge{display:grid; place-items:center; width:48px; height:48px; border-radius:16px; font-size:24px}
.b-brand{background:var(--brand-tint); color:var(--brand)}
.b-dup{background:rgba(14,159,142,.14); color:#0E9F8E}
.b-vid{background:rgba(232,106,69,.14); color:#E86A45}
.b-del{background:rgba(226,61,61,.12); color:var(--danger)}

.steps{margin-top:48px; display:grid; gap:16px; grid-template-columns:repeat(3,1fr); counter-reset:s; padding:0; list-style:none}
.steps li{counter-increment:s; background:var(--surface); border:1px solid var(--line); border-radius:24px; padding:32px}
.steps li::before{content:counter(s); display:grid; place-items:center; width:40px; height:40px; border-radius:9999px; background:var(--brand); color:#fff; font-weight:700}
.steps h3{margin-top:16px; font-size:20px; line-height:28px; font-weight:700}
.steps p{margin-top:8px; color:var(--ink-2)}

.safe{margin-top:48px; display:grid; gap:16px; grid-template-columns:1fr 1fr}
.safe-card{background:var(--surface); border:1px solid var(--line); border-radius:24px; padding:32px}
.safe-card h3{font-size:20px; line-height:28px; font-weight:700}
.safe-card ul{margin:16px 0 0; padding:0; list-style:none; display:grid; gap:12px}
.safe-card li{display:flex; gap:12px; align-items:flex-start; color:var(--ink-2)}
.safe-card li i{flex:none; margin-top:2px; font-size:20px; color:var(--freed)}
.safe-card.never{background:var(--ink); border-color:var(--ink)}
.safe-card.never h3{color:#fff}
.safe-card.never li{color:#B9C0DC}
.safe-card.never li i{color:#FF8A80}
.nets{margin-top:16px; display:grid; gap:16px; grid-template-columns:repeat(4,1fr)}
.net{background:var(--brand-tint); border-radius:24px; padding:24px}
.net i{font-size:24px; color:var(--brand)}
.net h3{margin-top:12px; font-size:16px; line-height:24px; font-weight:700}
.net p{margin-top:4px; font-size:14px; line-height:20px; color:var(--ink-2)}
.fineprint{margin-top:24px; font-size:14px; line-height:20px; color:var(--ink-3)}

.faq{margin-top:48px; display:grid; gap:12px; max-width:800px}
.faq details{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px 24px}
.faq summary{cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:16px; font-weight:700; font-size:18px; line-height:28px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; color:var(--brand); font-weight:500; transition:transform .7s var(--ease)}
.faq details[open]:not(.closing) summary::after{transform:rotate(45deg)}
.faq .body{overflow:hidden}
.faq p{margin-top:0; padding-top:12px; color:var(--ink-2)}

.final{text-align:center}
.final .box{background:var(--surface); border:1px solid var(--line); border-radius:32px; padding:64px 24px}
.final img{width:80px; height:80px; border-radius:20px; margin:0 auto}
.final .h2,.final .lead{margin-left:auto; margin-right:auto}
.final .cta{margin-top:32px; display:flex; flex-wrap:wrap; gap:16px}

footer{padding:48px 0; border-top:1px solid var(--line); font-size:14px; line-height:20px; color:var(--ink-2)}
footer .row{display:flex; flex-wrap:wrap; gap:16px 24px; justify-content:space-between; align-items:center}
footer nav{display:flex; flex-wrap:wrap; gap:8px 24px}
footer a{color:var(--ink-2); text-decoration:none; font-weight:600}
footer a:hover{color:var(--brand-ink)}

/* Legal and support pages */
.doc{max-width:760px; margin:0 auto; padding:64px 24px 96px}
.doc h1{font-size:48px; line-height:1; font-weight:700}
.doc .meta{margin-top:16px; color:var(--ink-3); font-size:14px; line-height:20px}
.doc .summary{margin-top:32px; background:var(--brand-tint); color:var(--brand-ink); border-radius:16px; padding:24px; font-weight:600}
.doc h2{margin-top:48px; font-size:24px; line-height:32px; font-weight:700}
.doc h3{margin-top:24px; font-size:18px; line-height:28px; font-weight:700}
.doc p,.doc ul,.doc table{margin-top:12px; color:var(--ink-2)}
.doc ul{padding-left:24px}
.doc li{margin-top:8px}
.doc .scroll{overflow-x:auto}
.doc table{width:100%; border-collapse:collapse; font-size:14px; line-height:20px; min-width:560px}
.doc th,.doc td{text-align:left; vertical-align:top; padding:12px; border:1px solid var(--line); background:var(--surface)}
.doc th{color:var(--ink); font-weight:700}
.cards{margin-top:32px; display:grid; gap:16px}
.cards .tile p{margin-top:8px}
.notfound{min-height:60vh; display:grid; place-content:center; text-align:center; gap:16px; padding:64px 24px}
.notfound h1{font-size:60px; line-height:1; font-weight:700}
.notfound .btn{justify-self:center}

/* Scroll reveal */
.reveal{opacity:0; transform:translateY(64px); filter:blur(12px); transition:opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease)}
.reveal.in{opacity:1; transform:none; filter:none}

@media (max-width:860px){
  .hero{padding:48px 0 64px}
  .hero-grid{grid-template-columns:1fr; gap:48px}
  .hero h1{font-size:48px}
  .hero h1 br{display:none}
  .tagline p{font-size:36px; line-height:40px}
  .grid,.steps,.safe{grid-template-columns:1fr}
  .nets{grid-template-columns:1fr 1fr}
  section,.tagline{padding:64px 0}
  .nav-links{display:none}
  .burger{display:block}
  .nav-pill{gap:48px}
  .doc h1{font-size:36px; line-height:40px}
}
@media (max-width:520px){
  .nets{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important; animation:none !important; scroll-behavior:auto !important}
  .reveal{opacity:1; transform:none; filter:none}
  .tagline .w{color:var(--ink)}
}
