/* =============================================
   Invo — Invoice & Billing Maker
   Clean Blue Design System 2026
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-500: #2563EB;
  --blue-600: #1D4ED8;
  --blue-400: #3B82F6;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --bg:       #FFFFFF;
  --bg-light: #F4F8FF;
  --bg-card:  #FFFFFF;
  --text:     #0F172A;
  --text-2:   #475569;
  --text-3:   #94A3B8;
  --border:   #E2E8F0;
  --shadow:   0 4px 24px rgba(37,99,235,0.08);
  --shadow-lg:0 12px 48px rgba(37,99,235,0.14);
  --radius:   16px;
  --radius-sm:10px;
  --radius-lg:24px;
  --font:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w:    1200px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover { color: var(--blue-600); }

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Padding --- */
.section-pad { padding: 96px 0; }
.bg-light { background: var(--bg-light); }

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-header p {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
}

.nav-logo-img {
  border-radius: 10px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

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

.nav-links a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--blue-500);
  background: var(--blue-50);
}

.nav-cta {
  background: var(--blue-500) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
}

.nav-cta:hover {
  background: var(--blue-600) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-toggle:hover { background: var(--blue-50); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: 140px;
  padding-bottom: 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 40%, #F4F8FF 100%);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-bottom: 80px;
}

.hero-text {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-3);
}

/* App Store Button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  line-height: 1.3;
}

.btn-appstore:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: #fff;
}

.btn-appstore span { display: flex; flex-direction: column; }
.btn-appstore small { font-size: 11px; font-weight: 400; opacity: 0.8; }

.btn-appstore-white {
  background: #fff;
  color: var(--text) !important;
}

.btn-appstore-white:hover {
  background: #f1f5f9;
  color: var(--text) !important;
}

/* Hero Phones */
.hero-phones {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  position: absolute;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  transition: transform var(--transition);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-front {
  width: 240px;
  height: 480px;
  z-index: 2;
  left: 50%;
  transform: translateX(-55%);
}

.phone-back {
  width: 220px;
  height: 440px;
  z-index: 1;
  left: 50%;
  transform: translateX(0%) rotate(6deg);
  opacity: 0.85;
}

.hero-phones:hover .phone-front { transform: translateX(-55%) translateY(-6px); }
.hero-phones:hover .phone-back  { transform: translateX(0%) rotate(6deg) translateY(-3px); }

.hero-wave {
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--bg-light);
  padding: 32px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
}

.trust-item strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-500);
}

.trust-item span {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

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

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* =============================================
   SCREENSHOTS
   ============================================= */
.screens-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.screen-item {
  flex-shrink: 0;
}

.screen-item img {
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  height: auto;
  width: 200px;
  transition: transform var(--transition);
}

.screen-item img:hover {
  transform: translateY(-6px);
}

/* =============================================
   PRICING
   ============================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto 32px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.pricing-featured {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.pricing-featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
  display: inline-block;
  background: var(--blue-500);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.pricing-badge-green {
  background: #059669;
}

.pricing-period {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
}

.pricing-save {
  font-size: 13px;
  color: #059669;
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-features {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text-2);
}

.pricing-features li:before { display: none; }

.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--blue-500);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--blue-500);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--blue-500);
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
}

.cta-inner .btn-appstore-white {
  display: inline-flex;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--text);
  color: #fff;
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* =============================================
   BLOG — Index page
   ============================================= */
.blog-hero {
  padding: 140px 0 64px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.blog-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 18px;
  color: var(--text-2);
}

.blog-grid {
  padding: 80px 0;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--blue-400);
}

.blog-card-img {
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--blue-50) 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-tag {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-500);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.blog-card-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.blog-card-body p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}

/* =============================================
   SUPPORT / PRIVACY / TERMS pages
   ============================================= */
.page-hero {
  padding: 140px 0 48px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-2);
}

.page-content {
  padding: 64px 0 96px;
  max-width: 760px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p, .page-content li {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.8;
}

.page-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-content a {
  color: var(--blue-500);
  text-decoration: underline;
}

/* Support FAQ */
.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

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

.faq-icon {
  font-size: 20px;
  transition: transform 0.25s ease;
  color: var(--blue-500);
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

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

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 18px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* =============================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-4px); }
  .blog-cards { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
  .trust-item { padding: 0 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
  /* Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Hero */
  .hero { padding-top: 100px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-bottom: 60px;
  }

  .hero-text { max-width: 100%; }

  .hero-actions { display: flex; justify-content: center; }

  .hero-phones {
    height: 360px;
    order: -1;
  }

  .phone-front {
    width: 170px;
    height: 340px;
    transform: translateX(-55%);
  }

  .phone-back {
    width: 155px;
    height: 310px;
    transform: translateX(0%) rotate(6deg);
  }

  /* Trust */
  .trust-inner { gap: 0; }
  .trust-item { padding: 12px 20px; }
  .trust-divider { display: none; }
  .trust-inner { flex-direction: column; align-items: stretch; }
  .trust-item { flex-direction: row; justify-content: space-between; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: none; }
  .trust-item strong { font-size: 18px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 64px 0; }

  /* Screenshots */
  .screens-row { gap: 16px; }
  .screen-item img { width: 150px; }

  /* Pricing */
  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 28px 22px; }

  /* Blog */
  .blog-cards { grid-template-columns: 1fr; }

  /* Footer */
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  /* Page content */
  .page-content { padding: 48px 0 72px; }
}

/* =============================================
   RESPONSIVE — SMALL (max 480px)
   ============================================= */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 32px; }
  .btn-appstore { padding: 12px 18px; font-size: 14px; }
  .screens-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; justify-content: flex-start; }
  .screen-item img { width: 140px; }
  .footer-links { grid-template-columns: 1fr; }
  .trust-item strong { font-size: 16px; }
}

/* =============================================
   UTILITIES
   ============================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
