/* ontara.ch homepage, version 2 (2026-10-01): one list everywhere, the four capabilities.
 * Loaded after d2.css and home.css. The platform section loses its own three numbered steps;
 * the demo shows one "Findings" column, every finding labelled with its capability; the
 * capabilities section uses the same names and examples; a start page (v4's finale, re-done)
 * shows all four in one view: one page per capability shrinks into its box once in view. */

/* ================= platform: one workspace, no steps of its own ================= */
.dp__lede { max-width: 38em; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.dp__box { margin-top: 44px; }

/* the demo's findings, one per capability */
@media (min-width: 900px) {
  .appw__table .rgt__row { grid-template-columns: 96px minmax(0, 1fr) 116px 236px; min-height: 46px; }
  .appw__table .rgt__head { min-height: 34px; }
}
.fd { display: grid; justify-items: start; gap: 4px; }
.fd em { font: 500 9.5px/1 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }

/* demo timing (keyframes in d2.css): rows 2.4–3.2 s · Run checks 3.8 s · one finding per
   capability 4.2 / 4.7 / 5.2 / 5.7 s · the proposed requirement 6.1–6.4 s · no findings 6.6 s ·
   the detail panel from 7.6 s (the findings stay readable for about 3 s first) */
.motion .h-f1 { animation: d-pop 0.4s var(--ease) 4.2s both; }
.motion .h-f2 { animation: d-pop 0.4s var(--ease) 4.7s both; }
.motion .h-f3 { animation: d-pop 0.4s var(--ease) 5.2s both; }
.motion .h-f4 { animation: d-pop 0.4s var(--ease) 5.7s both; }
.motion .d-rn { animation: d-row 0.45s var(--ease) 6.1s both; }
.motion .h-f5 { animation: d-pop 0.4s var(--ease) 6.4s both; }
.motion .h-ok { animation: d-show 0.3s linear 6.6s both; }
.motion .d-hl { animation: d-show 0.3s linear 7.4s both; }
.motion .d-dw { animation: d-drawer 0.75s var(--ease) 7.6s both; }
.motion .d-m1 { animation: d-mark 0.4s linear 8.5s both; }
.motion .d-fix { animation: d-pop 0.4s var(--ease) 8.9s both; }

/* ================= one view: the four capabilities on the start page ================= */
.ov__lede { max-width: 38em; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.ov__box { position: relative; width: 100%; aspect-ratio: 1000 / 470; margin-top: 44px; }
.ov { position: absolute; left: 0; top: 0; width: 1000px; height: 470px; transform: scale(var(--k, 1)); transform-origin: 0 0; font-size: 12px; color: var(--ink); } /* 1000 × 470 design px, scaled by home2.js */

/* the start page */
.ov-fw { position: absolute; inset: 0; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(13, 36, 64, 0.05), 0 28px 56px -40px rgba(13, 36, 64, 0.3); overflow: clip; }
.ov-fw__chrome { position: relative; display: flex; flex: none; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.ov-fw__chrome > i { width: 9px; height: 9px; border-radius: 50%; background: #dfe5ee; }
.ov-fw__url { position: absolute; left: 50%; padding: 4px 12px; border-radius: 6px; background: #eef2f7; font: 500 10px/1 var(--mono); color: var(--muted); transform: translateX(-50%); }
.ov-fw__body { display: grid; flex: 1; grid-template-columns: 52px minmax(0, 1fr); min-height: 0; }
.ov-fw__side { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; border-right: 1px solid var(--line); background: #fbfcfe; }
.ov-fw__side i { width: 22px; height: 22px; border-radius: 6px; background: #eef2f7; }
.ov-fw__side i.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ov-fw__main { min-width: 0; padding: 18px 22px; }
.ov-fw__title { font-size: 19px; font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; }
.ov-fw__next { margin-top: 5px; font-size: 12px; color: var(--muted); }
.ov-fw__next span { color: var(--ink-2); }
.ov-fw__eyebrow { margin-top: 16px; font: 500 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.ov-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.ov-sc { display: flex; min-height: 196px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ov-sc__in { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 14px; }
.ov-sc__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.ov-sc__head em { flex: none; font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--accent-deep); }
.ov-sc__p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.ov-sc__v { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.ov-sc__v b { font-size: 27px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ov-sc__v span { font-size: 12px; color: var(--muted); }
.ov-sc__s { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--ink-2); }
.ov-sc__cta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 560; color: var(--accent-deep); }
.ov-sc__cta .ic { width: 14px; height: 14px; }
.ov-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); } /* blue = finding */
.ov-dot--c { background: var(--danger); } /* red = breaks a law */

/* counters (@property --n is registered in d2.css) */
.ov-n { counter-reset: n var(--n); }
.ov-n::before { content: counter(n); }
.ov-pct::after { content: "%"; }
.ov-n1 { --n: 214; } .ov-n2 { --n: 92; } .ov-n3 { --n: 3; } .ov-n4 { --n: 24; }

.ov-low { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 12px; }
.ov-dash, .ov-quick { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ov-dash__head { display: flex; align-items: center; gap: 10px; }
.ov-dash__ic { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.ov-dash__ic .ic { width: 15px; height: 15px; }
.ov-dash__head b { display: block; font-size: 13px; font-weight: 650; }
.ov-dash__head span { display: block; font-size: 11px; color: var(--muted); }
.ov-dash__bar { display: flex; height: 8px; margin-top: 12px; border-radius: 99px; overflow: clip; }
.ov-dash__bar i { border-right: 2px solid #fff; }
.ov-dash__bar i:last-child { border-right: 0; }
.ov-quick__label { font: 500 9.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ov-quick__a { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; color: var(--ink-2); }
.ov-quick__a .ic { width: 14px; height: 14px; color: var(--muted); }

/* one page per capability (2 × 2 over the start page; motion only) */
.fv { position: absolute; z-index: 3; display: none; width: 460px; height: 204px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(13, 36, 64, 0.06), 0 24px 48px -30px rgba(13, 36, 64, 0.35); overflow: clip; transform-origin: 0 0; font-size: 11px; color: var(--ink); }
.motion .fv { display: block; }
.fv--1 { left: 30px; top: 24px; }
.fv--2 { left: 510px; top: 24px; }
.fv--3 { left: 30px; top: 246px; }
.fv--4 { left: 510px; top: 246px; }
.fv__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.fv__bar i { width: 7px; height: 7px; border-radius: 50%; background: #dfe5ee; }
.fv__bar span { margin-left: 6px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.fv__body { padding: 12px 14px; }
.fv__row { display: flex; align-items: center; gap: 8px; height: 30px; border-bottom: 1px solid var(--line); }
.fv__row em { flex: none; width: 58px; font: 500 10px/1 var(--mono); font-style: normal; color: var(--muted); }
.fv__row span { flex: 1; min-width: 0; overflow: hidden; font-weight: 560; white-space: nowrap; text-overflow: ellipsis; }
.fv__row--hl { margin: 0 -14px; padding: 0 14px; background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.fv .tag { flex: none; height: 17px; font-size: 9px; }
.fv__k { font: 500 10px/1.3 var(--mono); color: var(--muted); }
.fv__t { margin: 6px 0 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.fv__box { margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfe; font-size: 11.5px; line-height: 1.45; color: var(--ink-2); }
.fv__box b { margin-right: 4px; font-weight: 600; color: var(--ink); }
.fv mark { padding: 0 2px; border-radius: 2px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }

/* the animation (motion only; ~4 s once in view): the pages wait 2 × 2, the start page appears
   behind them, each page shrinks into its box (1.2 / 1.45 / 1.7 / 1.95 s), the boxes fill and
   count up, then "Next up". Landing spots (--tx, --ty, --s) are measured by home2.js. */
.motion .ov:not(.is-on) * { animation-play-state: paused !important; }
.motion .ov-fw { animation: ov-in 0.6s var(--ease) 1s both; }
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }
.motion .fv { animation: ov-fly 1.25s cubic-bezier(0.55, 0, 0.25, 1) both; }
.motion .fv--1 { animation-delay: 1.2s; }
.motion .fv--2 { animation-delay: 1.45s; }
.motion .fv--3 { animation-delay: 1.7s; }
.motion .fv--4 { animation-delay: 1.95s; }
@keyframes ov-fly {
  0% { opacity: 1; transform: none; }
  80% { opacity: 1; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 0.47)); }
  100% { opacity: 0; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 0.47)); }
}
.motion .ov-sc__in { animation: ov-in 0.35s linear both; }
.motion .ov-sc:nth-child(1) .ov-sc__in { animation-delay: 2.2s; }
.motion .ov-sc:nth-child(2) .ov-sc__in { animation-delay: 2.45s; }
.motion .ov-sc:nth-child(3) .ov-sc__in { animation-delay: 2.7s; }
.motion .ov-sc:nth-child(4) .ov-sc__in { animation-delay: 2.95s; }
.motion .ov-n1 { animation: ov-n1 1.2s var(--ease) 2.3s both; }
.motion .ov-n2 { animation: ov-n2 1.2s var(--ease) 2.55s both; }
.motion .ov-n3 { animation: ov-n3 0.8s var(--ease) 2.8s both; }
.motion .ov-n4 { animation: ov-n4 1s var(--ease) 3.05s both; }
@keyframes ov-n1 { from { --n: 0; } to { --n: 214; } }
@keyframes ov-n2 { from { --n: 0; } to { --n: 92; } }
@keyframes ov-n3 { from { --n: 0; } to { --n: 3; } }
@keyframes ov-n4 { from { --n: 0; } to { --n: 24; } }
.motion .ov-fw__next { animation: ov-in 0.4s linear 3.9s both; }

/* ---- below 900 px: the start page re-flows, no flying pages ---- */
@media (max-width: 899px) {
  .ov__box { aspect-ratio: auto; margin-top: 32px; }
  .ov { position: relative; width: auto; height: auto; transform: none; }
  .ov-fw { position: relative; }
  .motion .fv { display: none; }
  .ov-fw__url, .ov-fw__side, .ov-low { display: none; }
  .ov-fw__body { grid-template-columns: minmax(0, 1fr); }
  .ov-fw__main { padding: 16px; }
  .ov-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-sc { min-height: 0; }
  .ov-sc__cta { margin-top: 14px; }
  .motion :is(.ov-fw, .ov-sc__in, .ov-n, .ov-fw__next) { animation: none; }
}
@media (max-width: 520px) {
  .ov-g { grid-template-columns: minmax(0, 1fr); }
}
