/* ═══════════════════════════════════════════
   SERPpro — Shared Design System
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background-color: #ffffff !important;
  color-scheme: light only;
  overflow-x: hidden;
  max-width: 100vw;
}
html { overflow-x: hidden; }
body { overflow-x: hidden; width: 100%; }

:root {
  --white: #FFFFFF;
  --off: #F7F6F3;
  --off2: #F0EEE9;
  --border: #E8E5DF;
  --border-dark: #D4D0C8;
  --text: #0F0E0C;
  --text-2: #3D3B36;
  --text-3: #7A776E;
  --text-4: #A8A49B;
  --accent: #1A1A18;
  --ink: #0F0E0C;
  --green: #1C7C54;
  --green-bg: #EBF5EF;
  --blue: #1B4FD8;
  --blue-bg: #EEF2FD;
  --amber: #92600A;
  --amber-bg: #FEF5E7;
  --r: 10px;
  --r-sm: 6px;
  --r-lg: 16px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: #ffffff !important;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.nav-inner {
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 6px;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--off); }
.nav-cta {
  background: var(--ink) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.nav-cta:hover { background: #2A2A26 !important; }

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; opacity: 0.5; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: 200;
}
/* Services mega-menu: 3-column layout via CSS Grid */
.nav-dropdown:first-child .nav-dropdown-menu {
  display: none;
  min-width: 520px;
  left: 0;
  transform: none;
  padding: 16px 0;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  gap: 0;
}
.nav-dropdown:first-child .nav-dropdown-menu .nav-dropdown-label[style*="margin-top"] {
  margin-top: 0 !important;
  grid-row: 1;
}
.nav-dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown:first-child:hover .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a {
  display: block !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  color: var(--text-2) !important;
  border-radius: 0 !important;
  background: none !important;
}
.nav-dropdown-menu a:hover {
  background: var(--off) !important;
  color: var(--text) !important;
}
.nav-dropdown-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); padding: 6px 18px 4px; pointer-events: none; }

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

/* ─── HERO ─── */
.hero {
  padding: 130px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-label-line {
  width: 24px; height: 1px;
  background: var(--border-dark);
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--text-3); }
.hero-sub {
  font-size: 17px;
  color: var(--text-3);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
}
.hero-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -0.1px;
}
.btn-primary:hover { background: #2A2A26; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn-primary.green { background: var(--green); }
.btn-primary.green:hover { background: #15634A; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-dark);
  background: white;
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover { border-color: var(--text-4); background: var(--off); }

/* ─── HERO STATS ─── */
.hero-stats {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--off);
  width: fit-content;
}
.hero-stat {
  padding: 20px 28px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-4);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ─── TICKER ─── */
.ticker-strip {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--off);
}
.ticker-track {
  display: flex; gap: 40px;
  animation: ticker 50s linear infinite;
  width: max-content;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
}
.ticker-sep { color: var(--border-dark); font-size: 14px; }
.ticker-dr { color: var(--text-4); font-size: 11px; }

/* ─── SECTION HEADERS ─── */
.sec-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.sec-tag::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--border-dark);
}
h2.sec-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
h2.sec-title em { font-style: italic; color: var(--text-3); }
.sec-desc {
  font-size: 16px;
  color: var(--text-3);
  max-width: 480px;
  line-height: 1.7;
}

/* ─── PAIN / FEATURE GRID ─── */
.pain { padding: 100px 0; }
.pain-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end;
  margin-bottom: 56px;
}
.pain-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pain-card {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
  transition: background 0.2s;
}
.pain-card:nth-child(3n) { border-right: none; }
.pain-card:nth-child(4), .pain-card:nth-child(5), .pain-card:nth-child(6) { border-bottom: none; }
.pain-card:hover { background: var(--off); }
.pain-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-4);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.pain-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.pain-card p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 16px;
}
.pain-quote {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  padding: 10px 14px;
  background: var(--off);
  border-radius: var(--r-sm);
  line-height: 1.55;
  border-left: 2px solid var(--border-dark);
}

/* ─── STAT ROWS ─── */
.stat-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 40px;
}
.stat-box {
  background: white;
  padding: 24px 20px;
  transition: background 0.2s;
}
.stat-box:hover { background: var(--off2); }
.stat-box-num {
  font-family: 'DM Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.stat-box-label { font-size: 12px; color: var(--text-4); font-weight: 500; }

/* ─── BARS ─── */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  min-width: 58px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.bar-track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 2px;
  width: 0%;
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}
.bar-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-4);
  min-width: 36px;
  text-align: right;
}

/* ─── PRICE CARDS ─── */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  background: white;
  transition: all 0.2s;
  position: relative;
}
.price-card:hover { border-color: var(--border-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.price-card.pop {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
.price-tier {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.price-card.pop .price-tier { color: rgba(255,255,255,0.5); }
.price-type { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.price-card.pop .price-type { color: white; }
.price-amount {
  font-family: 'Instrument Serif', serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.price-card.pop .price-amount { color: white; }
.price-per { font-size: 12px; color: var(--text-4); margin-bottom: 22px; }
.price-card.pop .price-per { color: rgba(255,255,255,0.5); }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px; }
.price-feats li {
  font-size: 13px; color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
}
.price-card.pop .price-feats li { color: rgba(255,255,255,0.7); }
.feat-dot {
  width: 4px; height: 4px;
  background: var(--border-dark);
  border-radius: 50%; flex-shrink: 0;
}
.price-card.pop .feat-dot { background: rgba(255,255,255,0.35); }
.price-card .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ─── DPR CARDS ─── */
.dpr-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.dpr-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  background: white;
  transition: all 0.2s;
}
.dpr-card:hover { border-color: var(--border-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.dpr-card.mid { background: var(--off); border-color: var(--border-dark); }
.dpr-tier { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); margin-bottom: 10px; }
.dpr-name {
  font-family: 'Instrument Serif', serif;
  font-size: 30px; font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.dpr-links-text { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.dpr-price-big {
  font-family: 'DM Mono', monospace;
  font-size: 30px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 3px;
}
.dpr-mo { font-size: 13px; color: var(--text-4); margin-bottom: 28px; }
.dpr-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.dpr-feats li { font-size: 14px; color: var(--text-3); display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.ck { color: var(--green); font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* ─── SPECIALTY CARDS ─── */
.spec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.spec-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  background: white;
  transition: all 0.2s;
}
.spec-card:hover { border-color: var(--border-dark); background: var(--off); }
.spec-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-blue { background: var(--blue-bg); color: var(--blue); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.spec-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.spec-price {
  font-family: 'DM Mono', monospace;
  font-size: 20px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.spec-feats { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.spec-feats li { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

/* ─── RETAINER TABLE ─── */
.ret-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: white;
}
.ret-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  background: var(--off);
  border-bottom: 1px solid var(--border);
}
.ret-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  transition: background 0.15s;
}
.ret-table tr:last-child td { border-bottom: none; }
.ret-table tr:hover td { background: var(--off); }
.ret-table td:first-child { color: var(--ink); font-weight: 500; }
.ret-table td.bonus { color: var(--green); font-weight: 500; }
.ret-table td.pct { color: var(--text-3); font-size: 13px; }

/* ─── HOW IT WORKS ─── */
.how { padding: 100px 0; }
.how-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.how-step {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  background: white;
  transition: background 0.2s;
}
.how-step:last-child { border-right: none; }
.how-step:hover { background: var(--off); }
.step-n {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-4);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.how-step h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  line-height: 1.35;
}
.how-step p { font-size: 13.5px; color: var(--text-3); line-height: 1.65; }

/* ─── TESTIMONIALS ─── */
.testimonials { padding: 100px 0; background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.test-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  background: white;
  transition: all 0.2s;
}
.test-card:hover { border-color: var(--border-dark); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.test-stars { color: var(--amber); font-size: 12px; letter-spacing: 1px; margin-bottom: 14px; }
.test-text {
  font-size: 15px; color: var(--text-2);
  line-height: 1.65; margin-bottom: 22px;
  font-style: italic;
}
.test-author { display: flex; align-items: center; gap: 11px; }
.test-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--off2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
}
.test-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.test-role { font-size: 12px; color: var(--text-4); }

/* ─── CTA SECTION ─── */
.cta-section { padding: 100px 0; }
.cta-box {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 72px 64px;
  text-align: center;
  background: var(--off);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}
.cta-box h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.cta-box h2 em { font-style: italic; color: var(--text-3); }
.cta-box p { font-size: 16px; color: var(--text-3); max-width: 420px; margin: 0 auto 36px; line-height: 1.7; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-trust {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--text-4);
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 5px; }
.trust-item svg { width: 13px; height: 13px; }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-top: 12px; max-width: 260px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12.5px; color: var(--text-4); }
.footer-legal { display: flex; gap: 16px; list-style: none; }
.footer-legal a { font-size: 12px; color: var(--text-4); text-decoration: none; }
.footer-legal a:hover { color: var(--text-2); }

/* ─── COMPARISON TABLE ─── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: white;
  margin-top: 40px;
}
.compare-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--off);
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--off); }

/* ─── FAQ ─── */
.faq { padding: 100px 0; }
.faq-list { max-width: 720px; margin: 40px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  background: none; border: none;
  width: 100%;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.4;
  gap: 16px;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--text-4);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after {
  content: '−';
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding-top: 12px;
}
.faq-a p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
}

/* ─── PORTFOLIO CARDS ─── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  background: white;
  transition: all 0.2s;
}
.portfolio-card:hover { border-color: var(--border-dark); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.portfolio-pub { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); margin-bottom: 10px; }
.portfolio-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.portfolio-desc { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-bottom: 12px; }
.portfolio-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.portfolio-badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ─── CASE STUDY CARDS ─── */
.case-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 48px; }
.case-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  background: white;
  transition: all 0.2s;
}
.case-card:hover { border-color: var(--border-dark); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.case-industry { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); margin-bottom: 10px; }
.case-title { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.02em; }
.case-desc { font-size: 14px; color: var(--text-3); line-height: 1.65; margin-bottom: 20px; }
.case-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.case-metric { background: white; padding: 14px 12px; text-align: center; }
.case-metric-num { font-family: 'DM Mono', monospace; font-size: 20px; font-weight: 500; color: var(--green); margin-bottom: 2px; }
.case-metric-label { font-size: 11px; color: var(--text-4); font-weight: 500; }

/* ─── CONTACT FORM ─── */
.contact-form {
  max-width: 560px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.form-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-4);
}
.form-field label span { color: var(--border-dark); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: #FAFAF8;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,14,12,0.06);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* ─── TEAM GRID ─── */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  background: white;
  text-align: center;
  transition: all 0.2s;
}
.team-card:hover { border-color: var(--border-dark); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.team-av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--off2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: var(--text-3);
  margin: 0 auto 14px;
}
.team-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.team-role { font-size: 13px; color: var(--text-3); }

/* ─── TIMELINE ─── */
.timeline { padding: 0; margin: 48px 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-year {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-4);
  padding-top: 2px;
}
.timeline-content h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.timeline-content p { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* ─── GUARANTEE STRIP ─── */
.guarantees { padding: 60px 0; background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guarantee-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.guarantee-card {
  text-align: center;
  padding: 24px 20px;
}
.guarantee-icon { font-size: 24px; margin-bottom: 10px; color: var(--green); }
.guarantee-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.guarantee-desc { font-size: 13px; color: var(--text-3); line-height: 1.55; }

/* ─── NETWORK SECTION ─── */
.network { padding: 100px 0; background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.network-layout {
  display: grid; grid-template-columns: 5fr 4fr; gap: 80px; align-items: start;
}

/* ─── SERVICES ─── */
.services { padding: 100px 0; }
.tabs-row {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.tab-btn {
  padding: 10px 18px;
  border: none; background: transparent;
  font-size: 14px; font-weight: 500;
  color: var(--text-4);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: -0.1px;
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── RETAINER ─── */
.retainer { padding: 100px 0; background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.retainer-layout { display: grid; grid-template-columns: 2fr 3fr; gap: 80px; align-items: start; }

/* ─── AGENCIES BADGE ─── */
.agencies-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--off);
  border: 1px solid var(--border-dark);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.agencies-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--text-4);
  border-radius: 50%;
}

/* ─── DEMO MODAL ─── */
#demo-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15,14,12,0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#demo-overlay.open { display: flex; }
#demo-modal {
  background: #FFFFFF;
  border: 1px solid #E8E5DF;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 40px 40px 36px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  animation: modal-in 0.22s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modal-in {
  from { opacity:0; transform:translateY(12px) scale(0.98); }
  to   { opacity:1; transform:none; }
}
#demo-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  color: #A8A49B;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}
#demo-close:hover { color: #0F0E0C; }
#demo-modal h2 {
  font-family: 'Instrument Serif', serif !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  color: #0F0E0C !important;
  margin-bottom: 6px !important;
}
#demo-modal p {
  font-size: 14px;
  color: #7A776E;
  margin-bottom: 28px;
  line-height: 1.6;
}
.demo-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.demo-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #A8A49B;
}
.demo-field label span { color: #D4D0C8; font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.demo-field input {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #E8E5DF;
  border-radius: 7px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #0F0E0C;
  background: #FAFAF8;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.demo-field input:focus {
  border-color: #0F0E0C;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,14,12,0.06);
}
.demo-field input::placeholder { color: #C8C4BC; }
.demo-field select { height: 40px; padding: 0 14px; border: 1px solid #E8E5DF; border-radius: 7px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: #0F0E0C; background: #FAFAF8; outline: none; transition: border-color 0.15s, box-shadow 0.15s; width: 100%; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23A8A49B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.demo-field select:focus { border-color: #0F0E0C; background-color: #fff; box-shadow: 0 0 0 3px rgba(15,14,12,0.06); }
#demo-submit {
  width: 100%;
  height: 44px;
  background: #0F0E0C;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.1px;
}
#demo-submit:hover { background: #2A2A26; transform: translateY(-1px); }
#demo-submit:disabled { background: #D4D0C8; cursor: not-allowed; transform: none; }
#demo-success {
  display: none;
  text-align: center;
  padding: 16px 0 8px;
}
#demo-success .demo-check { font-size: 40px; margin-bottom: 14px; }
#demo-success h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  color: #0F0E0C;
  margin-bottom: 8px;
}
#demo-success p { font-size: 14px; color: #7A776E; line-height: 1.6; }
#demo-err {
  display: none;
  font-size: 12.5px;
  color: #DC2626;
  margin-top: 8px;
  text-align: center;
}

/* ─── REVEAL ANIMATION ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .pain-intro { grid-template-columns: 1fr; gap: 24px; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .pain-card:nth-child(2n) { border-right: none; }
  .pain-card:nth-child(5), .pain-card:nth-child(6) { border-bottom: none; }
  .network-layout { grid-template-columns: 1fr; gap: 48px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .dpr-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .retainer-layout { grid-template-columns: 1fr; gap: 40px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .how-step:nth-child(2) { border-right: none; }
  .how-step:nth-child(3) { border-right: 1px solid var(--border); }
  .test-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  /* Hamburger menu on tablet/mobile */
  .hamburger { display: flex !important; }
  .nav-links {
    display: none !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 32px;
    overflow-y: auto;
    z-index: 99;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { display: flex !important; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links li.nav-dropdown { display: none !important; }
  .nav-links a { display: block; padding: 14px 0; font-size: 16px; }
  .nav-links .nav-cta { font-size: 16px !important; padding: 14px 0 !important; background: none !important; color: var(--text) !important; text-align: left !important; border-radius: 0 !important; }
  .cta-box { padding: 48px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Force ALL inline grid 2-column layouts to stack on mobile */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1."],
  [style*="grid-template-columns: 1fr 1."] {
    grid-template-columns: 1fr !important;
  }
  /* Exclude small form field pairs (first/last name) */
  .demo-field + .demo-field { /* keep side by side */ }
  /* Stack named 2-col grids */
  .guarantees-row { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: 1fr !important; }
  .price-grid { grid-template-columns: 1fr !important; }
  .api-features-grid { grid-template-columns: 1fr !important; }
  .api-built-for-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .price-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step { border-right: none !important; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { border-right: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .mobile-toggle { display: block; }
}

/* ─── STICKY BOTTOM BAR ─── */
.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border, #E8E5DF);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.sticky-bottom.visible { transform: translateY(0); }
.sticky-bottom p {
  font-size: 14px;
  color: var(--text-3, #7A776E);
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}
.sticky-bottom .sticky-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--ink, #0F0E0C);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm, 6px);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.sticky-bottom .sticky-cta:hover { background: #2A2A26; transform: translateY(-1px); }
.sticky-bottom .sticky-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-4, #A8A49B);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.sticky-bottom .sticky-close:hover { color: var(--text, #0F0E0C); background: var(--off, #F7F6F3); }
@media (max-width: 600px) {
  .sticky-bottom p { display: none; }
  .sticky-bottom { justify-content: center; }
}
