/* ============================================================
   OnlineInvoicesMaker.com — Home Page Styles
   ============================================================ */

/* ============================================================
   HERO ENHANCEMENTS
   ============================================================ */
.hero-trust {
  margin-top: 24px;
  margin-bottom: 0;
}
.hero-trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-trust-items span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Preview Window */
.hero-preview {
  margin-top: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.hero-preview-chrome {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-chrome-dots {
  display: flex;
  gap: 6px;
}
.hero-chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero-chrome-url {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
}
.hero-preview-content {
  padding: 20px;
  background: var(--bg-secondary);
  position: relative;
}

/* Mini Invoice in Hero */
.hero-mini-invoice {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hmi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  background: #6366f1;
}
.hmi-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hmi-logo {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
}
.hmi-company {
  font-size: 11px;
  font-weight: 700;
  color: white;
}
.hmi-gstin {
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.hmi-title-block { text-align: right; }
.hmi-title { font-size: 13px; font-weight: 800; color: white; letter-spacing: 0.05em; }
.hmi-number { font-size: 9px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.hmi-body { padding: 14px 20px; }
.hmi-parties {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.hmi-party { flex: 1; }
.hmi-party-label { font-size: 8px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; }
.hmi-party-name { font-size: 11px; font-weight: 700; color: #111827; margin-top: 2px; }
.hmi-party-gstin { font-size: 9px; color: #6b7280; }
.hmi-meta { flex-shrink: 0; }
.hmi-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 3px;
}
.hmi-meta-row span { font-size: 9px; color: #9ca3af; }
.hmi-meta-row strong { font-size: 9px; color: #374151; }
.hmi-table { margin-bottom: 10px; border: 1px solid #f3f4f6; border-radius: 6px; overflow: hidden; }
.hmi-th {
  display: grid;
  grid-template-columns: 2fr 0.6fr 0.8fr 0.6fr 0.8fr;
  background: #f8fafc;
  padding: 6px 10px;
  gap: 4px;
}
.hmi-th span { font-size: 8px; font-weight: 700; color: #9ca3af; text-transform: uppercase; }
.hmi-tr {
  display: grid;
  grid-template-columns: 2fr 0.6fr 0.8fr 0.6fr 0.8fr;
  padding: 7px 10px;
  gap: 4px;
  border-top: 1px solid #f3f4f6;
}
.hmi-tr span { font-size: 9px; color: #374151; }
.hmi-totals { margin-left: auto; max-width: 180px; }
.hmi-total-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 9px;
  color: #6b7280;
}
.hmi-total-row.grand {
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  padding-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #6366f1;
}

/* Floating Badges */
.hero-badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-modal);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero-badge-1 { top: 16px; right: 20px; animation: float 4s ease-in-out infinite; }
.hero-badge-2 { bottom: 60px; left: 10px; animation: float 4s ease-in-out 1s infinite; }
.hero-badge-3 { bottom: 20px; right: 40px; animation: float 4s ease-in-out 2s infinite; }
.gst-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-success);
  border-radius: 50%;
  animation: pulse-brand 2s infinite;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: var(--bg-secondary); }
.how-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.how-step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  position: relative;
}
.how-step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--brand-primary-ultra-light);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
[data-theme="dark"] .how-step-number { color: rgba(99,102,241,0.15); }
.how-step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  height: 100%;
  transition: all var(--transition-base);
}
.how-step-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.how-step-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-brand);
}
.how-step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.how-step-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}
.how-step-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--text-subtle);
  font-size: 18px;
  flex-shrink: 0;
  padding-top: 80px;
}

/* ============================================================
   TEMPLATE SHOWCASE
   ============================================================ */
.template-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.template-showcase-item {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}
.template-showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.template-showcase-item.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1), var(--shadow-md);
}
.tpl-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  z-index: 1;
  letter-spacing: 0.04em;
}
.tpl-preview-frame {
  height: 160px;
  background: white;
  overflow: hidden;
  position: relative;
}
.tpl-frame-modern {
  background: white;
}
.tpl-mini-band {
  height: 48px;
  background: #6366f1;
}
.tpl-mini-body {
  padding: 12px;
}
.tpl-mini-row {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 100%;
}
.tpl-mini-row.header { width: 70%; height: 12px; background: #d1d5db; }
.tpl-mini-row.short { width: 50%; }
.tpl-mini-table { margin: 8px 0; border: 1px solid #f3f4f6; border-radius: 4px; overflow: hidden; }
.tpl-mini-tr { height: 16px; display: flex; align-items: center; padding: 0 6px; gap: 6px; border-bottom: 1px solid #f9fafb; }
.tpl-mini-tr:last-child { border-bottom: none; }
.tpl-mini-tr::before { content: ''; flex: 2; height: 4px; background: #e5e7eb; border-radius: 2px; }
.tpl-mini-tr::after { content: ''; flex: 1; height: 4px; background: #e5e7eb; border-radius: 2px; }
.tpl-mini-total { height: 8px; background: #d1d5db; border-radius: 4px; width: 40%; margin-left: auto; }
.tpl-card-name {
  padding: 10px 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px solid var(--border-card);
  background: var(--bg-card);
  text-align: center;
}

/* ============================================================
   GST FEATURES VISUAL
   ============================================================ */
.gst-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.gst-feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}
.gst-feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.gst-feature-card.reverse { }
.gst-feature-info h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.gst-feature-info p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
}
.gst-feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.gst-feature-tags span {
  padding: 4px 12px;
  background: var(--brand-primary-ultra-light);
  color: var(--brand-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* GST Tax Breakdown Visual */
.gst-tax-breakdown {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  font-size: var(--text-sm);
}
.gtb-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
.gtb-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.gtb-row:last-child { border-bottom: none; }
.gtb-row.total { color: var(--text-secondary); font-weight: 600; }
.gtb-row.grand {
  color: var(--brand-primary);
  font-size: var(--text-base);
  font-weight: 800;
  border-top: 2px solid var(--brand-primary);
  margin-top: 4px;
  padding-top: 10px;
}

/* HSN Demo Visual */
.gst-hsn-demo {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.ghd-row {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-card);
  gap: 12px;
  transition: background var(--transition-fast);
}
.ghd-row:last-child { border-bottom: none; }
.ghd-row:hover { background: var(--bg-primary); }
.ghd-code {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  background: var(--brand-primary-ultra-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.ghd-desc { font-size: var(--text-sm); color: var(--text-secondary); }
.ghd-rate {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-success);
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-align: center;
}
[data-theme="dark"] .ghd-rate { background: #064e3b; color: #6ee7b7; }

/* ============================================================
   USE CASE CARDS
   ============================================================ */
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.usecase-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}
.usecase-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.usecase-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.usecase-link {
  margin-top: 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}
.usecase-link:hover { gap: 8px; color: var(--brand-primary-dark); }

/* ============================================================
   PRICING GRID (home)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.pricing-plan-name {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.pricing-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 80px 0; }
.cta-box {
  background: var(--gradient-brand);
  border-radius: var(--radius-3xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0,0,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}
.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.cta-trust span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-card);
  padding: 60px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-card);
}
.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--brand-primary); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-left { font-size: var(--text-sm); color: var(--text-muted); }
.footer-bottom-right { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-subtle);
}
.footer-trust-badge i { color: var(--brand-success); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-container { max-width: 700px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .gst-feature-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .how-step-arrow { display: none; }
  .how-steps { gap: 16px; }
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .pricing-card:last-child { grid-column: auto; max-width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .hero-preview { display: none; } /* Hide on small mobile for performance */
  .hero-badge-float { display: none; }
  .cta-box { padding: 40px 24px; border-radius: var(--radius-2xl); }
  .template-showcase { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .template-showcase { grid-template-columns: repeat(2, 1fr); }
  .hero-trust-items { gap: 12px; }
  .hero-trust-items span { font-size: var(--text-xs); }
  .how-steps { flex-direction: column; align-items: stretch; }
  .how-step { max-width: 100%; }
}
