:root {
  color: #111;
  background: #fff;
  font: 1rem/1.55 system-ui, "Segoe UI", sans-serif;
  --quiet: #494949;
  --rule: #dedede;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; inline-size: 100%; block-size: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:focus-visible, select:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
html:lang(ko) {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(ja) { font-family: "Yu Gothic", "Hiragino Sans", system-ui, sans-serif; }
html:lang(zh-Hans) { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
html:lang(zh-Hant) { font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif; }
html:lang(ar) { font-family: Tahoma, "Segoe UI", sans-serif; }
html:lang(hi) { font-family: "Nirmala UI", "Devanagari Sangam MN", system-ui, sans-serif; }

.container { inline-size: min(100% - 6rem, 90rem); margin-inline: auto; }
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-block-size: 5rem;
}
.site-header { border-block-end: 1px solid var(--rule); }
.site-footer { border-block-start: 1px solid var(--rule); }
.wordmark {
  font: 800 1.6rem/1 system-ui, "Segoe UI", sans-serif;
  letter-spacing: -.065em;
  white-space: nowrap;
  text-decoration: none;
}
nav, .footer-links, .store-links {
  display: flex;
  gap: clamp(.75rem, 2vw, 1.8rem);
  align-items: center;
}
nav a, .footer-links a { font-size: .94rem; font-weight: 650; }
.language { position: relative; }
.language::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset-inline-end: 1rem;
  inset-block-start: calc(50% - .22rem);
  inline-size: .42rem;
  block-size: .42rem;
  border-inline-end: 1.5px solid #111;
  border-block-end: 1.5px solid #111;
  transform: rotate(45deg);
}
[dir="rtl"] .language::after { transform: rotate(-45deg); }
.language select {
  appearance: none;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  color: #111;
  background: #fff;
  font-family: inherit;
  line-height: 1.2;
  font-size: .89rem;
  font-weight: 600;
  min-block-size: 2.75rem;
  padding-inline: .9rem 2rem;
  max-inline-size: 10.5rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.25fr);
  align-items: center;
  column-gap: clamp(1.2rem, 4vw, 5rem);
  padding-block: clamp(3.75rem, 9vw, 9.5rem);
}
.hero h1 {
  max-inline-size: 12ch;
  font-size: clamp(3.35rem, 7.15vw, 7.9rem);
  line-height: .95;
  font-weight: 820;
  letter-spacing: -.081em;
  text-wrap: balance;
}
html:lang(ko) .hero h1, html:lang(ja) .hero h1,
html:lang(zh) .hero h1, html:lang(ar) .hero h1, html:lang(hi) .hero h1 {
  letter-spacing: -.052em;
  line-height: 1.05;
}
html:lang(ar) .hero h1, html:lang(hi) .hero h1 {
  letter-spacing: normal;
  font-size: clamp(3rem, 6vw, 6.65rem);
  line-height: 1.17;
}
.hero p {
  max-inline-size: 27rem;
  margin-block-start: 1.65rem;
  color: var(--quiet);
  font-size: clamp(1.1rem, 1.48vw, 1.38rem);
  line-height: 1.48;
}
.hero p, .scene p, .calendar p { text-wrap: pretty; }
html:lang(ja), html:lang(zh) { line-break: strict; }
html:is(:lang(ja), :lang(zh)) :is(.hero p, .scene p, .calendar p) {
  word-break: auto-phrase;
  text-wrap: balance;
}
.store-links { margin-block-start: 2rem; gap: .7rem; flex-wrap: wrap; }
.store-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-block-size: 3.2rem;
  padding-inline: 1.15rem;
  border: 1px solid #111;
  border-radius: .32rem;
  font-weight: 750;
  text-decoration: none;
}
.store-link.primary { background: #111; color: #fff; }
.store-link:hover { background: #efefef; }
.store-link.primary:hover { background: #333; }
.hero-art { align-self: center; }

.scenes, .calendar {
  border-block-start: 1px solid var(--rule);
  padding-block: clamp(2.6rem, 5vw, 5.4rem);
}
h2 {
  font-size: clamp(2rem, 4.3vw, 4.2rem);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.06em;
  text-wrap: balance;
}
[dir="rtl"] h2, html:lang(hi) h2 { letter-spacing: normal; }
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.8vw, 3rem);
  margin-block-start: 2.2rem;
}
.scene-mat {
  display: grid;
  place-items: center;
  background: #f4f4f4;
  padding-block: 1.4rem;
  overflow: hidden;
}
.scene:nth-child(2) .scene-mat { background: #1a1a1a; }
.screen {
  position: relative;
  overflow: hidden;
  inline-size: min(65%, 12.75rem);
  aspect-ratio: 440/956;
  border-radius: 1.15rem;
  box-shadow: 0 0 0 1px #c4c4c4, 0 .6rem 1.4rem #0001;
}
.scene:nth-child(2) .screen { box-shadow: 0 0 0 1px #444; }
/* Show the app viewport inside the existing iPhone marketing image. */
.screen img {
  position: absolute;
  width: 133.57%;
  max-width: none;
  left: -16.79%;
  top: -29.65%;
}
.scene figcaption { padding-block-start: 1.3rem; }
.scene h3 { font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.19; text-wrap: balance; }
.scene p { margin-block-start: .35rem; color: var(--quiet); max-inline-size: 33ch; }

.calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.calendar-copy p { max-inline-size: 54ch; margin-block-start: 1.3rem; color: var(--quiet); }
.calendar-copy .privacy { color: #111; font-weight: 650; }
.calendar-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.56;
  max-inline-size: 31rem;
  inline-size: 100%;
  justify-self: end;
}
.calendar-art img {
  position: absolute;
  width: 170%;
  max-width: none;
  right: 0;
  bottom: -4%;
}
.footer-links { flex-wrap: wrap; }

@media (max-width: 65rem) {
  .container { inline-size: calc(100% - 3rem); }
  .hero { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
}
@media (max-width: 45rem) {
  .container { inline-size: calc(100% - 2.5rem); }
  .site-header { min-block-size: 4.15rem; }
  nav .section-link { display: none; }
  .hero, .calendar { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 3rem 2.4rem; row-gap: 1.9rem; }
  .hero h1 { font-size: clamp(3.05rem, 11vw, 5.55rem); }
  html:lang(ar) .hero h1, html:lang(hi) .hero h1 { font-size: clamp(2.7rem, 9vw, 4.5rem); }
  .hero p { margin-block-start: 1rem; }
  .store-links { margin-block-start: 1.3rem; }
  .hero-art { margin-inline: -.45rem; overflow: hidden; }
  .hero-art img { width: 115%; max-width: none; margin-left: -15%; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); margin-block-start: 1.7rem; gap: 2.5rem; }
  .scene-mat { padding-block: 1.3rem; }
  .scene figcaption { padding-block-start: 1rem; }
  .calendar { gap: 1.4rem; }
  .calendar-art { justify-self: center; max-inline-size: 24rem; }
}
@media (max-width: 24rem) {
  .container { inline-size: calc(100% - 1.85rem); }
  .site-header, .site-footer { gap: .6rem; }
  .language select { max-inline-size: 9.75rem; padding-inline: .75rem 1.65rem; }
  .language::after { inset-inline-end: .75rem; }
  .footer-links { gap: .45rem .8rem; }
}
