/* ============================================================================
   PMDG Technologies — Document & Data OCR Automation Styles
   ========================================================================= */

/* --- Extracted Internal CSS --- */
:root {
    --doc-accent: #3f9cb9;
    --doc-accent-hover: #32839c;
    --doc-accent-glow: rgba(63, 156, 185, 0.25);
    --doc-navy: #01022e;
    --doc-navy-deep: #00011b;
    --doc-bg-soft: #f4f8fb;
    --doc-border: #dfe8f2;
    --doc-card-bg: #ffffff;
    --doc-success: #10b981;
    --doc-warning: #f59e0b;
    --doc-danger: #ef4444;
  }

  .mrp-animated-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  .mrp-section-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
  }
  .mrp-animated-section > .measure {
    position: relative;
    z-index: 1;
  }

  /* Hero Badge */
  .doc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(63, 156, 185, 0.12);
    border: 1px solid rgba(63, 156, 185, 0.35);
    color: #0b6885;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
  }
  .doc-hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3f9cb9;
    box-shadow: 0 0 0 0 rgba(63, 156, 185, 0.7);
    animation: docPulse 2s infinite;
  }
  @keyframes docPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 156, 185, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(63, 156, 185, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(63, 156, 185, 0); }
  }

  /* Feature Pills */
  .doc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }
  .doc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--doc-border);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--doc-navy);
    box-shadow: 0 2px 6px rgba(1, 2, 46, 0.04);
  }
  .doc-pill i {
    width: 15px;
    height: 15px;
    color: var(--doc-accent);
  }
  .doc-pills-break {
    display: none;
    width: 100%;
    height: 0;
    margin: 0;
    border: none;
    padding: 0;
  }

  /* Lead Form Card (Above the fold & bottom) */
  .doc-lead-card {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 14px;
    padding: 1.75rem 1.85rem;
    box-shadow: 0 16px 36px rgba(1, 2, 46, 0.09);
    position: relative;
    overflow: hidden;
  }
  .doc-lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3f9cb9, #01022e);
  }
  .doc-lead-card h3 {
    color: var(--doc-navy);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }
  .doc-lead-card p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .doc-input-group {
    margin-bottom: 0.75rem;
    text-align: left;
  }
  .doc-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
  }
  .doc-input-group input,
  .doc-input-group select,
  .doc-input-group textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 7px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.875rem;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;    resize: vertical;

  }
  .doc-input-group input:focus,
  .doc-input-group select:focus,
  .doc-input-group textarea:focus {
    border-color: var(--doc-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--doc-accent-glow);
  }

  .doc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    background: var(--doc-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(63, 156, 185, 0.25);
  }
  .doc-btn-primary:hover {
    background: var(--doc-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(63, 156, 185, 0.35);
  }

  /* Document OCR & AI Pipeline Console Frame */
  .doc-console-frame {
    background: #01022e;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(1, 2, 46, 0.25);
    overflow: hidden;
    margin-top: 1rem;
    color: #f8fafc;
  }
  .doc-console-header {
    background: #00011b;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .doc-console-mobile-title {
    display: none;
  }
  .doc-console-dots {
    display: flex;
    gap: 0.35rem;
  }
  .doc-console-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }
  .doc-console-body {
    padding: 1.15rem;
  }

  /* OCR Laser Scan Bar */
  .doc-scan-line-container {
    position: relative;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    overflow: hidden;
  }
  .doc-scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    box-shadow: 0 0 10px #38bdf8;
    animation: docScanMove 2.6s ease-in-out infinite alternate;
  }
  @keyframes docScanMove {
    0% { top: 0%; }
    100% { top: 96%; }
  }

  /* Extracted Key-Value Grid */
  .doc-kv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }
  .doc-kv-card {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
  }
  .doc-kv-label {
    color: #94a3b8;
    font-size: 0.675rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
  }
  .doc-kv-val {
    font-size: 0.925rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  /* Pipeline Stage Steps */
  .doc-pipe-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.725rem;
    gap: 0.4rem;
  }
  .doc-pipe-step {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #cbd5e1;
  }
  .doc-pipe-step.done {
    color: #4ade80;
    font-weight: 600;
  }
  .doc-pipe-arrow {
    color: #64748b;
    font-size: 0.75rem;
  }

  /* Problem Cards Grid */
  .doc-problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .doc-problem-card {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 4px 15px rgba(1, 2, 46, 0.035);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .doc-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(1, 2, 46, 0.08);
    border-color: rgba(63, 156, 185, 0.45);
  }
  .doc-problem-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(239, 68, 68, 0.09);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
  }

  /* Solution Feature Blocks */
  .doc-solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .doc-solution-card {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 14px;
    padding: 1.6rem 1.25rem;
    box-shadow: 0 4px 16px rgba(1, 2, 46, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .doc-solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(1, 2, 46, 0.09);
    border-color: rgba(63, 156, 185, 0.5);
  }
  .doc-solution-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }
  .doc-solution-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(63, 156, 185, 0.12);
    color: var(--doc-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .doc-benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.775rem;
    font-weight: 700;
    margin-top: 1rem;
    align-self: flex-start;
  }

  /* Process Steps Grid */
  .doc-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
  }
  .doc-step-card {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 4px 14px rgba(1, 2, 46, 0.035);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .doc-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(1, 2, 46, 0.08);
  }
  .doc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--doc-navy);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
  }

  /* Benefits Grid */
  .doc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .doc-benefit-card {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 12px;
    padding: 1.05rem 1.15rem;
    box-shadow: 0 4px 14px rgba(1, 2, 46, 0.035);
    transition: all 0.25s ease;
  }
  .doc-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(1, 2, 46, 0.08);
    border-color: rgba(63, 156, 185, 0.45);
  }

  /* FAQ Accordion */
  .doc-faq-item {
    background: #ffffff;
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .doc-faq-item:hover {
    border-color: rgba(63, 156, 185, 0.45);
  }
  .doc-faq-question {
    padding: 1.2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--doc-navy);
    font-size: 1rem;
    user-select: none;
  }
  .doc-faq-icon {
    transition: transform 0.25s ease;
    color: var(--doc-accent);
  }
  .doc-faq-answer {
    padding: 0 1.4rem 1.2rem 1.4rem;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.65;
    display: none;
  }
  .doc-faq-item.active .doc-faq-answer {
    display: block;
  }
  .doc-faq-item.active .doc-faq-icon {
    transform: rotate(180deg);
  }

  /* Responsive Breakpoints */
  @media (max-width: 992px) {
    /* Hide top hero contact form in mobile & tablet view */
    #hero-lead-form {
      display: none !important;
    }
    /* Hide FAQ accordion column in mobile & tablet view */
    .doc-faq-col,
    #faq-section {
      display: none !important;
    }
    .doc-hero-grid {
      grid-template-columns: 1fr !important;
      gap: 2.5rem !important;
    }
    .doc-problem-grid,
    .doc-solution-grid,
    .doc-steps-grid,
    .doc-benefits-grid {
      grid-template-columns: 1fr !important;
    }
    .doc-bottom-consult-grid {
      grid-template-columns: 1fr !important;
      gap: 2.5rem !important;
    }
    .doc-kv-grid {
      grid-template-columns: repeat(3, 1fr) !important;
    }
    .doc-pipe-steps {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
    }
    .doc-pipe-arrow {
      display: none;
    }
    .doc-pills-break {
      display: block !important;
      width: 100% !important;
      height: 0 !important;
      flex-basis: 100% !important;
      order: 3 !important;
    }
    .doc-pill-ocr { order: 1 !important; }
    .doc-pill-workflow { order: 2 !important; }
    .doc-pill-ai { order: 4 !important; }
  }

/* --- Extracted Inline Utility Classes --- */
.doc-s-1 { padding-top: 4.85rem; padding-bottom: 1.25rem; }
.doc-s-2 { display: grid; grid-template-columns: 1.22fr 1fr; gap: 2.25rem; align-items: flex-start; position: relative; z-index: 1; }
.doc-s-3 { margin-top: 0.35rem !important; margin-bottom: 0.75rem; font-size: clamp(1.85rem, 1.1rem + 2.8vw, 3.4rem); line-height: 1.15; color: var(--doc-navy); font-weight: 800; }
.doc-s-4 { background: linear-gradient(135deg, #01022e 20%, #3f9cb9 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.doc-s-5 { margin-top: 0.5rem; font-size: 1.05rem; line-height: 1.6; color: #475569; max-width: 58ch; margin-bottom: 1rem; }
.doc-s-6 { background: #ef4444; }
.doc-s-7 { background: #f59e0b; }
.doc-s-8 { background: #10b981; }
.doc-s-9 { font-size: 0.75rem; color: #94a3b8; font-family: monospace; display: flex; align-items: center; gap: 0.45rem; }
.doc-s-10 { width: 14px; height: 14px; color: #3f9cb9; }
.doc-s-11 { font-size: 0.7rem; background: rgba(16, 185, 129, 0.2); color: #6ee7b7; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.doc-s-12 { display: flex; justify-content: space-between; align-items: center; font-size: 0.775rem; }
.doc-s-13 { display: flex; align-items: center; gap: 0.5rem; }
.doc-s-14 { width: 18px; height: 18px; color: #38bdf8; }
.doc-s-15 { color: #fff; }
.doc-s-16 { color: #94a3b8; font-size: 0.7rem; }
.doc-s-17 { text-align: right; }
.doc-s-18 { background: rgba(56, 189, 248, 0.18); color: #38bdf8; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.doc-s-19 { color: #38bdf8; }
.doc-s-20 { width: 13px; height: 13px; }
.doc-s-21 { font-size: 0.675rem; color: #10b981; margin-top: 0.2rem; }
.doc-s-22 { color: #ffffff; }
.doc-s-23 { font-size: 0.675rem; color: #94a3b8; margin-top: 0.2rem; }
.doc-s-24 { color: #4ade80; }
.doc-s-25 { color: #38bdf8; font-weight: 600; }
.doc-s-26 { display:none !important; }
.doc-s-27 { margin-top: 0.5rem; }
.doc-s-28 { font-size: 0.72rem; color: #94a3b8; text-align: center; margin-top: 0.6rem; }
.doc-s-29 { padding: 1.5rem 0; background: var(--doc-bg-soft); border-top: 1px solid var(--doc-border); border-bottom: 1px solid var(--doc-border); }
.doc-s-30 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.doc-s-31 { font-size: 0.85rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 0.5rem; }
.doc-s-32 { width: 16px; height: 16px; color: var(--doc-accent); }
.doc-s-33 { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.doc-s-34 { font-size: 0.775rem; background: #ffffff; }
.doc-s-35 { padding: 2.25rem 0; background: #ffffff; }
.doc-s-36 { max-width: 820px; margin: 0 auto 2.25rem auto; text-align: center; }
.doc-s-37 { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.25); color: #dc2626; }
.doc-s-38 { width: 14px; height: 14px; }
.doc-s-39 { font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem); color: var(--doc-navy); font-weight: 800; line-height: 1.25; margin-top: 0.5rem; margin-bottom: 0.85rem; }
.doc-s-40 { color: #64748b; font-size: 1.05rem; line-height: 1.6; }
.doc-s-41 { width: 22px; height: 22px; }
.doc-s-42 { color: var(--doc-navy); font-size: 1.08rem; font-weight: 700; margin-bottom: 0.35rem; }
.doc-s-43 { color: #475569; font-size: 0.88rem; line-height: 1.5; margin: 0; }
.doc-s-44 { padding: 2.25rem 0; background: var(--doc-bg-soft); }
.doc-s-45 { width: 24px; height: 24px; }
.doc-s-46 { color: var(--doc-navy); font-size: 1.08rem; font-weight: 700; margin: 0; line-height: 1.25; }
.doc-s-47 { color: #475569; font-size: 0.88rem; line-height: 1.55; margin-bottom: 0.75rem; }
.doc-s-48 { color: #64748b; font-size: 0.82rem; line-height: 1.55; padding-left: 1.15rem; margin: 0; }
.doc-s-49 { color: var(--doc-navy); font-size: 1.08rem; font-weight: 700; margin-bottom: 0.35rem; }
.doc-s-50 { color: #475569; font-size: 0.875rem; line-height: 1.5; margin: 0; }
.doc-s-51 { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.6rem; }
.doc-s-52 { width: 22px; height: 22px; color: var(--doc-accent); }
.doc-s-53 { color: var(--doc-navy); font-size: 1.08rem; font-weight: 700; margin: 0; }
.doc-s-54 { color: #475569; font-size: 0.875rem; line-height: 1.5; margin: 0; }
.doc-s-55 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.doc-s-56 { border-left: 4px solid var(--doc-accent); }
.doc-s-57 { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--doc-accent); margin-bottom: 0.35rem; }
.doc-s-58 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.75rem; align-items: flex-start; position: relative; z-index: 1; }
.doc-s-59 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.2rem); color: var(--doc-navy); font-weight: 800; line-height: 1.25; margin-top: 0.5rem; margin-bottom: 1.5rem; }
.doc-s-60 { width: 18px; height: 18px; }
.doc-s-61 { box-shadow: 0 20px 45px rgba(1, 2, 46, 0.1); }
.doc-s-62 { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: #64748b; }
.doc-s-63 { display: flex; gap: 1.5rem; }
.doc-s-64 { color: #64748b; text-decoration: none; transition: color 0.2s; }
.doc-s-64:hover { color: #01022e; }

/* ============================================================================
   PMDG Technologies — Document Automation Responsive Mobile Typography & Spacing
   ========================================================================= */

@media (max-width: 768px) {
  body {
    font-size: 0.85rem !important;
  }

  /* Hide top hero contact form in mobile view */
  #hero-lead-form {
    display: none !important;
  }

  /* Hide how it works section in mobile view */
  #how-it-works {
    display: none !important;
  }

  /* Hide FAQ accordion column in mobile view */
  .doc-faq-col,
  #faq-section {
    display: none !important;
  }

  /* Hero Section Spacing — flush offset right below fixed navbar */
  .hero-section,
  .doc-s-1 {
    padding-top: 4.45rem !important;
    padding-bottom: 0.75rem !important;
  }
  .doc-hero-grid {
    gap: 0.95rem !important;
  }
  .doc-bottom-consult-grid {
    gap: 0.95rem !important;
  }

  /* Section Spacing */
  .doc-s-29 {
    padding: 0.65rem 0 !important;
  }
  .doc-s-35,
  .doc-s-44 {
    padding: 1.25rem 0 !important;
  }
  .doc-s-36 {
    margin: 0 auto 0.95rem auto !important;
  }

  /* Hero Badge */
  .doc-hero-badge {
    font-size: 0.72rem !important;
    padding: 0.22rem 0.6rem !important;
    letter-spacing: 0.03em !important;
    gap: 0.35rem !important;
    max-width: 100% !important;
    margin-bottom: 0.22rem !important;
  }
  .doc-hero-badge .pulse-dot {
    width: 6px !important;
    height: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Hero Title & Paragraph */
  .hero-title,
  .doc-s-3 {
    font-size: clamp(1.4rem, 1.1rem + 1.6vw, 1.95rem) !important;
    line-height: 1.18 !important;
    margin-top: 0.12rem !important;
    margin-bottom: 0.3rem !important;
  }
  .hero-copy,
  .doc-s-5 {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.45rem !important;
  }

  /* Feature Pills */
  .doc-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.32rem !important;
    margin-bottom: 0.55rem !important;
  }
  .doc-pill {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.72rem !important;
    padding: 0.22rem 0.52rem !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .doc-pill i {
    width: 13px !important;
    height: 13px !important;
  }
  .doc-pills-break {
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    flex-basis: 100% !important;
    order: 3 !important;
  }
  .doc-pill-ocr { order: 1 !important; }
  .doc-pill-workflow { order: 2 !important; }
  .doc-pill-ai { order: 4 !important; }

  /* IDP Console Header & Details */
  .doc-console-frame {
    margin-top: 0.4rem !important;
    border-radius: 10px !important;
  }
  .doc-console-header {
    padding: 0.35rem 0.55rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
    overflow: hidden !important;
  }
  .doc-console-dots {
    display: flex !important;
    flex-shrink: 0 !important;
    gap: 0.25rem !important;
  }
  .doc-s-9 {
    font-size: 0.62rem !important;
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  .doc-console-full-title {
    display: none !important;
  }
  .doc-console-mobile-title {
    display: inline !important;
  }
  .doc-ocr-conf-word {
    display: none !important;
  }
  .doc-s-10 {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 0.2rem !important;
    width: 12px !important;
    height: 12px !important;
  }
  .doc-s-11 {
    font-size: 0.56rem !important;
    padding: 2px 5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .doc-console-body {
    padding: 0.5rem !important;
  }
  .doc-scan-line-container {
    padding: 0.35rem 0.55rem !important;
    margin-bottom: 0.35rem !important;
    border-radius: 6px !important;
  }
  .doc-s-12 {
    font-size: 0.68rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
    min-width: 0 !important;
  }
  .doc-s-13 {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .doc-s-14 {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }
  .doc-s-15 {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    min-width: 0 !important;
  }
  .doc-s-16 {
    display: none !important;
  }
  .doc-s-17 {
    flex-shrink: 0 !important;
  }
  .doc-s-18 {
    font-size: 0.58rem !important;
    padding: 2px 5px !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }
  .doc-kv-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.3rem !important;
    margin-bottom: 0.35rem !important;
  }
  .doc-kv-card {
    padding: 0.32rem 0.2rem !important;
    border-radius: 6px !important;
    text-align: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .doc-kv-label {
    font-size: 0.5rem !important;
    margin-bottom: 0.08rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: 0 !important;
    display: block !important;
  }
  .doc-kv-val {
    font-size: 0.68rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    gap: 0.15rem !important;
    display: flex !important;
  }
  .doc-kv-val i,
  .doc-kv-val svg {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
  }
  .doc-s-21,
  .doc-s-23 {
    display: none !important;
  }
  .doc-pipe-steps {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    font-size: 0.6rem !important;
    padding: 0.32rem 0.45rem !important;
    gap: 0.2rem 0.4rem !important;
    border-radius: 6px !important;
  }
  .doc-pipe-step {
    gap: 0.22rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
  }
  .doc-pipe-step i,
  .doc-pipe-step svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }
  .doc-pipe-step span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .doc-pipe-arrow {
    display: none !important;
  }

  /* Lead Card Form */
  .doc-lead-card {
    padding: 1.1rem 1rem !important;
  }
  .doc-lead-card h3 {
    font-size: 1.15rem !important;
    margin-bottom: 0.2rem !important;
  }
  .doc-lead-card p {
    font-size: 0.82rem !important;
    margin-bottom: 0.55rem !important;
  }
  .doc-input-group {
    margin-bottom: 0.45rem !important;
  }
  .doc-input-group label {
    font-size: 0.76rem !important;
    margin-bottom: 0.18rem !important;
  }
  .doc-input-group input,
  .doc-input-group select {
    font-size: 0.84rem !important;
    padding: 0.45rem 0.65rem !important;
  }
  .doc-btn-primary {
    font-size: 0.88rem !important;
    padding: 0.62rem 1rem !important;
  }
  .doc-s-27 {
    margin-top: 0.3rem !important;
  }
  .doc-s-28 {
    font-size: 0.68rem !important;
    margin-top: 0.35rem !important;
  }

  /* Strip / Integration Labels */
  .doc-s-31 {
    font-size: 0.78rem !important;
  }
  .doc-s-34 {
    font-size: 0.72rem !important;
  }

  /* Section Headings & Cards */
  .doc-s-39 {
    font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem) !important;
    line-height: 1.22 !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.35rem !important;
  }
  .doc-s-40 {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  .doc-problem-grid,
  .doc-solution-grid,
  .doc-steps-grid,
  .doc-benefits-grid {
    gap: 0.75rem !important;
  }
  .doc-problem-card {
    padding: 0.95rem 0.85rem !important;
  }
  .doc-problem-icon {
    margin-bottom: 0.55rem !important;
    width: 36px !important;
    height: 36px !important;
  }
  .doc-s-42,
  .doc-problem-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.25rem !important;
  }
  .doc-s-43,
  .doc-problem-card p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }
  .doc-solution-card {
    padding: 1.1rem 1rem !important;
  }
  .doc-solution-header {
    margin-bottom: 0.55rem !important;
  }
  .doc-solution-icon {
    width: 38px !important;
    height: 38px !important;
  }
  .doc-s-46,
  .doc-solution-card h3 {
    font-size: 1.1rem !important;
  }
  .doc-s-47,
  .doc-solution-card p {
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0.45rem !important;
  }
  .doc-s-48,
  .doc-solution-card ul {
    display: none !important;
  }
  .doc-benefit-tag {
    font-size: 0.74rem !important;
    margin-top: 0.55rem !important;
    padding: 0.24rem 0.55rem !important;
  }
  .doc-step-card {
    padding: 0.95rem 0.85rem !important;
  }
  .doc-step-num {
    margin-bottom: 0.55rem !important;
    width: 28px !important;
    height: 28px !important;
  }
  .doc-s-49,
  .doc-step-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.25rem !important;
  }
  .doc-s-50,
  .doc-step-card p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }
  .doc-benefit-card {
    padding: 0.95rem 0.85rem !important;
  }
  .doc-s-51 {
    margin-bottom: 0.45rem !important;
  }
  .doc-s-53,
  .doc-benefit-card h3 {
    font-size: 1.05rem !important;
  }
  .doc-s-54,
  .doc-benefit-card p {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }
  .doc-s-55 {
    grid-template-columns: 1fr !important;
  }
  .doc-s-59 {
    font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.7rem) !important;
    line-height: 1.22 !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.7rem !important;
  }
  .doc-faq-item {
    margin-bottom: 0.45rem !important;
  }
  .doc-faq-question {
    font-size: 0.92rem !important;
    padding: 0.75rem 0.9rem !important;
  }
  .doc-faq-answer {
    font-size: 0.84rem !important;
    padding: 0 0.9rem 0.75rem 0.9rem !important;
  }
}

@media (max-width: 640px) {
  /* Hero Spacing */
  .hero-section,
  .doc-s-1 {
    padding-top: 4.3rem !important;
    padding-bottom: 0.55rem !important;
  }
  .doc-hero-grid {
    gap: 0.75rem !important;
  }
  .doc-s-35,
  .doc-s-44 {
    padding: 0.95rem 0 !important;
  }
  .doc-s-36 {
    margin-bottom: 0.65rem !important;
  }

  /* Hero Badge */
  .doc-hero-badge {
    font-size: 0.65rem !important;
    padding: 0.18rem 0.52rem !important;
    letter-spacing: 0.025em !important;
    gap: 0.28rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.18rem !important;
  }
  .doc-hero-badge .pulse-dot {
    width: 5px !important;
    height: 5px !important;
  }

  /* Hero Headline & Copy */
  .hero-title,
  .doc-s-3 {
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.6rem) !important;
    line-height: 1.18 !important;
    margin-top: 0.1rem !important;
    margin-bottom: 0.22rem !important;
  }
  .hero-copy,
  .doc-s-5 {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin-top: 0.12rem !important;
    margin-bottom: 0.35rem !important;
  }

  /* Feature Pills */
  .doc-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.24rem !important;
    margin-bottom: 0.45rem !important;
  }
  .doc-pill {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.62rem !important;
    padding: 0.16rem 0.38rem !important;
    gap: 0.22rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .doc-pill i {
    width: 11px !important;
    height: 11px !important;
  }

  /* Console */
  .doc-s-9 {
    font-size: 0.64rem !important;
  }

  /* Lead Card */
  .doc-lead-card {
    padding: 0.85rem 0.75rem !important;
  }
  .doc-lead-card h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.18rem !important;
  }
  .doc-lead-card p {
    font-size: 0.78rem !important;
    margin-bottom: 0.45rem !important;
  }
  .doc-input-group {
    margin-bottom: 0.4rem !important;
  }
  .doc-problem-grid,
  .doc-solution-grid,
  .doc-steps-grid,
  .doc-benefits-grid {
    gap: 0.6rem !important;
  }
}

/* Extra small mobile screens (e.g. 320px - 380px) */
@media (max-width: 380px) {
  body {
    font-size: 0.8rem !important;
  }

  /* Hero Section Spacing — flush offset right below fixed navbar */
  .hero-section,
  .doc-s-1 {
    padding-top: 4.18rem !important;
    padding-bottom: 0.35rem !important;
  }
  .doc-hero-grid {
    gap: 0.45rem !important;
  }
  .doc-bottom-consult-grid {
    gap: 0.6rem !important;
  }

  /* Section Spacing */
  .doc-s-29 {
    padding: 0.45rem 0 !important;
  }
  .doc-s-35,
  .doc-s-44 {
    padding: 0.75rem 0 !important;
  }
  .doc-s-36 {
    margin-bottom: 0.45rem !important;
  }

  /* Hero Badge — Fits effortlessly on a single line at 320px */
  .doc-hero-badge {
    font-size: 0.58rem !important;
    padding: 0.15rem 0.4rem !important;
    letter-spacing: 0.02em !important;
    gap: 0.22rem !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    margin-bottom: 0.14rem !important;
  }
  .doc-hero-badge .pulse-dot {
    width: 4px !important;
    height: 4px !important;
  }

  /* Hero Headline & Copy */
  .hero-title,
  .doc-s-3 {
    font-size: clamp(1.1rem, 0.9rem + 1vw, 1.32rem) !important;
    line-height: 1.16 !important;
    margin-top: 0.05rem !important;
    margin-bottom: 0.16rem !important;
  }
  .hero-copy,
  .doc-s-5 {
    font-size: 0.76rem !important;
    line-height: 1.38 !important;
    margin-top: 0.06rem !important;
    margin-bottom: 0.22rem !important;
  }

  /* Feature Pills */
  .doc-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.16rem !important;
    margin-bottom: 0.28rem !important;
  }
  .doc-pill {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.53rem !important;
    padding: 0.12rem 0.24rem !important;
    gap: 0.14rem !important;
    letter-spacing: -0.015em !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .doc-pill i {
    width: 9px !important;
    height: 9px !important;
  }

  /* Console */
  .doc-console-frame {
    margin-top: 0.2rem !important;
    border-radius: 8px !important;
  }
  .doc-console-header {
    padding: 0.26rem 0.4rem !important;
    gap: 0.3rem !important;
  }
  .doc-s-9 {
    font-size: 0.56rem !important;
  }
  .doc-s-11 {
    font-size: 0.5rem !important;
    padding: 1px 4px !important;
  }
  .doc-console-body {
    padding: 0.35rem !important;
  }
  .doc-scan-line-container {
    padding: 0.25rem 0.35rem !important;
    margin-bottom: 0.25rem !important;
  }
  .doc-s-12 {
    font-size: 0.6rem !important;
  }
  .doc-s-15 {
    font-size: 0.62rem !important;
  }
  .doc-s-16 {
    display: none !important;
  }
  .doc-s-18 {
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
  }
  .doc-kv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.2rem !important;
    margin-bottom: 0.25rem !important;
  }
  .doc-kv-card {
    padding: 0.25rem 0.12rem !important;
  }
  .doc-kv-label {
    font-size: 0.46rem !important;
    margin-bottom: 0.04rem !important;
  }
  .doc-kv-val {
    font-size: 0.62rem !important;
    gap: 0.1rem !important;
  }
  .doc-kv-val i,
  .doc-kv-val svg {
    width: 9px !important;
    height: 9px !important;
  }
  .doc-s-21,
  .doc-s-23 {
    display: none !important;
  }
  .doc-pipe-steps {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    font-size: 0.52rem !important;
    padding: 0.22rem 0.35rem !important;
    gap: 0.15rem 0.25rem !important;
  }
  .doc-pipe-step i,
  .doc-pipe-step svg {
    width: 9px !important;
    height: 9px !important;
  }
  .doc-pipe-arrow {
    display: none !important;
  }

  /* Lead Form Card */
  .doc-lead-card {
    padding: 0.65rem 0.55rem !important;
  }
  .doc-lead-card h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.15rem !important;
  }
  .doc-lead-card p {
    font-size: 0.72rem !important;
    margin-bottom: 0.35rem !important;
  }
  .doc-input-group {
    margin-bottom: 0.32rem !important;
  }
  .doc-input-group label {
    font-size: 0.68rem !important;
    margin-bottom: 0.1rem !important;
  }
  .doc-input-group input,
  .doc-input-group select {
    font-size: 0.74rem !important;
    padding: 0.32rem 0.45rem !important;
  }
  .doc-btn-primary {
    font-size: 0.78rem !important;
    padding: 0.45rem 0.75rem !important;
  }
  .doc-s-27 {
    margin-top: 0.2rem !important;
  }
  .doc-s-28 {
    font-size: 0.6rem !important;
    margin-top: 0.25rem !important;
  }

  /* Section Headings & Cards */
  .doc-s-39 {
    font-size: clamp(1.12rem, 0.92rem + 0.8vw, 1.32rem) !important;
    line-height: 1.2 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.25rem !important;
  }
  .doc-s-40 {
    font-size: 0.76rem !important;
  }
  .doc-problem-grid,
  .doc-solution-grid,
  .doc-steps-grid,
  .doc-benefits-grid {
    gap: 0.45rem !important;
  }
  .doc-problem-card {
    padding: 0.65rem 0.55rem !important;
  }
  .doc-problem-icon {
    margin-bottom: 0.35rem !important;
    width: 28px !important;
    height: 28px !important;
  }
  .doc-s-42,
  .doc-problem-card h3 {
    font-size: 0.92rem !important;
    margin-bottom: 0.2rem !important;
  }
  .doc-s-43,
  .doc-problem-card p {
    font-size: 0.74rem !important;
  }
  .doc-solution-card {
    padding: 0.65rem 0.55rem !important;
  }
  .doc-solution-header {
    margin-bottom: 0.35rem !important;
    gap: 0.45rem !important;
  }
  .doc-solution-icon {
    width: 30px !important;
    height: 30px !important;
  }
  .doc-s-46,
  .doc-solution-card h3 {
    font-size: 0.95rem !important;
  }
  .doc-s-47,
  .doc-solution-card p {
    font-size: 0.76rem !important;
    margin-bottom: 0.32rem !important;
  }
  .doc-s-48,
  .doc-solution-card ul {
    display: none !important;
  }
  .doc-benefit-tag {
    font-size: 0.64rem !important;
    padding: 0.16rem 0.4rem !important;
    margin-top: 0.35rem !important;
  }
  .doc-step-card {
    padding: 0.65rem 0.55rem !important;
  }
  .doc-step-num {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.65rem !important;
    margin-bottom: 0.35rem !important;
  }
  .doc-s-49,
  .doc-step-card h3 {
    font-size: 0.92rem !important;
    margin-bottom: 0.2rem !important;
  }
  .doc-s-50,
  .doc-step-card p {
    font-size: 0.74rem !important;
  }
  .doc-benefit-card {
    padding: 0.65rem 0.55rem !important;
  }
  .doc-s-51 {
    margin-bottom: 0.32rem !important;
  }
  .doc-s-53,
  .doc-benefit-card h3 {
    font-size: 0.92rem !important;
  }
  .doc-s-54,
  .doc-benefit-card p {
    font-size: 0.74rem !important;
  }
  .doc-s-57 {
    font-size: 0.6rem !important;
  }
  .doc-s-59 {
    font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.3rem) !important;
    line-height: 1.2 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.45rem !important;
  }
  .doc-faq-item {
    margin-bottom: 0.35rem !important;
  }
  .doc-faq-question {
    font-size: 0.8rem !important;
    padding: 0.55rem 0.7rem !important;
  }
  .doc-faq-answer {
    font-size: 0.74rem !important;
    padding: 0 0.7rem 0.55rem 0.7rem !important;
  }
}

/* ==========================================================================
   ENTERPRISE TRUST & CLIENT LOGO WALL
   ========================================================================== */
.doc-client-wall-section {
  padding: 4.5rem 0;
  position: relative;
  scroll-margin-top: 5rem;
  background: linear-gradient(180deg, var(--paper, #ffffff) 0%, var(--paper-sunken, #f8fafc) 100%);
}

.doc-client-wall-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.doc-badge-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.doc-client-wall-title {
  font-size: clamp(1.65rem, 1.25rem + 1.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--doc-navy, var(--fg));
  margin-bottom: 1rem;
}

.doc-client-wall-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--fg-muted, #64748b);
  max-width: 720px;
  margin: 0 auto;
}

.doc-client-wall-card {
  background: var(--paper, #ffffff);
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 12px 36px -12px rgba(1, 2, 46, 0.08);
  overflow: hidden;
  position: relative;
}

:root[data-theme="dark"] .doc-client-wall-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.45);
}

.doc-client-wall-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--rule, #e2e8f0);
  background: var(--paper-sunken, #f8fafc);
}

:root[data-theme="dark"] .doc-client-wall-subhead {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.doc-client-wall-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--doc-accent, #3f9cb9);
}

.doc-client-wall-badge i {
  width: 15px;
  height: 15px;
}

.doc-client-wall-subtext {
  font-size: 0.84rem;
  color: var(--fg-muted, #64748b);
  font-weight: 500;
}

.doc-client-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background-color: var(--rule, #e2e8f0);
}

:root[data-theme="dark"] .doc-client-logo-grid {
  background-color: rgba(255, 255, 255, 0.08);
}

.doc-logo-tile {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.25rem;
  min-height: 86px;
  transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.25s ease;
  position: relative;
}

:root[data-theme="dark"] .doc-logo-tile {
  background: #f0f4f8;
}

.doc-logo-tile:hover {
  background: #ffffff;
  z-index: 2;
  box-shadow: inset 0 0 0 1px var(--doc-accent, #3f9cb9), 0 4px 16px rgba(1, 2, 46, 0.08);
}

.doc-logo-tile img {
  height: 2.1rem;
  max-width: 82%;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease, opacity 0.25s ease;
}

.doc-logo-tile:hover img {
  transform: scale(1.08);
  filter: none;
  opacity: 1;
}

.doc-client-erp-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  background: var(--paper-sunken, #f8fafc);
  border-top: 1px solid var(--rule, #e2e8f0);
}

:root[data-theme="dark"] .doc-client-erp-strip {
  background: rgba(255, 255, 255, 0.03);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.doc-client-erp-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--doc-navy, var(--fg));
}

.doc-client-erp-label i {
  width: 14px;
  height: 14px;
  color: var(--doc-accent, #3f9cb9);
}

.doc-client-erp-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.doc-erp-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--paper, #ffffff);
  border: 1px solid var(--rule, #e2e8f0);
  color: var(--fg-muted, #64748b);
  letter-spacing: 0.01em;
}

:root[data-theme="dark"] .doc-erp-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--fg-muted, #64748b);
}

@media (max-width: 900px) {
  .doc-client-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .doc-logo-tile {
    padding: 1.25rem 0.9rem;
    min-height: 74px;
  }
  .doc-logo-tile img {
    height: 1.85rem;
  }
  .doc-client-wall-subhead {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .doc-client-wall-section {
    padding: 2.25rem 0 !important;
  }
  .doc-client-wall-head {
    margin-bottom: 1.4rem !important;
  }
  .doc-client-wall-title {
    font-size: 1.22rem !important;
    line-height: 1.28 !important;
    margin-bottom: 0.5rem !important;
  }
  .doc-client-wall-desc {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }
  .doc-client-wall-subhead {
    padding: 0.85rem 1rem !important;
    flex-direction: column;
    gap: 0.35rem;
  }
  .doc-client-wall-badge {
    font-size: 0.7rem !important;
  }
  .doc-client-wall-subtext {
    font-size: 0.72rem !important;
  }
  .doc-client-logo-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .doc-logo-tile {
    padding: 0.85rem 0.45rem !important;
    min-height: 58px !important;
  }
  .doc-logo-tile img {
    height: 1.45rem !important;
    max-width: 86% !important;
  }
  .doc-client-erp-strip {
    padding: 0.75rem 0.85rem !important;
    flex-direction: column;
    gap: 0.45rem;
  }
  .doc-client-erp-label {
    font-size: 0.74rem !important;
  }
  .doc-client-erp-tags {
    justify-content: center;
    gap: 0.35rem;
  }
  .doc-erp-pill {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.45rem !important;
  }
}

@media (max-width: 380px) {
  .doc-client-logo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .doc-logo-tile {
    min-height: 52px !important;
  }
  .doc-logo-tile img {
    height: 1.35rem !important;
  }
}



