/* ======= MVP Opus Fortune-500 Theme (safe to include site-wide) ======= */
:root{
  /* Fortune 500 Blue & Orange Brand Palette */
  --brand-50:#e6f2ff; --brand-100:#cce6ff; --brand-200:#99ccff; --brand-300:#66b3ff;
  --brand-500:#0052CC; --brand-600:#0047B3; --brand-700:#003d99; --brand-800:#003385;
  /* Fortune 500 Orange Accent Colors */
  --orange-50:#fff8f0; --orange-100:#ffecdb; --orange-200:#ffd4b3;
  --orange-500:#FF6F00; --orange-600:#E65C00; --orange-700:#CC5200; --orange-800:#B34700;
  /* Professional Ink & Surface Colors */
  --ink:#0b1220; --ink-2:#2a3547; --ink-3:#5b6a85; --ink-light:#708096;
  --bg:#f8fafc; --card:#ffffff; --border:#e2e8f0;
  --ok:#0fb97d; --warn:#f59e0b; --err:#ef4444;
  /* Enhanced shadows for Fortune 500 depth */
  --shadow-sm:0 1px 3px rgba(7,12,20,.12);
  --shadow-md:0 8px 32px rgba(7,12,20,.15);
  --shadow-lg:0 16px 48px rgba(7,12,20,.20);
  --radius:18px;
  --radius-sm:10px;
  
  /* Legal page navigation */
  --nav-height: 64px;
  --brand-primary: #0A49FF;
  --ink-strong: #0b1220;
}

/* --------- Fortune 500 Professional - No Scroll Bars --------- */
html, body { 
  height: 100%; 
  overflow-x: hidden;
}
body.modal-open { 
  overflow: hidden; 
  padding-right: var(--scrollbar-comp, 0px); 
}
* { box-sizing: border-box; }

/* Enable scrolling within main container */
.main-content {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .main-content {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* shared nav */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(120%) blur(4px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.site-nav .nav-inner { height: var(--nav-height); display:flex;align-items:center;justify-content:space-between; max-width:1200px; margin:0 auto; padding:0 20px; }
.site-logo { font-weight: 800; color: var(--ink-strong); text-decoration: none; }
.site-logo:hover { color: var(--brand-primary); }

/* page header block on legal pages */
.legal-hero { padding: 56px 0 12px; text-align: center; }
.legal-hero h1 { color: var(--ink-strong); }

/* --------- Layout helpers --------- */
.container{max-width:1080px;margin:0 auto;padding:0 20px}
.section{padding:56px 0}
.hush{color:var(--ink-3)}
.mono{font-variant-numeric:tabular-nums}

/* --------- Hero / band --------- */
.hero{
  background:
    radial-gradient(1200px 520px at 50% -260px, rgba(0,82,204,.15), transparent 50%),
    radial-gradient(600px 300px at 80% 100%, rgba(255,111,0,.08), transparent 40%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 40%, rgba(0,82,204,.03) 100%);
  padding:84px 0 44px;
  border-bottom: 3px solid var(--orange-200);
}
.hero h1{letter-spacing:-.022em;font-weight:800}
.hero .sub{color:var(--ink-2);font-size:1.18rem}

/* --------- Cards, badges --------- */
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md)}
.badge{display:inline-block;background:var(--brand-50);color:var(--brand-700);border-radius:999px;padding:.25rem .6rem;font-weight:700;border:1px solid var(--brand-200)}
.badge-popular{
  background:var(--orange-100); /* Fortune 500 orange */
  color:var(--orange-700);
  border:1px solid var(--orange-200);
  position: absolute;
  top: 14px;
  right: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------- Buttons --------- */
.btn{display:inline-block;border-radius:12px;padding:.9rem 1.2rem;font-weight:700;text-decoration:none;position:relative}
.btn-primary{
  background:linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color:#fff;
  border:1px solid var(--brand-600);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,111,0,.3), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}
/* Special orange CTA for hero */
.btn-cta-hero {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  color: white;
  border: 1px solid var(--orange-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-cta-hero:hover {
  background: linear-gradient(135deg, var(--orange-600) 0%, var(--orange-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255,111,0,.35);
}
.btn-primary:hover{background:linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);transform:translateY(-1px);box-shadow:0 8px 28px rgba(0,82,204,.35)}
.btn-ghost{
  background:#fff;
  border:1px solid var(--brand-200);
  color:var(--brand-700);
  font-weight:600;
  text-align:center;
  justify-content:center;
  min-width:120px;
  display:inline-flex;
  align-items:center;
}
.btn-ghost:hover{
  background:var(--brand-50);
  border-color:var(--brand-300);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(11, 18, 32, 0.15);
}

/* --------- Process Band - Fortune 500 Professional Styling --------- */
.band.band--muted{
  background:linear-gradient(135deg, var(--brand-50) 0%, rgba(255,255,255,.8) 100%);
  border:1px solid var(--brand-100);
  border-radius:14px;
  padding:32px 40px;
  margin:32px 0;
  text-align: center;
}

/* Professional centered steps */
.band-steps{
  margin: 24px 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.band-steps li{
  font-size: 1.125rem;
  line-height: 1.6;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  border: 1px solid var(--brand-100);
  text-align: center;
}

.band-note{
  color:#6b7280;
  margin: 24px 0 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --------- Pricing --------- */
.pricing .price{font-size:2.25rem;font-weight:800;color:var(--brand-700);letter-spacing:-.02em}
.pricing-note strong:first-child::before{content:"🔒";margin-right:.35rem}
.pricing .note{color:var(--ink-3);font-size:.95rem}
.pricing .features{list-style:none;padding:0;margin:12px 0 0}
.pricing .features li{margin:6px 0;padding-left:26px;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="%2310b981"><path d="M20.285 6.709l-11.285 11.291-5.285-5.291 1.414-1.414 3.871 3.877 9.871-9.877z"/></svg>') no-repeat 0 2px}

/* --------- Guarantee band --------- */
.guarantee{
  background:linear-gradient(135deg, var(--brand-50) 0%, rgba(255,255,255,.9) 100%);
  border:1px solid var(--brand-100);
  border-radius:20px;
  padding:28px;
  box-shadow:var(--shadow-md);
}

/* --------- Modal --------- */
dialog{
  border:none;
  border-radius:20px;
  max-width:800px !important;
  width:min(90vw, 800px);
  max-height:85vh;
  overflow-y:auto;
  box-shadow:0 25px 60px rgba(0,82,204,.20);
  background:linear-gradient(135deg, #ffffff 0%, var(--brand-50) 100%);
  padding:2rem;
  margin:auto;
}
dialog::backdrop{background:rgba(0,82,204,.25)}

/* Fortune 500 Modal System */
.modal-sub{font-size:1.125rem;line-height:1.7;color:var(--ink-2);margin:.25rem 0 1rem}
.modal-hero{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin:1.5rem 0}
@media (max-width: 768px) {
  .modal-hero{grid-template-columns:1fr}
}
.modal-hero img{border-radius:20px;box-shadow:0 12px 36px rgba(0,82,204,.15)}
.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin:1.5rem 0}
@media (max-width: 768px) {
  .modal-grid{grid-template-columns:1fr}
}
.panel{
  background:#fff;
  border:1px solid var(--brand-100);
  border-radius:16px;
  padding:20px;
  box-shadow:0 4px 12px rgba(0,82,204,.08);
}
.panel:last-child{
  grid-column:1 / -1;
}
@media (max-width: 768px) {
  .panel:last-child{
    grid-column:unset;
  }
}
.kpi-row{display:flex;gap:16px;flex-wrap:wrap}
.kpi{
  min-width:140px;
  padding:10px 12px;
  border-radius:12px;
  background:var(--brand-50);
  border:1px solid var(--brand-100);
}
.kpi-label{font-size:.8rem;color:var(--brand-600)}
.kpi-value{font-weight:700;color:var(--brand-700)}
/* Fortune 500-level "How it works" styling */
.how-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  counter-reset: how-counter;
}

.how-list li {
  position: relative;
  padding: 2px 0 2px 20px;
  margin-bottom: 4px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  /* Remove counter, gradient backgrounds, and heavy styling for clean professional look */
}

/* Remove hover effects for clean professional appearance */

.how-list li::before {
  content: "•";
  position: absolute;
  left: 12px;
  top: 4px;
  width: 4px;
  height: 4px;
  background: var(--orange-400);
  border-radius: 50%;
  font-size: 0;
  /* Remove all the gradient pill styling for professional tiny dots */
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
}
.modal-cta-row{display:flex;gap:.75rem;justify-content:flex-end;margin-top:8px}
.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:1rem;
  padding-bottom:1rem;
  border-bottom:2px solid var(--brand-100);
}
.modal-head h2,
.modal-head h3,
.modal-title{
  color:var(--brand-700);
  font-weight:700;
  margin:0;
  background:linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.modal-close{
  background:none;
  border:none;
  font-size:24px;
  cursor:pointer;
  color:var(--brand-600);
  padding:8px;
  border-radius:8px;
  transition:all 0.2s ease;
}
.modal-close:hover{
  color:var(--brand-700);
  background:var(--brand-50);
  transform:scale(1.1);
}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}

/* Filter chips with orange active state */
.filter-chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
}
.filter-chip.is-active {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  border-color: var(--orange-600);
  color: white;
  box-shadow: 0 4px 12px rgba(255,111,0,.25);
}
.chip{
  background:var(--brand-50);
  color:var(--brand-700);
  border:1px solid var(--brand-200);
  padding:4px 12px;
  border-radius:20px;
  font-size:14px;
  font-weight:600;
}

/* --------- Typography scale --------- */
.h1{
  font-size:3.75rem;
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1;
  background:linear-gradient(135deg, var(--ink) 0%, var(--brand-700) 40%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.h2{
  font-size:2.25rem;
  font-weight:700;
  letter-spacing:-.01em;
  line-height:1.2;
  color:var(--brand-700);
}
.h3{
  font-size:1.875rem;
  font-weight:700;
  line-height:1.3;
  color:var(--brand-600);
}
.h4{
  font-size:1.25rem;
  font-weight:600;
  line-height:1.4;
  color:var(--ink-2);
}

/* --------- Spacing system with orange section dividers --------- */
.mb-xs{margin-bottom:0.5rem}
.mb-sm{margin-bottom:1rem}
.mb-md{margin-bottom:1.5rem}
.mb-lg{margin-bottom:2rem}
.mb-xl{margin-bottom:3rem}

/* Orange section dividers */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--orange-300) 50%, var(--orange-500) 100%);
  margin: 60px 0;
  border-radius: 2px;
  opacity: 0.8;
}

/* Orange accent for key stats/numbers */
.stat-number {
  color: var(--orange-600);
  font-weight: 800;
  font-size: 2.5rem;
}
.stat-label {
  color: var(--ink-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.mt-xs{margin-top:0.5rem}
.mt-sm{margin-top:1rem}
.mt-md{margin-top:1.5rem}
.mt-lg{margin-top:2rem}
.mt-xl{margin-top:3rem}

/* --------- Grid helpers --------- */
.grid{display:grid}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-auto{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.gap-sm{gap:1rem}
.gap-md{gap:1.5rem}
.gap-lg{gap:2rem}

/* --------- Fortune 500 Navbar --------- */
.site-nav{
  box-shadow:0 2px 16px rgba(0,82,204,.08);
  backdrop-filter:saturate(120%) blur(6px);
  border-bottom: 1px solid var(--brand-100);
  background: rgba(255,255,255,.95);
}

/* Brand name with orange accent */
.brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--orange-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.brand-name:hover {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--orange-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Navigation links with orange active state */
.nav-link {
  color: var(--ink-2);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-link:hover {
  background: var(--orange-50);
  color: var(--orange-700);
}
.nav-link.active {
  background: linear-gradient(135deg, var(--orange-100) 0%, var(--orange-50) 100%);
  color: var(--orange-700);
  border: 1px solid var(--orange-200);
}

/* 3×2 desktop grid, 1-col mobile */
.work-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
  align-items: stretch; /* Force all cards to same height */
}
@media (max-width: 1024px){
  .work-grid{ grid-template-columns: 1fr; }
}

/* Fortune 500 Case Study Panel Pattern */
.case-study-panel {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(7,12,20,.12);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--brand-100);
  height: 480px; /* FIXED HEIGHT - all cards identical size */
}

.case-study-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(7,12,20,.16);
  border-color: var(--orange-200);
}

/* Hero: 2 screenshots */
.case-hero {
  position: relative;
  height: 180px; /* Reduced height for better proportion */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
}

.case-hero .hero-img-1,
.case-hero .hero-img-2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-hero:hover .hero-img-1,
.case-hero:hover .hero-img-2 {
  transform: scale(1.05);
}

/* Result line */
.case-result {
  padding: 18px 20px 12px;
}

.case-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange-600);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.result-metric {
  font-size: 0.9rem;
  color: var(--brand-600);
  font-weight: 600;
  margin: 0;
}

/* How it works */
.case-how {
  padding: 0 20px 8px; /* Reduced bottom padding */
}

.how-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.case-how .how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.case-how .how-item {
  padding: 2px 0; /* Reduced padding */
  margin: 1px 0; /* Reduced margin */
  color: var(--ink-2);
  line-height: 1.2; /* Tighter line height */
  position: relative;
  padding-left: 12px; /* Reduced padding for smaller bullet */
}

.case-how .how-item::before {
  content: "•";
  position: absolute;
  left: 4px; /* Move slightly right for better spacing */
  top: 2px; /* Adjust vertical position */
  color: var(--orange-400); /* Lighter orange for subtlety */
  font-weight: normal; /* Remove bold for more professional look */
  font-size: 0.3rem; /* Much smaller - tiny professional dot */
  width: 8px; /* Reduced width */
  text-align: center;
}

/* Stack chips */
.case-stack {
  padding: 8px 20px 12px;
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.stack-chip {
  display: inline-block;
  padding: 3px 7px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 5px;
  border: 1px solid var(--brand-100);
}

/* CTA buttons - Fortune 500 consistent layout */
.case-cta {
  padding: 12px 20px 18px;
  margin-top: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  align-items: center;
  min-height: 60px;
}

/* Single button layout */
.case-cta.single-button {
  grid-template-columns: 1fr;
}

.case-cta .btn {
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.case-cta .btn-primary {
  min-width: 140px;
}

.case-cta .btn-secondary {
  font-size: 0.85rem;
  min-width: 80px;
}

.work-img { 
  position: relative; 
  height: 220px; /* Fixed height for consistent card alignment */
  overflow: hidden;
}
.work-img img { 
  width: 100%; 
  height: 100%; 
  border-radius: 16px; 
  box-shadow: 0 16px 44px rgba(9,16,28,.12);
  object-fit: cover; /* Maintain aspect ratio while filling container */
  object-position: center;
}
.build-type-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,82,204,.25);
  border: 1px solid rgba(255,255,255,.2);
  z-index: 2;
}
.work-brand { 
  font-weight:700; 
  letter-spacing:.2px;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--orange-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size:1.125rem;
}
.shot-rail { display:flex; gap:12px; overflow: hidden; flex-wrap: wrap; }
.shot-rail img { height:220px; border-radius:12px; flex-shrink: 0; }

/* Legacy rail arrows (hidden on desktop with grid) */
.rail-arrows { display: none; }
@media (max-width: 899px) {
  .rail-arrows { display: flex; }
}

/* --------- Fortune 500 Pricing Grid --------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch; /* Ensure equal height cards */
}

/* Tablet: 3 smaller columns to keep all cards in same row */
@media (min-width: 768px) {
  .pricing-grid { 
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1000px) {
  .pricing-grid { 
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 32px;
  }
}

/* Pricing cards using .card.pricing structure - targeting all variants with high specificity */
.pricing-grid .card.pricing,
.pricing-grid .card.pricing.enterprise,
.pricing-grid .card.pricing.custom {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7,12,20,.10);
  padding: 24px;
  position: relative;
  justify-content: space-between;
}

.card.pricing .features { margin-top: 16px; }
.card.pricing .fineprint { margin-top: 12px; color:#5b6575; }

/* Button alignment for pricing cards - high specificity targeting all variants and CTA classes */
.pricing-grid .card.pricing .cta-row, 
.pricing-grid .card.pricing .cta-wrap,
.pricing-grid .card.pricing.enterprise .cta-row, 
.pricing-grid .card.pricing.enterprise .cta-wrap,
.pricing-grid .card.pricing.custom .cta-row, 
.pricing-grid .card.pricing.custom .cta-wrap { 
  margin-top: auto !important; 
  display: flex !important;
  flex-direction: column !important;
  gap: 12px;
}

.card.pricing .cta-row .btn, 
.card.pricing .cta-wrap .btn,
.card.pricing.enterprise .cta-row .btn, 
.card.pricing.enterprise .cta-wrap .btn,
.card.pricing.custom .cta-row .btn, 
.card.pricing.custom .cta-wrap .btn { 
  width: 100%; 
  min-height: 48px; 
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subline styling for pricing cards */
.card.pricing .subline,
.card.pricing.enterprise .subline,
.card.pricing.custom .subline {
  font-size: 0.875rem;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.4;
}

/* Orange "Most Popular" badge - centered above card */
.badge-popular{
  background: var(--orange-100);       /* Fortune 500 orange */
  color: var(--orange-700);            /* deep orange ink */
  border:1px solid var(--orange-200);
  font-weight:700;
  padding:8px 14px;
  border-radius:9999px;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.25);
}

/* Fortune 500-level package name styling - orange contrast */
.pricing h3 {
  color: var(--orange-500) !important;
  font-weight: 700;
  font-size: 24px;
}

/* General utility styles */
.card-footer-text { font-size: 0.875rem; color: #6b7280; margin-top: 12px; line-height: 1.4; }
.pill{ position:absolute; top:14px; right:14px; background:#eef2ff; color:#334; border-radius:999px; padding:6px 12px; font-weight:600; font-size:14px; }
.pill-orange{ background:#fff3e6; color:#9a4a00; border:1px solid #ffd7b0; }
/* Enterprise card with Fortune 500 orange emphasis */
.pricing-grid .card.pricing.enterprise{ 
  outline: 3px solid var(--orange-200) !important;
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.02) 0%, rgba(255, 111, 0, 0.01) 100%) !important;
  box-shadow: 0 18px 48px rgba(7,12,20,.10), 0 0 0 1px var(--orange-100), 0 8px 32px rgba(255, 111, 0, 0.12) !important;
  position: relative;
  border: 2px solid var(--orange-200) !important;
}

.card.pricing.custom{ outline:1px dashed #cdd6e7; }


/* --------- Rail arrows --------- */
.rail-arrows{ display:flex; justify-content:center; gap:12px; margin-top:12px; }
.rail-arrows .arrow-left,.rail-arrows .arrow-right{
  width:42px;height:42px;border-radius:999px;border:1px solid var(--border,#e9eef7);
  background:#fff; box-shadow:0 6px 20px rgba(7,12,20,.06); font-size:22px; line-height:42px;
}
.rail-arrows button:hover{ transform:translateY(-1px); }

/* --------- Plan Picker Styles --------- */
.plan-picker.card { 
  padding: 20px; 
  margin: 32px 0; 
}
.picker-grid { 
  display: grid; 
  grid-template-columns: repeat(2,minmax(240px,1fr)); 
  gap: 10px 18px; 
  margin: 12px 0 8px; 
}
.picker-result { 
  margin-top: 10px; 
  padding: 10px 12px; 
  border-radius: 10px; 
  background: var(--bg); 
}

/* --------- Pricing Card Improvements --------- */
.pricing-card .list { 
  margin: 16px 0 14px; 
}
.pricing-card .subline { 
  color: var(--ink-3); 
  font-size: .95rem; 
  margin-top: 8px; 
}
.pricing-card { 
  display: flex; 
  flex-direction: column; 
}
.pricing-card .cta-wrap { 
  margin-top: auto; 
}
.badge--popular { 
  background: #FFEDD5; 
  color: #B45309; 
}

/* ========== FORTUNE 500 MOBILE OPTIMIZATION ========== */

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .h1 { font-size: 2.25rem; line-height: 1.1; }
  .h2 { font-size: 1.75rem; line-height: 1.2; }
  .h3 { font-size: 1.25rem; }
  
  /* Hero section mobile optimization */
  .hero { padding: 40px 0 32px; }
  .hero .h1 { font-size: 2rem; margin-bottom: 1rem; }
  .hero .sub { font-size: 1rem; margin-bottom: 2rem; }
  
  /* Sections with proper spacing */
  .section { padding: 32px 0; }
  .section-depth { padding: 40px 0; }
  
  /* Button improvements for mobile */
  .btn { 
    min-height: 48px; 
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    touch-action: manipulation; /* Prevent zoom on iOS */
  }
  
  /* CTA buttons in pricing cards */
  .pricing-card .btn {
    min-height: 52px;
    font-size: 1.1rem;
    font-weight: 700;
  }
  
  /* Navigation mobile optimization */
  .site-nav { padding: 0; }
  .nav-link { 
    padding: 16px 12px; 
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
  }
  
  /* Work grid mobile optimization */
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .case-study-panel { margin-bottom: 0; }
  .case-hero { height: 160px; }
  
  /* Mobile CTA buttons - stack vertically for consistency */
  .case-cta {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .case-cta .btn {
    width: 100%;
    min-width: unset;
  }
  
  .case-cta .btn-secondary {
    font-size: 0.85rem;
    padding: 8px 14px;
    min-height: 36px;
  }
  
  /* Hero CTA buttons mobile stacking */
  .hero div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  .hero .btn {
    width: 100% !important;
    text-align: center;
    min-width: 280px;
  }
  
  /* Pricing cards mobile optimization */
  .pricing-card { 
    padding: 20px;
    border-radius: 16px;
  }
  .pricing-card .h3 { font-size: 1.5rem; }
  .pricing-card .price { font-size: 2.5rem; }
  
  /* Plan picker mobile optimization */
  .picker-grid { 
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Form elements mobile optimization */
  .form-input, .form-select, .form-textarea {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
  }
}

/* Tablet and larger mobile devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container { padding: 0 24px; }
  .h1 { font-size: 2.75rem; }
  .h2 { font-size: 2rem; }
  
  .hero { padding: 48px 0 36px; }
  .section { padding: 40px 0; }
  
  /* Buttons maintain good touch targets */
  .btn { min-height: 48px; }
  .pricing-card .btn { min-height: 50px; }
  
  /* Work grid: 2 columns on larger tablets */
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* General mobile optimizations for all screen sizes */
@media (max-width: 768px) {
  /* Typography improvements */
  body { font-size: 1rem; line-height: 1.6; }
  .sub { font-size: 1.1rem; line-height: 1.5; }
  
  /* Grid system mobile fallbacks */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  
  /* Touch-friendly interactive elements */
  .interactive, .btn, .nav-link, .case-study-panel {
    -webkit-tap-highlight-color: rgba(0, 82, 204, 0.1);
    cursor: pointer;
  }
  
  /* Prevent horizontal scrolling */
  .work-rail { grid-auto-columns: min(85vw, 360px); }
  
  /* Footer mobile optimization */
  .footer-links { 
    flex-direction: column; 
    gap: 12px; 
    text-align: center; 
  }
  .footer-links a {
    display: block;
    padding: 12px;
    min-height: 44px;
  }
  
  /* Badge positioning on mobile */
  .pill, .pill--popular, .badge--popular {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  /* Improved spacing for mobile */
  .mb-xs { margin-bottom: 0.5rem; }
  .mb-sm { margin-bottom: 1rem; }
  .mb-md { margin-bottom: 1.5rem; }
  .mb-lg { margin-bottom: 2rem; }
}