/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #eef1ff;
  --secondary: #1a1a2e;
  --accent: #f72585;
  --gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --text: #333;
  --text-light: #6c757d;
  --text-white: #fff;
  --bg: #f8f9fa;
  --white: #fff;
  --border: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--secondary);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.4);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67,97,238,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(247,37,133,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(67,97,238,0.15);
  color: #a8b8ff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(67,97,238,0.2);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, #4cc9f0, #4361ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: #b0b8d1;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-mockup {
  width: 300px;
  height: 580px;
  background: linear-gradient(145deg, #2a2a4a, #1a1a3e);
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  background: var(--gradient);
  padding: 20px 16px 16px;
  color: #fff;
}

.mockup-header h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mockup-header p {
  font-size: 0.7rem;
  opacity: 0.8;
  color: #fff;
  margin: 0;
}

.mockup-body {
  padding: 12px;
  flex: 1;
}

.mockup-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
}

.mockup-card h5 {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2px;
}

.mockup-card p {
  font-size: 0.6rem;
  color: var(--text-light);
  margin: 0;
}

.mockup-card .amount {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

.mockup-card.paid { border-left-color: #10b981; }
.mockup-card.overdue { border-left-color: #ef4444; }
.mockup-card.sent { border-left-color: #f59e0b; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(67, 97, 238, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn-dark {
  background: var(--secondary);
  color: #fff;
}

.btn-dark:hover {
  background: #2a2a4a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--secondary);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--secondary);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-apple {
  background: #000;
  color: #fff;
}

.store-btn-apple:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.store-btn-google {
  background: #fff;
  color: #333;
  border: 2px solid #e0e0e0;
}

.store-btn-google:hover {
  border-color: #bbb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #333;
}

.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn .store-text small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
}

.store-btn .store-text strong {
  font-size: 1rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--secondary);
  color: #fff;
}

.section-light {
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-dark .section-header .badge {
  background: rgba(67,97,238,0.15);
  color: #a8b8ff;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-dark .section-header h2 {
  color: #fff;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: #b0b8d1;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.blue { background: #eef1ff; color: #4361ee; }
.feature-icon.green { background: #ecfdf5; color: #10b981; }
.feature-icon.purple { background: #f3e8ff; color: #8b5cf6; }
.feature-icon.orange { background: #fff7ed; color: #f97316; }
.feature-icon.pink { background: #fdf2f8; color: #ec4899; }
.feature-icon.teal { background: #f0fdfa; color: #14b8a6; }
.feature-icon.red { background: #fef2f2; color: #ef4444; }
.feature-icon.indigo { background: #eef2ff; color: #6366f1; }
.feature-icon.yellow { background: #fefce8; color: #eab308; }

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: #b0b8d1;
}

/* ===== STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 60px 0;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat p {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: #d0d4e0;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author strong {
  color: #fff;
  font-size: 0.9rem;
  display: block;
}

.testimonial-author span {
  color: #8890a4;
  font-size: 0.8rem;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}

.pricing-card.popular {
  border-color: var(--primary);
  position: relative;
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 16px 0;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.pricing-features {
  text-align: left;
  margin: 28px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
  font-size: 1rem;
}

.pricing-features li.disabled {
  color: #ccc;
}

.pricing-features li.disabled::before {
  content: '✗';
  color: #ddd;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg);
}

.faq-question .arrow {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--primary);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== DOWNLOAD SECTION ===== */
.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.download-section .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.download-content {
  flex: 1;
}

.download-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.download-content p {
  color: #b0b8d1;
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  padding: 60px 0 0;
  color: #b0b8d1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8d1;
  transition: all var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: #8890a4;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: #6c757d;
}

/* ===== LEGAL PAGES (Privacy, Terms) ===== */
.legal-page {
  padding: 140px 0 80px;
}

.legal-page .container {
  max-width: 800px;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.legal-header p {
  color: var(--text-light);
}

.legal-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d2d44;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--primary);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: all var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== ABOUT SECTION ON FEATURES PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.about-checklist li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
}

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
  background: var(--gradient-hero);
  padding: 140px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p {
  color: #b0b8d1;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== APP SCREENSHOTS CAROUSEL ===== */
.screenshots-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  perspective: 1200px;
}

.phone-frame {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #2a2a4a, #1a1a3e);
  border-radius: 32px;
  border: 3px solid rgba(255,255,255,0.08);
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}

.phone-screen {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.phone-notch {
  height: 28px;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch-pill {
  width: 80px;
  height: 6px;
  background: #333;
  border-radius: 3px;
}

/* Screen: Dashboard */
.screen-dashboard .screen-top {
  background: var(--gradient);
  padding: 16px 14px 14px;
  color: #fff;
}

.screen-dashboard .screen-top h4 {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.screen-dashboard .screen-top p {
  font-size: 0.6rem;
  opacity: 0.8;
  color: #fff;
  margin: 0;
}

.screen-dashboard .screen-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
}

.screen-stat-card {
  background: #f0f4ff;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.screen-stat-card .stat-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.screen-stat-card .stat-label {
  font-size: 0.5rem;
  color: var(--text-light);
  margin: 0;
}

.screen-dashboard .invoice-list {
  padding: 6px 10px 10px;
}

.screen-invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 5px;
  border-left: 3px solid var(--primary);
}

.screen-invoice-item.paid { border-left-color: #10b981; }
.screen-invoice-item.overdue { border-left-color: #ef4444; }
.screen-invoice-item.sent { border-left-color: #f59e0b; }

.screen-invoice-item .inv-info h5 {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1px;
}

.screen-invoice-item .inv-info p {
  font-size: 0.5rem;
  color: var(--text-light);
  margin: 0;
}

.screen-invoice-item .inv-amount {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
}

.screen-invoice-item.paid .inv-amount { color: #10b981; }

/* Screen: Invoice Preview */
.screen-invoice .inv-preview {
  padding: 14px;
}

.inv-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.inv-preview-header .inv-logo {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.6rem;
}

.inv-preview-header .inv-title {
  text-align: right;
}

.inv-preview-header .inv-title h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.inv-preview-header .inv-title p {
  font-size: 0.5rem;
  color: var(--text-light);
  margin: 0;
}

.inv-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.inv-meta-col p {
  font-size: 0.5rem;
  color: var(--text-light);
  margin: 0 0 1px;
  line-height: 1.5;
}

.inv-meta-col strong {
  font-size: 0.5rem;
  color: var(--secondary);
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.inv-table th {
  background: #f0f4ff;
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--secondary);
  padding: 5px 4px;
  text-align: left;
  text-transform: uppercase;
}

.inv-table td {
  font-size: 0.45rem;
  padding: 5px 4px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}

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

.inv-totals {
  text-align: right;
  padding-top: 6px;
  border-top: 2px solid var(--primary);
}

.inv-totals p {
  font-size: 0.5rem;
  color: var(--text-light);
  margin: 2px 0;
}

.inv-totals .total-final {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

/* Screen: Client List */
.screen-clients .clients-header {
  background: var(--gradient);
  padding: 16px 14px 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-clients .clients-header h4 {
  font-size: 0.75rem;
  font-weight: 700;
}

.screen-clients .client-add-btn {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.client-list {
  padding: 10px;
}

.client-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 6px;
}

.client-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.client-item:nth-child(1) .client-avatar { background: #4361ee; }
.client-item:nth-child(2) .client-avatar { background: #10b981; }
.client-item:nth-child(3) .client-avatar { background: #f59e0b; }
.client-item:nth-child(4) .client-avatar { background: #ec4899; }
.client-item:nth-child(5) .client-avatar { background: #8b5cf6; }

.client-info h5 {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1px;
}

.client-info p {
  font-size: 0.48rem;
  color: var(--text-light);
  margin: 0;
}

/* Screen: Create Invoice */
.screen-create .create-header {
  background: var(--gradient);
  padding: 16px 14px 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.screen-create .create-header h4 {
  font-size: 0.75rem;
  font-weight: 700;
}

.screen-create .create-header .save-btn {
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 600;
  color: #fff;
}

.create-form {
  padding: 10px 12px;
}

.create-field {
  margin-bottom: 8px;
}

.create-field label {
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 3px;
}

.create-field .field-input {
  width: 100%;
  padding: 7px 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.55rem;
  color: var(--text);
}

.create-field .field-input.filled {
  color: var(--secondary);
  font-weight: 600;
}

.line-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 6px;
}

.line-items-header h5 {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--secondary);
}

.line-items-header .add-item-btn {
  font-size: 0.48rem;
  color: var(--primary);
  font-weight: 700;
}

.line-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  background: #f0f4ff;
  border-radius: 6px;
  margin-bottom: 4px;
}

.line-item-row .item-name {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--secondary);
}

.line-item-row .item-detail {
  font-size: 0.45rem;
  color: var(--text-light);
}

.line-item-row .item-price {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===== TEMPLATE GALLERY ===== */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.template-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

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

.template-card .pro-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.template-preview {
  padding: 16px;
  background: #f8f9fa;
  min-height: 320px;
}

.template-info {
  padding: 16px;
  text-align: center;
}

.template-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.template-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Mini Invoice Template Styles */
.tpl-invoice {
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 0.5rem;
}

.tpl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.tpl-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.5rem;
}

.tpl-title {
  text-align: right;
}

.tpl-title h5 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tpl-title p {
  font-size: 0.45rem;
  color: var(--text-light);
  margin: 0;
}

.tpl-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tpl-details p {
  font-size: 0.42rem;
  color: var(--text-light);
  margin: 0 0 1px;
  line-height: 1.4;
}

.tpl-table {
  width: 100%;
  margin-bottom: 8px;
  border-collapse: collapse;
}

.tpl-table th {
  font-size: 0.4rem;
  font-weight: 700;
  padding: 4px 3px;
  text-align: left;
  text-transform: uppercase;
}

.tpl-table td {
  font-size: 0.4rem;
  padding: 3px;
}

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

.tpl-total {
  text-align: right;
  padding-top: 6px;
}

.tpl-total p {
  font-size: 0.42rem;
  color: var(--text-light);
  margin: 1px 0;
}

.tpl-total .final {
  font-size: 0.65rem;
  font-weight: 800;
}

.tpl-footer-note {
  font-size: 0.38rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
  padding-top: 6px;
}

/* Template Variants */
.tpl-classic .tpl-header { border-bottom: 2px solid #1a1a2e; }
.tpl-classic .tpl-title h5 { color: #1a1a2e; }
.tpl-classic .tpl-table th { background: #1a1a2e; color: #fff; }
.tpl-classic .tpl-total .final { color: #1a1a2e; }
.tpl-classic .tpl-logo { background: #1a1a2e; }

.tpl-modern .tpl-header { border-bottom: 2px solid #4361ee; }
.tpl-modern .tpl-title h5 { color: #4361ee; }
.tpl-modern .tpl-table th { background: #eef1ff; color: #4361ee; }
.tpl-modern .tpl-total .final { color: #4361ee; }
.tpl-modern .tpl-logo { background: #4361ee; }

.tpl-bold .tpl-header { border-bottom: 3px solid #f72585; }
.tpl-bold .tpl-title h5 { color: #f72585; }
.tpl-bold .tpl-table th { background: #fdf2f8; color: #f72585; }
.tpl-bold .tpl-total .final { color: #f72585; }
.tpl-bold .tpl-logo { background: linear-gradient(135deg, #f72585, #b5179e); }

.tpl-minimal .tpl-header { border-bottom: 1px solid #e0e0e0; }
.tpl-minimal .tpl-title h5 { color: #333; }
.tpl-minimal .tpl-table th { background: #f5f5f5; color: #555; }
.tpl-minimal .tpl-total .final { color: #333; }
.tpl-minimal .tpl-logo { background: #555; }

.tpl-signature {
  margin-top: 10px;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.tpl-signature .sig-line {
  width: 60px;
  height: 1px;
  background: #ccc;
  margin-bottom: 4px;
}

.tpl-signature p {
  font-size: 0.38rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshots-row {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero h1 { font-size: 2.5rem; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.popular {
    transform: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .download-section .container {
    flex-direction: column;
    text-align: center;
  }
  .download-buttons {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
  .legal-header h1 {
    font-size: 2rem;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 60px 0;
  }
  .templates-grid {
    grid-template-columns: 1fr 1fr;
  }
  .screenshots-row {
    gap: 20px;
  }
  .phone-frame {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .download-buttons { flex-direction: column; align-items: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
