/* ============================================================
   LBlocky — landing page
   Premium fintech · light · indigo/violet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --bg: oklch(98.6% 0.006 285);
  --bg-2: oklch(96.8% 0.012 288);
  --surface: #ffffff;
  --ink: oklch(20% 0.03 278);
  --ink-2: oklch(42% 0.02 278);
  --ink-3: oklch(58% 0.018 278);
  --line: oklch(91% 0.008 280);
  --line-2: oklch(86% 0.01 280);

  --accent: #6c5cff;
  --accent-strong: #5a47ff;
  --accent-soft: oklch(95% 0.04 278);
  --accent-soft-2: oklch(91% 0.06 278);
  --accent-grad: linear-gradient(135deg, #7d6bff 0%, #6c5cff 55%, #8b6bff 100%);

  --pos: oklch(64% 0.13 162);
  --pos-soft: oklch(95% 0.05 162);
  --neg: oklch(63% 0.18 22);
  --neg-soft: oklch(95% 0.04 22);
  --warn: oklch(72% 0.14 70);
  --warn-soft: oklch(95% 0.05 70);

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --sh-md: 0 6px 22px -8px rgba(56,44,128,.14), 0 2px 8px -3px rgba(56,44,128,.08);
  --sh-lg: 0 26px 60px -20px rgba(56,44,128,.30), 0 8px 20px -10px rgba(56,44,128,.14);
  --sh-accent: 0 16px 38px -10px rgba(108,92,255,.5);
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1180px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.04; }
a { color: inherit; text-decoration: none; }
.num { font-family: var(--font-display); font-feature-settings: "tnum" 1; letter-spacing: -.02em; }
::selection { background: var(--accent-soft-2); }
svg { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: var(--r-md); font-weight: 700; font-size: 15.5px;
  font-family: var(--font-body); background: var(--accent-grad); color: #fff; cursor: pointer; border: none;
  box-shadow: var(--sh-accent); transition: transform .18s var(--ease), filter .18s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-3); background: #fff; }
.btn.lg { height: 58px; padding: 0 32px; font-size: 16.5px; }
.btn svg { width: 19px; height: 19px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: color-mix(in oklab, var(--bg) 90%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-grad); display: grid; place-items: center; box-shadow: var(--sh-accent); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.brand-name b { color: var(--accent); }
.nav-links { display: flex; gap: 6px; margin-left: 14px; }
.nav-links a { padding: 9px 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { height: 44px; padding: 0 20px; font-size: 14.5px; }
.nav-login { font-size: 14.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.nav-login:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 70px 0 40px; overflow: hidden; }
.hero-mesh { position: absolute; inset: -200px 0 auto 0; height: 700px; z-index: -1;
  background:
    radial-gradient(540px 360px at 78% 8%, rgba(139,107,255,.22), transparent 70%),
    radial-gradient(520px 380px at 14% 22%, rgba(108,92,255,.16), transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--accent-strong);
  box-shadow: var(--sh-md); margin-bottom: 24px; white-space: nowrap; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 4px var(--pos-soft); }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 700; letter-spacing: -.035em; }
.hero h1 .hl { color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 14px; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); margin: 26px 0 18px; max-width: 480px; }
.no-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 30px; }
.no-strip span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.no-strip span svg { width: 17px; height: 17px; color: var(--pos); }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--ink-3); margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; }

/* ---------- app mockup ---------- */
.mock { position: relative; }
.mock-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transform-origin: left center;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock-bar i:nth-child(1){ background: #ff6b6b88; } .mock-bar i:nth-child(2){ background: #ffcf5c88; } .mock-bar i:nth-child(3){ background: #4ad29588; }
.mock-bar .mb-title { margin-left: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.mock-body { padding: 22px; background: var(--bg); }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mk { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.mk.feat { background: var(--accent-grad); border: none; color: #fff; }
.mk-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 11px; background: var(--accent-soft); color: var(--accent-strong); }
.mk.feat .mk-ico { background: rgba(255,255,255,.2); color: #fff; }
.mk-ico svg { width: 17px; height: 17px; }
.mk-lbl { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.mk.feat .mk-lbl { color: rgba(255,255,255,.85); }
.mk-val { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-top: 3px; }
.mk-chip { display: inline-block; margin-top: 8px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--pos-soft); color: var(--pos); }
.mk.feat .mk-chip { background: rgba(255,255,255,.22); color: #fff; }
.mock-chart { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.mock-chart .mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mc-title { font-size: 12.5px; font-weight: 700; }
.mc-bars { display: flex; align-items: flex-end; gap: 9px; height: 92px; }
.mc-bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; }
.mc-bars .col i { border-radius: 4px 4px 2px 2px; background: var(--accent); }
.mc-bars .col i.muted { background: var(--line-2); }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* floating mini cards */
.float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); padding: 13px 15px; display: flex; align-items: center; gap: 11px; }
.float .f-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float .f-ico svg { width: 19px; height: 19px; }
.float .f-t { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.float .f-v { font-size: 14.5px; font-weight: 800; font-family: var(--font-display); }
.float.scan { top: -26px; right: -18px; animation: floaty 5s ease-in-out infinite; }
.float.scan .f-ico { background: var(--accent-soft); color: var(--accent-strong); }
.float.tax { bottom: -22px; left: -34px; animation: floaty 5.5s ease-in-out .8s infinite; }
.float.tax .f-ico { background: var(--pos-soft); color: var(--pos); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- section heading ---------- */
.sec { padding: 96px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sec-head p { font-size: 17.5px; color: var(--ink-2); margin-top: 16px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.step { text-align: center; padding: 12px; }
.step-num { width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-md); display: grid; place-items: center; color: var(--accent-strong); position: relative; }
.step-num svg { width: 26px; height: 26px; }
.step-num b { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 12px; display: grid; place-items: center; }
.step h3 { font-size: 20px; margin-bottom: 9px; }
.step p { font-size: 15px; color: var(--ink-2); max-width: 280px; margin: 0 auto; }
.steps .conn { position: absolute; top: 41px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }

/* ---------- upload types strip ---------- */
.types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 14px; text-align: center; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.type:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.type .t-ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; }
.type .t-ico svg { width: 22px; height: 22px; }
.type span { font-size: 13.5px; font-weight: 700; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-md); position: relative; overflow: hidden; }
.feature.span2 { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.feature .fe-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: 20px; }
.feature .fe-ico svg { width: 25px; height: 25px; }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--ink-2); }
.feature .fe-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.feature .fe-list li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.feature .fe-list svg { width: 18px; height: 18px; color: var(--pos); flex: none; }

/* chat preview inside feature */
.chat-prev { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 13px; }
.cp-msg { display: flex; gap: 10px; max-width: 88%; }
.cp-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.cp-ava { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.cp-ava.ai { background: var(--accent-grad); color: #fff; }
.cp-ava.me { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 800; font-size: 11px; font-family: var(--font-display); }
.cp-b { padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.cp-msg.ai .cp-b { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 5px; }
.cp-msg.me .cp-b { background: var(--accent); color: #fff; border-top-right-radius: 5px; }
.cp-b b { font-weight: 700; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--sh-md); }
.plan.pro { background: var(--ink); color: #fff; border: none; box-shadow: var(--sh-lg); position: relative; overflow: hidden; }
.plan.pro::after { content:""; position: absolute; top: -60px; right: -50px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(124,107,255,.4), transparent 68%); }
.plan-name { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.plan.pro .plan-name { color: #b9aaff; }
.plan-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--accent-grad); color: #fff; margin-left: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 7px; margin: 18px 0 6px; position: relative; }
.plan-price .pp-num { font-family: var(--font-display); font-size: 50px; font-weight: 700; }
.plan-price .pp-per { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.plan.pro .plan-price .pp-per { color: #b9aaff; }
.plan-desc { font-size: 14.5px; color: var(--ink-3); margin-bottom: 24px; position: relative; }
.plan.pro .plan-desc { color: rgba(255,255,255,.7); }
.plan .btn { width: 100%; position: relative; }
.plan.free .btn { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.plan-feats { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan-feats li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; }
.plan-feats .pf-c { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--pos-soft); color: var(--pos); }
.plan.pro .plan-feats .pf-c { background: rgba(124,107,255,.25); color: #c9bcff; }
.plan-feats svg { width: 12px; height: 12px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 700; font-family: var(--font-display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .q-plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease), background .2s, color .2s; }
.qa[open] summary .q-plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.qa .q-plus svg { width: 16px; height: 16px; }
.qa .a { padding: 0 4px 22px; font-size: 15px; color: var(--ink-2); max-width: 620px; }

/* ---------- final cta ---------- */
.cta-band { padding: 76px 0; }
.cta-card { background: var(--accent-grad); border-radius: var(--r-xl); padding: 64px 48px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--sh-lg); }
.cta-card::before { content:""; position: absolute; inset: 0; background: radial-gradient(420px 240px at 80% -10%, rgba(255,255,255,.28), transparent 70%), radial-gradient(360px 220px at 10% 120%, rgba(255,255,255,.18), transparent 70%); }
.cta-card h2 { font-size: clamp(30px, 4vw, 46px); color: #fff; position: relative; }
.cta-card p { font-size: 18px; color: rgba(255,255,255,.88); margin: 18px auto 30px; max-width: 520px; position: relative; }
.cta-card .btn { background: #fff; color: var(--accent-strong); box-shadow: 0 14px 34px -10px rgba(0,0,0,.3); position: relative; }
.cta-card .cta-note { color: rgba(255,255,255,.8); font-size: 13.5px; margin-top: 16px; position: relative; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand p { font-size: 14px; color: var(--ink-3); margin-top: 14px; max-width: 260px; }
.foot-col h4 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; font-weight: 500; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* ---------- scroll reveal ---------- */
/* base is ALWAYS visible; animation only plays when .in is added (never leaves content hidden) */
.reveal.in { animation: riseFade .7s var(--ease) both; }
@keyframes riseFade { from { transform: translateY(26px); } to { transform: none; } }
.reveal.d1.in { animation-delay: .08s; } .reveal.d2.in { animation-delay: .16s; }
.reveal.d3.in { animation-delay: .24s; } .reveal.d4.in { animation-delay: .32s; }
.reveal.d5.in { animation-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal.in { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { margin-top: 30px; max-width: 460px; }
  .mock-window { transform: none; }
  .float.tax { left: -10px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps .conn { display: none; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .feature.span2 { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .types { grid-template-columns: repeat(2, 1fr); }
  .no-strip { gap: 6px 14px; }
  .cta-card { padding: 44px 24px; }
}

/* ---------- auth (sign in / up) ---------- */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 38px 36px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.auth-field span { font-weight: 700; color: var(--ink); }
.auth-field input {
  height: 48px; padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--surface);
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s;
}
.auth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.auth-field .err { color: var(--neg); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.auth-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin: 2px 0 4px; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.auth-flash {
  padding: 11px 14px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 600;
  margin-bottom: 14px;
}
.auth-flash.success { background: var(--pos-soft); color: var(--pos); }
.auth-flash.error { background: var(--neg-soft); color: var(--neg); }
.auth-flash.info { background: var(--accent-soft); color: var(--accent-strong); }
