/* Korean-specific typography and line-breaking.
   Keep this separate from the English/Japanese display system. */

html[lang="ko"] {
  word-break: keep-all;
  line-break: strict;
}

html[lang="ko"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  letter-spacing: -0.012em;
}

html[lang="ko"] :where(h1, h2, h3, p, li, a, span) {
  overflow-wrap: break-word;
}

html[lang="ko"] :where(h1, h2, h3) {
  word-break: keep-all;
  text-wrap: balance;
}

html[lang="ko"] :where(p, li) {
  word-break: keep-all;
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
}

/* Korean display type should feel like a modern utility, not editorial Myungjo. */
html[lang="ko"] .hero h1,
html[lang="ko"] .launch-panel h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 720;
  letter-spacing: -0.047em;
}

html[lang="ko"] .hero h1 {
  max-width: 10.6em;
  font-size: clamp(54px, 4.75vw, 68px);
  line-height: 1.08;
}

html[lang="ko"] .hero-lede {
  max-width: 32em;
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: -0.022em;
}

html[lang="ko"] .eyebrow {
  letter-spacing: .09em;
}

html[lang="ko"] .flow-line,
html[lang="ko"] .hero-trust,
html[lang="ko"] .site-nav,
html[lang="ko"] .language-switch {
  letter-spacing: -0.015em;
}

html[lang="ko"] .site-nav a,
html[lang="ko"] .nav-cta {
  white-space: nowrap;
}

/* Section titles need less scale and more breathing room in Korean. */
html[lang="ko"] .section h2,
html[lang="ko"] .privacy-band h2,
html[lang="ko"] .product-intro h2,
html[lang="ko"] .problem-layout h2,
html[lang="ko"] .positioning-band h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

html[lang="ko"] .section-heading,
html[lang="ko"] .product-intro {
  max-width: 760px;
}

html[lang="ko"] .section-heading h2,
html[lang="ko"] .product-intro h2 {
  max-width: 13.5em;
}

html[lang="ko"] .problem-layout h2 {
  max-width: 12em;
  font-size: clamp(34px, 3.2vw, 46px);
}

html[lang="ko"] .problem-layout > div:last-child > p {
  max-width: 36em;
  line-height: 1.78;
}

html[lang="ko"] .product-card h3,
html[lang="ko"] .output-proof-copy h3,
html[lang="ko"] .output-secondary h3 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

html[lang="ko"] .product-card p,
html[lang="ko"] .step p,
html[lang="ko"] .output-proof-copy p,
html[lang="ko"] .output-secondary p,
html[lang="ko"] .trial-card,
html[lang="ko"] .privacy-copy p {
  line-height: 1.75;
  letter-spacing: -0.018em;
}

html[lang="ko"] .positioning-band {
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
}

html[lang="ko"] .positioning-band p {
  max-width: 38em;
}

html[lang="ko"] .use-case-list li {
  line-height: 1.55;
}

/* Wide desktop: prevent the Korean copy column from becoming too wide. */
@media (min-width: 1440px) {
  html[lang="ko"] .hero {
    grid-template-columns: minmax(430px, .76fr) minmax(0, 1.24fr);
    gap: 74px;
  }

  html[lang="ko"] .hero-copy {
    max-width: 590px;
  }
}

/* Laptop: keep the headline from collapsing into awkward 1-word final lines. */
@media (min-width: 1024px) and (max-width: 1439px) {
  html[lang="ko"] .hero {
    grid-template-columns: minmax(390px, .82fr) minmax(0, 1.18fr);
  }

  html[lang="ko"] .hero h1 {
    max-width: 10.3em;
    font-size: clamp(50px, 4.8vw, 62px);
  }
}

/* Tablet: let Korean copy use the full line before stacking evidence. */
@media (max-width: 900px) {
  html[lang="ko"] .hero-copy {
    max-width: 680px;
  }

  html[lang="ko"] .hero h1 {
    max-width: 12em;
    font-size: clamp(50px, 8.2vw, 64px);
  }

  html[lang="ko"] .positioning-band {
    grid-template-columns: 1fr;
  }
}

/* Mobile: smaller type, generous line height, and natural Korean phrase wrapping. */
@media (max-width: 767px) {
  html[lang="ko"] .hero h1 {
    max-width: 9.8em;
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.043em;
    text-wrap: wrap;
  }

  html[lang="ko"] .hero-lede {
    max-width: 28em;
    font-size: 16.5px;
    line-height: 1.75;
  }

  html[lang="ko"] .section h2,
  html[lang="ko"] .privacy-band h2,
  html[lang="ko"] .product-intro h2,
  html[lang="ko"] .problem-layout h2 {
    max-width: 12em;
    font-size: clamp(31px, 8.4vw, 42px);
    line-height: 1.2;
  }

  html[lang="ko"] .hero-trust li {
    width: fit-content;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  html[lang="ko"] .hero h1 {
    max-width: 9.4em;
    font-size: clamp(37px, 10.8vw, 46px);
  }

  html[lang="ko"] .brand-logo {
    max-width: 148px;
  }
}
