/* Business Billing — landing page */
:root {
  --navy: #0b1f3a; --primary: #1d4ed8; --primary-2: #2563eb;
  --accent: #f59e0b; --green: #16a34a; --ink: #0f172a; --muted: #64748b;
  --line: #e2e8f0; --bg: #f8fafc;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .15s; }
.btn:hover { text-decoration: none; filter: brightness(.98); transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: linear-gradient(135deg, #f59e0b, #f97316); color: #231500; box-shadow: 0 6px 18px rgba(245,158,11,.35); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #f97316); color: #1c1200; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; display: block; padding: 3px; box-sizing: border-box; }
.head-nav { display: flex; gap: 22px; margin-left: 18px; flex: 1; }
.head-nav a { color: #334155; font-weight: 600; font-size: 15px; }
.head-nav a:hover { color: var(--primary); text-decoration: none; }
.head-cta { display: flex; gap: 10px; }

/* Hero */
.hero { background: radial-gradient(900px 460px at 85% -10%, rgba(245,158,11,.25), transparent 60%), radial-gradient(700px 420px at -10% 110%, rgba(37,99,235,.35), transparent 60%), linear-gradient(155deg, #0b1f3a 0%, #12294a 55%, #173a6e 100%); color: #e2e8f0; padding: 74px 0 84px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fde68a; font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: 999px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.22); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -1.2px; margin-bottom: 16px; }
.hero h1 .grad { background: linear-gradient(100deg, #fbbf24 10%, #f59e0b 55%, #fb923c 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #cbd5e1; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 30px; flex-wrap: wrap; }
.hero-actions .btn { transition: transform .15s, box-shadow .15s, filter .15s; }
.hero-actions .btn:hover { transform: translateY(-2px); }
.hero-actions .btn-accent:hover { box-shadow: 0 12px 30px rgba(245,158,11,.5); }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.hero-stats > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 16px; backdrop-filter: blur(4px); }
.hero-stats strong { display: block; color: #fff; font-size: 18px; }
.hero-stats span { font-size: 12.5px; color: #94a3b8; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: #94a3b8; flex-wrap: wrap; }
.hero-trust .stars { color: #fbbf24; letter-spacing: 2px; font-size: 15px; }

/* Hero visual */
.hero-visual { position: relative; min-height: 340px; }
.mock-card { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.4); overflow: hidden; transform: rotate(-1.2deg); }
.mock-top { background: #f1f5f9; padding: 11px 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-title { margin-left: 8px; font-size: 12.5px; font-weight: 700; color: #475569; }
.mock-body { padding: 20px 22px 22px; }
.mock-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.mock-row.grand { border: none; font-size: 17px; font-weight: 800; padding-top: 12px; }
.mock-status { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.chip-green { background: #dcfce7; color: #166534; }
.chip-blue { background: #dbeafe; color: #1e40af; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 13px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.32); display: flex; flex-direction: column; gap: 2px; animation: floaty 5s ease-in-out infinite; }
.fc1 { top: -26px; right: -8px; }
.fc2 { bottom: 46px; left: -34px; animation-delay: 1.4s; }
.fc3 { bottom: -30px; right: 26px; animation-delay: 2.6s; }
.fc-label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.fc-val { font-size: 16px; font-weight: 800; }
.fc-bar { display: block; height: 6px; background: #e2e8f0; border-radius: 6px; margin-top: 5px; overflow: hidden; }
.fc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #4ade80); border-radius: 6px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Trust strip */
.trust { background: #0f172a; color: #94a3b8; padding: 14px 0; font-size: 13.5px; }
.trust-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.trust ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.trust li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 5px 13px; border-radius: 999px; font-weight: 600; color: #cbd5e1; }
.trust span { color: #fbbf24; font-weight: 700; }

/* Sections */
.section { padding: 74px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.kicker { display: inline-block; color: var(--primary); background: #dbeafe; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.8px; }
.sec-head p { color: var(--muted); font-size: 17px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; box-shadow: 0 2px 10px rgba(15,23,42,.05); position: relative; overflow: hidden; }
.feature-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17.5px; }
.feature-card ul { list-style: none; padding: 0; margin: 0; }
.feature-card li { font-size: 14.5px; color: #334155; padding: 6px 0 6px 24px; position: relative; border-bottom: 1px dashed #eef2f7; }
.feature-card li:last-child { border-bottom: none; }
.feature-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; position: relative; }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.step h4 { font-size: 16.5px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 30px 26px 24px; position: relative; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(15,23,42,.05); transition: transform .18s, box-shadow .18s, border-color .18s; }
.price-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(15,23,42,.13); border-color: #cbd5e1; }
.price-card.featured { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--primary), #f59e0b) border-box; border: 2px solid transparent; box-shadow: 0 24px 55px rgba(29,78,216,.22); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-5px); box-shadow: 0 30px 62px rgba(29,78,216,.3); }
.ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(29,78,216,.4); white-space: nowrap; }
.plan-badge { display: inline-block; align-self: flex-start; background: #eff6ff; color: var(--primary); border: 1px solid #dbeafe; font-size: 12.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px; }
.price-card.featured .plan-badge { background: linear-gradient(135deg, #eff6ff, #fef3c7); border-color: #fde68a; color: #92400e; }
.price-card h3 { font-size: 19px; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -1.5px; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.price-for { color: #334155; font-size: 13.5px; font-weight: 600; margin: 6px 0 0; }
.save-tag { display: inline-block; background: #dcfce7; color: #166534; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 8px 0 8px 30px; position: relative; font-size: 14.7px; border-bottom: 1px dashed var(--line); }
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: "\2713"; position: absolute; left: 0; top: 8px; width: 19px; height: 19px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.plan-fine { text-align: center; color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

/* Multi-business band */
.multi-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.multi-copy h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.8px; }
.multi-copy p { color: var(--muted); font-size: 16.5px; }
.multi-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.multi-list li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; color: #334155; border-bottom: 1px dashed var(--line); }
.multi-list li:last-child { border-bottom: none; }
.multi-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.multi-visual { display: flex; justify-content: center; }
.switch-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(15,23,42,.14); width: 100%; max-width: 360px; overflow: hidden; }
.switch-head { background: linear-gradient(135deg, var(--navy), #1d4ed8); color: #fff; font-weight: 700; padding: 14px 18px; font-size: 15px; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.switch-row.active { background: #eff6ff; }
.switch-row .dot { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #f59e0b, #f97316); flex: 0 0 auto; }
.switch-row .dot.alt { background: linear-gradient(135deg, #16a34a, #4ade80); }
.switch-row .dot.alt2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.switch-row div { flex: 1; display: flex; flex-direction: column; }
.switch-row b { font-size: 14.5px; }
.switch-row small { color: var(--muted); font-size: 12px; }
.switch-row .tick { color: var(--primary); font-weight: 800; }
.switch-shop { padding: 12px 18px; font-size: 12.5px; color: #0369a1; background: #f0f9ff; font-weight: 600; }

/* Comparison table — landing pages never load app.css, so this block
   carries the whole table design (full-width, collapsed borders, card). */
.compare-table { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(15,23,42,.06); }
.compare-table table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th { background: #f8fafc; color: #475569; border-bottom: 2px solid var(--line); }
.compare-table tbody tr { transition: background .12s; }
.compare-table tbody tr:hover { background: #f1f5f9; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .good { background: #f0fdf4; color: #166534; font-weight: 700; }
.compare-table .bad { color: #9a3412; }
.compare-table thead .good { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; border-bottom-color: transparent; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; margin: 0; box-shadow: 0 2px 10px rgba(15,23,42,.05); display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0 0 18px; font-size: 15.5px; color: #334155; line-height: 1.65; }
.quote-card figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.quote-card figcaption b { font-size: 14.5px; }
.quote-card figcaption span { color: var(--muted); font-size: 12.5px; }

/* Guarantee lines */
.price-guarantee { text-align: center; color: var(--muted); font-size: 14px; margin: 26px 0 0; }
.cta-guarantee { color: #cbd5e1; font-size: 13.5px; margin: 18px 0 0; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details summary { font-weight: 700; cursor: pointer; font-size: 16px; }
details p { color: var(--muted); margin: 12px 0 4px; }

/* CTA band */
.cta-band { background: radial-gradient(700px 300px at 20% 0%, rgba(245,158,11,.28), transparent 60%), linear-gradient(135deg, #0b1f3a, #1d4ed8); color: #fff; text-align: center; padding: 66px 0; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 640px; margin: 0 auto 26px; font-size: 17px; }

/* Footer — richer, with a gradient crown, trust chips and app badges */
.site-foot { background: var(--foot-bg, #0b1220); color: var(--foot-text, #94a3b8); padding: 52px 0 22px; font-size: 14.5px; position: relative; }
.site-foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #f59e0b, #1d4ed8, #16a34a); opacity: .9; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.foot-grid .logo { display: flex; align-items: center; color: var(--foot-head, #fff); margin-bottom: 10px; }
.foot-grid h5 { color: var(--foot-head, #fff); font-size: 14px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--foot-link, #94a3b8); padding: 4px 0; transition: color .15s, transform .15s; }
.foot-grid a:not(.logo):not(.foot-app):hover { color: var(--foot-head, #fff); transform: translateX(4px); }
.foot-brand p { max-width: 340px; line-height: 1.65; margin: 0; }
.foot-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 14px; }
.foot-chips span { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #cbd5e1; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.foot-apps { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
a.foot-app, .foot-app { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 8px 14px; color: #e2e8f0; font-weight: 600; font-size: 13.5px; width: fit-content; transition: background .18s, transform .18s, color .18s; }
a.foot-app:hover { background: rgba(255,255,255,.13); color: #fff; transform: translateY(-2px); }
.foot-app-note { cursor: default; }
.foot-bottom { border-top: 1px solid var(--foot-line, rgba(255,255,255,.1)); margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot-made { color: #fbbf24; font-weight: 600; }

/* Cards — hover lift on every inner card */
.feature-card, .step, .quote-card, .switch-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover, .step:hover, .quote-card:hover, .switch-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(15,23,42,.13); border-color: #cbd5e1; }

/* Load + scroll animations (elements are only hidden once landing.js has
   marked them, so a no-JS visitor always sees the full page) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: fadeUp .7s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .4s; }
.mock-card { animation: popIn .8s ease both .2s; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .feature-grid, .steps, .price-grid, .foot-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .multi-grid { grid-template-columns: 1fr; }
  .multi-visual { order: -1; }
  .price-card.featured, .price-card.featured:hover { transform: none; }
  .head-nav { display: none; }
}
@media (max-width: 640px) {
  .feature-grid, .steps, .price-grid, .foot-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 60px; }
  .section { padding: 52px 0; }
  .compare-table { overflow-x: auto; }
  .compare-table table { min-width: 560px; }
  /* Header fits one row on phones: logo + primary CTA only (sign-in stays
     in the hero, footer and auth pages) — otherwise labels wrap to 3 lines. */
  .head-inner { gap: 14px; }
  .head-cta { gap: 8px; }
  .head-cta .btn-ghost { display: none; }
  .head-cta .btn { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
  .logo { font-size: 16.5px; }
}
