/* Landing page. Motion is decorative and switched off for people who ask
   their system for reduced motion. */

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: var(--bg); white-space: nowrap; }
.nav .wordmark { flex: none; }
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .nav .wordmark, .nav .wordmark img { height: 18px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none; border: 0;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--text) 45%, transparent); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 9px 16px; border-radius: 12px; font-size: .95rem; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 48px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.02em;
  margin: 20px 0 18px; font-weight: 700;
}
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; margin: 0 0 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

.glow {
  position: absolute; right: -12%; bottom: -45%; width: 640px; height: 640px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 26%, transparent), transparent 65%);
  pointer-events: none; animation: drift 12s ease-in-out infinite alternate;
}

/* ---------- Phone mock-up (the app, drawn in CSS) ---------- */

.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 19; margin: 0 auto;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #3a3a3d, #0b0b0c);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
  animation: float 7s ease-in-out infinite;
}
.screen {
  height: 100%; border-radius: 36px; background: #000; color: #fff;
  padding: 18px 14px; overflow: hidden; position: relative;
  font-size: 12px; line-height: 1.4;
}
.s-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.s-avatar { width: 28px; height: 28px; border-radius: 50%; background: #2a2a2d; display: grid; place-items: center; font-weight: 600; font-size: 11px; }
.s-search { flex: 1; height: 28px; border-radius: 9px; background: #1c1c1e; color: #8e8e93; display: flex; align-items: center; padding: 0 10px; }
.s-hero { border-radius: 18px; padding: 14px; background: linear-gradient(35deg, #1e1e20, #2b2b2e 55%, #4a4a4e); }
.s-hero .label { font-weight: 600; }
.s-hero .name { color: #8e8e93; font-size: 15px; }
.s-hero .amount { font-size: 26px; font-weight: 700; margin-top: 14px; letter-spacing: -.01em; }
.s-hero .sub { color: #8e8e93; display: flex; justify-content: space-between; }
.s-hero .down { color: #34c77b; font-weight: 600; }
.s-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.s-card { background: #1c1c1e; border-radius: 14px; padding: 10px; }
.s-card b { display: block; font-weight: 600; }
.s-card span { color: #8e8e93; font-size: 10px; }
.bars { display: flex; gap: 3px; margin-top: 10px; height: 14px; }
.bars i { border-radius: 7px; transform-origin: left; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.bars i:nth-child(1) { flex: 5; background: #14b8c4; animation-delay: .2s; }
.bars i:nth-child(2) { flex: 2; background: #f2615a; animation-delay: .35s; }
.bars i:nth-child(3) { flex: 1.4; background: #2d8cf0; animation-delay: .5s; }
.bars i:nth-child(4) { flex: .6; background: #ffc83d; animation-delay: .65s; }
.tiles { display: flex; gap: 5px; margin-top: 10px; }
.tiles i { width: 20px; height: 20px; border-radius: 6px; }
.s-list { background: #1c1c1e; border-radius: 14px; padding: 4px 10px; }
.s-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; opacity: 0; animation: entry 9s infinite; }
.s-item + .s-item { border-top: 1px solid #2a2a2d; }
.s-item:nth-child(1) { animation-delay: .6s; }
.s-item:nth-child(2) { animation-delay: 1.1s; }
.s-item:nth-child(3) { animation-delay: 1.6s; }
.s-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; }
.s-ico svg { width: 13px; height: 13px; }
.s-item .t { flex: 1; line-height: 1.25; }
.s-item .t small { display: block; color: #8e8e93; font-size: 9.5px; }
.s-item .v { font-weight: 600; }

/* A receipt arriving from the share menu, looping. */
.s-toast {
  position: absolute; left: 12px; right: 12px; bottom: 14px;
  background: #2a2a2d; border-radius: 14px; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: toast 9s infinite; opacity: 0;
}
.s-toast .pill { background: #ff9523; color: #111; font-weight: 700; border-radius: 6px; padding: 2px 6px; font-size: 9px; }

/* ---------- Sections ---------- */

section { padding: 88px 0; scroll-margin-top: 68px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker { color: var(--brand-ink); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -.015em; margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px;
  transition: transform .3s, border-color .3s, opacity .7s;
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-ink);
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Steps: share, read, saved */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-weight: 700; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }
.step .quote { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }

/* Privacy band */
.privacy-band {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 800px) { .privacy-band { grid-template-columns: 1fr; padding: 28px; } }
.privacy-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.1; margin: 8px 0 12px; }
.privacy-band p { color: var(--muted); margin: 0 0 20px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 4px; color: var(--green); }

/* Coming soon */
.soon { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); font-weight: 500; }

/* Closing call to action */
.final { text-align: center; }
.final img { width: 88px; border-radius: 22px; }
.final h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 18px 0 8px; letter-spacing: -.015em; line-height: 1.08; }
.final p { color: var(--muted); margin: 0 0 24px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid .reveal:nth-child(3n+2), .js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .grid .reveal:nth-child(3n), .js .steps .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Keyframes ---------- */

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-60px, -40px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes entry {
  0% { opacity: 0; transform: translateY(8px); }
  8%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes toast {
  0%, 30% { opacity: 0; transform: translateY(20px); }
  36%, 60% { opacity: 1; transform: none; }
  66%, 100% { opacity: 0; transform: translateY(20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .s-item { opacity: 1; transform: none; }
  .s-toast { display: none; }
  html { scroll-behavior: auto; }
}
