/* Infradesk Meet — padrão visual www.infradesk.app */
:root {
  --id-primary: #323246;
  --id-secondary: #09b291;
  --id-secondary-hover: #078a71;
  --id-accent: #f5d134;
  --id-accent-text: #323246;
  --id-text: #323246;
  --id-muted: #717171;
  --id-bg: #fdfdfa;
  --id-bg-soft: #f3f3f3;
  --id-white: #ffffff;
  --id-border: #e4e4e8;
  --id-danger: #ea4335;
  --id-room-bg: #202124;
  --id-room-surface: #3c4043;
  --id-room-surface-2: #5f6368;
  --id-room-text: #e8eaed;
  --font: "Ubuntu", "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-tile: 12px;
  --control: 56px;
  --shadow: 0 2px 10px rgba(50, 50, 70, 0.08);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--id-text);
  background: var(--id-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--id-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* —— Site header (home / help) —— */
.site-header {
  background: var(--id-white);
  border-bottom: 1px solid var(--id-border);
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header img {
  height: 28px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--id-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--id-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--id-secondary);
}

/* —— Home —— */
.home {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .home-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.home-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--id-primary);
}

.home-intro h1 em {
  font-style: normal;
  color: var(--id-secondary);
}

.home-intro p {
  margin: 0 0 18px;
  color: var(--id-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 38ch;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--id-secondary);
  box-shadow: 0 0 0 4px rgba(9, 178, 145, 0.2);
  animation: livePulse 1.8s ease infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.stats-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.stats-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--id-primary);
}

.stats-head p {
  margin: 0 0 14px;
  color: var(--id-muted);
  line-height: 1.5;
}

.stats-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--id-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.stats-section-title {
  margin: 8px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--id-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--id-white);
  border: 1px solid var(--id-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
  display: grid;
  gap: 8px;
}

.stat-label {
  color: var(--id-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.stat-value {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
  color: var(--id-primary);
  font-weight: 700;
}

.stat-hint {
  color: var(--id-muted);
  font-size: 0.82rem;
}

.stats-foot {
  margin-top: 28px;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.home-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.home-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--id-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--id-secondary);
  flex-shrink: 0;
}

.seo-lead {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--id-border);
  color: var(--id-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42ch;
}

.seo-lead a {
  color: var(--id-secondary);
  font-weight: 600;
}

.panel {
  background: var(--id-white);
  border: 1px solid var(--id-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--id-primary);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.profile-extra {
  display: grid;
}

.profile-extra.hidden {
  display: none;
}

.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--id-muted);
}

.field input {
  width: 100%;
  border: 1px solid var(--id-border);
  background: var(--id-white);
  color: var(--id-text);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
}

.field input:focus {
  border-color: var(--id-secondary);
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--id-secondary);
  color: #fff;
  width: 100%;
}

.btn-primary:hover {
  background: var(--id-secondary-hover);
}

.btn-accent {
  background: var(--id-accent);
  color: var(--id-accent-text);
  width: 100%;
}

.btn-accent:hover {
  filter: brightness(0.97);
}

.btn-secondary {
  background: var(--id-bg-soft);
  color: var(--id-text);
  border: 1px solid var(--id-border);
  width: 100%;
}

.btn-secondary:hover {
  background: #ebebeb;
}

.btn-ghost {
  background: transparent;
  color: var(--id-muted);
  width: 100%;
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--id-secondary);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  color: var(--id-muted);
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--id-border);
}

.home-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--id-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--id-muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--id-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 100;
  max-width: min(90vw, 420px);
  text-align: center;
  font-size: 0.92rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— Room chrome (estilo Google Meet + marca Infradesk) —— */
.room-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--id-bg);
}

.room-app.is-in-call {
  background: var(--id-room-bg);
  color: var(--id-room-text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--id-white);
  border-bottom: 1px solid var(--id-border);
  z-index: 20;
}

.room-app.is-in-call .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  padding: 16px 20px;
  pointer-events: none;
}

.room-app.is-in-call .topbar-brand,
.room-app.is-in-call .topbar-actions {
  pointer-events: auto;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-brand img {
  height: 22px;
  width: auto;
}

.room-app.is-in-call .brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.room-app.is-in-call .brand-mark img.logo-full {
  display: none;
}

.room-app.is-in-call .brand-mark img.logo-icon {
  display: block;
  height: 28px;
  width: 28px;
  border-radius: 6px;
}

.brand-mark img.logo-icon {
  display: none;
}

.brand-mark .meet-word {
  display: none;
  font-weight: 500;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.room-app.is-in-call .brand-mark .meet-word {
  display: inline;
}

.room-app.is-in-call .room-meta {
  display: none;
}

.room-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.room-meta strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-meta span {
  color: var(--id-muted);
  font-size: 0.8rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--id-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(60, 64, 67, 0.08);
  color: var(--id-primary);
}

.room-app.is-in-call .icon-btn {
  color: #fff;
  background: rgba(60, 64, 67, 0.7);
}

.room-app.is-in-call .icon-btn:hover {
  background: rgba(95, 99, 104, 0.9);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* —— Lobby estilo Meet —— */
.lobby {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 20px 48px;
  background: #fff;
}

.lobby-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 860px) {
  .lobby-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.preview-wrap {
  position: relative;
  background: #202124;
  aspect-ratio: 16 / 10;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
}

.preview-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  background: #202124;
}

.preview-wrap.no-mirror video {
  transform: none;
}

.preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #3c4043;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--id-secondary);
}

.preview-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.lobby-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  text-align: center;
  padding: 8px 4px;
}

.lobby-side h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: #3c4043;
  line-height: 1.3;
}

.lobby-side p {
  margin: 0;
  color: #5f6368;
  line-height: 1.5;
  font-size: 0.95rem;
}

.lobby-side .field {
  text-align: left;
}

.lobby-side .btn-primary {
  margin-top: 6px;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 1rem;
}

.lobby-side .btn-ghost {
  border-radius: 24px;
}

.perm-hint {
  font-size: 0.85rem;
  color: #8a6d00;
  background: #fef7e0;
  border: 1px solid #f0dfa0;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}

.prefs {
  display: grid;
  gap: 8px;
  margin: 2px 0;
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5f6368;
  font-size: 0.9rem;
  text-align: left;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #dadce0;
  border-radius: 999px;
  cursor: pointer;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.switch input:checked + span {
  background: var(--id-secondary);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

/* —— Meeting stage —— */
#meeting {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  position: relative;
}

.stage.with-side {
  grid-template-columns: 1fr 360px;
}

@media (max-width: 900px) {
  .stage.with-side {
    grid-template-columns: 1fr;
  }
}

.video-grid {
  display: grid;
  gap: 12px;
  padding: 56px 16px 110px;
  align-content: center;
  justify-content: center;
  min-height: 100dvh;
  width: 100%;
}

.video-grid[data-count="1"] {
  grid-template-columns: minmax(280px, 920px);
}

.video-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

.video-grid[data-count="3"],
.video-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.video-grid[data-count="5"],
.video-grid[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .video-grid[data-count="2"],
  .video-grid[data-count="3"],
  .video-grid[data-count="4"],
  .video-grid[data-count="5"],
  .video-grid[data-count="6"] {
    grid-template-columns: 1fr;
  }
}

.tile {
  position: relative;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background: #3c4043;
  border: 3px solid transparent;
  aspect-ratio: 16 / 10;
  transition: border-color 0.15s ease;
}

.tile.speaking {
  border-color: var(--id-secondary);
}

.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #3c4043;
}

.tile.local video.mirrored {
  transform: scaleX(-1);
}

.tile-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: #3c4043;
}

.tile.cam-off .tile-fallback {
  display: grid;
}

.tile.cam-off video {
  opacity: 0;
}

.tile-fallback .avatar {
  width: 88px;
  height: 88px;
  font-size: 1.5rem;
}

.tile-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(32, 33, 36, 0.7);
  color: #fff;
  font-size: 0.82rem;
  max-width: calc(100% - 24px);
}

.tile-label .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mic-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  flex-shrink: 0;
}

.mic-badge.muted {
  background: var(--id-danger);
}

.mic-badge svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.host-badge {
  font-size: 0.68rem;
  color: var(--id-primary);
  background: var(--id-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Dock Meet */
.dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ctrl {
  width: var(--control);
  height: var(--control);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--id-room-surface);
  color: #fff;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ctrl:hover {
  background: #52555a;
}

.ctrl.active {
  background: var(--id-secondary);
  color: #fff;
}

.ctrl.off {
  background: #fff;
  color: var(--id-danger);
}

.ctrl.off:hover {
  background: #f1f3f4;
}

.ctrl.leave {
  background: var(--id-danger);
  color: #fff;
  width: 68px;
  border-radius: 28px;
}

.ctrl.leave:hover {
  background: #d93025;
}

.ctrl svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctrl[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.lobby .ctrl {
  background: rgba(32, 33, 36, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
}

.lobby .ctrl.off {
  background: #fff;
  color: var(--id-danger);
}

.lobby .ctrl:hover {
  background: rgba(32, 33, 36, 0.75);
}

.lobby .ctrl.off:hover {
  background: #f1f3f4;
}

/* Side panel Meet */
.side-panel {
  display: none;
  flex-direction: column;
  margin: 12px 12px 12px 0;
  border-radius: 12px;
  background: #fff;
  color: var(--id-text);
  min-height: 0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25);
  overflow: hidden;
}

.stage.with-side .side-panel {
  display: flex;
  height: calc(100dvh - 24px);
  align-self: center;
}

@media (max-width: 900px) {
  .stage.with-side .side-panel {
    position: fixed;
    inset: auto 8px 80px 8px;
    height: min(62dvh, 480px);
    margin: 0;
    z-index: 50;
  }
}

.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.side-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #3c4043;
}

.side-tabs {
  display: flex;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid #e8eaed;
}

.side-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #5f6368;
  padding: 12px 8px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
}

.side-tab.active {
  color: var(--id-secondary);
  border-bottom-color: var(--id-secondary);
  background: transparent;
}

.side-body {
  flex: 1;
  overflow: auto;
  padding: 12px 16px 16px;
  min-height: 0;
}

.people-list {
  display: grid;
  gap: 4px;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
}

.person:hover {
  background: #f1f3f4;
}

.person .mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--id-secondary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.person .info {
  flex: 1;
  min-width: 0;
}

.person .info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person .info span {
  color: #5f6368;
  font-size: 0.75rem;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}

.chat-empty {
  color: #5f6368;
  text-align: center;
  padding: 36px 12px;
  font-size: 0.9rem;
}

.chat-msg {
  display: grid;
  gap: 2px;
}

.chat-msg .who {
  font-size: 0.75rem;
  color: #5f6368;
  font-weight: 500;
}

.chat-msg .bubble {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
  color: #3c4043;
}

.chat-msg.mine .bubble {
  background: transparent;
}

.chat-compose {
  display: flex;
  gap: 8px;
  padding: 12px 14px 16px;
  border-top: 1px solid #e8eaed;
}

.chat-compose input {
  flex: 1;
  border: 1px solid #dadce0;
  background: #fff;
  color: var(--id-text);
  border-radius: 24px;
  padding: 11px 16px;
  outline: none;
}

.chat-compose input:focus {
  border-color: var(--id-secondary);
}

.chat-compose button {
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: var(--id-secondary);
  color: white;
  padding: 0;
  font-weight: 650;
  cursor: pointer;
  flex-shrink: 0;
}

.call-info {
  position: fixed;
  left: 20px;
  bottom: 28px;
  z-index: 35;
  color: #fff;
  font-size: 0.9rem;
  display: none;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.room-app.is-in-call .call-info {
  display: flex;
}

.call-info strong {
  font-weight: 500;
}

.call-info span {
  opacity: 0.85;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .call-info {
    display: none !important;
  }
}

.status-banner {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #3c4043;
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.status-banner.show {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Powered by (sala) */
.powered-by {
  position: fixed;
  right: 16px;
  bottom: 28px;
  z-index: 34;
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.powered-by a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.powered-by a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .powered-by {
    display: none;
  }
}

/* Banner pós-reunião */
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(32, 33, 36, 0.72);
}

.exit-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  color: var(--id-text);
}

.exit-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
}

.exit-card > p {
  margin: 0 0 16px;
  color: var(--id-muted);
  line-height: 1.5;
}

.exit-offer {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8d9;
  border: 1px solid #f0dfa0;
  margin-bottom: 18px;
}

.exit-offer strong {
  color: var(--id-primary);
  font-size: 0.92rem;
}

.exit-offer span {
  color: #717171;
  font-size: 0.88rem;
  line-height: 1.4;
}

.exit-actions {
  display: grid;
  gap: 10px;
}

/* Trial banner home */
.trial-banner {
  background: var(--id-primary);
  color: #fff;
}

.trial-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.trial-banner-inner span {
  opacity: 0.9;
}

.home-offer {
  margin-top: 28px;
}

.home-offer h2 {
  margin: 0 0 8px;
}

.home-offer p {
  margin: 0 0 14px;
  color: var(--id-muted);
  line-height: 1.5;
}

/* Conteúdo / landing SEO */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px 40px;
}

.content-page .eyebrow {
  margin: 0 0 8px;
  color: var(--id-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-page h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  color: var(--id-primary);
}

.content-page .lead {
  font-size: 1.05rem;
  color: var(--id-muted);
  line-height: 1.6;
}

.content-page section {
  margin-top: 28px;
  padding-top: 8px;
}

.content-page h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--id-secondary);
}

.content-page h3 {
  margin: 16px 0 6px;
  font-size: 1rem;
}

.content-page p,
.content-page li {
  color: var(--id-muted);
  line-height: 1.6;
}

.content-page ol,
.content-page ul {
  padding-left: 20px;
}

.content-offer {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff8d9;
  border: 1px solid #f0dfa0;
}

.content-offer h3 {
  margin: 0 0 6px;
  color: var(--id-primary);
}

.content-offer p {
  margin: 0 0 12px;
}

.content-footer {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 18px 20px 0;
}

/* —— Mobile / responsivo —— */
@supports (padding: env(safe-area-inset-bottom)) {
  .dock {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .powered-by {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .site-header-inner,
  .home,
  .content-page,
  .trial-banner-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (max-width: 860px) {
  .home {
    padding: 24px 16px 40px;
  }

  .site-header-inner {
    padding: 12px 16px;
  }

  .site-header img {
    height: 24px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.85rem;
  }

  .lobby {
    padding: 16px 14px 28px;
    align-items: start;
  }

  .preview-wrap {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .lobby-side {
    padding: 0;
  }

  .video-grid {
    padding: 64px 10px 120px;
  }
}

@media (max-width: 600px) {
  :root {
    --control: 48px;
  }

  .home-intro h1 {
    font-size: 1.55rem;
  }

  .panel {
    padding: 18px 16px;
  }

  .home-footer {
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
  }

  .trial-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }

  .trial-banner-inner .btn {
    width: 100%;
  }

  .topbar {
    padding: 10px 12px;
  }

  .room-app.is-in-call .topbar {
    padding: 12px;
  }

  .room-meta strong {
    max-width: 42vw;
  }

  .topbar-brand {
    gap: 8px;
  }

  .avatar {
    width: 72px;
    height: 72px;
    font-size: 1.3rem;
  }

  .preview-controls .ctrl {
    width: 48px;
    height: 48px;
  }

  .dock {
    left: 8px;
    right: 8px;
    width: auto;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 8px;
    border-radius: 16px;
    background: rgba(32, 33, 36, 0.88);
  }

  .ctrl.leave {
    width: 56px;
    border-radius: 24px;
  }

  .ctrl svg {
    width: 20px;
    height: 20px;
  }

  .stage.with-side .side-panel {
    inset: auto 0 0 0;
    height: min(58dvh, 420px);
    border-radius: 16px 16px 0 0;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .video-grid {
    gap: 8px;
    padding: 56px 8px 140px;
    align-content: start;
  }

  .tile {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .tile-label {
    left: 8px;
    bottom: 8px;
    font-size: 0.75rem;
    max-width: calc(100% - 16px);
  }

  .exit-card {
    padding: 22px 18px;
    max-height: min(90dvh, 640px);
    overflow: auto;
  }

  .exit-actions .btn {
    width: 100%;
  }

  .content-page {
    padding: 24px 16px 32px;
  }

  .content-page h1 {
    font-size: 1.45rem;
  }

  /* Esconde mute-all no mobile se estiver visível — dock já fica cheio */
  #ctrl-mute-all:not(.hidden) {
    display: none;
  }
}

@media (max-width: 380px) {
  .site-nav a:first-child {
    display: none;
  }

  .dock {
    gap: 6px;
  }

  :root {
    --control: 44px;
  }
}
