/* ==========================================================================
   Billing POS — Landing Page Styles
   Palette derived from the app logo (blue receipt + green checkmark).
   ========================================================================== */

:root {
  --blue-50: #eef4ff;
  --blue-100: #dce8ff;
  --blue-500: #2f6fed;
  --blue-600: #2457c4;
  --blue-700: #1b429a;
  --green-500: #1fae6b;
  --green-600: #178a56;
  --ink-900: #0f1720;
  --ink-800: #1b2534;
  --ink-600: #47566b;
  --ink-400: #7a8aa0;
  --line: #e4e9f2;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --bg: #ffffff;
  --shadow: 0 12px 32px -12px rgba(21, 40, 82, 0.16);
  --shadow-sm: 0 4px 14px -6px rgba(21, 40, 82, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --max-w: 1180px;
}

:root[data-theme="dark"] {
  --ink-900: #f3f6fb;
  --ink-800: #dde4ef;
  --ink-600: #aab6c7;
  --ink-400: #7c8aa0;
  --line: #263041;
  --surface: #131b28;
  --surface-alt: #0f1621;
  --bg: #0b1119;
  --blue-50: #14203a;
  --blue-100: #182848;
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink-900: #f3f6fb;
    --ink-800: #dde4ef;
    --ink-600: #aab6c7;
    --ink-400: #7c8aa0;
    --line: #263041;
    --surface: #131b28;
    --surface-alt: #0f1621;
    --bg: #0b1119;
    --blue-50: #14203a;
    --blue-100: #182848;
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { padding: 88px 0; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 7px 14px;
  border-radius: 999px;
}
:root[data-theme="dark"] .eyebrow,
@media (prefers-color-scheme: dark) { .eyebrow { color: #8fb2ff; } }

h1, h2, h3, h4 { color: var(--ink-900); margin: 0 0 14px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { color: var(--ink-600); margin: 0 0 16px; }
.lede { font-size: 18px; max-width: 620px; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin: 14px auto 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 10px 24px -8px rgba(47, 111, 237, 0.55); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--ink-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink-900); white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 14.5px; color: var(--ink-600); }
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink-800); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; width: 18px; height: 2px; background: var(--ink-800); }
.nav-toggle span::after { position: absolute; top: 6px; width: 18px; height: 2px; background: var(--ink-800); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--ink-700, var(--ink-800));
}
.theme-toggle svg { width: 18px; height: 18px; }

/* ---------------- Hero ---------------- */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(720px 420px at 85% -10%, var(--blue-50), transparent 65%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink-700, var(--ink-800));
  background: var(--surface-alt); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 999px;
}
.pill svg { width: 14px; height: 14px; color: var(--green-500); flex-shrink: 0; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--ink-400); margin-top: 14px; }

/* Hero mock window */
.mockshot { position: relative; }
.mock-window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-alt);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }
.mock-titlebar span { margin-left: 10px; font-size: 12px; color: var(--ink-400); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; padding: 16px; background: var(--surface); min-height: 320px; }
.mock-catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.mock-search { grid-column: 1 / -1; height: 30px; border-radius: 8px; background: var(--surface-alt); border: 1px solid var(--line); margin-bottom: 2px; }
.mock-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--surface); }
.mock-card .thumb { height: 46px; border-radius: 7px; margin-bottom: 8px; }
.mock-card .ln { height: 7px; border-radius: 4px; background: var(--surface-alt); margin-bottom: 5px; }
.mock-card .ln.w60 { width: 60%; }
.mock-card .ln.price { background: var(--blue-100); width: 45%; }
.mock-cart { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-alt); }
.mock-cart-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.mock-cart-row .dot { width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0; }
.mock-cart-row .lines { flex: 1; }
.mock-cart-row .lines .ln { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 5px; }
.mock-cart-row .lines .ln.w70 { width: 70%; }
.mock-cart-row .lines .ln.w40 { width: 40%; background: var(--blue-100); }
.mock-total { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 10px; }
.mock-total .row { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-400); margin-bottom: 5px; }
.mock-total .row.grand { font-weight: 800; color: var(--ink-900); font-size: 13px; }
.mock-btn { margin-top: 8px; height: 30px; border-radius: 8px; background: var(--blue-500); }
.grad-a { background: linear-gradient(135deg, #ffd76e, #ff9f4a); }
.grad-b { background: linear-gradient(135deg, #7fd6ff, #4a9eff); }
.grad-c { background: linear-gradient(135deg, #b3f2c8, #4ad991); }
.grad-d { background: linear-gradient(135deg, #ffb3c7, #ff6f9c); }
.mock-float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 700;
}
.mock-float svg { width: 18px; height: 18px; }
.mock-float.f1 { top: -18px; left: -18px; color: var(--green-600); }
.mock-float.f1 svg { color: var(--green-500); }
.mock-float.f2 { bottom: -16px; right: -14px; color: var(--blue-600); }
.mock-float.f2 svg { color: var(--blue-500); }
@media (max-width: 720px) {
  .mock-float { position: static; margin-top: 12px; width: fit-content; }
}

/* ---------------- Trust bar ---------------- */
.trustbar { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.trust-grid { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink-800); }
.trust-item svg { width: 20px; height: 20px; color: var(--blue-500); flex-shrink: 0; }

/* ---------------- Problem / Solution ---------------- */
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); }
.compare-card.old { background: var(--surface-alt); }
.compare-card.new { background: linear-gradient(180deg, var(--blue-50), var(--surface)); border-color: var(--blue-100); }
.compare-card h3 { display: flex; align-items: center; gap: 10px; }
.compare-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.compare-card li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-700, var(--ink-800)); align-items: flex-start; }
.compare-card li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.compare-card.old li svg { color: #e5484d; }
.compare-card.new li svg { color: var(--green-500); }

/* ---------------- Features ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--blue-600); }
.feature-card h3 { margin-bottom: 8px; font-size: 17px; }
.feature-card p { font-size: 14.5px; margin: 0; }

/* ---------------- How it works ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.step-num {
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; font-size: 15px;
}
.step h3 { font-size: 16.5px; }
.step p { font-size: 14px; margin: 0; }
.step-arrow { position: absolute; top: 34px; right: -30px; color: var(--line); width: 22px; height: 22px; }
@media (max-width: 900px) { .step-arrow { display: none; } }

/* ---------------- Comparison table ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare-table th { background: var(--surface-alt); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); font-weight: 800; }
.compare-table th.highlight { color: var(--blue-600); }
.compare-table td.highlight-col { background: var(--blue-50); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--ink-800); font-weight: 600; }
.ok { color: var(--green-500); }
.no { color: var(--ink-400); }
.icell { display: flex; align-items: center; gap: 8px; }
.icell svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ---------------- Showcase (tabs) ---------------- */
.showcase-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.tab-btn {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-600);
}
.tab-btn.active { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tab-copy h3 { font-size: 22px; }
.tab-copy ul { padding-left: 20px; margin: 18px 0 0; color: var(--ink-600); }
.tab-copy li { margin-bottom: 8px; }

.dash-mock { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: 18px; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dash-stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-alt); }
.dash-stat .lbl { font-size: 11px; color: var(--ink-400); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.dash-stat .val { font-size: 20px; font-weight: 800; color: var(--ink-900); }
.dash-chart { height: 90px; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); position: relative; overflow: hidden; }
.dash-chart svg { width: 100%; height: 100%; }

.report-mock { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: 18px; }
.report-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.report-row:last-child { border-bottom: none; }
.report-row .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-alt); overflow: hidden; }
.report-row .bar > span { display: block; height: 100%; background: var(--blue-500); border-radius: 4px; }
.report-row .amt { width: 74px; text-align: right; font-weight: 700; color: var(--ink-800); }

@media (max-width: 860px) {
  .tab-panel.active { grid-template-columns: 1fr; }
}

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 15.5px; color: var(--ink-900);
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; color: var(--ink-400); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 20px 18px; font-size: 14.5px; color: var(--ink-600); }
.faq-item.open .faq-a { max-height: 260px; }

/* ---------------- Final CTA ---------------- */
.cta-banner {
  border-radius: 28px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500) 60%, var(--green-600));
  color: #fff;
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,0.2); }
.cta-banner .btn-primary { background: #fff; color: var(--blue-700); box-shadow: none; }
.cta-banner .btn-primary:hover { background: #f2f6ff; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-700, var(--ink-800)); }
.contact-list svg { width: 20px; height: 20px; color: var(--blue-500); flex-shrink: 0; margin-top: 2px; }
.contact-list b { color: var(--ink-900); }
.contact-list a { color: var(--blue-600); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
form.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); padding: 26px; border-radius: var(--radius-lg); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-alt); color: var(--ink-900); font-family: inherit; font-size: 14.5px;
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form label { font-size: 13px; font-weight: 700; color: var(--ink-600); margin-bottom: -6px; }

/* ---------------- Footer ---------------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--surface-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--ink-600); margin-bottom: 10px; }
.footer-col a:hover { color: var(--blue-600); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-400); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mockshot { order: -1; }
  .compare-cols { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .brand { font-size: 16px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.nav-links.mobile-open {
  display: flex; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 16px 24px; gap: 16px;
}
.mobile-cta-extra { display: none; }
@media (max-width: 720px) {
  .mobile-cta-extra { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
