/* Talk: a call screen and nothing else. Graphite, one lime accent, Figtree. */
:root {
  --bg: #0d0f10; --panel: #15181a; --panel2: #1e2225; --line: #2b3034;
  --text: #eef0f1; --mute: #9aa3aa; --acc: #c6f24e; --acc-ink: #12160a; --red: #ff4f4f; --warn: #f3c969;
  --glass: rgba(16, 18, 20, .62);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.45 Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
body.page { overflow: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ic { display: block; flex: none; }

/* ---- brand ---- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.015em; color: var(--text); text-decoration: none; }
.mark { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.mark i { width: 4px; border-radius: 2px; background: var(--acc); }
.mark i:nth-child(1) { height: 8px; } .mark i:nth-child(2) { height: 18px; } .mark i:nth-child(3) { height: 12px; }

/* ---- the two sections ---- */
.call { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100vh; height: 100dvh; }
.call[data-chat="0"] { grid-template-columns: minmax(0, 1fr); }
.call[data-chat="0"] .chat { display: none; }

/* ---- video side ---- */
.stage { position: relative; overflow: hidden; background: #000; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-width: 0; min-height: 0; }
.backdrop { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(46px) saturate(1.1) brightness(.45); }
.frame { position: relative; height: 100%; aspect-ratio: 11 / 10; max-width: 100%; }
.frame .still, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame video { opacity: 0; transition: opacity .45s ease; }
.frame .still { transition: opacity .45s ease; }
.stage.on .frame video { opacity: 1; }
.stage.on .frame .still { opacity: 0; }

.self { position: absolute; right: 16px; top: 68px; width: 172px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .22); background: #000; transform: scaleX(-1); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 2; }

.veil { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px; background: rgba(13, 15, 16, .58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.veil p { margin: 0; font-weight: 700; font-size: 20px; }
.veil .veil-sub { font-weight: 400; font-size: 15px; color: var(--mute); max-width: 30ch; }
.dots { display: flex; gap: 7px; margin-bottom: 10px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-7px); opacity: 1; } }

/* everything that floats over the video fades when the pointer rests */
.float { z-index: 4; transition: opacity .28s ease, transform .28s ease; }
.stage[data-idle="1"] .float { opacity: 0; pointer-events: none; }
.stage[data-idle="1"] .bar { transform: translate(-50%, 8px); }
.stage[data-idle="1"] .tags:has(.timer.low) { opacity: 1; }
.stage[data-idle="1"] { cursor: none; }

.tags { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 220px); }
.who, .timer, .ai { display: inline-flex; align-items: center; height: 36px; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .09); }
.who { gap: 8px; padding: 0 14px; min-width: 0; }
.who::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); transition: background .15s, box-shadow .15s; }
.stage[data-them="1"] .who::before { background: var(--acc); box-shadow: 0 0 0 4px rgba(198, 242, 78, .22); }
.who b { font-weight: 700; white-space: nowrap; }
.who i { font-style: normal; color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai { padding: 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--acc); }
.timer { gap: 6px; padding: 0 12px 0 10px; font-variant-numeric: tabular-nums; }
.timer .ic { width: 16px; height: 16px; color: var(--mute); }
.timer.low { color: #ffb4b4; border-color: rgba(255, 79, 79, .5); }
.timer.low .ic { color: inherit; }

.fb { position: relative; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--text); transition: background .15s, color .15s, transform .1s; }
.fb:hover { background: rgba(255, 255, 255, .22); }
.fb:active { transform: scale(.94); }
.fb:disabled { opacity: .35; cursor: default; }
.fb:disabled:hover { background: rgba(255, 255, 255, .12); }
/* a slashed icon on white means "off"; lime means an extra is switched on */
#b-mic[aria-pressed="true"], #b-spk[aria-pressed="true"] { background: #fff; color: #15181a; }
#b-cam[aria-pressed="true"], #b-cc[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); }
.stage[data-me="1"] #b-mic[aria-pressed="false"] { box-shadow: 0 0 0 3px rgba(198, 242, 78, .55); }
.fb.end { width: 68px; border-radius: 24px; background: var(--red); color: #fff; }
.fb.end:hover { background: #ff6a6a; }

.bar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; border-radius: 32px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.call[data-state="pick"] .bar, .call[data-state="pick"] .tools { opacity: .55; }

.tools { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; }
.tools .fb { width: 40px; height: 40px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .09); }
.tools .fb:hover { background: rgba(60, 66, 70, .8); }
.tools .fb .ic { width: 18px; height: 18px; }
.tools .fb[aria-pressed="true"], .tools .fb[aria-expanded="true"] { background: rgba(255, 255, 255, .24); }
#b-chat[data-n]::before { content: attr(data-n); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--acc-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* the button's name, on hover or keyboard focus */
.fb::after, .tb::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: #000; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 6; }
.tools .fb::after, .tb::after { bottom: auto; top: calc(100% + 8px); }
.tools .fb:last-of-type::after, .tb:last-child::after { left: auto; right: 0; transform: none; }
@media (hover: hover) { .fb:hover::after, .tb:hover::after { opacity: 1; } }
.fb:focus-visible::after, .tb:focus-visible::after { opacity: 1; }

.pop { position: absolute; top: 64px; right: 16px; width: min(290px, calc(100% - 32px)); display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); z-index: 7; }
.pop label { font-size: 12.5px; font-weight: 700; color: var(--mute); letter-spacing: .02em; }
.pop select + label { margin-top: 8px; }

.caption { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); width: max-content; max-width: min(640px, calc(100% - 32px)); margin: 0; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .66); font-size: 17px; line-height: 1.35; text-align: center; z-index: 2; }
.caption:empty { display: none; }
.caption[data-who="me"] { color: var(--acc); }
.notice { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 8px 14px; border-radius: 12px; background: rgba(13, 15, 16, .88); border: 1px solid rgba(243, 201, 105, .45); color: var(--warn); font-size: 14px; font-weight: 600; text-align: center; z-index: 5; }

/* ---- chat side ---- */
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
.chat-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.chat-tools { display: flex; gap: 4px; }
.tb { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--mute); }
.tb:hover { background: var(--panel2); color: var(--text); }
.tb .ic { width: 18px; height: 18px; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 16px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.msgs > :first-child { margin-top: auto; }
.hint { margin: auto 0; padding: 0 12px; color: var(--mute); font-size: 14.5px; text-align: center; }
.m { max-width: 86%; margin: 0; padding: 9px 13px; border-radius: 17px; font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }
.m.them { align-self: flex-start; background: var(--panel2); border-bottom-left-radius: 5px; }
.m.me { align-self: flex-end; background: var(--acc); color: var(--acc-ink); border-bottom-right-radius: 5px; }
.m.me.typed { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--acc); }
.m.live { opacity: .78; }
.m.live span::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: currentColor; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.composer { display: flex; gap: 8px; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; height: 46px; padding: 0 17px; border-radius: 23px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.composer input::placeholder { color: #7d868d; }
.composer input:disabled { opacity: .5; }
.send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--acc); color: var(--acc-ink); }
.send:disabled { opacity: .4; cursor: default; }

/* ---- the picker ---- */
.modal-wrap { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; overflow: auto; background: rgba(6, 7, 8, .6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal { width: min(404px, 100%); padding: 22px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, .65); }
.modal-top { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.modal-top .mark { height: 22px; } .modal-top .mark i { width: 5px; }
.modal-top .mark i:nth-child(1) { height: 10px; } .modal-top .mark i:nth-child(2) { height: 22px; } .modal-top .mark i:nth-child(3) { height: 15px; }
.modal h1 { margin: 0; font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.result { margin: 0 0 14px; padding: 10px 13px; border-radius: 12px; background: var(--panel2); font-size: 14.5px; font-weight: 600; }
.models { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.models legend, .field > span { display: block; padding: 0; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.model-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.model { position: relative; cursor: pointer; }
.model input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.model > span { display: grid; justify-items: center; gap: 1px; padding: 8px 6px 9px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--bg); transition: border-color .15s, background .15s; }
.model img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.model b { font-size: 15px; font-weight: 700; }
.model i { font-style: normal; font-size: 12.5px; color: var(--mute); }
.model:hover > span { border-color: #48504f; }
.model input:checked + span { border-color: var(--acc); background: rgba(198, 242, 78, .07); }
.model input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.field { display: block; }
select, .field input { width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; }
select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }
select:hover, .field input:hover { border-color: #48504f; }
.field input::placeholder { color: #7d868d; }
.char-line { margin: 8px 2px 12px; min-height: 2.8em; font-size: 14.5px; color: var(--mute); }
#custom-wrap { margin-bottom: 14px; }
.tick { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: 14.5px; cursor: pointer; }
.tick input { flex: none; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--acc); }
.go { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: 15px; background: var(--acc); color: var(--acc-ink); font-size: 16.5px; font-weight: 800; text-decoration: none; transition: filter .15s, transform .1s; }
.go:hover { filter: brightness(1.07); }
.go:active { transform: scale(.985); }
.go:disabled { opacity: .45; cursor: default; filter: none; }
.go.inline { display: inline-flex; width: auto; }
.status { margin: 10px 2px 0; min-height: 1.45em; font-size: 14.5px; color: var(--mute); }
.status[data-kind="bad"] { color: #ff9c9c; }
.status[data-kind="room"] { color: var(--warn); }
.fine { margin: 8px 2px 0; font-size: 13px; color: var(--mute); }
.fine a { color: var(--text); }

/* ---- the two plain pages ---- */
.doc { max-width: 640px; margin: 0 auto; padding: 28px 20px 60px; }
.doc h1 { margin: 36px 0 8px; font-size: 34px; letter-spacing: -.02em; }
.doc h2 { margin: 30px 0 6px; font-size: 19px; }
.doc p, .doc li { color: #cfd4d8; }
.doc .lede { font-size: 19px; color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc .go { margin-top: 18px; }

/* wide screens leave room beside the video: its sides melt into the backdrop */
@media (min-width: 821px) { .frame { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); } }

/* ---- phones: video on top, chat below ---- */
@media (max-width: 820px) {
  .call { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .call[data-chat="0"] { grid-template-rows: minmax(0, 1fr); }
  .stage { width: 100%; aspect-ratio: 11 / 10; max-height: 56vh; max-height: 56dvh; }
  .call[data-chat="0"] .stage { aspect-ratio: auto; max-height: none; height: 100vh; height: 100dvh; }
  .chat { border-left: 0; border-top: 1px solid var(--line); }
  .chat-h { padding: 6px 8px 6px 14px; }
  .brand { font-size: 17px; }
  .tags { top: 10px; left: 10px; gap: 6px; max-width: calc(100% - 66px); }
  .who, .timer, .ai { height: 32px; }
  .who { padding: 0 11px; } .who i { display: none; }
  .tools { top: 10px; right: 10px; flex-direction: column; }
  .tools .fb { width: 38px; height: 38px; }
  .tools .fb::after { display: none; }
  .pop { top: 10px; right: 56px; }
  .bar { bottom: 10px; gap: 6px; padding: 6px; }
  .fb { width: 42px; height: 42px; }
  .fb.end { width: 58px; }
  .caption { bottom: 72px; font-size: 15px; }
  .notice { top: 50px; font-size: 13px; }
  .self { right: 56px; top: 10px; width: 92px; border-radius: 10px; }
  .msgs { padding: 12px; }
  .composer { padding: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .modal { padding: 18px; border-radius: 22px; }
  .modal h1 { font-size: 19px; }
}
@media (max-width: 820px) and (max-height: 640px) { .stage { max-height: 48dvh; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
