.screenshot-home {
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #ffedd5;
  --navy: #0b1533;
  --copy: #52627d;
  --soft-line: #dbe4ee;
  --soft-blue: #eaf8fb;
  --page: #f8fbfd;
  min-width: 0;
  color: var(--navy);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
}

.screenshot-home .container {
  width: min(1760px, calc(100% - 120px));
}

.screenshot-home :focus-visible {
  outline-color: var(--accent);
}

.screenshot-home .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 1px 8px rgb(15 23 42 / 3%);
  backdrop-filter: blur(14px);
}

.screenshot-home .header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.screenshot-home .wordmark {
  display: inline-flex;
  width: max-content;
  color: var(--navy);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.screenshot-home .wordmark span {
  color: var(--accent);
}

.screenshot-home .site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.screenshot-home .site-nav a,
.screenshot-home .sign-in-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.screenshot-home .site-nav a:hover,
.screenshot-home .sign-in-link:hover {
  color: var(--accent-dark);
  background: transparent;
}

.screenshot-home .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
}

.screenshot-home .header-cta {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 27px;
  border-radius: 15px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 22px rgb(249 115 22 / 18%);
  font-size: 15px;
  font-weight: 700;
}

.screenshot-home .header-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.screenshot-home .reference-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px 0 40px;
  border: 0;
  background:
    linear-gradient(180deg, rgb(246 252 253 / 58%) 0%, rgb(242 251 253 / 34%) 40%, rgb(248 252 253 / 76%) 100%),
    url("./assets/victoria-harbour-hero.png") center top / cover no-repeat;
}

.screenshot-home .reference-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(236 250 252 / 28%), transparent 35% 65%, rgb(236 250 252 / 28%));
  pointer-events: none;
  content: "";
}

.screenshot-home .hero-intro {
  display: block;
  max-width: 1180px;
  margin: 0 auto 26px;
  text-align: center;
}

.screenshot-home .hero-intro h1 {
  max-width: none;
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(40px, 3.35vw, 58px);
  font-weight: 850;
  letter-spacing: -0.052em;
  line-height: 1.06;
}

.screenshot-home .hero-intro h1 span {
  color: var(--accent);
}

.screenshot-home .hero-tagline {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: clamp(18px, 1.3vw, 23px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.screenshot-home .hero-copy {
  max-width: none;
  margin: 7px 0 0;
  color: #71819a;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.4;
}

.screenshot-home .hero-slogan {
  position: absolute;
  z-index: 1;
  display: grid;
  color: #40758a;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.18;
  transform: rotate(-7deg);
  opacity: 0.92;
  pointer-events: none;
}

.screenshot-home .hero-slogan::after {
  width: 58px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.screenshot-home .hero-slogan-left {
  top: 91px;
  left: max(4.5vw, calc((100vw - 1900px) / 2));
  text-align: center;
}

.screenshot-home .hero-slogan-right {
  top: 116px;
  right: max(5vw, calc((100vw - 1900px) / 2));
  font-style: normal;
  text-align: center;
  transform: rotate(-4deg);
}

.screenshot-home #translator.translator-shell {
  position: relative;
  z-index: 2;
  width: min(1370px, 82vw);
  max-width: none;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "languages languages"
    "source result";
  gap: 13px 16px;
  margin: 0 auto;
  padding: 19px 21px 21px;
  overflow: visible;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 18px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 22px 60px rgb(45 88 112 / 14%);
  backdrop-filter: blur(10px);
}

.screenshot-home #translator .translator-language-bar {
  grid-area: languages;
  width: max-content;
  min-height: 41px;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 14px;
  padding: 0 13px;
  border: 1px solid #e1e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.screenshot-home #translator .language-option,
.screenshot-home #translator .language-swap {
  position: static;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.screenshot-home #translator .language-option::after {
  display: none;
}

.screenshot-home #translator .language-option svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.screenshot-home #translator .language-flow-arrow {
  width: 18px;
  height: 18px;
  color: #8290a6;
}

.screenshot-home #translator .language-swap {
  position: absolute;
  top: 21px;
  left: calc(50% - 8px);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  justify-content: center;
  border-radius: 999px;
  color: #61738e;
}

.screenshot-home #translator .language-swap:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.screenshot-home #translator .language-swap svg {
  width: 21px;
  height: 21px;
}

.screenshot-home #translator .translator-source-column {
  grid-area: source;
  min-width: 0;
  display: block;
}

.screenshot-home #translator .translator-panel {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: rgb(255 255 255 / 82%);
}

.screenshot-home #translator .input-panel {
  height: 100%;
}

.screenshot-home #translator .panel-head {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.screenshot-home #translator .panel-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-transform: none;
}

.screenshot-home #translator .input-box {
  position: relative;
}

.screenshot-home #translator textarea {
  width: 100%;
  min-height: 142px;
  display: block;
  padding: 14px 44px 34px 13px;
  border: 1px solid #d7e0eb;
  border-radius: 12px;
  color: #1b2b4a;
  background: #fbfdff;
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 2%);
  font-size: 18px;
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.45;
  resize: none;
}

.screenshot-home #translator textarea:focus {
  border-color: #fb923c;
  outline: 3px solid rgb(249 115 22 / 14%);
  outline-offset: 0;
  box-shadow: none;
}

.screenshot-home #translator .input-clear {
  position: absolute;
  top: 9px;
  right: 8px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #7b8aa0;
  background: transparent;
}

.screenshot-home #translator .input-clear:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.screenshot-home #translator .input-clear svg {
  width: 17px;
  height: 17px;
}

.screenshot-home #translator .count {
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: #71819a;
  font-size: 12px;
  font-weight: 500;
}

.screenshot-home #translator .mini-examples {
  min-height: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
}

.screenshot-home #translator .mini-examples::before {
  display: none;
}

.screenshot-home #translator .mini-examples > span {
  flex: 0 0 100%;
  color: #44536c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.screenshot-home #translator .mini-examples button {
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid #dbe3ed;
  border-radius: 999px;
  color: #42516b;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.screenshot-home #translator .mini-examples button:hover {
  border-color: #fdba74;
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.screenshot-home #translator .input-status {
  min-height: 0;
  margin: 0;
}

.screenshot-home #translator .result-panel {
  grid-area: result;
  min-height: 0;
  display: block;
  padding: 17px 18px 16px;
  border: 1px solid #cae5e9;
  background: rgb(246 253 253 / 88%);
}

.screenshot-home #translator .result-head {
  display: flex;
}

.screenshot-home #translator .script-select-label {
  position: relative;
}

.screenshot-home #translator .script-select-label::after {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--accent-dark);
  border-bottom: 1.5px solid var(--accent-dark);
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
  content: "";
}

.screenshot-home #translator [data-role="output-script-select"] {
  min-height: 30px;
  appearance: none;
  padding: 0 29px 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font: 700 12px/1 inherit;
}

.screenshot-home #translator .result-copy {
  min-height: 153px;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.screenshot-home #translator .cantonese-line,
.screenshot-home #translator .jyutping-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.screenshot-home #translator .cantonese-line {
  min-height: 65px;
  padding: 14px 13px 9px;
  border-radius: 11px 11px 0 0;
  background: linear-gradient(90deg, rgb(240 251 251 / 92%), rgb(231 248 248 / 88%));
}

.screenshot-home #translator .cantonese-result {
  min-width: 0;
  margin: 0;
  color: #111c35;
  font-size: clamp(25px, 1.65vw, 30px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: keep-all;
}

.screenshot-home #translator .interlinear-result {
  display: none !important;
}

.screenshot-home #translator .jyutping-line {
  min-height: 87px;
  align-items: center;
  padding: 8px 13px 13px;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(90deg, rgb(240 251 251 / 92%), rgb(231 248 248 / 88%));
}

.screenshot-home #translator .jyutping-line > div {
  min-width: 0;
}

.screenshot-home #translator .jyutping-line span {
  color: #72849b;
  font-size: 12px;
  font-weight: 500;
}

.screenshot-home #translator .jyutping {
  margin: 4px 0 0;
  color: #60728b;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.screenshot-home #translator .inline-audio {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--accent-dark);
  background: transparent;
}

.screenshot-home #translator .inline-audio:hover,
.screenshot-home #translator .inline-audio.is-playing {
  background: var(--accent-soft);
}

.screenshot-home #translator .inline-audio svg {
  width: 23px;
  height: 23px;
}

.screenshot-home #translator .result-placeholder {
  margin: 0;
  padding: 40px 18px;
  border: 1px dashed #cbd8e5;
  border-radius: 11px;
  color: #71819a;
  background: rgb(255 255 255 / 55%);
  text-align: center;
}

.screenshot-home #translator[data-has-result="true"] .result-placeholder,
.screenshot-home #translator[data-has-result="false"] .cantonese-line,
.screenshot-home #translator[data-has-result="false"] .jyutping-line {
  display: none;
}

.screenshot-home #translator[aria-busy="true"] .result-placeholder::after {
  display: block;
  margin-top: 5px;
  color: var(--accent-dark);
  content: "Translating…";
}

.screenshot-home #translator .demo-notice {
  margin: 9px 0 0;
  color: #b45309;
  font-size: 13px;
}

.screenshot-home #translator .translator-error-row {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.screenshot-home #translator .translator-error-row:has([data-role="error"]:not([hidden])) {
  display: flex;
}

.screenshot-home #translator .translation-error {
  flex: 1;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 600;
}

.screenshot-home #translator [data-role="retry"] {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #fdba74;
  border-radius: 9px;
  color: #9a3412;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.screenshot-home #translator .result-footer {
  display: block;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
}

.screenshot-home #translator[data-has-result="false"] .result-footer {
  display: none;
}

.screenshot-home #translator .result-status {
  min-height: 0;
  margin: 0;
}

.screenshot-home #translator .result-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.screenshot-home #translator .tool-action {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #cfd9e4;
  border-radius: 11px;
  color: #263751;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 1px 2px rgb(15 23 42 / 2%);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}

.screenshot-home #translator .tool-action:hover,
.screenshot-home #translator .tool-action:focus-visible,
.screenshot-home #translator .tool-action.is-playing {
  border-color: #fb923c;
  color: var(--accent-dark);
  background: #fff7ed;
}

.screenshot-home #translator .tool-action svg {
  width: 20px;
  height: 20px;
}

.screenshot-home #translator .primary-result-action {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.screenshot-home #translator .primary-result-action:hover,
.screenshot-home #translator .primary-result-action:focus-visible {
  border-color: var(--accent-dark);
  color: #fff;
  background: var(--accent-dark);
}

.screenshot-home .reference-features {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 28px auto 0;
}

.screenshot-home .reference-features article {
  min-width: 0;
  min-height: 140px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 22px;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 15px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 13px 34px rgb(52 83 104 / 11%);
  backdrop-filter: blur(8px);
}

.screenshot-home .reference-features .feature-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.screenshot-home .reference-features .feature-icon svg {
  width: 29px;
  height: 29px;
}

.screenshot-home .reference-features .feature-icon-orange {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.screenshot-home .reference-features .feature-icon-blue {
  color: #1682d4;
  background: #e0f2fe;
}

.screenshot-home .reference-features h3 {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.screenshot-home .reference-features p {
  margin: 6px 0 0;
  color: #66768f;
  font-size: 14px;
  line-height: 1.45;
}

.screenshot-home .common-phrases-preview {
  padding: 38px 0 34px;
  border: 0;
  background: #fbfdff;
}

.screenshot-home .preview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.screenshot-home .preview-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.screenshot-home .preview-heading p {
  margin: 3px 0 0;
  color: #71819a;
  font-size: 14px;
}

.screenshot-home .preview-heading a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 750;
}

.screenshot-home .preview-heading a span {
  font-size: 23px;
  line-height: 1;
}

.screenshot-home .preview-phrase-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 21px;
}

.screenshot-home .preview-phrase-grid button {
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 11px 18px;
  border: 1px solid #dbe3ed;
  border-radius: 11px;
  color: #273852;
  background: #fff;
  text-align: left;
}

.screenshot-home .preview-phrase-grid button:hover {
  border-color: #fdba74;
  box-shadow: 0 8px 22px rgb(249 115 22 / 9%);
  transform: translateY(-1px);
}

.screenshot-home .preview-phrase-grid span,
.screenshot-home .preview-phrase-grid b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot-home .preview-phrase-grid span {
  font-size: 14px;
  font-weight: 500;
}

.screenshot-home .preview-phrase-grid b {
  color: #53647c;
  font-size: 14px;
  font-weight: 500;
}

.screenshot-home .comparison-section,
.screenshot-home .editorial-section,
.screenshot-home .phrases-section,
.screenshot-home .steps-section,
.screenshot-home .pronunciation-section,
.screenshot-home .faq-section {
  border-color: #e2e8f0;
}

.screenshot-home .section-kicker {
  color: var(--accent-dark);
}

@media (max-width: 1440px) {
  .screenshot-home .container {
    width: min(1320px, calc(100% - 64px));
  }

  .screenshot-home #translator.translator-shell {
    width: min(1180px, 90vw);
  }

  .screenshot-home .hero-slogan {
    font-size: 23px;
  }

  .screenshot-home .hero-slogan-left {
    left: 22px;
  }

  .screenshot-home .hero-slogan-right {
    right: 22px;
  }

  .screenshot-home .reference-features {
    gap: 16px;
  }

  .screenshot-home .reference-features article {
    gap: 13px;
    padding-inline: 17px;
  }
}

@media (max-width: 1120px) {
  .screenshot-home .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .screenshot-home .site-nav {
    justify-content: center;
    gap: 18px;
  }

  .screenshot-home .header-actions {
    gap: 16px;
  }

  .screenshot-home .sign-in-link {
    display: none;
  }

  .screenshot-home .hero-slogan {
    display: none;
  }

  .screenshot-home #translator.translator-shell {
    width: 100%;
  }

  .screenshot-home .reference-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-home .preview-phrase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .screenshot-home .container {
    width: calc(100% - 32px);
  }

  .screenshot-home .header-inner {
    min-height: 66px;
    display: flex;
    gap: 14px;
  }

  .screenshot-home .wordmark {
    font-size: 20px;
  }

  .screenshot-home .site-nav {
    display: none;
  }

  .screenshot-home .header-actions {
    margin-left: auto;
  }

  .screenshot-home .header-cta {
    min-height: 42px;
    padding-inline: 17px;
    border-radius: 12px;
    font-size: 13px;
  }

  .screenshot-home .reference-hero {
    padding: 28px 0 30px;
    background-position: center top;
  }

  .screenshot-home .hero-intro {
    margin-bottom: 19px;
  }

  .screenshot-home .hero-intro h1 {
    font-size: clamp(32px, 9.4vw, 42px);
    line-height: 1.08;
  }

  .screenshot-home .hero-tagline {
    margin-top: 10px;
    font-size: 17px;
  }

  .screenshot-home .hero-copy {
    display: block;
    font-size: 14px;
  }

  .screenshot-home #translator.translator-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "languages"
      "source"
      "result";
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .screenshot-home #translator.translator-shell[data-view="result"] .translator-source-column,
  .screenshot-home #translator.translator-shell[data-view="input"] .translator-source-column,
  .screenshot-home #translator.translator-shell[data-view="result"] .result-panel,
  .screenshot-home #translator.translator-shell[data-view="input"] .result-panel {
    display: block;
  }

  .screenshot-home #translator .translator-language-bar {
    min-height: 40px;
    padding-inline: 11px;
  }

  .screenshot-home #translator .language-option,
  .screenshot-home #translator .language-swap {
    min-height: 38px;
  }

  .screenshot-home #translator .language-swap {
    top: 14px;
    left: auto;
    right: 14px;
  }

  .screenshot-home #translator .translator-panel,
  .screenshot-home #translator .input-panel,
  .screenshot-home #translator .result-panel {
    padding: 15px;
  }

  .screenshot-home #translator textarea {
    min-height: 130px;
    font-size: 17px;
  }

  .screenshot-home #translator .mini-examples {
    overflow: hidden;
  }

  .screenshot-home #translator .mini-examples button {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .screenshot-home #translator .result-copy {
    min-height: 145px;
  }

  .screenshot-home #translator .cantonese-result {
    font-size: clamp(23px, 7vw, 29px);
  }

  .screenshot-home #translator .jyutping {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .screenshot-home .reference-features {
    margin-top: 18px;
  }

  .screenshot-home .reference-features article {
    min-height: 122px;
  }

  .screenshot-home .common-phrases-preview {
    padding: 28px 0;
  }
}

@media (max-width: 540px) {
  .screenshot-home .container {
    width: calc(100% - 24px);
  }

  .screenshot-home .wordmark {
    font-size: 18px;
  }

  .screenshot-home .header-cta {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .screenshot-home .hero-intro h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .screenshot-home .hero-tagline {
    font-size: 15px;
  }

  .screenshot-home .hero-copy {
    padding-inline: 8px;
    font-size: 13px;
  }

  .screenshot-home #translator .translator-language-bar {
    width: calc(100% - 45px);
    gap: 9px;
  }

  .screenshot-home #translator .language-option {
    font-size: 13px;
  }

  .screenshot-home #translator .result-actions {
    gap: 7px;
  }

  .screenshot-home #translator .tool-action {
    min-height: 46px;
    gap: 5px;
    padding-inline: 7px;
    font-size: 12px;
  }

  .screenshot-home #translator .tool-action svg {
    width: 18px;
    height: 18px;
  }

  .screenshot-home .reference-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .screenshot-home .reference-features article {
    min-height: 106px;
    padding: 16px;
  }

  .screenshot-home .reference-features .feature-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .screenshot-home .preview-heading {
    align-items: flex-start;
  }

  .screenshot-home .preview-heading h2 {
    font-size: 22px;
  }

  .screenshot-home .preview-heading a {
    font-size: 12px;
    text-align: right;
  }

  .screenshot-home .preview-phrase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .screenshot-home .preview-phrase-grid button {
    min-height: 70px;
    padding: 10px 12px;
  }

  .screenshot-home .preview-phrase-grid span,
  .screenshot-home .preview-phrase-grid b {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .screenshot-home .header-cta {
    display: none;
  }

  .screenshot-home #translator .result-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .screenshot-home #translator .script-select-label,
  .screenshot-home #translator [data-role="output-script-select"] {
    max-width: 100%;
  }

  .screenshot-home #translator .result-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-home #translator .result-actions .tool-action:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-home .header-cta,
  .screenshot-home .preview-phrase-grid button {
    transition: none;
  }
}
