/* ================================
   ESA Letter Comparison — servicedogs.com style
   Friendly, light, orange CTAs, pastel sections
   ================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #4b5563;
  background: #ffffff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: #1e3a8a;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); font-weight: 800; color: #1e3a8a; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); text-align: center; }
h3, h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

a { color: #2563eb; text-decoration: none; transition: color .15s ease; }
a:hover { color: #1d4ed8; text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.blue { color: #2563eb; }

/* ================================
   SITE HEADER
   ================================ */
.site-header {
  background: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid #e5edf3;
}
.site-header .container { display: flex; align-items: center; }
.site-logo { display: block; height: 40px; width: auto; }
@media (max-width: 767px) {
  .site-header { padding: 14px 0; }
  .site-logo { height: 32px; }
}

/* ================================
   HERO — soft blue, friendly
   ================================ */
.hero {
  background: linear-gradient(180deg, #eaf4fb 0%, #f5fafd 100%);
  padding: 64px 0 72px;
  border-bottom: 1px solid #e5edf3;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-text h1 {
  color: #1e3a8a;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.05rem;
  color: #475569;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.hero-img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 10px 30px -15px rgba(30, 58, 138, 0.15);
}

/* Orange CTA — primary button style */
.btn-hero {
  display: inline-block;
  background: #f97316;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(249, 115, 22, 0.5);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-hero:hover {
  background: #ea580c;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(249, 115, 22, 0.6);
}

/* Image placeholder */
.img-placeholder {
  background: #f1f5f9;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

/* ================================
   STICKY NAV
   ================================ */
.jump-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow .25s ease;
}
.jump-nav.scrolled { box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06); }
.jump-inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.pill {
  position: relative;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  background: transparent;
  border-radius: 0;
  transition: color .15s ease;
}
.pill::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: #f97316;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.pill:hover { color: #f97316; text-decoration: none; }
.pill:hover::after { transform: scaleX(1); }

/* ================================
   SECTIONS — alternating pastel
   ================================ */
main.container { max-width: none; padding: 0; }
main.container > section {
  padding: 64px 0;
}
main.container > section > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Soft pastel alternation */
main.container > section:nth-of-type(1) { background: #ffffff; }
main.container > section:nth-of-type(2) { background: #f0f9f4; }   /* mint */
main.container > section:nth-of-type(3) { background: #ffffff; }
main.container > section:nth-of-type(4) { background: #eff6ff; }   /* light blue */
main.container > section:nth-of-type(5) { background: #ffffff; }

section h2 {
  text-align: center;
  color: #1e3a8a;
  margin-bottom: 2rem;
}

/* Centered intro text under headings */
section.card p {
  text-align: center;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* "What is" / "Why" cards — clean centered text */
section.card { padding: 56px 0; }
section.card .check-list {
  max-width: 640px;
  margin: 0 auto;
}

/* ================================
   LISTS
   ================================ */
.check-list, .x-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li, .x-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.7rem;
  font-size: 15px;
  color: #475569;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background: #f97316;
  color: #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.x-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   FEATURES GRID
   ================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5edf3;
  border-radius: 16px;
  padding: 28px 22px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature:hover {
  border-color: #f97316;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -12px rgba(249, 115, 22, 0.2);
}
.feature .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff7ed;
  color: #f97316;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
}
.feature strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1e3a8a;
  font-size: 16px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

/* ================================
   PROVIDER CARDS
   ================================ */
.provider {
  border: 1px solid #e5edf3;
  border-radius: 18px;
  margin: 1.5rem auto;
  padding-left: 0px !important;
  padding-right: 0px !important;
  background: #ffffff;
  box-shadow: 0 6px 24px -10px rgba(30, 58, 138, 0.1);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.provider:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(30, 58, 138, 0.18);
}
.provider-head {
  background: #eaf4fb;
  color: #1e3a8a;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #dbeafe;
}
.provider-head h2 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1.3rem;
  text-align: left;
  letter-spacing: -0.01em;
}
.provider-url { color: #2563eb; font-size: 0.9rem; font-weight: 600; }
.provider-url:hover { color: #1d4ed8; }

/* CertaPet (#1) */
.provider-top {
  border: 2px solid #f97316;
}
.provider-top .provider-head {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-bottom: 1px solid #fed7aa;
  position: relative;
}
.provider-top .provider-head::before {
  content: "★ TOP PICK";
  position: absolute;
  top: 14px;
  right: 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: #f97316;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
}

.provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 24px 28px 0;
}
.provider-meta .logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: none;
}
.grade {
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.provider-top .grade { background: #f97316; }
.rating { font-size: 1.3rem; font-weight: 800; color: #1e3a8a; }

.provider-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 24px 28px;
}
.proscons h4 {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.pros-h { color: #f97316; }
.cons-h { color: #ef4444; }

.bottom-line {
  background: #eaf4fb;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  padding: 18px 22px;
}
.bottom-line h4 {
  color: #1e3a8a;
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.bottom-line p { color: #475569; font-style: italic; margin: 0; line-height: 1.65; }

.coupon-note { font-style: italic; color: #94a3b8; font-size: 0.85rem; padding: 0 28px; margin-bottom: 0.5rem; text-align: center; }
.provider .btn { margin: 16px 28px 28px; width: calc(100% - 56px); }

/* ================================
   BUTTONS — orange pill primary
   ================================ */
.btn {
  display: block;
  width: 100%;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  color: #ffffff;
  background: #f97316;
  border: none;
  box-shadow: 0 8px 20px -8px rgba(249, 115, 22, 0.5);
}
.btn:hover {
  text-decoration: none;
  color: #ffffff;
  transform: translateY(-2px);
  background: #ea580c;
  box-shadow: 0 14px 28px -10px rgba(249, 115, 22, 0.6);
}
.btn-blue, .btn-green { background: #f97316; }
.btn-blue:hover, .btn-green:hover { background: #ea580c; }

/* ================================
   FINAL VERDICT — soft blue
   ================================ */
.verdict {
  background: linear-gradient(180deg, #eaf4fb 0%, #f5fafd 100%) !important;
  color: #1e3a8a;
  border-radius: 0;
  padding: 72px 0 !important;
}
.verdict h2 {
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 1.5rem;
}
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem auto;
}
.verdict-img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 10px 30px -15px rgba(30, 58, 138, 0.15);
}
.scorecard { display: flex; flex-direction: column; gap: 0.75rem; }
.score-row {
  background: #ffffff;
  color: #1e3a8a;
  padding: 16px 22px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  box-shadow: 0 4px 14px -8px rgba(30, 58, 138, 0.15);
}
.score-row span:last-child { color: #f97316; font-weight: 800; }
.verdict-summary { color: #475569; max-width: 70ch; font-size: 1rem; line-height: 1.7; text-align: center; margin-left: auto; margin-right: auto; }
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem auto 2rem;
  justify-content: center;
}
.badge {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #dbeafe;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.final-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.verdict .btn { width: 100%; margin: 0; }

/* ================================
   FOOTER
   ================================ */
.footer {
  background: #1e3a8a;
  border-top: none;
  padding: 2.5rem 0;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-top: 0;
  text-align: center;
}
.footer a { color: #ffffff; }
.footer a:hover { color: #fed7aa; }

/* ================================
   RESPONSIVE
   ================================ */
@media (min-width: 768px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .provider-body { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
  .provider-right { display: flex; flex-direction: column; gap: 1rem; }
  .provider-right .coupon-note { padding: 0; margin: 0; text-align: left; }
  .provider-right .btn { width: 100%; margin: 0; }
  .verdict-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ================================
   MOBILE OPTIMIZATIONS
   ================================ */
@media (max-width: 767px) {
  body { font-size: 15px; line-height: 1.6; }
  .container { padding: 0 18px; }

  /* Hero — tighter, image first feels right but keep order */
  .hero { padding: 40px 0 48px; }
  .hero-grid { gap: 1.5rem; }
  .hero-text h1 { font-size: 1.75rem; line-height: 1.2; }
  .hero-text p { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero-img { height: 220px; }
  .btn-hero {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }

  /* Sticky nav — horizontal scroll, no wrap */
  .jump-nav { padding: 12px 0; }
  .jump-inner {
    gap: 1.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: 18px;
    padding-right: 18px;
  }
  .jump-inner::-webkit-scrollbar { display: none; }
  .pill { font-size: 0.9rem; white-space: nowrap; flex-shrink: 0; }

  /* Sections — tighter vertical rhythm */
  main.container > section { padding: 44px 0; }
  main.container > section > * { padding-left: 18px; padding-right: 18px; }
  section.card { padding: 36px 0; }
  section h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }

  /* Features */
  .features-grid { gap: 0.875rem; margin-top: 1rem; }
  .feature { padding: 22px 18px; }

  /* Provider cards */
  .provider { margin: 1rem auto; border-radius: 14px; }
  .provider-head {
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .provider-head h2 { font-size: 1.15rem; }
  .provider-top .provider-head { padding-top: 36px; }
  .provider-top .provider-head::before {
    top: 10px;
    right: 14px;
    font-size: 10px;
    padding: 4px 10px;
  }
  .provider-meta {
    padding: 18px 18px 0;
    gap: 0.75rem;
    justify-content: space-between;
  }
  .provider-meta .logo { height: 48px; max-width: 130px; flex: 0 1 auto; }
  .grade { font-size: 0.9rem; padding: 6px 14px; }
  .rating { font-size: 1.1rem; }
  .provider-body { padding: 18px; gap: 1.25rem; }
  .bottom-line { padding: 14px 16px; }
  .coupon-note { padding: 0 18px; font-size: 0.8rem; }
  .provider .btn { margin: 0; width: 100%; padding: 15px 20px; font-size: 14.5px; }
  .provider-right { display: flex; flex-direction: column; gap: 0.75rem; }
  .provider-right .coupon-note { padding: 0; margin: 0; text-align: left; }

  /* Lists */
  .check-list li, .x-list li { font-size: 14px; padding-left: 1.75rem; }

  /* Verdict */
  .verdict { padding: 48px 0 !important; }
  .verdict h2 { font-size: 1.45rem; }
  .verdict-img { height: 220px; }
  .verdict-grid { gap: 1.5rem; margin: 1.5rem auto; }
  .score-row { padding: 14px 18px; font-size: 0.95rem; }
  .badge { font-size: 0.8rem; padding: 7px 13px; }
  .verdict-summary { font-size: 0.95rem; text-align: left; }
  .trust-badges { justify-content: flex-start; }
  .final-ctas { gap: 0.75rem; }

  /* Buttons */
  .btn { padding: 15px 22px; font-size: 14.5px; }

  /* Footer */
  .footer { padding: 1.75rem 0; font-size: 0.85rem; text-align: left; }

  /* Prevent any horizontal overflow */
  html, body { overflow-x: hidden; }
  img { max-width: 100%; }
  .mob-pad-lr {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
