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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

:root {
  --primary-color: #4F46E5;
  --secondary-color: #10B981;
  --dark-color: #1F2937;
  --light-color: #F3F4F6;
  --text-color: #374151;
}

.navbar {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar .nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-links a:hover {
  color: var(--primary-color);
}

/* Special styling for navbar buttons */
.navbar .btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.navbar .btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #4338CA;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* ---- Hero: two-column layout ---- */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%);
  color: white;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left column */
.hero-copy { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  color: #c4b5fd;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.hero-copy > p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.5rem;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.hero-bullets span {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-bullets .fa-check-circle { color: #34d399; }

.hero .cta-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.9rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
  transition: all 0.25s;
  display: inline-block;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.5);
  color: white;
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  color: white;
}

.hero-fine-print {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Right column: product mockup */
.hero-mockup {
  position: relative;
  z-index: 1;
  perspective: 1000px;
}

.mockup-window {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-mockup:hover .mockup-window {
  transform: rotateY(0deg) rotateX(0deg);
}

.mockup-titlebar {
  background: #e5e7eb;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.red    { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green  { background: #10b981; }

.mockup-url {
  margin-left: 0.75rem;
  font-size: 0.7rem;
  color: #9ca3af;
  background: white;
  border-radius: 0.25rem;
  padding: 0.18rem 0.6rem;
  flex: 1;
}

.mockup-body {
  display: flex;
  height: 340px;
}

/* Mockup sidebar */
.mock-sidebar {
  width: 130px;
  background: #1e1b4b;
  padding: 0.75rem 0;
  flex-shrink: 0;
}

.mock-logo {
  color: #c4b5fd;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0.4rem;
}

.mock-nav-item {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: default;
}
.mock-nav-item.active {
  color: white;
  background: rgba(255,255,255,0.1);
  border-left: 2px solid #818cf8;
}

/* Mockup main area */
.mock-main {
  flex: 1;
  background: #f8fafc;
  padding: 0.85rem;
  overflow: hidden;
}

.mock-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.mock-stat {
  background: white;
  border-radius: 0.4rem;
  padding: 0.5rem 0.6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.mock-stat-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e1b4b;
}

.mock-stat-label {
  font-size: 0.55rem;
  color: #9ca3af;
  margin-top: 1px;
}

.mock-stat.blue  .mock-stat-num { color: #4f46e5; }
.mock-stat.green .mock-stat-num { color: #10b981; }
.mock-stat.orange .mock-stat-num { color: #f59e0b; }

.mock-table-header {
  font-size: 0.6rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.mock-row {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 0.3rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.35rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  gap: 0.5rem;
}

.mock-client {
  font-size: 0.62rem;
  color: #374151;
  font-weight: 500;
  flex: 1;
}

.mock-amount {
  font-size: 0.62rem;
  color: #374151;
  font-weight: 600;
}

.mock-badge {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mock-badge.paid    { background: #d1fae5; color: #065f46; }
.mock-badge.sent    { background: #dbeafe; color: #1e40af; }
.mock-badge.overdue { background: #fee2e2; color: #991b1b; }

/* Trust bar */
.trust-bar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.85rem 2rem;
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.trust-item {
  font-size: 0.82rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.trust-item i { color: #4f46e5; }

.trust-divider {
  color: #d1d5db;
  font-size: 1rem;
}

/* Responsive hero */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-bullets { align-items: center; }
  .hero .cta-buttons { justify-content: center; }
  .hero-mockup { display: none; }
  .hero { padding: 4rem 1.5rem 3rem; }
}

@media (max-width: 768px) {
  .trust-divider { display: none; }
  .trust-bar-inner { justify-content: flex-start; gap: 0.6rem; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 6rem 2rem;
  background: #f8fafc;
}

.founder-note {
  max-width: 760px;
  margin: 0 auto 0.75rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #374151;
  font-style: italic;
}

.founder-attribution {
  color: #6d28d9;
  font-weight: 700;
}

.testimonials-grid-two {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .testimonials-grid-two {
    grid-template-columns: 1fr !important;
  }
}

footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

footer .footer-links a {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
}

footer .footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-page h1 {
  font-size: 2.2rem;
  color: #1e1b4b;
  margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
  color: #6b7280;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  color: #1e1b4b;
  margin: 2rem 0 0.75rem;
}

.legal-page p, .legal-page li {
  color: #374151;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.demo-video-section {
  padding: 6rem 2rem;
  background: #fff;
  text-align: center;
}

.demo-video-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.demo-video-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.demo-video-section .section-sub {
  margin-bottom: 2.5rem;
}

.demo-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(30, 27, 75, 0.18);
}

.demo-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.how-it-works .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 0.85rem;
}

.how-it-works h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.section-sub {
  color: #6b7280;
  font-size: 1.05rem;
  margin-bottom: 4rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.step.reverse { direction: rtl; }
.step.reverse > * { direction: ltr; }

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ede9fe;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Segoe UI', sans-serif;
}

.step-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.step-content p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.step-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #374151;
}

.step-bullets .fa-check {
  color: #10b981;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Mini window chrome */
.mini-window {
  background: white;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}

.mini-titlebar {
  background: #f3f4f6;
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.mini-body {
  padding: 1.25rem;
}

/* Step 1: invoice form mock */
.form-mock-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.form-mock-logo-box {
  width: 36px; height: 36px;
  background: #ede9fe;
  border-radius: 0.35rem;
  display: flex; align-items: center; justify-content: center;
  color: #6d28d9; font-size: 1rem;
}

.form-mock-label {
  font-size: 0.6rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.form-mock-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f2937;
}

.form-mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-mock-field {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.3rem;
  padding: 0.4rem 0.6rem;
}

.form-mock-items-header {
  display: grid;
  grid-template-columns: 2fr 0.5fr 1fr 1fr;
  gap: 0.5rem;
  background: #1e1b4b;
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 0.25rem 0.25rem 0 0;
  margin-bottom: 0;
}

.form-mock-item {
  display: grid;
  grid-template-columns: 2fr 0.5fr 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: #374151;
  padding: 0.3rem 0.5rem;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.form-mock-totals {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.form-mock-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #6b7280;
  padding: 0.15rem 0.5rem;
}

.form-mock-total-row.grand {
  font-weight: 700;
  color: #1e1b4b;
  font-size: 0.75rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.35rem;
  margin-top: 0.2rem;
}

/* Step 2: email mock */
.email-mock-header {
  background: #f9fafb;
  border-radius: 0.35rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e5e7eb;
}

.email-mock-from,
.email-mock-to,
.email-mock-subject {
  font-size: 0.65rem;
  color: #374151;
  padding: 0.15rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.email-mock-subject { border-bottom: none; }

.email-mock-body {
  padding: 0 0.25rem;
}

.email-mock-logo {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 0.6rem;
}

.email-mock-greeting {
  font-size: 0.7rem;
  color: #374151;
  margin-bottom: 0.35rem;
}

.email-mock-text {
  font-size: 0.67rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.email-mock-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 0.3rem;
  text-align: center;
  margin-bottom: 0.6rem;
}

.email-mock-attach {
  font-size: 0.62rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Step 3: paid confirmation mock */
.paid-mock-banner {
  background: #d1fae5;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.paid-mock-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.paid-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.65rem;
}

.paid-mock-row:last-child { border-bottom: none; }

.paid-mock-label { color: #9ca3af; }
.paid-mock-val   { color: #1f2937; font-weight: 600; }
.paid-mock-val.green { color: #10b981; }

.paid-mock-badge {
  background: #d1fae5;
  color: #065f46;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.2rem;
}

.paid-mock-dashboard-hint {
  font-size: 0.62rem;
  color: #9ca3af;
  text-align: center;
}

/* Responsive how-it-works */
@media (max-width: 900px) {
  .step, .step.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  .step-visual { order: -1; }
  .how-it-works h2 { font-size: 1.8rem; }
}


/* ============================================================
   INVOICE PREVIEW SECTION
   ============================================================ */
.invoice-preview-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: white;
}

.invoice-preview-section .container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.invoice-preview-text .section-label {
  background: rgba(255,255,255,0.15);
  color: #c4b5fd;
}

.invoice-preview-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.invoice-preview-text > p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.invoice-preview-text .step-bullets li { color: rgba(255,255,255,0.85); }

/* The invoice document */
.invoice-preview-doc {
  perspective: 1000px;
}

.invoice-doc {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  transform: rotateY(4deg) rotateX(-2deg);
  transition: transform 0.4s ease;
  color: #1f2937;
}

.invoice-preview-doc:hover .invoice-doc {
  transform: rotateY(0deg) rotateX(0deg);
}

.invoice-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #f0f0f0;
}

.invoice-doc-company {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.invoice-doc-logo {
  width: 40px; height: 40px;
  background: #ede9fe;
  border-radius: 0.4rem;
  display: flex; align-items: center; justify-content: center;
  color: #6d28d9;
  font-size: 1.1rem;
}

.invoice-doc-company-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
}

.invoice-doc-company-detail {
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.6;
}

.invoice-doc-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #4f46e5;
  letter-spacing: 0.1em;
  text-align: right;
}

.invoice-doc-num {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
  margin-bottom: 0.4rem;
}

.invoice-doc-dates {
  font-size: 0.7rem;
  color: #9ca3af;
  text-align: right;
  line-height: 1.8;
}

.invoice-doc-dates span { color: #6b7280; font-weight: 600; }

.invoice-doc-bill {
  background: #f9fafb;
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.invoice-doc-bill-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.invoice-doc-bill-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
}

.invoice-doc-bill-detail {
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.6;
}

.invoice-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.invoice-doc-table th {
  background: #1e1b4b;
  color: white;
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.invoice-doc-table th:last-child,
.invoice-doc-table td:last-child { text-align: right; }

.invoice-doc-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.invoice-doc-totals {
  margin-left: auto;
  width: 55%;
  margin-bottom: 1rem;
}

.invoice-doc-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #6b7280;
  padding: 0.2rem 0;
}

.invoice-doc-grand {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e1b4b;
  border-top: 2px solid #e5e7eb;
  padding-top: 0.4rem;
  margin-top: 0.25rem;
}

.invoice-doc-pay-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 0.4rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.invoice-doc-footer {
  text-align: center;
  font-size: 0.68rem;
  color: #d1d5db;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}

@media (max-width: 900px) {
  .invoice-preview-section .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .invoice-preview-text h2 { font-size: 1.8rem; }
  .invoice-doc { transform: none; }
}


/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  padding: 5rem 2rem;
  background: white;
}

.features .container {
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--light-color);
  border-radius: 1rem;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.feature-card p {
  color: var(--text-color);
}

.cta-section {
  background: var(--dark-color);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 2rem;
  background: var(--bg-secondary);
}

.pricing-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.plan-header h3 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.price {
  margin-bottom: 1rem;
}

.price .currency {
  font-size: 1.5rem;
  color: var(--text-secondary);
  vertical-align: super;
}

.price .amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price .period {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.plan-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features li {
  padding: 0.75rem 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-features li i {
  color: var(--success);
  font-size: 1.1rem;
  width: 20px;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  display: block;
  text-align: center;
  transition: all 0.3s;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.pricing-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.pricing-footer p {
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pricing-footer i {
  color: var(--success);
  font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 2rem;
  background: white;
}

.testimonials-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.stars i {
  color: #f59e0b;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar i {
  font-size: 1.5rem;
  color: var(--primary);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

footer {
  background: var(--dark-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

footer p {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .navbar .nav-links {
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .features h2 {
    font-size: 2rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
