/* Manyreach vs Instantly comparison page */

/* ---------- Hero ---------- */
.cmp-hero__content { padding: 60px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: 16px; line-height: 25px; letter-spacing: -0.16px; font-weight: 500; color: var(--ink-60); }
.crumbs__link { color: var(--ink-60); border-bottom: 1px solid transparent; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.crumbs__link:hover, .crumbs__link:focus-visible { color: var(--ink); }
.crumbs__sep { width: 5px; height: 9px; opacity: 0.6; }
.cmp-hero__title { max-width: 950px; margin-top: 24px; font-size: 48px; line-height: 53px; letter-spacing: -1.44px; font-weight: 500; color: var(--ink); }
.cmp-meta { display: flex; align-items: center; gap: 40px; margin-top: 24px; }
.cmp-meta__item { display: flex; flex-direction: column; gap: 9px; }
.cmp-meta__label { font-size: 12px; line-height: 14px; font-weight: 400; color: var(--muted); }
.cmp-meta__value { font-size: 14px; line-height: 17px; letter-spacing: -0.14px; font-weight: 500; color: var(--ink); }
.cmp-meta__author { display: flex; align-items: center; gap: 8px; }
.cmp-meta__avatar { width: 20px; height: 20px; border-radius: 24px; overflow: hidden; flex: none; background: #ececec; }
.cmp-meta__avatar img { width: 64px; max-width: none; height: auto; }

/* Logo ticker */
.logos { display: flex; align-items: center; border-top: 1px solid var(--line); }
.logos__title {
  flex: none; width: 240px; padding: 48px; border-right: 1px solid var(--line);
  font-size: 16px; line-height: 21px; letter-spacing: -0.16px; font-weight: 400; color: var(--ink);
}
.logos__track { flex: 1; min-width: 0; overflow: hidden; padding: 48px 0; }
.logos__marquee { display: flex; align-items: center; gap: 96px; will-change: transform; }
.logos__marquee img { flex: none; height: auto; }
.logos__photo { object-fit: cover; }

/* ---------- Article + table of contents ---------- */
.post { display: grid; grid-template-columns: minmax(0, 1fr) 350px; border: 1px solid var(--line); border-bottom: 0; }
.post__aside { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: var(--header-h); padding: 40px; display: flex; flex-direction: column; gap: 40px; }
.post { background: linear-gradient(90deg, var(--white) calc(100% - 350px), var(--surface) 0); }

.toc__title { font-size: 16px; line-height: 21px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.toc__list { display: flex; flex-direction: column; }
.toc__link {
  display: block; padding: 8px 0 8px 12px; border-left: 2px solid transparent;
  font-size: 15px; line-height: 17px; letter-spacing: -0.15px; font-weight: 400; color: var(--muted);
  opacity: 0.95; transition: color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.toc__link:hover, .toc__link[aria-current] { color: var(--ink); opacity: 1; }
.toc__link[aria-current] { border-left-color: var(--ink); }

.post-cta { background: var(--white); border: 1px solid var(--line); padding: 16px 16px 20px; display: flex; flex-direction: column; }
.post-cta__title { font-size: 20px; line-height: 23px; letter-spacing: -0.6px; font-weight: 500; color: var(--ink); }
.post-cta__muted { display: block; color: var(--ink-60); }
.post-cta__text { margin-top: 14px; font-size: 13px; line-height: 19px; font-weight: 400; color: var(--muted); }
.post-cta__btn { margin-top: 20px; width: 100%; }
.post-cta__note { margin-top: 10px; text-align: center; font-size: 12px; line-height: 15px; font-weight: 400; color: var(--muted); }

.post__body { grid-column: 1; grid-row: 1; padding: 60px 64px 80px; min-width: 0; }
.post__body > * { max-width: 922px; }
.post__body p { font-size: 16px; line-height: 21.6px; letter-spacing: -0.16px; font-weight: 400; color: var(--ink); }
.post__body p + p { margin-top: 20px; }
.post__body h2 { margin-top: 48px; font-size: 40px; line-height: 48px; letter-spacing: -1.6px; font-weight: 500; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.post__body h3 { margin-top: 40px; font-size: 24px; line-height: 32px; letter-spacing: -0.72px; font-weight: 500; color: var(--ink); }
.post__body h2 + p, .post__body h3 + p { margin-top: 20px; }
.post__body h2 + h3 { margin-top: 32px; }
.post__body > :first-child { margin-top: 0; }

/* Comparison table */
.cmp-table { margin-top: 32px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.cmp-table__scroll { overflow-x: auto; }
.cmp-table table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cmp-table col { width: auto; }
.cmp-table th, .cmp-table td {
  padding: 12px 12px 10px 24px; text-align: left; vertical-align: top;
  font-size: 16px; line-height: 21.6px; letter-spacing: -0.16px; font-weight: 400; color: var(--ink);
  border: 1px solid var(--line-2);
}
.cmp-table thead th { font-weight: 500; }
.cmp-table tr > :nth-child(1) { width: 22%; }
.cmp-table tr > :nth-child(2) { width: 46.3%; }
.cmp-table tr:first-child > * { border-top: 0; }
.cmp-table tr:last-child > * { border-bottom: 0; }
.cmp-table tr > :first-child { border-left: 0; }
.cmp-table tr > :last-child { border-right: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 520px 1fr; border-top: 1px solid var(--line); }
.faq__intro { padding: 80px 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq__title { max-width: 400px; }
.faq__title .ink { display: block; }
.faq__list { border-left: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item h5 { font: inherit; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; text-align: left;
  font-size: 18px; line-height: 29px; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.faq__q:hover { background: var(--surface); }
.faq__icon { width: 14px; height: 14px; flex: none; transition: transform 0.3s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 32px 32px; max-width: 760px; font-size: 16px; line-height: 25px; font-weight: 400; color: var(--ink-60); }

/* ---------- Related comparisons ---------- */
.related { border-top: 1px solid var(--line); }
.related__title { padding: 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.related__heading { color: var(--ink); max-width: 500px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.related__grid li { border-right: 1px solid var(--line); }
.related__grid li:last-child { border-right: 0; }
.related-card { display: flex; flex-direction: column; gap: 20px; padding: 40px; height: 100%; }
.related-card img { width: 100%; height: auto; aspect-ratio: 387 / 238; object-fit: cover; }
.related-card__title { font-size: 20px; line-height: 26px; letter-spacing: -0.4px; font-weight: 500; color: var(--ink); }

/* ---------- Banner ---------- */
.banner { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; border-top: 1px solid var(--line); }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.banner__inner { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.banner__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); }
.banner__text { margin-top: 12px; font-size: 16px; line-height: 21.7px; font-weight: 400; color: var(--ink); }
.banner .btn { margin-top: 32px; }

/* ================= Tablet ================= */
@media (max-width: 1199px) {
  .cmp-hero__content { padding: 48px 40px; }

  .logos__title { width: 194px; padding: 32px; }
  .logos__track { padding: 40px 0; }

  .post { display: flex; flex-direction: column; background: var(--white); }
  .post__aside { display: contents; }
  .toc { order: 1; background: var(--surface); padding: 0 20px 44px; border-bottom: 1px solid var(--line); }
  .toc__title { display: none; }
  .toc__link { padding: 15px 0 15px 14px; font-size: 16px; line-height: 18px; }
  .post__body { order: 2; padding: 60px 40px 40px; }
  .post__body > * { max-width: none; }
  .post-cta { order: 3; margin: 0 20px 40px; padding: 24px 22px 22px; }
  .post-cta__text { font-size: 14px; }
  .post-cta__btn { min-height: 36px; }

  .post__body h2 { font-size: 32px; line-height: 38px; letter-spacing: -1.3px; margin-top: 40px; }
  .post__body h3 { font-size: 20px; line-height: 27px; letter-spacing: -0.5px; margin-top: 36px; }

  .faq { grid-template-columns: 1fr; }
  .faq__intro { padding: 40px 20px; }
  .faq__list { border-left: 0; border-top: 1px solid var(--line); }
  .faq__q { padding: 19px 20px; }
  .faq__a { padding: 0 20px 20px; }

  .related__title { padding: 48px 40px; gap: 32px; }
  .related__heading { font-size: 32px; line-height: 38px; }
  .related-card { padding: 20px; }

  .banner__title { font-size: 36px; line-height: 40px; letter-spacing: -1.4px; }
}

/* ================= Phone ================= */
@media (max-width: 809px) {
  .cmp-hero__content { padding: 32px 20px 40px; }
  .crumbs { row-gap: 18px; }
  .crumbs__current { flex-basis: 100%; }
  .cmp-hero__title { margin-top: 36px; font-size: 40px; line-height: 44px; letter-spacing: -1.2px; }
  .cmp-meta { margin-top: 36px; justify-content: space-between; max-width: 290px; gap: 24px; }
  .cmp-meta__avatar { width: 20px; height: 20px; }

  .logos { flex-direction: column; align-items: stretch; }
  .logos__title { width: auto; padding: 32px 20px 0; border-right: 0; text-align: center; }
  .logos__track { padding: 24px 0 32px; }
  .logos__marquee { gap: 56px; }

  .toc { padding: 0 20px 36px; }
  .toc__link { font-size: 16px; line-height: 18px; }
  .post__body { padding: 40px 20px 40px; }
  .post__body p { font-size: 16px; line-height: 21.6px; }
  .post__body h2 { font-size: 28px; line-height: 34px; letter-spacing: -1.1px; }
  .post__body h3 { font-size: 20px; line-height: 27px; }
  .post-cta { margin: 0 20px 40px; }

  .faq__intro { padding: 32px 20px 40px; }
  .faq__intro .tag { display: none; }
  .faq__q { padding: 20px; font-size: 16px; line-height: 19px; }
  .faq__a { padding: 0 20px 20px; font-size: 14px; line-height: 21px; }

  .related__title { padding: 32px 20px 40px; }
  .related__title .tag { display: none; }
  .related__heading { font-size: 28px; line-height: 34px; }
  .related__grid { grid-template-columns: 1fr; }
  .related__grid li { border-right: 0; border-bottom: 1px solid var(--line); }
  .related__grid li:last-child { border-bottom: 0; }
  .related-card { padding: 20px; gap: 20px; }
  .related-card img { aspect-ratio: 310 / 191; }

  .banner { padding: 36px 20px 40px; }
  .banner__title { font-size: 36px; line-height: 39px; }
  .banner__text { font-size: 16px; line-height: 21.3px; margin-top: 16px; }
  .banner .btn { margin-top: 28px; }
}
