/* First-launch onboarding, tenant Android app (redesign 2, 2026-11-10).
   ONE full screen: a soft coloured background that changes with each step, a phone
   mock-up of the app with floating detail cards, then the words, the progress and
   the buttons - all on the same surface. Light and dark, every phone, tablets and
   landscape. See js/onboarding.js. */
html.onb-open, html.onb-open body { overflow: hidden !important; }
.onb {
  --ob-bg: #f6f8fe; --ob-ink: #0f172a; --ob-sub: #5b6787; --ob-line: #dfe5f3; --ob-card: #ffffff;
  --ob-a: #3b63e8; --ob-a2: #2a4bc4; --ob-soft: #e3ecff; --ob-on: #1f55c4;
  position: fixed; inset: 0; z-index: 99999;
  background: var(--ob-bg); color: var(--ob-ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased;
  height: 100vh; height: 100dvh; overflow: hidden;
  animation: onbFade .3s ease both;
  touch-action: pan-y; overscroll-behavior: contain;
  transition: background-color .45s ease;
}
.onb.tone-green { --ob-a: #19a974; --ob-a2: #12805c; --ob-soft: #e3f6ec; --ob-on: #12805c; }
.onb.tone-coral { --ob-a: #ef6a4f; --ob-a2: #d1492f; --ob-soft: #fde6e0; --ob-on: #c2412d; }
.onb.tone-amber { --ob-a: #f0a623; --ob-a2: #c9820a; --ob-soft: #fff1d2; --ob-on: #965a00; }
.onb.tone-teal { --ob-a: #14b0c2; --ob-a2: #0e8696; --ob-soft: #daf3f6; --ob-on: #0e7c8c; }
html[data-theme="dark"] .onb { --ob-bg: #0b1230; --ob-ink: #eef2ff; --ob-sub: #a3afd6; --ob-line: #263063; --ob-card: #141c44; }
html[data-theme="dark"] .onb { --ob-soft: color-mix(in srgb, var(--ob-a) 22%, #0b1230); --ob-on: color-mix(in srgb, var(--ob-a) 55%, #ffffff); }
.onb *, .onb *::before, .onb *::after { box-sizing: border-box; margin: 0; padding: 0; }
.onb.onb-out { animation: onbFadeOut .3s ease both; pointer-events: none; }
@keyframes onbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes onbFadeOut { to { opacity: 0; } }

/* soft moving colour behind everything */
.onb-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.onb-bg i { position: absolute; border-radius: 50%; filter: blur(60px); transition: background-color .5s ease; }
.onb-bg .b1 { width: 120vw; height: 120vw; max-width: 760px; max-height: 760px; left: 50%; top: -18%; transform: translateX(-50%); background: var(--ob-soft); opacity: .95; }
.onb-bg .b2 { width: 70vw; height: 70vw; max-width: 460px; max-height: 460px; right: -24%; bottom: 8%; background: var(--ob-a); opacity: .10; }
html[data-theme="dark"] .onb-bg .b1 { opacity: .55; }
html[data-theme="dark"] .onb-bg .b2 { opacity: .22; }

.onb-inner {
  position: relative; width: 100%; max-width: 560px; height: 100%; margin: 0 auto;
  display: flex; flex-direction: column; min-height: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) clamp(20px, 6vw, 32px) calc(env(safe-area-inset-bottom, 0px) + 16px);
}

/* top bar */
.onb-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; flex: none; }
.onb-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ob-ink); }
.onb-bm svg { width: 28px; height: 28px; display: block; filter: drop-shadow(0 4px 8px rgba(20, 34, 92, .25)); }
.onb-skip {
  border: 1px solid var(--ob-line); background: var(--ob-card); color: var(--ob-sub);
  font: inherit; font-size: 14px; font-weight: 700; border-radius: 99px; min-height: 38px; padding: 0 18px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; box-shadow: 0 2px 8px rgba(15, 27, 69, .06);
}
.onb-skip:active { transform: scale(.96); }

/* picture */
.onb-art { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0 -8px; }
.onb-halo { position: absolute; width: min(66vw, 330px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--ob-soft) 0%, transparent 68%); }
.onb-ill { position: relative; width: 100%; height: 100%; max-width: 470px; max-height: 540px; display: block; overflow: visible; animation: onbFloat 6s ease-in-out infinite; }
@keyframes onbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* words */
.onb-txt { flex: none; text-align: center; padding-top: 6px; }
.onb-kick {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 10px; border-radius: 99px;
  background: var(--ob-soft); color: var(--ob-on);
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.onb-kick svg, .onb-li svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.onb-txt h2 { margin-top: 14px; font-size: clamp(25px, 7.2vw, 32px); line-height: 1.15; font-weight: 850; letter-spacing: -.02em; color: var(--ob-ink); }
.onb-txt p { margin: 10px auto 0; max-width: 34ch; font-size: clamp(15px, 4.1vw, 16.5px); line-height: 1.55; color: var(--ob-sub); min-height: 3.1em; }

/* progress + buttons */
.onb-foot { flex: none; padding-top: clamp(14px, 2.6vh, 24px); }
.onb-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 16px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--ob-line); transition: width .35s ease, background-color .35s ease; }
.onb-dots i.past { background: color-mix(in srgb, var(--ob-a) 45%, var(--ob-line)); }
.onb-dots i.on { width: 28px; background: var(--ob-a); }
.onb-btns { display: flex; gap: 10px; }
.onb-btn {
  flex: 1 1 auto; min-height: 56px; border: 0; border-radius: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 16.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #3b63e8, #2a4bc4);
  box-shadow: 0 12px 24px rgba(42, 75, 196, .3), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease;
}
.onb-btn svg, .onb-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.onb-back {
  flex: none; width: 56px; min-height: 56px; border-radius: 18px; cursor: pointer;
  display: grid; place-items: center; border: 1px solid var(--ob-line); background: var(--ob-card); color: var(--ob-ink);
  -webkit-tap-highlight-color: transparent; box-shadow: 0 2px 8px rgba(15, 27, 69, .06);
}
.onb-btn:active, .onb-back:active { transform: scale(.97); }
.onb-btn:focus-visible, .onb-back:focus-visible, .onb-skip:focus-visible { outline: 3px solid #9db4ff; outline-offset: 2px; }
.onb-full { width: 100%; }
.onb-help { margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ob-sub); }

/* all set */
.onb-top-end { min-height: 24px; }
.onb-end { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 2px; }
.onb-endmark { position: relative; margin-top: clamp(4px, 2vh, 20px); }
.onb-endmark > svg { width: 84px; height: 84px; display: block; filter: drop-shadow(0 16px 26px rgba(20, 34, 92, .3)); }
.onb-endtick { position: absolute; right: -8px; bottom: -6px; width: 32px; height: 32px; border-radius: 50%; background: #16a34a; border: 3px solid var(--ob-bg); display: grid; place-items: center; }
.onb-endtick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: none; }
.onb-end h2 { margin-top: 18px; font-size: clamp(26px, 7.6vw, 34px); font-weight: 850; letter-spacing: -.02em; color: var(--ob-ink); }
.onb-end > p { margin-top: 6px; font-size: 15.5px; color: var(--ob-sub); }
.onb-list { list-style: none; width: 100%; margin-top: clamp(16px, 3vh, 26px); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.onb-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--ob-card); border: 1px solid var(--ob-line); box-shadow: 0 4px 14px rgba(15, 27, 69, .05); }
.onb-li { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; }
.onb-li svg { width: 20px; height: 20px; }
.onb-list b { display: block; font-size: 15px; color: var(--ob-ink); }
.onb-list small { display: block; font-size: 13px; color: var(--ob-sub); line-height: 1.4; margin-top: 2px; }
.t-blue .onb-li { background: #e3ecff; color: #1f55c4; }
.t-green .onb-li { background: #e3f6ec; color: #12805c; }
.t-coral .onb-li { background: #fde6e0; color: #c2412d; }
.t-amber .onb-li { background: #fff1d2; color: #965a00; }
.t-teal .onb-li { background: #daf3f6; color: #0e7c8c; }
html[data-theme="dark"] .t-blue .onb-li { background: #1c2a63; color: #9db7ff; }
html[data-theme="dark"] .t-green .onb-li { background: #0f3327; color: #5fe0a8; }
html[data-theme="dark"] .t-coral .onb-li { background: #3d1a16; color: #ff9b8a; }
html[data-theme="dark"] .t-amber .onb-li { background: #3a2a08; color: #f6c453; }
html[data-theme="dark"] .t-teal .onb-li { background: #0f3138; color: #6fd3e0; }

/* motion */
.onb-in-r .onb-anim { animation: onbInR .42s cubic-bezier(.2, .7, .3, 1) both; }
.onb-in-l .onb-anim { animation: onbInL .42s cubic-bezier(.2, .7, .3, 1) both; }
.onb-in-r .onb-txt, .onb-in-l .onb-txt { animation-delay: .06s; }
@keyframes onbInR { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes onbInL { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* sizes */
@media (max-height: 660px) {
  .onb-txt h2 { margin-top: 10px; font-size: 23px; }
  .onb-txt p { margin-top: 6px; font-size: 14.5px; }
  .onb-dots { margin-bottom: 12px; }
  .onb-btn, .onb-back { min-height: 50px; }
  .onb-back { width: 50px; }
  .onb-list small { display: none; }
  .onb-list li { padding: 9px 12px; }
  .onb-endmark > svg { width: 64px; height: 64px; }
}
@media (min-width: 600px) {
  .onb-txt h2 { font-size: 36px; }
  .onb-txt p { font-size: 18px; }
  .onb-ill { max-width: 520px; max-height: 600px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .onb-inner { max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 28px; }
  .onb-top { grid-column: 1 / -1; }
  .onb-art { grid-column: 1; grid-row: 2 / 4; }
  .onb-txt { grid-column: 2; grid-row: 2; align-self: end; text-align: left; }
  .onb-txt p { margin-left: 0; }
  .onb-foot { grid-column: 2; grid-row: 3; }
  .onb-dots { justify-content: flex-start; }
  .onb-end { grid-column: 1 / -1; grid-row: 2; }
  .onb-end ~ .onb-foot { grid-column: 1 / -1; }
  .onb-list { display: grid; grid-template-columns: 1fr 1fr; }
}
html[data-theme="dark"] .onb-ill .obf { fill: #33407a; }
.onb-list li { padding: 12px 14px; }
.onb-list li > b { flex: 1; font-size: 15.5px; }
.onb-ok { width: 26px; height: 26px; border-radius: 50%; background: #e3f6ec; display: grid; place-items: center; flex: none; }
.onb-ok svg { width: 15px; height: 15px; fill: none; stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .onb-ok { background: #0f3327; }
/* All set must fit without scrolling on every phone */
@media (max-height: 820px) {
  .onb-endmark > svg { width: 68px; height: 68px; }
  .onb-end h2 { margin-top: 14px; font-size: 27px; }
  .onb-list { gap: 8px; margin-top: 16px; }
  .onb-list li { padding: 9px 12px; border-radius: 16px; }
  .onb-li { width: 36px; height: 36px; border-radius: 11px; }
  .onb-list li > b { font-size: 14.5px; }
}
@media (max-height: 620px) {
  .onb-endmark > svg { width: 52px; height: 52px; }
  .onb-endtick { width: 26px; height: 26px; }
  .onb-end h2 { margin-top: 10px; font-size: 23px; }
  .onb-end > p { display: none; }
  .onb-list { gap: 6px; margin-top: 12px; }
  .onb-list li { padding: 7px 10px; }
  .onb-li { width: 30px; height: 30px; }
  .onb-ok { width: 22px; height: 22px; }
  .onb-help { margin-top: 8px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .onb-end { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; gap: 0 18px; }
  .onb-endmark { margin: 0; }
  .onb-end h2 { margin: 0; align-self: center; }
  .onb-end > p { display: none; }
  .onb-list { width: 100%; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .onb, .onb.onb-out, .onb-anim, .onb-ill { animation: none !important; }
}
