/* Layout for the switch and ConnectWise pages (Oct 2026).
   Homepage container is .wrap (1120px). Long prose stays on a comfortable
   measure. Hero, comparison tables, grids and CTAs use the full container.
   Reuses homepage hero, proof and face-photo patterns. No new fonts. */

.switch-hero.hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 16em;
}

.switch-hero.hero p.lead {
  max-width: 38em;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.6;
}

.switch-hero .hero-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.switch-hero .hero-copy { order: 1; }
.switch-hero .talk-band { order: 2; }
.switch-hero .sb-proof { order: 3; }
.switch-hero .hero-visual { order: 4; }

.switch-hero .legal-back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.switch-hero .eyebrow {
  display: flex;
  width: fit-content;
  margin: 0 auto 18px;
}

.switch-hero .legal-back:hover { color: var(--accent-blue); border: 0; }
.switch-hero .legal-back svg { width: 14px; height: 14px; }

.switch-hero .post-meta-row {
  justify-content: center;
  margin: 14px 0 0;
}

.switch-hero .hero-shot { position: relative; }
.switch-hero .hero-shot-img { display: block; width: 100%; height: auto; }

.switch-hero .hero-shot.app-mock {
  margin: 8px auto 0;
  max-width: 640px;
  text-align: left;
}

.switch-hero .hero-shot.app-mock-abstract {
  position: relative;
  box-shadow: var(--shadow-mock-lg), 0 0 0 1px var(--tint-blue-14), var(--shadow-card);
  z-index: 1;
}

.switch-hero .hero-shot.app-mock-abstract::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--border-blue), var(--border-subtle) 45%, var(--tint-blue-16) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.switch-hero .talk-band { margin-top: 32px; }
.switch-hero .sb-proof { margin-top: 28px; }

.switch-article { padding: 56px 0 80px; }

.switch-page .legal-body > p,
.switch-page .legal-body > ul,
.switch-page .legal-body > ol,
.switch-page .legal-body > blockquote {
  max-width: 68ch;
}

.switch-page .legal-body > .table-scroll,
.switch-page .legal-body > .gain-lose {
  max-width: none;
}

.switch-page .related-links {
  position: static;
  left: auto;
  transform: none;
  width: auto;
  max-width: none;
}

/* Space between a demo button and the text under it. */
.switch-page .legal-body > p.cta-follow,
.legal-body > p.cta-follow {
  margin-top: 28px;
  margin-bottom: 32px;
}

/* Talk to Victor or Micha. Same face-photo treatment as the homepage. */
.talk-band {
  text-align: center;
  padding: 8px 0 0;
}

.talk-band h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.talk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
}

.talk-band .face-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px;
}

.talk-band .face-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-alt);
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

.talk-band .face-name {
  font-weight: 600;
  color: var(--text);
  font-size: 18px;
}

.talk-band .face-role {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
}

.talk-band .talk-line {
  max-width: 36em;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* Customer logos already used on the homepage. */
.sb-proof { text-align: center; }

.sb-proof .proof-label {
  display: block;
  margin-bottom: 14px;
  font-family: "Fragment Mono", "Inter", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.sb-proof .proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.sb-proof .proof-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.sb-proof .proof-logo-pill:hover { border-color: var(--accent-blue); }

.sb-proof .proof-logo-pill:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.sb-proof .proof-logo-pill img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.integration-hero .talk-band { margin-top: 36px; }
.integration-hero .sb-proof { margin-top: 28px; }

@media (max-width: 640px) {
  .talk-grid { grid-template-columns: minmax(0, 320px); }
  .talk-band h2 { font-size: 24px; }
  .talk-band .face-card { padding: 24px 18px 20px; }
  .talk-band .face-photo { width: 140px; height: 140px; }
  .sb-proof .proof-logos { gap: 12px 14px; }
}

@media (min-width: 1024px) {
  .switch-hero .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas:
      "copy visual"
      "talk talk"
      "proof proof";
    gap: 20px 40px;
    align-items: center;
  }

  .switch-hero .hero-copy { grid-area: copy; order: 0; text-align: left; }
  .switch-hero .hero-visual { grid-area: visual; order: 0; }
  .switch-hero .talk-band { grid-area: talk; order: 0; margin-top: 12px; }
  .switch-hero .sb-proof { grid-area: proof; order: 0; margin-top: 8px; }

  .switch-hero .hero-copy h1,
  .switch-hero .hero-copy p.lead {
    margin-left: 0;
    margin-right: 0;
  }

  .switch-hero .hero-copy p.lead { margin-top: 16px; max-width: 34em; }
  .switch-hero .hero-copy .legal-back,
  .switch-hero .hero-copy .eyebrow {
    margin-left: 0;
    margin-right: 0;
  }
  .switch-hero .hero-copy .post-meta-row { justify-content: flex-start; }
  .switch-hero .hero-copy .hero-actions { justify-content: flex-start; }

  .switch-hero .hero-shot.app-mock { margin: 0 auto; max-width: 560px; }

  .switch-hero .hero-visual { position: relative; }
  .switch-hero .hero-visual::before {
    content: "";
    position: absolute;
    inset: -48px -40px -48px -10%;
    background-image: radial-gradient(var(--border) 1px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(closest-side, var(--overlay, #000) 55%, transparent 100%);
    mask-image: radial-gradient(closest-side, var(--overlay, #000) 55%, transparent 100%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
  }

  .switch-hero.hero { padding-bottom: 48px; }
}

@media (max-width: 480px) {
  .switch-hero .hero-actions { align-items: stretch; }
  .switch-hero .hero-actions .btn { justify-content: center; }
}
