/* Conversion-focused OptimoRoute comparison page */

.competitor-page {
  --comparison-green: #0f766e;
  --comparison-green-soft: #dff5ee;
}

.competitor-page section[id] {
  scroll-margin-top: 5rem;
}

.competitor-hero {
  background:
    radial-gradient(800px 440px at 88% 5%, rgba(37, 99, 235, 0.3), transparent 62%),
    linear-gradient(140deg, #071528 0%, #0b1e38 58%, #12345d 100%);
  color: #ffffff;
  overflow: hidden;
  padding: clamp(4.25rem, 7vw, 6.75rem) 0;
  position: relative;
}

.competitor-hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  pointer-events: none;
  position: absolute;
}

.competitor-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.7fr);
  position: relative;
}

.competitor-hero .home-kicker {
  color: #93b8e7;
}

.competitor-hero h1 {
  color: #ffffff;
  font-size: clamp(2.8rem, 5.2vw, 4.85rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-top: 1.3rem;
  max-width: 12ch;
}

.competitor-hero-lede {
  color: #c7d5e7;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 42rem;
}

.competitor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.competitor-hero .button-primary {
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.95);
}

.competitor-hero .button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.competitor-hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.65);
}

.competitor-hero-note {
  color: #9eb1c9;
  font-size: 0.8rem;
  margin-top: 1.2rem;
}

.competitor-hero-note span {
  color: #60a5fa;
  margin: 0 0.35rem;
}

.hero-price-proof {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  box-shadow: 0 35px 75px -32px rgba(0, 0, 0, 0.75);
  color: var(--ink);
  overflow: hidden;
  position: relative;
}

.hero-price-proof::before {
  background: var(--accent);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.hero-price-label {
  color: #5f7186;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  padding: 1.4rem 1.5rem 0;
  text-transform: uppercase;
}

.hero-price-winner {
  background: rgba(29, 78, 216, 0.055);
  border-bottom: 1px solid var(--hairline);
  margin-top: 0.8rem;
  padding: 1.25rem 1.5rem;
}

.hero-price-winner > span,
.hero-price-winner > strong,
.hero-price-winner > em {
  display: block;
}

.hero-price-winner > span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-price-winner > strong {
  color: var(--accent);
  font-size: 2.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 0.45rem;
}

.hero-price-winner > strong small,
.hero-price-versus strong small {
  color: #5f7186;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-price-winner > em {
  color: var(--comparison-green);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  margin-top: 0.5rem;
}

.hero-price-versus {
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 2rem 1fr;
  padding: 1rem 1.5rem;
}

.hero-price-versus > span {
  align-items: center;
  background: #edf2f7;
  border-radius: 50%;
  color: #5f7186;
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  height: 2rem;
  justify-content: center;
  text-transform: uppercase;
  width: 2rem;
}

.hero-price-versus div > small,
.hero-price-versus div > strong {
  display: block;
}

.hero-price-versus div > small {
  color: #5f7186;
  font-size: 0.7rem;
}

.hero-price-versus div > strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
}

.hero-saving {
  background: var(--comparison-green-soft);
  padding: 1rem 1.5rem;
}

.hero-saving strong,
.hero-saving span {
  display: block;
}

.hero-saving strong {
  color: #08645d;
  font-size: 1rem;
}

.hero-saving span {
  color: #356d68;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.hero-price-note {
  color: #5f7186;
  font-size: 0.65rem;
  line-height: 1.5;
  padding: 0.8rem 1.5rem 1rem;
}

.value-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--hairline);
}

.value-strip .container {
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
}

.value-strip .container::-webkit-scrollbar {
  display: none;
}

.value-strip span {
  color: #53657a;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 1.05rem 1.2rem;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
}

.value-strip span:first-child {
  padding-left: 0;
}

.value-strip span::before {
  color: var(--accent);
  content: "✓";
  margin-right: 0.45rem;
}

.advantage-section {
  background: var(--field);
}

.advantage-intro {
  max-width: 46rem;
}

.advantage-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.75rem;
}

.advantage-grid article {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 0.8rem;
  box-shadow: 0 16px 38px -34px rgba(11, 30, 56, 0.6);
  padding: 1.35rem;
}

.advantage-grid article > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
}

.advantage-grid h3 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-top: 1.1rem;
}

.advantage-grid p {
  color: #56687d;
  font-size: 0.82rem;
  line-height: 1.65;
  margin-top: 0.65rem;
}

.compare-section {
  background: #ffffff;
}

.compare-heading {
  align-items: end;
  display: grid;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
}

.compare-heading > p {
  color: #56687d;
  font-size: 0.92rem;
  line-height: 1.7;
}

.comparison-table-wrap {
  border: 1px solid var(--hairline);
  border-radius: 0.85rem;
  box-shadow: 0 18px 45px -36px rgba(11, 30, 56, 0.45);
  margin-top: 2.5rem;
  overflow-x: auto;
}

.comparison-table-wrap:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

.vendor-comparison {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.vendor-comparison th,
.vendor-comparison td {
  border-bottom: 1px solid var(--hairline);
  padding: 0.9rem 1.1rem;
  text-align: left;
}

.vendor-comparison tr:last-child th,
.vendor-comparison tr:last-child td {
  border-bottom: 0;
}

.vendor-comparison thead th {
  color: #5f7186;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vendor-comparison thead th:first-child {
  width: 32%;
}

.vendor-comparison tbody th {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.vendor-comparison td {
  color: #56687d;
  font-size: 0.82rem;
}

.vendor-comparison td strong {
  color: inherit;
}

.vendor-comparison .route-optima-column {
  background: rgba(29, 78, 216, 0.055);
  border-left: 1px solid rgba(29, 78, 216, 0.13);
  border-right: 1px solid rgba(29, 78, 216, 0.13);
  color: var(--accent);
}

.compare-cta {
  align-items: center;
  background: var(--ink);
  border-radius: 0.75rem;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
}

.compare-cta p {
  color: #b9c8da;
  font-size: 0.82rem;
}

.compare-cta p strong {
  color: #ffffff;
}

.compare-cta .button {
  flex: 0 0 auto;
}

.proof-section-short {
  background:
    radial-gradient(700px 400px at 88% 5%, rgba(37, 99, 235, 0.25), transparent 65%),
    var(--ink);
  border-top: 0;
}

.proof-short-grid {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
}

.proof-short-copy .section-label {
  color: #8eacd0;
}

.proof-short-copy h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.07;
  margin-top: 1.1rem;
  max-width: 18ch;
}

.proof-short-copy > p:not(.section-label) {
  color: #b9c8da;
  font-size: 0.94rem;
  line-height: 1.75;
  margin-top: 1.1rem;
  max-width: 38rem;
}

.proof-short-copy .button {
  background: #ffffff;
  color: var(--ink);
  margin-top: 1.6rem;
}

.proof-short-copy .button:hover {
  background: #e5edf6;
}

.proof-numbers {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.proof-numbers > div {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 8.5rem 1fr;
  padding: 1.35rem 0;
}

.proof-numbers strong {
  color: #ffffff;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.proof-numbers span {
  color: #b9c8da;
  font-size: 0.8rem;
  line-height: 1.55;
}

.proof-numbers > p {
  color: #8fa3bd;
  font-size: 0.68rem;
  line-height: 1.55;
  padding: 0.85rem 0;
}

.compact-faq-section {
  padding-block: clamp(4rem, 6vw, 5.5rem);
}

.competitor-footer {
  padding-block: 2rem;
}

.competitor-footer-note {
  color: #5f7186;
  font-size: 0.66rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 38rem;
}

.competitor-footer-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

@media (max-width: 1000px) {
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .competitor-hero-grid,
  .compare-heading,
  .proof-short-grid {
    grid-template-columns: 1fr;
  }

  .competitor-hero h1 {
    max-width: 13ch;
  }

  .hero-price-proof {
    max-width: 34rem;
  }
}

@media (max-width: 760px) {
  .competitor-hero {
    padding: 3.5rem 0 4rem;
  }

  .competitor-hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .competitor-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .competitor-hero-actions .button {
    width: 100%;
  }

  .competitor-hero-note span {
    display: none;
  }

  .competitor-hero-note {
    display: grid;
    gap: 0.2rem;
  }

  .value-strip span {
    padding-inline: 0.85rem;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .vendor-comparison {
    min-width: 44rem;
  }

  .compare-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .compare-cta .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-price-winner > strong {
    font-size: 2.45rem;
  }

  .proof-numbers > div {
    gap: 0.8rem;
    grid-template-columns: 7.5rem 1fr;
  }

  .proof-numbers strong {
    font-size: 1.7rem;
  }
}
