@import url("navigation.css");
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #151e30;
  --paper: #f5f0e6;
  --cream: #fff5e4;
  --mint: #cee5d6;
  --muted: #505956;
  --headline: "Instrument Serif", Georgia, serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}
a {
  color: inherit;
}
a:focus-visible,
input:focus-visible + span {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
}
p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}
.wrap {
  width: min(100% - 104px, 1240px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--mint);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip:focus {
  transform: translateY(0);
}

.masthead {
  position: relative;
  isolation: isolate;
  min-height: clamp(700px, 90svh, 950px);
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}
.hero-art,
.masthead::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art {
  object-fit: cover;
  object-position: 58% 65%;
}
.masthead::after {
  content: "";
  background: linear-gradient(90deg, #10182796, transparent 78%);
}
.footer nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}
.footer nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero {
  padding-block: clamp(98px, 14svh, 156px) 140px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero .eyebrow,
.app .eyebrow {
  color: var(--mint);
}
.eyebrow span {
  font-size: 15px;
}
h1,
h2 {
  font-family: var(--headline);
  font-weight: 400;
  letter-spacing: -0.028em;
}
h1 {
  font-size: clamp(85px, 10vw, 152px);
  line-height: 0.85;
}
h2 {
  font-size: clamp(62px, 6.35vw, 98px);
  line-height: 0.87;
}
.hero em,
.app em,
.closing em {
  color: var(--mint);
}
.hero-description {
  max-width: 430px;
  margin-block: 28px;
  color: #f4ebdf;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.52;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 51px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 99px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.primary {
  background: var(--mint);
  color: #172b27;
}
.primary:hover {
  background: #edf8f0;
}
.secondary {
  border-color: #fff5e487;
  color: var(--cream);
}
.secondary:hover {
  background: #fff5e421;
}

.section {
  padding-block: clamp(72px, 9vw, 132px);
}
.guide-layout,
.app-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 6vw, 96px);
}
.guide h2 {
  font-size: clamp(53px, 5.5vw, 86px);
}
.guide em {
  color: #446150;
}
.guide .eyebrow {
  color: #49634f;
}
.guide-copy > p:not(.eyebrow),
.app-copy > p:not(.eyebrow) {
  max-width: 390px;
  margin-block: 23px 25px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.switch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}
.switch legend {
  margin-bottom: 9px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}
.switch label {
  position: relative;
  cursor: pointer;
}
.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.switch label span {
  display: block;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #49634f68;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}
.switch input:checked + span {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.switch input:focus-visible + span {
  outline-color: var(--ink);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}
.observing {
  overflow: hidden;
  border: 1px solid #2e3e3b32;
  border-radius: 18px;
  background: #fffaf1;
}
.sky-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 165px;
  aspect-ratio: 2.5;
  overflow: hidden;
  background: #36354a url("assets/lake.webp") center 65% / cover;
}
.sky-light,
.stars,
.moon {
  position: absolute;
  transition:
    opacity 400ms,
    transform 500ms;
}
.sky-light {
  inset: 0;
  z-index: -1;
  background: #071529;
  opacity: 0.12;
}
.scene-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  color: #fff8e7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: linear-gradient(#101827bd, transparent);
}
.moon {
  top: 32%;
  right: 22%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: -4px 4px #f7e2ad;
  transform: rotate(-18deg);
}
.stars {
  inset: 29% 12% auto 13%;
  color: #fff5e4;
  font-size: 17px;
  letter-spacing: 0.29em;
  opacity: 0;
}
.stars i {
  margin-inline: 12%;
  font-size: 12px;
  font-style: normal;
}
[data-moment="twilight"] .sky-light {
  opacity: 0.39;
}
[data-moment="twilight"] .moon {
  transform: translate(-18px, 24px) rotate(-21deg);
}
[data-moment="twilight"] .stars {
  opacity: 0.63;
}
[data-moment="dark"] .sky-light {
  opacity: 0.78;
}
[data-moment="dark"] .moon {
  opacity: 0;
  transform: translate(-26px, 65px) rotate(-24deg);
}
[data-moment="dark"] .stars {
  opacity: 1;
}
.plan {
  padding: 20px 24px 14px;
}
.plan-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.plan-heading h3 {
  font-family: var(--headline);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}
.plan-heading > span {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plan dl {
  margin-top: 16px;
}
.plan dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #dbd6cc;
  padding-block: 11px;
}
.plan dt,
.plan dd {
  font-size: 13px;
}
.plan dt {
  display: flex;
  gap: 7px;
  font-weight: 700;
}
.plan dt span {
  color: #4f6e5d;
  width: 15px;
  text-align: center;
}
.plan dd {
  color: #414f4c;
  text-align: right;
}

.app {
  background: #192537;
  color: var(--cream);
}
.app-copy > p:not(.eyebrow) {
  color: #dfdfd7;
}
.app .switch label span {
  border-color: #cee5d680;
}
.app .switch input:checked + span {
  background: var(--mint);
  color: var(--ink);
}
.app .switch input:focus-visible + span {
  outline-color: var(--mint);
}
.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 225px));
  justify-content: center;
  align-items: start;
  gap: clamp(13px, 3vw, 34px);
}
.phone-sky {
  padding-top: 42px;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1466;
  object-fit: contain;
  border: 5px solid #0d1420;
  border-radius: clamp(14px, 3vw, 28px);
  background: #0d1420;
}
.phone figcaption {
  margin-top: 13px;
  text-align: center;
  color: #e7e1d4;
  font-size: 13px;
}
.closing {
  position: relative;
  isolation: isolate;
  background: #101827;
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.closing::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(#10182765, #101827e8),
    url("assets/lake.webp") center 62% / cover;
}
.closing-star {
  display: block;
  margin-bottom: 12px;
  color: var(--mint);
  font-size: 28px;
}
.closing p {
  margin-block: 20px 24px;
  line-height: 1.55;
}
.store-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer {
  background: #101827;
  color: var(--cream);
}
.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #fdf3e430;
  padding-block: 24px;
}
.footer .wordmark {
  font-size: 18px;
}

@media (max-width: 900px) {
  .wrap {
    width: min(100% - 64px, 1240px);
  }
  .guide-layout,
  .app-layout {
    gap: 34px;
  }
  h2 {
    font-size: clamp(53px, 7.5vw, 76px);
  }
}
@media (max-width: 700px) {
  .wrap {
    width: min(100% - 40px, 540px);
  }
  .nav {
    padding-block: 15px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 13px;
  }
  .nav-cta {
    padding-inline: 10px;
  }
  .nav-cta span {
    display: none;
  }
  .masthead {
    min-height: max(660px, 86svh);
  }
  .hero-art {
    object-position: 67% bottom;
  }
  .masthead::after {
    background: linear-gradient(#10182758, transparent 75%);
  }
  .hero {
    padding-block: 73px 200px;
  }
  h1 {
    font-size: clamp(68px, 15vw, 105px);
  }
  .hero-description {
    max-width: 295px;
    margin-block: 23px;
  }
  .guide-layout,
  .app-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .phones {
    gap: 14px;
  }
  .phone-sky {
    padding-top: 24px;
  }
}
@media (max-width: 410px) {
  .nav-links {
    gap: 12px;
  }
  .plan {
    padding-inline: 15px;
  }
  .plan dt,
  .plan dd {
    font-size: 12px;
  }
  .footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 360px) {
  .nav-links a:first-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.hero .store-links {
  justify-content: flex-start;
}
.hero .secondary {
  background: #142035b8;
}
.alert-example {
  max-width: 390px;
  margin-block: 0 24px;
  padding: 17px 20px;
  border-radius: 15px;
  background: #dfe9de;
  color: var(--ink);
}
.alert-example div {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
}
.alert-example img {
  border-radius: 5px;
}
.alert-example small {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
}
.alert-example strong {
  display: block;
  margin-block: 10px 3px;
}
.alert-example p {
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 360px) {
  .nav-links a:first-child {
    display: inline;
  }
  .nav-links {
    gap: 6px;
  }
  .nav .wordmark {
    font-size: 18px;
    gap: 5px;
  }
}
html:not(:lang(en)) h1 {
  font-size: clamp(62px, 8vw, 124px);
  line-height: 1;
}
html:lang(ja) h1,
html:lang(zh) h1 {
  font-size: clamp(42px, 6vw, 96px);
  line-height: 1.18;
}
html:not(:lang(en)) h2 {
  overflow-wrap: break-word;
  line-height: 1.03;
}
@media (max-width: 700px) {
  html:not(:lang(en)) h1 {
    font-size: clamp(42px, 11vw, 72px);
  }
  html:not(:lang(en)) .hero {
    padding-top: 52px;
  }
}
