/*
 * Codename Nika Free: the greeting, the "Try Nika for" bar and the shell the four paths share.
 * Builds on styles.css (same tokens, buttons, chips, panels). Each path adds its own sheet in
 * /free/css/<path>.css with its own class prefix (g- games, mu- music, en- enterprise, ag- agencies).
 */

/* ── "Try Nika for" bar ──────────────────────────────────── */
.paths { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: clamp(18px, 4vh, 34px); }
.paths__label { font: 400 12px/1.2 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.paths .chip { min-height: 32px; }

/* ── The greeting ────────────────────────────────────────── */
.dlg--pick { width: min(680px, calc(100% - 24px)); }
.pick { padding: 22px; display: grid; gap: 14px; outline: 0; }
.pick__title { margin-top: 10px; font: 400 clamp(28px, 5vw, 40px)/1 var(--font-pixel) !important; letter-spacing: -.02em !important; }
.pick__sub { color: var(--ink-2); font-size: 15px; }
.pick__list { display: grid; gap: 8px; }
.pick__opt {
  display: grid; gap: 4px; width: 100%; padding: 14px 16px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg);
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.pick__opt:hover { background: var(--card); border-color: rgba(200, 169, 235, .5); }
.pick__opt:active { transform: scale(.99); }
.pick__opt:last-child { background: transparent; border-style: dashed; }
.pick__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.pick__arrow { font-style: normal; color: var(--lavender); transition: transform .16s var(--ease); }
.pick__opt:hover .pick__arrow { transform: translateX(3px); }
.pick__body { font-size: 14px; color: var(--ink-2); }
.pick__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.pick__signin { font-size: 14px; color: var(--ink-2); }
.pick__signin:hover { color: var(--ink-1); }

/* ── A path's page ───────────────────────────────────────── */
.mode { width: min(1440px, 100%); margin: 0 auto; padding: 20px var(--gutter) 72px; }
.m-body { min-width: 0; }
.m-loading { padding: 48px 0; color: var(--ink-2); font: 400 14px/1.2 var(--font-pixel); letter-spacing: .06em; text-transform: uppercase; }
.m-intro { width: min(1080px, 100%); margin: 0 auto; padding: clamp(12px, 5vh, 56px) 0 24px; }
.m-intro .title { font-size: clamp(40px, 11vw, 120px); }

/* Shared building blocks a path may use. */
.m-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.m-head__id { flex: 1; min-width: 0; }
.m-head__name { font-size: clamp(24px, 3.4vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.m-head__tag { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.m-head__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.m-from { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.m-from q { quotes: "\201C" "\201D"; color: var(--ink-1); }
.m-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 20px; margin-top: 18px; align-items: start; }
@media (max-width: 1000px) { .m-cols { grid-template-columns: minmax(0, 1fr); } }
.m-side { display: grid; gap: 14px; min-width: 0; }
.m-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); min-width: 0; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.m-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.m-stat { padding: 12px 14px; border-radius: var(--r-s); background: var(--card); min-width: 0; }
.m-stat b { display: block; font: 400 26px/1.05 var(--font-pixel); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.m-stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.m-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill-2); color: var(--ink-2); white-space: nowrap; }
.m-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m-badge--done { background: rgba(123, 216, 163, .14); color: #8fe0b3; }
.m-badge--now { background: rgba(226, 230, 38, .14); color: var(--yellow); }
.m-badge--wait { background: rgba(200, 169, 235, .16); color: var(--lavender); }
.m-badge--off { background: var(--fill-1); color: var(--ink-3); }
.m-range { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.m-range > span { display: flex; justify-content: space-between; gap: 8px; }
.m-range b { color: var(--ink-1); font-weight: 500; font-variant-numeric: tabular-nums; }
.m-range input[type="range"] { width: 100%; accent-color: var(--yellow); }
.m-field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.m-field input, .m-field select, .m-field textarea {
  min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); color: var(--ink-1); font-size: 14px;
}
.m-field textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
.m-field input:focus, .m-field select:focus, .m-field textarea:focus { outline: 0; border-color: rgba(200, 169, 235, .7); }
.real__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.real__acts .btn { margin-top: 0 !important; }
.mode .real { margin-top: 0; }

@media (max-width: 640px) {
  .m-head__acts { width: 100%; }
  .m-head__acts .chip { flex: 1; }
}

/* ── Showcase: the virtual office + the iMessage phone (js/modes/showcase.mjs) ── */
.sc-band { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; margin-top: 18px; align-items: start; }
@media (max-width: 980px) { .sc-band { grid-template-columns: 1fr; } }
.sc-office { display: grid; gap: 12px; }
.sc-office__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sc-office__top .h { margin-top: 0; }
.sc-office__cap { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 60ch; }
.sc-office__stage { position: relative; height: clamp(300px, 46vw, 470px); border-radius: var(--r-m); overflow: hidden; background: #1c1c2a; border: 1px solid var(--line); }
.sc-office__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.sc-office__stage.is-live .sc-office__frame { pointer-events: auto; }
.sc-office__shield { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.sc-office__shield span { padding: 8px 14px; border-radius: 999px; background: rgba(18, 18, 20, .82); color: var(--ink-1); font: 600 13px/1 var(--font-body, inherit); border: 1px solid var(--line); }
.sc-office__shield:hover span, .sc-office__shield:focus-visible span { background: var(--yellow); color: #121214; }
.sc-office__stage.is-live .sc-office__shield { display: none; }
.sc-office__who { margin: 0; font-size: 13px; color: var(--ink-3); min-height: 1.4em; }

.sc-phonebox { display: grid; justify-items: center; gap: 10px; text-align: center; }
.sc-phonebox .h { margin: 0; }
.sc-phonebox__cap { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 34ch; }
.sc-phonebox__acts { display: flex; gap: 8px; }
.sc-phone { width: min(300px, 100%); aspect-ratio: 300 / 610; padding: 11px; border-radius: 48px; background: linear-gradient(145deg, #3a3a3e, #121214 40%, #2a2a2e); box-shadow: 0 0 0 1.5px #4a4a50, 0 24px 60px rgba(0, 0, 0, .55); }
.sc-phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #000; color: #fff; display: flex; flex-direction: column; font: 400 14px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; text-align: left; }
.sc-phone__status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 4px 26px; font-size: 14px; }
.sc-phone__status b { font-weight: 600; }
.sc-phone__island { position: absolute; left: 50%; top: 9px; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #000; box-shadow: 0 0 0 1px #111; }
.sc-phone__icons { display: flex; color: #fff; }
.sc-phone__head { display: grid; justify-items: center; gap: 2px; padding: 8px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(22, 22, 24, .92); position: relative; }
.sc-phone__back { position: absolute; left: 12px; top: 14px; font-size: 30px; line-height: 1; color: #0a84ff; }
.sc-phone__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #a5a5ad, #6c6c74); color: #fff; font: 500 18px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sc-phone__head b { font-size: 12px; font-weight: 500; }
.sc-phone__head small { font-size: 10px; color: #8e8e93; }
.sc-phone__msgs { flex: 1; overflow-y: auto; padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: none; }
.sc-phone__msgs::-webkit-scrollbar { display: none; }
.sc-msgs__time { margin: 2px 0 8px; text-align: center; font-size: 11px; color: #8e8e93; }
.sc-msgs__dl { margin: 0 4px 6px auto; font-size: 10px; color: #8e8e93; }
.sc-msg { max-width: 78%; }
.sc-msg p { margin: 0; padding: 7px 12px; border-radius: 18px; word-wrap: break-word; }
.sc-msg--me { align-self: flex-end; }
.sc-msg--me p { background: #0a84ff; color: #fff; border-bottom-right-radius: 5px; }
.sc-msg--nika { align-self: flex-start; }
.sc-msg--nika p { background: #26252a; color: #fff; border-bottom-left-radius: 5px; }
.sc-msg + .sc-msg--me, .sc-msg--me + .sc-msg--nika, .sc-msgs__dl + .sc-msg { margin-top: 6px; }
.sc-msg--media { max-width: 82%; }
.sc-clip { position: relative; width: 196px; height: 118px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #2b2d52, #1a1c2e 45%, #3b2a4f); }
.sc-clip::before { content: ""; position: absolute; inset: 14px 18px auto; height: 54px; border-radius: 6px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .16) 0 6px, transparent 6px 12px); }
.sc-clip__play { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; }
.sc-clip small { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .5); padding: 1px 6px; border-radius: 6px; }
.sc-clip__cap { margin-top: 3px !important; background: transparent !important; padding: 0 4px !important; font-size: 11px; color: #8e8e93 !important; }
.sc-link { display: flex; align-items: center; gap: 10px; width: 210px; padding: 9px 10px; border-radius: 16px; background: #26252a; }
.sc-link img { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.sc-link b { display: block; font-size: 12.5px; font-weight: 600; }
.sc-link small { display: block; font-size: 11px; color: #8e8e93; }
.sc-typing { display: inline-flex; gap: 4px; padding: 11px 13px; border-radius: 18px; border-bottom-left-radius: 5px; background: #26252a; width: max-content; }
.sc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: sc-dot 1.2s infinite ease-in-out; }
.sc-typing i:nth-child(2) { animation-delay: .15s; }
.sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.sc-msg.is-new { animation: sc-pop .32s cubic-bezier(.2, .8, .2, 1.1) both; }
.sc-msg--me.is-new { transform-origin: 100% 100%; }
.sc-msg--nika.is-new { transform-origin: 0 100%; }
@keyframes sc-pop { from { opacity: 0; transform: scale(.7) translateY(8px); } }
.sc-phone__bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px 18px; }
.sc-phone__bar i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #26252a; color: #8e8e93; font-style: normal; font-size: 18px; }
.sc-phone__bar span { flex: 1; padding: 6px 12px; border-radius: 999px; border: 1px solid #3a3a3c; color: #636366; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .sc-typing i, .sc-msg.is-new { animation: none; } }
