/* AccountantPDF Redesign CSS (initial integration)
   - Tokens and base styles
   - Inter font-face declarations (expects woff2 in /assets/fonts/Inter)
*/

/* Font Faces */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter/Inter-Variable.woff2') format('woff2'),
       url('/assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter/Inter-Italic-Variable.woff2') format('woff2'),
       url('/assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand Colors (approx from design PNG) */
  --brand-navy: #0d3a5a;
  --brand-blue: #1d6fb8;
  --brand-sky: #e6f1fa;
  --brand-accent: #18a0fb;
  --brand-bg: #f3f7fb;
  --brand-text: #223042;

  /* Semantic tokens */
  --primary-color: var(--brand-navy);
  --secondary-color: var(--brand-blue);
  --accent-color: var(--brand-accent);
  --light-gray: var(--brand-bg);
  --dark-gray: var(--brand-text);
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--dark-gray);
  background-color: var(--brand-bg);
}

/* Navbar tweaks to match palette */
.navbar.navbar-custom {
  background-color: var(--brand-navy);
}
.navbar .navbar-brand img {
  height: 70px;
  width: auto;
  display: inline-block;
  transform: scale(1.8);
  transform-origin: left center;
}

/* Hero band (for home) */
.hero-band {
  background-color: var(--brand-navy);
  color: #fff;
  padding: 72px 0 96px;
  margin-bottom: -84px; /* stronger overlap to match mock */
}
.hero-band h1 { font-weight: 800; letter-spacing: .2px; font-size: clamp(2.2rem, 1.2rem + 1.8vw, 2.8rem); }
.hero-band .lead { opacity: .92; margin-top: .5rem; }

/* Feature cards */
.features { padding-top: 24px; }
.features.section { padding-top: 24px; }
.feature-card { border-radius: 12px; background: #fff; border: 1px solid #e6edf4; box-shadow: 0 6px 12px rgba(13,58,90,.08); text-align: center; padding: 24px; }
.feature-card h3 { font-weight: 800; font-size: 1.55rem; color: #233446; margin-bottom: .4rem; }
.feature-card p { color: #576b7f; margin-bottom: 0; }
.features .col-md-4 { display: flex; }
.features .feature-card { width: 100%; }

/* Pricing cards */
.price-card .price-header { background-color: var(--brand-navy); }
.price { color: var(--brand-accent); }

/* Footer band */
.footer-band {
  background-color: var(--brand-navy);
  color: #fff;
  padding: 24px 0;
}

/* Utility */
.section { padding: 64px 0; }
.section .container { max-width: 1140px; }
.shadow-soft { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.rounded-10 { border-radius: 10px; }

/* ===== Home sections (migrated from inline) ===== */
/* Sections */
.features { background-color: var(--light-gray); }
.section-title { font-weight: 700; margin-bottom: 20px; color: var(--primary-color); }
.section-description { color: var(--dark-gray); margin-bottom: 30px; font-size: 1.1rem; }

/* Feature card */
.feature-icon { width: 84px; height: 84px; border-radius: 50%; background-color: #eaf3fb; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--secondary-color); font-size: 2rem; }

/* Responsive: relax overlap on small screens */
@media (max-width: 991.98px) {
  .hero-band { padding-bottom: 64px; margin-bottom: -32px; }
  .features.section, .features { padding-top: 40px; }
}
@media (max-width: 575.98px) {
  .hero-band { padding: 48px 0 56px; margin-bottom: 0; }
  .features.section, .features { padding-top: 24px; }
}

/* How it Works */
.step { display: flex; align-items: flex-start; margin-bottom: 40px; }
.step-number {
  flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%;
  background-color: var(--accent-color); color: #fff; font-weight: 700; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; margin-right: 20px;
}
.step-content { flex: 1; }

/* Pricing */
.pricing { background-color: #f9f9f9; }
.price-card { background-color: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform .3s ease; height: 100%; }
.price-card:hover { transform: translateY(-8px); }
.price-header { color: #fff; padding: 20px; text-align: center; }
.price-content { padding: 30px; }
.price-features { margin-bottom: 30px; }
.price-features li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.price-features li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--accent-color); }

/* Testimonials */
.testimonial { background-color: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px; position: relative; }
.testimonial::before { content: "\f10d"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: -15px; left: 20px; font-size: 2rem; color: rgba(26, 188, 156, 0.2); }
.client-info { display: flex; align-items: center; margin-top: 20px; }
.client-avatar { width: 50px; height: 50px; border-radius: 50%; background-color: var(--light-gray); display: flex; align-items: center; justify-content: center; margin-right: 15px; color: var(--primary-color); }

/* CTA band */
.cta { background-color: var(--secondary-color); color: #fff; text-align: center; }

/* FAQ */
.faq-item { margin-bottom: 20px; }
.faq-question { font-weight: 600; color: var(--primary-color); margin-bottom: 10px; cursor: pointer; padding: 15px; background-color: #f5f8fa; border-radius: 5px; transition: background-color .3s ease; }
.faq-question:hover { background-color: #edf2f7; }
.faq-answer { padding: 0 15px 15px; display: none; }

/* Pricing tabs behavior */
.pricing .tab-pane { transition: opacity .3s ease-in-out; opacity: 0; display: none; }
.pricing .tab-pane.show.active { opacity: 1; display: block; }
.pricing .nav-link { transition: all .3s ease; border-bottom: 3px solid transparent; color: var(--primary-color); }
.pricing .nav-link.active { border-bottom-color: var(--accent-color); background-color: rgba(26, 188, 156, .1); color: var(--accent-color); }
.pricing .nav-link:hover { background-color: rgba(26, 188, 156, .05); color: var(--accent-color); }

/* ===== Dashboard styles (centralized) ===== */
.dashboard-container { max-width: 1200px; margin: 0 auto; }
.credits-section { background-color: #fff; border-left: 4px solid var(--accent-color); padding: 20px; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.upload-section { background-color: #fff; padding: 30px; border: 2px dashed #dee2e6; border-radius: 8px; margin-bottom: 30px; text-align: center; min-height: 200px; transition: all .3s ease; }
.upload-section.highlight { border-color: var(--accent-color); background-color: #f1f9f7; }
.files-section { background-color: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.file-list { list-style: none; padding: 0; }
.file-item { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; transition: background-color .2s; }
.file-item:hover { background-color: #f8f9fa; }
.file-item:last-child { border-bottom: none; }
.btn-process { background-color: var(--accent-color); color: #fff; border: none; border-radius: 5px; padding: 10px 20px; cursor: pointer; transition: background-color .3s; }
.btn-process:hover { background-color: #16a085; }
.btn-process:disabled { background-color: #ccc; cursor: not-allowed; }
.status-label { padding: 5px 10px; border-radius: 20px; font-size: .8em; font-weight: 500; }
.status-uploaded { background-color: #e3f2fd; color: #0d47a1; }
.status-processing { background-color: #fff8e1; color: #ff6f00; }
.status-completed { background-color: #e8f5e9; color: #1b5e20; }
.status-error { background-color: #ffebee; color: #b71c1c; }
.dashboard-header { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.credits-count { font-size: 2rem; font-weight: 600; color: var(--accent-color); }
.drag-icon { font-size: 3rem; color: #dee2e6; margin-bottom: 15px; }
.upload-text { color: #6c757d; margin-bottom: 20px; }
.plan-section { background-color: #fff; border-left: 4px solid #6c5ce7; padding: 20px; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.feature-badge { display: inline-block; padding: 6px 12px; margin: 3px; border-radius: 20px; font-size: .8em; font-weight: 500; }
.feature-enabled { background-color: #d1edff; color: #0066cc; border: 1px solid #b3d9ff; }
.feature-disabled { background-color: #f8f9fa; color: #6c757d; border: 1px solid #dee2e6; }
.plan-name { font-size: 1.4rem; font-weight: 600; color: #6c5ce7; margin-bottom: 10px; }
.plan-status { color: #28a745; font-weight: 500; }
.plan-expired { color: #dc3545; font-weight: 500; }
.no-plan { color: #6c757d; font-style: italic; }
.batch-group { border: 1px solid #e3e6f0; border-radius: 8px; margin-bottom: 20px; background-color: #f8f9fc; }
.batch-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 15px 20px; border-radius: 8px 8px 0 0; cursor: pointer; transition: all .3s ease; }
.batch-header:hover { background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%); }
.batch-header.collapsed .batch-toggle-icon { transform: rotate(-90deg); }
.batch-toggle-icon { transition: transform .3s ease; margin-right: 10px; }
.batch-content { background-color: #fff; border-radius: 0 0 8px 8px; }
.batch-info { padding: 15px 20px; border-bottom: 1px solid #e3e6f0; background-color: #f1f3f4; }
.batch-files { padding: 10px; }
.batch-file-item { background-color: #fff; border: 1px solid #e9ecef; border-radius: 6px; margin-bottom: 8px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; }
.batch-file-item:last-child { margin-bottom: 0; }
.batch-meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.batch-date { color: #6c5ce7; font-weight: 500; }
.batch-count { background-color: rgba(108, 92, 231, 0.1); color: #6c5ce7; padding: 4px 10px; border-radius: 20px; font-size: .85em; font-weight: 500; }
.batch-downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.single-files-section { margin-top: 30px; }
.section-divider { border-top: 2px solid #e9ecef; margin: 30px 0; padding-top: 20px; }

/* ===== Value Proposition Sections ===== */
/* Main Value Proposition Section */
.value-proposition {
  background: linear-gradient(135deg, var(--brand-sky) 0%, #ffffff 100%);
  padding: 48px 0 40px;
}

.value-proposition h2 {
  color: var(--brand-navy);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.value-proposition .lead {
  font-size: 1.2rem;
  color: var(--brand-text);
  font-weight: 400;
  margin-bottom: 28px;
}

.value-proposition .btn-primary {
  background-color: var(--brand-accent);
  border: none;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(24, 160, 251, 0.3);
}

.value-proposition .btn-primary:hover {
  background-color: #1589d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 160, 251, 0.4);
}

/* Problem Section */
.problem-section {
  padding: 40px 0;
  background-color: #ffffff;
}

.problem-card {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border: 2px solid #fee;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.08);
  transition: transform 0.3s ease;
  padding: 40px 32px;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.12);
}

.problem-card .problem-icon {
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 24px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.problem-card h3 {
  color: var(--brand-navy);
  font-weight: 700;
  margin-bottom: 20px;
}

.problem-card .lead {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Solution Section */
.solution-section {
  padding: 40px 0 48px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.solution-card {
  background: #ffffff;
  border: 2px solid #d1fae5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
  transition: transform 0.3s ease;
  padding: 40px 32px;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
}

.solution-card .solution-icon {
  animation: float 3s ease-in-out infinite;
  margin-bottom: 24px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.solution-card h3 {
  color: var(--brand-navy);
  font-weight: 700;
  margin-bottom: 20px;
}

.solution-card .lead {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .value-proposition {
    padding: 40px 0 32px;
  }

  .problem-section, .solution-section {
    padding: 32px 0;
  }

  .problem-card, .solution-card {
    padding: 32px 24px !important;
  }
}

@media (max-width: 575.98px) {
  .value-proposition {
    padding: 32px 0 24px;
  }

  .value-proposition h2 {
    font-size: 1.65rem;
    margin-bottom: 16px;
  }

  .value-proposition .lead {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .problem-section, .solution-section {
    padding: 24px 0;
  }

  .problem-card, .solution-card {
    padding: 28px 20px !important;
  }

  .problem-card .lead, .solution-card .lead {
    font-size: 1rem;
  }
}
