.my-locale-switcher {
  position: absolute;
  z-index: 40;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.my-locale-switcher > summary {
  min-width: 66px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(60, 46, 215, 0.14);
  border-radius: 14px;
  color: #3c2ed7;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(42, 32, 95, 0.1);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
}

.my-locale-switcher > summary::-webkit-details-marker {
  display: none;
}

.my-locale-switcher > summary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.my-locale-switcher[open] > summary,
.my-locale-switcher > summary:hover,
.my-locale-switcher > summary:focus-visible {
  border-color: rgba(60, 46, 215, 0.32);
  background: #fff;
  box-shadow: 0 14px 34px rgba(42, 32, 95, 0.16);
}

.my-locale-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(258px, calc(100vw - 28px));
  max-height: min(470px, calc(100svh - 100px));
  padding: 9px;
  border: 1px solid rgba(60, 46, 215, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(24, 27, 52, 0.2);
  overflow: auto;
  display: grid;
  gap: 3px;
}

.my-locale-menu a {
  min-height: 42px;
  padding: 0 11px;
  border-radius: 11px;
  color: #373b46;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  font-weight: 590;
  text-decoration: none;
}

.my-locale-menu a:hover,
.my-locale-menu a:focus-visible {
  color: #3c2ed7;
  background: #f1efff;
}

.my-locale-menu a[aria-current="true"] {
  color: #3c2ed7;
  background: #ece9ff;
  font-weight: 700;
}

.my-locale-code {
  color: #8a8f98;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

@media (min-width: 1025px) {
  .site-header {
    height: 146px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 88px 50px;
    align-items: center;
  }

  .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .desktop-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-right: 0;
    gap: clamp(22px, 2.7vw, 42px);
    font-size: 14px;
  }

  .my-locale-switcher {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    top: auto;
    right: auto;
    transform: none;
  }

  .hero {
    min-height: calc(100svh - 146px);
  }

  .about-hero {
    min-height: calc(100svh - 224px);
  }

  html:not(:lang(en)) .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  }

  html:not(:lang(en)) :is(.about-hero, .spaces-hero, .gallery-hero) {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  html:not(:lang(en)) .saved-item-hero {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }
}

.site-footer nav {
  flex-wrap: wrap;
  row-gap: 10px;
  text-align: center;
}

html:not(:lang(en)) .desktop-nav {
  gap: clamp(18px, 2.25vw, 34px);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .site-header {
    height: 128px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 78px 42px;
    align-items: center;
  }

  .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .mobile-menu {
    grid-column: 3;
    grid-row: 1;
  }

  .my-locale-switcher {
    position: relative;
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    justify-self: end;
    top: auto;
    right: auto;
    transform: none;
  }

  .my-locale-switcher > summary {
    min-width: 58px;
    height: 46px;
    border-radius: 15px;
  }
}

@media (max-width: 430px) {
  .my-locale-switcher > summary {
    min-width: 52px;
    padding: 0 10px;
  }

  .my-locale-switcher > summary svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .my-locale-switcher *,
  .my-locale-switcher *::before,
  .my-locale-switcher *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

html:lang(ja),
html:lang(ko),
html:lang(zh-Hant-TW) {
  line-break: strict;
  word-break: normal;
}

/*
 * The source layout was typeset around short English headlines. Localized copy
 * must stay inside its own column instead of crossing into product imagery.
 */
html:not(:lang(en)) .hero h1 {
  max-width: 100%;
  font-size: clamp(46px, 4.15vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.052em;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

html:not(:lang(en)) main :is(h1, h2, h3) {
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

html:not(:lang(en)) :is(
    .hero-copy,
    .about-hero__copy,
    .chat-section__copy,
    .spaces-hero__copy,
    .spaces-section__copy,
    .gallery-hero__copy,
    .gallery-section__copy,
    .saved-item-hero__copy,
    .saved-item-section__copy,
    .support-hero__intro,
    .support-coverage__intro,
    .delete-hero__intro,
    .legal-hero__copy
  ) {
  min-width: 0;
}

html:not(:lang(en)) :is(
    .about-hero,
    .spaces-hero,
    .gallery-hero,
    .saved-item-hero,
    .support-hero__intro,
    .delete-hero__intro,
    .legal-hero__copy
  ) h1 {
  max-width: 100%;
  font-size: clamp(40px, 3.9vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

html:not(:lang(en)) :is(.chat-section h2, .about-next h2) {
  max-width: 100%;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.09;
  letter-spacing: -0.044em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

html:not(:lang(en)) :is(
    .section-intro h2,
    .privacy h2,
    .download h2,
    .spaces-section h2,
    .gallery-section h2,
    .saved-item-section h2,
    .saved-actions h2,
    .support-coverage__intro h2,
    .support-closing h2,
    .delete-process__heading h2,
    .delete-details h2
  ) {
  max-width: 100%;
  font-size: clamp(36px, 3.7vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.042em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

html:not(:lang(en)) .feature-nav a,
html:not(:lang(en)) .feature-nav > span {
  min-width: 0;
  padding-inline: 14px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 1024px) {
  html:not(:lang(en)) .about-page .feature-nav {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  html:not(:lang(en)) .about-page .feature-nav::-webkit-scrollbar {
    display: none;
  }

  html:not(:lang(en)) .about-page .feature-nav a,
  html:not(:lang(en)) .about-page .feature-nav > span {
    min-width: 116px;
  }
}

html:not(:lang(en)) .hidden-mode h3 {
  max-width: 100%;
  font-size: clamp(38px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 620px) {
  html:not(:lang(en)) .hero h1 {
    font-size: clamp(42px, 13vw, 52px);
  }

  html:not(:lang(en)) :is(
      .about-hero,
      .spaces-hero,
      .gallery-hero,
      .saved-item-hero,
      .support-hero__intro,
      .delete-hero__intro,
      .legal-hero__copy
    ) h1,
  html:not(:lang(en)) :is(.chat-section h2, .about-next h2) {
    font-size: clamp(36px, 10.5vw, 46px);
  }

  html:not(:lang(en)) .hidden-mode h3 {
    font-size: clamp(36px, 10vw, 42px);
  }

  html:not(:lang(en)) :is(
      .section-intro h2,
      .privacy h2,
      .download h2,
      .spaces-section h2,
      .gallery-section h2,
      .saved-item-section h2,
      .saved-actions h2,
      .support-coverage__intro h2,
      .support-closing h2,
      .delete-process__heading h2,
      .delete-details h2
    ) {
    font-size: clamp(33px, 9.5vw, 43px);
  }
}

/*
 * Full-site responsive hardening. Every localized route shares the original
 * page CSS, so these final rules form one predictable mobile safety layer.
 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-header,
main,
.site-footer,
main :is(section, article, div, figure, nav) {
  min-width: 0;
}

main :is(h1, h2, h3, p, li, a, span),
.site-header a,
.site-footer a {
  max-width: 100%;
  overflow-wrap: break-word;
}

main :is(img, video, svg, canvas),
.site-footer img {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .site-header {
    width: calc(100% - 32px);
  }

  .mobile-menu,
  .my-locale-switcher {
    min-width: 0;
  }

  .mobile-menu nav {
    max-width: calc(100vw - 32px);
  }

  :is(
      .hero-copy,
      .about-hero__copy,
      .chat-section__copy,
      .group-copy,
      .private-intro,
      .control-intro,
      .spaces-hero__copy,
      .spaces-section__copy,
      .spaces-content__copy,
      .spaces-privacy__copy,
      .gallery-hero__copy,
      .gallery-section__copy,
      .gallery-share__copy,
      .gallery-add__copy,
      .saved-item-hero__copy,
      .saved-item-section__copy,
      .saved-actions__intro,
      .support-hero__intro,
      .support-coverage__intro,
      .delete-hero__intro,
      .legal-hero__copy
    ) {
    width: 100%;
    min-width: 0;
  }

  :is(
      .about-hero__visual,
      .screen-pair,
      .hidden-mode__screens,
      .moment-stage,
      .control-visual,
      .spaces-hero__visual,
      .spaces-product-visual,
      .gallery-hero__visual,
      .gallery-product-visual,
      .gallery-add-visual,
      .saved-launch,
      .saved-product-shot
    ) {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .hero h1,
  html:not(:lang(en)) .hero h1 {
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.052em;
  }

  :is(.section-intro h2, .privacy h2, .download h2) {
    font-size: clamp(37px, 10.5vw, 46px);
    line-height: 1.07;
  }

  :is(
      .about-page .about-hero h1,
      .about-page .chat-section h2,
      .about-page .about-next h2,
      .spaces-hero h1,
      .spaces-section h2,
      .gallery-hero h1,
      .gallery-section h2,
      .saved-item-hero h1,
      .saved-item-section h2,
      .saved-actions h2,
      .support-hero__intro h1,
      .support-coverage__intro h2,
      .support-closing h2,
      .delete-hero__intro h1,
      .legal-hero__copy h1
    ) {
    font-size: clamp(35px, 10vw, 44px);
    line-height: 1.07;
    letter-spacing: -0.045em;
    white-space: normal;
    text-wrap: balance;
  }

  :is(.delete-process__heading h2, .delete-details h2) {
    font-size: clamp(31px, 8.8vw, 38px);
    line-height: 1.1;
  }

  :is(
      .chat-nav,
      .spaces-nav,
      .gallery-nav,
      .saved-item-nav,
      .feature-nav
    ) a,
  :is(
      .chat-nav,
      .spaces-nav,
      .gallery-nav,
      .saved-item-nav,
      .feature-nav
    ) > span {
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .legal-document__section :is(a, p, li),
  .support-email-address {
    overflow-wrap: anywhere;
  }

  .site-footer {
    width: calc(100% - 32px);
  }

  .site-footer nav {
    width: 100%;
    gap: 11px 20px;
  }
}

@media (max-width: 430px) {
  .hero h1,
  html:not(:lang(en)) .hero h1 {
    font-size: 40px;
  }

  :is(
      .about-page .about-hero h1,
      .about-page .chat-section h2,
      .about-page .about-next h2,
      .spaces-hero h1,
      .spaces-section h2,
      .gallery-hero h1,
      .gallery-section h2,
      .saved-item-hero h1,
      .saved-item-section h2,
      .saved-actions h2,
      .support-hero__intro h1,
      .support-coverage__intro h2,
      .support-closing h2,
      .delete-hero__intro h1,
      .legal-hero__copy h1
    ) {
    font-size: 36px;
  }

  .footer-end {
    flex-wrap: wrap;
    gap: 14px;
  }
}
