/* ==========================================================================
   Bazirio Cash Flow — Landing Page Styles
   Token system: teal ledger palette, Inter (voice) + JetBrains Mono (numbers)
   ========================================================================== */

:root {
  --paper:        #FFFFFF;
  --mist:         #F2FBFA;
  --mist-strong:  #E4F7F4;
  --ink:          #08201D;
  --ink-soft:     #4B5B59;
  --ink-faint:    #7E8E8B;
  --line:         #DCEAE8;
  --primary:      #0D9488;
  --primary-dark: #0B7A70;
  --accent:       #14B8A6;
  --gold:         #F59E0B;
  --coral:        #F43F5E;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --container:    1200px;
  --container-narrow: 760px;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  --shadow-sm:    0 4px 16px -6px rgba(8, 32, 29, 0.10);
  --shadow-md:    0 16px 40px -14px rgba(8, 32, 29, 0.18);
  --shadow-lg:    0 30px 70px -20px rgba(8, 32, 29, 0.24);

  --ease: cubic-bezier(.22, .8, .32, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.3em; height: 1.3em; stroke: currentColor; flex-shrink: 0; }
.icon--sm { width: 1.05em; height: 1.05em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 14px;
}
.eyebrow--center { display: block; text-align: center; }

.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}
.h2.center { text-align: center; }

.section-sub {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 560px;
}
.section-sub.center { text-align: center; margin: 0 auto; }
.center { text-align: center; }

.text-accent { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn__stack { display: flex; flex-direction: column; line-height: 1.15; align-items: flex-start; }
.btn__stack small { font-size: 0.68em; font-weight: 600; opacity: 0.8; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--paper);
  box-shadow: 0 14px 30px -10px rgba(13, 148, 136, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -10px rgba(13, 148, 136, 0.6); }

.btn--outline {
  background: var(--paper);
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--ink-soft); transform: translateY(-2px); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--ink); }

.btn--lg { padding: 15px 26px; border-radius: 16px; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 11px; }

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero__actions.center { justify-content: center; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(220, 234, 232, 0);
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(8,32,29,0.25);
}
.nav__inner {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink);
}
.nav__brand-sub { color: var(--primary); font-weight: 700; }
.nav__mark {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--paper);
}
.nav__mark .icon { width: 18px; height: 18px; }

.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--primary); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--primary); transition: width .25s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none; background: none; border: none; color: var(--ink);
  width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px;
}
.nav__toggle:hover { background: var(--mist); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: 12px 4px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--mist-strong); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }
.mobile-menu.is-open { display: flex; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 40px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(20,184,166,0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(13,148,136,0.10), transparent 55%),
    var(--paper);
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(20,184,166,0.08), transparent 70%);
}
.hero__inner {
  position: relative;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: 1.12rem; line-height: 1.65; color: var(--ink-soft); max-width: 520px;
}
.hero__note { margin-top: 16px; font-size: 0.85rem; color: var(--ink-faint); }

/* Dashboard illustration */
.hero__art { position: relative; }
.dash {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  color: var(--paper);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.dash__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.dash__eyebrow {
  display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 8px;
}
.dash__big {
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.01em;
}
.dash__pill {
  background: rgba(20,184,166,0.18); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(20,184,166,0.35);
}
.dash__bars {
  display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-bottom: 24px;
}
.dash__bars span {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: rgba(255,255,255,0.14);
}
.dash__bars span.is-peak { background: var(--accent); }
.dash__rows { display: flex; flex-direction: column; gap: 12px; }
.dash__row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.85);
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dash__row:last-child { border-bottom: none; padding-bottom: 0; }
.dash__row em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 0.82rem; }
.dash__row em.up { color: var(--accent); }
.dash__row em.down { color: #FDA4AF; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--up { background: var(--accent); }
.dot--down { background: var(--coral); }

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--ink);
  font-size: 0.82rem; font-weight: 700;
  padding: 11px 16px; border-radius: 14px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  animation: float 5s ease-in-out infinite;
}
.float-chip--stock { top: -18px; left: -22px; color: var(--gold); animation-delay: .3s; }
.float-chip--stock svg { color: var(--gold); }
.float-chip--sync { bottom: 26px; right: -24px; color: var(--primary); animation-delay: 1s; }
.float-chip--sync svg { color: var(--primary); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__art { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero__sub { max-width: none; }
}
@media (max-width: 480px) {
  .float-chip { font-size: 0.72rem; padding: 8px 12px; }
  .float-chip--stock { left: -8px; top: -14px; }
  .float-chip--sync { right: -8px; }
}

/* ---------- Ledger tape (signature element) ---------- */
.tape {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 16px 0;
}
.tape::before, .tape::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 11px; z-index: 2;
  background-image:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%),
    linear-gradient(45deg, var(--paper) 50%, transparent 50%);
  background-size: 18px 18px;
  background-repeat: repeat-x;
}
.tape::before { top: -1px; background-position: 0 0, 9px 0; }
.tape::after  { bottom: -1px; transform: rotate(180deg); background-position: 0 0, 9px 0; }

.tape__track {
  display: flex; gap: 40px; white-space: nowrap; width: max-content;
  animation: tape-scroll 34s linear infinite;
  font-family: var(--font-mono); font-size: 0.85rem; color: rgba(255,255,255,0.85);
}
.tape__track span { display: inline-flex; align-items: center; gap: 10px; }
.tape__track .up { color: var(--accent); }
.tape__track .down { color: #FDA4AF; }
.tape__track .sep { color: rgba(255,255,255,0.25); }

@keyframes tape-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tape__track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--mist); }

.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
}

/* Feature cards */
.card--feature {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  backdrop-filter: blur(6px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13,148,136,0.35);
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--mist-strong), var(--mist));
  color: var(--primary);
  border: 1px solid var(--line);
}
.card__icon .icon { width: 24px; height: 24px; }
.card__icon--lg { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; }
.card__icon--lg .icon { width: 28px; height: 28px; }

.card--feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card--feature p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }

/* Why choose */
.why__layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.why__copy .section-sub { max-width: 460px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why__list li {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 16px 18px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.why__list li .icon { color: var(--primary); flex-shrink: 0; }

@media (max-width: 900px) {
  .why__layout { grid-template-columns: 1fr; gap: 34px; }
  .why__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .why__list { grid-template-columns: 1fr; }
}

/* Perfect for chips */
.perfect-grid { gap: 16px; }
.chip {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 20px 22px; border-radius: var(--radius-md);
  font-weight: 700; font-size: 1rem; color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(13,148,136,0.3); }
.chip .icon { color: var(--primary); width: 26px; height: 26px; }

/* Screenshot phone gallery */
.phone-gallery {
  display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x proximity;
}
.phone-gallery::-webkit-scrollbar { height: 8px; }
.phone-gallery::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.phone {
  flex: 0 0 auto; width: 220px; scroll-snap-align: start;
  text-align: center;
}
.phone__frame {
  border-radius: 28px; border: 8px solid var(--ink);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  background: var(--ink);
}
.phone:hover .phone__frame { transform: translateY(-10px) scale(1.03); box-shadow: var(--shadow-lg); }
.phone figcaption { margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Stats band ---------- */
.stats {
  background: var(--ink);
  padding: 76px 0;
  position: relative;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.stat__num {
  display: block; font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem); color: var(--paper); letter-spacing: -0.01em;
}
.stat__num--text { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.stat__label {
  display: block; margin-top: 10px; font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em;
}
@media (max-width: 700px) {
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

/* ---------- Download CTA ---------- */
.download {
  padding: 100px 0;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(20,184,166,0.14), transparent 60%),
    var(--mist);
}
.download__inner { max-width: 640px; margin: 0 auto; text-align: center; }

/* ---------- FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.acc-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
}
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; background: none; border: none;
  font-family: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); text-align: left;
}
.acc-chevron { color: var(--primary); transition: transform .25s var(--ease); flex-shrink: 0; }
.acc-item.is-open .acc-chevron { transform: rotate(180deg); }
.acc-panel {
  max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
}
.acc-panel p { padding: 0 24px 22px; color: var(--ink-soft); line-height: 1.65; font-size: 0.95rem; max-width: 620px; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 56px 40px; text-align: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); position: relative; padding-top: 26px; }
.footer__tape {
  position: absolute; top: 0; left: 0; right: 0; height: 11px;
  background-image:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%),
    linear-gradient(45deg, var(--paper) 50%, transparent 50%);
  background-size: 18px 18px; background-position: 0 0, 9px 0;
  opacity: 0.06;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 50px 24px 40px;
}
.nav__brand--footer { color: var(--paper); margin-bottom: 12px; }
.footer__brand p { font-size: 0.9rem; color: rgba(255,255,255,0.5); max-width: 240px; }
.footer__col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); margin-bottom: 16px; font-weight: 700;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 0.92rem; color: rgba(255,255,255,0.75); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 24px; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.45);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { background: var(--primary); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}