:root {
  --cream: #F3EDDF;
  --cream-deep: #EAE1CC;
  --ink: #2B2620;
  --ink-soft: #6B6154;
  --pink: #DB2777;
  --pink-deep: #B91C5C;
  --line: rgba(43, 38, 32, 0.12);
  --card: #FFFFFF;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 237, 223, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.lang-toggle button.active {
  background: var(--pink);
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 64px 24px 40px;
}
.hero-icon-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
}
.hero-icon-wrap img {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(43, 38, 32, 0.18);
  display: block;
}
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--pink);
}
.corner.tl { top: -10px; left: -10px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.corner.tr { top: -10px; right: -10px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.corner.bl { bottom: -10px; left: -10px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.corner.br { bottom: -10px; right: -10px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.hero h1 {
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.hero p.tagline {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 auto 32px;
  max-width: 480px;
}

/* ---------- download buttons ---------- */
.download-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43,38,32,0.18); }
.store-btn.primary { background: var(--pink); border-color: var(--pink); }
.store-btn.disabled {
  background: transparent;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  cursor: default;
}
.store-btn.disabled:hover { transform: none; box-shadow: none; }
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn .label small { display: block; font-weight: 400; font-size: 11px; opacity: 0.85; }

.hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- sections ---------- */
section.block { padding: 40px 24px; }
.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 36px;
}

.about-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
}
.about-card p { margin: 0 0 14px; color: var(--ink); }
.about-card p:last-child { margin-bottom: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.disclaimer {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.disclaimer .mark {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}
footer .foot-links {
  margin-bottom: 12px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
footer .foot-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
footer .foot-links a:hover { color: var(--pink); }

/* ---------- legal doc pages ---------- */
.legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  margin: 32px 0 56px;
}
.legal h1 { font-size: 26px; margin-top: 0; }
.legal h2 { font-size: 17px; margin: 32px 0 8px; color: var(--pink-deep); }
.legal p, .legal li { color: var(--ink); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--ink-soft); font-size: 13px; margin-bottom: 28px; }
@media (max-width: 640px) {
  .legal { padding: 24px; }
}

[data-lang] { display: none; }
[data-lang].lang-active { display: block; }
span[data-lang].lang-active { display: inline; }
