/* Invoice Pulse — site-wide styles (Receipto-inspired layout, billing palette) */

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

:root {
  --pulse: #0b172a;
  --pulse-deep: #070f1c;
  --pulse-bright: #3b82f6;
  --pulse-glow: #60a5fa;
  --pulse-light: #e8f0fe;
  --ink: #0a0f0d;
  --fog: #f4f6fb;
  --muted: #64748b;
  --white: #ffffff;
  --rule: rgba(0, 0, 0, 0.06);
  --highlight: #eef4ff;
}

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", sans-serif;
  background: var(--fog);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--pulse-bright); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--pulse); }

/* ----- NAV (fixed, glass) ----- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(244, 246, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 23, 42, 0.12);
}

.site-nav .logo {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.site-nav .logo span { color: var(--pulse); }

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav .nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav .nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--pulse);
  transform: translateY(-1px);
  color: var(--white);
  text-decoration: none;
}

/* ----- HERO ----- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: 7.5rem 8% 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(11, 23, 42, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pulse-light);
  color: var(--pulse);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pulse);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--pulse-bright);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-cta-group {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(11, 23, 42, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(11, 23, 42, 0.35);
  background: var(--pulse);
  text-decoration: none;
  color: var(--white);
}

.btn-play svg { flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.35rem;
  border-radius: 100px;
  border: 2px solid rgba(11, 23, 42, 0.15);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--white);
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--pulse-bright);
  background: var(--highlight);
  text-decoration: none;
  color: var(--pulse);
}

/* Invoice mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s 0.2s ease both;
}

.invoice-demo {
  width: 380px;
  flex-shrink: 0;
}

.invoice-window {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.invoice-topbar {
  background: linear-gradient(135deg, var(--pulse) 0%, #152a45 100%);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invoice-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.invoice-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.invoice-brand-text .name {
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.invoice-brand-text .sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.invoice-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
  padding: 0.35rem 0.65rem;
  border-radius: 100px;
}

.invoice-body {
  padding: 1.25rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 40%);
}

.invoice-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
}

.invoice-table {
  width: 100%;
  font-size: 0.78rem;
  border-collapse: collapse;
}

.invoice-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 0.4rem 0;
}

.invoice-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

.invoice-table .amt { text-align: right; font-variant-numeric: tabular-nums; }

.invoice-totals {
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-size: 0.8rem;
}

.invoice-totals .row {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0;
  color: var(--muted);
}

.invoice-totals .row.grand {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.invoice-footer-bar {
  background: #f1f5f9;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ----- STATS ----- */
.stats-band {
  background: var(--pulse);
  color: #fff;
  padding: 3.5rem 5%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.stat { text-align: center; }

.stat-num {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 0.4rem;
  font-weight: 300;
}

/* ----- SECTIONS ----- */
.section {
  padding: 6rem 5%;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pulse-bright);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: normal;
  color: var(--pulse-bright);
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--rule);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.step::before {
  content: attr(data-n);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: rgba(59, 130, 246, 0.08);
  line-height: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--pulse-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.step h3 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
  text-align: left;
}

/* Query pills */
.queries-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.query-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.pill {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: default;
  transition: all 0.2s;
}

.pill::before { content: "\201C"; color: var(--pulse-bright); }
.pill::after { content: "\201D"; color: var(--pulse-bright); }

.pill:hover {
  border-color: var(--pulse-bright);
  background: var(--highlight);
  color: var(--ink);
}

/* Features dark */
.features-section {
  background: var(--ink);
  color: #fff;
}

.features-section .section-label { color: var(--pulse-glow); }

.features-section .section-title { color: #fff; }

.features-section .section-title em { color: var(--pulse-glow); }

.features-section .section-sub { color: rgba(255, 255, 255, 0.5); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: background 0.25s, border-color 0.25s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.35);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 300;
  text-align: left;
}

.feature-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pulse-glow);
  background: rgba(59, 130, 246, 0.15);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Testimonials */
.social-strip {
  background: var(--white);
  padding: 6rem 5%;
}

.social-strip .section-title {
  margin: 0 auto 0.75rem;
  text-align: center;
}

.social-strip .section-sub {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.tcard {
  background: var(--fog);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  transition: transform 0.25s;
}

.tcard:hover { transform: translateY(-3px); }

.tcard p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.tcard-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tcard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.tcard-name { font-weight: 600; font-size: 0.9rem; }

.tcard-role { font-size: 0.8rem; color: var(--muted); }

.stars {
  color: var(--pulse-bright);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

/* Final CTA */
.final-cta {
  padding: 7rem 5%;
  text-align: center;
  background: var(--pulse-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta .section-label {
  color: var(--pulse-glow);
  position: relative;
}

.final-cta .section-title {
  color: #fff;
  margin: 0 auto 1.5rem;
  position: relative;
}

.final-cta .section-title em { color: var(--pulse-glow); }

.final-cta .section-sub {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 auto 2rem;
  position: relative;
}

.final-cta .cta-wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.final-cta .btn-play {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.final-cta .btn-play:hover {
  background: var(--pulse-light);
  color: var(--pulse);
}

.final-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.final-cta .btn-ghost:hover {
  border-color: var(--pulse-glow);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.final-cta .cta-trust {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  position: relative;
}

.final-cta .cta-trust a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.final-cta .cta-trust a:hover {
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 5% 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.footer-logo span { color: var(--pulse-glow); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

/* Legal inner pages */
.page-wrap {
  padding-top: 5.5rem;
  min-height: 100vh;
}

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(11, 23, 42, 0.08);
  padding: 2.5rem 2.25rem;
}

.legal-card h1 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.legal-card .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal-card h2 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.legal-card p,
.legal-card li {
  color: var(--ink);
  font-size: 0.98rem;
}

.legal-card ul,
.legal-card ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-card li { margin: 0.4rem 0; }

.legal-card .callout {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.legal-card .callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.legal-card code,
.legal-card .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--fog);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.legal-footer-note {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-footer-note a { font-weight: 500; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-sub { margin: 1.5rem auto 0; }

  .hero-cta-group { align-items: center; }

  .cta-row { justify-content: center; }

  .hero-visual { order: -1; }

  .invoice-demo {
    width: 320px;
    margin: 0 auto;
  }

  .features-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .site-nav { padding: 1rem 4%; }

  .site-nav .logo { font-size: 1.25rem; }

  .nav-cta { padding: 0.5rem 1rem; font-size: 0.8rem; }

  .hero { padding: 6rem 4% 3rem; min-height: auto; }

  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: -0.5px; }

  .section { padding: 3.5rem 4%; }

  .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }

  .steps { grid-template-columns: 1fr; gap: 1rem; }

  .step { padding: 1.5rem; }

  .step::before { font-size: 3.5rem; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-num { font-size: 2.5rem; }

  .features-grid { gap: 1rem; }

  .feature-card { padding: 1.5rem; }

  .final-cta { padding: 4rem 4%; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .invoice-demo {
    width: 100%;
    max-width: 340px;
  }

  .legal-card { padding: 1.75rem 1.25rem; }
}
