/* Pursue UAP page: compliance risk table, engine diagram, feature spotlights with video slots.
   Loaded after brand.css on Apps/UAP.html only. */

/* ---------- compliance risk table ---------- */
.risk-table { margin-top: 52px; display: grid; gap: 12px; }
.risk-hdr, .risk-row { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: stretch; }
.risk-hdr { font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 0 4px 4px; }
.risk-hdr span:first-child { color: var(--warn); }
.risk-hdr span:last-child { color: var(--teal-d); }
.risk-row .rk, .risk-row .fx { display: grid; grid-template-columns: 42px 1fr; gap: 16px; align-items: start; padding: 22px 24px; border-radius: 18px; }
.risk-row .rk { background: #fff7f1; border: 1px solid rgba(169,76,4,.16); }
.risk-row .fx { background: linear-gradient(160deg, #173563, #0B1D3D); color: #fff; box-shadow: 0 30px 60px -48px rgba(11,29,61,.6); }
.rk-ic, .fx-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.rk-ic { background: var(--warn-soft); color: var(--warn); }
.fx-ic { background: rgba(16,181,200,.16); color: var(--teal); }
.rk-ic .ico, .fx-ic .ico { width: 21px; height: 21px; }
.risk-row h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.risk-row p { margin-top: 5px; font-size: 15px; line-height: 1.5; }
.risk-row .rk p { color: var(--muted); }
.risk-row .fx p { color: #c3cddb; }
.rk-arrow { display: grid; place-items: center; color: var(--teal-d); }
.rk-arrow .ico { width: 24px; height: 24px; }
.risk-note { margin: 28px auto 0; max-width: 720px; text-align: center; font-size: 15px; color: var(--muted); }
.risk-note::before { content: ""; display: block; width: 40px; height: 2px; margin: 0 auto 16px; background: var(--grad); border-radius: 2px; }

/* ---------- engine diagram ---------- */
.engine { margin-top: 56px; display: grid; grid-template-columns: 1fr 64px 1.05fr 64px 1fr; align-items: center; padding: 36px; border-radius: 28px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.eng-lbl { display: block; font: 600 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eng-col ul { display: grid; gap: 8px; }
.eng-col li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 15px; font-weight: 500; }
.eng-col li .ico { width: 17px; height: 17px; color: var(--teal); }
.eng-col li em { margin-left: auto; font: 600 12px/1 var(--mono); font-style: normal; color: var(--teal); background: rgba(16,181,200,.14); padding: 5px 8px; border-radius: 999px; }
.eng-out li.cl .ico { color: #ffb27a; }
.eng-col small { display: block; margin-top: 12px; font-size: 13px; color: #a7b8d8; }
.eng-wire { position: relative; height: 140px; display: grid; align-content: space-evenly; }
.eng-wire i { display: block; height: 2px; background: repeating-linear-gradient(90deg, rgba(16,181,200,.85) 0 8px, transparent 8px 16px); background-size: 32px 2px; animation: wire 1.2s linear infinite; opacity: .7; }
@keyframes wire { to { background-position: 32px 0; } }
.eng-core { position: relative; text-align: center; padding: 28px 22px 22px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 0 0 6px rgba(16,181,200,.18), 0 40px 80px -30px rgba(16,181,200,.45); }
.core-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px -10px rgba(11,29,61,.35); }
.core-ico img { width: 44px; height: 44px; }
.eng-core > b { display: block; margin-top: 14px; font: 600 22px/1.1 var(--head); letter-spacing: -.02em; }
.core-sub { display: inline-block; margin-top: 8px; font: 600 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); background: rgba(16,181,200,.12); padding: 6px 10px; border-radius: 999px; }
.rules { margin-top: 18px; display: grid; gap: 7px; text-align: left; }
.rules li { display: grid; grid-template-columns: 1fr 16px auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--bg); font-size: 13.5px; font-weight: 500; }
.rules li .ico { width: 14px; height: 14px; color: var(--muted); }
.rules li span:last-child { font: 600 12px/1 var(--mono); color: var(--teal-d); }
.rules li span.cl { color: var(--warn); }

.diff-grid.big .diff-big { display: block; font: 600 clamp(30px, 3.2vw, 42px)/1 var(--head); letter-spacing: -.03em; background: var(--grad-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.diff-grid.big h3 { margin-top: 14px; }

/* ---------- feature spotlights ---------- */
.spot { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; margin-top: 88px; }
.spot + .spot { margin-top: 112px; }
.spot.flip .spot-copy { order: 2; }
.spot-n { display: inline-block; font: 600 13px/1 var(--mono); color: var(--teal-d); background: rgba(16,181,200,.12); padding: 7px 11px; border-radius: 999px; }
.spot h3 { margin-top: 18px; font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.spot-copy > p { margin-top: 16px; color: var(--muted); font-size: 17.5px; }
.spot-pts { margin-top: 22px; display: grid; gap: 10px; }
.spot-pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 500; }
.spot-pts .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--teal-d); stroke-width: 2.4; }

.spot-media { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; background: radial-gradient(600px 300px at 80% 0%, rgba(16,181,200,.28), transparent 70%), linear-gradient(160deg, #173563, #0B1D3D); box-shadow: 0 50px 90px -60px rgba(11,29,61,.7); display: grid; place-items: center; padding: 34px; }
.spot-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0B1D3D; }
.spot-play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: flex-start; gap: 12px; padding: 22px; background: linear-gradient(0deg, rgba(6,14,34,.55), transparent 45%); color: #fff; font: 600 15px/1 var(--font); }
.spot-play[hidden] { display: none; }
.spot-play .pl { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); box-shadow: 0 0 0 8px rgba(16,181,200,.25); transition: transform .2s; }
.spot-play .pl svg { width: 22px; height: 22px; fill: #0B1D3D; margin-left: 3px; }
.spot-play:hover .pl { transform: scale(1.06); }
.spot-play > span:last-child { padding-bottom: 19px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* app window mock (the poster until a video exists) */
.mock { width: 100%; max-width: 520px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4dae4; }
.mock-bar span { margin-left: 8px; }
.mock-bar em { margin-left: auto; font: 600 11px/1 var(--font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.mock-bar em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.mock-body { padding: 18px; display: grid; gap: 10px; }

.acct-src { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); display: grid; gap: 3px; }
.tag-src { justify-self: start; font: 600 10.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--info); background: var(--info-soft); padding: 5px 8px; border-radius: 999px; margin-bottom: 6px; }
.acct-src b { font-size: 16px; }
.acct-src small { color: var(--muted); font-size: 13px; }
.acct-steps { display: grid; gap: 6px; }
.as { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; font-weight: 500; }
.as i { width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.as span { font: 600 12px/1 var(--mono); color: var(--muted); }
.as.go { background: linear-gradient(90deg, #173563, #0B1D3D); color: #fff; }
.as.go i { background-color: var(--teal); }
.as.go .timer { color: var(--teal); font-size: 14px; }

.cn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cn-steps li { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--bg); position: relative; }
.cn-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--mono); background: var(--ok); color: #fff; margin-bottom: 6px; }
.cn-steps li.go { background: linear-gradient(160deg, #173563, #0B1D3D); color: #fff; }
.cn-steps li.go span { background: var(--teal); color: #0B1D3D; }
.cn-steps b { font-size: 13.5px; line-height: 1.2; }
.cn-steps small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.cn-steps li.go small { color: #c3cddb; }
.cn-sig { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.cn-sig svg { width: 160px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cn-sig span { font: 600 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); padding: 6px 10px; border-radius: 999px; }

.phone-wrap { background: transparent; box-shadow: none; display: flex; align-items: center; justify-content: center; gap: 22px; max-width: none; overflow: visible; }
.phone { width: 230px; padding: 18px 16px 20px; border-radius: 30px; background: #fff; border: 6px solid #0f1f45; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); display: grid; gap: 10px; }
.ph-top { display: grid; justify-items: center; gap: 8px; text-align: center; margin-bottom: 4px; }
.ph-top img { width: 32px; height: 32px; }
.ph-top b { font: 600 15px/1.2 var(--head); }
.ph-field { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; gap: 2px; }
.ph-field small { font-size: 10.5px; color: var(--muted); }
.ph-field span { font-size: 14px; letter-spacing: .1em; }
.ph-btn { text-align: center; padding: 10px; border-radius: 999px; background: #0B1D3D; color: #fff; font-size: 13px; font-weight: 600; }
.ph-ok { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--ok); font-weight: 600; background: var(--ok-soft); padding: 8px 10px; border-radius: 10px; }
.ph-ok .ico { width: 14px; height: 14px; stroke-width: 2.6; margin-top: 1px; }
.ph-side { display: grid; gap: 12px; }
.ps { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.ps b { display: block; font: 600 28px/1 var(--head); color: var(--teal); }
.ps small { display: block; margin-top: 6px; font-size: 13px; color: #c3cddb; }

.ev { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); }
.ev-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.ev-ic .ico { width: 18px; height: 18px; }
.ev.cl .ev-ic { background: var(--warn-soft); color: var(--warn); }
.ev.ok .ev-ic { background: var(--ok-soft); color: var(--ok); }
.ev b { display: block; font-size: 14.5px; }
.ev small { display: block; font-size: 12.5px; color: var(--muted); }
.ev-st { font: 600 11px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.ev.cl .ev-st { color: var(--warn); background: var(--warn-soft); }
.ev.ok .ev-st { color: var(--ok); background: var(--ok-soft); }

/* gentle entrance for the mock rows */
.js .spot.in .as, .js .spot.in .ev, .js .spot.in .cn-steps li { animation: rowIn .6s cubic-bezier(.2,.7,.2,1) both; }
.js .spot.in :is(.as, .ev, .cn-steps li):nth-child(2) { animation-delay: .25s; }
.js .spot.in :is(.as, .ev, .cn-steps li):nth-child(3) { animation-delay: .5s; }
.js .spot.in :is(.as, .ev, .cn-steps li):nth-child(4) { animation-delay: .75s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .engine { grid-template-columns: 1fr; gap: 0; padding: 24px; }
  .eng-wire { height: 44px; grid-template-columns: repeat(3, 2px); justify-content: center; gap: 22px; align-content: stretch; }
  .eng-wire i { width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(16,181,200,.85) 0 8px, transparent 8px 16px); background-size: 2px 32px; animation-name: wireV; }
  @keyframes wireV { to { background-position: 0 32px; } }
  .spot { grid-template-columns: 1fr; gap: 32px; }
  .spot.flip .spot-copy { order: 0; }
}
@media (max-width: 900px) {
  .risk-hdr { display: none; }
  .risk-row { grid-template-columns: 1fr; }
  .rk-arrow { height: 34px; transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .spot-media { aspect-ratio: auto; padding: 18px; border-radius: 20px; }
  .cn-steps { grid-template-columns: repeat(2, 1fr); }
  .phone-wrap { flex-direction: column; }
  .ph-side { grid-template-columns: 1fr 1fr; width: 100%; }
  .risk-row .rk, .risk-row .fx { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .eng-wire i, .mock-bar em::before { animation: none; }
  .js .spot.in :is(.as, .ev, .cn-steps li) { animation: none; }
}

/* "notify you" state (OIG matches) */
.rules li span.al { color: var(--info); }
.eng-out li.al .ico { color: #8fb4ff; }
.ev.al .ev-ic { background: var(--info-soft); color: var(--info); }
.ev.al .ev-st { color: var(--info); background: var(--info-soft); }

/* video placeholder: play button + "coming soon" until a clip is added */
.spot-play { background: linear-gradient(0deg, rgba(6,14,34,.6), rgba(6,14,34,0) 50%); }
.spot-media::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 12px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) 0 18%, rgba(255,255,255,.25) 18%); pointer-events: none; }
.spot-media:has(video)::after, .spot-media:has(.spot-soon)::after { display: none; }
.spot-media.is-soon .spot-play > span:last-child { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 8px 12px; border-radius: 999px; margin-bottom: 14px; }
.spot-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; background: rgba(6,14,34,.82); color: #fff; backdrop-filter: blur(3px); animation: rowIn .3s both; }
.spot-soon b { font: 600 22px/1.2 var(--head); }
.spot-soon span { color: #c3cddb; font-size: 15.5px; }
.spot-soon .btn { margin-top: 8px; }

/* player layout: illustration on top, a video control bar underneath (no overlap) */
.spot-media { aspect-ratio: auto; min-height: 380px; padding: 34px 34px 96px; }
.spot-play { inset: auto 0 0 0; height: 72px; padding: 0 22px; align-items: center; background: rgba(6,14,34,.45); border-top: 1px solid rgba(255,255,255,.08); }
.spot-play .pl { width: 44px; height: 44px; box-shadow: 0 0 0 6px rgba(16,181,200,.22); }
.spot-play .pl svg { width: 18px; height: 18px; }
.spot-play > span:last-child, .spot-media.is-soon .spot-play > span:last-child { padding-bottom: 0; margin-bottom: 0; }
.spot-media::after { left: 90px; right: 22px; bottom: 34px; height: 4px; opacity: 0; }
.spot-media.is-soon::after { opacity: 0; }
.spot-play::after { content: ""; flex: 1; height: 4px; margin-left: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) 0 12%, rgba(255,255,255,.22) 12%); }
@media (max-width: 640px) { .spot-media { min-height: 0; padding: 18px 18px 84px; } .spot-play::after { display: none; } }
@media (min-width: 1021px) { .spot.flip { grid-template-columns: 1.1fr .9fr; } }

/* the termed-employee row gets extra weight */
.risk-row.stake .rk { background: #fff1e6; border-color: rgba(169,76,4,.35); box-shadow: 0 0 0 4px rgba(169,76,4,.06); }
.risk-row.stake .rk h3 { font-size: 19.5px; color: var(--warn); }
.risk-row.stake .rk p { color: #5a4636; }

/* large video player (opens from a spotlight's play button) */
html.vid-open { overflow: hidden; }
.vid-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(6,14,34,.86); backdrop-filter: blur(4px); animation: rowIn .25s both; }
.vid-box { position: relative; width: min(1180px, 100%); }
.vid-box video { display: block; width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: #0B1D3D; border-radius: 16px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.vid-box video::cue { font: 500 20px/1.35 var(--font); background: rgba(6,14,34,.88); color: #fff; }
.vid-title { margin: 12px 4px 0; color: #c3cddb; font: 500 15px/1.3 var(--font); }
.vid-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(6,14,34,.7); color: #fff; font: 400 28px/1 var(--font); cursor: pointer; }
.vid-close:hover, .vid-close:focus-visible { background: rgba(6,14,34,.95); }

/* real clip playing in the spotlight box (replaces the illustration once a video is set) */
.spot-media.has-video > :not(.spot-preview):not(.spot-play) { visibility: hidden; }
.spot-media .spot-preview { position: absolute; left: 0; right: 0; top: 0; bottom: 72px; width: 100%; height: calc(100% - 72px); object-fit: cover; object-position: top center; background: #fff; cursor: pointer; }
@media (max-width: 640px) { .spot-media.has-video { min-height: 300px; } }
