@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");

:root {
  --font-sans: "Sora", system-ui, sans-serif;
  --bg: #f7f9ff;
  --bg-gradient-start: #f8fbff;
  --bg-gradient-end: #f4f0ff;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --surface-muted: #f1f4ff;
  --panel: var(--surface);
  --text: #11183f;
  --muted: #667199;
  --text-subtle: #8a93b5;
  --line: #dfe5f8;
  --border-soft: #edf0fb;
  --accent: #6675f6;
  --accent-hover: #5663e8;
  --accent-soft: #e9ecff;
  --accent-text: #ffffff;
  --danger: #b74b6d;
  --shadow-soft: 0 12px 30px rgb(74 91 180 / 0.08);
  --topbar-control-height: 46px;
  --app-min-height: 620px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgb(102 117 246 / 0.12), transparent 30%),
    radial-gradient(circle at 88% 4%, rgb(180 156 255 / 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg) 45%, var(--bg-gradient-end) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
}

body.landing-page {
  background:
    radial-gradient(circle at 10% 8%, rgb(102 117 246 / 0.1), transparent 28%),
    radial-gradient(circle at 88% 2%, rgb(180 156 255 / 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg) 46%, var(--bg-gradient-end) 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: var(--app-min-height);
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: filter 160ms ease, opacity 160ms ease;
}

.app-shell.is-locked {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(25 33 36 / 0.38);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgb(74 91 180 / 0.16);
}

.plan-modal-card {
  width: min(80vw, 1180px);
  max-height: min(86vh, 760px);
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-close-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.feature-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
}

.feature-mark.is-included {
  background: color-mix(in srgb, var(--accent), white 86%);
  color: var(--accent);
}

.feature-mark.is-not-included {
  color: var(--muted);
  font-size: 18px;
}

.plan-card-grid {
  overflow: auto;
}

.plan-comparison-table {
  width: 100%;
  min-width: 840px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.plan-comparison-table th,
.plan-comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.plan-comparison-table tr > :last-child {
  border-right: 0;
}

.plan-comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.plan-comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}

.plan-comparison-table thead th:first-child,
.plan-comparison-table tbody th {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.plan-comparison-table tbody td {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.plan-comparison-table .is-current-plan {
  background: color-mix(in srgb, var(--accent), white 93%);
  box-shadow: inset 0 3px 0 var(--accent);
}

.landing-plan-card.is-featured-plan {
  border-color: color-mix(in srgb, var(--accent), white 20%);
}

.plan-table-title {
  display: block;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.plan-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.billing-button.plan-choose-button {
  min-height: 42px;
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
  padding-inline: 14px;
  white-space: nowrap;
}

.current-plan-label {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.plan-feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.modal-card h2 {
  margin: 0;
  font-size: 22px;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.listen-stack {
  display: grid;
  min-width: 0;
}

.listen-control {
  position: relative;
  height: var(--topbar-control-height);
  display: grid;
  grid-template-columns: 188px 0 0 0;
  align-items: center;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgb(102 117 246 / 0.18);
  overflow: visible;
}

.listen-control.is-listening {
  grid-template-columns: 148px 62px 28px 34px;
  background: var(--danger);
}

.listen-main-button {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
}

.listen-control.is-listening .listen-main-button {
  border-radius: 12px 0 0 12px;
  background: transparent;
}

.mute-button {
  width: 0;
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
}

.listen-control.is-listening .mute-button {
  width: 62px;
}

.listen-control.is-listening .mute-button:hover,
.listen-control.is-listening .mute-button:focus-visible,
.listen-control.is-muted .mute-button {
  background: rgb(255 255 255 / 0.18);
  outline: none;
}

.mute-button[hidden] {
  display: block;
  visibility: hidden;
}

.inline-mic-meter {
  width: 0;
  height: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
}

.listen-control.is-listening .inline-mic-meter {
  width: 28px;
  opacity: 1;
}

.listen-control.is-muted .inline-mic-meter {
  opacity: 0.45;
}

#meterFill {
  --meter-level: 0;
  --meter-opacity: 0.35;
  width: 7px;
  height: 24px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.24);
  overflow: hidden;
}

#meterFill .voice-bar {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 0;
  border-radius: inherit;
  background: #fff;
  opacity: var(--meter-opacity);
  transform: scaleY(var(--meter-level));
  transform-origin: center bottom;
  transition: transform 70ms linear, opacity 70ms linear;
}

.mic-menu-button {
  width: 0;
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  border: 0;
  border-radius: 0 12px 12px 0;
  padding: 0;
  background: transparent;
  color: var(--accent-text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
}

.listen-control.is-listening .mic-menu-button {
  width: 34px;
}

.mic-menu-button[hidden] {
  display: block;
  visibility: hidden;
}

.mic-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  max-height: min(320px, 60vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgb(74 91 180 / 0.14);
}

.mic-menu[hidden] {
  display: none;
}

.mic-menu-option {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.mic-menu-option:hover,
.mic-menu-option[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent), transparent 88%);
}

.language-menu-button {
  position: relative;
  height: 34px;
  width: 34px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.language-menu-button span {
  position: relative;
  width: 15px;
  height: 15px;
}

.language-menu-button span::before,
.language-menu-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.language-menu-button span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.language-menu-button:hover,
.language-menu-button:focus-visible,
.language-menu-button[aria-expanded="true"] {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  outline: none;
}

.language-add-menu.is-pane-add .language-menu-button {
  width: 100%;
  min-width: 82px;
  height: 44px;
  grid-template-columns: auto auto auto;
  justify-content: center;
  padding: 0 10px;
}

.language-menu-add-label {
  font-size: 13px;
  font-weight: 600;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0;
  font-weight: 700;
}

h1 span {
  font-weight: 400;
}

.topbar p,
.panel-title span,
.placeholder {
  color: var(--muted);
}

.status-pill {
  display: none;
}

.status-pill.live {
  color: var(--accent);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 650;
}

input[type="password"],
input[type="email"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 13px;
  background: var(--surface-soft);
}

.language-add-menu {
  position: relative;
  flex: 0 0 auto;
}

.language-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 40px));
  max-height: min(470px, 70vh);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgb(74 91 180 / 0.14);
  padding: 10px;
  transform: translateX(var(--language-popover-shift, 0));
}

.language-search {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 8px;
  outline: none;
}

.language-search:focus {
  border-color: color-mix(in srgb, var(--accent), white 30%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 85%);
}

.language-option-list {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
}

.language-option {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.language-option:hover,
.language-option:focus-visible {
  background: var(--surface-muted);
  outline: none;
}

.language-option.is-selected {
  background: var(--accent-soft);
  color: var(--accent);
}

.language-option.is-selected small {
  color: var(--accent);
}

.language-option:disabled {
  opacity: 0.45;
  cursor: default;
}

.language-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.language-empty-state {
  color: var(--muted);
  padding: 14px 10px;
  font-weight: 650;
}

.primary-button {
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  min-width: 0;
}

.secondary-button,
.icon-text-button {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.secondary-button:disabled,
.icon-text-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.danger-button {
  background: var(--danger);
}

.session-qr-button {
  width: var(--topbar-control-height);
  height: var(--topbar-control-height);
  min-height: var(--topbar-control-height);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.session-refresh-button {
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  min-width: 20px;
  min-height: var(--topbar-control-height);
}

.session-refresh-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.session-qr-button[hidden],
.session-refresh-button[hidden] {
  display: none;
}

.session-qr-button img {
  width: 34px;
  height: 34px;
  display: block;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(230px, 280px);
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
  transition: grid-template-columns 190ms ease, column-gap 190ms ease;
}

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

.sessions-column {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sessions-sidebar {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 150ms ease,
    transform 190ms ease,
    padding-inline 190ms ease,
    border-color 190ms ease,
    box-shadow 190ms ease;
}

.sessions-sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sessions-sidebar-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.sessions-sidebar-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.session-library-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  display: grid;
  align-content: start;
  gap: 3px;
}

.session-library-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.session-library-empty {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.session-library-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0;
  position: relative;
  display: block;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.session-library-item:hover,
.session-library-item:focus-within,
.session-library-item.is-active {
  background: var(--surface-soft);
  border-color: color-mix(in srgb, var(--accent), white 45%);
  outline: none;
}

.session-library-item.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.session-library-item.is-current {
  background: color-mix(in srgb, var(--accent-soft), transparent 28%);
  border-color: color-mix(in srgb, var(--accent), white 62%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.session-library-item.is-current.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), inset 3px 0 0 var(--accent);
}

.session-library-open {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 6px 72px 6px 10px;
  display: grid;
  gap: 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.session-library-open:focus-visible {
  outline: none;
}

.session-library-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.12;
}

.session-library-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
}

.session-library-item .session-duration {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 4px 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 120ms ease 90ms;
}

.session-delete-button {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  border: 1px solid color-mix(in srgb, #b3261e, white 58%);
  border-radius: 7px;
  padding: 5px 7px;
  background: #fff8f7;
  color: #9f1d17;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease 90ms;
}

.session-library-item:hover .session-delete-button {
  opacity: 1;
  pointer-events: auto;
}

.session-library-item:hover .session-duration,
.session-library-item:focus-within .session-duration {
  opacity: 0;
}

.session-library-item:focus-within .session-delete-button {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0ms;
}

.live-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

.right-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.side-widget {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.side-widget-header,
.side-stat-row,
.side-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.side-widget-header {
  margin: -14px -14px 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: var(--surface-muted);
}

.side-widget-header span {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.side-stat-row span,
.side-control-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.side-widget > strong {
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.side-stat-row b {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.side-link-button,
.side-icon-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.side-link-button {
  padding: 0 10px;
}

.side-icon-button {
  width: 32px;
  padding: 0;
}

.plan-usage-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.plan-usage-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.audience-side-widget .translation-qr-slot {
  justify-content: flex-start;
}

.audience-side-widget .original-qr-card {
  width: 100%;
}

.audience-side-widget .original-qr-controls {
  justify-content: start;
}

.audience-side-widget .session-qr-button {
  width: 112px;
  height: 112px;
  min-height: 112px;
}

.audience-side-widget .session-qr-button img {
  width: 92px;
  height: 92px;
}

.audience-link {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: left;
}

.display-side-widget .display-controls {
  display: grid;
  gap: 10px;
  justify-content: stretch;
}

.app-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  flex: 0 0 38px;
  min-height: 38px;
  padding-top: 6px;
}

.app-footer img {
  width: min(78px, 18vw);
  height: auto;
  display: block;
  opacity: 0.74;
}

.legal-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.legal-links a,
.legal-document a {
  color: var(--accent);
  text-decoration: none;
}

.legal-links a:hover,
.legal-document a:hover {
  text-decoration: underline;
}

.panel {
  min-height: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.translation-panel > .panel-title {
  min-height: 0;
  margin-bottom: 0;
}

.translation-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.translation-toolbar-slot {
  grid-area: 1 / 1;
  position: absolute;
  left: 0;
  right: 0;
  top: -54px;
  height: 42px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.translation-panel {
  grid-area: 1 / 1;
}

.display-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toggle-control {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 7px !important;
  min-height: 34px;
}

.toggle-control input {
  accent-color: var(--accent);
}

.segmented-control {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
}

.segmented-control button {
  width: 38px;
  height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  appearance: none;
  display: grid;
  place-items: center;
  padding: 0 2px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button.is-active {
  background: var(--accent);
  color: var(--accent-text);
}

.segmented-control button:disabled {
  opacity: 0.4;
  cursor: default;
}

.text-size-control button {
  font-weight: 800;
}

.contrast-icon {
  width: 19px;
  height: 19px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-size-control button {
  font-size: 20px;
}

.translation-card .caption-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  min-height: 0;
  padding-right: 4px;
}

.translation-card .caption-stack::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.translation-card p {
  font-size: clamp(21px, calc(var(--card-font-scale, 1) * 3vw), 44px);
  line-height: 1.12;
  font-weight: 430;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: pretty;
  word-break: normal;
}

.translation-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
}

.translation-qr-slot {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.translation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  pointer-events: auto;
}

.translation-language-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.translation-language-controls h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.transcript-download-actions {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.transcript-download-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.transcript-download-link:disabled {
  cursor: default;
  opacity: 0.55;
}

.selected-language-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.selected-language-pill {
  min-height: 34px;
  max-width: 180px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 46%);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-language-remove {
  position: relative;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  background: color-mix(in srgb, var(--accent), white 82%);
  color: var(--accent);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.selected-language-remove::before,
.selected-language-remove::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.selected-language-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.selected-language-remove:disabled {
  opacity: 0.35;
  cursor: default;
}

.translation-target-grid {
  display: block;
  min-height: 0;
  overflow: visible;
}

.translation-target-area {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.translation-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  min-height: 0;
  flex-direction: column;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
}

.target-card {
  position: relative;
  flex: 1;
  padding: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.target-card > .pop-button {
  position: sticky;
  top: 10px;
  z-index: 5;
  margin: 10px 10px -48px auto;
  width: 38px;
  min-height: 38px;
}

.translation-column-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: min(2vw, 28px);
  overflow: visible;
  padding: 14px 58px 14px 14px;
  transition: grid-template-columns 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.translation-column-grid.target-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.translation-column-grid.target-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.translation-column-grid.target-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.translation-column-grid.target-count-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.translation-column-grid.target-count-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.translation-column-grid.target-count-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.translation-column-grid.target-count-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.translation-column-grid.target-count-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.translation-column-grid.target-count-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }

.translation-column {
  min-width: 0;
  min-height: 0;
  padding: 8px;
  margin: -8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: background 120ms ease;
}

.translation-column:hover,
.translation-column:focus-within {
  background: var(--surface-muted);
}

.translation-column header {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.target-card .caption-stack {
  overflow-y: auto;
  padding-right: 0;
}

.target-card .caption-stack > :first-child {
  margin-top: auto;
}

.target-card .caption-stack::after {
  content: "";
  flex: 0 0 28px;
}

.translation-column header h3 {
  margin: 0;
}

.translation-column-copy {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}

.translation-column:hover .translation-column-copy,
.translation-column:focus-within .translation-column-copy,
.translation-column-copy.is-copied {
  opacity: 1;
}

.translation-column-copy:hover,
.translation-column-copy:focus-visible {
  background: color-mix(in srgb, var(--line), transparent 45%);
  color: var(--text);
  outline: none;
}

.translation-column-copy svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-card {
  background: color-mix(in srgb, var(--surface-soft), var(--surface-muted) 34%);
  overflow-y: hidden;
  overflow-x: hidden;
}

.original-qr-card {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

.original-qr-controls {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 6px;
}

.original-qr-button {
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 4px;
}

.original-qr-button img {
  width: 100%;
  height: 100%;
}

.original-qr-refresh {
  min-height: 36px;
  align-self: center;
}

.qr-panel-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.source-card .caption-stack {
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

.source-card p {
  font-size: clamp(17px, calc(var(--card-font-scale, 1) * 2vw), 32px);
  color: var(--text);
  font-weight: 430;
}

.translation-grid[data-contrast="light"] .translation-card {
  background: var(--surface-soft);
}

.translation-grid[data-contrast="light"] .source-card {
  background: color-mix(in srgb, var(--surface-soft), var(--bg) 44%);
}

.translation-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.translation-card header h3 {
  margin: 0;
  font-weight: 700;
}

.pane-subtitle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.translation-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.translation-card-pop,
.translation-card-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--surface-muted);
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.translation-card-pop:hover,
.translation-card-pop:focus-visible {
  color: var(--accent);
  outline: none;
}

.translation-card-close:hover,
.translation-card-close:focus-visible {
  color: var(--danger);
  outline: none;
}

.translation-card-close:disabled {
  opacity: 0.35;
  cursor: default;
}

.pop-button {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.pop-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.caption-line {
  animation: caption-rise 160ms linear;
}

@keyframes caption-rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.display-body {
  --display-bg: #090909;
  --display-text: #fff6df;
  --display-muted: #b5aaa0;
  background: var(--display-bg);
  color: var(--display-text);
  overflow: hidden;
}

.display-body[data-contrast="light"] {
  --display-bg: #f8f7f2;
  --display-text: #101414;
  --display-muted: #546061;
}

.display-fullscreen-button {
  position: fixed;
  z-index: 20;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--display-muted), transparent 45%);
  border-radius: 12px;
  background: color-mix(in srgb, var(--display-bg), transparent 18%);
  color: var(--display-text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  opacity: 0.42;
  transition: opacity 140ms ease, background 140ms ease;
}

.display-fullscreen-button:hover,
.display-fullscreen-button:focus-visible,
.display-fullscreen-button.is-fullscreen {
  opacity: 1;
  outline: none;
}

.display-brand {
  position: fixed;
  left: clamp(18px, 2.2vw, 34px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 15;
  margin: 0;
  color: var(--display-muted);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 520;
  letter-spacing: 0;
  opacity: 0.72;
  pointer-events: none;
}

.display-brand strong {
  color: var(--display-text);
  font-weight: 700;
}

.projector-root {
  height: 100vh;
  padding: min(5vw, 72px);
}

.projector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: min(3vw, 44px);
}

.projector-with-source {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
}

.projector-target-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: min(3vw, 44px);
  min-height: 0;
}

.projector-with-source.target-count-2 .projector-target-grid,
.projector-with-source.target-count-3 .projector-target-grid,
.projector-with-source.target-count-4 .projector-target-grid,
.projector-with-source.target-count-5 .projector-target-grid,
.projector-with-source.target-count-6 .projector-target-grid,
.projector-with-source.target-count-7 .projector-target-grid,
.projector-with-source.target-count-8 .projector-target-grid,
.projector-with-source.target-count-9 .projector-target-grid,
.projector-with-source.target-count-10 .projector-target-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.projector-with-source.target-count-3 .projector-target-grid,
.projector-with-source.target-count-4 .projector-target-grid,
.projector-with-source.target-count-5 .projector-target-grid,
.projector-with-source.target-count-6 .projector-target-grid,
.projector-with-source.target-count-7 .projector-target-grid,
.projector-with-source.target-count-8 .projector-target-grid,
.projector-with-source.target-count-9 .projector-target-grid,
.projector-with-source.target-count-10 .projector-target-grid {
  grid-auto-rows: minmax(0, 1fr);
}

.projector-root:not(.projector-grid) .projector-column,
.projector-root > .placeholder {
  height: 100%;
}

.projector-column {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.projector-column h2 {
  margin: 0 0 min(2vw, 24px);
  color: var(--display-muted);
  font-size: clamp(22px, 2.2vw, 42px);
}

.projector-feed {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: min(2.2vw, 22px);
  overflow-y: auto;
  overflow-anchor: none;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projector-feed::-webkit-scrollbar {
  display: none;
}

.projector-feed > :first-child {
  margin-top: auto;
}

.projector-feed::after {
  content: "";
  flex: 0 0 clamp(42px, 7vh, 96px);
}

.projector-feed p {
  margin: 0;
  color: var(--display-text);
  font-size: clamp(34px, calc(var(--font-scale, 1) * 7vw), 118px);
  line-height: 1.06;
  font-weight: 760;
  letter-spacing: 0;
}

.projector-feed .placeholder {
  color: var(--display-muted);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(247 249 255 / 0.62);
}

.auth-overlay[hidden] {
  display: none;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgb(74 91 180 / 0.16);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.account-summary {
  position: relative;
  display: flex;
  align-items: center;
}

.account-summary[hidden] {
  display: none;
}

.account-menu-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--line), var(--text) 8%);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.account-menu-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-button span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 15;
  width: min(280px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgb(74 91 180 / 0.14);
}

.account-menu[hidden] {
  display: none;
}

.account-menu-header {
  display: grid;
  gap: 2px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--line);
}

.account-menu-header strong,
.account-menu-header span,
.account-menu-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-header strong {
  font-size: 14px;
}

.account-menu-header span,
.account-menu-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-menu-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.billing-actions {
  display: grid;
  gap: 8px;
  padding: 12px 4px 2px;
}

.billing-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.billing-button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.billing-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.account-menu-signout {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.provider-buttons {
  display: grid;
  gap: 8px;
}

.auth-tabs button,
.provider-buttons button,
.link-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.provider-buttons button {
  min-height: var(--topbar-control-height);
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  justify-items: center;
  width: 100%;
  padding: 0 14px;
}

.provider-logo {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.google-logo {
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.apple-logo svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: #111;
}

.auth-tabs button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
}

.forgot-password-button {
  justify-self: start;
  color: color-mix(in srgb, var(--muted), transparent 12%);
  font-size: 12px;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.auth-footer-logo {
  justify-self: center;
  width: min(116px, 42vw);
  height: auto;
  margin-top: 8px;
  opacity: 0.82;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}

.remember-option input {
  accent-color: var(--accent);
}

.legal-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.legal-acceptance[hidden] {
  display: none;
}

.legal-acceptance input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.legal-acceptance a {
  color: var(--accent);
  text-decoration: none;
}

.legal-acceptance a:hover {
  text-decoration: underline;
}

.auth-status {
  min-height: 20px;
  color: var(--danger);
  font-size: 14px;
}

.legal-page {
  min-height: 100vh;
}

.legal-document {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
}

.legal-home-link img {
  width: 128px;
  height: auto;
  display: block;
}

.legal-document h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
}

.legal-updated {
  margin: 12px 0 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.legal-document h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.legal-document p {
  margin: 0;
  color: color-mix(in srgb, var(--text), var(--muted) 26%);
  font-size: 16px;
  line-height: 1.6;
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 64px);
  background: rgb(248 251 255 / 0.82);
  border-bottom: 1px solid rgb(102 117 246 / 0.11);
  backdrop-filter: blur(18px);
}

.landing-brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.landing-nav-links,
.landing-nav-actions,
.hero-actions,
.hero-proof,
.landing-footer nav {
  display: flex;
  align-items: center;
}

.landing-nav-links {
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.landing-nav-actions {
  justify-content: flex-end;
  gap: 10px;
}

.landing-login {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.landing-button,
.landing-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
}

.landing-page .landing-button {
  padding: 0 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgb(102 117 246 / 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-button.small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}

.landing-nav .landing-button.small {
  color: #fff;
}

.landing-page .landing-button:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 18px 42px rgb(102 117 246 / 0.28);
}

.landing-secondary {
  padding: 0 4px;
  color: color-mix(in srgb, var(--accent), var(--text) 18%);
}

.landing-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  justify-content: start;
  gap: clamp(24px, 4vw, 54px);
  padding: 120px clamp(18px, 5vw, 76px) 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgb(102 117 246 / 0.14), transparent 32%),
    radial-gradient(circle at 78% 12%, rgb(180 156 255 / 0.2), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #f7f9ff 48%, #f4f0ff 100%);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: transparent;
  perspective: 1200px;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  content: "";
  inset: -9% -6% -9% -18%;
  background: url("/product-preview-live-ui.png") 78% 54% / cover no-repeat;
  transform: perspective(1200px) rotateY(-9deg) rotateX(1.5deg) translate3d(6%, 4%, 0) scale(1.09);
  transform-origin: 86% 48%;
  opacity: 0.18;
}

.hero-media::after {
  filter: blur(5px);
  opacity: 0.22;
  mask-image: radial-gradient(circle at 76% 42%, transparent 0 23%, rgb(0 0 0 / 0.28) 38%, #000 70%);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgb(248 251 255 / 0.78) 0%, rgb(248 251 255 / 0.62) 38%, rgb(248 251 255 / 0.34) 66%, rgb(248 251 255 / 0.08) 100%),
    radial-gradient(ellipse at 20% 76%, rgb(233 236 255 / 0.42) 0%, rgb(233 236 255 / 0.2) 44%, transparent 76%),
    linear-gradient(180deg, transparent 0%, rgb(244 240 255 / 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  color: var(--text);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 700;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

.hero-copy strong {
  color: var(--text);
  font-weight: 700;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.hero-proof {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgb(255 255 255 / 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-demo {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  gap: 14px;
  margin-top: 72px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  background: rgb(9 22 19 / 0.92);
  color: #fff;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.28);
  backdrop-filter: blur(18px);
}

.hero-animation-window {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  margin: 58px 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 24px 70px rgb(74 91 180 / 0.16);
}

.hero-animation-window iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}

.demo-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.demo-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-explainer {
  width: min(390px, 100%);
  margin: 0;
  color: rgb(255 255 255 / 0.86);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.demo-explainer[hidden] {
  display: none;
}

.demo-panes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  height: clamp(178px, 24vh, 250px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.09);
}

.demo-panes[hidden] {
  display: none;
}

.demo-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
}

.demo-pane + .demo-pane {
  border-left: 1px solid rgb(255 255 255 / 0.14);
}

.demo-pane h3 {
  margin: 0;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.demo-pane-lines {
  position: relative;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  scrollbar-width: none;
}

.demo-pane-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  transition: transform 360ms linear;
  will-change: transform;
}

.demo-pane-lines::-webkit-scrollbar {
  display: none;
}

.demo-pane-lines p {
  margin: 0;
}

.demo-button {
  min-height: 58px;
  border-radius: 999px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.2);
}

.demo-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.demo-button[hidden] {
  display: none;
}

.demo-control.is-live .demo-button {
  border-radius: 999px 0 0 999px;
  box-shadow: none;
}

.demo-control.is-live .demo-mic-meter {
  width: 36px;
  min-height: 58px;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
  opacity: 1;
}

#demoMeterFill {
  --meter-level: 0;
  --meter-opacity: 0.35;
  width: 7px;
  height: 28px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.24);
  overflow: hidden;
}

#demoMeterFill .voice-bar {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 0;
  border-radius: inherit;
  background: #fff;
  opacity: var(--meter-opacity);
  transform: scaleY(var(--meter-level));
  transform-origin: bottom;
  transition: transform 70ms linear, opacity 70ms linear;
}

.demo-countdown {
  --demo-progress: 1;
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.demo-countdown svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.demo-countdown circle {
  fill: none;
  stroke-width: 5;
}

.demo-countdown-track {
  stroke: rgb(255 255 255 / 0.18);
}

.demo-countdown-ring {
  stroke: var(--accent-soft);
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: calc(113.1 * (1 - var(--demo-progress)));
  transition: stroke-dashoffset 120ms linear;
}

.demo-countdown[hidden],
.demo-mic-meter[hidden] {
  display: none;
}

.landing-section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 76px);
}

.section-copy {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-copy h2,
.visual-copy h2,
.landing-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 72px);
  background: linear-gradient(135deg, #f8fbff 0%, #f2f5ff 100%);
}

.intro-grid,
.feature-grid,
.testimonial-grid,
.plans-row {
  display: grid;
  gap: 16px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-grid article,
.feature-card,
.testimonial-grid blockquote,
.plans-row article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.76);
  box-shadow: var(--shadow-soft);
}

.intro-grid article {
  padding: 22px;
}

.intro-grid strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.intro-grid h3,
.feature-card h3,
.plans-row h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
}

.intro-grid p,
.feature-card p,
.visual-copy p,
.plans-row p,
.landing-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-section {
  background: var(--surface-soft);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent), var(--line) 34%);
  box-shadow: 0 18px 45px rgb(74 91 180 / 0.12);
}

.feature-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 46% 36%, rgb(255 255 255 / 0.9), transparent 46%),
    linear-gradient(145deg, #fbfbff 0%, #f1f0ff 100%);
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.82),
    0 14px 32px rgb(74 91 180 / 0.1);
}

.feature-icon svg {
  width: 60px;
  height: 60px;
  display: block;
  overflow: visible;
}

.feature-icon img {
  width: 68px;
  height: 68px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgb(102 117 246 / 0.2));
}

.feature-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 7px rgb(102 117 246 / 0.2));
}

.feature-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  filter: drop-shadow(0 4px 7px rgb(102 117 246 / 0.2));
}

.feature-icon rect {
  filter: none;
}

.icon-qr svg {
  width: 72px;
  height: 72px;
}

.icon-qr .qr-corners {
  stroke: currentColor;
  stroke-width: 7;
}

.icon-qr .qr-finder {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
}

.icon-qr .qr-dot,
.icon-qr .qr-module {
  fill: currentColor;
  stroke: none;
}

.icon-rocket path:nth-child(3) {
  stroke-width: 6;
}

.icon-rocket svg {
  width: 68px;
  height: 68px;
}

.icon-rocket path,
.icon-rocket circle {
  stroke-width: 7;
}

.icon-rocket path:nth-child(5) {
  stroke-width: 7.5;
}


.visual-proof {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  background: linear-gradient(135deg, #f4f7ff 0%, #f4f0ff 100%);
}

.visual-copy p:not(.section-kicker) {
  margin-top: 20px;
  font-size: 18px;
}

.product-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px rgb(74 91 180 / 0.16);
}

.product-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.testimonials {
  background: var(--bg);
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid blockquote {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 26px;
}

.testimonial-grid p {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.42;
}

.testimonial-grid cite {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.plans-section {
  background:
    radial-gradient(circle at 18% 0%, rgb(102 117 246 / 0.2), transparent 34%),
    linear-gradient(135deg, #11183f 0%, #20275f 58%, #2b2869 100%);
  color: #fff;
}

.plans-section .section-copy h2 {
  color: #fff;
}

.faq-section {
  background: var(--surface-soft);
}

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

.faq-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.plans-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plans-row article {
  min-height: 360px;
  padding: 26px;
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.16);
  box-shadow: 0 18px 44px rgb(8 13 46 / 0.18);
}

.landing-plan-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
}

.landing-plan-header {
  display: grid;
  gap: 10px;
}

.plans-row h3 {
  margin: 0;
  color: #fff;
}

.plans-row p {
  margin: 0;
  color: rgb(255 255 255 / 0.68);
}

.landing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.landing-plan-price strong {
  color: #dfe4ff;
  font-size: 34px;
  line-height: 1.1;
}

.landing-plan-price span {
  color: rgb(255 255 255 / 0.58);
  font-size: 15px;
  font-weight: 500;
}

.landing-plan-features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  list-style: none;
}

.landing-plan-features li {
  position: relative;
  padding-left: 22px;
  color: rgb(255 255 255 / 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.landing-plan-features li::before {
  position: absolute;
  left: 0;
  content: "+";
  color: #dfe4ff;
  font-weight: 700;
}

.landing-plan-features li.is-muted {
  color: rgb(255 255 255 / 0.42);
}

.landing-plan-features li.is-muted::before {
  content: "-";
  color: rgb(255 255 255 / 0.36);
}

.landing-cta {
  margin: 0;
  padding: clamp(78px, 11vw, 136px) clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 50% 0%, rgb(102 117 246 / 0.14), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #f4f0ff 100%);
  text-align: center;
}

.handwritten-underline {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.handwritten-underline::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.1em;
  bottom: -0.03em;
  z-index: -1;
  height: 0.16em;
  border-radius: 999px;
  background: linear-gradient(90deg, #6675f6 0%, #9a8cff 50%, #c8bfff 100%);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.landing-cta p {
  width: min(620px, 100%);
  margin: 18px auto 28px;
  font-size: 18px;
}

.landing-footer {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 24px clamp(18px, 5vw, 76px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.landing-footer div {
  display: grid;
  gap: 3px;
}

.landing-footer strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.landing-footer span,
.landing-footer nav {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.landing-footer nav {
  gap: 14px;
}

.landing-footer-logo {
  width: min(96px, 20vw);
  height: auto;
  display: block;
  opacity: 0.88;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes hero-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-10px); }
}

@media (max-width: 1060px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .hero-demo,
  .hero-animation-window {
    width: min(760px, 100%);
  }

  .hero-demo,
  .hero-animation-window {
    margin-top: 0;
  }
}

@media (orientation: portrait) and (max-width: 1100px) {
  .landing-hero {
    align-items: center;
    min-height: 86svh;
    padding-top: clamp(96px, 10svh, 130px);
    padding-bottom: clamp(48px, 8svh, 88px);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(248 251 255 / 0.82) 0%, rgb(248 251 255 / 0.68) 52%, rgb(248 251 255 / 0.44) 84%, rgb(248 251 255 / 0.24) 100%),
      radial-gradient(ellipse at 24% 66%, rgb(233 236 255 / 0.46) 0%, rgb(233 236 255 / 0.24) 42%, transparent 82%),
      linear-gradient(180deg, rgb(248 251 255 / 0.06) 0%, transparent 28%, rgb(244 240 255 / 0.2) 100%);
  }
}

.qr-popup-body,
.mobile-body {
  background: var(--bg);
}

.qr-popup {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(12px, 2.4vmin, 28px);
}

.qr-popup-content {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-block: auto;
  min-height: 0;
}

.mobile-header h1 {
  font-size: 34px;
}

.qr-popup img {
  width: var(--qr-popup-size, min(86vw, 70vh));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 92px);
  aspect-ratio: 1;
  padding: clamp(8px, 2vmin, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-popup p {
  max-width: min(720px, calc(100vw - 24px));
  color: var(--muted);
  font-size: clamp(11px, 1.7vmin, 14px);
  text-align: left;
  overflow-wrap: anywhere;
}

.qr-popup-brand {
  margin: 0;
}

.qr-popup-brand strong {
  color: var(--text);
  font-weight: 900;
}

.mobile-shell {
  height: var(--mobile-viewport-height, 100svh);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.mobile-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-header h1 {
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.mobile-header h1 strong {
  font-weight: 900;
}

.mobile-header h1 span {
  font-weight: 500;
}

.mobile-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.mobile-status {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}

.mobile-original-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.mobile-audio-toggle {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-audio-toggle.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.mobile-audio-toggle[hidden] {
  display: none;
}

.mobile-original-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.mobile-header select {
  width: min(48vw, 180px);
  padding: 10px 12px;
  font-weight: 750;
}

.mobile-caption-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-caption-pane {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.mobile-source-pane {
  flex: 0 0 32%;
  background: #f9fbfb;
}

.mobile-translation-pane {
  flex: 1 1 auto;
}

.mobile-caption-panel:not(.show-original) .mobile-translation-pane {
  flex-basis: 100%;
}

.mobile-caption-stack {
  height: 100%;
  display: block;
  overflow-y: auto;
  overflow-anchor: none;
  padding-bottom: 8px;
}

.mobile-caption-stack p {
  margin: 0 0 16px;
  font-size: clamp(var(--mobile-translation-font-min, 28px), var(--mobile-translation-font-fluid, 8.5vw), var(--mobile-translation-font-max, 52px));
  line-height: 1.1;
  font-weight: 500;
}

.mobile-source-stack p {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(var(--mobile-source-font-min, 18px), var(--mobile-source-font-fluid, 5.4vw), var(--mobile-source-font-max, 32px));
  font-weight: 450;
  line-height: 1.14;
}

.mobile-bottom-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.mobile-text-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mobile-text-controls button {
  width: 52px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.mobile-text-controls button:disabled {
  opacity: 0.35;
}

@media (max-width: 390px) {
  .mobile-header {
    gap: 8px;
  }

  .mobile-header h1 {
    font-size: 28px;
  }

  .mobile-controls {
    gap: 8px;
  }

  .mobile-header select {
    width: min(34vw, 140px);
    padding-inline: 8px;
  }

  .mobile-original-toggle {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    height: auto;
    min-height: 68px;
    grid-template-columns: auto auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-nav-actions {
    gap: 8px;
  }

  .landing-login {
    font-size: 13px;
  }

  .landing-button.small {
    min-height: 38px;
    padding-inline: 13px;
  }

  .landing-hero {
    align-items: start;
    min-height: auto;
    padding: 92px 18px 42px;
  }

  .hero-media {
    background: transparent;
  }

  .hero-media::before,
  .hero-media::after {
    inset: -6% -38% -6% -28%;
    background-position: 66% 42%;
    transform: perspective(900px) rotateY(-6deg) translate3d(0, 2%, 0) scale(1.02);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgb(248 251 255 / 0.84) 0%, rgb(248 251 255 / 0.76) 58%, rgb(248 251 255 / 0.56) 88%, rgb(248 251 255 / 0.38) 100%),
      radial-gradient(ellipse at 26% 62%, rgb(233 236 255 / 0.48) 0%, rgb(233 236 255 / 0.28) 42%, transparent 86%),
      linear-gradient(180deg, rgb(248 251 255 / 0.08) 0%, transparent 34%, rgb(244 240 255 / 0.26) 100%);
  }

  .hero-content h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .hero-proof {
    display: none;
  }

  .hero-demo,
  .hero-animation-window {
    padding: 16px;
  }

  .demo-button {
    width: 100%;
  }

  .demo-panes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 220px;
  }

  .demo-control {
    width: 100%;
  }

  .demo-control.is-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .demo-control.is-live .demo-button {
    min-width: 0;
    padding-inline: 18px;
  }

  .demo-pane {
    padding: 12px;
  }

  .demo-pane-lines {
    font-size: 12px;
  }

  .landing-secondary {
    justify-content: flex-start;
    min-height: 36px;
  }

  .landing-section,
  .landing-cta {
    padding-inline: 18px;
  }

  .intro-band,
  .visual-proof {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .feature-grid,
  .testimonial-grid,
  .faq-grid,
  .plans-row {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .testimonial-grid blockquote,
  .plans-row article {
    min-height: auto;
  }

  .product-frame {
    box-shadow: 0 18px 44px rgb(74 91 180 / 0.14);
  }

  .landing-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding: 16px;
    overflow: auto;
  }

  .topbar,
  .workspace-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }

  .workspace-grid {
    min-height: auto;
    overflow-x: hidden;
  }

  .workspace-grid > * {
    max-width: 100%;
  }

  .sessions-sidebar {
    max-height: 360px;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .listen-stack {
    min-width: 0;
  }

  .listen-control {
    max-width: 100%;
  }

  .live-grid {
    display: grid;
    overflow-x: hidden;
  }

  .translation-panel {
    width: 100%;
    max-width: 100%;
  }

  .translation-grid,
  .translation-target-grid,
  .translation-column-grid {
    grid-template-columns: 1fr;
  }

  .translation-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .translation-toolbar .display-controls {
    justify-content: flex-start;
  }

  .translation-column {
    min-height: 220px;
  }

  .projector-with-source,
  .projector-with-source.target-count-2 .projector-target-grid,
  .projector-with-source.target-count-3 .projector-target-grid,
  .projector-with-source.target-count-4 .projector-target-grid,
  .projector-with-source.target-count-5 .projector-target-grid,
  .projector-with-source.target-count-6 .projector-target-grid,
  .projector-with-source.target-count-7 .projector-target-grid,
  .projector-with-source.target-count-8 .projector-target-grid,
  .projector-with-source.target-count-9 .projector-target-grid,
  .projector-with-source.target-count-10 .projector-target-grid {
    grid-template-columns: 1fr;
  }

  .plan-modal-card {
    width: min(96vw, 520px);
  }

  .panel {
    min-height: 330px;
  }

  .primary-button {
    width: 100%;
  }

  .session-qr-button {
    width: var(--topbar-control-height);
    flex: 0 0 var(--topbar-control-height);
  }

  .language-popover {
    left: 0;
    width: min(320px, calc(100vw - 32px));
  }

  .audience-side-widget .session-qr-button {
    width: 112px;
    flex: 0 0 112px;
  }
}
