/* CaseBridge base stylesheet.
   Extracted verbatim from the inline <style> block in managed-service.html so that
   standalone pages can share the same foundation instead of duplicating 60KB of CSS.
   index.html and managed-service.html still carry their own inline copy; this file is
   additive and changes nothing for them.
   Load order matters: this file, then mobile-tuning.css, then casebridge-refinement.css. */

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

    :root {
      --navy-dark: #0b1220;
      --navy: #0f172a;
      --navy-mid: #1e293b;
      --navy-light: #334155;
      --green: #0b62da;
      --green-dim: #0950b3;
      --green-glow: rgba(11, 98, 218, 0.22);
      --white: #ffffff;
      --gray-100: #f8fafc;
      --gray-200: #e2e8f0;
      --gray-300: #94a3b8;
      --gray-400: #64748b;
      --gray-500: #334155;
      --text-primary: #0f172a;
      --text-secondary: #475569;
      --text-muted: #64748b;
      --card-bg: #ffffff;
      --card-border: #e2e8f0;
      --radius: 10px;
      --radius-lg: 16px;
      --shadow: 0 4px 24px rgba(0,0,0,0.08);
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 72px;
      overflow-x: hidden;
      max-width: 100%;
      width: 100%;
      /* Kill iOS Safari rubber-band overscroll on the horizontal axis so the
         page can't briefly drag past the right edge before springing back. */
      overscroll-behavior-x: none;
    }

    body {
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: #ffffff;
      color: var(--text-primary);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      overflow-wrap: break-word;
      word-wrap: break-word;
      max-width: 100%;
      width: 100%;
      position: relative;
      /* Wall: prevent iOS touch scrolling past the horizontal edges even if
         a descendant is wider than the viewport. pan-y allows vertical
         scrolling but disables all horizontal pan/swipe gestures on the
         document body. Per-element overflow-x:auto (e.g. on intentional
         scroll wrappers) still works inside this container. */
      touch-action: pan-y;
      overscroll-behavior-x: none;
    }

    /* Belt-and-suspenders: any direct child of body cannot exceed body width.
       If any future element introduces width or min-width past viewport, this
       rule will clip it at the body's edge rather than expand the document. */
    body > * {
      max-width: 100%;
    }

    a { color: var(--green-dim); text-decoration: none; transition: color 0.2s; }
    a:hover { color: var(--green); }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* ===== Animations ===== */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235,0.6); }
      50%      { opacity: 0.8; box-shadow: 0 0 0 8px rgba(37, 99, 235,0); }
    }
    @keyframes shimmer {
      0%   { background-position: -200% center; }
      100% { background-position: 200% center; }
    }
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50%      { transform: translateY(-8px); }
    }

    .animate-on-scroll {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    .animate-on-scroll.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ===== Buttons ===== */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 32px;
      font-size: 1rem;
      font-weight: 600;
      border-radius: 50px;
      border: 2px solid transparent;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      font-family: inherit;
    }
    .btn-primary {
      background: var(--green);
      color: var(--navy-dark);
      border-color: var(--green);
    }
    .btn-primary:hover {
      background: var(--green-dim);
      border-color: var(--green-dim);
      color: var(--navy-dark);
      transform: translateY(-2px);
      box-shadow: 0 8px 30px var(--green-glow);
    }
    .btn-outline {
      background: transparent;
      color: var(--text-primary);
      border-color: var(--card-border);
    }
    .btn-outline:hover {
      border-color: var(--green);
      color: var(--green);
      transform: translateY(-2px);
    }
    .btn-sm {
      padding: 10px 24px;
      font-size: 0.9rem;
    }

    /* ===== Navigation ===== */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      padding: 16px 0;
      transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
    }
    nav.scrolled {
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(20px);
      box-shadow: 0 2px 20px rgba(0,0,0,0.08);
      padding: 10px 0;
    }
    nav .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1.3rem;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.5px;
    }
    .logo-dot {
      width: 10px; height: 10px;
      background: var(--green);
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }
    .nav-links {
      display: flex;
      align-items: center;
      /* Nowrap at the container level so items never stack onto a second
         row at wider viewports; the 768px breakpoint below switches to
         a mobile column layout when there's genuinely no room. */
      flex-wrap: nowrap;
      /* Responsive gap: shrinks on narrower desktop widths to keep every
         label on one line between ~1024px and the mobile breakpoint. */
      gap: clamp(12px, 1.6vw, 24px);
      list-style: none;
    }
    .nav-links a {
      color: var(--gray-400);
      /* Slightly smaller base + responsive scale so multi-word labels
         ("Managed Service", "How It Works", "Your Deployment", "Try It Free")
         don't wrap onto two lines at tablet widths. */
      font-size: clamp(0.78rem, 0.88vw, 0.9rem);
      font-weight: 500;
      /* Hard nowrap per item â€” stops internal wrapping even on squeezed
         screens. The nav will horizontal-overflow before wrapping. */
      white-space: nowrap;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--text-primary); }
    /* Nav-bar "Try It Free" pill â€” force bold white for contrast against
       the green fill. Overrides the global .btn-primary color so the
       hero CTAs stay untouched (they live outside .nav-links). */
    .nav-links a.btn-primary,
    .nav-links a.btn-primary:hover {
      color: #fff;
      font-weight: 700;
    }
    .nav-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px;
    }
    .nav-toggle span {
      width: 24px; height: 2px;
      background: var(--text-primary);
      border-radius: 2px;
      transition: all 0.3s;
    }

    /* ===== Hero ===== */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      background: linear-gradient(160deg, #ffffff 0%, var(--gray-100) 50%, #ffffff 100%);
      overflow: hidden;
      padding-top: 80px;
    }
    .hero::before {
      content: '';
      position: absolute;
      top: -50%; right: -20%;
      width: 800px; height: 800px;
      background: radial-gradient(circle, rgba(37, 99, 235,0.08) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero::after {
      content: '';
      position: absolute;
      bottom: -30%; left: -10%;
      width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(0,100,200,0.05) 0%, transparent 70%);
      pointer-events: none;
    }
    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      max-width: 850px;
      margin: 0 auto;
      animation: fadeInUp 0.8s ease-out;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 20px;
      border-radius: 50px;
      background: rgba(37, 99, 235,0.1);
      border: 1px solid rgba(37, 99, 235,0.25);
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--green-dim);
      margin-bottom: 28px;
    }
    .hero h1 {
      font-size: clamp(2.2rem, 5vw, 3.6rem);
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -1.5px;
      margin-bottom: 20px;
      color: var(--text-primary);
    }
    .hero h1 span {
      background: linear-gradient(135deg, var(--green-dim) 0%, #0b62da 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero p.subtitle {
      font-size: clamp(1.05rem, 2vw, 1.25rem);
      color: var(--text-secondary);
      max-width: 640px;
      margin: 0 auto 36px;
      line-height: 1.7;
    }
    .hero-ctas {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }
    .trust-badges {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
      flex-wrap: wrap;
      font-size: 0.8rem;
      color: var(--text-secondary);
      letter-spacing: 0.5px;
    }
    .trust-badges span {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .trust-badges .icon { font-size: 1rem; color: var(--green); }
    .hero-vp-pill:hover { background: rgba(37, 99, 235,0.18) !important; border-color: rgba(37, 99, 235,0.45) !important; }

    /* ===== Social Proof / Testimonials ===== */
    .social-proof {
      padding: 80px 0;
      border-top: 1px solid var(--card-border);
      border-bottom: 1px solid var(--card-border);
      background: var(--white);
    }
    .social-proof > .container > p {
      text-align: center;
      font-size: 0.9rem;
      color: var(--gray-400);
      text-transform: uppercase;
      letter-spacing: 2px;
      font-weight: 500;
      margin-bottom: 40px;
    }
    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .testimonial-card {
      background: var(--gray-100);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 32px 28px;
      transition: all 0.35s ease;
    }
    .testimonial-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.06);
      border-color: rgba(37, 99, 235,0.2);
    }
    .testimonial-stars {
      font-size: 1.1rem;
      color: #f59e0b;
      margin-bottom: 16px;
      letter-spacing: 2px;
    }
    .testimonial-quote {
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 20px;
      font-style: italic;
    }
    .testimonial-author {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .testimonial-author strong {
      font-size: 0.9rem;
      color: var(--text-primary);
      font-weight: 600;
    }
    .testimonial-author span {
      font-size: 0.8rem;
      color: var(--gray-400);
    }

    /* ===== Section Titles ===== */
    .section-title {
      text-align: center;
      margin-bottom: 60px;
    }
    .section-title .label {
      display: inline-block;
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--green);
      margin-bottom: 12px;
    }
    .section-title h2 {
      font-size: clamp(1.8rem, 3.5vw, 2.6rem);
      font-weight: 800;
      letter-spacing: -1px;
      line-height: 1.2;
      margin-bottom: 16px;
    }
    .section-title p {
      font-size: 1.05rem;
      color: var(--text-secondary);
      max-width: 600px;
      margin: 0 auto;
    }

    /* ===== Features Grid ===== */
    .features {
      padding: 100px 0;
    }
    .features-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .feature-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 36px 28px;
      transition: all 0.35s ease;
      position: relative;
      overflow: hidden;
    }
    .feature-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--green), transparent);
      opacity: 0;
      transition: opacity 0.35s;
    }
    .feature-card:hover {
      border-color: rgba(37, 99, 235,0.2);
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }
    .feature-card:hover::before { opacity: 1; }
    .feature-icon {
      width: 52px; height: 52px;
      border-radius: 14px;
      background: rgba(37, 99, 235,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      margin-bottom: 20px;
    }
    .feature-card h3 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 10px;
      color: var(--text-primary);
    }
    .feature-card p {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* ===== How It Works ===== */
    .how-it-works {
      padding: 100px 0;
      background: var(--gray-100);
    }
    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 36px;
      position: relative;
    }
    .steps::before {
      content: '';
      position: absolute;
      top: 44px; left: 16%; right: 16%;
      height: 2px;
      background: linear-gradient(90deg, var(--card-border), var(--green-glow), var(--card-border));
    }
    .step {
      text-align: center;
      position: relative;
    }
    .step-number {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: var(--white);
      border: 2px solid var(--green);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--green);
      margin: 0 auto 24px;
      position: relative;
      z-index: 2;
    }
    .step-icon {
      font-size: 2rem;
      margin-bottom: 16px;
    }
    .step h3 {
      font-size: 1.15rem;
      font-weight: 700;
      margin-bottom: 10px;
      color: var(--text-primary);
    }
    .step p {
      font-size: 0.9rem;
      color: var(--text-secondary);
      max-width: 280px;
      margin: 0 auto;
    }

    /* ===== Pricing ===== */
    .pricing {
      padding: 100px 0;
    }
    .pricing-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: start;
    }
    .support-plans-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .pricing-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 40px 32px;
      position: relative;
      transition: all 0.35s ease;
    }
    .pricing-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    }
    .pricing-card.featured {
      border-color: var(--green);
      background: rgba(37, 99, 235,0.04);
      transform: scale(1.04);
    }
    .pricing-card.featured:hover {
      transform: scale(1.04) translateY(-4px);
    }
    .popular-badge {
      position: absolute;
      top: -14px; left: 50%;
      transform: translateX(-50%);
      background: var(--green);
      color: var(--navy-dark);
      font-size: 0.75rem;
      font-weight: 700;
      padding: 5px 20px;
      border-radius: 50px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .pricing-card .tier {
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--green);
      margin-bottom: 12px;
    }
    .pricing-card .price {
      font-size: 2.8rem;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 4px;
      letter-spacing: -1px;
    }
    .pricing-card .price-note {
      font-size: 0.85rem;
      color: var(--gray-400);
      margin-bottom: 28px;
    }
    .pricing-card .divider {
      height: 1px;
      background: var(--card-border);
      margin-bottom: 24px;
    }
    .pricing-card ul {
      list-style: none;
      margin-bottom: 32px;
    }
    .pricing-card ul li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 0.9rem;
      color: var(--text-secondary);
      margin-bottom: 12px;
      line-height: 1.5;
    }
    .pricing-card ul li .check {
      color: var(--green);
      font-weight: 700;
      font-size: 1rem;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .pricing-card .btn { width: 100%; justify-content: center; }

    /* ===== Comparison ===== */
    .comparison {
      padding: 100px 0;
      background: var(--gray-100);
    }
    .comparison-table-wrap {
      overflow-x: auto;
      border-radius: var(--radius-lg);
      border: 1px solid var(--card-border);
      background: var(--card-bg);
      position: relative;
      -webkit-overflow-scrolling: touch;
    }
    .comparison-table-wrap::after {
      content: '';
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 24px;
      background: linear-gradient(to left, rgba(0,0,0,0.06), transparent);
      pointer-events: none;
      opacity: 1;
      transition: opacity 0.3s;
      border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    }
    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 860px;
    }
    .comparison-table thead th {
      padding: 20px 24px;
      text-align: left;
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--gray-400);
      border-bottom: 1px solid var(--card-border);
      background: var(--gray-100);
    }
    .comparison-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
    .comparison-table thead th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
    .comparison-table thead th.highlight {
      color: var(--green);
      background: rgba(37, 99, 235,0.08);
    }
    .comparison-table tbody td {
      padding: 18px 24px;
      font-size: 0.9rem;
      color: var(--text-secondary);
      border-bottom: 1px solid var(--card-border);
    }
    .comparison-table tbody td.highlight {
      color: var(--text-primary);
      font-weight: 600;
      background: rgba(37, 99, 235,0.05);
    }
    .comparison-table tbody tr:last-child td { border-bottom: none; }
    .comparison-table .tag-green {
      display: inline-block;
      background: rgba(37, 99, 235,0.15);
      color: var(--green);
      font-size: 0.78rem;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 50px;
    }
    .comparison-table .tag-red {
      display: inline-block;
      background: rgba(239,68,68,0.12);
      color: #b91c1c;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 50px;
    }

    /* ===== FAQ ===== */
    .faq {
      padding: 100px 0;
    }
    .faq-list {
      max-width: 780px;
      margin: 0 auto;
    }
    .faq-item {
      border: 1px solid var(--card-border);
      border-radius: var(--radius);
      margin-bottom: 12px;
      overflow: hidden;
      background: var(--card-bg);
      transition: border-color 0.3s;
    }
    .faq-item:hover { border-color: rgba(37, 99, 235,0.2); }
    .faq-question {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 22px 28px;
      background: none;
      border: none;
      color: var(--text-primary);
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      text-align: left;
      font-family: inherit;
      line-height: 1.4;
    }
    .faq-question .arrow {
      font-size: 1.2rem;
      color: var(--gray-400);
      transition: transform 0.3s;
      flex-shrink: 0;
      margin-left: 16px;
    }
    .faq-item.open .faq-question .arrow { transform: rotate(180deg); }
    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, padding 0.35s ease;
    }
    .faq-item.open .faq-answer {
      max-height: 1000px;
    }
    .faq-answer-inner {
      padding: 0 28px 22px;
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.7;
    }

    /* ===== CTA Section ===== */
    .cta-section {
      padding: 100px 0;
      text-align: center;
      position: relative;
      overflow: hidden;
      background: var(--gray-100);
    }
    .cta-section::before {
      content: '';
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 100%; max-width: 700px; height: auto; aspect-ratio: 7/4;
      background: radial-gradient(ellipse, rgba(37, 99, 235,0.06) 0%, transparent 70%);
      pointer-events: none;
    }
    .cta-box {
      position: relative;
      z-index: 2;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 64px 48px;
      max-width: 700px;
      margin: 0 auto;
    }
    .cta-box h2 {
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 800;
      margin-bottom: 16px;
      letter-spacing: -0.5px;
      color: var(--text-primary);
    }
    .cta-box p {
      font-size: 1.05rem;
      color: var(--text-secondary);
      margin-bottom: 36px;
      max-width: 480px;
      margin-left: auto;
      margin-right: auto;
    }
    .cta-form {
      display: flex;
      gap: 12px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 20px;
      max-width: 560px;
      margin-left: auto;
      margin-right: auto;
    }
    .cta-form input {
      padding: 14px 24px;
      border-radius: 50px;
      border: 1px solid var(--card-border);
      background: var(--white);
      flex: 1 1 180px;
      min-width: 0;
      color: var(--text-primary);
      font-size: 0.95rem;
      font-family: inherit;
      max-width: 100%;
      outline: none;
      transition: border-color 0.3s;
    }
    .cta-form input::placeholder { color: var(--gray-400); }
    .cta-form input:focus { border-color: var(--green); }
    .cta-form .btn {
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .cta-note {
      font-size: 0.8rem;
      color: var(--gray-400);
    }

    /* ===== Footer ===== */
    footer {
      padding: 48px 0;
      border-top: 1px solid var(--card-border);
    }
    .footer-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 24px;
    }
    .footer-left .logo { margin-bottom: 8px; }
    .footer-left p {
      font-size: 0.8rem;
      color: var(--gray-400);
    }
    .footer-links {
      display: flex;
      gap: 16px 28px;
      list-style: none;
      flex-wrap: wrap;
      justify-content: center;
    }
    .footer-links a {
      font-size: 0.85rem;
      color: var(--gray-400);
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--text-primary); }
    .footer-contact {
      font-size: 0.85rem;
      color: var(--gray-400);
      text-align: right;
    }
    .footer-contact a { color: var(--green); }
    .footer-contact a[href^="mailto"], .footer-contact a[href^="tel"] { display: block; }
    .footer-contact address { font-style: normal; margin-top: 10px; line-height: 1.6; }
    .footer-contact .footer-legal-links { margin-top: 10px; }

    /* ===== Why On-Premise ===== */
    .why-onprem {
      padding: 100px 0;
    }
    .onprem-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
    .onprem-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 36px 28px;
      text-align: center;
      transition: all 0.35s ease;
    }
    .onprem-card:hover {
      border-color: rgba(37, 99, 235,0.2);
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    }
    .onprem-icon {
      width: 64px; height: 64px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      margin: 0 auto 20px;
    }
    .onprem-card h3 {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 12px;
    }
    .onprem-card p {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.7;
    }
    .onprem-card .stat {
      font-size: 2rem;
      font-weight: 800;
      color: var(--green);
      margin-top: 16px;
    }
    .onprem-card .stat-label {
      font-size: 0.75rem;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* ===== Demo Section ===== */
    .demo-section {
      padding: 100px 0;
      background: var(--gray-100);
    }
    .demo-box {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      padding: 48px;
    }
    .demo-box-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
    }
    .demo-info h3 {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 20px;
    }
    .demo-features-list {
      list-style: none;
      margin-bottom: 28px;
    }
    .demo-features-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 0.95rem;
      color: var(--text-secondary);
      margin-bottom: 12px;
      line-height: 1.5;
    }
    .demo-features-list li .check {
      color: var(--green);
      font-weight: 700;
      font-size: 1rem;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .demo-limitations {
      background: var(--gray-100);
      border: 1px solid var(--card-border);
      border-radius: var(--radius);
      padding: 20px 24px;
    }
    .demo-limitations h4 {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--gray-400);
      margin-bottom: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .demo-limitations ul {
      list-style: none;
    }
    .demo-limitations ul li {
      font-size: 0.85rem;
      color: var(--gray-400);
      margin-bottom: 8px;
      padding-left: 16px;
      position: relative;
      line-height: 1.5;
    }
    .demo-limitations ul li::before {
      content: '\2022';
      position: absolute;
      left: 0;
      color: var(--gray-400);
    }
    .demo-form-wrap {
      background: var(--gray-100);
      border: 1px solid var(--card-border);
      border-radius: var(--radius);
      padding: 36px 32px;
    }
    .demo-form-wrap h3 {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
    }
    .demo-form-subtext {
      font-size: 0.9rem;
      color: var(--text-secondary);
      margin-bottom: 24px;
    }
    .demo-field {
      margin-bottom: 14px;
    }
    .demo-field input {
      width: 100%;
      padding: 14px 20px;
      border-radius: var(--radius);
      border: 1px solid var(--card-border);
      background: var(--white);
      color: var(--text-primary);
      font-size: 0.95rem;
      font-family: inherit;
      outline: none;
      transition: border-color 0.3s;
    }
    .demo-field input::placeholder {
      color: #aaa;
    }
    .demo-field input:focus {
      border-color: var(--green);
    }
    .demo-submit-btn {
      width: 100%;
      justify-content: center;
      margin-top: 8px;
      margin-bottom: 16px;
    }
    .demo-form-note {
      font-size: 0.78rem;
      color: var(--gray-400);
      line-height: 1.5;
      text-align: center;
    }
    .demo-form-note a {
      color: var(--green);
    }
    .demo-success {
      text-align: center;
      padding: 32px 0;
    }
    .demo-success .demo-success-icon {
      font-size: 3rem;
      margin-bottom: 16px;
    }
    .demo-success h3 {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
    }
    .demo-success p {
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* ===== Anti-Cloud Section ===== */
    .anti-cloud {
      background: linear-gradient(135deg, #1a0a2e, #0a1628);
      padding: 80px 0;
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    .anti-cloud::before {
      content: '';
      position: absolute;
      top: -40%;
      right: -10%;
      width: 60%;
      height: 160%;
      background: radial-gradient(ellipse, rgba(239,68,60,0.06) 0%, transparent 70%);
    }
    .anti-cloud .section-title h2 { color: #fff; }
    .anti-cloud .section-title p { color: #94a3b8; }
    .anti-cloud .label { background: rgba(231,76,60,0.15); color: #b91c1c; }
    .anti-cloud-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 0.9rem;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.1);
      position: relative;
    }
    .anti-cloud-table th,
    .anti-cloud-table td {
      padding: 14px 20px;
      text-align: left;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .anti-cloud-table thead th {
      background: rgba(0,0,0,0.3);
      color: #94a3b8;
      font-weight: 700;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .anti-cloud-table thead th.hl {
      background: rgba(37, 99, 235,0.15);
      color: var(--green);
    }
    .anti-cloud-table td.hl {
      background: rgba(37, 99, 235,0.06);
    }
    .anti-cloud-table td.them { color: #94a3b8; }
    .anti-cloud-table tr:last-child td { border-bottom: none; }
    .tag-ac-green { color: var(--green); font-weight: 600; }
    .tag-ac-red { color: #b91c1c; }

    /* ===== Video Tutorials ===== */
    .video-tutorials { padding: 80px 0; }
    .video-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
    }
    .video-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: all 0.3s ease;
    }
    .video-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(0,0,0,0.08);
      border-color: var(--green);
    }
    .video-placeholder {
      position: relative;
      width: 100%;
      padding-top: 56.25%;
      background: linear-gradient(135deg, #0a1628, #162447);
    }
    .video-placeholder .play-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 68px;
      height: 68px;
      background: rgba(37, 99, 235,0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.25s;
    }
    .video-placeholder .play-icon:hover {
      background: var(--green);
      transform: translate(-50%, -50%) scale(1.1);
      box-shadow: 0 4px 20px rgba(37, 99, 235,0.4);
    }
    .video-placeholder .play-icon::after {
      content: '';
      border-style: solid;
      border-width: 12px 0 12px 22px;
      border-color: transparent transparent transparent white;
      margin-left: 4px;
    }
    .video-placeholder .badge-coming {
      position: absolute;
      bottom: 12px;
      right: 12px;
      background: rgba(0,0,0,0.6);
      color: #94a3b8;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .video-placeholder .badge-duration {
      position: absolute;
      bottom: 12px;
      left: 12px;
      background: rgba(0,0,0,0.6);
      color: #fff;
      font-size: 0.75rem;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 4px;
    }
    .video-info {
      padding: 20px 24px;
    }
    .video-info h3 {
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .video-info p {
      font-size: 0.88rem;
      color: var(--text-secondary);
    }
    @media (max-width: 640px) {
      .video-grid { grid-template-columns: 1fr; }
    }

    /* ===== EULA Modal ===== */
    .eula-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }
    .eula-overlay.open { display: flex; }
    .eula-modal {
      background: var(--white);
      border-radius: var(--radius-lg);
      max-width: 720px;
      width: 100%;
      max-height: 80vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    }
    .eula-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 24px 32px;
      border-bottom: 1px solid var(--card-border);
    }
    .eula-header h2 {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-primary);
    }
    .eula-close {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: var(--gray-400);
      cursor: pointer;
      padding: 4px 8px;
      line-height: 1;
    }
    .eula-close:hover { color: var(--text-primary); }
    .eula-body {
      padding: 32px;
      overflow-y: auto;
      font-size: 0.85rem;
      color: var(--text-secondary);
      line-height: 1.8;
      white-space: pre-wrap;
      font-family: inherit;
    }

    /* ===== Sentinel AI Paralegal Section ===== */
    .sentinel {
      background: linear-gradient(135deg, #0a1628, #132238 40%, #0d1f3a);
      padding: 100px 0;
      color: #fff;
      position: relative;
      overflow: hidden;
    }
    .sentinel::before {
      content: '';
      position: absolute;
      top: -30%;
      right: -15%;
      width: 50%;
      height: 140%;
      background: radial-gradient(ellipse, rgba(37, 99, 235,0.06) 0%, transparent 70%);
      pointer-events: none;
    }
    .sentinel .section-title h2 { color: #fff; }
    .sentinel .section-title p { color: #94a3b8; }
    .sentinel .label { background: rgba(37, 99, 235,0.12); color: var(--green); }

    /* Chat Demo */
    .sentinel-chat {
      max-width: 680px;
      margin: 0 auto 64px;
      background: rgba(0,0,0,0.25);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }
    .sentinel-chat-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 20px;
      background: rgba(0,0,0,0.2);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      font-size: 0.85rem;
      font-weight: 600;
      color: #fff;
    }
    .sentinel-chat-header .status-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 6px var(--green);
    }
    .sentinel-chat-body {
      padding: 24px 20px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .chat-msg {
      max-width: 88%;
      padding: 14px 18px;
      border-radius: 14px;
      font-size: 0.88rem;
      line-height: 1.65;
    }
    .chat-msg.user {
      align-self: flex-end;
      background: var(--green);
      color: #0a1628;
      font-weight: 500;
      border-bottom-right-radius: 4px;
    }
    .chat-msg.ai {
      align-self: flex-start;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
      color: #e2e8f0;
      border-bottom-left-radius: 4px;
    }
    .chat-msg.ai strong { color: #fff; }
    .chat-msg.ai .briefing-label {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--green);
      margin-bottom: 10px;
    }
    .chat-msg.ai ul {
      list-style: none;
      padding: 0;
      margin: 6px 0 0;
    }
    .chat-msg.ai ul li {
      padding: 4px 0;
      padding-left: 20px;
      position: relative;
    }
    .chat-msg.ai ul li::before {
      content: '';
      position: absolute;
      left: 2px;
      top: 11px;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--green);
    }
    .chat-msg.ai .billing-tag {
      display: inline-block;
      margin-top: 8px;
      padding: 4px 12px;
      background: rgba(37, 99, 235,0.12);
      border-radius: 8px;
      font-weight: 700;
      color: var(--green);
      font-size: 0.85rem;
    }
    .chat-action-card {
      align-self: flex-start;
      max-width: 88%;
      background: rgba(37, 99, 235,0.06);
      border: 1px solid rgba(37, 99, 235,0.2);
      border-radius: 14px;
      padding: 16px 18px;
      font-size: 0.85rem;
      color: #e2e8f0;
    }
    .chat-action-card .action-label {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--green);
      margin-bottom: 8px;
    }
    .chat-action-card p {
      margin-bottom: 12px;
      line-height: 1.5;
    }
    .chat-action-btns {
      display: flex;
      gap: 10px;
    }
    .chat-action-btns .btn-approve,
    .chat-action-btns .btn-decline {
      padding: 8px 20px;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
    }
    .chat-action-btns .btn-approve {
      background: var(--green);
      color: #0a1628;
    }
    .chat-action-btns .btn-approve:hover {
      background: #3B82F6;
      box-shadow: 0 4px 16px rgba(37, 99, 235,0.3);
    }
    .chat-action-btns .btn-decline {
      background: rgba(255,255,255,0.08);
      color: #94a3b8;
      border: 1px solid rgba(255,255,255,0.1);
    }
    .chat-action-btns .btn-decline:hover {
      background: rgba(255,255,255,0.12);
      color: #fff;
    }

    /* Capability Cards */
    .sentinel-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-bottom: 64px;
    }
    .sentinel-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: var(--radius-lg);
      padding: 32px 24px;
      transition: all 0.35s ease;
      position: relative;
      overflow: hidden;
    }
    .sentinel-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--green), transparent);
      opacity: 0;
      transition: opacity 0.35s;
    }
    .sentinel-card:hover {
      background: rgba(255,255,255,0.07);
      border-color: rgba(37, 99, 235,0.25);
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    }
    .sentinel-card:hover::before { opacity: 1; }
    .sentinel-card-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      background: rgba(37, 99, 235,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      margin-bottom: 18px;
    }
    .sentinel-card h3 {
      font-size: 1.05rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 10px;
    }
    .sentinel-card p {
      font-size: 0.88rem;
      color: #94a3b8;
      line-height: 1.6;
    }

    /* Security Trust Strip */
    .sentinel-trust {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      max-width: 960px;
      margin: 0 auto;
    }
    .sentinel-trust-badge {
      text-align: center;
      padding: 20px 16px;
      background: rgba(0,0,0,0.2);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: var(--radius);
    }
    .sentinel-trust-badge .trust-icon {
      width: 40px; height: 40px;
      border-radius: 10px;
      background: rgba(37, 99, 235,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 12px;
      font-size: 1.2rem;
    }
    .sentinel-trust-badge h4 {
      font-size: 0.85rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }
    .sentinel-trust-badge p {
      font-size: 0.75rem;
      color: #94a3b8;
      line-height: 1.5;
    }

    @media (max-width: 1024px) {
      .sentinel-grid { grid-template-columns: repeat(2, 1fr); }
      .sentinel-trust { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
      .sentinel-grid { grid-template-columns: 1fr; }
      .sentinel-trust { grid-template-columns: 1fr; }
      .sentinel-chat { margin: 0 auto 48px; }
      .chat-msg { max-width: 95%; }
      .chat-action-card { max-width: 95%; }
    }

    /* ===== Responsive ===== */
    @media (max-width: 1024px) {
      .features-grid { grid-template-columns: repeat(2, 1fr); }
      .onprem-grid { grid-template-columns: repeat(2, 1fr); }
      .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
      .pricing-grid { grid-template-columns: repeat(2, 1fr); }
      .pricing-card.featured { transform: scale(1); }
      .pricing-card.featured:hover { transform: translateY(-4px); }
    }
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--card-border);
      }
      .nav-toggle { display: flex; }

      .features-grid { grid-template-columns: 1fr; }
      .onprem-grid { grid-template-columns: 1fr; }
      .testimonials-grid { grid-template-columns: 1fr; }
      .steps { grid-template-columns: 1fr; gap: 48px; }
      .steps::before { display: none; }
      .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
      .pricing-card.featured { transform: none; }

      .demo-box { padding: 28px 20px; }
      .demo-box-content { grid-template-columns: 1fr; gap: 32px; }
      .demo-form-wrap { padding: 28px 20px; }

      .footer-content { flex-direction: column; text-align: center; }
      .footer-contact { text-align: center; }

      .hero-ctas { flex-direction: column; align-items: center; }
      .btn { width: 100%; max-width: 300px; justify-content: center; }

      /* Reduce section padding on mobile */
      .pricing, .demo-section, .sentinel, .why-onprem, .features, .comparison, .anti-cloud {
        padding: 48px 0;
      }

      /* Support add-ons: stack on mobile */
      .support-addons-grid { grid-template-columns: 1fr !important; }

      /* Sentinel chat: full width on mobile */
      .sentinel-chat { max-width: 100%; margin-left: 16px; margin-right: 16px; }

      /* Annual contract compare: reduce padding */
      .annual-contract-compare { padding: 24px 20px !important; }

      /* Support plans: stack on mobile */
      .support-plans-grid { grid-template-columns: 1fr; }

      /* ROI callout: hidden entirely on mobile/tablet. The 4-column
         comparison reads as cramped stacked text on phones regardless of
         polish â€” desktop is the right context for it. */
      .roi-callout-section { display: none !important; }

      /* Hero VP pill: clean wrap on mobile */
      .hero-vp-pill { border-radius: 12px !important; padding: 10px 16px !important; font-size: 0.85rem !important; }

      /* CTA box: reduce padding on mobile */
      .cta-box { padding: 40px 24px; }

      /* ===== Mobile horizontal-scroll lock =====
         Prevents users from scrolling past the left/right edges. Top-level
         containers are clipped to the viewport, long words break instead of
         pushing the page wider, media respects its container. Uses
         `overflow-x: hidden` (not `clip`) for iOS Safari â‰¤15 support.
         #navbar excluded: it hosts the absolutely-positioned mobile dropdown
         (.nav-links.open) which must overflow the navbar's 76px height. */
      section, header, footer, nav:not(#navbar) { max-width: 100vw; overflow-x: hidden; }
      .container { max-width: 100vw; padding-left: 20px; padding-right: 20px; }
      img, svg, video, iframe, table, pre, code { max-width: 100%; height: auto; }
      pre, code { white-space: pre-wrap; word-break: break-word; }
      h1, h2, h3, p, li, a { overflow-wrap: anywhere; word-break: break-word; }

      /* ===== Multi-column comparison tables â†’ stacked cards on mobile =====
         Two tables exist with too many columns to read on mobile:
         (1) "Own vs. Rent" â€” 6 cols (Feature + 5 vendors)
         (2) "What 10 Cases/Month Actually Costs" â€” 5 cols (Provider + 4 metrics)
         Both forced min-width: 860px to keep desktop legible. On mobile we
         flip them to card layout: each row becomes a card, first td is the
         heading, remaining tds get a column-name label via ::before. */
      .comparison-table {
        min-width: 0 !important;
        width: 100% !important;
        display: block !important;
        background-image: none !important;
        background-color: transparent !important;
        white-space: normal !important;
        overflow-x: visible !important;
        font-size: 0.9rem !important;
      }
      .comparison-table thead { display: none !important; }
      .comparison-table tbody, .comparison-table tr, .comparison-table td {
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
      }
      .comparison-table tr {
        background: var(--white) !important;
        border: 1px solid var(--card-border) !important;
        border-radius: 12px !important;
        padding: 16px 16px 12px !important;
        margin-bottom: 12px !important;
      }
      /* Pricing-row tint for the CaseBridge row in the cost matrix */
      .comparison-table tr[style*="rgba(37, 99, 235,0.08)"] {
        background: rgba(37,99,235,0.08) !important;
        border-color: var(--green) !important;
      }
      .comparison-table td {
        padding: 6px 0 !important;
        border: none !important;
        text-align: left !important;
        line-height: 1.5 !important;
      }
      .comparison-table tr td:first-child {
        font-size: 1rem !important;
        font-weight: 800 !important;
        color: var(--text-primary) !important;
        padding: 0 0 10px !important;
        margin-bottom: 6px !important;
        border-bottom: 1px solid var(--card-border) !important;
      }
      /* Column-name labels via ::before. We use nth-child so the same
         structure works for both 5-col and 6-col tables. The wider table
         (Own vs. Rent) has 6 cols, the cost matrix has 5 cols. ::before
         labels are derived from each table's specific thead labels. */
      /* --- Own vs. Rent table: 6 columns --- */
      .comparison-table-wrap:has(table) .comparison-table tr td:nth-child(2)::before,
      .comparison-table .tag-green::before { content: ''; }
      /* Generic column labels (Own vs. Rent uses these in source order) */
      .comparison-table tr td:nth-child(2)::before { content: 'CaseBridge'; color: var(--green); }
      .comparison-table tr td:nth-child(3)::before { content: 'LawPro.ai'; color: #94a3b8; }
      .comparison-table tr td:nth-child(4)::before { content: 'EvenUp'; color: #94a3b8; }
      .comparison-table tr td:nth-child(5)::before { content: 'DigitalOwl'; color: #94a3b8; }
      .comparison-table tr td:nth-child(6)::before { content: 'Anytime AI'; color: #94a3b8; }
      .comparison-table tr td:nth-child(n+2)::before {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 4px;
      }
      /* --- "What 10 Cases/Month" cost matrix (data-table-type override) ---
         Identified by ::before content via td count (only 5 cells per row).
         When a row has exactly 5 tds, the 5th td is the percentage column
         and the labels above shift one column. We use the explicit class
         override below for the cost-matrix table. */
      .comparison-table.cost-matrix tr td:nth-child(2)::before { content: 'Cost Model'; }
      .comparison-table.cost-matrix tr td:nth-child(3)::before { content: '10 Cases/Mo'; }
      .comparison-table.cost-matrix tr td:nth-child(4)::before { content: 'Annual Total'; }
      .comparison-table.cost-matrix tr td:nth-child(5)::before { content: '% of $500K Rev'; }
      .comparison-table.cost-matrix tr td:nth-child(6)::before { content: ''; display: none; }

      /* The wrapper's overflow-x: auto and ::after scroll fade aren't needed
         in card mode â€” strip them on mobile so they don't leave artifacts. */
      .comparison-table-wrap { overflow-x: visible !important; }
      .comparison-table-wrap::after { display: none !important; }

      /* ===== Responsive comparison tables =====
         The Anti-Cloud (PHI) table and the Rent-vs-Own TCO table are unreadable
         when squeezed into a phone width. On mobile we collapse each row into
         a stacked card: feature name = card heading, the two comparison values
         appear beneath with their own mini-labels (so the column meaning is
         preserved without the original thead). */

      /* --- Anti-Cloud / PHI table ---
         Two override notes:
         (a) mobile-tuning.css applies a white background + scroll-shadow gradient
             to every table on mobile (it assumes light-themed comparison tables).
             We're on a dark-navy section, so we strip the white background.
         (b) mobile-tuning.css also sets `white-space: nowrap` on tables â€” we
             reset it so card content wraps cleanly. */
      .anti-cloud-table {
        display: block !important;
        width: 100% !important;
        background-image: none !important;
        background-color: transparent !important;
        white-space: normal !important;
        overflow-x: visible !important;
      }
      .anti-cloud-table thead { display: none !important; }
      .anti-cloud-table tbody, .anti-cloud-table tr, .anti-cloud-table td {
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
      }
      .anti-cloud-table tr {
        background: rgba(255,255,255,0.04) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        border-radius: 14px !important;
        padding: 18px 18px 14px !important;
        margin-bottom: 14px !important;
      }
      .anti-cloud-table td {
        padding: 10px 0 !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        border: none !important;
        text-align: left !important;
      }
      .anti-cloud-table tr td:first-child {
        font-size: 1.05rem;
        font-weight: 800;
        color: #fff;
        padding: 0 0 12px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
      }
      .anti-cloud-table td.them::before,
      .anti-cloud-table td.hl::before {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 4px;
      }
      .anti-cloud-table td.them::before { content: 'Cloud AI Tools'; color: #b91c1c; }
      .anti-cloud-table td.hl::before   { content: 'CaseBridge'; color: var(--green); }

      /* --- Rent vs. Own / 3-Year TCO table ---
         Same overrides as anti-cloud-table: strip the global white background
         that mobile-tuning.css applies to tables, and let text wrap. */
      .rent-vs-own-table {
        display: block !important;
        width: 100% !important;
        font-size: 0.95rem !important;
        background-image: none !important;
        background-color: transparent !important;
        white-space: normal !important;
        overflow-x: visible !important;
      }
      .rent-vs-own-table thead { display: none !important; }
      .rent-vs-own-table tbody, .rent-vs-own-table tr, .rent-vs-own-table td {
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
      }
      .rent-vs-own-table tr {
        background: rgba(255,255,255,0.6) !important;
        border: 1px solid var(--card-border) !important;
        border-radius: 12px !important;
        padding: 16px 18px 12px !important;
        margin-bottom: 12px !important;
      }
      .rent-vs-own-table tr[style*="rgba(37, 99, 235,0.06)"] {
        background: rgba(37,99,235,0.08) !important;
        border-color: var(--green) !important;
      }
      .rent-vs-own-table td {
        padding: 8px 0 !important;
        text-align: left !important;
        border: none !important;
      }
      .rent-vs-own-table tr td:first-child {
        font-size: 1rem !important;
        font-weight: 800 !important;
        color: var(--text-primary) !important;
        padding: 0 0 10px !important;
        margin-bottom: 6px !important;
        border-bottom: 1px solid var(--card-border) !important;
      }
      .rent-vs-own-table tr td:nth-child(2)::before {
        content: 'CaseBridge';
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--green);
        margin-bottom: 4px;
      }
      .rent-vs-own-table tr td:nth-child(3)::before {
        content: 'Annual Contract Tools';
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #b91c1c;
        margin-bottom: 4px;
      }
      .annual-contract-compare { padding: 24px 18px !important; }
      .annual-contract-compare h3 { font-size: 1.05rem !important; }

      /* Generic comparison-table fallback for any other horizontally-scrolling
         comparison tables on mobile â€” keep horizontal scroll behavior usable
         (touch-friendly, no awkward clipping). */
      .comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    }
    @media (max-width: 640px) {
      /* Hide hero gradient overlays on small screens */
      .hero::before, .hero::after { display: none; }

      /* CTA section overlay */
      .cta-section::before { width: 100%; height: 200px; }
    }
    @media (max-width: 480px) {
      /* ROI callout: single column on small phones */
      .roi-callout-grid { grid-template-columns: 1fr; }

      /* Tighten container + section padding for narrow phones */
      .container { padding-left: 16px; padding-right: 16px; }
      .hero { padding-top: 96px; }
      .hero h1 { letter-spacing: -0.5px; }
      .btn { max-width: 100%; }

      /* Comparison-table cards: snug padding so cards don't dominate the screen */
      .anti-cloud-table tr, .rent-vs-own-table tr { padding: 14px 14px 10px !important; }
      .anti-cloud-table td, .rent-vs-own-table td { font-size: 0.9rem !important; }
    }
  
    /* CaseBridge brand */
    .logo{display:inline-flex;align-items:center;gap:10px;font-family:'Plus Jakarta Sans',sans-serif;text-transform:uppercase;letter-spacing:0.12em;font-weight:700;font-size:0.92rem;line-height:1.1;}
    .logo .logo-mark{width:34px;height:34px;flex:0 0 34px;}
    .logo .logo-dot{display:none;}
    .logo .logo-word{white-space:nowrap;}
    @media (max-width:640px){.logo{font-size:0.78rem;letter-spacing:0.08em;} .logo .logo-mark{width:28px;height:28px;flex-basis:28px;}}
  
    /* CaseBridge look: buttons */
    .btn{border-radius:6px;}
    .btn-primary{color:#ffffff;}
    .btn-primary:hover{color:#ffffff;}
    .btn-sm{border-radius:6px;}
    nav .btn-primary, .nav-links .btn-primary, .nav-links .btn-primary:hover{color:#ffffff !important;background:var(--green) !important;border-color:var(--green) !important;font-weight:600;}
  
    /* CaseBridge look: navy hero, white nav, 6px buttons */
    nav{background:rgba(255,255,255,0.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 1px 0 var(--card-border);}
    .hero{background:var(--navy);}
    .hero::before{background:radial-gradient(circle, rgba(11,98,218,0.38) 0%, transparent 70%);}
    .hero::after{background:radial-gradient(circle, rgba(96,165,250,0.16) 0%, transparent 70%);}
    .hero h1{color:#ffffff;letter-spacing:-0.5px;}
    .hero h1 span{background:none;-webkit-text-fill-color:#60a5fa;color:#60a5fa;}
    .hero p.subtitle, .hero .hero-content .subtitle{color:#e2e8f0;}
    .trust-badges{color:#e2e8f0;}
    .trust-badges .icon{color:#60a5fa;}
    .hero .btn-outline{color:#ffffff;border-color:rgba(255,255,255,0.35);}
    .hero .btn-outline:hover{border-color:#ffffff;color:#ffffff;}
  
    /* CaseBridge brand lockup */
    .logo{display:inline-flex;align-items:center;gap:10px;font-family:'Plus Jakarta Sans',sans-serif;text-decoration:none;color:var(--text-primary,#0f172a);}
    .logo .logo-mark{width:38px;height:38px;flex:0 0 38px;}
    .logo .logo-dot{display:none;}
    .logo .logo-text{display:flex;flex-direction:column;line-height:1.05;}
    .logo .logo-word{white-space:nowrap;text-transform:uppercase;letter-spacing:0.16em;font-weight:700;font-size:1.02rem;color:var(--green);}
    .logo .logo-sub{white-space:nowrap;text-transform:none;letter-spacing:0.02em;font-weight:500;font-size:0.62rem;color:var(--text-secondary,#475569);margin-top:2px;}
    @media (max-width:640px){.logo .logo-word{font-size:0.86rem;letter-spacing:0.12em;} .logo .logo-sub{font-size:0.55rem;} .logo .logo-mark{width:30px;height:30px;flex-basis:30px;}}
      /* ===== Client Portal section ===== */
    .portal-section .feature-card.portal-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
    .portal-section .feature-card.portal-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(96,165,250,0.6); }
    .portal-section .feature-card.portal-card h3 { color: #fff; }
    .portal-section .feature-card.portal-card p { color: #cbd5e1; }
    .portal-section .feature-card.portal-card .feature-icon { background: rgba(96,165,250,0.15); color: #60a5fa; }
    .portal-section .feature-card.portal-card .cb-icon { stroke: #60a5fa; }
    .portal-security { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.5fr); gap: 32px 64px; align-items: start; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 44px 48px; }
    .portal-security .security-intro .label { color: #60a5fa; margin-bottom: 12px; }
    .portal-security .security-intro h3 { color: #fff; font-size: 1.45rem; line-height: 1.3; margin: 0 0 14px; letter-spacing: -0.01em; }
    .portal-security .security-intro p { color: #cbd5e1; font-size: 0.98rem; line-height: 1.65; margin: 0; max-width: 42ch; }
    .portal-security-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
    .portal-security-list li { display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.08); color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; }
    .portal-security-list li:first-child { border-top: 0; padding-top: 0; }
    .portal-security-list li:last-child { padding-bottom: 0; }
    .portal-security-list .check { width: 24px; height: 24px; border-radius: 50%; background: rgba(96,165,250,0.15); color: #60a5fa; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
    .portal-security-list .check svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .portal-security-list li strong { color: #fff; font-weight: 700; }
    @media (max-width: 860px) { .portal-security { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; } .portal-security .security-intro p { max-width: none; } }
    /* ===== Polish 2026-10-02 ===== */
    .pricing-card { display: flex; flex-direction: column; }
    .pricing-card ul { flex: 1 1 auto; }
    .pricing-card > .btn { margin-top: auto; }
    .pricing-card .tier-row + .btn, .pricing-card .btn + .tier-row { margin-top: 0; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .portal-section .portal-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important; }
    #managed-service { padding: 96px 0 !important; }
    .section-title p { max-width: 760px; }
    .features-grid .feature-card h3 { font-size: 1.08rem; }
    .pricing-card .price-note { min-height: 2.6em; }
    @media (max-width: 1100px) { .portal-section .portal-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; } }
