:root {
  --paper: #f8f4ed;
  --paper-deep: #eee8de;
  --sheet: #fffdf9;
  --ink: #26221f;
  --navy: #243041;
  --muted: #746d67;
  --line: #d9d0c5;
  --terracotta: #d96f4f;
  --terracotta-dark: #aa5137;
  --gold: #9b8235;
  --serif: "Noto Serif KR", Georgia, serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--navy);
  color: white;
}

.skip-link:focus {
  top: 15px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(217 208 197 / 75%);
  background: rgb(248 244 237 / 90%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 38px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--terracotta-dark);
  border-radius: 50%;
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
}

.app-header nav {
  display: flex;
  gap: 32px;
}

.app-header nav a,
.header-back {
  font-size: 13px;
  text-decoration: none;
}

.header-back {
  justify-self: end;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.app-intent-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 32px auto 0;
  padding: 22px 26px;
  border: 1px solid #d3c4ae;
  background: var(--sheet);
}

.app-intent-summary[hidden] {
  display: none;
}

.app-intent-summary strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
}

.app-intent-summary p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: 90px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 100px 0;
}

.eyebrow,
.section-number {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.app-hero h1,
.feature h2,
.gallery-heading h2,
.final-download h2 {
  margin: 22px 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.35;
}

.app-hero h1 {
  font-size: clamp(48px, 5.2vw, 76px);
}

.app-hero h1 em {
  color: var(--terracotta-dark);
  font-style: normal;
}

.hero-description {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-visual {
  justify-self: center;
  width: min(390px, 100%);
}

.hero-visual > img {
  width: 100%;
}

.app-screen-image {
  border: 1px solid rgb(109 97 86 / 22%);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgb(55 46 38 / 9%);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}

.trust-strip p {
  margin: 0;
  padding: 25px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.trust-strip p:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 17px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 10px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 110px;
  align-items: center;
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
  padding: 140px 0;
}

.feature h2,
.gallery-heading h2,
.final-download h2 {
  font-size: clamp(38px, 4.4vw, 58px);
}

.feature-copy > p:not(.section-number) {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.feature-points {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.feature-points span {
  margin-right: 15px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 10px;
}

.text-link {
  display: inline-flex;
  gap: 15px;
  margin-top: 30px;
  color: var(--terracotta-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.feature-poster {
  margin: 0;
}

.feature-poster img {
  width: 100%;
}

.feature-poster figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.feature-discovery {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
}

.gallery-section {
  padding: 130px 0;
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.gallery-heading {
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto 55px;
}

.gallery-heading h2 {
  color: white;
}

.gallery-heading > p:last-child {
  color: #bac0c9;
}

.screen-gallery {
  display: grid;
  grid-auto-columns: minmax(260px, 340px);
  grid-auto-flow: column;
  gap: 22px;
  width: 100%;
  padding: 0 max(24px, calc((100vw - 1060px) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #7f8792 transparent;
}

.screen-gallery figure {
  margin: 0;
  scroll-snap-align: start;
}

.screen-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 570 / 1160;
}

.screen-frame img {
  position: absolute;
  inset: 0;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: auto;
}

.screen-gallery figcaption {
  margin-top: 13px;
  color: #d9dde3;
  font-size: 11px;
  text-align: center;
}

.feature-search {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.filter-list span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--navy);
  font-size: 11px;
}

.feature-meaning {
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
}

.meaning-posters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.final-download {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 80px;
  align-items: center;
  min-height: 720px;
  padding: 80px max(24px, calc((100vw - 1060px) / 2));
  overflow: hidden;
  background: #1d2734;
  color: white;
}

.final-download > div {
  position: relative;
  z-index: 2;
}

.final-download h2 {
  color: white;
}

.final-download > div > p:not(.section-number) {
  color: #bcc2ca;
}

.final-download > img {
  align-self: end;
}

.app-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
  padding: 45px max(24px, calc((100vw - 1060px) / 2));
  background: #171e27;
  color: white;
}

.app-footer strong {
  font-family: var(--serif);
}

.app-footer p {
  margin: 4px 0 0;
  color: #929aa5;
  font-size: 10px;
}

.app-footer div:nth-child(2) {
  display: flex;
  gap: 25px;
}

.app-footer a {
  color: #d8dce2;
  font-size: 11px;
  text-decoration: none;
}

.app-footer > p {
  grid-column: 1 / -1;
}

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

  .app-header nav {
    display: none;
  }

  .app-hero {
    gap: 50px;
  }

  .feature {
    gap: 60px;
  }

  .feature-meaning {
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    width: calc(100% - 32px);
    min-height: 66px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .brand small {
    display: none;
  }

  .header-back {
    padding: 7px 10px;
    font-size: 10px;
  }

  .app-intent-summary {
    grid-template-columns: 1fr;
    gap: 8px;
    width: calc(100% - 40px);
    margin-top: 20px;
    padding: 20px;
  }

  .app-hero {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    padding: 70px 0 95px;
  }

  .app-hero h1 {
    font-size: 43px;
  }

  .hero-description {
    font-size: 15px;
  }

  .store-actions {
    flex-direction: column;
  }

  .hero-visual {
    width: min(320px, calc(100% - 22px));
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip p:nth-child(2) {
    border-right: 0;
  }

  .trust-strip p:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .feature,
  .feature-discovery,
  .feature-search,
  .feature-meaning {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    padding: 95px 0;
  }

  .feature h2,
  .gallery-heading h2,
  .final-download h2 {
    font-size: 37px;
  }

  .feature-search .feature-poster {
    order: 2;
  }

  .feature-poster {
    width: min(330px, 100%);
    justify-self: center;
  }

  .gallery-section {
    padding: 95px 0;
  }

  .gallery-heading {
    width: calc(100% - 40px);
  }

  .screen-gallery {
    grid-auto-columns: minmax(240px, 76vw);
    padding-inline: 20px;
  }

  .meaning-posters {
    gap: 9px;
  }

  .final-download {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 90px 20px 0;
  }

  .final-download > img {
    width: min(310px, 88%);
    justify-self: center;
  }

  .app-footer {
    grid-template-columns: 1fr;
  }

  .app-footer div:nth-child(2) {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
