/* tab. landing — 2025
   Borrows the expressive language of the original (Lovable) site —
   heavy display type, Instrument Serif italic accents, glass + hard-shadow
   cards, marquee, ambient blobs — anchored to the tab. brand palette. */

:root {
  --ink: #0f172a;          /* Ledger Black     */
  --bg: #f8fafc;           /* Ice White        */
  --card: #ffffff;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e6eaf0;

  --pop: #2563eb;          /* Tab Blue (primary) */
  --pop-700: #1d4ed8;
  --rose: #f43f5e;         /* playful accent     */
  --amber: #f59e0b;        /* disputed/amber     */
  --green: #16a34a;        /* settled            */

  --maxw: 1200px;
  --radius: 1.75rem;

  --display: "Inter", "Archivo Black", "Arial Black", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; }
.italic-accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pop); }

/* ---------- Wordmark ---------- */
.wm { font-family: var(--display); font-weight: 900; letter-spacing: -0.05em; }
.dot { color: var(--pop); }

/* ---------- Buttons (hard-shadow, brutalist) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 1rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-sm { padding: 11px 18px; font-size: 12px; }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(15,23,42,0.45);
}
.btn-primary:hover { background: var(--pop); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(37,99,235,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,0.7); color: var(--ink);
  border-color: var(--border); backdrop-filter: blur(20px);
  box-shadow: 0 8px 20px -10px rgba(15,23,42,0.25);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(244,63,94,0.4); }

/* ---------- Surfaces ---------- */
.glass {
  background: color-mix(in oklab, white 70%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid color-mix(in oklab, white 82%, transparent);
}
.card-hard {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -18px color-mix(in oklab, var(--pop) 22%, transparent),
              0 4px 12px -4px color-mix(in oklab, var(--ink) 8%, transparent);
}
.grad-text {
  background: linear-gradient(90deg, var(--pop), var(--rose), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.underline-neon {
  background-image: linear-gradient(color-mix(in oklab, var(--amber) 45%, transparent), color-mix(in oklab, var(--amber) 45%, transparent));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% 0.32em;
  transform: skew(-2deg); display: inline-block;
}

/* Ambient blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.nav .wm { font-size: 25px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero .blob.b1 { top: -160px; right: -120px; width: 520px; height: 520px; background: rgba(37,99,235,0.18); }
.hero .blob.b2 { bottom: -160px; left: -140px; width: 480px; height: 480px; background: rgba(244,63,94,0.15); }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 72px 24px 88px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2);
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pop); animation: pulse 1.6s ease-in-out infinite; }
.eyebrow span:last-child { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pop); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title { font-size: clamp(44px, 7vw, 82px); margin-bottom: 24px; }
.hero-title .italic-accent { color: var(--rose); }
.hero-sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 30em; margin-bottom: 28px; }

/* Waitlist form */
.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 500px; }
.waitlist-form input[type="email"] {
  flex: 1 1 230px; min-width: 0; padding: 15px 18px; font-size: 15px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 1rem; font-family: inherit;
  box-shadow: 0 6px 16px -10px rgba(15,23,42,0.2);
}
.waitlist-form input::placeholder { color: var(--muted-2); font-weight: 500; }
.waitlist-form input:focus { outline: none; border-color: var(--pop); box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
.form-msg { flex-basis: 100%; font-size: 13.5px; min-height: 18px; margin: 2px 2px 0; color: var(--muted); font-weight: 600; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--rose); }

.hero-meta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.reassure { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; width: max-content;
  padding: 10px 18px; border-radius: 1rem; background: var(--ink); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(15,23,42,0.4);
}
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 10px; opacity: .8; letter-spacing: 0.04em; }
.store-badge strong { font-size: 16px; font-weight: 700; }
.store-badge { transition: transform .15s ease, box-shadow .15s ease; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(15,23,42,0.5); }
.store-badge-lg { padding: 13px 24px; border-radius: 1.15rem; }
.store-badge-lg small { font-size: 11px; }
.store-badge-lg strong { font-size: 18px; }

.hero-cta { margin-top: 26px; }
.cta-download { display: flex; justify-content: center; margin: 0 auto; }
/* On the dark footer CTA box, invert the badge so it pops */
.cta .store-badge { background: #fff; color: var(--ink); }
.cta .store-badge:hover { background: var(--pop); color: #fff; }

/* ---------- Live ledger card ---------- */
.hero-art { position: relative; z-index: 1; }
.ledger {
  position: relative; padding: 30px; border-radius: 2.25rem; overflow: hidden;
}
.ledger .glow { position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: rgba(37,99,235,0.18); border-radius: 50%; filter: blur(50px); }
.ledger-head { display: flex; justify-content: space-between; align-items: center; position: relative; }
.ledger-head .lbl { font-size: 10px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.ledger-dots { display: flex; gap: 6px; }
.ledger-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.ledger-dots .d1 { background: var(--pop); box-shadow: 0 0 8px var(--pop); }
.ledger-dots .d2 { background: var(--rose); box-shadow: 0 0 8px var(--rose); }
.ledger-dots .d3 { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.ledger-total { font-family: var(--display); font-weight: 900; letter-spacing: -0.05em; font-size: clamp(42px, 6vw, 64px); line-height: 1; margin-top: 26px; }
.ledger-total .cents { color: var(--pop); font-weight: 400; }
.ledger-cap { color: var(--muted); margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 17px; }
.ledger-row { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.stack { display: flex; }
.stack i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px; display: block; box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.stack i:first-child { margin-left: 0; }
.stack .s1 { background: var(--pop); } .stack .s2 { background: var(--rose); } .stack .s3 { background: var(--amber); }
.stack .more { background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.ledger-row span { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* floating mini receipt over the ledger */
.mini-receipt {
  position: absolute; right: -10px; bottom: -26px; width: 220px; padding: 16px 18px; transform: rotate(5deg);
  border-radius: 1.4rem;
}
.mini-receipt .badge { margin-bottom: 8px; }
.mini-receipt .ln { font-size: 13px; color: var(--muted); }
.mini-receipt .amt { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: -0.04em; color: var(--green); }
.mini-receipt .for { font-size: 12px; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee-wrap { background: var(--ink); color: #fff; padding: 20px 0; overflow: hidden; position: relative; z-index: 2; }
.marquee { display: flex; gap: 0; width: max-content; animation: marquee 22s linear infinite; }
.marquee .grp { display: flex; gap: 56px; padding-right: 56px; align-items: center; }
.marquee span.itm { font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee .star { color: var(--amber); }
.marquee .c-pop { color: var(--pop); } .marquee .c-rose { color: var(--rose); } .marquee .c-amber { color: var(--amber); } .marquee .c-white { color: #fff; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; }
.section-head { margin-bottom: 44px; }
.section-title { font-family: var(--display); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(30px, 4.6vw, 56px); margin-top: 8px; }
.section-title .italic-accent { color: var(--pop); }
.center { text-align: center; }
.gradbar { width: 92px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--pop), var(--rose), var(--amber)); margin: 14px auto 0; }

/* The Process */
.process { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 36px 30px; border-radius: 2rem; position: relative; }
.step .n { font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1; margin-bottom: 18px; }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step:hover { transform: translateY(-4px); transition: transform .18s ease; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px 26px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; color: var(--c); background: color-mix(in oklab, var(--c) 12%, transparent); }
.feature h3 { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature:hover { transform: translateY(-4px); transition: transform .18s ease; }

/* Receipts row */
.receipts { background: var(--bg); }
.receipt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tab-card { padding: 24px; border-radius: 1.6rem; }
.tab-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tab-when { font-size: 12px; color: var(--muted-2); font-weight: 600; }
.tab-line { font-size: 14px; color: var(--muted); }
.tab-amount { font-family: var(--display); font-weight: 900; font-size: 42px; letter-spacing: -0.045em; line-height: 1.05; margin: 2px 0 4px; }
.tab-amount.red { color: var(--rose); } .tab-amount.green { color: var(--green); } .tab-amount.amber { color: var(--amber); }
.tab-for { font-size: 14px; color: var(--muted); }
.badge { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; display: inline-block; }
.badge-open { background: rgba(100,116,139,0.14); color: var(--muted); }
.badge-settled { background: rgba(22,163,74,0.14); color: var(--green); }
.badge-disputed { background: rgba(245,158,11,0.16); color: var(--amber); }

/* Why / compare */
.why { background: #fff; }
.compare { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 20px 44px -22px rgba(37,99,235,0.18); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); font-size: 15.5px; align-items: center; }
.compare-row:last-child { border-bottom: 0; }
.compare-head { background: var(--ink); color: #fff; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; }
.compare-row span:nth-child(2) { color: var(--muted); }
.compare-row strong { font-weight: 800; }
.compare-win { background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(244,63,94,0.06)); }
.compare-win .wm { font-size: 19px; }
.compare-win span:nth-child(2) { color: var(--pop-700); font-weight: 600; }

/* FAQ */
.faq { background: var(--bg); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 1.2rem; padding: 4px 22px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pop); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 15px; }

/* CTA */
.cta { padding: 40px 0 100px; }
.cta-box { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 3rem; padding: 84px 32px; text-align: center; }
.cta-box .blob.c1 { top: -120px; left: -120px; width: 360px; height: 360px; background: rgba(37,99,235,0.5); }
.cta-box .blob.c2 { bottom: -120px; right: -120px; width: 360px; height: 360px; background: rgba(244,63,94,0.45); }
/* Only lift the real content above the blobs — never the blobs themselves
   (targeting them here would override their absolute positioning and they'd
   take up layout height, ballooning the box). */
.cta-box > *:not(.blob) { position: relative; z-index: 1; }
.cta-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-sub { color: #cbd5e1; font-size: 18px; margin-bottom: 30px; }
.cta .waitlist-form { margin: 0 auto; justify-content: center; }
.cta .waitlist-form input { color: var(--ink); }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--pop); color: #fff; }
.cta .form-msg { color: #cbd5e1; text-align: center; }

/* Footer */
.footer { background: var(--ink); color: #fff; padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .wm { font-size: 30px; }
.footer-brand p { color: var(--muted-2); font-size: 14px; margin-top: 10px; max-width: 22em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #cbd5e1; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-links a:hover { color: #fff; }
.footer-fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-fine p { color: var(--muted-2); font-size: 12px; }
.footer-fine .vibes { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; padding: 52px 24px 76px; }
  .hero-art { max-width: 440px; }
  .steps, .feature-grid, .receipt-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-head { display: none; }
}
@media (max-width: 480px) {
  section { padding: 64px 0; }
  .mini-receipt { right: 0; }
  .cta-box { padding: 60px 22px; border-radius: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; scroll-behavior: auto; transition: none !important; }
  .step:hover, .feature:hover { transform: none; }
}
