:root {
  --ink: #241922;
  --muted: #705f6b;
  --paper: #fffafc;
  --soft: #fff0f5;
  --line: #efd9e3;
  --brand: #c30a72;
  --brand-dark: #8f0754;
  --accent: #ffc75f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: var(--brand-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
[data-lang] { display: none !important; }
html[data-locale="ko"] [data-lang="ko"],
html[data-locale="ja"] [data-lang="ja"],
html[data-locale="en"] [data-lang="en"] { display: revert !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 6vw;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}
.brand { color: var(--brand); font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
nav { display: flex; gap: clamp(14px, 3vw, 32px); }
nav a { color: var(--ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.language-select {
  min-height: 36px;
  padding: 0 30px 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}
.language-select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.hero, .app-hero {
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh max(7vw, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(circle at 80% 18%, rgba(255,199,95,.38), transparent 28rem),
    radial-gradient(circle at 12% 70%, rgba(195,10,114,.14), transparent 32rem);
}
.hero h1, .app-hero h1, .legal-intro h1 {
  max-width: 900px;
  margin: .25rem 0 1rem;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .98;
  letter-spacing: -.065em;
}
.app-hero { align-items: center; text-align: center; }
.app-hero h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.eyebrow { margin: 0; color: var(--brand); font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.lead { max-width: 720px; margin: .55rem 0 1.2rem; color: var(--muted); font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
.lead.en { margin-top: -.65rem; font-size: 1rem; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.button.primary { color: white; background: var(--brand); }
.button.secondary { color: var(--brand); background: transparent; }

.section { padding: 9vh max(7vw, calc((100vw - 1120px) / 2)); }
.section.soft { background: var(--soft); }
.section h2 { margin: .45rem 0 1rem; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.08; }
.body-copy { max-width: 700px; color: var(--muted); font-size: 1.15rem; }
.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin-top: 2rem;
  padding: clamp(22px, 4vw, 38px);
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(87,21,57,.08);
  text-decoration: none;
}
.app-card strong, .app-card span span, .app-card em { display: block; }
.app-card strong { font-size: 1.35rem; }
.app-card span span { color: var(--muted); }
.app-card em { margin-top: .45rem; color: var(--brand); font-style: normal; font-weight: 800; }
.love-icon {
  display: inline-flex;
  width: 82px;
  height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
  color: var(--brand-dark);
  background: linear-gradient(145deg, #ffc9da, #ffeff5);
  border: 3px solid white;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(195,10,114,.2);
  line-height: 1;
}
.love-icon b { font-size: 1.05rem; }
.love-icon small { margin-top: 5px; font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.love-icon.large { width: 116px; height: 116px; margin-bottom: 1.6rem; border-radius: 30px; }
.love-icon.large b { font-size: 1.4rem; }
.app-icon {
  width: clamp(124px, 16vw, 168px);
  height: auto;
  margin-bottom: 1.6rem;
  border-radius: 28%;
  box-shadow: 0 20px 52px rgba(195,10,114,.24);
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid article { padding: 26px; border-top: 3px solid var(--brand); background: white; }
.feature-grid article span { color: var(--brand); font-weight: 900; }
.feature-grid h2 { font-size: 1.5rem; }
.feature-grid p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); }
.split h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
.text-link { font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.legal-main { width: min(100% - 32px, 920px); margin: 0 auto; }
.legal-intro { padding: 10vh 0 6vh; }
.legal-intro h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
.legal-intro h1 span { color: var(--brand); }
.legal-intro h1 > [data-lang] { color: inherit; }
.legal-intro > p:last-of-type { color: var(--muted); }
.legal-card {
  margin-bottom: 44px;
  padding: clamp(24px, 6vw, 64px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 45px rgba(74,20,47,.07);
}
.legal-card h2 { margin-top: 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.04em; }
.legal-card h3 { margin-top: 2.35rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: 1.2rem; }
.legal-card li { margin: .55rem 0; }
.legal-card code { overflow-wrap: anywhere; font-size: .9em; }
details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--brand-dark); font-weight: 800; }

.site-footer { padding: 48px 6vw; color: #d6c5ce; background: #251a21; }
.site-footer div:first-child { display: flex; flex-direction: column; }
.site-footer a { color: white; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0; }
.site-footer p { margin: 0; color: #9f8e98; font-size: .82rem; }
.site-footer.compact { margin-top: 70px; }

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 12px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .brand { font-size: 1.05rem; white-space: nowrap; }
  nav { gap: 10px 14px; }
  nav a { font-size: .78rem; }
  .site-header nav { width: 100%; align-items: center; flex-wrap: wrap; justify-content: flex-start; }
  .language-select { min-height: 32px; max-width: 102px; margin-left: auto; padding-left: 9px; font-size: .75rem; }
  .hero, .app-hero, .section { padding-left: 22px; padding-right: 22px; }
  .app-hero h1 { width: 100%; max-width: 100%; font-size: clamp(2rem, 8.5vw, 2.3rem); overflow-wrap: anywhere; }
  .app-hero .lead { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .app-card { grid-template-columns: 1fr; }
  .feature-grid, .split { grid-template-columns: 1fr; }
  .legal-main { width: min(100% - 24px, 920px); }
}

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