/* ============================================================
   SwipeBin, landing page
   Flat dark theme. No gradients, no grid, no glow. DM Sans.
   ============================================================ */

:root {
  --bg:        #0a0c11;
  --bg-2:      #0d1016;
  --panel:     #14181f;
  --panel-2:   #1a1f29;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  --text:      #eef1f7;
  --muted:     #99a2b3;
  --faint:     #6b7383;

  --blue:      #2f6bff;
  --blue-2:    #5b9dff;
  --blue-ink:  #9cc1ff;
  --green:     #2fd27a;
  --red:       #ff5269;
  --gold:      #ffd24a;

  --r:   18px;
  --r-sm: 12px;
  --maxw: 1180px;

  --display: "DM Sans", system-ui, sans-serif;
  --body:    "DM Sans", system-ui, sans-serif;
  --mono:    "DM Sans", system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Texture (subtle, flat) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
main { position: relative; z-index: 2; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 120px 28px; position: relative; z-index: 2; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head .kicker { display: inline-block; margin-bottom: 16px; }
.section__head h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -.02em; line-height: 1.05;
}
.section__head p { color: var(--muted); font-size: 1.12rem; margin-top: 16px; }

.kicker {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue-2); font-weight: 600;
}

/* ---------- Buttons (flat, no glow) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; color: var(--text); white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s;
  padding: 12px 22px;
}
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); background: var(--blue-2); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn__price { font-family: var(--mono); font-size: .82em; opacity: .85; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.3); }
.btn__apple { width: 15px; height: 20px; fill: currentColor; margin-top: -2px; flex: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn--ghost:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10,12,17,.8); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.nav__mark { width: 26px; height: 26px; object-fit: contain; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 4px; }

/* ---------- Hero (centered, GIF below the text) ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 28px 80px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 44px; position: relative; z-index: 2;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; max-width: 780px; }
.hero__media { width: 100%; display: flex; justify-content: center; }
.hero__gif {
  width: 100%; max-width: 760px; height: auto; display: block;
  border-radius: 20px; border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.7);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; margin-bottom: 26px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  line-height: .98; letter-spacing: -.035em;
}
.ink { position: relative; color: var(--blue-2); white-space: nowrap; }
.ink::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .12em;
  background: var(--blue); border-radius: 999px; transform: scaleX(0); transform-origin: left;
  animation: underline 1s var(--ease) .6s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 24px auto 0; }
.lede strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero__fineprint { color: var(--faint); font-size: .9rem; margin-top: 20px; }

/* ---------- Demo shell + swipe deck ---------- */
.hero__demo { display: flex; justify-content: center; }
.demo-shell {
  width: 100%; max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 26px; padding: 18px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.7);
  position: relative;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; }
.demo-folder { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.demo-folder .ic { width: 18px; height: 18px; fill: none; stroke: var(--blue-2); stroke-width: 1.7; }
.demo-count { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.demo-count b { color: var(--text); }
.demo-progress { height: 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 0 6px 14px; }
.demo-progress i { display: block; height: 100%; width: 14%; border-radius: 999px;
  background: var(--blue); transition: width .35s var(--ease); }

.deck { position: relative; height: 330px; margin: 4px 6px; }
.deck-card {
  position: absolute; inset: 0; border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 34px -22px rgba(0,0,0,.6);
  display: flex; flex-direction: column; overflow: hidden;
  cursor: grab; user-select: none; touch-action: none;
  transition: transform .45s var(--ease), opacity .35s;
  will-change: transform;
}
.deck-card:active { cursor: grabbing; }
.deck-card__thumb { flex: 1; display: grid; place-items: center; position: relative; }
.deck-card__glyph { font-size: 4.6rem; }
.deck-card__meta { padding: 14px 16px; border-top: 1px solid var(--line); }
.deck-card__name { font-family: var(--mono); font-size: .92rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-card__sub { color: var(--faint); font-size: .78rem; margin-top: 3px; }

.deck-card__stamp {
  position: absolute; top: 22px; font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: .08em; padding: 6px 14px; border-radius: 10px; border: 2.5px solid currentColor;
  opacity: 0; text-transform: uppercase;
}
.deck-card__stamp--keep { right: 18px; color: var(--green); transform: rotate(12deg); }
.deck-card__stamp--del  { left: 18px;  color: var(--red);   transform: rotate(-12deg); }

.deck-empty {
  position: absolute; inset: 0; display: none; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted);
}
.deck-empty p { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--text); }
.deck.is-empty .deck-empty { display: flex; }

.demo-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.ctrl {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: .92rem; color: var(--text);
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  padding: 11px 18px; transition: transform .18s var(--ease), background .2s, border-color .2s;
}
.ctrl .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ctrl:hover { transform: translateY(-2px); }
.ctrl--del { color: var(--red); border-color: rgba(255,82,105,.4); }
.ctrl--del:hover { background: rgba(255,82,105,.12); }
.ctrl--keep { color: var(--green); border-color: rgba(47,210,122,.4); }
.ctrl--keep:hover { background: rgba(47,210,122,.12); }
.ctrl--skip { width: 42px; height: 42px; padding: 0; justify-content: center; color: var(--muted); }
.ctrl--skip:hover { color: var(--text); background: rgba(255,255,255,.07); }
.demo-hint { text-align: center; color: var(--faint); font-size: .82rem; margin-top: 12px; }
kbd { font-family: var(--mono); font-size: .78em; background: rgba(255,255,255,.07);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

/* ---------- Stat strip ---------- */
.stats {
  max-width: var(--maxw); margin: 0 auto; padding: 8px 28px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2;
}
.stat { border-left: 2px solid var(--line-2); padding-left: 18px; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card--wide { grid-column: span 1; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.card__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); margin-bottom: 18px; }
.card__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__ic--blue { background: rgba(47,107,255,.16); border-color: rgba(47,107,255,.4); }
.card__ic--blue svg { stroke: var(--blue-ink); }
.card--accent { background: rgba(47,107,255,.06); border-color: rgba(47,107,255,.3); }
.card__swipes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font-family: var(--mono); font-size: .78rem; font-weight: 500; padding: 5px 11px; border-radius: 8px; border: 1px solid currentColor; }
.chip--green { color: var(--green); } .chip--red { color: var(--red); }
.chip--blue { color: var(--blue-2); } .chip--gray { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: s; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; position: relative; }
.step__n { font-family: var(--mono); font-size: .85rem; color: var(--blue-2); letter-spacing: .1em; font-weight: 600; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin: 14px 0 8px; }
.step p { color: var(--muted); }
.step::before { content: ""; position: absolute; top: 38px; right: -16px; width: 16px; height: 2px; background: var(--line-2); }
.step:last-child::before { display: none; }

/* ---------- Pricing ---------- */
.section--pricing .section__head { text-align: center; max-width: 640px; margin-inline: auto; }
.price-card {
  max-width: 460px; margin: 0 auto; position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 26px; padding: 38px 34px;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.8);
}
.price-card__top { text-align: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.price-card__tag { font-family: var(--mono); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); font-weight: 600; }
.price-card__amount { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; margin: 14px 0 6px; line-height: 1; }
.price-card__amount .cur { font-size: 2rem; vertical-align: super; color: var(--muted); }
.price-card__amount .num { font-size: 5rem; }
.price-card__amount .cents { font-size: 2.6rem; color: var(--muted); }
.price-card__once { color: var(--faint); font-size: .92rem; }
.price-card__list { list-style: none; padding: 26px 0; display: grid; gap: 14px; }
.price-card__list li { position: relative; padding-left: 30px; color: var(--text); font-size: 1rem; }
.price-card__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(47,210,122,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fd27a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center; }
.price-card__foot { text-align: center; color: var(--faint); font-size: .85rem; margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; padding: 22px 4px; font-family: var(--display);
  font-weight: 600; font-size: 1.15rem; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue-ink); }
.faq__plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: var(--blue-2);
  transition: transform .25s var(--ease); }
.faq__plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq details[open] .faq__plus::after { transform: scaleY(0); }
.faq details p { color: var(--muted); padding: 0 4px 24px; max-width: 62ch; }

/* ---------- Finale + footer ---------- */
.finale { text-align: center; padding: 110px 28px; position: relative; z-index: 2; }
.finale__inner { max-width: 640px; margin: 0 auto; }
.finale__icon { width: 92px; height: 92px; margin-bottom: 26px; }
.finale h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.04; }
.finale p { color: var(--muted); font-size: 1.15rem; margin: 16px 0 30px; }
.finale .hero__cta { justify-content: center; }

.footer { max-width: var(--maxw); margin: 0 auto; padding: 40px 28px 60px; position: relative; z-index: 2;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.footer__brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; }
.footer__links { display: flex; gap: 22px; margin-left: auto; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { width: 100%; color: var(--faint); font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .hero__demo { order: 2; }
  .bento, .steps { grid-template-columns: 1fr 1fr; }
  .step::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 84px 20px; }
  .hero { padding: 30px 20px 60px; }
  .bento, .steps, .stats { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 28px 100px; position: relative; z-index: 2; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.8rem); letter-spacing: -.025em; }
.legal__updated { color: var(--faint); font-size: .9rem; margin: 8px 0 16px; }
.legal__intro { color: var(--muted); font-size: 1.08rem; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; color: var(--text); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 6px 0 14px; padding-left: 22px; display: grid; gap: 7px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--blue-2); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
