/* ============================================================
   TOPIC PAGES  —  /services/* /industries/* /guides/* /compare/*  (v2, 2026-10-01)
   Built on case.css (same stage, frames, captions, dashed rules,
   Inter Tight). Only the pieces case studies don't have live here.
   ============================================================ */

/* breadcrumb sits where the case page has its share icons */
.tp-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 10px;
  max-width: 60%;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 400;
}
.tp-crumb a { text-decoration: none; border-bottom: 1px solid rgba(34, 34, 34, 0.28); transition: border-color 0.2s var(--ease); }
.tp-crumb a:hover { border-color: var(--cx-ink); }
.tp-crumb span[aria-hidden] { color: var(--cx-dot); }

.tp .cx-title { max-width: 14ch; margin-inline: auto; }

/* second gray band (screens from the build) */
.tp-band {
  margin-top: clamp(80px, 8vw, 120px);
  padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 8vw, 120px);
  background: var(--cx-stage);
}
.tp-band .cx-els-head { margin-top: 0; }

/* split: heading left, hairline rows right */
.tp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.tp-split-head { position: sticky; top: 120px; }
.tp-aside { margin: 18px 0 0; max-width: 34ch; font-size: 18px; line-height: 1.55; }
.tp-rows { margin: 0; padding: 0; list-style: none; }
.tp-rows li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 8px 32px;
  padding: 24px 0 26px;
  background: linear-gradient(to right, var(--cx-dot) 1.5px, transparent 1.5px) left bottom / 7.7px 1px repeat-x;
}
.tp-rows li:first-child { padding-top: 6px; }
.tp-rows h3 { margin: 0; font-size: clamp(18px, 1.4vw, 20px); font-weight: 600; line-height: 1.35; }
.tp-rows p { margin: 0; font-size: 18px; line-height: 1.55; }

/* prices */
.tp-price { margin-top: 18px; }
.tp-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.5fr);
  gap: 12px 32px;
  align-items: baseline;
  padding: 28px 0;
  background: linear-gradient(to right, var(--cx-dot) 1.5px, transparent 1.5px) left bottom / 7.7px 1px repeat-x;
}
.tp-price-name b { display: block; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; }
.tp-price-name span { display: block; margin-top: 6px; max-width: 52ch; font-size: 17px; line-height: 1.5; }
.tp-price-num b { display: block; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; white-space: nowrap; }
.tp-price-num span { display: block; font-size: 14px; }
.tp-price-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 18px;
  font-size: 14px;
}
.tp-price-foot a { font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--cx-ink); }

/* questions */
.tp-faq { margin-top: 10px; }
.tp-faq details { background: linear-gradient(to right, var(--cx-dot) 1.5px, transparent 1.5px) left bottom / 7.7px 1px repeat-x; }
.tp-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.35;
}
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary i {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid #A7A7A7;
  border-radius: 50%;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tp-faq summary i::before, .tp-faq summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.tp-faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.tp-faq summary:hover i { border-color: var(--cx-ink); }
.tp-faq details[open] summary i { transform: rotate(45deg); background: var(--cx-ink); border-color: var(--cx-ink); color: #fff; }
.tp-faq .tp-a { max-width: 72ch; padding: 0 0 28px; font-size: 18px; line-height: 1.6; }
.tp-faq .tp-a p { margin: 0; }
.tp-faq summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }

/* related pages */
.tp-links { margin-top: 10px; }
.tp-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr) 32px;
  gap: 8px 28px;
  align-items: baseline;
  padding: 24px 0;
  text-decoration: none;
  background: linear-gradient(to right, var(--cx-dot) 1.5px, transparent 1.5px) left bottom / 7.7px 1px repeat-x;
}
.tp-link small { font-size: 14px; }
.tp-link b { font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; }
.tp-link span { font-size: 17px; line-height: 1.5; }
.tp-link svg { width: 22px; height: 22px; justify-self: end; align-self: center; transition: transform 0.3s var(--ease); }
.tp-link:hover svg { transform: translateX(5px); }
.tp-link:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* the note from David reuses .cx-vote; give it room */
.tp .cx-vote blockquote { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; }
.tp .cx-vote img { background: var(--cx-stage); object-fit: cover; }

/* tables (guides, compare) */
.tp-table-wrap { margin-top: 18px; overflow-x: auto; }
.tp-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.tp-table th, .tp-table td { padding: 20px 24px 20px 0; text-align: left; vertical-align: top; }
.tp-table thead th { padding-top: 0; font-size: 14px; font-weight: 500; }
.tp-table tr { background: linear-gradient(to right, var(--cx-dot) 1.5px, transparent 1.5px) left bottom / 7.7px 1px repeat-x; }
.tp-table tbody th { font-weight: 600; }

@media (max-width: 900px) {
  .tp-split { grid-template-columns: 1fr; }
  .tp-split-head { position: static; }
  .tp-link { grid-template-columns: minmax(0, 1fr) 28px; }
  .tp-link small { grid-column: 1 / -1; }
  .tp-link span { grid-column: 1; }
  .tp-link svg { grid-row: 2 / 4; grid-column: 2; }
}
@media (max-width: 760px) {
  .tp-crumb { display: none; }
  .tp-rows li { grid-template-columns: 1fr; }
  .tp-price-row { grid-template-columns: 1fr 1fr; }
  .tp-price-name { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-faq summary i, .tp-link svg { transition: none; }
}

/* phones inside a wide grid cell keep the case-page sizing */
.tp .cx-el--wide .cx-phones { aspect-ratio: auto; }
.tp .cx-el--wide .cx-phones-row img { width: min(22%, 260px); }

/* ---- v2 everywhere: generic section heads, steps, prose, type tiles, hubs ---- */
.tp-head { margin-bottom: clamp(28px, 3.4vw, 44px); }
.tp-head .tp-aside { max-width: 60ch; }
.tp-split .tp-head { margin-bottom: 0; }
.tp-n { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: #6F6F6F; }
.tp-prose { max-width: 68ch; font-size: 18px; line-height: 1.6; }
.tp-prose p { margin: 0 0 16px; }
.tp-prose ul { margin: 0 0 18px; padding-left: 1.1em; }
.tp-prose li { margin-bottom: 12px; padding-left: 4px; }
.tp-prose strong { font-weight: 600; }
.tp-proof-one { margin-top: 0; }
.tp-tile {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(10px, 1.4vw, 20px);
  aspect-ratio: 16 / 7;
  padding: clamp(28px, 6vw, 96px);
  border-radius: 6px;
  background: var(--tile);
  color: #F4F3EE;
}
.tp-tile-big { font-size: clamp(48px, 9vw, 150px); font-weight: 600; line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
.tp-tile-sub { max-width: 36ch; font-size: clamp(16px, 1.6vw, 24px); font-weight: 300; line-height: 1.4; color: rgba(244, 243, 238, 0.86); }
.tp-top--hub { padding-bottom: clamp(56px, 6vw, 88px); }
@media (max-width: 760px) {
  .tp-tile { aspect-ratio: 4 / 3; }
}
.tp-table-wrap:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
