/* Switch pages (sweatpals.com/business/switch/*): the comparison blocks that only these pages have.
   Loads after sweatpals.css and uses its tokens. Shared blocks (header, hero, steps, cards, reviews,
   FAQ, closing, footer) come from sweatpals.css unchanged. */

/* Blue hero colourway: Recover Blue with the Brand Book 121 artwork, white type (as the class-booking page) */
.bb-blue { --bb-base: #1A57FF; --bb-img: url("brand/bb-121.webp"); }
.bb-orange { --bb-img: url("brand/bb-124.webp"); }

/* ---------- Comparison tables (at a glance, feature by feature) ---------- */
.cmp-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 17px; }
.cmp-table th, .cmp-table td { padding: 22px 24px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.45; }
.cmp-table thead th { background: var(--dark); color: #fff; font-family: var(--font-display); font-size: 24px; line-height: 1; border-bottom: 0; }
.cmp-table thead th.us { background: var(--lime); color: #111; }
.cmp-table tbody th { font-weight: 700; color: var(--ink); background: var(--bg-soft); width: 20%; }
.cmp-table td { color: var(--ink-2); }
.cmp-table td.us { background: #F7FFE4; color: var(--ink); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td::before { display: none; content: attr(data-col); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cmp-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: right; }

/* Feature table: narrow yes/no columns, the difference takes the rest */
.cmp-table.features tbody th { width: 18%; }
.cmp-table.features .yes-no { width: 12%; white-space: nowrap; }
.cmp-table.features td.diff { width: 58%; }

/* Yes / No / Yes, but chips */
.yn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 8px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; }
.yn .i { width: 18px; height: 18px; stroke-width: 2.6; }
.yn-yes { background: var(--lime); color: #111; }
.yn-no { background: var(--bg-soft); color: var(--muted); }
.yn-part { background: var(--tint-yellow); color: #111; }

@media (max-width: 980px) {
  .cmp-table { font-size: 16px; }
  .cmp-table th, .cmp-table td { padding: 16px 18px; }
  .cmp-table thead th { font-size: 20px; }
}
/* Phones: each row becomes a block, the column names become small labels */
@media (max-width: 720px) {
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto !important; }
  .cmp-table thead { display: none; }
  .cmp-table tr { padding: 18px 18px 20px; border-bottom: 1px solid var(--line); }
  .cmp-table tr:last-child { border-bottom: 0; }
  .cmp-table th, .cmp-table td { padding: 0; border: 0; background: none !important; }
  .cmp-table tbody th { font-size: 18px; line-height: 1.25; margin-bottom: 12px; }
  .cmp-table td { font-size: 15px; }
  .cmp-table td + td { margin-top: 12px; }
  .cmp-table td::before { display: block; }
  .cmp-table.features .yes-no { display: inline-flex; align-items: center; gap: 10px; margin: 0 20px 12px 0; }
  .cmp-table.features .yes-no::before { margin: 0; }
  .cmp-table.features td.diff { display: block; margin-top: 2px; }
  .cmp-note { text-align: left; }
}

/* ---------- Complaints and answers, side by side ---------- */
.pairs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; }
.pair-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 0 2px 4px; }
.pair { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.pair.gripe { background: var(--bg-soft); border-color: transparent; }
.pair .mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.pair.gripe .mark { background: #fff; color: var(--muted); }
.pair.fix .mark { background: var(--lime); color: #111; }
.pair .mark .i { width: 16px; height: 16px; stroke-width: 2.6; }
.pair .eyebrow { display: none; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pair h3 { font-size: 20px; line-height: 1.2; margin-bottom: 8px; text-wrap: balance; }
.pair p { font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 760px) {
  .pairs { grid-template-columns: 1fr; gap: 12px; }
  .pair-label { display: none; }
  .pair .eyebrow { display: block; }
  .pair { padding: 22px 20px; gap: 14px; }
  .pair.fix { margin-bottom: 12px; }
}

/* ---------- Reasons: stacked cards, brand panel with the title, text beside it ---------- */
.reasons { display: flex; flex-direction: column; gap: 24px; }
.reason { position: sticky; top: calc(96px + var(--k, 0) * 16px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.reason-panel { padding: 48px 40px; display: flex; align-items: center; justify-content: center; text-align: center; color: #111; }
.reason-panel.bb-blue { color: #fff; }
.reason-panel h3 { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: .98; letter-spacing: -0.01em; color: inherit; max-width: 12ch; text-wrap: balance; }
.reason-text { display: flex; align-items: center; padding: 56px 64px; }
.reason-text p { font-size: 22px; line-height: 1.45; color: var(--ink); max-width: 36ch; text-wrap: pretty; }
@media (max-width: 1100px) {
  .reason-text { padding: 40px; }
  .reason-text p { font-size: 19px; }
}
@media (max-width: 980px) {
  .reason { position: static; grid-template-columns: 1fr; min-height: 0; }
  .reason-panel { min-height: 220px; padding: 32px 24px; }
  .reason-panel h3 { font-size: clamp(32px, 7vw, 44px); }
  .reason-text { padding: 28px 24px 32px; }
  .reason-text p { font-size: 17px; max-width: none; }
}

/* ---------- Use cases: seven photo cards, three wide then four ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.uc-grid > li:nth-child(-n+3) { grid-column: span 4; }
.uc-grid > li:nth-child(n+4) { grid-column: span 3; }
.uc-grid .cat-card { aspect-ratio: 4 / 3; }
.uc-grid .cat-card .name { font-size: clamp(22px, 2vw, 30px); }
@media (max-width: 980px) {
  .uc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .uc-grid > li:nth-child(n) { grid-column: auto; }
  .uc-grid > li:nth-child(n):last-child { grid-column: 1 / -1; }
  .uc-grid > li:last-child .cat-card { aspect-ratio: 16 / 7; }
}
@media (max-width: 480px) {
  .uc-grid .cat-card .name { font-size: 20px; left: 16px; right: 16px; bottom: 14px; }
}

/* Visually hidden (the other pages get this from the language switcher's inline CSS) */
.lang-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Switching steps: the button under the four steps ---------- */
.switch-cta { display: flex; justify-content: center; margin-top: 56px; }
.switch-cta .i { width: 18px; height: 18px; }
@media (max-width: 720px) { .switch-cta { margin-top: 36px; } }
