:root {
  color-scheme: light;
  --bg: #f3f7fa;
  --panel: #ffffff;
  --ink: #071824;
  --muted: #5f7480;
  --line: #dbe6ec;
  --brand: #075d78;
  --brand-strong: #063f55;
  --accent: #d90f1f;
  --accent-soft: #fff1f3;
  --success: #116a35;
  --success-soft: #eaf8ef;
  --warning: #735000;
  --warning-soft: #fff7df;
  --shadow: 0 22px 60px rgba(7, 24, 36, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 5%, rgba(217, 15, 31, 0.12), transparent 22rem),
    radial-gradient(circle at top right, rgba(7, 93, 120, 0.18), transparent 34rem),
    linear-gradient(180deg, #fbfdfe 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.auth-active {
  overflow: hidden;
}

button,
select,
input {
  font: inherit;
}

.auth-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(7, 24, 36, 0.48), rgba(7, 24, 36, 0.72)),
    url("/hero-background.webp") center / cover no-repeat,
    #071824;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

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

.auth-card {
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  padding: 24px;
}

.auth-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(7, 93, 120, 0.24);
}

.auth-card h1 {
  font-size: 2.25rem;
}

.auth-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-radius: 8px;
  background: #e8f1f5;
  padding: 5px;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.auth-tabs button.active {
  background: #ffffff;
  color: var(--brand-strong);
  box-shadow: 0 8px 18px rgba(7, 24, 36, 0.1);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 13px;
  font-weight: 800;
  outline: none;
}

.auth-form input:focus {
  outline: 3px solid rgba(7, 93, 120, 0.22);
  outline-offset: 2px;
}

.auth-submit {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  cursor: pointer;
  font-weight: 950;
  margin-top: 6px;
}

.auth-message {
  min-height: 22px;
  color: var(--warning);
  font-size: 0.9rem;
  font-weight: 800;
}

.app-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.topbar,
.brand-lockup,
.live-header,
.section-title,
.conversation-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar,
.live-header,
.section-title,
.conversation-strip {
  justify-content: space-between;
}

.topbar {
  margin-bottom: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #ffffff;
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: 0 16px 34px rgba(6, 63, 85, 0.24);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.icon-button,
#connectButton,
.ghost-button,
.text-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  width: 52px;
  height: 52px;
  font-size: 1.45rem;
  font-weight: 850;
}

.top-actions,
.voice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ui-language-control {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#interfaceLanguage {
  width: 128px;
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 10px;
  font-size: 0.82rem;
}

.ghost-button,
.text-button {
  min-height: 42px;
  padding: 0 14px;
  font-weight: 850;
}

.text-button {
  min-height: 36px;
  color: var(--muted);
}

.hero-panel,
.live-card,
.history {
  border: 1px solid rgba(219, 230, 236, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.hero-text {
  max-width: 36rem;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.status-banner {
  display: grid;
  gap: 3px;
  border: 1px solid #b9d7e2;
  border-radius: var(--radius);
  background: #e8f6fa;
  color: var(--brand-strong);
  padding: 12px 13px;
}

.status-banner strong {
  font-size: 0.95rem;
}

.status-banner span {
  color: var(--muted);
}

.status-banner.success {
  border-color: #acdabc;
  background: var(--success-soft);
  color: var(--success);
}

.status-banner.warning {
  border-color: #f1d19b;
  background: var(--warning-soft);
  color: var(--warning);
}

.language-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  padding: 0 13px;
  font-weight: 850;
  outline: none;
}

select:focus,
button:focus-visible {
  outline: 3px solid rgba(7, 93, 120, 0.22);
  outline-offset: 2px;
}

.conversation-strip {
  min-height: 54px;
  border: 1px solid #cfe1e9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fcfd, #edf7fa);
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 850;
  grid-column: 1 / -1;
}

.conversation-strip strong {
  color: var(--brand-strong);
  font-size: 1.08rem;
}

.promo-visual {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(7, 24, 36, 0.58), rgba(7, 24, 36, 0.08)),
    url("/hero-background.webp") center right / cover;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(7, 24, 36, 0.22);
}

.promo-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 24, 36, 0.08), rgba(7, 24, 36, 0.46)),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 15rem);
  pointer-events: none;
}

.promo-visual::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  pointer-events: none;
}

.trust-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 3px;
  max-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 12px;
  backdrop-filter: blur(12px);
}

.trust-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.live-card {
  padding: 20px;
  margin-bottom: 16px;
}

#connectButton {
  min-height: 54px;
  padding: 0 22px;
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(6, 63, 85, 0.26);
}

#connectButton:disabled {
  cursor: wait;
  opacity: 0.7;
}

#connectButton.danger {
  border-color: var(--accent);
  background: linear-gradient(135deg, #a80814, var(--accent));
}

.translation-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.translation-box p {
  min-height: 118px;
  margin: 0;
  border-radius: var(--radius);
  padding: 16px;
  background: #f4f9fb;
  color: var(--muted);
  line-height: 1.45;
}

#translatedText {
  background: var(--accent-soft);
  color: #591018;
  font-weight: 850;
}

.history {
  padding: 18px;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.empty-state {
  margin: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.history-item strong {
  color: var(--brand-strong);
}

.history-item p {
  margin: 0;
  color: var(--muted);
}

.history-item small {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 560px);
    padding-top: 14px;
  }

  .topbar,
  .live-header,
  .conversation-strip,
  .section-title {
    align-items: flex-start;
  }

  .topbar {
    gap: 10px;
    flex-wrap: wrap;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .ui-language-control {
    flex: 1;
  }

  #interfaceLanguage {
    width: 100%;
  }

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

  h1 {
    font-size: 2.2rem;
  }

  .hero-panel,
  .live-card,
  .history {
    padding: 14px;
  }

  .language-panel,
  .translation-box,
  .history-item {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .promo-visual {
    min-height: 420px;
    background-position: center bottom;
  }

  .conversation-strip,
  .live-header {
    flex-direction: column;
  }

  .voice-actions {
    width: 100%;
  }

  #connectButton {
    width: 100%;
  }

  .translation-box p {
    min-height: 94px;
    padding: 14px;
  }
}

/* Premium commercial skin */
body {
  background:
    linear-gradient(180deg, rgba(7, 24, 36, 0.2), rgba(7, 24, 36, 0.94)),
    url("/hero-background.webp") center top / cover fixed,
    #071824;
}

body.onboarding-active {
  overflow: hidden;
  background: #f2f8fd;
}

body.onboarding-active .app-shell,
body.onboarding-active .history {
  display: none;
}

.onboarding-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 520px);
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 172, 255, 0.14), transparent 19rem),
    linear-gradient(180deg, #f5fbff 0%, #edf5fb 100%);
  color: #20242c;
  padding: 22px 22px max(24px, env(safe-area-inset-bottom));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.onboarding-shell[hidden] {
  display: none;
}

.onboarding-statusbar,
.onboarding-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.onboarding-statusbar {
  min-height: 34px;
  font-size: 1.06rem;
  font-weight: 950;
}

.onboarding-topline {
  min-height: 52px;
  gap: 14px;
}

.onboarding-back,
.onboarding-skip {
  border: 0;
  background: transparent;
  color: #aab7c1;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.onboarding-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  line-height: 1;
}

.onboarding-skip {
  min-width: 48px;
  text-decoration: underline;
}

.onboarding-progress {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  max-width: 295px;
}

.onboarding-step {
  position: relative;
  height: 6px;
  background: #d8e8f2;
}

.onboarding-step:first-child {
  border-radius: 999px 0 0 999px;
}

.onboarding-step:last-child {
  border-radius: 0 999px 999px 0;
}

.onboarding-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 4px solid #d8e8f2;
  border-radius: 50%;
  background: #f2f8fd;
  transform: translateY(-50%);
}

.onboarding-step.done,
.onboarding-step.active {
  background: #86ccff;
}

.onboarding-step.done::after {
  border-color: #86ccff;
  background: #86ccff;
}

.onboarding-step.active::after {
  border-color: #86ccff;
}

.onboarding-slides {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.onboarding-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-content: start;
  justify-items: center;
  gap: 22px;
  padding: 18px 0 12px;
  text-align: center;
}

.onboarding-slide.active {
  display: grid;
}

.onboarding-slide h2 {
  max-width: 430px;
  margin: 0;
  color: #20242c;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.onboarding-slide p {
  max-width: 430px;
  margin: 0;
  color: #69717a;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 750;
  line-height: 1.3;
}

.language-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
}

.language-choice {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 94px;
  border: 1px solid #e1ebf1;
  border-radius: 24px;
  background: #ffffff;
  padding: 17px 10px;
  box-shadow: 0 8px 20px rgba(47, 72, 88, 0.08);
}

.language-choice span {
  font-size: 1.8rem;
}

.language-choice strong,
.onboarding-option-list strong {
  color: #20242c;
  font-size: 1.2rem;
  line-height: 1.15;
}

.language-swap {
  color: #20242c;
  font-size: 2rem;
  font-weight: 900;
}

.onboarding-app-icon {
  width: 126px;
  height: 126px;
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(43, 161, 232, 0.24);
}

.conversation-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  min-height: 220px;
  align-items: end;
}

.person-card {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 206px;
  border-radius: 28px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(47, 72, 88, 0.09);
}

.person-card span {
  display: block;
  min-height: 160px;
  background:
    radial-gradient(circle at 50% 16%, #ffffff 0 18%, transparent 19%),
    linear-gradient(180deg, #ffd8c5 0 44%, #ffffff 45% 100%);
}

.person-card-right span {
  background:
    radial-gradient(circle at 50% 16%, #ffffff 0 18%, transparent 19%),
    linear-gradient(180deg, #d7ecff 0 44%, #ffffff 45% 100%);
}

.person-card strong {
  padding-bottom: 12px;
  color: #20242c;
}

.onboarding-option-list {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 18px;
}

.onboarding-option-list button {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border: 2px solid transparent;
  border-radius: 24px;
  background: #ffffff;
  color: #20242c;
  cursor: pointer;
  padding: 12px 18px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(47, 72, 88, 0.06);
}

.onboarding-option-list button.selected,
.onboarding-option-list button:focus-visible {
  border-color: #39a9ff;
  background: #dff1ff;
  outline: none;
}

.onboarding-option-list span {
  color: #30343a;
  font-size: 1.55rem;
}

.comparison-preview {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 0;
  width: 100%;
  align-items: center;
  margin-top: 24px;
}

.comparison-card {
  display: grid;
  gap: 13px;
  min-height: 328px;
  border-radius: 28px;
  padding: 26px 18px;
  text-align: left;
}

.comparison-card span {
  font-size: 1.3rem;
  font-weight: 950;
}

.comparison-card p {
  position: relative;
  padding-left: 26px;
  color: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.comparison-card p::before {
  content: "•";
  position: absolute;
  left: 6px;
}

.comparison-muted {
  margin-right: -38px;
  background: rgba(255, 255, 255, 0.76);
  color: #8a8f95;
}

.comparison-featured {
  z-index: 1;
  border: 2px solid #39a9ff;
  background: #dff1ff;
  color: #20242c;
  box-shadow: 0 18px 42px rgba(47, 72, 88, 0.14);
}

.comparison-featured p::before {
  content: "✓";
  display: grid;
  place-items: center;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #21c5cc;
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1;
}

.onboarding-slide small {
  color: #69717a;
  font-size: 1rem;
  font-weight: 750;
}

.paywall-card {
  display: grid;
  gap: 13px;
  width: 100%;
  margin-top: 18px;
  border: 2px solid #39a9ff;
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 0%, rgba(40, 199, 210, 0.28), transparent 11rem),
    #ffffff;
  padding: 26px 22px;
  text-align: left;
  box-shadow: 0 18px 44px rgba(47, 72, 88, 0.14);
}

.paywall-badge {
  justify-self: start;
  border-radius: 999px;
  background: #dff1ff;
  color: #075d78;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.paywall-card h2 {
  font-size: 2.4rem;
  text-align: left;
}

.paywall-card > strong {
  color: #20242c;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.paywall-card ul {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.paywall-card li {
  position: relative;
  padding-left: 32px;
  color: #323941;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.28;
}

.paywall-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #21c5cc;
  color: #ffffff;
  font-size: 0.86rem;
}

.paywall-legal {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.paywall-legal a {
  color: #6d7680;
  text-decoration: none;
}

.onboarding-continue {
  width: 100%;
  min-height: 74px;
  border: 0;
  border-radius: 27px;
  background: linear-gradient(100deg, #538da0, #0b1c22);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 950;
  text-decoration: underline;
  box-shadow: 0 16px 34px rgba(47, 72, 88, 0.14);
}

.app-shell {
  width: min(520px, 100%);
  padding: 12px 12px 28px;
}

.topbar {
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(7, 24, 36, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  padding: 10px 12px;
  backdrop-filter: blur(18px);
}

.brand-mark {
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #d9f4ff);
  color: var(--brand-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.topbar h1,
.topbar .eyebrow {
  color: #ffffff;
}

.topbar h1 {
  font-size: clamp(1.55rem, 8vw, 2.5rem);
}

.topbar .eyebrow {
  opacity: 0.72;
}

.icon-button,
.ghost-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 112px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(7, 24, 36, 0.04), rgba(7, 24, 36, 0.72) 46%, rgba(7, 24, 36, 0.96)),
    url("/hero-background.webp") center top / cover;
  color: #ffffff;
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 16%, rgba(13, 190, 238, 0.24), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.hero-copy,
.language-panel,
.conversation-strip,
.hero-panel .live-card,
.promo-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-content: end;
  min-height: 360px;
  padding-top: 180px;
}

.hero-copy h2 {
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(2.7rem, 13vw, 4.8rem);
  letter-spacing: -0.07em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.hero-text {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.hero-copy .eyebrow {
  color: #ffffff;
  opacity: 0.78;
}

.value-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.value-pills span {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 8px 11px;
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.status-banner,
.language-panel,
.conversation-strip,
.live-card,
.history {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.status-banner {
  order: 3;
}

.status-banner span,
.status-banner.success span,
.status-banner.warning span,
.conversation-strip,
label,
.history-item p,
.empty-state {
  color: rgba(255, 255, 255, 0.72);
}

.status-banner.success,
.status-banner.warning {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.language-panel {
  padding: 12px;
  border-radius: 20px;
}

select {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.conversation-strip {
  border-radius: 20px;
}

.conversation-strip strong {
  color: #ffffff;
}

.promo-visual {
  display: none;
}

.live-card {
  border-radius: 28px;
  padding: 18px;
}

.live-card h2,
.history h2 {
  color: #ffffff;
}

#connectButton {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #d9f4ff);
  color: var(--brand-strong);
  box-shadow: 0 20px 44px rgba(7, 24, 36, 0.34);
}

#connectButton.danger {
  color: #ffffff;
  background: linear-gradient(135deg, #9f0711, var(--accent));
}

.live-header {
  align-items: flex-start;
  flex-direction: column;
}

.voice-actions {
  width: 100%;
}

.translation-box p {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
}

#translatedText {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.history {
  border-radius: 28px;
}

.history-item {
  grid-template-columns: 1fr;
  border-color: rgba(255, 255, 255, 0.14);
}

.history-item strong,
.text-button {
  color: #ffffff;
}

.text-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 860px) {
  .app-shell {
    width: min(1120px, calc(100% - 48px));
  }

  .hero-panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
    align-items: end;
    min-height: 780px;
    background-position: center center;
  }

  .hero-copy {
    grid-row: span 2;
    min-height: 620px;
  }

  .language-panel,
  .conversation-strip,
  .live-card {
    grid-column: 2;
  }
}

/* Call translator interface */
body {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(7, 10, 22, 0.72)),
    url("/hero-background.webp") center / cover fixed,
    #080d16;
}

.call-shell {
  display: grid;
  width: min(430px, 100%);
  min-height: 100svh;
  padding: 0;
}

.phone-stage {
  display: grid;
  min-height: 100svh;
  padding: max(12px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
}

.call-statusbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  width: min(430px, 100%);
  padding: max(8px, env(safe-area-inset-top)) 24px 8px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 850;
  pointer-events: none;
}

.call-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto auto;
  gap: 14px;
  width: 100%;
  min-height: calc(100svh - 28px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 16%, rgba(42, 238, 213, 0.12), transparent 10rem),
    linear-gradient(180deg, #2c2d5a 0%, #26274f 48%, #202247 100%);
  color: #ffffff;
  padding: 24px 18px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 70px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.call-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  pointer-events: none;
}

.call-top-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.call-top-actions .ghost-button {
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0 12px;
}

.call-top-actions .ui-language-control {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
}

.call-top-actions #interfaceLanguage {
  width: 126px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #171930;
}

.caller-block {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.caller-block .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
}

.caller-block h1 {
  color: #ffffff;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.caller-block span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  font-weight: 800;
}

.call-card .status-banner {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  box-shadow: none;
  text-align: center;
}

.call-card .status-banner strong {
  color: #ffffff;
  font-size: 0.82rem;
}

.call-card .status-banner span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.35;
}

.call-language-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.language-pill {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #ffffff;
}

.language-pill .flag {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  font-size: 1.65rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.language-pill .select-label {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.language-pill select {
  grid-column: 2;
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  background: #29b989;
  color: #ffffff;
  padding: 0 11px;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(5, 102, 72, 0.22);
}

.swap-call-button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.call-live-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  border: 0;
  background: transparent;
  padding: 4px 0;
  box-shadow: none;
}

.call-live-card .translation-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  height: 100%;
  margin: 0;
  align-content: center;
}

.call-live-card .translation-box p {
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  overflow-wrap: anywhere;
}

.call-live-card #originalText {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 11vw, 3.75rem);
  font-style: italic;
  line-height: 1.02;
}

.call-live-card #translatedText {
  color: #82d8c9;
  font-size: clamp(1.05rem, 4.3vw, 1.45rem);
  font-weight: 850;
  line-height: 1.35;
}

.call-controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.round-control {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.round-control span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.7rem;
}

.round-control small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 700;
}

.call-card .voice-actions {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.call-card #connectButton {
  width: min(170px, 60%);
  min-height: 58px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18c787, #0f9d70);
  color: #ffffff;
  font-size: 0;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.call-card #connectButton::before {
  content: "☎";
  font-size: 1.82rem;
  line-height: 1;
}

.call-card #connectButton.danger {
  background: linear-gradient(135deg, #ff4b4b, #ef1f2d);
}

.call-card #connectButton.danger::before {
  content: "⌒";
  display: inline-block;
  font-size: 2.3rem;
  transform: rotate(180deg) translateY(5px);
}

.history {
  width: min(430px, calc(100% - 20px));
  margin: 14px auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(11, 16, 32, 0.7);
  color: #ffffff;
}

@media (max-width: 380px) {
  .phone-stage {
    padding-inline: 0;
  }

  .call-card {
    min-height: 100svh;
    border-radius: 0;
    padding-inline: 14px;
  }

  .language-pill .flag {
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
  }

  .call-language-panel {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  }

  .swap-call-button {
    width: 44px;
    font-size: 2.2rem;
  }
}

/* FrigoTranslate AI product modes */
.translator-product-shell .call-card {
  grid-template-rows: auto auto auto auto auto auto 1fr auto auto;
  gap: 12px;
  background:
    radial-gradient(circle at 50% 11%, rgba(66, 232, 210, 0.18), transparent 10rem),
    radial-gradient(circle at 12% 2%, rgba(255, 255, 255, 0.12), transparent 7rem),
    linear-gradient(180deg, #262656 0%, #202146 48%, #171832 100%);
}

.mode-tabs,
.feature-strip,
.usage-card,
.tool-panel {
  position: relative;
  z-index: 1;
}

.usage-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.usage-card-top,
.usage-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.usage-card span,
.usage-details span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
}

.usage-card strong {
  display: block;
  color: #ffffff;
  font-size: 0.96rem;
}

.plan-button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #171930;
  cursor: pointer;
  padding: 0 13px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
}

.usage-meter {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.usage-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18c787, #82d8c9);
  transition: width 180ms ease;
}

.usage-card.warning .usage-meter span {
  background: linear-gradient(90deg, #f2bd3f, #ffe08a);
}

.usage-card.limit .usage-meter span {
  background: linear-gradient(90deg, #ff4b4b, #ef1f2d);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  padding: 7px;
}

.mode-tab {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  padding: 8px 4px;
}

.mode-tab span {
  display: grid;
  place-items: center;
  min-height: 20px;
  font-size: 1rem;
  font-weight: 950;
}

.mode-tab strong {
  font-size: 0.72rem;
  font-weight: 900;
}

.mode-tab.active {
  background: rgba(255, 255, 255, 0.92);
  color: #171930;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

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

.feature-strip article {
  display: grid;
  align-content: start;
  gap: 3px;
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.075);
  padding: 10px 8px;
  text-align: center;
}

.feature-strip span {
  font-size: 1.25rem;
}

.feature-strip strong {
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1.12;
}

.feature-strip small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.63rem;
  line-height: 1.22;
}

.tool-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.tool-panel[hidden] {
  display: none;
}

.tool-panel label,
.tool-panel strong {
  color: #ffffff;
}

.tool-panel p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.35;
}

.tool-panel textarea {
  width: 100%;
  resize: vertical;
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #171930;
  font: inherit;
  font-weight: 750;
  line-height: 1.4;
  padding: 12px;
  outline: none;
}

.tool-panel textarea:focus {
  outline: 3px solid rgba(41, 185, 137, 0.24);
  outline-offset: 2px;
}

.tone-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tone-chip,
.primary-tool-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.tone-chip {
  flex: 0 0 auto;
  min-height: 34px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 12px;
}

.tone-chip.active {
  background: #ffffff;
  color: #171930;
}

.primary-tool-button {
  min-height: 48px;
  background: linear-gradient(135deg, #18c787, #0f9d70);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.primary-tool-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.tool-output {
  display: block;
  min-height: 72px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #171930;
  padding: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: pre-wrap;
}

.plan-tool-panel {
  gap: 14px;
}

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

.plan-header span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-header strong {
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

.plan-header small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 750;
}

.plan-grid {
  display: grid;
  gap: 8px;
}

.plan-grid article {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.075);
  padding: 10px 11px;
}

.plan-grid span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 750;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.74rem;
  font-weight: 800;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.upload-card {
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 18px 12px;
  text-align: center;
}

.upload-card span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #171930;
  font-size: 1.1rem;
  font-weight: 950;
}

.upload-card small {
  color: rgba(255, 255, 255, 0.58);
}

.translator-product-shell .call-live-card[hidden],
.translator-product-shell .call-controls[hidden],
.translator-product-shell .voice-actions[hidden] {
  display: none;
}

@media (max-height: 820px) {
  .feature-strip {
    display: none;
  }

  .translator-product-shell .call-card {
    gap: 10px;
  }

  .call-live-card #originalText {
    font-size: clamp(1.75rem, 9vw, 2.9rem);
  }
}

@media (max-width: 380px) {
  .feature-strip article {
    min-height: 82px;
    padding-inline: 5px;
  }

  .mode-tab {
    min-height: 52px;
  }

  .mode-tab strong,
  .feature-strip strong {
    font-size: 0.68rem;
  }
}

/* Desktop workspace: preserve the phone layout on mobile and use the Mac screen. */
@media (min-width: 860px) {
  body {
    background-position: center;
    background-attachment: fixed;
  }

  .call-shell.translator-product-shell {
    width: min(1120px, calc(100% - 56px));
    min-height: 100svh;
    margin-inline: auto;
    padding: 28px 0 36px;
  }

  .translator-product-shell .phone-stage {
    position: relative;
    min-height: auto;
    padding: 0;
  }

  .translator-product-shell .call-statusbar {
    display: none;
  }

  .translator-product-shell .call-card {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: auto auto auto auto minmax(118px, auto) auto auto auto;
    grid-template-areas:
      "top top"
      "title title"
      "usage modes"
      "features features"
      "status live"
      "languages live"
      "controls live"
      "action action";
    column-gap: 24px;
    row-gap: 16px;
    min-height: min(760px, calc(100svh - 72px));
    border-radius: 32px;
    padding: 28px 32px 30px;
    overflow: visible;
  }

  .translator-product-shell .call-card::before {
    inset: 14px;
  }

  .translator-product-shell .call-top-actions {
    grid-area: top;
  }

  .translator-product-shell .caller-block {
    grid-area: title;
  }

  .translator-product-shell .caller-block h1 {
    font-size: clamp(2.1rem, 3.3vw, 3.4rem);
    overflow-wrap: anywhere;
  }

  .translator-product-shell .usage-card {
    grid-area: usage;
    align-self: stretch;
  }

  .translator-product-shell .mode-tabs {
    grid-area: modes;
    align-self: stretch;
  }

  .translator-product-shell .feature-strip {
    grid-area: features;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .translator-product-shell .status-banner {
    grid-area: status;
    align-self: stretch;
    display: grid;
    align-content: center;
  }

  .translator-product-shell .call-language-panel {
    grid-area: languages;
  }

  .translator-product-shell .call-live-card {
    grid-area: live;
    min-height: 270px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    padding: 24px;
  }

  .translator-product-shell .call-live-card #originalText {
    font-size: clamp(2.2rem, 4.2vw, 4.25rem);
  }

  .translator-product-shell .call-live-card #translatedText {
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  }

  .translator-product-shell .tool-panel {
    grid-area: live;
    min-height: 270px;
    align-content: center;
  }

  .translator-product-shell .call-controls {
    grid-area: controls;
  }

  .translator-product-shell .voice-actions {
    grid-area: action;
  }

  .translator-product-shell .call-card #connectButton {
    width: min(240px, 100%);
  }

  .translator-product-shell .history {
    width: 100%;
    margin: 18px 0 0;
    padding: 24px 28px;
  }
}
