:root {
  --bg: #0f1115;
  --surface: #1a1d23;
  --surface-2: #23272f;
  --line: #2a2e36;
  --ink: #f2f3f5;
  --ink-2: #a3a9b4;
  --ink-3: #6f7682;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 90, 31, .14);
  --phone: #2a2d34;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --radius: 20px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-2: #eef0f3;
    --line: #e4e6ea;
    --ink: #16181d;
    --ink-2: #5b616e;
    --ink-3: #8a909b;
    --accent: #e94a10;
    --accent-soft: #fff0e9;
    --phone: #16181d;
    --shadow: 0 20px 60px rgba(16, 24, 40, .18);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 상단 */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.lang:hover { color: var(--ink); }

/* 히어로 */
.hero { display: grid; gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(36px, 8vw, 60px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 18px; color: var(--ink-2); margin: 0 0 32px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px; min-height: 56px;
  text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }
.store-apple { background: var(--accent); color: var(--accent-ink); }
.store-apple:hover { filter: brightness(1.08); }
.store-play { background: var(--surface-2); color: var(--ink-3); cursor: default; }
.hero-shot { justify-self: center; }

.phone {
  width: 280px; border-radius: 40px; overflow: hidden;
  border: 8px solid var(--phone); box-shadow: var(--shadow);
  background: #0f1115;
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.2fr 1fr; padding-top: 56px; padding-bottom: 96px; }
  .phone.big { width: 320px; }
}

/* 섹션 */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 12px; }
.lead { color: var(--ink-2); margin: 0 0 40px; }

.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.features li { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.features .ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.features .ic svg { width: 24px; height: 24px; }
.features h3 { font-size: 20px; margin-bottom: 8px; }
.features p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* 스크린샷 */
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 20px 32px; margin: 0 -20px;
  list-style: none; scrollbar-width: thin;
}
.shots li { flex: none; scroll-snap-align: center; }
.shots .phone { width: 220px; border-radius: 30px; border-width: 6px; box-shadow: none; }
.shots p { text-align: center; color: var(--ink-2); font-size: 15px; margin: 12px 0 0; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { background: var(--surface); border-radius: 16px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px;
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--ink-3);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); }
.faq details a { color: var(--accent); }

/* 마무리 CTA */
.cta { text-align: center; }
.cta .stores { justify-content: center; }
.cta img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 20px; }

/* 푸터 */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-3); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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