/* ===== Invoice Scanner Landing — Dark Fintech Theme ===== */
/* Matches oursoft.top design system, Invoice Scanner color palette */
:root {
  --bg: #0F1419;
  --bg-alt: #0B1015;
  --bg-card: #1A2332;
  --bg-card-hover: #1E2940;
  --accent: #00BFA5;
  --accent-dark: #00A892;
  --accent-glow: rgba(0,191,165,.15);
  --accent-light: #1DE9B6;
  --yellow: #FFC107;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border: #2A3A4E;
  --radius: 10px;
  --max-w: 1200px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,20,25,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.logo svg { flex-shrink: 0; }
.logo-wordmark { color: var(--text); }
.logo-wordmark .acc { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  font-family: var(--font);
  border-radius: 7px;
  transition: filter .15s;
}
.lang-toggle:hover { filter: brightness(1.1); }
.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .85rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--accent-dark); color: #000; transform: translateY(-1px); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger svg { stroke: var(--text); }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(15,20,25,.97);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
}

/* ===== SECTION HELPERS ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}
.section-title .accent { color: var(--accent); }
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== HERO ===== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text h1 .accent { color: var(--accent); }
.hero-text h1 .light { color: var(--accent-light); }
.hero-text p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.65;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent-dark); color: #000; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--accent); color: #000; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
}
.hero-badges .badge svg { color: var(--accent); flex-shrink: 0; }

/* Hero phone mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-phone {
  position: relative;
  width: 280px;
}
.hero-phone img {
  width: 100%;
  border-radius: 24px;
  border: 3px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,191,165,.12), 0 0 0 1px rgba(0,191,165,.1);
}
.hero-phone::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(0,191,165,.2), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-phone { width: 220px; }
  .hero-badges { justify-content: center; }
}

/* ===== FEATURES GRID (6 cards) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s, box-shadow .3s, background .3s, border-color .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px var(--accent-glow);
  background: var(--bg-card-hover);
  border-color: rgba(0,191,165,.3);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { color: var(--accent); }
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.6;
}

@media (max-width: 420px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.step {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform .3s, box-shadow .3s;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.step:nth-child(even) { direction: rtl; }
.step:nth-child(even) > * { direction: ltr; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-content p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.6;
}
.step-img {
  display: flex;
  justify-content: center;
}
.step-img img {
  width: 100%;
  max-width: 240px;
  border-radius: 18px;
  border: 2px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

@media (max-width: 768px) {
  .step { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .step:nth-child(even) { direction: ltr; }
  .step-img img { max-width: 200px; margin: 0 auto; }
  .step-number { margin: 0 auto 14px; }
}

/* ===== PRICING ===== */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  display: inline-flex;
}
.pricing-toggle-wrap { text-align: center; }
.pricing-toggle button {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 10px 24px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  font-family: var(--font);
  transition: background .2s, color .2s;
}
.pricing-toggle button.active {
  background: var(--accent);
  color: #000;
}
.pricing-toggle button:hover:not(.active) {
  color: var(--text);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px var(--accent-glow);
}
.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.price-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.price-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}
.price-amount .currency { font-size: 1.2rem; }
.price-amount .period {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.price-desc {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 22px;
  min-height: 20px;
}
.price-features {
  margin-bottom: 28px;
}
.price-features li {
  padding: 6px 0;
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-features li::before {
  content: '';
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-features li.disabled::before {
  background: var(--text-dim);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}
.price-features li.disabled { color: var(--text-dim); }
.price-card .btn-primary { width: 100%; justify-content: center; }
.price-card .btn-outline { width: 100%; justify-content: center; }
.price-note {
  text-align: center;
  color: var(--text-dim);
  font-size: .85rem;
  margin-top: 28px;
  line-height: 1.6;
}

@media (max-width: 420px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { color: var(--text-dim); font-size: .85rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-contact svg { color: var(--accent); flex-shrink: 0; }
@media (max-width: 520px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.legal-content .legal-date {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}
.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul {
  padding-left: 20px;
  list-style: disc;
}
.legal-content a { text-decoration: underline; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: .9rem;
  text-align: left;
}
.legal-content th {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text);
}
.legal-content td { color: var(--text-muted); }

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--accent-dark); }

/* ===== v2.5 REFINEMENTS ===== */
/* Brand logo image in header */
.logo img.logo-mark { width: 34px; height: 34px; border-radius: 9px; display: block; flex-shrink: 0; }

/* How It Works — two columns on desktop to use space efficiently */
@media (min-width: 769px) {
  .steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    align-items: stretch;
  }
  .step {
    grid-template-columns: 1fr 140px;
    gap: 24px;
    align-items: center;
    padding: 30px 28px;
  }
  .step:nth-child(even) { direction: ltr; }
  .step:nth-child(even) > * { direction: ltr; }
  .step-img img { max-width: 140px; }
  /* A lone final step spans the full width with the original wide layout */
  .steps > .step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 240px;
  }
  .steps > .step:last-child:nth-child(odd) .step-img img { max-width: 220px; }
}

/* Pricing — equal height cards with CTA pinned to the bottom */
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-features { flex: 1 1 auto; }
.price-card .btn-primary,
.price-card .btn-outline { margin-top: auto; }
