:root {
  color-scheme: light;
  --forest: #12372a;
  --forest-2: #1e513d;
  --lime: #dff56b;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --ink: #17211c;
  --muted: #69736d;
  --line: #d7ddd7;
  --shadow: 0 20px 60px rgba(18, 55, 42, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 4%, rgba(223, 245, 107, 0.48), transparent 24rem),
    linear-gradient(180deg, #faf8f2 0%, var(--cream) 72%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid rgba(18, 55, 42, 0.17);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark,
.platform-icon {
  display: inline-grid;
  place-items: center;
  background: var(--forest);
  color: white;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px 13px 13px 4px;
  font-size: 20px;
}

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

.brand strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(18, 55, 42, 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.status-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50a66f;
  box-shadow: 0 0 0 4px rgba(80, 166, 111, 0.15);
}

.hero {
  padding: 78px 0 48px;
}

.eyebrow,
.platform-kicker {
  margin: 0 0 13px;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 7.6vw, 92px);
  font-weight: 820;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 620px;
  margin: 32px 0 0;
  color: #49534d;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.7;
  word-break: keep-all;
}

.production-notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  border: 1px solid rgba(18, 55, 42, 0.18);
  border-radius: 22px;
  padding: 20px 22px;
  background: rgba(223, 245, 107, 0.3);
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-weight: 850;
}

.production-notice strong {
  font-size: 15px;
}

.production-notice p {
  margin: 6px 0 0;
  color: #465147;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.production-notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.platform-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.platform-card::after {
  position: absolute;
  right: -54px;
  bottom: -74px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(223, 245, 107, 0.18);
  content: "";
  pointer-events: none;
}

.ios-card::after {
  background: rgba(18, 55, 42, 0.07);
}

.card-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.platform-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  font-size: 20px;
}

.ios-card .platform-icon {
  background: #202522;
}

.platform-kicker {
  margin-bottom: 4px;
  font-size: 10px;
}

.card-heading h2 {
  margin: 0;
  font-size: clamp(21px, 3vw, 26px);
  letter-spacing: -0.045em;
}

.availability {
  border-radius: 999px;
  padding: 7px 9px;
  background: #edf0ed;
  color: #5d6760;
  font-size: 11px;
  font-weight: 750;
}

.availability.is-ready {
  background: #e2f4e7;
  color: #24613b;
}

.availability.is-error {
  background: #f8e4df;
  color: #9b3725;
}

.build-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px 0 22px;
}

.build-meta div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.build-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.build-meta dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 760;
}

.download-button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-radius: 17px;
  padding: 0 20px;
  background: var(--forest);
  color: white;
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.download-button:hover {
  background: #1b4b39;
  transform: translateY(-2px);
}

.download-button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.download-button[aria-disabled="true"] {
  background: #a9b0ab;
  pointer-events: none;
}

.install-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding-left: 22px;
  color: #515c55;
  font-size: 13px;
  line-height: 1.6;
}

.checksum {
  position: relative;
  z-index: 1;
  margin-top: 21px;
  border-top: 1px dashed var(--line);
  padding-top: 17px;
  color: var(--muted);
  font-size: 12px;
}

.checksum summary {
  cursor: pointer;
  font-weight: 700;
}

.checksum code {
  display: block;
  margin-top: 10px;
  color: #324039;
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.checksum p,
.channel-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.channel-note {
  position: relative;
  z-index: 1;
  margin-top: 21px;
  border-top: 1px dashed var(--line);
  padding-top: 17px;
}

.help-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 24px;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--forest);
  color: white;
}

.help-panel .eyebrow {
  color: var(--lime);
}

.help-panel h2 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1.2;
  word-break: keep-all;
}

.help-panel > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 2px 0;
  color: var(--muted);
  font-size: 11px;
}

footer p {
  margin: 0;
}

.noscript-notice {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  border-radius: 14px;
  padding: 14px 18px;
  background: #8e2f20;
  color: white;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 620px);
  }

  .site-header {
    min-height: 80px;
  }

  .status-chip {
    padding: 7px 10px;
  }

  .hero {
    padding: 52px 0 34px;
  }

  .hero-copy {
    margin-top: 23px;
  }

  .platform-grid,
  .help-panel {
    grid-template-columns: 1fr;
  }

  .platform-card {
    border-radius: 25px;
  }

  .help-panel {
    gap: 22px;
  }

  footer {
    display: grid;
  }
}

@media (max-width: 440px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .production-notice {
    padding: 17px;
  }

  .card-heading {
    grid-template-columns: auto 1fr;
  }

  .availability {
    grid-column: 2;
    justify-self: start;
  }

  .build-meta {
    grid-template-columns: 1fr 1fr;
  }

  .build-meta div:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
