/* ontara.ch homepage, version 8: Home 7 with full-width section bands (loaded last). Light and white
 * alternate, one dark band (Your advantages) stands out, like silex.legal and legora.com do it. The grey
 * second headline line stays only in Capabilities; the other headlines are one colour.
 *   hero (photo) · Platform: light · Capabilities: white · Your advantages: dark · Industries: light ·
 *   About: white · footer: light */

:root { --band-light: var(--bg); --band-white: #fff; --band-dark: var(--navy); }

/* every section is a band with its own space above and below (Home 7 only had space above) */
.hs { padding: 120px 0 128px; }
#capabilities, #about { background: var(--band-white); }
#industries { background: var(--band-light); }
.sw { background: var(--band-light); padding-bottom: 88px; }
.ft { margin-top: 0; background: var(--band-light); }
@media (max-width: 759px) {
  .hs { padding: 84px 0 92px; }
  .sw { padding-bottom: 56px; }
}

/* one colour per headline, except Capabilities */
#platform .h2 span, #advantages .h2 span, #industries .h2 span, #about .h2 span { color: inherit; }

/* ---- the dark band: Your advantages ---- */
#advantages { background: var(--band-dark); color: #fff; }
#advantages .eyebrow { color: #6fb6ff; }
#advantages .h2 { color: #fff; }
#advantages .adv__i { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }
#advantages .adv__n { color: #fff; }
#advantages .adv__n em { color: #9fb1c6; }
#advantages .adv__t { color: #fff; }
#advantages .adv__d { color: #b4c2d3; }
#advantages .adv__s { color: #7d91a8; }

/* ---- less empty space around the platform tour (split layout from 1100 px). The stage is only as tall
   as the window needs (the window's width sets its size there), so the empty space above and below the
   window no longer sits in the page; while pinned the stage is centred in the screen, as before. The track
   keeps the same scroll distance (stage + --travel). Short screens keep the full-height stage. ---- */
@media (min-width: 1100px) {
  .sw {
    --win: calc((min(100vw, 1344px) - 500px) * 0.72); /* box width (page width - padding - text column - gap) × 720/1000 */
    --stg: min(100vh - var(--hdr), var(--win) + 50px); /* + the stage's own padding (22 + 28) */
    padding-bottom: 64px;
  }
  .sw__track { height: calc(var(--stg) + var(--travel)); margin-top: 56px; }
  .sw__stage { top: calc(var(--hdr) + (100vh - var(--hdr) - var(--stg)) / 2); height: var(--stg); }
  @supports (height: 100svh) {
    .sw { --stg: min(100svh - var(--hdr), var(--win) + 50px); }
    .sw__track { height: calc(var(--stg) + var(--travel)); }
    .sw__stage { top: calc(var(--hdr) + (100svh - var(--hdr) - var(--stg)) / 2); height: var(--stg); }
  }
}

/* phones: the compliance gaps table hides its Obligation column, so its heading too */
@media (max-width: 899px) { .cp__gap .cp__t--h > :nth-child(3) { display: none; } }
