/* ontara.ch homepage, version 6: Home 5, but the platform part is ONE app window that stays in place
 * while you scroll through it (loaded last). Three steps in one frame, with Home 5's own content: the
 * Command Center start page → the requirements register (then the detail view of the proposed requirement)
 * → Compliance (the compliance check's results: regulations that apply, issues and gaps). The scroll position picks the
 * view; nothing plays on its own. About two screens of scrolling (--travel), then the page goes on. */

.sw { --hdr: 66px; --travel: 210vh; padding-top: 48px; }
@media (min-width: 1280px) and (min-aspect-ratio: 5/4) {
  .sw { padding-top: 0; } /* photo mode: the photo's own floor already makes the gap */
}
@media (max-width: 640px) { .sw { --hdr: 60px; } }

/* the track is as tall as the stage plus the scroll distance; the stage sticks under the header */
.sw__track { position: relative; height: calc(100vh - var(--hdr) + var(--travel)); margin-top: 8px; }
.sw__stage { position: sticky; top: var(--hdr); display: flex; height: calc(100vh - var(--hdr)); }
@supports (height: 100svh) {
  .sw__track { height: calc(100svh - var(--hdr) + var(--travel)); }
  .sw__stage { height: calc(100svh - var(--hdr)); }
}
.sw__in { display: flex; flex: 1; flex-direction: column; width: 100%; max-width: 1344px; min-height: 0; margin: 0 auto; padding: 22px 32px 28px; }

/* ---- the three steps: label + a thin bar that fills as you scroll; one line for the view below ---- */
.sw__cap { flex: none; }
.sw__steps { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sw__steps li { display: flex; }
.sw__step { display: grid; gap: 10px; width: 210px; padding: 0 0 2px; border: 0; background: none; font: 500 14px/1.2 var(--sans); color: var(--muted); text-align: left; cursor: pointer; transition: color 0.25s; }
.sw__step em { margin-right: 8px; font: 500 11.5px/1 var(--mono); font-style: normal; color: var(--muted-2); transition: color 0.25s; }
.sw__step:hover { color: var(--ink-2); }
.sw__step.is-on { color: var(--ink); }
.sw__step.is-on em { color: var(--accent-deep); }
.sw__step:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 4px; border-radius: 4px; }
.sw__bar { position: relative; display: block; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.sw__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.sw__texts { display: grid; margin-top: 14px; }
.sw__text { grid-area: 1 / 1; margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.3s; }
.sw__text.is-on { opacity: 1; transform: none; }

/* ---- the window: 1180 × 720 design px, scaled to fit the stage (width and height) and centred ---- */
.sw__box { position: relative; flex: 1; min-height: 0; margin-top: 18px; }
.sw .sw__win { left: var(--x, 0px); height: 720px; }
.sw__main { padding: 0; overflow: hidden; }

/* Command Center: Home 5's start page as it was (the space below stays empty); its numbers count up
   once, when the tour comes into view */
.sw-scr--cc { padding: 18px 22px; font-size: 12px; }
.motion .sw:not(.is-counting) .sw-scr--cc .ov-n { animation-play-state: paused !important; }

/* the three screens lie on top of each other; the active one fades in */
.sw-scr { position: absolute; inset: 0; padding: 20px 24px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s; }
.sw-scr.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s; }

/* the detail view slides in over the register in the second half of the Requirements step */
.sw__dw { transform: translateX(104%); transition: transform 0.6s var(--ease); }
.sw[data-step="2"] .sw__dw { transform: none; }
.sw-hl { opacity: 0; transition: opacity 0.3s; }
.sw[data-step="2"] .sw-hl { opacity: 1; }

/* ---- Compliance: the compliance check's results step, as in the app ---- */
.cp__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cp__title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.cp__title .ic { width: 18px; height: 18px; color: var(--muted); }
.cp__sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.cp__sel { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.cp__sel .ic { width: 13px; height: 13px; color: var(--muted-2); }
.cp__rail { display: flex; align-items: center; gap: 10px; margin: 13px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-2); }
.cp__rail li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cp__rail li + li::before { content: ""; width: 40px; height: 1px; margin-right: 2px; background: var(--accent); }
.cp__rail i { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); font: 600 10px/1 var(--sans); font-style: normal; color: #fff; }
.cp__rail i .ic { width: 12px; height: 12px; stroke-width: 2.5; }
.cp__rail .is-cur { font-weight: 600; color: var(--ink); }
.cp__rail .is-cur i { box-shadow: 0 0 0 3px var(--accent-soft); }

.cp__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-top: 13px; }
.cp__sum { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cp__k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.cp__big { margin-top: 8px; font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.cp__big span { font-size: 12px; color: var(--muted); }
.cp__small { margin-top: 6px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.cp__score { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.cp__score b { font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: #047857; }
.cp__score span { font-size: 12px; color: var(--muted); }
.cp__bar { display: flex; height: 8px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #eef2f6; }
.cp__bar i { border-right: 2px solid #fff; }
.cp__bar i:last-child { border-right: 0; }
.cp__bar .g, .cp__tiles .g { background: #10b981; }
.cp__bar .r, .cp__tiles .r { background: #f43f5e; }
.cp__bar .s { background: transparent; }
.cp__tiles .s { background: #94a3b8; }
.cp__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cp__tiles > span { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-content: start; align-items: center; column-gap: 6px; font-size: 12px; color: var(--ink-2); }
.cp__tiles i { width: 8px; height: 8px; border-radius: 50%; }
.cp__tiles b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cp__tiles em { grid-column: 2 / -1; margin-top: 2px; font-size: 10.5px; font-style: normal; line-height: 1.3; color: var(--muted-2); }

.cp__regs { padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cp__found { margin: 5px 0 6px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.cp__reg { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 6px 0; border-top: 1px solid rgba(225, 231, 239, 0.8); }
.cp__reg b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cp__reg > span { grid-column: 1; font: 500 10.5px/1.4 var(--mono); color: var(--muted-2); }
.cp__reg .cs { grid-column: 2; grid-row: 1 / 3; }
.cs { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 500; white-space: nowrap; }
.cs--ok { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.cs--gap { border-color: #fda4af; background: #ffe4e6; color: #be123c; font-weight: 600; }

.cp__card { margin-top: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cp__ch { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.cp__ch > .ic { width: 14px; height: 14px; color: var(--muted); }
.cp__ch em { font-size: 12px; font-style: normal; font-weight: 500; color: var(--muted); }
.cp__acts { display: flex; gap: 6px; margin-left: auto; }
.cp__acts .mini { height: 26px; padding: 0 10px; font-size: 11.5px; }
.cp__t { display: grid; align-items: center; column-gap: 14px; padding: 7px 14px; border-top: 1px solid rgba(225, 231, 239, 0.8); font-size: 12px; color: var(--ink-2); }
.cp__t--h { padding-top: 7px; padding-bottom: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.cp__iss .cp__t { grid-template-columns: 62px minmax(0, 1fr) 64px 72px 170px; }
.cp__gap .cp__t { grid-template-columns: 62px 190px minmax(0, 1fr); }
.cp__id { font: 500 11px/1 var(--mono); color: var(--muted); }
.cp__rq, .cp__rg { min-width: 0; }
.cp__rq b, .cp__rg b { display: block; font-size: 12.5px; font-weight: 550; line-height: 1.35; color: var(--ink); }
.cp__rq > span { display: block; overflow: hidden; font-size: 11.5px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.cp__rg > span { display: block; font: 500 10.5px/1.4 var(--mono); color: var(--muted-2); }
.cp__ob { line-height: 1.45; color: var(--ink-2); }
.cp__prop { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--accent-deep); }
.cp__prop .ic { width: 12px; height: 12px; }

/* ---- phones and small tablets: the window fills the stage and re-flows (no sidebar); the screens
   keep their order, cut off at the bottom like an app screen ---- */
@media (max-width: 899px) {
  .sw__in { padding: 14px 20px 18px; }
  .sw__steps { gap: 8px; }
  .sw__steps li { flex: 1; min-width: 0; }
  .sw__step { width: 100%; font-size: 13px; }
  .sw__step em { margin-right: 6px; }
  .sw__texts { margin-top: 10px; }
  .sw__text { font-size: 14.5px; }
  .sw__box { margin-top: 14px; }
  .sw .appw.sw__win { position: absolute; inset: 0; width: auto; height: auto; transform: none; }
  .sw__win .appw__body { height: calc(100% - 42px); }
  .sw__main { position: relative; height: 100%; }
  .sw-scr { padding: 14px; overflow: hidden; }
  .sw-scr::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 36px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
  .sw .dw.sw__dw { position: absolute; inset: 0; width: auto; border-top: 0; border-left: 0; }

  .cp__sub, .cp__sel, .cp__rail, .cp__acts { display: none; }
  .cp__top, .cp__sum { grid-template-columns: minmax(0, 1fr); }
  .cp__sum { gap: 12px; }
  .cp__sum > div:first-child { display: none; }
  .cp__iss .cp__t { grid-template-columns: 54px minmax(0, 1fr); }
  .cp__iss .cp__t > :nth-child(n + 3) { display: none; }
  .cp__gap .cp__t { grid-template-columns: 54px minmax(0, 1fr); }
  .cp__gap .cp__t > .cp__ob { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-scr, .sw-scr.is-on, .sw__dw, .sw-hl, .sw__text, .sw__step, .sw__step em { transition: none !important; }
}

/* hero: "systems" in the blue of the logo's O (its darker half, so the word stays readable) */
.dh__em { font-style: normal; color: #027dfe; background: linear-gradient(90deg, #027dfe, #06c1fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* capabilities: the three kinds of rules Ontara checks against (replaces Home 5's four pillar cards here):
 * thin lines, big questions, numbered rows, one short strip of the logo's blue on each top line */
.va { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 56px; }
.va__tx { position: relative; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.va__tx::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #027dfe, #06c1fe); }
.va__k { display: block; font: 500 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.va__t { min-height: 2.3em; margin: 14px 0 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.va__l { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: va; }
.va__l li { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink-2); counter-increment: va; }
.va__l li:last-child { border-bottom: 1px solid var(--line); }
.va__l li::before { content: counter(va, decimal-leading-zero); flex: none; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--muted-2); }
@media (max-width: 899px) {
  .va { grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 560px; }
  .va__t { min-height: 0; }
}
@media (max-width: 759px) { .va { margin-top: 40px; } }

/* about us, from 760 px: the headline on its own, then the founders with the HSG label at the end of their row
 * (as tall as the photos), then the badge line across the full width. Same markup as Home 5; phones unchanged */
@media (min-width: 760px) {
  .ab { grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; row-gap: 0; align-items: start; }
  .ab > div { display: contents; }
  .ab > div > .eyebrow { grid-area: 1 / 1 / 2 / -1; }
  .ab__t { grid-area: 2 / 1 / 3 / -1; }
  .ab .fd { grid-area: 3 / 1; max-width: none; }
  .ab__label { grid-area: 3 / 2; align-self: end; width: auto; height: 88px; }
  .ab .tb { grid-column: 1 / -1; max-width: none; }
}
/* the badge line as light pills (founder reference 2026-10-14, "silver"): every badge leads with a solid tile like a
 * flag — Switzerland, the EU, GDPR (EU stars around a padlock), no AI training (logo blue, shield with a tick) */
.ab .tb { display: flex; flex-wrap: wrap; gap: 12px; }
.ab .tb li { gap: 10px; height: 44px; padding: 0 18px 0 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: linear-gradient(#fff, #f2f5f9); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(13, 36, 64, 0.06), 0 6px 16px -6px rgba(13, 36, 64, 0.14); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.tb__flag { display: block; flex: none; width: 22px; height: 22px; }
.tb__flag--eu { width: 33px; }
