/*
 * Tivra — Mockup: iPhone (iOS 26)
 * ───────────────────────────────
 * Mockup do iPhone com a app Tivra. Auto-contido.
 *
 * Anatomia:
 *   .phone-bleed   → área que sangra até ao bordo do viewport
 *   .iphone        → chassis (cantos arredondados, dynamic island)
 *   .ios-status    → barra de estado (9:41 + Wi-Fi)
 *   .ios-pane      → vista (lista de agents OU chat)
 *   .agent-row     → linha da lista de agents
 *   .blob          → avatar circular de cada agent
 *   .bubble-me/-bot → bolhas do chat
 *
 * Os 7 agents têm cores do spectrum (--a1..--a7), aplicadas
 * via modificadores `.blob--{tivra,escrita,…,notas}`. O chat-top
 * usa `.blob--sm` para a versão 32×32.
 *
 * A animação da onda (mic a gravar) tem a sua própria @keyframes.
 *
 * Tokens consumidos: --a1..--a7.
 */

.phone-bleed {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 28px;
  min-width: 0;
}

.iphone {
  width: 320px;
  height: 680px;
  background: #000;
  border-radius: 52px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px #1c1c1e,
    0 0 0 5px #0a0a0a,
    0 28px 70px rgba(0, 0, 0, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Raleway", sans-serif;
}

.island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 36px;
  background: #000;
  border-radius: 24px;
  z-index: 6;
}

.ios-status {
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 32px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.ios-body {
  height: calc(100% - 58px);
  display: flex;
  flex-direction: column;
  background: #000;
}

.ios-screen { flex: 1; overflow: hidden; position: relative; }

.ios-pane { position: absolute; inset: 0; display: flex; flex-direction: column; }

.ios-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 12px;
}

.ios-nav .title { font-size: 17px; font-weight: 600; color: #fff; }

.ios-circ {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
}

.ios-circ--back { width: 32px; height: 32px; font-size: 18px; }

.ios-status-meta { font-size: 12px; letter-spacing: 0.04em; }

.agent-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 18px;
}

.agent-row.tap { background: rgba(255, 255, 255, 0.06); }

.blob {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.blob--sm { width: 32px; height: 32px; font-size: 12px; }

.blob--tivra   { background: var(--a1); }
.blob--escrita { background: var(--a3); }
.blob--codigo  { background: var(--a4); }
.blob--design  { background: var(--a5); }
.blob--contas  { background: var(--a2); }
.blob--agenda  { background: var(--a6); }
.blob--notas   { background: var(--a7); }

.agent-row .nm  { font-weight: 600; font-size: 16px; color: #f5f5f5; letter-spacing: -0.02em; }
.agent-row .sub { font-size: 13px; color: rgba(255, 255, 255, 0.4); margin-top: 1px; }

.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px 14px;
}

.chat-top .title { font-size: 17px; font-weight: 600; color: #fff; }

.chat-log {
  flex: 1;
  padding: 6px 14px 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble-me {
  align-self: flex-end;
  background: #2c2c2e;
  color: #fff;
  padding: 10px 14px;
  max-width: 78%;
  font-size: 15px;
  line-height: 1.35;
  border-radius: 18px 18px 4px 18px;
}

.bubble-bot {
  align-self: flex-start;
  background: #1c1c1e;
  color: #eee;
  padding: 10px 14px;
  max-width: 86%;
  font-size: 15px;
  line-height: 1.4;
  border-radius: 18px 18px 18px 4px;
}

.ios-input {
  margin: 6px 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ios-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 20px;
}

.ios-field {
  flex: 1;
  min-height: 36px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 6px 14px 6px 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  gap: 8px;
}

.ios-mic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  margin-left: auto;
  flex-shrink: 0;
}

.home-ind {
  width: 128px;
  height: 5px;
  border-radius: 3px;
  background: #fff;
  margin: 10px auto 8px;
  opacity: 0.9;
}

.wave { display: flex; align-items: center; gap: 3px; height: 16px; }

.wave i {
  display: block;
  width: 3px;
  background: var(--a1);
  animation: wav 0.7s ease-in-out infinite;
}

.wave i:nth-child(2) { animation-delay: 0.1s; }
.wave i:nth-child(3) { animation-delay: 0.2s; }
.wave i:nth-child(4) { animation-delay: 0.15s; }

@keyframes wav {
  0%, 100% { height: 4px; }
  50%      { height: 16px; }
}

@media (max-width: 900px) {
  .phone-bleed {
    justify-content: center;
    padding-right: 28px;
  }
}
