:root {
  --black: #0b0c10;
  --panel: #111218;
  --white: #fbfef9;
  --muted: #a6a6a6;
  --line: #2a2b31;
  --pink: #e40066;
  --pink-soft: rgba(228, 0, 102, 0.16);
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 77% 17%, rgba(228, 0, 102, 0.09), transparent 26rem),
    var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: var(--page);
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  text-decoration: none;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-button,
.header-download {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-button {
  min-width: 46px;
  padding: 0 12px;
}

.header-download {
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  text-decoration: none;
}

.language-button:hover,
.header-download:hover {
  border-color: #5c5d64;
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  width: var(--page);
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: 52px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: clamp(56px, 8vw, 118px);
}

.hero-copy {
  padding-bottom: 18px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--pink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.07em;
}

h1 {
  max-width: 700px;
  margin: 24px 0 26px;
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 span {
  color: var(--pink);
}

.hero-description {
  max-width: 570px;
  margin: 0;
  color: #c8c9cc;
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.72;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

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

.store-button {
  min-width: 174px;
  min-height: 62px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #4a4b51;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.store-button-primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.store-button-primary:hover {
  background: #e6e9e4;
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  margin-bottom: 1px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.7;
}

.store-button strong {
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.store-icon {
  width: 24px;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.play-mark {
  width: 23px;
  height: 26px;
  display: block;
  background: conic-gradient(from 30deg at 32% 50%, #00a8e8, #00a676 33%, #f9dc5c 62%, #df2935 84%, #00a8e8);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.availability {
  margin: 15px 0 0;
  color: #73747a;
  font-size: 12px;
}

.life-card {
  width: min(100%, 472px);
  justify-self: end;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(17, 18, 24, 0.86);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.card-kicker {
  color: #777980;
  font-size: 11px;
}

.card-heading h2 {
  margin: 7px 0 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.week-output {
  color: var(--pink);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.grid-wrap {
  position: relative;
  width: min(100%, 310px);
  margin: 0 auto;
}

#lifeGrid {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
  touch-action: manipulation;
}

.grid-tooltip {
  position: absolute;
  z-index: 2;
  min-width: max-content;
  padding: 7px 9px;
  border: 1px solid #3c3d44;
  border-radius: 8px;
  background: #1a1b21;
  color: #d9dadd;
  font-size: 11px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -125%);
  transition: opacity 100ms ease;
}

.grid-tooltip.visible {
  opacity: 1;
}

.age-control {
  margin-top: 20px;
}

.range-labels {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a6a7ac;
  font-size: 12px;
}

#ageValue {
  color: var(--white);
  font-weight: 750;
}

#ageRange {
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(to right, var(--pink) var(--range-progress), #33343a var(--range-progress));
  outline: none;
}

#ageRange::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid var(--panel);
  border-radius: 50%;
  appearance: none;
  background: var(--white);
  box-shadow: 0 0 0 1px #717279;
  cursor: grab;
}

#ageRange::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 4px solid var(--panel);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px #717279;
  cursor: grab;
}

#ageRange:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--pink-soft);
}

.card-note {
  margin: 16px 0 0;
  color: #686970;
  font-size: 11px;
  line-height: 1.55;
}

.quiet-promise {
  width: var(--page);
  margin: 0 auto;
  padding: 34px 0 86px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.quiet-promise p {
  margin: 0;
  color: #d1d2d5;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.quiet-promise .promise-index {
  margin-right: 12px;
  color: #55565c;
  font-size: 11px;
}

footer {
  width: var(--page);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1c1d22;
  color: #64656b;
  font-size: 12px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  :root {
    --page: min(100% - 38px, 680px);
  }

  .hero {
    min-height: 0;
    padding: 70px 0 84px;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .store-actions {
    justify-content: center;
  }

  .life-card {
    justify-self: center;
  }

  .quiet-promise {
    gap: 18px;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100% - 28px);
  }

  .site-header {
    height: 74px;
  }

  .header-download {
    display: none;
  }

  .hero {
    padding: 54px 0 64px;
    gap: 56px;
  }

  h1 {
    margin-top: 19px;
    font-size: clamp(44px, 13vw, 62px);
  }

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

  .store-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .store-button {
    min-width: 0;
    padding: 9px 12px;
    gap: 8px;
  }

  .store-button strong {
    font-size: 14px;
  }

  .life-card {
    padding: 20px;
    border-radius: 24px;
  }

  .quiet-promise {
    padding: 30px 0 62px;
    grid-template-columns: 1fr;
  }

  footer {
    padding: 24px 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
