:root {
  color: #1f1b17;
  background: #f6f1e7;
  font-family: ui-serif, Georgia, Cambria, 'Times New Roman', 'Noto Serif KR', serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.page {
  margin: 0 auto;
  max-width: 860px;
  min-height: 100vh;
  padding: 48px 22px 72px;
}

.top {
  align-items: center;
  border-bottom: 1px solid rgba(31, 27, 23, 0.12);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 18px;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.nav a {
  color: #766c61;
  font-size: 14px;
  text-decoration: none;
}

.hero {
  padding: 72px 0 40px;
}

h1 {
  font-size: clamp(34px, 7vw, 64px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 18px;
}

p {
  color: #514941;
  font-size: 16px;
  line-height: 1.72;
}

.lead {
  color: #514941;
  font-size: 19px;
  max-width: 640px;
}

.muted {
  color: #766c61;
  font-size: 14px;
  line-height: 1.55;
}

.button {
  border: 0;
  background: #1f1b17;
  border-radius: 8px;
  color: #fffaf0;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  margin: 10px 0;
  padding: 12px 16px;
  text-decoration: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button.secondary {
  background: #fffaf0;
  border: 1px solid rgba(31, 27, 23, 0.16);
  color: #1f1b17;
}

.invite-panel {
  align-items: flex-start;
  background: #fffaf0;
  border: 1px solid rgba(31, 27, 23, 0.11);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
  max-width: 420px;
  padding: 18px;
}

.invite-code {
  color: #1f1b17;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 38px;
  letter-spacing: 8px;
  line-height: 1.2;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.store-link {
  border: 1px solid rgba(31, 27, 23, 0.16);
  border-radius: 8px;
  color: #514941;
  font-weight: 700;
  padding: 12px 16px;
  text-decoration: none;
}

.store-link.recommended {
  background: #1f1b17;
  color: #fffaf0;
}

.footer {
  border-top: 1px solid rgba(31, 27, 23, 0.12);
  color: #766c61;
  font-size: 13px;
  margin-top: 54px;
  padding-top: 18px;
}

@media (max-width: 560px) {
  .page {
    padding-top: 28px;
  }

  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 48px;
  }
}

/* Legal and support pages */
.legal-page {
  --legal-body: #4a443b;
  --legal-cream: #f2ede1;
  --legal-dot: #b7a883;
  --legal-eyebrow: #a2917a;
  --legal-ink: #262320;
  --legal-line: #dfd4be;
  --legal-muted: #8a8177;
  --legal-tan: #e6d9bc;

  background: var(--legal-cream);
  color: var(--legal-ink);
  font-family:
    'Noto Sans KR',
    -apple-system,
    BlinkMacSystemFont,
    'Apple SD Gothic Neo',
    Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.legal-page main a {
  color: var(--legal-ink);
  text-decoration: none;
}

.legal-page main a:hover {
  color: var(--legal-muted);
}

.legal-page .page {
  margin: 0 auto;
  max-width: 820px;
  padding: 152px 32px 120px;
}

.legal-page .eyebrow {
  color: var(--legal-eyebrow);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  margin: 0 0 14px;
}

.legal-page h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 14px;
  word-break: keep-all;
}

.legal-page .updated {
  color: var(--legal-muted);
  font-size: 15px;
  margin: 0;
}

.legal-page section {
  margin-top: 52px;
}

.legal-page section:first-of-type {
  margin-top: 56px;
}

.legal-page h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 18px;
  word-break: keep-all;
}

.legal-page p {
  color: var(--legal-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  margin: 0 0 18px;
  text-wrap: pretty;
  word-break: keep-all;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.legal-page ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-page li {
  color: var(--legal-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  padding-left: 19px;
  position: relative;
  text-wrap: pretty;
  word-break: keep-all;
}

.legal-page li::before {
  background: var(--legal-dot);
  border-radius: 50%;
  content: '';
  height: 5px;
  left: 0;
  position: absolute;
  top: 12px;
  width: 5px;
}

.legal-page .notice {
  background: var(--legal-tan);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  padding: 26px 30px;
  text-wrap: pretty;
  word-break: keep-all;
}

.legal-page .notice p {
  color: var(--legal-ink);
  font-weight: 500;
  margin: 0;
}

.legal-page .button {
  background: var(--legal-ink);
  border-radius: 999px;
  color: #f6f1e6;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  margin-top: 24px;
  padding: 17px 34px;
}

.legal-page .button:hover {
  background: #3a352f;
  color: #f6f1e6;
}

.legal-page .inline-link {
  color: #6f6558;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .footer {
  border-top: 1px solid var(--legal-line);
  color: var(--legal-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  gap: 20px;
  justify-content: space-between;
  margin-top: 96px;
  padding-top: 36px;
}

@media (max-width: 640px) {
  .legal-page .page {
    padding: 116px 20px 90px;
  }

  .legal-page h1 {
    font-size: 34px;
  }

  .legal-page h2 {
    font-size: 23px;
  }

  .legal-page p,
  .legal-page li {
    font-size: 16px;
  }
}

/* Landing page */
.landing {
  background: #f2ede1;
  color: #262320;
  font-family: 'Noto Sans KR', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.landing a {
  text-decoration: none;
}

.landing main {
  overflow: hidden;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgb(242 237 225 / 88%);
  display: flex;
  gap: 28px;
  height: 80px;
  left: 0;
  padding: 0 48px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.site-header a {
  text-decoration: none;
}

.site-brand {
  align-items: center;
  display: flex;
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 600;
  gap: 14px;
  margin-right: auto;
  white-space: nowrap;
}

.site-brand img,
.hero-lockup img,
.download-lockup img {
  border-radius: 22%;
  display: block;
}

.site-brand img {
  flex: none;
  height: 40px;
  width: 40px;
}

.site-nav {
  display: grid;
  gap: 0;
  grid-template-columns: 150px 90px 90px 110px;
  justify-content: center;
  width: 440px;
}

.site-nav a,
.footer-nav a {
  color: #6f6558;
  font-size: 15px;
  white-space: nowrap;
}

.site-nav a {
  text-align: center;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: #262320;
}

.site-nav a[aria-current='page'] {
  color: #262320;
  font-weight: 600;
}

.pill-button {
  background: #262320;
  border-radius: 999px;
  color: #f6f1e6;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px;
  white-space: nowrap;
}

.header-cta {
  flex: none;
  padding-inline: 12px;
  text-align: center;
  width: 108px;
}

.language-switch {
  background: rgb(38 35 32 / 7%);
  border-radius: 999px;
  display: flex;
  flex: none;
  gap: 2px;
  padding: 3px;
}

.language-switch button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #6f6558;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
}

.language-switch button[aria-pressed='true'] {
  background: #262320;
  color: #f6f1e6;
}

.language-switch button:focus-visible {
  outline: 2px solid #8a8177;
  outline-offset: 2px;
}

.landing-hero {
  align-items: center;
  display: flex;
  gap: 100px;
  justify-content: center;
  min-height: max(700px, 92svh);
  padding: 130px max(48px, calc((100vw - 1280px) / 2)) 80px;
  position: relative;
}

.hero-phone {
  animation: dear-float 6s ease-in-out infinite;
  height: 736px;
  width: 340px;
}

.hero-shot {
  animation: dear-float 6s ease-in-out infinite;
  height: min(78svh, 780px);
  object-fit: cover;
  object-position: top;
  position: absolute;
  right: max(8vw, calc((100vw - 980px) / 2));
  top: 54%;
  translate: 0 -50%;
  width: auto;
  border: 11px solid #262320;
  border-radius: 48px;
  box-shadow: 0 48px 100px rgb(38 35 32 / 24%);
}

@keyframes dear-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.hero-copy {
  max-width: 680px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-lockup,
.download-lockup {
  align-items: center;
  display: flex;
  gap: 24px;
}

.hero-lockup span {
  font-family: 'Noto Serif KR', serif;
  font-size: 42px;
  font-weight: 600;
}

.landing h1,
.landing h2 {
  border: 0;
  font-family: 'Noto Serif KR', serif;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
  word-break: keep-all;
}

.landing h1 {
  font-size: 64px;
  line-height: 1.26;
  margin-top: 34px;
}

.landing h2 {
  font-size: 50px;
  line-height: 1.32;
}

.landing p {
  color: #6f6558;
  font-size: 21px;
  line-height: 1.75;
  margin: 28px 0 0;
  word-break: keep-all;
}

html[lang='en'] .landing p,
html[lang='en'] .landing h1,
html[lang='en'] .landing h2 {
  overflow-wrap: anywhere;
  word-break: normal;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.store-button {
  align-items: center;
  border: 1px solid #c9bca2;
  border-radius: 999px;
  display: inline-flex;
  font-size: 17px;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  min-width: 170px;
  padding: 17px 30px;
}

.store-button.primary {
  background: #262320;
  border-color: #262320;
  color: #f6f1e6;
}

.store-button.secondary {
  color: #262320;
}

.store-button.disabled {
  cursor: default;
  opacity: 0.62;
}

.feature-band,
.feature-stack {
  align-items: center;
  background: #f2ede1;
  display: flex;
  gap: 88px;
  justify-content: center;
  min-height: 100svh;
  padding: 130px max(48px, calc((100vw - 1380px) / 2));
}

.feature-stack {
  flex-direction: column;
  gap: 68px;
}

.dark {
  background: #262320;
  color: #f6f1e6;
}

.muted-band {
  background: #eae3d3;
}

.feature-copy {
  max-width: 650px;
}

.feature-copy p,
.center-copy p {
  margin-top: 24px;
}

.dark p {
  color: #b9ad9a;
}

.eyebrow {
  color: #9a876b;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-bottom: 24px;
}

.dark .eyebrow {
  color: #c1b28d;
}

.phone-pair,
.phone-grid {
  display: flex;
  flex: none;
  gap: 34px;
  justify-content: center;
}

.phone-frame {
  aspect-ratio: 1170 / 2532;
  background: #262320;
  border: 10px solid #262320;
  border-radius: 44px;
  box-shadow: 0 38px 80px rgb(38 35 32 / 20%);
  flex: none;
  height: 648px;
  margin: 0;
  overflow: hidden;
  width: 300px;
}

.dark .phone-frame {
  background: #0f0d0b;
  border-color: #0f0d0b;
  box-shadow: 0 42px 80px rgb(0 0 0 / 46%);
}

.phone-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.phone-frame.offset {
  margin-top: 68px;
}

.center-copy {
  max-width: 900px;
  text-align: center;
}

.phone-grid {
  flex-wrap: wrap;
  max-width: 1400px;
}

.phone-step {
  margin: 0;
  text-align: center;
}

.phone-step .phone-frame {
  height: 605px;
  width: 280px;
}

.phone-step figcaption {
  color: #5a5248;
  font-size: 17px;
  font-weight: 500;
  margin-top: 20px;
}

.widget-grid {
  gap: 48px;
}

.membership-band .phone-frame {
  height: 691px;
  width: 320px;
}

.download-section {
  align-items: center;
  background: #f2ede1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92svh;
  padding: 140px 32px 54px;
  text-align: center;
}

.download-lockup h2 {
  font-size: 58px;
}

.download-section .store-buttons {
  justify-content: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-top: 96px;
}

.download-section small {
  color: #9a876b;
  font-size: 13px;
  margin-top: 22px;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .site-header {
    padding-inline: 28px;
  }

  .site-nav {
    display: none;
  }

  .landing-hero {
    flex-direction: column;
    padding-inline: 36px;
  }

  .feature-band {
    flex-direction: column;
  }

  .feature-copy {
    max-width: 760px;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 10px;
    height: 68px;
    max-width: 100vw;
    overflow: hidden;
    padding-inline: 18px;
    width: 100vw;
  }

  .site-brand {
    font-size: 17px;
    gap: 10px;
  }

  .site-brand img {
    height: 34px;
    width: 34px;
  }

  .pill-button {
    font-size: 14px;
    padding: 10px 18px;
  }

  .header-cta {
    display: none;
  }

  .language-switch button {
    font-size: 12px;
    padding: 7px 10px;
  }

  .language-switch {
    margin-left: auto;
    position: absolute;
    right: 18px;
  }

  .site-brand span {
    display: none;
  }

  .landing-hero {
    align-items: center;
    gap: 54px;
    min-height: auto;
    padding: 112px 22px 80px;
  }

  .hero-copy {
    flex: none;
    max-width: none;
    width: calc(100vw - 44px);
  }

  .hero-phone {
    border-radius: 36px;
    border-width: 8px;
    height: auto;
    width: min(76vw, 320px);
  }

  .hero-shot {
    height: 66svh;
    left: 50%;
    right: auto;
    top: 36%;
    translate: -50% -50%;
  }

  .hero-lockup {
    gap: 14px;
  }

  .hero-lockup img {
    height: 62px;
    width: 62px;
  }

  .hero-lockup span {
    font-size: 28px;
  }

  html[lang='en'] .hero-lockup span {
    font-size: 23px;
  }

  .landing h1 {
    font-size: 42px;
    margin-top: 24px;
  }

  .landing h2 {
    font-size: 34px;
  }

  .landing p {
    font-size: 17px;
    line-height: 1.7;
  }

  .landing p br {
    display: none;
  }

  .store-buttons {
    flex-direction: column;
    max-width: calc(100vw - 44px);
    width: 100%;
  }

  .store-button {
    flex: none;
    font-size: 15px;
    min-width: 0;
    padding: 14px 18px;
    width: 100%;
  }

  .landing p br {
    display: initial;
  }

  .feature-band,
  .feature-stack {
    gap: 52px;
    min-height: auto;
    padding: 94px 22px;
  }

  .feature-copy {
    text-align: left;
  }

  .center-copy {
    text-align: left;
    width: 100%;
  }

  .eyebrow {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .phone-pair {
    gap: 14px;
    width: 100%;
  }

  .phone-pair .phone-frame {
    border-radius: 28px;
    border-width: 6px;
    height: auto;
    width: calc(50% - 7px);
  }

  .phone-frame.offset {
    margin-top: 34px;
  }

  .phone-grid {
    display: grid;
    gap: 38px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .phone-step .phone-frame,
  .widget-grid .phone-frame {
    border-radius: 28px;
    border-width: 6px;
    height: auto;
    width: 100%;
  }

  .phone-step figcaption {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 14px;
  }

  .widget-grid .phone-frame:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 7px);
  }

  .membership-band .phone-frame {
    border-radius: 36px;
    border-width: 8px;
    height: auto;
    width: min(76vw, 320px);
  }

  .download-section {
    min-height: 88svh;
    padding-inline: 22px;
  }

  .download-lockup {
    gap: 16px;
  }

  .download-lockup img {
    height: 74px;
    width: 74px;
  }

  .download-lockup h2 {
    font-size: 38px;
  }

  .footer-nav {
    gap: 14px 20px;
    margin-top: 76px;
  }
}

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

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-shot {
    animation: none;
  }
}

/* Invite landing */
.invite-page {
  background: radial-gradient(120% 90% at 50% 0%, #fbf7ee 0%, #f2ede1 60%, #ece5d6 100%);
  min-height: 100vh;
}

.invite-top {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 520px;
  padding: 18px 20px 0;
}

.invite-brand {
  align-items: center;
  display: flex;
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 600;
  gap: 10px;
  text-decoration: none;
}

.invite-brand img {
  border-radius: 22%;
  display: block;
}

.invite-main {
  margin: 0 auto;
  max-width: 520px;
  padding: 28px 20px 48px;
}

.invite-card {
  background: #fffdf8;
  border: 1px solid rgb(38 35 32 / 8%);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgb(38 35 32 / 8%);
  padding: 34px 24px 26px;
  text-align: center;
}

.invite-mark {
  border-radius: 22%;
  display: block;
  margin: 0 auto 18px;
}

.invite-card h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.invite-lead {
  color: #6f6558;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto 24px;
  max-width: 34ch;
}

.invite-code-block {
  background: #f6f1e6;
  border-radius: 16px;
  margin-bottom: 22px;
  padding: 16px 12px 18px;
}

.invite-code-label {
  color: #8a8073;
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.invite-code {
  color: #262320;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  /* 8자 + 자간이 좁은 화면에서 넘치지 않도록 뷰포트에 연동한다. */
  font-size: clamp(24px, 7.5vw, 32px);
  font-weight: 600;
  letter-spacing: clamp(2px, 1.4vw, 6px);
  line-height: 1.25;
}

.invite-cta {
  background: #262320;
  border: 0;
  border-radius: 999px;
  color: #f6f1e6;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  min-height: 52px;
  width: 100%;
}

.invite-cta:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.invite-ghost {
  background: none;
  border: 0;
  color: #6f6558;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  margin-top: 6px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: 100%;
}

.invite-ghost:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.invite-status {
  color: #6f6558;
  font-size: 14px;
  margin: 2px 0 0;
  min-height: 20px;
}

.invite-install {
  margin-top: 28px;
  text-align: center;
}

.invite-install-title {
  color: #6f6558;
  font-size: 15px;
  margin: 0 0 12px;
}

.invite-stores {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-store {
  border: 1px solid rgb(38 35 32 / 18%);
  border-radius: 999px;
  color: #262320;
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 50px;
  text-decoration: none;
}

/* display:block 가 [hidden] 기본값을 덮어쓰므로 명시한다. */
.invite-store[hidden] {
  display: none;
}

.invite-hint {
  color: #8a8073;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px auto 0;
  max-width: 36ch;
}

.invite-footer {
  border-top: 1px solid rgb(38 35 32 / 10%);
  color: #8a8073;
  font-size: 13px;
  margin-top: 36px;
  padding-top: 18px;
  text-align: center;
}

.invite-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-bottom: 10px;
}

.invite-footer a {
  color: #6f6558;
  text-decoration: none;
}

.invite-footer p {
  color: #8a8073;
  font-size: 13px;
  margin: 0;
}
