/* ontara.ch homepage, version 5: Home 4 + a Command Center in the platform part (loaded last).
 * Platform = intro + Command Center (the start page, shown finished; only the numbers count up
 * once) → Requirements (the register demo, unchanged). */

/* spacing: the platform intro follows the hero like Home 4's platform did; the requirements
   demo follows the Command Center */
.pf { padding-top: 48px; }
@media (min-width: 1280px) and (min-aspect-ratio: 5/4) {
  .pf { padding-top: 0; } /* photo mode: the photo's own floor already makes the gap */
}
.dp { padding-top: 104px; }

/* the two product views: a short heading and one line each */
.pf__head { display: grid; gap: 6px; margin-top: 64px; }
.pf__head--first { margin-top: 0; }
.pf__t { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.pf__d { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.pf__head + .ov__box, .pf__head + .dp__box { margin-top: 24px; }

/* the Command Center at the demo's scale: 1180 design px wide, like the requirements window */
@media (min-width: 900px) {
  .ov__box { aspect-ratio: 1180 / 456; }
  .ov { width: 1180px; height: 456px; }
  .ov-sc__p { min-height: 2.8em; } /* two lines in every box, so the numbers line up */
}

/* shown finished right away (no flying pages here); the numbers count up once in view */
.motion .ov-fw, .motion .ov-sc__in, .motion .ov-fw__next { animation: none; }
.motion .ov-n1 { animation: ov-n1 1s var(--ease) 0.15s both; }
.motion .ov-n2 { animation: ov-n2 1s var(--ease) 0.15s both; }
.motion .ov-n3 { animation: ov-n3 0.8s var(--ease) 0.15s both; }
.motion .ov-n4 { animation: ov-n4 1s var(--ease) 0.15s both; }

@media (max-width: 759px) {
  .dp { padding-top: 80px; }
  .pf__head { margin-top: 48px; }
  .pf__t { font-size: 20px; }
}

/* ================= the requirements demo, in the real app's look =================
   Register row as in the app (RegisterWorkspace ReqRow): ID, short title + full statement
   (+ parent trace), Attention icons (amber = quality, red = compliance, person = no owner),
   Modality, Domain, Status, Owner. Detail panel as in RequirementDetail: title + badges, then
   the app's sections (Requirement, Characteristics, Compliance; Traceability, Activity and
   Comments collapsed). */
@media (min-width: 900px) {
  .dp__box { aspect-ratio: 1180 / 720; }
  .appw { height: 720px; }
  .appw__table .rgt__row { grid-template-columns: 82px minmax(0, 1fr) 92px 108px 82px 92px 78px; min-height: 0; }
  .dw.rd { width: 480px; }
}
.appw__table .rgt__row { align-items: start; }
.appw__table .rgt__row > :not(.rgt__hl) { padding-top: 10px; padding-bottom: 10px; }
.appw__table .rgt__head { align-items: center; min-height: 34px; }
.appw__table .rgt__head > * { padding-top: 0 !important; padding-bottom: 0 !important; }
.appw__table .rgt__id { line-height: 18px; }

/* short title + full statement, like the app's two-line title cell */
.rq { display: block; min-width: 0; }
.rq__t { display: block; overflow: hidden; font-size: 13px; font-weight: 550; line-height: 18px; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.rq__l { display: block; margin-top: 1px; overflow: hidden; font-size: 12px; line-height: 17px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.rq__p { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font: 500 11px/1 var(--mono); color: var(--muted-2); }
.rq__p .ic { width: 12px; height: 12px; }

/* attention lane: icons with counts, a dash while nothing needs attention */
.at { position: relative; display: grid; min-height: 18px; }
.at > * { grid-area: 1 / 1; align-self: center; }
.at__dash, .at__none { font-style: normal; font-size: 12px; color: var(--muted-2); }
.at__none { opacity: 0; } /* resting state = after the checks */
.at__ic { display: inline-flex; align-items: center; gap: 8px; }
.att { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.att .ic { width: 14px; height: 14px; }
.att--amber { color: #d97706; }
.att--red { color: #dc2626; }
.motion .h-n1 { animation: d-hide 0.2s linear 4.2s both; }
.motion .h-n2 { animation: d-hide 0.2s linear 4.7s both; }
.motion .h-n3 { animation: d-hide 0.2s linear 5.2s both; }
.motion .h-n4 { animation: d-hide 0.2s linear 5.7s both; }
.motion .h-n5 { animation: d-hide 0.2s linear 6.4s both; }

/* modality, domain, status, owner */
.mod { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.mod--m { background: #eff6ff; color: #1d4ed8; }
.mod--r { background: #fffbeb; color: #b45309; }
.dm { overflow: hidden; font-size: 12px; line-height: 20px; color: var(--ink-2); white-space: nowrap; text-overflow: ellipsis; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; line-height: 20px; color: var(--ink-2); white-space: nowrap; }
.st__dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; opacity: 0.75; }
.st__dot--green { background: #10b981; }
.st__dot--amber { background: #f59e0b; }
.st__dot--slate { background: #94a3b8; }
.ow { font-size: 12px; line-height: 20px; color: var(--ink-2); white-space: nowrap; }
.ow--none { color: var(--muted-2); }

/* ---- the detail panel ---- */
.dw.rd { overflow: hidden; }
.rd__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 22px 12px; border-bottom: 1px solid var(--line); }
.rd__tm { min-width: 0; }
.rd__title { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.rd__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.bdg { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.bdg--slate { background: #f1f5f9; color: #475569; }
.bdg--blue { background: #eff6ff; color: #2563eb; }
.chp { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chp .ic { width: 13px; height: 13px; }
.chp--red { background: var(--danger-soft); color: #dc2626; }
.chp--amber { background: #fffbeb; color: #d97706; }
.rd__id { margin-left: 2px; font: 500 11px/1 var(--mono); color: var(--accent-deep); white-space: nowrap; }
.rd__acts { display: flex; flex: none; align-items: center; gap: 6px; }
.rd__adv { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 7px; background: var(--accent); font-size: 12.5px; font-weight: 550; color: #fff; white-space: nowrap; }
.rd__adv .ic { width: 15px; height: 15px; }
.rd__x { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted); }
.rd__x .ic { width: 17px; height: 17px; }
.rd__body { flex: 1; min-height: 0; padding: 12px 22px 0; }

/* sections: blue bar, chevron, uppercase title, like the app's accordion */
.rs { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(225, 231, 239, 0.8); }
.rs:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rs__h { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.rs__h i { flex: none; width: 3px; height: 14px; border-radius: 99px; background: #3b82f6; }
.rs__cv { width: 13px; height: 13px; color: var(--muted-2); }
.rs--closed { margin-top: 10px; padding-top: 10px; }
.rs--closed .rs__h { margin-bottom: 0; }

.rd__stmt { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); }
.rd__why { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid #bfdbfe; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.rd__why span { color: var(--muted); }
.rd__src { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; font-size: 11.5px; color: var(--muted); }
.rd__src-l { display: inline-flex; align-items: center; gap: 5px; }
.rd__src-l .ic { width: 13px; height: 13px; }
.rd__src-d { overflow: hidden; font-size: 11px; color: var(--muted-2); white-space: nowrap; text-overflow: ellipsis; }

.rd__props { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 1px 12px; margin: 0; }
.rd__props dt { font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.rd__props dd { display: flex; align-items: center; gap: 6px; min-height: 24px; margin: 0; font-size: 12.5px; color: var(--ink); }
.rd__props dd.is-empty { font-style: italic; color: var(--muted-2); }
.prov { font-size: 9px; font-style: normal; color: var(--muted-2); } /* the AI's reading: confirm or correct */
.rd__pk { width: 13px; height: 13px; color: var(--muted-2); }

.rc { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.rc__head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12.5px; color: var(--ink); }
.rc__head > .ic { flex: none; width: 13px; height: 13px; color: var(--muted); }
.rc__pill { flex: none; padding: 2px 8px; border: 1px solid #fecdd3; border-radius: 999px; background: #fff1f2; font-size: 11px; font-weight: 500; color: #be123c; }
.rc__name { min-width: 0; overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.rc__name b { font-weight: 600; color: var(--ink); }
.rc__body { padding: 10px 14px 12px; border-top: 1px solid rgba(225, 231, 239, 0.8); }
.rc__k { margin-bottom: 4px; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.rc__body p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.rc__body mark { padding: 0 2px; border-radius: 2px; background: var(--danger-soft); box-shadow: inset 0 -1.5px 0 var(--danger); color: var(--ink); }
.rc__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; font-weight: 500; color: #2563eb; }
.rc__link .ic { width: 14px; height: 14px; }

/* no separate add step: the proposed requirement is shown with the other rows; its finding comes
   last, then the detail opens (rows 2.4–3.1 s · findings 4.2 / 4.7 / 5.2 / 5.7 / 6.2 s ·
   highlight 6.8 s · panel 7 s) */
.motion .h-f5 { animation: d-pop 0.4s var(--ease) 6.2s both; }
.motion .h-n5 { animation: d-hide 0.2s linear 6.2s both; }
.motion .d-hl { animation: d-show 0.3s linear 6.8s both; }
.motion .d-dw { animation: d-drawer 0.75s var(--ease) 7s both; }
.motion .d-m1 { animation: d-mark 0.4s linear 7.9s both; }

/* the demo loops; a small icon button in the title bar pauses and resumes it */
.appw__ctl--icon { justify-content: center; width: 26px; padding: 0; }

/* ---- the sidebar, like the app's: ring mark + project switcher, "My Team" in its own group,
   user block + bell with an unread badge at the bottom ---- */
@media (min-width: 900px) {
  .appw__body { grid-template-columns: 220px minmax(0, 1fr); } /* the app's sidebar width, so the project name fits */
}
.appw__proj { gap: 8px; padding: 2px 6px 16px; }
.appw__logo { flex: none; width: 24px; height: 24px; }
.appw__proj b { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.appw__proj .ic { width: 14px; height: 14px; color: var(--muted); }
.appw__nav .appw__team { margin-top: 18px; }
.appw__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.appw__me { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 0; padding: 6px; }
.appw__av { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #1d4ed8); font-size: 11px; font-weight: 600; color: #fff; }
.appw__who { display: grid; min-width: 0; }
.appw__who b { overflow: hidden; font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.appw__who em { font-size: 11px; font-style: normal; line-height: 1.3; color: var(--muted); }
.appw__me > .ic { flex: none; width: 14px; height: 14px; color: var(--muted); }
.appw__bell { position: relative; display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); }
.appw__bell .ic { width: 16px; height: 16px; }
.appw__bell i { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #2563eb; box-shadow: 0 0 0 2px #fff; font-size: 10px; font-style: normal; font-weight: 600; color: #fff; }

/* the Command Center window: the app's collapsed sidebar (ring mark, the same nav icons,
   My Team, avatar + bell at the bottom) instead of placeholder squares */
.ov-fw__side { gap: 4px; padding: 12px 0; }
.ov-rail__logo { width: 26px; height: 26px; margin-bottom: 10px; }
.ov-rail__i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted-2); }
.ov-rail__i .ic { width: 16px; height: 16px; }
.ov-rail__i.on { background: var(--accent-soft); color: var(--accent); }
.ov-rail__team { margin-top: 12px; }
.ov-rail__foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: auto; }
.ov-fw__side .appw__av { width: 28px; height: 28px; font-size: 10.5px; }
.ov-fw__side .appw__bell { width: 32px; height: 32px; }
.ov-fw__side .appw__bell i { width: auto; min-width: 18px; height: 18px; border-radius: 999px; background: #2563eb; box-shadow: 0 0 0 2px #fff; }

/* phones: the row stacks (ID + attention, then the title, then status); the panel re-flows */
@media (max-width: 899px) {
  .appw__table .rgt__row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 0; }
  .appw__table .rgt__row > :not(.rgt__hl) { padding: 0 10px; }
  .appw__table .rgt__row > .rgt__id { grid-column: 1; grid-row: 1; }
  .appw__table .rgt__row > .at { grid-column: 2; grid-row: 1; }
  .appw__table .rgt__row > .rq { grid-column: 1 / -1; grid-row: 2; }
  .appw__table .rgt__row > .st { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
  .appw__table .rgt__row > :is(.mo, .dm, .ow) { display: none; }
  .rq__l { white-space: normal; }
  .rd__top { padding: 14px 16px; }
  .rd__body { padding: 12px 16px 16px; }
  .rd__acts .rd__x { display: none; }
}

/* ---- about us: the two founders (pitch deck v2.0, slide 3) — photo, name, role, one line ---- */
.fd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; max-width: 880px; margin: 40px 0 0; padding: 0; list-style: none; }
.fd__p { display: flex; align-items: center; gap: 18px; }
.fd__img { flex: none; width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--line); }
.fd__tx { display: grid; gap: 2px; }
.fd__n { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.fd__r { font-size: 14px; color: var(--ink-2); }
.fd__b { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.fd + .tb { max-width: 880px; margin-top: 40px; } /* the badge line as wide as the founders; all four badges on one line */
@media (max-width: 1023px) { .fd { grid-template-columns: minmax(0, 1fr); gap: 20px; } } /* one under the other once the column gets narrow */
@media (max-width: 759px) {
  .fd { margin-top: 32px; }
  .fd__img { width: 76px; height: 76px; }
}

/* ---- capabilities: the finding badge sits at the bottom of every example box, so all four line up
   (the boxes already end on one line; a one-line example no longer lifts its badge) ---- */
.pl__ex { display: flex; flex-direction: column; align-items: flex-start; }
.pl__ex .pill { margin-top: auto; }

/* ---- industries: the regulation line sits at the bottom of every card, so the four line up
   (a two-line description no longer lifts it above the three-line ones) ---- */
.in__i { display: flex; flex-direction: column; }
.in__d { margin-bottom: 12px; }
.in__r { margin-top: auto; }
