/* The guest page of meet.mausi.ai, in DESIGN.md's language: one narrow of glass on the void, square corners, Outfit to
   read, Plex Mono capitals for labels and buttons, Space Grotesk for the time. Fonts are the house's OFL copies. */

@font-face { font-family: "Outfit"; src: url("/assets/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ground: #030303; --surface: #0B0B0C; --ink: #E7E7E5; --dim: #ADADAD; --ghost: #828280; --rule: #29292B; --rs: #555453;
  --loss: #FF6B62; --rose: #F472B6;
  --coral: #FB923C; --moss: #9AD040; --sky: #5AA0F5; --plum: #B070E8; --lemon: #FACC15; --teal: #2DD4BF; --ocean: #2FB8E6;
  --hair: rgba(231,231,229,.09); --hair-row: rgba(231,231,229,.07); --chosen: rgba(231,231,229,.07);
  --glass: rgba(11,11,12,.61); --edge: rgba(85,84,83,.55);
  --shadow: 0 2px 6px rgba(0,0,0,.45), 0 18px 40px -12px rgba(0,0,0,.65);
  --move: cubic-bezier(.45,0,.2,1); --hand: cubic-bezier(.2,.8,.2,1);
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fig: "Space Grotesk", "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--ground); color: var(--ink); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input { font: inherit; color: inherit; }

/* the page: the card in the middle of the void, the name of the house above it at the page's edge */
.page { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 32px; }
.brand { position: fixed; left: 32px; top: 32px; font: 600 15px/1 var(--sans); color: var(--dim); letter-spacing: .01em; }

/* the card: one narrow of glass, 380 wide */
.card { width: 380px; max-width: 100%; display: flex; flex-direction: column; background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--edge); box-shadow: var(--shadow); animation: arrive 280ms var(--move) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }

/* the head: the icon in its hue, the title, the time at the right edge; 48 high with its hairline */
.head { flex: none; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; box-shadow: 0 1px 0 var(--hair); min-width: 0; }
.lead { flex: none; width: 20px; height: 20px; color: var(--teal); display: block; }
.lead svg { width: 20px; height: 20px; display: block; }
.title { flex: 1 1 auto; min-width: 0; font: 700 20px/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time { flex: none; margin-left: auto; font: 500 15px/1 var(--fig); color: var(--dim); font-variant-numeric: tabular-nums; }

.body { padding: 0 0 16px; }
.line { padding: 16px 16px 4px; font: 400 14px/1.5 var(--sans); color: var(--dim); }

/* a section label, 16 above the first and 24 above the rest, 8 above its row */
.sec { display: block; padding: 24px 16px 8px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sec.first { padding-top: 16px; }

/* the name field */
.field { margin: 0 16px; height: 44px; border: 1px solid var(--rs); display: flex; align-items: center; padding: 0 12px; transition: border-color 170ms var(--move); }
.field:focus-within { border-color: var(--ink); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: 400 16px/1.25 var(--sans); color: var(--ink); }
.field input::placeholder { color: var(--ghost); }

/* rows: icon or face in one column, the name, a dim second line, levels or a word at the right edge */
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; }
.row + .row { box-shadow: inset 0 1px 0 var(--hair-row); }
.row .ic { flex: none; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: var(--ghost); }
.row .ic.on { color: var(--teal); }
.row .ic svg { width: 20px; height: 20px; }
.row .tx { flex: 1; min-width: 0; }
.row .nm { font: 500 15px/1.25 var(--sans); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .ln { font: 400 13px/1.4 var(--sans); color: var(--ghost); }
.row .ln.bad { color: var(--loss); }
.row .muted { flex: none; font: 400 13px/1 var(--sans); color: var(--ghost); }
.s-call .row .ic { width: 28px; }
.row.note .nm { font-size: 14px; font-weight: 400; color: var(--dim); }

/* the host's rows: the link on one line with Copy, a knock with Let in and Decline */
.row .nm.link { font: 400 13px/1.4 var(--sans); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row .two { flex: none; display: flex; gap: 8px; }
.row .two .b { width: 84px; padding-left: 0; padding-right: 0; }
.s-host .row .ic { width: 28px; }

/* faces: a portrait's circle, initials in the person's hue */
.face { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--sans); letter-spacing: .01em; color: #0B0B0C; background: var(--dim); }
.face.me { background: #cfcfcd; }
.hue-coral { background: var(--coral); } .hue-moss { background: var(--moss); } .hue-sky { background: var(--sky); } .hue-plum { background: var(--plum); }
.hue-lemon { background: var(--lemon); } .hue-teal { background: var(--teal); } .hue-rose { background: var(--rose); } .hue-ocean { background: var(--ocean); }

/* levels: five bars as the call card draws them; the page sets each bar's height as the sound moves */
.lv { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.lv i { width: 2px; height: 2px; background: var(--ghost); transition: height 90ms linear; }
.lv i.hot { background: var(--ink); }

/* written down: the meeting's rose mark; hollow while something waits */
.onair { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: breathe 2.4s var(--move) infinite; }
.onair.wait { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ghost); animation: none; }
@keyframes breathe { 50% { opacity: .45; } }

/* the foot: one main action, or Mute and Leave sharing one width */
.foot { flex: none; padding: 0 16px 16px; display: flex; }
.foot > .b { flex: 1; }
.pair { display: flex; gap: 8px; width: 100%; }
.pair .b { flex: 1; }

.b { appearance: none; background: none; cursor: pointer; display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--rs); padding: 9px 14px; white-space: nowrap; text-align: center; border-radius: 0;
  transition: color 170ms var(--move), border-color 170ms var(--move), background-color 90ms var(--hand); }
.b:hover { color: var(--ink); border-color: var(--ink); }
.b:active { background: var(--chosen); }
.b:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.b.main { color: var(--ink); border-color: var(--ink); }
.b.danger { color: var(--loss); border-color: var(--loss); }
.b.danger:hover { border-color: var(--loss); }
.b.pressed { border-color: var(--ink); color: var(--ink); background: var(--chosen); }
.b.idle { color: var(--ghost); border-color: var(--rule); cursor: default; }
.b.idle:hover { color: var(--ghost); border-color: var(--rule); }

/* iPhone Safari sometimes wants one more press before it plays */
.hear { appearance: none; background: none; cursor: pointer; margin: 0 16px 16px; padding: 12px; border: 1px solid var(--ink); color: var(--ink); font: 500 15px/1.25 var(--sans); border-radius: 0; }

/* the phone: the card is the whole screen, its foot at the bottom, targets 40 high */
@media (max-width: 599px) {
  .page { padding: 0; align-items: stretch; }
  .brand { display: none; }
  .card { width: 100%; min-height: 100vh; min-height: 100dvh; border: 0; box-shadow: none; background: var(--ground);
    -webkit-backdrop-filter: none; backdrop-filter: none; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
  .head { height: 56px; }
  .body { flex: 1; }
  .row { min-height: 46px; }
  .row .nm { font-size: 16.5px; }
  .field { height: 46px; }
  .foot { padding-bottom: 24px; }
  .b { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .onair { animation: none; }
  .lv i { transition: none; }
}
