/* ─────────────────────────────────────────────────────────────
   Menkoni — 단일 라이트 팔레트 (다크모드 없음)
   ───────────────────────────────────────────────────────────── */

:root {
  color-scheme: light; /* 브라우저 강제 다크 변환 방지 */

  --bg: oklch(97% 0.001 106.424);
  --card: oklch(99.2% 0.001 106.424);
  --fg: oklch(24% 0.006 106.424);
  --muted: oklch(52% 0.008 106.424);
  --rule: oklch(89% 0.004 106.424);

  --brand: #fa491f;
  /* 본문 크기에서 #FA491F 는 밝은 배경 대비가 부족하다. 글자·링크에는 어두운 변형을 쓴다. */
  --brand-ink: oklch(50% 0.17 33);

  --measure: 46rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.5rem;
  background: var(--bg);
  color: var(--fg);
  font-family: "Noto Serif KR", ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all; /* 한국어 어절 단위 줄바꿈 */
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--brand);
}

/* ── header ──────────────────────────────────────────────── */

.site-head {
  /* 히어로의 장식 SVG 는 position:absolute 라 정적인 헤더보다 위에 그려진다.
     헤더를 스태킹 컨텍스트 위로 올려 워드마크·언어 스위처가 무늬에 묻히지 않게 한다. */
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.75rem 0 0;
}

.wordmark {
  display: block;
  line-height: 0;
}

/* 워드마크 원본 2139×438. 비율을 못박아 왜곡과 레이아웃 이동을 막는다. */
.wordmark img {
  display: block;
  height: 30px;
  width: auto;
  aspect-ratio: 2139 / 438;
}

.lang-switch {
  display: flex;
  gap: 0.875rem;
  font-size: 0.875rem;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.lang-switch [aria-current="true"] {
  color: var(--fg);
}

/* ── hero + 장식 SVG ─────────────────────────────────────── */

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
}

/* 컨텐츠 폭 우상단 모서리를 원점으로 뻗어나가는 동심 호.
   마스크로 좌하단을 향해 사라진다.
   right:0 인 것이 중요하다. 바깥으로 내밀면 좁은 화면에서 가로 스크롤이
   생기는데, body/html 의 overflow 는 뷰포트로 전파되어 요소 박스에서
   잘리지 않으므로 CSS 로 막을 수 없다. 애초에 컨텐츠 폭 안에서 끝낸다. */
.hero-accent {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 26rem;
  height: 20rem;
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
}

.lede {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22em;
}

@media (max-width: 40rem) {
  /* 좁은 화면에서는 헤더와 겹치지 않도록 아래로 내리고 더 작게 둔다. */
  .hero-accent {
    top: 0.5rem;
    right: 0;
    width: 13rem;
    height: 11rem;
    opacity: 0.75;
  }
}

/* ── 섹션 구분 무늬 ──────────────────────────────────────── */

/* 브랜드 컬러 사선 해칭 띠. 양 끝은 마스크로 흐려 선이 끊긴 느낌을 없앤다. */
.divider {
  height: 12px;
  margin: 3.25rem 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='12'%3E%3Cpath d='M-1 13L10 -1' stroke='%23fa491f' stroke-width='1.1' stroke-opacity='0.42'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 18%,
    #000 58%,
    transparent 96%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 18%,
    #000 58%,
    transparent 96%
  );
}

/* ── sections ────────────────────────────────────────────── */

main {
  padding-bottom: 1rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.125rem;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.prose {
  max-width: 34em;
}

/* ── 앱 카드 (무늬를 넣은 유일한 섹션) ───────────────────── */

.app-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.75rem;
}

/* 미세한 도트 그리드. 우상단에서만 보이도록 마스크해 본문을 방해하지 않는다. */
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='1.6' cy='1.6' r='1.6' fill='%23fa491f' fill-opacity='0.16'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(
    115% 115% at 100% 0%,
    #000 0%,
    transparent 62%
  );
  mask-image: radial-gradient(115% 115% at 100% 0%, #000 0%, transparent 62%);
}

.app-card > * {
  position: relative;
  z-index: 1;
}

/* MomSpeaking 로고 원본 1222×701. 비율 고정 + contain 으로 잘림·왜곡을 막는다. */
.app-logo {
  display: block;
  height: 58px;
  width: auto;
  aspect-ratio: 1222 / 701;
  object-fit: contain;
  flex: none;
}

.app-body {
  flex: 1 1 16rem;
  min-width: 0;
}

.app-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.app-head h3 {
  margin: 0;
}

.badge {
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  padding: 0 0.5rem;
  border-radius: 999px;
  color: var(--brand-ink);
  background: color-mix(in oklab, var(--brand) 13%, transparent);
  white-space: nowrap;
}

.meta {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0.25rem 0 0.75rem;
}

/* ── 사업자 정보 ─────────────────────────────────────────── */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(8.5rem, max-content) 1fr;
  gap: 0.4rem 1.75rem;
  font-size: 0.9375rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.facts .alt {
  color: var(--muted);
}

@media (max-width: 34rem) {
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts dt {
    font-size: 0.8125rem;
  }

  .facts dd {
    margin-bottom: 0.875rem;
  }
}

/* ── footer ──────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding: 1.75rem 0 3.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.site-foot p {
  margin: 0;
}
