@font-face {
  font-family: "M PLUS Rounded";
  src: url("assets/rounded-heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/nunito-heavy.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("assets/noto-sans-sc.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  src: url("assets/noto-sans-tc.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("assets/noto-sans-devanagari.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #103b31;
  --text: #304b42;
  --forest: #084536;
  --cream: #faf6ee;
  --red: #aa3e26;
  --line: #c2cbbf;
  --edge: clamp(1.25rem, 3.1vw, 3.5rem);
  --heading: "M PLUS Rounded", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --body: system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

:root:lang(en) {
  --heading: "Nunito", system-ui, sans-serif;
}

:root:lang(zh-Hans) {
  --heading: "Noto Sans SC", "PingFang SC", sans-serif;
  --body: var(--heading);
}

:root:lang(zh-Hant) {
  --heading: "Noto Sans TC", "PingFang TC", sans-serif;
  --body: var(--heading);
}

:root:lang(hi) {
  --heading: "Noto Sans Devanagari", "Kohinoor Devanagari", sans-serif;
  --body: var(--heading);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3, .brand {
  font-family: var(--heading);
  font-weight: 900;
  line-height: 1.25;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:is(a, button, summary):focus-visible {
  outline: 3px solid #c25e30;
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - var(--edge) * 2), 90rem);
  margin-inline: auto;
}

.site-header, .hero, .site-footer {
  background: var(--cream);
}

.header-inner, .site-nav, .brand, .download-inner, .footer-inner {
  display: flex;
  align-items: center;
}

.header-inner {
  position: relative;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: clamp(4.5rem, 7.3vw, 7rem);
  border-bottom: 1px solid var(--line);
  gap: 0 1rem;
  padding-block: .25rem;
}

.brand {
  gap: .625rem;
  min-block-size: 44px;
  font-size: clamp(1.375rem, 2.5vw, 2.5rem);
  letter-spacing: -.04em;
}

.brand img {
  width: clamp(2.25rem, 4.5vw, 4.5rem);
  height: auto;
  flex: none;
  border-radius: 25%;
}

.site-nav {
  flex-wrap: wrap;
  column-gap: clamp(.75rem, 3.4vw, 3.75rem);
  font-size: clamp(.875rem, 1.55vw, 1.375rem);
  font-weight: 750;
}

.site-nav a, .footer-inner a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding-block: .5rem;
}

.site-nav a:hover, .footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: flex;
  align-items: center;
  gap: .5em;
  min-block-size: 44px;
  padding: .25rem .625rem;
  border: 1px solid var(--line);
  border-radius: .625rem;
  font-size: .875em;
  list-style: none;
  cursor: pointer;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "";
  width: .45em;
  height: .45em;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: translateY(-.12em) rotate(45deg);
}

.language-menu[open] summary::after {
  transform: translateY(.12em) rotate(225deg);
}

.language-menu ul {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + .375rem);
  inset-inline-end: 0;
  min-width: min(10.5rem, calc(100vw - 2rem));
  margin: 0;
  padding: .375rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 26px #103b3126;
}

.language-menu li a {
  display: flex;
  justify-content: flex-start;
  padding: .375rem .75rem;
  border-radius: .375rem;
  font-family: system-ui, "Hiragino Sans", "PingFang SC", "Kohinoor Devanagari", sans-serif;
  font-size: 1rem;
}

.language-menu a[aria-current="page"] {
  background: #e4ece0;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding-block: clamp(2.5rem, 3.2vw, 3.25rem);
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  letter-spacing: -.045em;
}

.hero h1 span {
  display: block;
}

h1:lang(hi), h2:lang(hi), h3:lang(hi) {
  line-height: 1.35;
  letter-spacing: normal;
}

.hero h1 span + span {
  margin-top: .08em;
  color: var(--red);
}

.hero-copy p {
  max-width: 28em;
  margin-block: clamp(1rem, 2.5vw, 2.1875rem) clamp(1.375rem, 2.8vw, 2.75rem);
  font-size: clamp(1rem, 1.8vw, 1.5625rem);
  font-weight: 600;
  line-height: 1.75;
  color: var(--text);
}

.hero-copy p, .guide-step p, .faq dd {
  word-break: auto-phrase;
  text-wrap: pretty;
}

.hero-photo {
  aspect-ratio: 1.06;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 48% center;
  border-radius: clamp(1.125rem, 2.9vw, 2.75rem);
  background: #e8cda7;
}

.store-link {
  display: inline-block;
  flex: none;
  width: clamp(11.5rem, 17vw, 16.5rem);
  max-width: 100%;
  padding-inline: 1rem;
  margin-inline: -1rem;
}

.store-link img {
  width: 100%;
  height: auto;
}

.store-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}

.store-note {
  color: var(--text);
  font-size: .875rem;
  font-weight: 650;
}

.guide {
  padding-block: clamp(2.75rem, 4.5vw, 4.5rem) clamp(2.75rem, 4.25vw, 4.25rem);
  text-align: center;
  scroll-margin-top: 1.5rem;
}

.guide h2, .download h2 {
  font-size: clamp(1.875rem, 3.7vw, 3.5rem);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.guide h2 span, .download h2 span {
  display: inline-block;
  max-inline-size: 100%;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3.5rem);
  max-width: 77rem;
  margin: clamp(1.75rem, 3.5vw, 3.25rem) auto 0;
}

.screen-link {
  display: inline-grid;
  justify-items: center;
  width: min(100%, 15.5rem);
  vertical-align: top;
}

.screen-link span {
  display: grid;
  place-items: center;
  min-block-size: 44px;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.app-screen {
  width: 100%;
  height: auto;
  border: 1px solid #d7dcd2;
  border-radius: clamp(1rem, 2vw, 1.875rem);
  background: var(--cream);
  box-shadow: 0 7px 22px #103b3110;
}

.guide-step figcaption {
  margin-top: .25rem;
}

.guide-step h3 {
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  letter-spacing: -.03em;
}

.guide-step p {
  max-width: 19em;
  margin: .5rem auto 0;
  color: var(--text);
  font-size: 1rem;
}

.faq {
  background: var(--cream);
  padding-block: clamp(2.75rem, 5vw, 5rem);
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.25rem, 4vw, 3.75rem);
  max-width: 77rem;
}

.faq h2 {
  font-size: clamp(1.75rem, 3.2vw, 3.0625rem);
  letter-spacing: -.04em;
}

.faq dl {
  margin: 0;
}

.faq dl > div {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
}

.faq dl > div:last-child {
  border-bottom: 1px solid var(--line);
}

.faq dt {
  font-size: 1.0625rem;
  font-weight: 750;
}

.faq dd {
  margin: .375rem 0 0;
  color: var(--text);
}

.download {
  background: var(--forest);
  color: var(--cream);
}

.download-inner {
  justify-content: space-between;
  gap: 1.25rem 3rem;
  max-width: 77rem;
  padding-block: clamp(2rem, 3.4vw, 3.25rem);
}

.download h2 {
  font-size: clamp(1.75rem, 3.2vw, 3.0625rem);
}

.footer-inner {
  justify-content: center;
  flex-wrap: wrap;
  column-gap: clamp(1.125rem, 3.4vw, 3rem);
  padding-block: 1rem;
  font-size: .9375rem;
  text-align: center;
}

.screen-viewer {
  width: min(28rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
}

.screen-viewer:not([open]) {
  display: none;
}

.screen-viewer::backdrop {
  background: #0c211bcc;
}

.screen-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem .75rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.screen-viewer h2 {
  font-size: 1.125rem;
}

.screen-viewer button {
  min-height: 44px;
  padding: .25rem .75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.screen-viewer img {
  width: auto;
  height: auto;
  max-height: 78dvh;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: .75rem;
}

@media (max-width: 47.99rem) {
  .site-nav .header-store-link {
    display: none;
  }

  .language-menu {
    position: static;
  }

  .language-menu ul {
    inset-block-start: 100%;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding-block: 2rem 1.875rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8.4vw, 3.5rem);
  }

  .hero-copy p {
    max-width: 26em;
  }

  .hero-photo {
    aspect-ratio: 1.24;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    max-width: 34rem;
    gap: 1.25rem;
  }

  .guide-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
    align-items: center;
    gap: clamp(.875rem, 4vw, 1.5rem);
    text-align: start;
  }

  .guide-step + .guide-step {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
  }

  .guide-step figcaption {
    margin: 0;
  }

  .guide-step h3 {
    font-size: clamp(1.0625rem, 4.75vw, 1.375rem);
  }

  .screen-link {
    width: min(100%, 8.5rem);
    text-align: center;
  }

  .download-inner {
    flex-direction: column;
    text-align: center;
  }

  .download h2 {
    font-size: clamp(1.4375rem, 7.1vw, 1.75rem);
  }

  .faq-inner {
    grid-template-columns: 1fr;
  }
}
