/* Hero film: wallpaper backdrop, a macOS window with Gnosti open, scaled by --k (set in demo.js), and a dock. */
.film { position: relative; margin-top: 56px; }
.backdrop { position: relative; aspect-ratio: 8 / 5; border-radius: 12px; overflow: hidden; background: #2c6f66 url("../assets/wallpaper.jpg") center / cover; isolation: isolate; }
.stage { position: absolute; inset: 0; --k: .9; }
.win { position: absolute; left: 50%; top: 32px; width: 1152px; height: 720px; transform: translateX(-50%) scale(var(--k)); transform-origin: top center; display: grid; grid-template-rows: 36px 1fr; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #ebebea; box-shadow: 0 30px 80px rgba(6, 40, 36, .35), 0 6px 18px rgba(0, 0, 0, .12); color: #37352f; font: 450 16px/24px var(--sans); text-align: left; transition: opacity .5s; }

.titlebar { display: flex; align-items: center; background: #f8f8f7; border-bottom: 1px solid #efefed; }
.tb-side { display: flex; align-items: center; gap: 14px; height: 100%; width: 240px; padding: 0 16px; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #e2e1df; }
.ic { width: 18px; height: 18px; color: #91918e; flex: none; }
.tb-nav { display: flex; gap: 10px; padding: 0 12px; }
.tab { display: flex; align-items: center; gap: 8px; width: 200px; height: 36px; padding: 0 12px; background: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; }
.tab .t { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.tab svg.mk { width: 14px; height: 15px; flex: none; }
.plus { padding: 0 12px; color: #91918e; font-size: 18px; }

.body { display: grid; grid-template-columns: 240px 1fr; min-height: 0; }
.side { overflow: hidden; background: #f8f8f7; border-right: 1px solid #efefed; padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; font-weight: 600; }
.ws span { width: 22px; height: 22px; border-radius: 6px; background: #37352f; color: #fff; display: grid; place-items: center; font-size: 11px; }
.si { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: #5f5e5b; }
.si.on { background: #efefed; color: #37352f; font-weight: 500; }
.si svg { width: 16px; height: 16px; flex: none; color: #91918e; }
.si .n { margin-left: auto; font: 500 11px/18px var(--mono); padding: 0 6px; border-radius: 9px; background: var(--risk); color: #fff; }
.sl { padding: 14px 8px 4px; font-size: 12px; font-weight: 500; color: #91918e; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 4px; flex: none; background: #c9c8c4; }

.main { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.pagebar { height: 44px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 16px; font-size: 14px; line-height: 20px; }
.pagebar svg.mk { width: 14px; height: 15px; }
[data-crumb]:not(:empty)::before { content: "/"; margin-right: 6px; color: #c9c8c4; }
.pagebar .r { margin-left: auto; display: flex; align-items: center; gap: 14px; color: #5f5e5b; }
.faces { display: flex; }
.faces i { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; background: var(--c); color: #fff; font: 600 9px/18px var(--sans); text-align: center; font-style: normal; }

.views { position: relative; flex: 1; }
.view { position: absolute; inset: 0; padding: 32px 64px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.win[data-view="inbox"] .inbox, .win[data-view="record"] .record { opacity: 1; transform: none; }
.view h3 { font: 700 30px/38px var(--sans); letter-spacing: -.6px; color: #1d1d1b; }
.view h4 { font-size: 13px; line-height: 18px; font-weight: 500; color: #91918e; }
.sub { margin-top: 2px; font-size: 14px; color: #91918e; }

/* warnings inbox */
.rows { margin-top: 24px; border-top: 1px solid #efefed; }
.row { display: grid; grid-template-columns: 16px 1fr auto 96px 56px; align-items: center; gap: 16px; height: 68px; padding: 0 12px; border-bottom: 1px solid #efefed; font-size: 14px; line-height: 20px; transition: background-color .2s; }
.row.new { height: 0; opacity: 0; overflow: hidden; border-bottom-color: transparent; transition: height .5s cubic-bezier(.2, .8, .2, 1), opacity .4s .1s; }
.row.new.in { height: 68px; opacity: 1; border-bottom-color: #efefed; animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 30% { background: var(--teal-soft); } }
.row.press { background: #f1f1ef; }
.row.done { opacity: .5; }
.who-r b { display: block; font-size: 15px; font-weight: 600; color: #1d1d1b; }
.who-r span { color: #787774; }
.logos { display: flex; }
.logos img { width: 26px; height: 26px; margin-left: -6px; padding: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #efefed; }
.amt { font: 500 13px var(--mono); text-align: right; color: #1d1d1b; }
.row time { font-size: 12px; color: #91918e; text-align: right; }

/* customer record */
.rec-head { display: flex; align-items: center; gap: 14px; }
.av { width: 48px; height: 48px; flex: none; border-radius: 12px; background: #efece6; color: #6b665c; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.rec-head p { font-size: 14px; color: #787774; }
.pill { margin-left: auto; padding: 3px 12px; border-radius: 9999px; background: var(--risk-soft); color: var(--risk); font-size: 13px; font-weight: 500; white-space: nowrap; }
.rec-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; margin-top: 30px; }
.tl { position: relative; margin-top: 10px; }
.tl::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 1px; background: #ecebe9; }
.ev { position: relative; display: grid; grid-template-columns: 28px 56px 1fr; gap: 14px; align-items: center; padding: 9px 0; font-size: 14px; line-height: 20px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.ev.on { opacity: 1; transform: none; }
.ev-ic { width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #ecebe9; display: grid; place-items: center; }
.ev-ic img { width: 15px; height: 15px; object-fit: contain; }
.ev time { font: 500 12px var(--mono); color: #91918e; }
.ev.bad p { color: var(--risk); font-weight: 500; }

.card { border: 1px solid #efefed; border-radius: 12px; padding: 16px; }
.spark p { margin-top: 4px; font-size: 13px; color: #787774; }
.spark b { font-size: 28px; line-height: 32px; font-weight: 650; color: #1d1d1b; margin-right: 4px; }
.spark svg { display: block; width: 100%; height: 56px; margin-top: 10px; overflow: visible; }
.spark path { fill: none; stroke: var(--risk); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s ease-out; }
.spark.on path { stroke-dashoffset: 0; }
.next { margin-top: 14px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.next.on { opacity: 1; transform: none; }
.why { margin-top: 6px; font-size: 13px; line-height: 19px; color: #5f5e5b; }
.note { min-height: 104px; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #f8f8f7; font-size: 13px; line-height: 19px; }
.acts { display: flex; gap: 8px; margin-top: 12px; }
.acts button { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 500; transition: background-color .3s, transform .15s; }
.approve { background: #0e0e13; color: #fff; }
.approve.sent { background: var(--teal); }
.approve.press { transform: scale(.96); }
.edit { background: #f1f1ef; }
.caret::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 2px; background: #37352f; vertical-align: -.08em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.toast { position: absolute; right: 64px; bottom: 36px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: #1d1d1b; color: #fff; font-size: 14px; opacity: 0; translate: 0 -8px; transition: opacity .3s, translate .4s cubic-bezier(.2, .8, .2, 1); }
.toast.on { opacity: 1; translate: 0; }
.toast svg { width: 16px; height: 16px; color: #7fd3c7; }
.cursor { position: absolute; left: -5px; top: -3px; z-index: 6; width: 24px; height: 24px; translate: 900px 560px; transition: translate .9s cubic-bezier(.45, 0, .2, 1), scale .12s; transform-origin: 20% 10%; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.cursor.down { scale: .86; }

/* dock */
.dock { position: absolute; left: 50%; bottom: 16px; z-index: 8; transform: translateX(-50%); display: flex; gap: 16px; padding: 20px; border-radius: 38px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(20px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), var(--shadow); }
.dock li { position: relative; }
.dock button { display: block; width: 64px; height: 64px; border-radius: 14px; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.dock button:hover { transform: translateY(-6px) scale(1.06); }
.dock .tile { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--bg, #fff); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .1); }
.dock .tile img, .dock .tile svg { width: 36px; height: 36px; object-fit: contain; }
.dock .open::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: rgba(0, 0, 0, .55); translate: -50% 0; }
.dock .tip { position: absolute; left: 50%; bottom: calc(100% + 14px); translate: -50% 4px; padding: 2px 12px 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 20px; white-space: nowrap; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; box-shadow: 0 .7px 1.5px #00000004, 0 3px 9px #00000008; }
.dock li:hover .tip { opacity: 1; translate: -50% 0; }

.pause { position: absolute; right: 12px; bottom: 12px; z-index: 9; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: #000; transition: background-color .15s; }
.pause:hover { background: var(--soft-2); }
.pause svg { width: 10px; height: 10px; }

/* Phones get a narrower window without the sidebar, so the inbox and the record read at this size. */
@media (max-width: 840px) {
  .film { margin-top: 32px; }
  .backdrop { aspect-ratio: 7 / 8; border-radius: 8px; }
  .win { top: 18px; width: 620px; height: 820px; }
  .tb-side { width: auto; }
  .tb-side .ic, .tb-nav, .pagebar .r { display: none; }
  .body { grid-template-columns: 1fr; }
  .side { display: none; }
  .view { padding: 24px 28px; }
  .row { grid-template-columns: 16px 1fr 86px; }
  .row .logos, .row time { display: none; }
  .rec-head .pill { display: none; }
  .rec-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .ev { padding: 7px 0; }
  .spark { display: none; }
  .next { margin-top: 0; }
  .toast { top: 60px; right: 16px; bottom: auto; }
  .dock { display: none; }
}
