:root {
  --ink: #102a2a;
  --ink-soft: #405654;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --line: #d9ddd3;
  --lime: #dbff63;
  --lime-dark: #b6dc35;
  --mint: #70e1c8;
  --terracotta: #e16f4f;
  --danger: #c23d32;
  --shadow: 0 22px 60px rgba(16, 42, 42, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(219, 255, 99, 0.2), transparent 25rem),
    radial-gradient(circle at 92% 52%, rgba(112, 225, 200, 0.14), transparent 24rem),
    var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  min-width: 0;
  overflow-x: clip;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
}

.brand-mark svg {
  width: 24px;
  fill: var(--lime);
}

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

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.icon-button {
  border: 0;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--surface);
  background: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 58px 0 38px;
  text-align: center;
}

.eyebrow,
.step-label {
  margin: 0 0 10px;
  color: #58716e;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  max-width: 850px;
  margin: 0 auto;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 620px;
  margin: 24px auto 34px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.mode-switch {
  width: min(610px, 100%);
  margin: 0 auto;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.75);
  box-shadow: 0 12px 36px rgba(16, 42, 42, 0.05);
}

.mode-button {
  min-height: 72px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 180ms ease;
}

.mode-button:hover {
  background: rgba(16, 42, 42, 0.05);
}

.mode-button.is-active {
  color: var(--surface);
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(16, 42, 42, 0.2);
}

.mode-button strong,
.mode-button small {
  display: block;
}

.mode-button strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
}

.mode-button small {
  margin-top: 2px;
  opacity: 0.68;
  font-size: 0.7rem;
}

.mode-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
}

.mode-icon--paper {
  color: var(--ink);
  background: var(--lime);
  font-family: Georgia, serif;
  font-weight: 700;
}

.mode-arrow {
  opacity: 0.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  align-items: stretch;
  gap: 22px;
  padding: 22px 0 58px;
}

.workspace > * {
  min-width: 0;
}

.workspace[hidden] {
  display: none;
}

.workspace--text {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
}

.camera-card,
.result-card,
.input-card,
.avatar-card {
  padding: 28px;
  border: 1px solid rgba(16, 42, 42, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.card-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-heading--compact {
  align-items: center;
}

.card-heading h2,
.how-it-works h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  letter-spacing: -0.04em;
}

.camera-status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 100px;
  color: #6d7470;
  background: #eef0ea;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a0a7a1;
}

.camera-status.is-active {
  color: #17663f;
  background: #e3f5e9;
}

.camera-status.is-active .status-dot {
  background: #35a26b;
  box-shadow: 0 0 0 4px rgba(53, 162, 107, 0.12);
}

.camera-stage {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 20px;
  color: #f6f9f4;
  background:
    radial-gradient(circle at 50% 40%, #31504e 0, #163331 45%, #0c2222 100%);
  isolation: isolate;
}

.camera-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.14;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.camera-stage video,
.camera-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.camera-stage.is-user-camera video,
.camera-stage.is-user-camera canvas {
  transform: scaleX(-1);
}

.camera-stage video {
  z-index: 0;
  opacity: 0;
  transition: opacity 300ms ease;
}

.camera-stage canvas {
  z-index: 1;
  pointer-events: none;
}

.camera-stage.has-video video {
  opacity: 1;
}

.camera-stage:fullscreen,
.camera-stage:-webkit-full-screen,
.camera-stage.is-pseudo-fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  background: #02070b;
}

.camera-stage.is-pseudo-fullscreen {
  position: fixed;
  z-index: 20000;
  inset: 0;
}

body.camera-fullscreen-active {
  overflow: hidden;
}

.camera-fullscreen-actions {
  position: absolute;
  z-index: 8;
  right: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(50%);
}

.camera-stage:fullscreen .camera-fullscreen-actions,
.camera-stage:-webkit-full-screen .camera-fullscreen-actions,
.camera-stage.is-pseudo-fullscreen .camera-fullscreen-actions {
  display: flex;
}

.camera-overlay-button {
  min-height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: white;
  background: rgba(4, 15, 23, 0.76);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.camera-overlay-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(12, 38, 52, 0.9);
}

.camera-overlay-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.camera-overlay-button svg,
#fullscreen-camera-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}

.camera-overlay-button__record-icon {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5b64;
}

.camera-overlay-button--record.is-recording {
  border-color: rgba(255, 91, 100, 0.8);
  background: rgba(164, 27, 42, 0.88);
}

.camera-overlay-button--record.is-recording .camera-overlay-button__record-icon {
  border-radius: 2px;
  background: white;
}

.camera-empty {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 30px;
  text-align: center;
}

.camera-empty[hidden] {
  display: none;
}

.camera-empty strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
}

.camera-empty > span:last-child {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
}

.camera-empty-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 5px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.camera-empty-icon svg {
  width: 33px;
  fill: var(--lime);
}

.frame-guide {
  position: absolute;
  z-index: 2;
  inset: 28px;
  pointer-events: none;
}

.frame-guide[hidden] {
  display: none;
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: rgba(219, 255, 99, 0.86);
  border-style: solid;
}

.corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 8px 0 0; }
.corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 8px 0 0; }
.corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 8px; }
.corner--br { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-radius: 0 0 8px; }

.guide-copy {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 100px;
  color: white;
  background: rgba(8, 25, 25, 0.64);
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
  font-weight: 600;
}

.guide-icon {
  color: var(--lime);
}

.tracking-badge,
.recording-timer {
  position: absolute;
  z-index: 4;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  background: rgba(8, 25, 25, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.71rem;
  font-weight: 700;
}

.tracking-badge[hidden],
.recording-timer[hidden],
.phrase-preview[hidden],
.vlibras-help[hidden] {
  display: none;
}

.tracking-badge {
  left: 16px;
}

.recording-timer {
  right: 16px;
}

.recording-timer > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6a5f;
  animation: blink 1s infinite;
}

.tracking-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f1b34b;
}

.tracking-badge.has-hands .tracking-pulse {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(219, 255, 99, 0.16);
}

.camera-controls,
.input-actions,
.result-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recording-support-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.record-button,
.text-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.record-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.primary-button {
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: var(--surface);
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(16, 42, 42, 0.16);
}

.secondary-button,
.record-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

#fullscreen-camera-button svg {
  color: currentColor;
}

.record-button > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
}

.record-button.is-recording {
  color: white;
  border-color: var(--danger);
  background: var(--danger);
}

.record-button.is-recording > span {
  border-radius: 2px;
  background: white;
}

@media (max-width: 620px) {
  .camera-fullscreen-actions {
    right: 12px;
    left: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none;
  }

  .camera-stage:fullscreen .camera-fullscreen-actions,
  .camera-stage:-webkit-full-screen .camera-fullscreen-actions,
  .camera-stage.is-pseudo-fullscreen .camera-fullscreen-actions {
    display: grid;
  }

  #exit-fullscreen-button {
    grid-column: 1 / -1;
  }

  .camera-overlay-button {
    min-width: 0;
    padding: 0 11px;
  }
}

/* Navegação por páginas internas — mantém tradutor, tema e VLibras no mesmo aplicativo. */
.topbar-primary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-navigation {
  position: relative;
  z-index: 1200;
  flex: 0 0 auto;
}

.app-menu-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--brand-end) 38%, var(--line));
  border-radius: 50%;
  color: var(--ink);
  background: rgba(var(--surface-rgb), 0.82);
  box-shadow: 0 12px 32px rgba(7, 52, 93, 0.12);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.app-menu-toggle span {
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 10px;
  background: currentColor;
  transform-origin: center;
  transition: transform 240ms cubic-bezier(.2, .8, .2, 1), opacity 160ms ease, width 220ms ease;
}

.app-navigation:hover .app-menu-toggle,
.app-navigation:focus-within .app-menu-toggle,
.app-navigation.is-open .app-menu-toggle {
  transform: translateY(-2px) rotate(-4deg);
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-mid), var(--brand-end));
  box-shadow: 0 16px 38px var(--accent-glow);
}

.app-navigation:hover .app-menu-toggle span:nth-child(2) {
  width: 13px;
}

.app-navigation.is-open .app-menu-toggle span:nth-child(1),
.app-navigation:focus-within .app-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.app-navigation.is-open .app-menu-toggle span:nth-child(2),
.app-navigation:focus-within .app-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  width: 19px;
  opacity: 0;
  transform: scaleX(0);
}

.app-navigation.is-open .app-menu-toggle span:nth-child(3),
.app-navigation:focus-within .app-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.app-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(350px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 100px));
  padding: 12px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(var(--surface-rgb), 0.96);
  box-shadow: 0 28px 80px rgba(5, 23, 43, 0.24);
  backdrop-filter: blur(24px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(.96);
  transform-origin: top left;
  transition: opacity 180ms ease, visibility 180ms ease, transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.app-navigation.is-open .app-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.app-menu__heading {
  padding: 10px 12px 12px;
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.app-menu__heading p {
  margin: 0;
  color: var(--brand-end);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.app-menu__heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.app-menu__link {
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-menu__link:hover,
.app-menu__link:focus-visible {
  transform: translateX(3px);
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-soft);
}

.app-menu__link.is-active {
  color: white;
  border-color: transparent;
  background: linear-gradient(115deg, var(--brand-start), var(--brand-mid), var(--brand-end));
  box-shadow: 0 10px 28px var(--accent-glow);
}

.app-menu__number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
  opacity: .84;
}

.app-menu__link > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.app-menu__link strong,
.app-menu__link small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-menu__link strong {
  font-size: .9rem;
}

.app-menu__link small {
  font-size: .68rem;
  opacity: .78;
  white-space: nowrap;
}

.app-page {
  min-height: min(720px, calc(100vh - 190px));
  outline: none;
}

.app-page.app-page-enter {
  animation: vertex-page-enter 440ms cubic-bezier(.2, .8, .2, 1) both;
}

.app-page__heading {
  max-width: 780px;
  margin: 0 auto 22px;
  padding: 30px 20px 0;
  text-align: center;
}

.app-page__heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.app-page__heading > p:last-child {
  max-width: 650px;
  margin: 10px auto 0;
  color: var(--ink-soft);
}

.home-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-actions a {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}

#page-tradutor > .mode-switch {
  margin: 0 auto;
}

#page-tradutor > .hero-proof {
  margin-bottom: 0;
}

#page-aplicativo > .download-hub,
#page-sobre > :first-child {
  margin-top: 24px;
}

@keyframes vertex-page-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .topbar-primary {
    gap: 8px;
  }

  .app-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .app-menu {
    position: fixed;
    top: 76px;
    left: 12px;
    width: min(350px, calc(100vw - 24px));
  }

  .app-page {
    min-height: calc(100vh - 155px);
  }

  .app-page__heading {
    padding-top: 16px;
  }

  .home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-actions a {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .topbar {
    width: min(100% - 24px, 1240px);
  }

  .topbar-primary .brand-word {
    display: none;
  }

  .app-menu__link {
    padding-block: 10px;
  }
}

@media (hover: none) {
  .app-navigation:not(.is-open) .app-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-menu-toggle,
  .app-menu-toggle span,
  .app-menu,
  .app-menu__link,
  .app-page.app-page-enter {
    animation: none !important;
    transition: none !important;
  }
}

.text-button {
  padding: 0 10px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.camera-permission {
  margin-top: 13px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-end) 28%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand-end) 7%, var(--surface));
}

.camera-permission__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--brand-end);
  background: color-mix(in srgb, var(--brand-end) 12%, var(--surface));
}

.camera-permission__icon svg {
  width: 19px;
  fill: currentColor;
}

.camera-permission strong,
.camera-permission p {
  display: block;
}

.camera-permission strong {
  color: var(--ink);
  font-size: 0.74rem;
}

.camera-permission p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.45;
}

.camera-permission .text-button {
  white-space: nowrap;
  font-size: 0.68rem;
}

.camera-permission[data-state="requesting"] {
  border-color: color-mix(in srgb, #ffb74d 48%, var(--line));
}

.camera-permission[data-state="granted"] {
  border-color: color-mix(in srgb, #38d59f 48%, var(--line));
  background: color-mix(in srgb, #38d59f 8%, var(--surface));
}

.camera-permission[data-state="granted"] .camera-permission__icon {
  color: #159a70;
}

.camera-permission[data-state="denied"],
.camera-permission[data-state="insecure"],
.camera-permission[data-state="unavailable"] {
  border-color: color-mix(in srgb, #ef5b70 50%, var(--line));
  background: color-mix(in srgb, #ef5b70 7%, var(--surface));
}

.camera-permission[data-state="denied"] .camera-permission__icon,
.camera-permission[data-state="insecure"] .camera-permission__icon,
.camera-permission[data-state="unavailable"] .camera-permission__icon {
  color: #d73d58;
}

.cookie-consent {
  position: fixed;
  z-index: 10020;
  left: 20px;
  bottom: 20px;
  width: min(680px, calc(100vw - 40px));
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid color-mix(in srgb, var(--brand-end) 32%, var(--line));
  border-radius: 18px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 24px 70px rgba(2, 14, 35, 0.24);
  backdrop-filter: blur(18px);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--brand-end);
  background: color-mix(in srgb, var(--brand-end) 12%, var(--surface));
}

.cookie-consent__mark svg {
  width: 22px;
  fill: currentColor;
}

.cookie-consent__copy strong {
  font-size: 0.82rem;
}

.cookie-consent__copy p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.5;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cookie-consent__actions button {
  min-height: 40px;
  white-space: nowrap;
  font-size: 0.68rem;
}

.privacy-note,
.provider-note {
  margin: 16px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #62706d;
  font-size: 0.74rem;
  line-height: 1.5;
}

.privacy-note svg {
  flex: none;
  width: 15px;
  fill: #5b7772;
}

.output-choice {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 0;
}

.output-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.choice-card {
  position: relative;
  min-height: 76px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: 160ms ease;
}

.choice-card.is-selected {
  border-color: var(--ink);
  background: rgba(219, 255, 99, 0.15);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: #edf0e9;
  font-family: Georgia, serif;
  font-weight: 700;
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  font-size: 0.82rem;
}

.choice-card small {
  margin-top: 3px;
  color: #71807d;
  font-size: 0.67rem;
}

.translation-result {
  position: relative;
  min-height: 166px;
  margin-top: 20px;
  padding: 28px 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  color: white;
  background: var(--ink);
  overflow: hidden;
}

.translation-result::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(219, 255, 99, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(219, 255, 99, 0.04), 0 0 0 60px rgba(219, 255, 99, 0.025);
}

.result-mark {
  position: absolute;
  top: 4px;
  left: 18px;
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.translation-result p {
  position: relative;
  z-index: 1;
  margin: 14px 0 26px;
  color: rgba(255,255,255,.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.confidence {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.55);
  font-size: 0.68rem;
}

.confidence strong {
  color: var(--lime);
}

.model-notice {
  margin-top: 18px;
  padding: 14px 15px;
  border-left: 3px solid var(--mint);
  border-radius: 0 12px 12px 0;
  background: rgba(112, 225, 200, 0.1);
}

.model-notice.is-highlighted {
  animation: notice 700ms ease;
}

.model-notice strong {
  font-size: 0.76rem;
}

.model-notice p {
  margin: 5px 0 0;
  color: #60716d;
  font-size: 0.7rem;
  line-height: 1.45;
}

.textarea-label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.8rem;
  font-weight: 800;
}

.textarea-wrap {
  position: relative;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 210px;
  padding: 19px 20px 42px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fbfaf5;
  font-size: 1.05rem;
  line-height: 1.55;
  transition: border 160ms ease, box-shadow 160ms ease;
}

textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(16, 42, 42, 0.07);
  outline: 0;
}

.character-count {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: #81908c;
  font-size: 0.7rem;
}

.input-actions {
  justify-content: space-between;
}

.speech-input-status {
  min-height: 1.4em;
  margin: 11px 0 2px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.speech-input-status[data-state="listening"] {
  color: var(--brand-end);
  font-weight: 700;
}

.speech-input-status[data-state="error"] {
  color: var(--danger);
}

.speech-input-privacy {
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-underline-offset: 3px;
}

:root[data-theme="dark"] .speech-input-status[data-state="error"] {
  color: #ff91a4;
}

.mic-button.is-listening {
  color: var(--danger);
  border-color: rgba(194, 61, 50, 0.4);
}

#speak-result-button.is-speaking {
  color: var(--danger);
  border-color: rgba(194, 61, 50, 0.4);
}

.mic-button.is-listening span {
  animation: blink 0.85s infinite;
}

.quick-phrases {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quick-phrases > span {
  color: #71807d;
  font-size: 0.72rem;
  font-weight: 700;
}

.quick-phrases button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
}

.quick-phrases button:hover {
  border-color: var(--ink);
  background: var(--lime);
}

.provider-badge {
  color: var(--ink);
  border-color: transparent;
  background: var(--lime);
}

.avatar-stage {
  position: relative;
  min-height: 302px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, #dbeae1, #eef2e9 60%, #e3eadd);
  overflow: hidden;
}

.avatar-stage::after {
  content: "";
  position: absolute;
  bottom: 48px;
  left: 50%;
  width: 180px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(16, 42, 42, 0.12);
  filter: blur(8px);
}

.avatar-orbit {
  position: absolute;
  border: 1px solid rgba(16, 42, 42, 0.09);
  border-radius: 50%;
}

.avatar-orbit--one { width: 250px; height: 250px; }
.avatar-orbit--two { width: 190px; height: 190px; border-style: dashed; }

.avatar-figure {
  position: relative;
  z-index: 2;
  width: 190px;
  height: 225px;
  transform: translateY(-5px);
}

.avatar-head {
  position: absolute;
  top: 13px;
  left: 73px;
  width: 48px;
  height: 57px;
  border: 3px solid var(--ink);
  border-radius: 48% 48% 44% 44%;
  background: #c98562;
  box-shadow: inset 0 12px 0 #243d38;
}

.avatar-body {
  position: absolute;
  top: 68px;
  left: 48px;
  width: 98px;
  height: 138px;
  border: 3px solid var(--ink);
  border-radius: 46px 46px 24px 24px;
  background: var(--ink);
  box-shadow: inset 0 -36px 0 #1e5550;
}

.avatar-body::after {
  content: "S";
  position: absolute;
  top: 23px;
  left: 35px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--ink);
  background: var(--lime);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.avatar-arm {
  position: absolute;
  z-index: -1;
  top: 85px;
  width: 35px;
  height: 107px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #1e5550;
  transform-origin: 50% 18px;
}

.avatar-arm--left { left: 25px; transform: rotate(15deg); }
.avatar-arm--right { right: 21px; transform: rotate(-30deg); }

.avatar-hand {
  position: absolute;
  z-index: 3;
  top: 57px;
  font-size: 2.2rem;
  filter: sepia(.3) saturate(.8);
  transform-origin: 50% 100%;
}

.avatar-hand--left { left: 2px; transform: rotate(-30deg); }
.avatar-hand--right { right: -1px; transform: rotate(35deg); }

.avatar-stage.is-signing .avatar-arm--left { animation: sign-left 1.3s ease-in-out infinite alternate; }
.avatar-stage.is-signing .avatar-arm--right { animation: sign-right 1.15s ease-in-out infinite alternate; }
.avatar-stage.is-signing .avatar-hand--left { animation: hand-left 900ms ease-in-out infinite alternate; }
.avatar-stage.is-signing .avatar-hand--right { animation: hand-right 800ms ease-in-out infinite alternate; }

.avatar-state {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 13px;
  left: 16px;
  padding: 8px 11px;
  border-radius: 10px;
  color: white;
  background: rgba(16, 42, 42, 0.82);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.phrase-preview {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf5;
}

.phrase-preview span {
  color: #75827f;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.phrase-preview p {
  margin: 5px 0 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
}

.dictionary-coverage {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(112, 225, 200, 0.08);
}

.dictionary-coverage.has-warning {
  border-color: color-mix(in srgb, var(--brand-end) 54%, var(--line));
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand-mid) 9%, transparent), color-mix(in srgb, var(--brand-end) 10%, transparent));
}

.dictionary-coverage.has-warning .dictionary-coverage__dot {
  background: var(--brand-end);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.dictionary-coverage__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dictionary-coverage__heading strong {
  font-size: 0.75rem;
}

.dictionary-coverage__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0aa43;
  box-shadow: 0 0 0 4px rgba(224, 170, 67, 0.12);
}

.dictionary-coverage__dot.is-ready {
  background: #35a26b;
  box-shadow: 0 0 0 4px rgba(53, 162, 107, 0.12);
}

.dictionary-coverage p {
  margin: 6px 0 0;
  color: #62716e;
  font-size: 0.69rem;
  line-height: 1.45;
}

.missing-signs {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.missing-signs[hidden] {
  display: none;
}

.missing-signs span {
  padding: 4px 7px;
  border-radius: 100px;
  color: #7d3324;
  background: rgba(225, 111, 79, 0.14);
  font-size: 0.63rem;
  font-weight: 800;
}

.vlibras-help {
  margin: 12px 0 0;
  padding-left: 22px;
  color: #62716e;
  font-size: 0.72rem;
  line-height: 1.55;
}

.how-it-works {
  margin: 20px 0 90px;
  padding: 42px;
  display: grid;
  grid-template-columns: 0.75fr 2fr;
  gap: 44px;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--ink);
}

.how-it-works .eyebrow {
  color: var(--lime);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 30px;
}

.feature-list article {
  position: relative;
  padding-left: 44px;
}

.feature-list article > span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
}

.feature-list h3 {
  margin: 0 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
}

.feature-list p {
  margin: 0;
  color: rgba(255,255,255,.57);
  font-size: 0.74rem;
  line-height: 1.55;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #6e7a77;
  font-size: 0.74rem;
}

.brand--footer {
  font-size: 1rem;
}

footer p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 9999;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100% - 44px));
  padding: 13px 16px;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 36px rgba(0,0,0,.2);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes notice { 50% { background: rgba(219, 255, 99, 0.27); } }
@keyframes sign-left { to { transform: rotate(62deg) translate(-8px, -12px); } }
@keyframes sign-right { to { transform: rotate(-65deg) translate(4px, -18px); } }
@keyframes hand-left { to { transform: rotate(12deg) translate(11px, -16px); } }
@keyframes hand-right { to { transform: rotate(-10deg) translate(-8px, -19px); } }

@media (max-width: 920px) {
  .workspace,
  .workspace--text {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    padding: 18px 0;
  }

  .hero {
    padding: 36px 0 24px;
  }

  .hero-copy {
    margin: 18px auto 26px;
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .camera-card,
  .result-card,
  .input-card,
  .avatar-card {
    padding: 20px;
    border-radius: 22px;
  }

  .card-heading {
    flex-direction: column;
  }

  .camera-stage {
    min-height: 320px;
  }

  .camera-controls > button,
  .input-actions > button {
    flex: 1 1 100%;
  }

  .guide-copy {
    width: calc(100% - 20px);
    text-align: center;
  }

  .output-choice,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    padding: 28px 22px;
    gap: 28px;
    margin-bottom: 55px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* VERTEX v14 — interface essencial e paletas oficiais */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #07345d;
  --ink-soft: #496b83;
  --paper: #f4faff;
  --surface: #ffffff;
  --surface-soft: #eaf7fb;
  --surface-rgb: 255, 255, 255;
  --deep-surface: #07345d;
  --line: #cfe0ec;
  --lime: #21c6c8;
  --lime-dark: #119dab;
  --mint: #16b9c4;
  --terracotta: #087faf;
  --brand-start: #07345d;
  --brand-mid: #0877a7;
  --brand-end: #16c2c7;
  --brand-last: #16c2c7;
  --accent-glow: rgba(22, 194, 199, 0.2);
  --shadow: 0 20px 58px rgba(7, 52, 93, 0.1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f7ff;
  --ink-soft: #b5c1d4;
  --paper: #070911;
  --surface: #101522;
  --surface-soft: #171e2d;
  --surface-rgb: 16, 21, 34;
  --deep-surface: #090d17;
  --line: rgba(157, 177, 207, 0.22);
  --lime: #f0203d;
  --lime-dark: #b22d86;
  --mint: #2d82e5;
  --terracotta: #f0204f;
  --brand-start: #f0203d;
  --brand-mid: #b22d86;
  --brand-end: #2d82e5;
  --brand-last: #97a6ba;
  --accent-glow: rgba(221, 38, 91, 0.22);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.4);
}

body {
  background:
    radial-gradient(circle at 12% 8%, var(--accent-glow), transparent 27rem),
    radial-gradient(circle at 88% 38%, color-mix(in srgb, var(--brand-end) 12%, transparent), transparent 26rem),
    var(--paper);
}

body::before {
  opacity: 0.14;
  background-size: 84px 84px;
}

.topbar,
main,
footer {
  width: min(1180px, calc(100% - 40px));
}

.topbar {
  padding-block: 20px;
}

.theme-toggle {
  min-height: 44px;
  padding-inline: 8px 14px;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-start) 8%, transparent);
}

.theme-toggle__icon {
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.hero {
  padding: 30px 32px 34px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0, var(--accent-glow), transparent 19rem),
    color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  display: none;
}

.hero-symbol {
  width: 62px;
  height: 58px;
  margin-bottom: 12px;
}

.hero .eyebrow {
  margin-bottom: 12px;
  color: var(--brand-end);
}

.hero h1 {
  max-width: 970px;
  font-size: clamp(2.35rem, 5.2vw, 4.65rem);
  line-height: 1.02;
}

.hero h1 span {
  filter: none;
}

.hero-copy {
  max-width: 720px;
  margin: 18px auto 24px;
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}

.mode-switch {
  width: min(790px, 100%);
  padding: 7px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--brand-start) 9%, transparent);
}

.mode-button {
  min-height: 72px;
  padding: 12px 16px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  border-radius: 14px;
}

.mode-button > .mode-arrow,
.mode-button > .mode-icon:last-child {
  display: none;
}

.mode-button strong {
  font-size: 0.88rem;
}

.mode-button small {
  font-size: 0.72rem;
}

.mode-button.is-active {
  background: linear-gradient(112deg, var(--brand-start), var(--brand-mid), var(--brand-end));
}

.mode-button.is-active .mode-icon {
  color: var(--brand-start);
  background: #ffffff;
}

.hero-proof {
  margin-top: 18px;
  gap: 8px;
}

.hero-proof span {
  min-width: 150px;
  padding: 8px 13px;
  color: var(--ink-soft);
  background: var(--surface);
}

.hero-proof strong {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand-end);
  font-size: 0.66rem;
}

.workspace {
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 20px;
  padding: 28px 0 48px;
}

.workspace--text {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.camera-card,
.result-card,
.input-card,
.avatar-card {
  padding: 26px;
  border-color: var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.camera-card:hover,
.result-card:hover,
.input-card:hover,
.avatar-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.card-heading {
  margin-bottom: 18px;
}

.card-heading h2,
.how-it-works h2 {
  line-height: 1.15;
}

.camera-stage {
  min-height: 360px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--brand-end) 25%, #173c5b), #0a2540 52%, #05131f);
}

.camera-permission,
.model-notice,
.dictionary-coverage {
  background: color-mix(in srgb, var(--brand-end) 6%, var(--surface));
}

.output-choice {
  gap: 9px;
}

.choice-card {
  min-height: 72px;
  background: var(--surface);
}

.choice-card.is-selected {
  border-color: var(--brand-end);
  background: color-mix(in srgb, var(--brand-end) 9%, var(--surface));
}

.translation-result {
  min-height: 160px;
  background:
    radial-gradient(circle at 100% 100%, var(--accent-glow), transparent 48%),
    var(--deep-surface);
}

.recognition-learning {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-end) 38%, var(--line));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--brand-end) 7%, var(--surface));
  line-height: 1.45;
}

.recognition-learning[hidden],
.recognition-correction[hidden] { display: none; }

.recognition-learning__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.recognition-correction {
  display: grid;
  gap: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

.recognition-correction label { font-size: .75rem; font-weight: 800; }
.recognition-correction > div { display: flex; gap: .5rem; }
.recognition-correction input {
  min-width: 0;
  flex: 1;
  min-height: 42px;
  padding: 0 .75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.recognition-correction input:focus {
  border-color: var(--brand-end);
  box-shadow: 0 0 0 4px var(--accent-glow);
  outline: 0;
}
.recognition-correction small { color: var(--ink-soft); }

@media (max-width: 520px) {
  .recognition-correction > div { align-items: stretch; flex-direction: column; }
}

.camera-vocabulary {
  display: grid;
  gap: .7rem;
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  line-height: 1.55;
}
.camera-vocabulary p { margin: 0; overflow-wrap: anywhere; }
.camera-vocabulary small { color: var(--ink-soft); }
.camera-vocabulary button { justify-self: start; text-align: left; white-space: normal; }

.recognition-details {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  overflow: hidden;
}

.recognition-details > summary {
  min-height: 60px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.recognition-details > summary::-webkit-details-marker {
  display: none;
}

.recognition-details > summary::after {
  content: "+";
  position: absolute;
  align-self: flex-end;
  color: var(--brand-end);
  font-size: 1.25rem;
}

.recognition-details[open] > summary::after {
  content: "−";
}

.recognition-details > summary small {
  padding-right: 28px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
}

.recognition-details .model-notice {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.ai-pipeline span {
  text-transform: none;
  letter-spacing: 0;
}

.avatar-stage--team {
  min-height: 330px;
  border-radius: 18px;
}

.technology-note {
  margin: 4px 0 24px;
  padding: 30px;
  grid-template-columns: 0.48fr 1.55fr 0.72fr;
  gap: 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.technology-note::after {
  display: none;
}

.technology-note h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.how-it-works {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.how-it-works .eyebrow,
.feature-list article > span {
  color: var(--brand-end);
}

.section-lead,
.how-it-works .feature-list p {
  color: var(--ink-soft);
}

.feature-list article {
  border-color: var(--line);
}

:root[data-theme="dark"] .how-it-works {
  color: var(--ink);
  background:
    linear-gradient(118deg, #11131d, color-mix(in srgb, var(--brand-mid) 22%, #101522), color-mix(in srgb, var(--brand-end) 18%, #101522));
}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .camera-card,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .input-card,
:root[data-theme="dark"] .avatar-card,
:root[data-theme="dark"] .technology-note {
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

:root[data-theme="dark"] .mode-button.is-active .mode-icon {
  color: #9b256f;
}

:root[data-theme="dark"] .hero-proof strong {
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

:root[data-theme="dark"] .translation-result {
  border: 1px solid color-mix(in srgb, var(--brand-mid) 24%, var(--line));
}

@media (max-width: 920px) {
  .workspace,
  .workspace--text {
    grid-template-columns: 1fr;
  }

  .technology-note {
    grid-template-columns: minmax(190px, 0.5fr) 1.3fr;
  }
}

@media (max-width: 700px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    padding: 26px 14px 24px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .mode-switch {
    grid-template-columns: 1fr;
  }

  .mode-button {
    min-height: 66px;
  }

  .hero-proof {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-proof span {
    text-align: left;
  }

  .camera-card,
  .result-card,
  .input-card,
  .avatar-card {
    padding: 20px;
  }

  .camera-stage {
    min-height: 315px;
  }

  .technology-note {
    padding: 22px;
    grid-template-columns: 1fr;
  }

}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .output-choice {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    width: 44px;
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* VERTEX — identidade visual e temas */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #07345d;
  --ink-soft: #496b83;
  --paper: #f3faff;
  --surface: #ffffff;
  --surface-soft: #eaf7fb;
  --surface-rgb: 255, 255, 255;
  --deep-surface: #062b52;
  --line: rgba(5, 64, 109, 0.16);
  --lime: #3ad9d5;
  --lime-dark: #16afb9;
  --mint: #22c4c8;
  --terracotta: #0b91c7;
  --brand-start: #063466;
  --brand-mid: #0877a7;
  --brand-end: #1ac4c8;
  --brand-last: #1ac4c8;
  --accent-glow: rgba(26, 196, 200, 0.24);
  --shadow: 0 24px 70px rgba(5, 54, 94, 0.11);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf4ff;
  --ink-soft: #aab8cc;
  --paper: #070910;
  --surface: #111621;
  --surface-soft: #171d2a;
  --surface-rgb: 17, 22, 33;
  --deep-surface: #090d16;
  --line: rgba(161, 178, 205, 0.18);
  --lime: #f22946;
  --lime-dark: #bd2d7b;
  --mint: #4b8ee8;
  --terracotta: #e52a56;
  --brand-start: #f0192f;
  --brand-mid: #ac2b88;
  --brand-end: #2784e5;
  --brand-last: #9aa4b2;
  --accent-glow: rgba(226, 40, 87, 0.24);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, var(--accent-glow), transparent 29rem),
    radial-gradient(circle at 92% 44%, rgba(30, 135, 214, 0.15), transparent 27rem),
    linear-gradient(180deg, var(--paper), var(--paper));
  transition: color 260ms ease, background 260ms ease;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 25%, black, transparent 70%);
  pointer-events: none;
}

.topbar,
main,
footer {
  width: min(1240px, calc(100% - 40px));
}

.topbar {
  position: relative;
  z-index: 20;
  padding: 24px 0;
}

.brand {
  gap: 12px;
  font-size: 1.12rem;
  letter-spacing: 0.22em;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 14px var(--accent-glow));
}

.brand-mark svg {
  width: 46px;
  overflow: visible;
}

.vertex-art,
.vertex-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vertex-line {
  stroke-width: 5.7;
  vector-effect: non-scaling-stroke;
}

.vertex-line--fine {
  stroke-width: 3.2;
  opacity: 0.86;
}

.brand-word,
.brand--footer,
.hero h1 span {
  color: transparent;
  background: linear-gradient(95deg, var(--brand-start), var(--brand-mid), var(--brand-end), var(--brand-last));
  background-clip: text;
  -webkit-background-clip: text;
}

.topbar-actions {
  gap: 10px;
}

.provider-badge {
  border-color: var(--line);
  color: var(--ink-soft);
  background: rgba(var(--surface-rgb), 0.68);
  backdrop-filter: blur(14px);
}

.theme-toggle {
  min-height: 40px;
  padding: 6px 12px 6px 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
  background: rgba(var(--surface-rgb), 0.72);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--brand-end);
}

.theme-toggle__icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 5px 15px var(--accent-glow);
}

.theme-toggle svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-moon,
:root[data-theme="dark"] .theme-sun {
  display: none;
}

:root[data-theme="dark"] .theme-moon {
  display: block;
}

.icon-button {
  color: white;
  background: linear-gradient(110deg, var(--brand-start), var(--brand-end));
}

.hero {
  position: relative;
  padding: 38px 28px 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 4%, var(--accent-glow), transparent 20rem),
    rgba(var(--surface-rgb), 0.52);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45), var(--shadow);
  backdrop-filter: blur(18px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
  pointer-events: none;
}

.hero::before {
  top: -225px;
  left: -110px;
}

.hero::after {
  right: -135px;
  bottom: -250px;
}

.hero-symbol {
  width: 72px;
  height: 68px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 12px 22px var(--accent-glow));
}

.hero-symbol svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.eyebrow,
.step-label {
  color: var(--brand-end);
}

.hero h1 {
  max-width: 1080px;
  font-size: clamp(2.45rem, 5.6vw, 4.9rem);
  line-height: 1.02;
}

.hero h1 span {
  display: inline-block;
  filter: drop-shadow(0 10px 24px var(--accent-glow));
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.mode-switch {
  width: min(680px, 100%);
  border-color: var(--line);
  background: rgba(var(--surface-rgb), 0.74);
  box-shadow: 0 18px 45px rgba(5, 53, 94, 0.1);
  backdrop-filter: blur(14px);
}

.mode-button {
  color: var(--ink-soft);
}

.mode-button:hover {
  background: var(--surface-soft);
}

.mode-button.is-active,
.primary-button {
  color: white;
  border-color: transparent;
  background: linear-gradient(115deg, var(--brand-start), var(--brand-mid), var(--brand-end));
  box-shadow: 0 12px 30px var(--accent-glow);
}

.mode-icon--paper {
  color: var(--brand-start);
  background: white;
}

.hero-proof {
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.hero-proof span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: rgba(var(--surface-rgb), 0.58);
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-proof strong {
  margin-right: 4px;
  color: var(--brand-end);
}

.workspace {
  padding-top: 30px;
}

.camera-card,
.result-card,
.input-card,
.avatar-card {
  border-color: var(--line);
  background: rgba(var(--surface-rgb), 0.88);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.camera-card:hover,
.result-card:hover,
.input-card:hover,
.avatar-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand-end) 42%, transparent);
  box-shadow: 0 30px 78px rgba(5, 54, 94, 0.15);
}

.camera-stage {
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--brand-end) 30%, #163c5c) 0, #0b2642 48%, #051422 100%);
}

.camera-empty-icon svg,
.guide-icon,
.result-mark,
.confidence strong {
  fill: var(--brand-end);
  color: var(--brand-end);
}

.corner {
  border-color: var(--brand-end);
}

.secondary-button,
.record-button,
textarea,
.phrase-preview {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

textarea:focus {
  border-color: var(--brand-end);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.choice-card {
  border-color: var(--line);
}

.choice-card.is-selected {
  border-color: var(--brand-end);
  background: var(--accent-glow);
  box-shadow: inset 0 0 0 1px var(--brand-end);
}

.choice-icon {
  color: var(--brand-start);
  background: var(--surface-soft);
}

.translation-result,
.toast {
  background:
    radial-gradient(circle at 100% 100%, var(--accent-glow), transparent 45%),
    var(--deep-surface);
}

.translation-result::after {
  border-color: color-mix(in srgb, var(--brand-end) 32%, transparent);
  box-shadow: 0 0 0 30px color-mix(in srgb, var(--brand-end) 8%, transparent), 0 0 0 60px color-mix(in srgb, var(--brand-end) 4%, transparent);
}

.model-notice,
.dictionary-coverage {
  border-color: color-mix(in srgb, var(--brand-end) 35%, var(--line));
  background: color-mix(in srgb, var(--brand-end) 8%, transparent);
}

.model-notice p,
.dictionary-coverage p,
.vlibras-help,
.privacy-note,
.provider-note,
.quick-phrases > span,
.choice-card small {
  color: var(--ink-soft);
}

.quick-phrases button {
  border-color: var(--line);
  color: var(--ink-soft);
}

.quick-phrases button:hover {
  color: white;
  border-color: transparent;
  background: linear-gradient(105deg, var(--brand-start), var(--brand-end));
}

.provider-badge {
  color: white;
  border-color: transparent;
  background: linear-gradient(105deg, var(--brand-start), var(--brand-end));
}

.avatar-stage {
  background:
    radial-gradient(circle at 50% 45%, var(--accent-glow), transparent 43%),
    linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--surface) 84%, var(--brand-end)));
}

.avatar-orbit {
  border-color: color-mix(in srgb, var(--brand-end) 28%, transparent);
}

.avatar-body {
  border-color: var(--deep-surface);
  background: var(--deep-surface);
  box-shadow: inset 0 -36px 0 color-mix(in srgb, var(--brand-end) 35%, var(--deep-surface));
}

.avatar-arm {
  border-color: var(--deep-surface);
  background: color-mix(in srgb, var(--brand-end) 35%, var(--deep-surface));
}

.avatar-body::after {
  content: "V";
  color: white;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
}

.avatar-state {
  background: color-mix(in srgb, var(--deep-surface) 88%, transparent);
}

.technology-note {
  position: relative;
  margin: 12px 0 30px;
  padding: 40px;
  display: grid;
  grid-template-columns: 0.52fr 1.5fr 0.72fr;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(var(--surface-rgb), 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.technology-note::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}

.technology-note h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.technology-note__copy > p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.65;
}

.technology-note__impact {
  position: relative;
  z-index: 1;
  padding-left: 22px;
  border-left: 2px solid var(--brand-end);
}

.technology-note__impact span,
.technology-note__impact strong {
  display: block;
}

.technology-note__impact span {
  margin-bottom: 6px;
  color: var(--brand-end);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.technology-note__impact strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.how-it-works {
  margin-top: 0;
  background:
    linear-gradient(118deg, color-mix(in srgb, var(--brand-start) 88%, #020713), color-mix(in srgb, var(--brand-mid) 65%, #07132a) 48%, color-mix(in srgb, var(--brand-end) 68%, #07182c));
  box-shadow: 0 30px 80px var(--accent-glow);
}

.how-it-works .eyebrow,
.feature-list article > span {
  color: rgba(255, 255, 255, 0.78);
}

.section-lead {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.6;
}

.how-it-works .feature-list article {
  min-height: 108px;
}

.how-it-works .feature-list p {
  max-width: 38rem;
}

footer {
  color: var(--ink-soft);
}

.brand--footer {
  letter-spacing: 0.2em;
}

:root[data-theme="dark"] .camera-card:hover,
:root[data-theme="dark"] .result-card:hover,
:root[data-theme="dark"] .input-card:hover,
:root[data-theme="dark"] .avatar-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .camera-status {
  color: var(--ink-soft);
  background: var(--surface-soft);
}

:root[data-theme="dark"] .camera-status.is-active {
  color: #8ce8bd;
  background: rgba(48, 174, 111, 0.14);
}

:root[data-theme="dark"] .character-count,
:root[data-theme="dark"] .phrase-preview span {
  color: #8998ad;
}

/* O VERTEX usa o catálogo por trás, sem exibir o botão Dicionário do widget. */
[vp] .vpw-controls-dictionary,
.vpw-controls-dictionary,
.vpw-controls-dictionary.vpw-loading-dictionary {
  display: none !important;
}

@media (max-width: 920px) {
  .technology-note {
    grid-template-columns: 0.48fr 1.5fr;
  }

  .technology-note__impact {
    grid-column: 1 / -1;
    padding: 0 0 0 18px;
  }
}

@media (max-width: 700px) {
  .topbar-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 40px;
    padding: 6px;
  }

  .theme-toggle > span:last-child {
    display: none;
  }

  .hero {
    padding: 30px 16px 28px;
    border-radius: 28px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10.7vw, 3.3rem);
  }

  .hero-symbol {
    width: 60px;
    height: 56px;
  }

  .hero-proof {
    align-items: stretch;
    flex-direction: column;
  }

  .technology-note {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .technology-note__impact {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .brand-word {
    font-size: 0.88rem;
    letter-spacing: 0.15em;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .brand-mark svg {
    width: 39px;
  }
}

/* VERTEX v12 — ícones, avatares e IA adaptativa */
.mode-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.mode-icon--sign svg {
  fill: currentColor;
}

.mode-icon--paper svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero .eyebrow {
  max-width: 760px;
  margin-inline: auto;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.2vw, 5.45rem);
}

.hero-copy {
  max-width: 660px;
}

.avatar-stage--team {
  min-height: 350px;
  isolation: isolate;
  background: #071127;
}

.avatar-stage--team::after {
  display: none;
}

.avatar-team {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: scale(1.015);
  transition: transform 500ms ease, filter 500ms ease;
}

.avatar-stage.is-signing .avatar-team {
  transform: scale(1.045);
  filter: saturate(1.08) brightness(1.06);
}

/* Experiência de movimento v2: cada área entra de uma forma diferente. */
@keyframes vertex-aurora-drift {
  0%, 100% { transform: translate3d(-3%, -2%, 0) scale(1); }
  50% { transform: translate3d(5%, 4%, 0) scale(1.08); }
}

@keyframes vertex-hero-breathe {
  50% { filter: drop-shadow(0 18px 28px var(--accent-glow)) saturate(1.12); }
}

@keyframes vertex-panel-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vertex-card-sheen {
  from { transform: translateX(-140%) skewX(-18deg); }
  to { transform: translateX(340%) skewX(-18deg); }
}

@keyframes vertex-label-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes vertex-phone-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes vertex-orbit-turn {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes vertex-download-pulse {
  50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand-end) 8%, transparent); }
}

body::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 26%, var(--accent-glow), transparent 22%),
    radial-gradient(circle at 76% 64%, color-mix(in srgb, var(--brand-end) 13%, transparent), transparent 24%);
  animation: vertex-aurora-drift 18s ease-in-out infinite;
}

.hero-symbol {
  animation:
    vertex-symbol-in 760ms cubic-bezier(.2, .75, .25, 1) both,
    vertex-float 5s ease-in-out 900ms infinite,
    vertex-hero-breathe 4.4s ease-in-out 900ms infinite;
}

.workspace.workspace-enter {
  animation: vertex-panel-enter 520ms cubic-bezier(.2, .8, .25, 1) both;
}

.camera-card,
.result-card,
.input-card,
.avatar-card,
.download-hub,
.technology-note,
.how-it-works {
  position: relative;
}

.camera-card::after,
.result-card::after,
.input-card::after,
.avatar-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 22%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.camera-card:hover::after,
.result-card:hover::after,
.input-card:hover::after,
.avatar-card:hover::after {
  opacity: 1;
  animation: vertex-card-sheen 850ms ease-out both;
}

.camera-card > *,
.result-card > *,
.input-card > *,
.avatar-card > * {
  position: relative;
  z-index: 1;
}

.download-hub {
  margin: 8px 0 30px;
  padding: clamp(26px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 45%, var(--accent-glow), transparent 30%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.download-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--brand-end) 8%, transparent), transparent 70%);
  transform: translateX(-100%);
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.download-hub.is-revealed::before {
  transform: translateX(100%);
}

.download-hub__visual {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.download-phone {
  position: relative;
  z-index: 2;
  width: 176px;
  height: 306px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 8px solid var(--deep-surface);
  border-radius: 34px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 38%, var(--accent-glow), transparent 38%),
    var(--surface);
  box-shadow: 0 30px 70px color-mix(in srgb, var(--brand-start) 22%, transparent);
  animation: vertex-phone-float 5.4s ease-in-out infinite;
}

.download-phone__speaker {
  position: absolute;
  top: 13px;
  width: 42px;
  height: 5px;
  border-radius: 10px;
  background: var(--line);
}

.download-phone svg {
  width: 72px;
  height: 68px;
  filter: drop-shadow(0 10px 18px var(--accent-glow));
}

.download-phone strong {
  width: 82%;
  min-height: 3.8em;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.62rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-wrap: balance;
  text-transform: uppercase;
}

.download-hub__content {
  position: relative;
  z-index: 2;
}

.download-hub h1 {
  max-width: 650px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4.7vw, 3.65rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.download-hub__lead {
  max-width: 680px;
  margin: 18px 0 24px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.download-action {
  min-height: 76px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 16px;
  text-align: left;
  text-decoration: none;
}

.download-action > span:last-child,
.download-action strong,
.download-action small {
  display: block;
}

.download-action strong {
  font-size: 0.88rem;
}

.download-action small {
  margin-top: 3px;
  color: inherit;
  opacity: 0.72;
  font-size: 0.67rem;
}

.download-action__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand-start);
  background: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.download-action__icon--ios {
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}

.download-action.is-unavailable {
  cursor: not-allowed;
  filter: saturate(0.2);
  opacity: 0.64;
}

.download-action.is-ready {
  border-color: var(--brand-end);
  animation: vertex-download-pulse 2.8s ease-in-out infinite;
}

.download-action.is-busy {
  cursor: progress;
  opacity: 0.72;
}

.motion-ready [data-motion] {
  opacity: 0;
  transition:
    opacity 720ms cubic-bezier(.2, .75, .25, 1),
    transform 720ms cubic-bezier(.2, .75, .25, 1),
    filter 720ms ease;
}

.motion-ready [data-motion="rise"] { transform: translateY(38px); }
.motion-ready [data-motion="slide-left"] { transform: translateX(-46px); }
.motion-ready [data-motion="slide-right"] { transform: translateX(46px); }
.motion-ready [data-motion="zoom"] { transform: scale(0.92); filter: blur(5px); }
.motion-ready [data-motion="flip"] { transform: perspective(900px) rotateX(8deg) translateY(24px); transform-origin: top; }
.motion-ready [data-motion="soft"] { transform: translateY(14px); filter: blur(3px); }

.motion-ready [data-motion].is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: var(--motion-delay, 0ms);
}

.theme-transition :is(
  body,
  .site-header,
  .hero,
  .mode-switch,
  .camera-card,
  .result-card,
  .input-card,
  .avatar-card,
  .download-hub,
  .download-phone,
  .technology-note,
  .how-it-works,
  .vlibras-chat,
  .cookie-consent
) {
  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease;
}

::view-transition-old(root) {
  animation: vertex-theme-fade-out 180ms ease-out both;
}

::view-transition-new(root) {
  animation: vertex-theme-fade-in 280ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes vertex-theme-fade-out {
  to { opacity: 0; }
}

@keyframes vertex-theme-fade-in {
  from { opacity: 0; }
}

@media (max-width: 820px) {
  .download-hub {
    grid-template-columns: 1fr;
  }

  .download-hub__visual {
    min-height: 280px;
  }

  .download-phone {
    width: 154px;
    height: 266px;
  }
}

@media (max-width: 860px) {
  .download-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .download-hub {
    padding: 24px 18px;
  }

  .download-hub__visual {
    min-height: 245px;
  }

  .download-phone {
    width: 134px;
    height: 232px;
  }

}

@media (hover: none) {
  .camera-card:hover::after,
  .result-card:hover::after,
  .input-card:hover::after,
  .avatar-card:hover::after {
    animation: none;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  body::after,
  .download-phone,
  .download-action.is-ready,
  .technology-note__impact {
    animation: none !important;
  }

  .theme-transition :is(
    body,
    .site-header,
    .hero,
    .mode-switch,
    .camera-card,
    .result-card,
    .input-card,
    .avatar-card,
    .download-hub,
    .download-phone,
    .technology-note,
    .how-it-works,
    .vlibras-chat,
    .cookie-consent
  ) {
    transition: none !important;
  }

  .motion-ready [data-motion] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.avatar-team__names {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.avatar-team__names span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(4, 11, 28, 0.54);
  backdrop-filter: blur(8px);
  font-size: 0.62rem;
  font-weight: 800;
}

.local-model {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid color-mix(in srgb, var(--brand-end) 35%, var(--line));
  border-left-width: 1px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand-end) 13%, transparent), transparent 46%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--brand-start) 8%), var(--surface));
  box-shadow: 0 18px 42px rgba(6, 35, 71, 0.09);
}

.local-model::before {
  position: absolute;
  content: "";
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--brand-start), var(--brand-end));
}

.local-model.is-highlighted {
  box-shadow: 0 0 0 3px var(--accent-glow), 0 18px 42px rgba(6, 35, 71, 0.13);
}

.local-model__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.local-model__heading span,
.local-model__heading strong {
  display: block;
}

.ai-status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.local-model__heading .ai-status-line span {
  margin: 0;
}

.local-model__heading .ai-live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #38d59f;
  box-shadow: 0 0 0 5px rgba(56, 213, 159, 0.12);
  animation: ai-live-pulse 2.2s ease-in-out infinite;
}

.local-model__heading .ai-status-line span:last-child {
  color: var(--brand-end);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.local-model__heading strong {
  font-size: 0.84rem;
}

.ai-model-copy {
  max-width: 62ch;
  margin-top: 12px !important;
  color: var(--ink-soft) !important;
}

.pretrained-model-state {
  margin-top: 13px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-end) 22%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-end) 7%, var(--surface));
}

.pretrained-model-state__signal {
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #8a98aa;
  box-shadow: 0 0 0 4px rgba(138, 152, 170, 0.14);
}

.pretrained-model-state > div,
.pretrained-model-state span,
.pretrained-model-state strong,
.pretrained-model-state small {
  min-width: 0;
  display: block;
}

.pretrained-model-state span:not(.pretrained-model-state__signal) {
  margin-bottom: 2px;
  color: var(--ink-muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pretrained-model-state strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.pretrained-model-state small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  line-height: 1.45;
}

.pretrained-model-state[data-state="checking"] .pretrained-model-state__signal,
.local-model[data-model-state="checking"] .ai-live-dot {
  background: #e7a93d;
  box-shadow: 0 0 0 5px rgba(231, 169, 61, 0.14);
  animation: ai-live-pulse 1.1s ease-in-out infinite;
}

.pretrained-model-state[data-state="configured"] .pretrained-model-state__signal,
.local-model[data-model-state="configured"] .ai-live-dot {
  background: var(--brand-end);
  box-shadow: 0 0 0 5px var(--accent-glow);
  animation: none;
}

.pretrained-model-state[data-state="active"] .pretrained-model-state__signal,
.local-model[data-model-state="active"] .ai-live-dot {
  background: #38d59f;
  box-shadow: 0 0 0 5px rgba(56, 213, 159, 0.14);
  animation: ai-live-pulse 2.2s ease-in-out infinite;
}

.pretrained-model-state[data-state="unavailable"] .pretrained-model-state__signal,
.local-model[data-model-state="unavailable"] .ai-live-dot {
  background: #e65368;
  box-shadow: 0 0 0 5px rgba(230, 83, 104, 0.14);
  animation: none;
}

.local-model[data-model-state="waiting"] .ai-live-dot {
  background: #8a98aa;
  box-shadow: 0 0 0 5px rgba(138, 152, 170, 0.12);
  animation: none;
}

.ai-metrics {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-metrics div {
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--brand-end) 16%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.ai-metrics span,
.ai-metrics strong {
  display: block;
}

.ai-metrics span {
  margin-bottom: 4px;
  color: var(--ink-muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-metrics strong {
  color: var(--ink);
  font-size: 1rem;
}

.ai-pipeline {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-pipeline span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 100px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--brand-end) 8%, var(--surface));
  font-size: 0.62rem;
  font-weight: 750;
}

.ai-pipeline b {
  color: var(--brand-end);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
}

.ai-dataset-actions {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-dataset-actions button {
  min-height: 34px;
  padding: 0 4px;
  font-size: 0.67rem;
}

.ai-dataset-note {
  margin-top: 8px !important;
  color: var(--ink-muted) !important;
  font-size: 0.66rem !important;
  line-height: 1.5 !important;
}

.ai-dataset-note a {
  color: var(--brand-end);
  font-weight: 800;
  text-underline-offset: 2px;
}

.secondary-button--compact {
  flex: none;
  min-height: 38px;
  padding-inline: 12px;
  font-size: 0.72rem;
}

.training-panel {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(var(--surface-rgb), 0.66);
}

.training-panel label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.training-panel input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.82rem;
}

.training-panel input:focus {
  border-color: var(--brand-end);
  box-shadow: 0 0 0 4px var(--accent-glow);
  outline: 0;
}

.training-feedback {
  min-height: 1.35em;
  margin-top: 9px !important;
}

.training-feedback.is-recording {
  color: var(--brand-end) !important;
  font-weight: 800;
}

.training-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.training-actions button {
  min-height: 40px;
  font-size: 0.72rem;
}

.trained-gestures {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trained-gestures:empty {
  display: none;
}

.trained-gesture {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: rgba(var(--surface-rgb), 0.7);
  font-size: 0.66rem;
  font-weight: 800;
}

.trained-gesture button {
  width: 20px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface-soft);
  cursor: pointer;
  line-height: 1;
}

/* O painel oficial de avatar ocupa parte da tela. No modo de câmera ele fica
   recolhido para não bloquear os controles do reconhecedor local. */
body[data-translation-mode="sign-to-pt"] [vw-plugin-wrapper] {
  display: none !important;
}

@keyframes avatar-team-ready {
  50% { filter: saturate(1.12) brightness(1.08); }
}

@keyframes ai-live-pulse {
  50% { box-shadow: 0 0 0 8px rgba(56, 213, 159, 0.03); }
}

@keyframes vertex-symbol-in {
  from { opacity: 0; transform: translateY(-18px) scale(0.76) rotate(-7deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes vertex-float {
  50% { transform: translateY(-7px); }
}

@keyframes vertex-line-draw {
  from { stroke-dashoffset: 420; opacity: 0.2; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes vertex-content-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vertex-gradient-flow {
  to { background-position: 200% center; }
}

.hero-symbol {
  animation:
    vertex-symbol-in 760ms cubic-bezier(.2, .75, .25, 1) both,
    vertex-float 5s ease-in-out 900ms infinite,
    vertex-hero-breathe 4.4s ease-in-out 900ms infinite;
}

.hero-symbol .vertex-line {
  stroke-dasharray: 420;
  animation: vertex-line-draw 1.35s cubic-bezier(.2, .75, .25, 1) both;
}

.hero .eyebrow,
.hero h1,
.hero-copy,
.mode-switch,
.hero-proof {
  animation: vertex-content-in 720ms cubic-bezier(.2, .75, .25, 1) both;
}

.hero h1 { animation-delay: 90ms; }
.hero-copy { animation-delay: 170ms; }
.mode-switch { animation-delay: 250ms; }
.hero-proof { animation-delay: 330ms; }

.sign-catalog {
  margin-top: 28px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.sign-catalog__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sign-catalog__heading h2 { margin: 6px 0 0; font: 800 clamp(1.4rem, 3vw, 1.9rem)/1.2 "Manrope", sans-serif; }
.sign-catalog__total { display: grid; flex-shrink: 0; text-align: right; }
.sign-catalog__total strong { font: 800 clamp(1.9rem, 4vw, 2.8rem)/1.15 "Manrope", sans-serif; color: var(--ink); }
.sign-catalog__total span, .sign-catalog__copy, .sign-catalog__note { color: var(--ink-soft); }
.sign-catalog__copy { max-width: 84ch; margin: 20px 0; line-height: 1.65; }
.sign-catalog__controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr); gap: 16px; }
.sign-catalog__controls label { display: block; margin-bottom: 7px; font-size: .85rem; font-weight: 700; }
.sign-catalog__controls input, .sign-catalog__controls select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit;
}
.sign-catalog__controls input:focus-visible, .sign-catalog__controls select:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.sign-catalog__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 22px; }
.sign-catalog__toolbar p { flex: 1 1 380px; margin: 0; color: var(--ink-soft); font-size: .77rem; line-height: 1.6; }
.sign-catalog__toolbar button { padding: 8px 0; white-space: nowrap; font-size: .8rem; }
.sign-catalog__matches { margin: 0 0 12px; color: var(--ink-soft); font-size: .85rem; font-weight: 700; }
.sign-catalog__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.sign-catalog__item { display: flex; flex-direction: column; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.sign-catalog__item strong { font-size: .86rem; overflow-wrap: anywhere; }
.sign-catalog__item small { margin: 7px 0 10px; color: var(--ink-soft); font-size: .7rem; line-height: 1.5; }
.sign-catalog__item button { margin-top: auto; padding: 7px 0 0; font-size: .78rem; }
.sign-catalog__empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--ink-soft); background: var(--paper); border-radius: 14px; }
.sign-catalog__pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; }
.sign-catalog__pagination button { min-height: 42px; padding: 9px 16px; font-size: .83rem; }
.sign-catalog__pagination span { font-size: .82rem; color: var(--ink-soft); }
.sign-catalog__note { margin: 20px 0 0; font-size: .77rem; line-height: 1.6; }

@media (max-width: 760px) {
  .sign-catalog__results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sign-catalog__controls { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .sign-catalog__heading { align-items: start; gap: 14px; }
  .sign-catalog__heading h2 { font-size: 1.25rem; }
  .sign-catalog__total strong { font-size: 1.7rem; }
  .sign-catalog__total span { font-size: .65rem; }
  .sign-catalog__results { gap: 9px; }
  .sign-catalog__item { padding: 12px; }
  .sign-catalog__pagination { gap: 8px; }
  .sign-catalog__pagination button { padding: 9px 12px; }
  .sign-catalog__pagination span { font-size: .72rem; }
}

/* Official channels and support pages. */
.community-hub, .support-hub {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100dvh - 180px);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0 90px;
}
.community-hub__intro, .support-hub__intro { max-width: 760px; }
.community-hub__intro h1, .support-hub__intro h1 {
  max-width: 14ch;
  margin: 14px 0 20px;
  font: 800 clamp(2.5rem, 7vw, 5.8rem)/.96 "Manrope", sans-serif;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.community-hub__intro > p, .support-hub__intro > p {
  max-width: 65ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}
.community-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(36px, 6vw, 64px) 0 24px;
}
.community-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgb(9 32 53 / .08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.community-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -110px;
  border: 1px solid var(--brand-end);
  border-radius: 50%;
  opacity: .22;
}
.community-card:hover { transform: translateY(-5px); border-color: var(--brand-end); box-shadow: 0 28px 80px rgb(9 32 53 / .14); }
.community-card:focus-visible, .community-support-link:focus-visible, .support-actions a:focus-visible { outline: 3px solid var(--brand-end); outline-offset: 4px; }
.community-card__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--text-accent);
  background: var(--surface-soft);
  border-radius: 22px;
}
.community-card__icon svg { width: 40px; height: 40px; stroke: currentColor; stroke-width: 2; }
.community-card small, .community-card strong, .community-card em { display: block; overflow-wrap: anywhere; }
.community-card small { margin-bottom: 7px; color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.community-card strong { font: 800 clamp(1.15rem, 2.5vw, 1.65rem)/1.25 "Manrope", sans-serif; }
.community-card em { margin-top: 15px; color: var(--text-accent); font-size: .83rem; font-style: normal; font-weight: 800; }
.community-support-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; text-decoration: none; }

.support-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 42px);
  margin: clamp(36px, 6vw, 64px) 0 28px;
  padding: clamp(26px, 5vw, 52px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--brand-end)), var(--surface));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 24px 80px rgb(9 32 53 / .1);
}
.support-contact__mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: var(--text-accent);
  background: var(--surface-soft);
  border-radius: 28px;
}
.support-contact__mark svg { width: 58px; height: 58px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-contact h2 { margin: 6px 0 10px; font: 800 clamp(1.5rem, 3vw, 2.35rem)/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.support-contact p { max-width: 58ch; margin: 0; color: var(--ink-soft); line-height: 1.65; }
.support-actions { display: grid; gap: 10px; min-width: min(100%, 270px); }
.support-actions a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; text-align: center; text-decoration: none; }
.support-contact__privacy { grid-column: 2 / -1; color: var(--ink-soft); font-size: .75rem; line-height: 1.55; }
.support-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.support-tips article { min-height: 180px; padding: 26px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 22px; }
.support-tips span { color: var(--text-accent); font: 800 .75rem/1 "Manrope", sans-serif; letter-spacing: .1em; }
.support-tips h2 { margin: 22px 0 9px; font: 800 1.15rem/1.2 "Manrope", sans-serif; }
.support-tips p { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.6; }

@media (max-width: 860px) {
  .community-channels { grid-template-columns: minmax(0, 1fr); }
  .support-contact { grid-template-columns: auto minmax(0, 1fr); }
  .support-actions, .support-contact__privacy { grid-column: 1 / -1; }
  .support-tips { grid-template-columns: minmax(0, 1fr); }
  .support-tips article { min-height: auto; }
}

@media (max-width: 560px) {
  .community-hub, .support-hub { width: min(100% - 24px, 1180px); padding-top: 48px; }
  .community-hub__intro h1, .support-hub__intro h1 { font-size: clamp(2.2rem, 13vw, 3.8rem); }
  .community-card { align-items: flex-start; min-height: 0; padding: 22px; border-radius: 22px; }
  .community-card__icon { width: 58px; height: 58px; border-radius: 17px; }
  .community-card__icon svg { width: 32px; height: 32px; }
  .support-contact { grid-template-columns: minmax(0, 1fr); padding: 24px; border-radius: 24px; }
  .support-contact__mark { width: 64px; height: 64px; border-radius: 19px; }
  .support-contact__mark svg { width: 42px; height: 42px; }
  .support-actions, .support-contact__privacy { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .community-card { transition: none; }
}

.brand-mark {
  transition: transform 260ms cubic-bezier(.2, .75, .25, 1), filter 260ms ease;
}

.brand:hover .brand-mark {
  transform: translateY(-3px) rotate(-4deg) scale(1.05);
  filter: drop-shadow(0 12px 20px var(--accent-glow));
}

.primary-button,
.mode-button.is-active {
  background-size: 200% auto;
}

.primary-button:hover:not(:disabled),
.mode-button.is-active:hover {
  animation: vertex-gradient-flow 1.4s linear infinite;
}

.mode-button {
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mode-button:hover {
  transform: translateY(-2px);
}

.motion-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 650ms cubic-bezier(.2, .75, .25, 1),
    transform 650ms cubic-bezier(.2, .75, .25, 1);
}

.motion-ready .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.motion-ready .how-it-works article:nth-child(2) { transition-delay: 70ms; }
.motion-ready .how-it-works article:nth-child(3) { transition-delay: 140ms; }
.motion-ready .how-it-works article:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

  .local-model__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .secondary-button--compact {
    width: 100%;
  }

  .training-actions button {
    flex: 1 1 100%;
  }

  .ai-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .ai-pipeline span {
    flex: 1 1 100%;
  }

  .avatar-stage--team {
    min-height: 315px;
  }

  .camera-permission {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .camera-permission .text-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .cookie-consent {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cookie-consent__actions {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .cookie-consent__actions button {
    flex: 1 1 150px;
  }
}

.tracking-options { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: .85rem 0; font-size: .85rem; }
.tracking-options label { font-weight: 600; }
.tracking-options select { max-width: 100%; border: 1px solid var(--line); border-radius: .65rem; padding: .55rem .75rem; color: inherit; background: var(--surface); font: inherit; }
#tracking-performance { flex-basis: 100%; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.tracking-options small { flex-basis: 100%; color: var(--ink-soft); line-height: 1.5; }

.mediapipe-demo {
  margin: 14px 0 2px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-end) 28%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, var(--brand-start));
}

.mediapipe-demo header,
.mediapipe-demo header > div {
  display: flex;
  align-items: center;
}

.mediapipe-demo header {
  justify-content: space-between;
  gap: 12px;
}

.mediapipe-demo header > div {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.mediapipe-demo__eyebrow {
  color: var(--ink-soft);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.mediapipe-demo__mode {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  font-size: .68rem;
  font-weight: 750;
  white-space: nowrap;
}

.mediapipe-demo ol {
  margin: 14px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}

.mediapipe-demo li {
  min-width: 0;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.mediapipe-demo li > span {
  width: 20px;
  height: 20px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: .68rem;
  font-weight: 850;
}

.mediapipe-demo li strong,
.mediapipe-demo li small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mediapipe-demo li strong { font-size: .73rem; }
.mediapipe-demo li small { color: var(--ink-soft); font-size: .66rem; }
.mediapipe-demo li[data-state="ready"] { border-color: color-mix(in srgb, var(--brand-start) 56%, var(--line)); }
.mediapipe-demo li[data-state="ready"] > span { color: var(--ink); background: var(--lime); }
.mediapipe-demo li[data-state="searching"] > span { animation: tracking-demo-pulse 1.1s ease-in-out infinite; }
.mediapipe-demo li[data-state="error"] > span { color: white; background: var(--danger); }

.mediapipe-demo p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.5;
}

.mediapipe-demo .text-button {
  margin-top: 10px;
  min-height: 38px;
  padding-inline: 0;
}

@keyframes tracking-demo-pulse {
  50% { transform: scale(.86); opacity: .55; }
}

@media (max-width: 480px) {
  .mediapipe-demo { padding: 14px; }
  .mediapipe-demo header { align-items: flex-start; flex-direction: column; }
  .mediapipe-demo ol { grid-template-columns: 1fr; }
  .mediapipe-demo li strong,
  .mediapipe-demo li small { white-space: normal; }
}
