:root {
  --accent: #ad4829;
  --surface-warm: #fffaf7;
  --warm-line: #e9dfda;
  --night: #2c2136;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 23px;
}
body {
  margin: 0;
  background: #fdfbf9;
  line-height: 1.5;
}
h1,
h2,
h3,
p,
fieldset,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.05em;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
a,
button,
summary,
select {
  touch-action: manipulation;
}
:where(a, button, select, summary, input):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
::selection {
  background: #fed7bb;
  color: #36253a;
}
.wrap {
  width: min(1200px, calc(100% - clamp(44px, 9vw, 144px)));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 9px;
  left: 9px;
  background: var(--button);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  z-index: 12;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--warm-line);
  background: #fffcfa;
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 77px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 32px;
  letter-spacing: -0.065em;
  font-weight: 750;
  line-height: 1;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
}
.nav-links,
.nav-actions,
.footer-row nav {
  display: flex;
  align-items: center;
  gap: 29px;
}
.nav-links {
  margin-inline: auto;
}
.nav-links a,
.login-link,
.footer-row nav a {
  color: #504450;
  font-size: 0.89rem;
  font-weight: 580;
  padding-block: 7px;
}
.nav-links a[aria-current="page"],
.nav-links a:hover,
.login-link:hover,
.footer-row nav a:hover {
  color: var(--accent);
}
.nav-actions {
  gap: 23px;
}
.mobile-nav {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 12px 19px;
  font-size: 0.94rem;
  line-height: 1.25;
  font-weight: 630;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 11px;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
.button-dark,
.button-primary {
  background: var(--button);
  color: #fff;
}
.button-dark:hover,
.button-primary:hover {
  background: #52365c;
  box-shadow: 0 3px 8px #34243f1c;
}
.button-outline {
  border-color: #cfc0c9;
  background: white;
  color: var(--ink);
}
.button-outline:hover {
  background: #faf4f6;
  border-color: #ab929f;
}
.nav-trial {
  min-height: 39px;
  padding: 9px 15px;
  font-size: 0.86rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 620;
  font-size: 0.91rem;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.eyebrow,
.kicker {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 650;
  color: var(--accent);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kicker i {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: #db7047;
}
.section {
  padding-block: clamp(55px, 6vw, 91px);
}
.section h2,
.start-copy h2 {
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  letter-spacing: -0.062em;
}
.section p:not(.kicker) {
  line-height: 1.58;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f9d7c3;
}
.hero-art,
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art {
  z-index: -2;
}
.hero-art img {
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #fbe2d3cf 0%, #fbe1d0a8 33%, #fbe1d05c 46%, transparent 64%);
  pointer-events: none;
}
.hero-inner {
  min-height: clamp(500px, 40vw, 618px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  position: relative;
  align-items: center;
  gap: 28px;
}
.hero-copy {
  padding-block: 56px 65px;
}
.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  background: #fffbf3a6;
  border: 1px solid #ffffffc7;
  border-radius: 999px;
  color: #60362d;
  font-weight: 600;
  font-size: 0.79rem;
}
.sound-icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #b04b2e;
}
.sound-icon i {
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}
.sound-icon i:nth-child(even) {
  height: 12px;
}
.sound-icon i:nth-child(3) {
  height: 16px;
}
.hero h1 {
  font-size: clamp(3rem, 5.55vw, 5.9rem);
  font-weight: 670;
  line-height: 1.015;
  letter-spacing: -0.07em;
  margin: 21px 0 17px;
}
.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.5;
  color: #493944;
  max-width: 435px;
}
.hero-actions,
.start-actions {
  display: flex;
  gap: 11px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 25px;
}
.button-glass {
  background: #fffaf2b8;
  color: #382634;
  border-color: #c99f8973;
}
.button-glass:hover {
  background: #fff9f1;
  border-color: #b8846a;
}
.button-glass small {
  padding-left: 9px;
  border-left: 1px solid #b7a292;
  font-size: 0.72rem;
  color: #594750;
}
.play-disc,
.listen-icon {
  display: grid;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  place-items: center;
}
.play-disc::after,
.listen-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-block: 3px solid transparent;
  border-left: 5px solid currentColor;
  margin-left: 2px;
}
.hero-note {
  margin-top: 13px;
  color: #58434a;
  font-size: 0.78rem;
}
.hero-note span {
  margin-inline: 4px;
}
.hero-exchange {
  display: grid;
  align-content: end;
  align-self: end;
  gap: 11px;
  margin-bottom: clamp(43px, 4.7vw, 72px);
}
.glass-line {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 9px;
  border: 1px solid #ffffffa6;
  border-radius: 15px;
  background: #fffaf4f0;
  box-shadow: 0 9px 27px #5e2b3c25;
}
.glass-line small,
.glass-line strong {
  display: block;
}
.glass-line small {
  color: #70585e;
  font-size: 0.7rem;
  line-height: 1.2;
  margin-bottom: 3px;
}
.glass-line strong {
  font-size: clamp(0.89rem, 1.05vw, 1rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.source-line {
  justify-self: start;
}
.translated-line {
  justify-self: end;
  margin-right: 4%;
  color: #32223b;
  background: #f2e7faf0;
}
.speaker-thumb {
  display: block;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eee url("/media/duet-call.webp") no-repeat;
  background-size: 205% auto;
}
.alex {
  background-position: 0 42%;
}
.giulia {
  background-position: 100% 42%;
}
.language-band {
  border-block: 1px solid #eadfd6;
  background: #fff9f3;
}
.language-band-inner, .language-band-copy {
  display: flex;
  gap: 16px;
  align-items: center;
}
.language-band-inner {
  min-height: 86px;
  justify-content: space-between;
  padding-block: 12px;
}
.language-globe {
  width: 41px;
  height: 41px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #a34426;
  background: #fae5d8;
}
.language-globe svg { width: 23px; height: 23px; }
.language-band-copy strong { font-size: 1.15rem; letter-spacing: -.04em; }
.language-band-copy p { color: #65555c; font-size: .88rem; }
.catalog-opener {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #d6c5bb;
  border-radius: 11px;
  background: #fffaf6;
  color: var(--ink);
  font-size: .89rem;
  font-weight: 650;
}
.catalog-opener:hover { background: #fae8dc; }
.catalog-opener-dark { margin-top: 20px; border-color: #786270; background: #443445; color: #fff8f4; }
.catalog-opener-dark:hover { background: #594456; }


.example-grid {
  display: grid;
  grid-template-columns: 0.91fr 1.09fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.example-intro h2 {
  margin: 13px 0 17px;
}
.example-intro h2 em {
  font-style: normal;
  color: var(--accent);
}
.example-intro > p:not(.kicker) {
  max-width: 37ch;
  color: var(--muted);
  font-size: 1.03rem;
}
.example-intro .text-link {
  margin-top: 20px;
}
.sample-player {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6dcd9;
  border-radius: 21px;
  background: white;
  box-shadow: 0 9px 32px #46314509;
}
.sample-visual {
  height: clamp(165px, 15.6vw, 225px);
  position: relative;
  overflow: hidden;
  background: #2c2136;
}
.sample-visual > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 38%;
}
.sample-visual::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
}
.sample-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: absolute;
  inset: auto 0 9px;
}
.sample-names span {
  justify-self: start;
  margin-left: 13px;
  padding: 2px 7px;
  border-radius: 6px;
  color: white;
  background: #241c29bb;
  font-weight: 550;
  font-size: 0.72rem;
}
.sample-body {
  padding: 18px 21px 20px;
}
.sample-switch {
  display: flex;
  padding: 3px;
  gap: 3px;
  border-radius: 9px;
  background: #f3eff3;
  width: fit-content;
  max-width: 100%;
}
.sample-switch button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 5px 10px;
  font-weight: 580;
  font-size: 0.76rem;
}
.sample-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px #432b4420;
}
.sample-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 15px 0;
}
.sample-line {
  padding: 1px 0 1px 10px;
  border-left: 3px solid #e7d6ca;
}
.line-to {
  border-color: #d8c2e8;
}
[data-sample-phase="from"] .line-from {
  border-color: #cd5c32;
}
[data-sample-phase="to"] .line-to {
  border-color: #9364ac;
}
.sample-line small {
  display: block;
  color: #6e5e68;
  font-size: 0.72rem;
}
.sample-line p {
  font-size: 0.94rem;
  font-weight: 580;
  letter-spacing: -0.02em;
}
#listen-sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  padding: 9px 13px;
  color: white;
  background: var(--button);
  font-size: 0.85rem;
  font-weight: 620;
}
#listen-sample:hover {
  background: #54395d;
}
#listen-sample[data-playing="true"] .listen-icon::after {
  width: 3px;
  height: 7px;
  border-block: 0;
  border-inline: 2px solid;
  margin: 0;
}
[data-sample-status]:not([hidden]) {
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.85rem;
}

.how-section {
  border-block: 1px solid var(--warm-line);
  background: #f8f4f1;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.section-heading h2 {
  margin-top: 9px;
}
.section-heading > p {
  max-width: 30ch;
  color: var(--muted);
}
.steps,
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  border: 1px solid var(--warm-line);
  border-radius: 18px;
  background: white;
  padding: clamp(15px, 1.8vw, 25px);
}
.step-art {
  height: 102px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  user-select: none;
  border-radius: 11px;
}
.choice-art {
  background: linear-gradient(115deg, #ffebd8, #ffdabd);
}
.link-art {
  background: linear-gradient(115deg, #f2eafa, #e9ddf3);
}
.speech-art {
  background: linear-gradient(115deg, #fbe6de, #f8d8d1);
}
.tiny-select,
.copy-mini {
  border: 1px solid #ded3d5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 6px #61413d0a;
}
.tiny-select {
  min-width: 64px;
  padding: 6px 10px;
}
.tiny-select b,
.tiny-select small {
  display: block;
}
.tiny-select small {
  font-size: 0.66rem;
  color: var(--muted);
}
.tiny-select b {
  font-size: 0.86rem;
}
.exchange {
  color: #815263;
  font-size: 19px;
}
.invite-mark {
  display: grid;
  place-items: center;
  color: #754e84;
}
.invite-mark svg {
  width: 20px;
}
.link-art > span:nth-child(2) {
  font-size: 0.82rem;
  font-weight: 600;
}
.copy-mini {
  padding: 4px 7px;
  font-size: 0.67rem;
}
.bubble {
  padding: 6px 13px;
  background: white;
  border-radius: 12px 12px 12px 3px;
  font-weight: 600;
}
.bubble-a {
  margin-bottom: 15px;
}
.bubble-b {
  margin-top: 15px;
  background: #573755;
  color: white;
  border-radius: 12px 12px 3px 12px;
}
.step h3,
.use-grid h3 {
  margin: 18px 0 8px;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.04em;
}
.step p,
.use-grid article p {
  color: var(--muted);
  font-size: 0.94rem;
}
.language-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 5% 117%, #634049, transparent 47%),
    linear-gradient(115deg, #302235, #35293f 85%);
  color: #fffaf9;
}
.language-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 7vw, 110px);
  align-items: center;
}
.language-intro {
  position: relative;
}
.language-intro h2 {
  margin: 13px 0 18px;
}
.language-intro h2 em {
  font-style: normal;
  color: #ffc09d;
}
.language-intro > p:not(.kicker) {
  max-width: 38ch;
  color: #ecdee9;
}
.language-intro .kicker {
  color: #ffd5b9;
}
.language-intro .kicker i {
  background: #f6aa87;
}
.language-wave {
  height: 57px;
  width: min(250px, 70%);
  margin: 23px 0 -8px;
  opacity: 0.75;
}
.language-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}
.language-panel {
  min-width: 0;
  padding: clamp(22px, 2.8vw, 39px);
  background: #fffcfb;
  color: var(--ink);
  border: 1px solid #eadfe9;
  border-radius: 20px;
}
.engine-picker {
  border: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  gap: 9px;
}
.engine-picker legend {
  padding: 0;
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.engine-picker label {
  flex: 1;
  position: relative;
}
.engine-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.engine-picker label span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dacfd5;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}
.engine-picker label span::after {
  content: "";
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 1px solid #b3a1b3;
  border-radius: 50%;
}
.engine-picker input:checked + span {
  background: #f5edf8;
  border-color: #8d6e96;
}
.engine-picker input:checked + span::after {
  background: white;
  border: 4px solid #765280;
}
.engine-picker input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.language-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin: 18px 0 13px;
}
.language-fields label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 560;
}
.language-fields select {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d8cdd6;
  border-radius: 9px;
  height: 41px;
  padding-inline: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 0.9rem;
}
.engine-arrow {
  padding-bottom: 9px;
  color: var(--muted);
}
.language-result {
  padding: 8px 11px;
  color: #5f445c;
  background: #f5eef3;
  border-radius: 8px;
  font-size: 0.83rem;
}
.panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.mode-coverage {
  color: var(--muted);
  font-size: 0.75rem;
}
.panel-bottom a {
  font-size: 0.84rem;
  font-weight: 640;
  color: #604068;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.use-heading {
  margin-bottom: 30px;
}
.use-grid {
  gap: 32px;
}
.use-grid article {
  border-top: 1px solid var(--warm-line);
  padding-top: 22px;
}
.feature-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
}
.feature-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-warm {
  background: #fbe5d6;
  color: #9c472e;
}
.icon-lilac {
  background: #ede2f4;
  color: #77508a;
}
.icon-rose {
  background: #f8e4df;
  color: #9d5e58;
}
.use-grid h3 {
  margin-top: 13px;
}
.start-section {
  padding: 0 0 clamp(48px, 5.5vw, 83px);
}
.start-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 4.5vw, 68px);
  border-radius: 23px;
  background: #f8d6bf url("/media/duet-soundscape.webp") 74% 52% / cover no-repeat;
}
.start-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #ffe6d4 8%, #fdddc8e8 44%, #ffe5d619 76%);
}
.start-copy h2 {
  margin: 10px 0 11px;
}
.start-copy > p:not(.kicker) {
  color: #594350;
  max-width: 38ch;
}
.start-actions {
  gap: 20px;
  margin-top: 22px;
}
.site-footer {
  border-top: 1px solid var(--warm-line);
  background: #faf7f5;
}
.footer-row,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-row {
  min-height: 100px;
  justify-content: space-between;
}
.footer-brand > span {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-row .wordmark {
  font-size: 28px;
}
.footer-row .brand-mark {
  width: 31px;
  height: 31px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.switch-coverage {
  border: 0;
  padding: 5px 0;
  background: transparent;
  color: #684471;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .84rem;
  font-weight: 620;
}
.engine-picker input:disabled + span { opacity: .56; cursor: not-allowed; }
.engine-picker label span::after { flex-shrink: 0; margin-left: 4px; }
#language-dialog {
  width: min(590px, calc(100% - 24px));
  max-height: min(80dvh, 690px);
  padding: 0;
  border: 1px solid var(--warm-line);
  border-radius: 22px;
  background: #fffdfb;
  color: var(--ink);
  box-shadow: 0 25px 85px #21142642;
}
#language-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#language-dialog::backdrop { background: #211828a8; }
.catalog-header { flex: none; padding: 23px 24px 11px; border-bottom: 1px solid var(--warm-line); }
.catalog-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-title-row h2 { font-size: clamp(1.65rem, 4vw, 2.12rem); }
.catalog-title-row button {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 11px;
  background: #f5ece7;
  font-size: 1.45rem;
  line-height: 1;
}
.catalog-header > p { color: var(--muted); font-size: .92rem; margin-top: 7px; }
.catalog-search { display: block; position: relative; margin-top: 18px; }
.catalog-search svg { position: absolute; width: 19px; height: 19px; top: 50%; left: 13px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.catalog-search input { width: 100%; border: 1px solid #cfc2c9; border-radius: 11px; background: white; padding: 10px 12px 10px 40px; font-size: 1rem; }
#language-catalog-status { margin-top: 12px; font-size: .82rem; }
#language-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#language-catalog-list:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
#language-catalog-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 11px; }
#language-catalog-list li + li { border-top: 1px solid #efe7e4; }
#language-catalog-list strong { min-width: 0; font-size: .93rem; font-weight: 600; line-height: 1.3; }
.catalog-modes { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.catalog-modes span { display: inline-block; padding: 3px 8px; background: #f3ede9; color: #604950; font-size: .72rem; font-weight: 580; line-height: 1.45; border-radius: 6px; white-space: nowrap; }
@media (max-width: 540px) {
  .language-band-inner { flex-wrap: wrap; gap: 10px 15px; padding-block: 16px; }
  .language-band-copy { gap: 10px; }
  .language-band-copy p { font-size: .8rem; }
  .catalog-header { padding: 17px 15px 10px; }
  #language-catalog-list { padding-inline: 15px; }
  #language-catalog-list li { gap: 8px; }
  .catalog-modes { max-width: 135px; }
  .engine-picker label span { gap: 3px; padding-inline: 8px; }
}
@media (max-height: 450px) {
  #language-dialog { max-height: 96dvh; }
  .catalog-header { padding-block: 8px; }
  .catalog-header > p:first-of-type { display: none; }
  .catalog-search { margin-top: 7px; }
}
#demo-dialog {
  padding: 0;
  width: min(920px, calc(100% - 28px));
  max-height: 94dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
}
#demo-dialog::backdrop {
  background: #201627bf;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}
.dialog-top h2 {
  font-size: 1rem;
}
.dialog-top button {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: #f5edef;
  border: 0;
  font-size: 1.45rem;
  line-height: 1;
}
#demo-dialog video {
  display: block;
  width: 100%;
  max-height: calc(88dvh - 50px);
  aspect-ratio: 16/9;
  background: #261d2d;
}
@media (max-width: 920px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero-inner {
    min-height: 475px;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 15px;
  }
  .hero h1 {
    font-size: clamp(3rem, 6.2vw, 3.9rem);
  }
  .hero-exchange {
    margin-bottom: 41px;
  }
  .hero-lead {
    max-width: 37ch;
  }
  .glass-line {
    padding-right: 11px;
    gap: 7px;
  }
  .example-grid {
    gap: 30px;
  }
  .steps {
    gap: 12px;
  }
  .step-art {
    gap: 4px;
  }
  .tiny-select {
    min-width: 51px;
    padding: 5px;
  }
  .link-art .copy-mini {
    padding: 4px;
  }
  .use-grid {
    gap: 20px;
  }
  .nav-links {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: min(590px, calc(100% - 36px));
  }
  .site-header .nav-row {
    min-height: 64px;
    gap: 12px;
  }
  .wordmark {
    font-size: 29px;
    gap: 7px;
  }
  .brand-mark {
    width: 33px;
    height: 33px;
  }
  .nav-links,
  .nav-actions .login-link {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-trial {
    min-height: 37px;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav summary {
    width: 37px;
    height: 37px;
    display: grid;
    align-content: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--warm-line);
    border-radius: 10px;
    list-style: none;
    background: white;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav summary span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
  }
  .mobile-nav nav {
    z-index: 4;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    padding: 10px max(18px, calc((100% - 590px) / 2)) 15px;
    background: #fffaf7;
    border-bottom: 1px solid var(--warm-line);
    box-shadow: 0 10px 24px #341e3212;
  }
  .mobile-nav nav a {
    display: block;
    padding: 9px 5px;
    font-weight: 580;
    font-size: 0.93rem;
  }
  .hero {
    background: #fcdfcb;
  }
  .hero-art {
    top: auto;
    bottom: 0;
    height: 158px;
    mask-image: linear-gradient(transparent 0%, #000 26%);
  }
  .hero-art img {
    object-position: 52% 54%;
  }
  .hero::after {
    background: linear-gradient(180deg, #fce3d1 0%, #fbdcc7 100%);
    z-index: -3;
  }
  .hero-inner {
    display: block;
    min-height: 0;
  }
  .hero-copy {
    padding: 37px 0 0;
  }
  .hero h1 {
    font-size: clamp(2.68rem, 8.6vw, 3.85rem);
    margin: 14px 0;
  }
  .hero-lead {
    max-width: 43ch;
    font-size: 1rem;
  }
  .hero-actions {
    margin-top: 18px;
  }
  .button {
    min-height: 43px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .hero-note {
    margin-top: 9px;
  }
  .hero-exchange {
    margin: 0 0 0 auto;
    min-height: 158px;
    width: min(365px, 90%);
    gap: 6px;
    padding: 28px 0 21px;
  }
  .glass-line {
    padding: 6px 10px 6px 6px;
    border-radius: 11px;
  }
  .glass-line small {
    font-size: 0.62rem;
  }
  .glass-line strong {
    font-size: 0.84rem;
  }
  .speaker-thumb {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .translated-line {
    margin: 0;
  }
  .section {
    padding-block: 46px;
  }
  .example-grid,
  .language-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }
  .example-intro h2 br {
    display: none;
  }
  .example-intro h2 em::before {
    content: " ";
  }
  .example-intro > p:not(.kicker) {
    max-width: 50ch;
  }
  .sample-visual {
    height: clamp(155px, 39vw, 218px);
  }
  .sample-body {
    padding: 15px;
  }
  .section-heading {
    display: block;
    margin-bottom: 20px;
  }
  .section-heading > p {
    max-width: none;
    margin-top: 10px;
  }
  .steps,
  .use-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .step {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 0 13px;
    padding: 15px;
  }
  .step-art {
    grid-row: span 2;
    min-height: 96px;
    height: 100%;
  }
  .step h3 {
    align-self: end;
    margin: 0 0 4px;
  }
  .step p {
    font-size: 0.88rem;
  }
  .language-wave {
    display: none;
  }
  .language-intro h2 br {
    display: none;
  }
  .language-intro h2 em::before {
    content: " ";
  }
  .language-intro > p:not(.kicker) {
    max-width: 48ch;
  }
  .use-grid {
    gap: 15px;
  }
  .use-grid article {
    position: relative;
    padding: 14px 0 0 50px;
  }
  .use-grid article .feature-icon {
    position: absolute;
    top: 16px;
    left: 0;
  }
  .use-grid h3 {
    margin: 0 0 3px;
  }
  .use-grid p {
    font-size: 0.9rem;
  }
  .start-panel {
    padding: 28px;
  }
  .start-panel::before {
    background: linear-gradient(90deg, #ffe6d4f7, #fdddc8ef 55%, #ffe5d6ac);
  }
  .start-copy > p:not(.kicker) {
    max-width: 32ch;
  }
  .footer-row {
    align-items: start;
    min-height: 0;
    padding-block: 22px;
  }
  .footer-brand {
    display: grid;
    gap: 7px;
  }
  .footer-row nav {
    display: grid;
    grid-template-columns: auto auto;
    gap: 3px 13px;
  }
  .footer-row nav a {
    font-size: 0.78rem;
  }
}
@media (max-width: 410px) {
  .hero-actions {
    gap: 7px;
  }
  .hero-actions .button {
    font-size: 0.83rem;
    gap: 7px;
    padding-inline: 10px;
  }
  .hero-exchange {
    width: 95%;
  }
  .step {
    display: block;
  }
  .step-art {
    min-height: 0;
    height: 76px;
  }
  .step h3 {
    margin: 13px 0 5px;
  }
  .language-panel {
    padding: 17px;
  }
  .sample-lines {
    gap: 7px;
  }
  .sample-line {
    padding-left: 7px;
  }
  .start-panel {
    padding: 23px 19px;
  }
  .start-actions {
    gap: 12px;
  }
  .footer-brand > span {
    max-width: 115px;
  }
}
@media (max-width: 350px) {
  .hero h1 {
    font-size: 2.31rem;
  }
  .hero-actions .button {
    padding-inline: 9px;
    font-size: 0.78rem;
  }
  .hero-actions .button-glass small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
