/* Financial Analysis Landing Page Styles */
/* Namespaced with .fa- to avoid conflicts with main style.css */

.fa-page {
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  color: #1F2D3B;
  line-height: 1.6;
}

/* Brand Colors */
.fa-page {
  --fa-brand-gold: #9E8C2C;
  --fa-brand-gold-light: rgba(158,140,44,0.08);
  --fa-brand-gold-border: rgba(158,140,44,0.22);
  --fa-navy: #1F2D3B;
  --fa-green-cta: #2E6B3E;
  --fa-green-cta-hover: #367A48;
  --fa-text-primary: #1F2D3B;
  --fa-text-secondary: #5A6B78;
  --fa-text-muted: #8FA3B8;
  --fa-bg-page: #FFFFFF;
  --fa-bg-section: #F7F9FB;
  --fa-bg-accent: #F3F6F4;
  --fa-border: #E2E8ED;
  --fa-border-light: #F0F3F5;
}

/* Page Title Bar */
.fa-page-title-bar {
  background: var(--fa-navy);
  color: #fff;
  padding: 24px 0;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Hero Section */
.fa-hero {
  background: linear-gradient(135deg, var(--fa-bg-accent) 0%, var(--fa-bg-section) 100%);
  padding: 60px 0;
  text-align: center;
}

.fa-hero-badge {
  display: inline-block;
  background: var(--fa-brand-gold);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.fa-hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--fa-text-primary);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.fa-hero-subhead {
  font-size: 1.25rem;
  color: var(--fa-text-secondary);
  margin: 0 0 24px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.fa-cta-primary, .fa-cta-outline {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin: 0 8px;
}

.fa-cta-primary {
  background: var(--fa-green-cta);
  color: #fff;
  border: none;
}

.fa-cta-primary:hover {
  background: var(--fa-green-cta-hover);
}

.fa-cta-outline {
  background: transparent;
  color: var(--fa-green-cta);
  border: 2px solid var(--fa-green-cta);
}

.fa-cta-outline:hover {
  background: var(--fa-green-cta);
  color: #fff;
}

.fa-credential {
  font-size: 0.9rem;
  color: var(--fa-text-muted);
  margin-top: 16px;
}

/* Mock Panel */
.fa-mock-panel {
  background: var(--fa-bg-page);
  border: 1px solid var(--fa-border);
  border-radius: 8px;
  margin: 40px auto 0;
  max-width: 1100px;
  width: calc(100% - 32px);
  overflow: hidden;
}

.fa-mock-tabs {
  display: flex;
  background: var(--fa-navy);
  color: #fff;
}

.fa-mock-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  background: var(--fa-navy);
  border: none;
  color: #fff;
}

.fa-mock-tab.active {
  background: var(--fa-brand-gold);
}

.fa-mock-content {
  padding: 20px;
}

.fa-mock-naics {
  background: var(--fa-brand-gold-light);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--fa-text-primary);
}

.fa-mock-section {
  margin-bottom: 24px;
}

.fa-mock-section-header {
  font-weight: 700;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 4px;
}

.fa-mock-section.cogs .fa-mock-section-header {
  background: #fee;
  color: #c33;
}

.fa-mock-section.overhead .fa-mock-section-header {
  background: #fdf2e8;
  color: #d97706;
}

.fa-mock-section.bca .fa-mock-section-header {
  background: #dcfce7;
  color: #166534;
}

.fa-mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--fa-border-light);
}

.fa-mock-row:last-child {
  border-bottom: none;
}

.fa-mock-row-label {
  flex: 1;
}

.fa-mock-row-value {
  font-weight: 600;
  text-align: right;
}

.fa-mock-row-trace {
  font-size: 0.8rem;
  color: var(--fa-text-muted);
  margin-top: 4px;
}

.fa-mock-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.fa-mock-status-dot.green { background: #10b981; }
.fa-mock-status-dot.yellow { background: #f59e0b; }
.fa-mock-status-dot.red { background: #ef4444; }

.fa-mock-diagnostic {
  border-left: 4px solid;
  padding: 12px;
  margin: 8px 0;
  background: var(--fa-bg-section);
}

.fa-mock-diagnostic.warning {
  border-color: #f59e0b;
  background: #fef3c7;
}

.fa-mock-diagnostic.info {
  border-color: #ef4444;
  background: #fee2e2;
}

.fa-mock-kpi {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: var(--fa-bg-accent);
  border-radius: 6px;
  margin: 8px 0;
}

.fa-mock-kpi-label { font-weight: 600; }
.fa-mock-kpi-value { font-weight: 700; color: var(--fa-green-cta); }

.fa-mock-cpa-note {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--fa-text-secondary);
}

.fa-mock-disclaimer {
  background: var(--fa-bg-section);
  border: 1px solid var(--fa-border);
  padding: 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--fa-text-secondary);
}

.fa-contact-link {
  color: var(--fa-green-cta);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.fa-contact-link:hover {
  color: var(--fa-green-cta-hover);
  text-decoration: underline;
}

.fa-ops-table-wrap {
  display: grid;
  margin-bottom: 24px;
  border: 1px solid var(--fa-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.fa-ops-table-row {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.95fr 1.1fr 1fr 0.95fr 3.5fr;
  gap: 0;
  border-bottom: 1px solid var(--fa-border-light);
  background: #fff;
}

.fa-ops-table-row:last-child {
  border-bottom: none;
}

.fa-ops-table-row > div {
  padding: 18px 16px;
  border-right: 1px solid var(--fa-border-light);
  min-height: 56px;
  display: flex;
  align-items: center;
}

.fa-ops-table-row > div:last-child {
  border-right: none;
}

.fa-ops-table-header {
  background: #F8FAFC;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fa-text-secondary);
  border-bottom: 1px solid var(--fa-border);
}

.fa-ops-table-header > div {
  justify-content: flex-start;
}

.fa-ops-table-row div:nth-child(2),
.fa-ops-table-row div:nth-child(3),
.fa-ops-table-row div:nth-child(4),
.fa-ops-table-row div:nth-child(5) {
  justify-content: flex-end;
  text-align: right;
}

.fa-ops-table-row div:nth-child(6) {
  justify-content: center;
}

.fa-ops-table-row div:nth-child(7) {
  justify-content: flex-start;
  text-align: left;
}

.fa-ops-status {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 82px;
}

.fa-ops-status.best {
  background: #dcfce7;
  color: #166534;
}

.fa-ops-status.ok {
  background: #e0f2fe;
  color: #035388;
}

.fa-ops-status.concern {
  background: #fef3c7;
  color: #92400e;
}

.fa-ops-summary-row {
  background: #fdf7e8;
}

.fa-ops-summary-row > div {
  font-size: 0.95rem;
}

.fa-ops-divider {
  grid-template-columns: 1fr;
  background: #F3F5F8;
  font-weight: 700;
  color: var(--fa-text-primary);
}

.fa-ops-divider > div {
  grid-column: 1 / -1;
  border-right: none;
  padding: 18px 16px;
}

.fa-ops-note {
  padding: 18px;
  border-radius: 10px;
  background: var(--fa-bg-accent);
  border: 1px solid var(--fa-border);
  font-size: 0.95rem;
  color: var(--fa-text-secondary);
}

/* Ticker */
.fa-ticker {
  overflow: hidden;
  padding: 18px 0;
  background: var(--fa-bg-section);
  border-top: 1px solid var(--fa-border);
  border-bottom: 1px solid var(--fa-border);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.fa-ticker-content {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: fa-ticker 38s linear infinite;
}

@keyframes fa-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.fa-ticker-item {
  color: var(--fa-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.fa-ticker-item::after {
  content: "◆";
  margin-left: 32px;
  color: var(--fa-border);
}

/* Stats */
.fa-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.fa-stat-item {
  text-align: center;
}

.fa-stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--fa-brand-gold);
  margin: 0;
}

.fa-stat-desc {
  font-size: 1.1rem;
  color: var(--fa-text-secondary);
  margin: 8px 0 4px 0;
}

.fa-stat-source {
  font-size: 0.85rem;
  color: var(--fa-text-muted);
}

/* Deliverables */
.fa-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.fa-deliverable-card {
  background: var(--fa-bg-page);
  border: 1px solid var(--fa-border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fa-deliverable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.fa-deliverable-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  stroke: var(--fa-brand-gold);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fa-deliverable-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fa-text-primary);
  margin: 0 0 12px 0;
}

.fa-deliverable-desc {
  color: var(--fa-text-secondary);
  font-size: 0.95rem;
}

/* Process */
.fa-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.fa-process-card {
  background: var(--fa-bg-section);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.fa-process-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fa-brand-gold);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.fa-process-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fa-text-primary);
  margin: 16px 0 12px 0;
}

.fa-process-desc {
  color: var(--fa-text-secondary);
  font-size: 0.9rem;
  margin: 0 0 12px 0;
}

.fa-process-time {
  font-size: 0.8rem;
  color: var(--fa-text-muted);
  font-weight: 600;
}

/* Industries */
.fa-industries {
  padding: 40px 0;
  text-align: center;
}

.fa-industries-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fa-text-primary);
  margin-bottom: 24px;
}

.fa-industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.fa-industry-tag {
  background: var(--fa-bg-section);
  border: 1px solid var(--fa-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--fa-text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.fa-industry-tag:hover {
  background: var(--fa-brand-gold);
  color: #fff;
  border-color: var(--fa-brand-gold);
}

/* Trust */
.fa-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.fa-trust-item {
  text-align: center;
  padding: 20px;
  background: var(--fa-bg-accent);
  border-radius: 8px;
}

.fa-trust-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fa-brand-gold);
  margin: 0;
}

.fa-trust-desc {
  font-size: 0.9rem;
  color: var(--fa-text-secondary);
  margin: 8px 0 0 0;
}

/* FAQ */
.fa-faq {
  padding: 40px 0;
}

.fa-faq-item {
  border-bottom: 1px solid var(--fa-border);
  cursor: pointer;
}

.fa-faq-question {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.fa-faq-q-text {
  color: var(--fa-text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.fa-faq-toggle {
  color: var(--fa-brand-gold);
  font-size: 22px;
  font-weight: 300;
  transform: rotate(0deg);
  transition: transform 0.25s;
  flex-shrink: 0;
}

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

.fa-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.fa-faq-item.open .fa-faq-answer {
  max-height: 300px;
}

.fa-faq-a-text {
  color: var(--fa-text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  padding-bottom: 18px;
}

/* Contact */
.fa-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.fa-contact-info h3 {
  color: var(--fa-text-primary);
  margin-bottom: 16px;
}

.fa-contact-detail {
  margin-bottom: 12px;
  color: var(--fa-text-secondary);
}

.fa-contact-detail strong {
  color: var(--fa-text-primary);
}

.fa-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--fa-bg-section);
  border: 1px solid var(--fa-border);
  border-radius: 5px;
  padding: 12px 14px;
  color: var(--fa-text-primary);
  font-size: 14px;
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  outline: none;
  margin-bottom: 12px;
}

.fa-input:focus {
  border-color: var(--fa-green-cta);
}

.fa-submit-btn {
  background: var(--fa-green-cta);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
}

.fa-submit-btn:hover {
  background: var(--fa-green-cta-hover);
}

.fa-success-msg {
  background: #dcfce7;
  color: #166534;
  padding: 12px;
  border-radius: 5px;
  margin-top: 12px;
  text-align: center;
}

/* Services Banner */
.fa-services-banner {
  background: var(--fa-navy);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.fa-services-banner h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.fa-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.fa-service-link {
  background: var(--fa-brand-gold);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.fa-service-link:hover {
  background: #7A6E20;
}

/* Chat Widget */
.fa-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.fa-chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fa-brand-gold), #7A6E20);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(158,140,44,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  font-size: 22px;
  color: #fff;
}

.fa-chat-toggle:hover {
  transform: scale(1.08);
}

.fa-chat-panel {
  position: fixed;
  bottom: 94px;
  right: 24px;
  z-index: 9998;
  width: 370px;
  max-width: calc(100vw - 48px);
  height: 470px;
  max-height: 60vh;
  background: var(--fa-bg-page);
  border: 1px solid var(--fa-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
  overflow: hidden;
}

.fa-chat-header {
  padding: 14px 18px;
  background: var(--fa-navy);
  color: #fff;
}

.fa-chat-header div:first-child {
  font-weight: 700;
  font-size: 14px;
}

.fa-chat-header div:last-child {
  font-size: 11.5px;
  margin-top: 2px;
  color: #A8BCC8;
}

.fa-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--fa-bg-section);
}

.fa-chat-msg {
  align-self: flex-start;
  max-width: 82%;
  background: var(--fa-bg-page);
  color: var(--fa-text-primary);
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--fa-border);
}

.fa-chat-msg.user {
  align-self: flex-end;
  background: var(--fa-green-cta);
  color: #fff;
  border: none;
}

.fa-chat-loading {
  align-self: flex-start;
  background: var(--fa-bg-page);
  border: 1px solid var(--fa-border);
  padding: 9px 16px;
  border-radius: 11px;
  color: var(--fa-text-muted);
  font-size: 13px;
}

.fa-chat-input-area {
  padding: 10px 14px;
  border-top: 1px solid var(--fa-border);
  display: flex;
  gap: 8px;
  background: #fff;
}

.fa-chat-input {
  flex: 1;
  background: var(--fa-bg-section);
  border: 1px solid var(--fa-border);
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--fa-text-primary);
  font-size: 13px;
  outline: none;
  font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
}

.fa-chat-send {
  background: var(--fa-green-cta);
  border: none;
  border-radius: 7px;
  padding: 0 14px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 12.5px;
  opacity: 1;
}

.fa-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fa-chat-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.fa-chat-action-btn {
  background: var(--fa-green-cta);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.fa-chat-action-btn:hover {
  background: var(--fa-green-cta-hover);
}

/* ==================== RESPONSIVE: Mobile (max-width: 768px) ==================== */
@media (max-width: 768px) {
  /* -------- Page Title Bar -------- */
  .fa-page-title-bar {
    font-size: 1.1rem;
    padding: 12px 16px;
  }

  /* -------- Hero Section -------- */
  .fa-hero {
    padding: 24px 16px 32px;
  }

  .fa-hero-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    margin-bottom: 12px;
  }

  .fa-hero-heading {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .fa-hero-subhead {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 100%;
  }

  /* CTA Buttons - Full width, 44px+ tap targets */
  .fa-cta-primary,
  .fa-cta-outline {
    display: block;
    width: 100%;
    margin: 0 0 10px 0;
    padding: 14px 16px;
    font-size: 0.95rem;
    min-height: 48px;
    text-align: center;
  }

  .fa-credential {
    font-size: 0.8rem;
    margin-top: 12px;
  }

  /* -------- Mock Panel -------- */
  .fa-mock-panel {
    margin: 0 -16px;
    max-width: calc(100vw);
    border-radius: 0;
    width: calc(100vw);
    overflow: hidden;
  }

  /* Mock Tabs - Horizontal scrolling with touch support */
  .fa-mock-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0;
    scroll-behavior: smooth;
  }

  .fa-mock-tabs::-webkit-scrollbar {
    height: 3px;
  }

  .fa-mock-tabs::-webkit-scrollbar-thumb {
    background: #C4CEDB;
    border-radius: 3px;
  }

  .fa-mock-tab {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    min-height: 44px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
  }

  .fa-mock-content {
    padding: 12px;
  }

  /* -------- Operational Analysis Table - CRITICAL FIX -------- */
  .fa-ops-table-wrap {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: visible;
  }

  /* Hide header row on mobile */
  .fa-ops-table-header {
    display: none;
  }

  /* Convert rows to card layout */
  .fa-ops-table-row {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--fa-border);
    border-radius: 8px;
    background: #fff;
    gap: 8px;
  }

  .fa-ops-table-row > div {
    border-right: none;
    padding: 0;
    border-bottom: 1px solid var(--fa-border-light);
    min-height: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.9rem;
  }

  .fa-ops-table-row > div:last-child {
    border-bottom: none;
  }

  /* First cell (Category) - full width header */
  .fa-ops-table-row > div:first-child {
    display: block;
    border-bottom: 1px solid var(--fa-border-light);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  /* Data cells with labels */
  .fa-ops-table-row > div:nth-child(2)::before {
    content: "Actual $: ";
    font-weight: 600;
    color: #5A6B78;
    margin-right: 4px;
  }

  .fa-ops-table-row > div:nth-child(3)::before {
    content: "Actual %: ";
    font-weight: 600;
    color: #5A6B78;
    margin-right: 4px;
  }

  .fa-ops-table-row > div:nth-child(4)::before {
    content: "Industry: ";
    font-weight: 600;
    color: #5A6B78;
    margin-right: 4px;
  }

  .fa-ops-table-row > div:nth-child(5)::before {
    content: "Best: ";
    font-weight: 600;
    color: #5A6B78;
    margin-right: 4px;
  }

  /* Status badge - full width */
  .fa-ops-status {
    display: flex;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 0;
  }

  /* Findings/Actions - full width */
  .fa-ops-table-row > div:last-child {
    display: block;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 8px 0;
  }

  /* Divider rows */
  .fa-ops-divider {
    grid-template-columns: none;
    background: #F3F5F8;
    padding: 10px 12px !important;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    margin-bottom: 12px;
    border-radius: 4px;
  }

  .fa-ops-divider > div {
    display: block !important;
    border-right: none;
    border-bottom: none;
    padding: 0 !important;
  }

  /* Summary rows */
  .fa-ops-summary-row {
    background: #fdf7e8;
    border: 1px solid #E2E8ED;
    border-radius: 8px;
    margin: 8px 0;
    padding: 12px !important;
  }

  .fa-ops-summary-row > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-right: none;
    padding: 4px 0 !important;
  }

  /* CPA Notes */
  .fa-ops-note {
    font-size: 0.8rem;
    padding: 12px;
    line-height: 1.6;
    margin-top: 12px;
  }

  /* -------- Income Statement Table - CRITICAL FIX -------- */
  .fa-income-table {
    border-radius: 8px;
  }

  /* Hide header row */
  .fa-income-header {
    display: none;
  }

  /* Stack rows vertically */
  .fa-income-row {
    grid-template-columns: none;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 4px;
    border-radius: 0;
  }

  .fa-income-row:last-child {
    border-bottom: none;
  }

  /* Account name - full width */
  .fa-income-account {
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--fa-border-light);
    margin-bottom: 4px;
  }

  .fa-income-amount,
  .fa-income-percent,
  .fa-income-benchmark,
  .fa-income-variance {
    font-size: 0.8rem;
    flex: 0 1 auto;
  }

  /* -------- Benchmark Grid -------- */
  .fa-benchmark-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .fa-benchmark-item {
    grid-template-columns: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }

  .fa-benchmark-label {
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .fa-benchmark-your,
  .fa-benchmark-industry,
  .fa-benchmark-status {
    font-size: 0.8rem;
  }

  /* -------- Recommendations -------- */
  .fa-cost-recommendations {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fa-recommendation {
    padding: 12px;
    margin-bottom: 12px;
  }

  .fa-rec-priority {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .fa-rec-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .fa-rec-detail {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* -------- Content Grids -------- */
  .fa-stat-grid,
  .fa-deliverables-grid,
  .fa-process-grid,
  .fa-trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px;
  }

  .fa-stat-number {
    font-size: 2rem;
  }

  .fa-stat-desc {
    font-size: 0.9rem;
  }

  .fa-stat-source {
    font-size: 0.7rem;
  }

  .fa-deliverable-card {
    padding: 16px;
  }

  .fa-process-card {
    padding: 12px;
  }

  .fa-process-num {
    font-size: 1.2rem;
    top: -8px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  /* -------- Industries -------- */
  .fa-industry-tags {
    gap: 6px;
  }

  .fa-industry-tag {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  /* -------- Trust Grid -------- */
  .fa-trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 24px 16px;
  }

  .fa-trust-item {
    padding: 12px;
  }

  .fa-trust-number {
    font-size: 1.25rem;
  }

  .fa-trust-desc {
    font-size: 0.7rem;
  }

  /* -------- FAQ -------- */
  .fa-faq {
    padding: 24px 16px;
  }

  .fa-faq-question {
    padding: 12px 0;
  }

  .fa-faq-q-text {
    font-size: 0.9rem;
    padding-right: 30px;
  }

  .fa-faq-toggle {
    font-size: 1.25rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fa-faq-a-text {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  /* -------- Contact Section -------- */
  .fa-contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 16px;
  }

  .fa-contact-info h3 {
    font-size: 1.1rem;
  }

  .fa-input {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 12px;
    min-height: 48px;
    -webkit-appearance: none;
    box-sizing: border-box;
  }

  .fa-submit-btn {
    min-height: 52px;
    font-size: 0.95rem;
    padding: 14px;
    width: 100%;
  }

  /* -------- Services Banner -------- */
  .fa-services-banner {
    padding: 24px 16px;
  }

  .fa-services-banner h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .fa-service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .fa-service-link {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* -------- Chat Widget -------- */
  .fa-chat-panel {
    width: calc(100vw - 32px);
    max-width: 360px;
    height: auto;
    max-height: 65vh;
    right: 16px;
    bottom: 76px;
  }

  .fa-chat-toggle {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
    font-size: 20px;
  }

  .fa-chat-input {
    font-size: 16px; /* Prevents iOS zoom */
  }

  /* -------- Ticker -------- */
  .fa-ticker-item {
    font-size: 10px;
  }

  /* -------- General Typography -------- */
  h2 {
    font-size: 1.4rem !important;
    margin-bottom: 16px;
  }

  /* -------- Container Padding -------- */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==================== RESPONSIVE: Tablet (769px - 1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .fa-deliverables-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fa-process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fa-ops-table-row > div:last-child {
    font-size: 0.8rem;
  }

  .fa-income-row {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  }

  .fa-benchmark-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Mock Analysis Styles */

/* Executive Summary */
.fa-executive-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.fa-executive-metric {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--fa-border);
  text-align: center;
}

.fa-metric-label {
  font-size: 0.9rem;
  color: var(--fa-text-secondary);
  margin-bottom: 4px;
}

.fa-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fa-text-primary);
  margin-bottom: 4px;
}

.fa-metric-benchmark {
  font-size: 0.8rem;
  color: var(--fa-text-muted);
}

.fa-executive-insights {
  display: grid;
  gap: 16px;
}

.fa-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--fa-border);
}

.fa-insight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.fa-insight-text {
  line-height: 1.5;
}

/* Income Statement Table */
.fa-income-table {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--fa-border);
  overflow: hidden;
  margin-bottom: 24px;
}

.fa-income-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fa-border-light);
  align-items: center;
}

.fa-income-row:last-child {
  border-bottom: none;
}

.fa-income-header {
  background: var(--fa-bg-section);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fa-income-section {
  background: var(--fa-bg-accent);
  font-weight: 700;
}

.fa-income-total, .fa-income-subtotal {
  background: var(--fa-brand-gold-light);
  font-weight: 700;
}

.fa-income-account {
  font-weight: inherit;
}

/* Benchmark Grid */
.fa-benchmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.fa-benchmark-category h4 {
  margin: 0 0 16px 0;
  color: var(--fa-text-primary);
  font-size: 1.1rem;
}

.fa-benchmark-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--fa-border);
  margin-bottom: 8px;
  align-items: center;
}

.fa-benchmark-label {
  font-weight: 600;
  color: var(--fa-text-primary);
}

.fa-benchmark-your, .fa-benchmark-industry {
  text-align: center;
  font-weight: 600;
}

.fa-benchmark-your {
  color: var(--fa-navy);
}

.fa-benchmark-industry {
  color: var(--fa-text-secondary);
}

.fa-benchmark-status {
  text-align: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.fa-benchmark-status.good {
  background: #dcfce7;
  color: #166534;
}

.fa-benchmark-status.concern {
  background: #fef3c7;
  color: #92400e;
}

.fa-benchmark-insights {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--fa-border);
  padding: 20px;
}

.fa-benchmark-insights h5 {
  margin: 0 0 12px 0;
  color: var(--fa-text-primary);
}

.fa-benchmark-insights ul {
  margin: 0;
  padding-left: 20px;
}

.fa-benchmark-insights li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Cost Analysis */
.fa-cost-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.fa-cost-category h4 {
  margin: 0 0 16px 0;
  color: var(--fa-text-primary);
}

.fa-cost-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--fa-border);
  margin-bottom: 8px;
  align-items: center;
}

.fa-cost-label {
  font-weight: 600;
  color: var(--fa-text-primary);
}

.fa-cost-amount, .fa-cost-percent, .fa-cost-benchmark {
  text-align: center;
  font-weight: 600;
}

.fa-cost-flag {
  text-align: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.fa-cost-flag.Good {
  background: #dcfce7;
  color: #166534;
}

.fa-cost-flag.High {
  background: #fef3c7;
  color: #92400e;
}

.fa-cost-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.fa-cost-recommendations h4 {
  margin: 0 0 16px 0;
  color: var(--fa-text-primary);
  grid-column: 1 / -1;
}

.fa-recommendation {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--fa-border);
  padding: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fa-rec-priority {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.fa-rec-priority.high {
  background: #fee2e2;
  color: #dc2626;
}

.fa-rec-priority.medium {
  background: #fef3c7;
  color: #d97706;
}

.fa-rec-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fa-text-primary);
  margin-bottom: 12px;
}

.fa-rec-detail ul {
  margin: 12px 0;
  padding-left: 20px;
}

.fa-rec-detail li {
  margin-bottom: 6px;
  line-height: 1.4;
}

.fa-rec-savings {
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--fa-brand-gold-light);
  border-radius: 4px;
  font-weight: 600;
  color: var(--fa-navy);
}