/* VNPAY typography override.
 * Inter is the current brand-aligned webfont; component sizes and line-heights
 * remain in styles.css so the Figma-derived layout stays stable.
 */

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

/* Keep display copy visually strong after moving from Gilroy to Inter. */
.hero-content h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading h2,
.network-copy>strong:first-child,
.network-copy .network-number {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.site-header .nav-link,
.section-heading p,
.howto-tabs .nav-link,
.step-copy,
.footer-content p {
  font-weight: 500;
}

.btn-vnpay,
.hero-btn,
.benefit-body h3,
.offer-card h3,
.footer-brand-block h2,
.footer-content h3,
.footer-links a {
  font-weight: 700;
}


/* The source hero is composed on a 1440x700 canvas. On wider viewports, do
 * not upscale that composition to fill the browser: keep it at the design
 * width and center it. This avoids stretching/softening the artwork and keeps
 * the crop identical to the Figma frame. The section background fills any
 * extra space outside the artwork. */
@media (min-width: 1441px) {
  .hero-image {
    width: 1440px;
    max-width: none;
    height: 700px;
    margin: 0 0 0 auto;
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    right: 0;
    left: auto;
    width: 1440px;
  }

  .hero-content {
    top: 224px;
  }
}

@media (max-width: 991.98px) {
  .hero-content {
    top: auto;
    bottom: 52px;
  }
}

/* Mobile hero polish: retain contrast around the copy without washing the
 * whole photo in blue. Keep the image anchored to the right edge so the
 * payment/person side of the key visual is never cropped away. */
@media (max-width: 767.98px) {
  .hero-content {
    top: auto;
    bottom: 36px;
  }

  .hero-image {
    object-position: right center;
  }

  .hero-overlay {
    background: linear-gradient(90deg,
        rgba(24, 53, 217, .78) 0%,
        rgba(24, 53, 217, .52) 44%,
        rgba(24, 53, 217, .18) 72%,
        rgba(24, 53, 217, .04) 100%);
  }

  .hero-content h1,
  .hero-content p {
    text-shadow: 0 1px 10px rgba(12, 30, 95, .22);
  }
}

@media (max-width: 479.98px) {
  .hero-content {
    bottom: 28px;
  }

  .hero-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px;
  }

  .hero-btn {
    width: calc(50% - 6px);
    min-width: 0;
    margin: 0 !important;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ========================================================
   KOREAN TYPOGRAPHY OVERRIDE (<html lang="ko"> & [data-lang="ko"])
   ======================================================== */
html[lang="ko"] body,
[data-lang="ko"] body,
:lang(ko) {
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Only the document body may set the default rhythm: a bare :lang(ko) rule also matches
 * every inline child, so a <span> inside a heading would re-set line-height to 1.6 and
 * undo the tighter heading line-heights below. */
html[lang="ko"] body,
[data-lang="ko"] body {
  line-height: 1.6;
}

/* Hero Section */
html[lang="ko"] .hero-content h1,
[data-lang="ko"] .hero-content h1 {
  font-size: 44px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

html[lang="ko"] .hero-content p,
[data-lang="ko"] .hero-content p {
  font-size: 21px;
  line-height: 1.45;
}

html[lang="ko"] .hero-btn,
[data-lang="ko"] .hero-btn {
  font-size: 20px;
  line-height: 28px;
}

/* Section Headings */
html[lang="ko"] .section-heading h2,
[data-lang="ko"] .section-heading h2 {
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

html[lang="ko"] .section-heading p,
[data-lang="ko"] .section-heading p {
  font-size: 16px;
  line-height: 1.6;
}

/* Feature cards & Highlights */
html[lang="ko"] .benefit-body h3,
[data-lang="ko"] .benefit-body h3,
html[lang="ko"] .offer-card h3,
[data-lang="ko"] .offer-card h3 {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}

html[lang="ko"] .benefit-body p,
[data-lang="ko"] .benefit-body p {
  font-size: 12px;
  line-height: 1.65;
}

/* How to use tabs & step descriptions */
html[lang="ko"] .howto-tabs .nav-link,
[data-lang="ko"] .howto-tabs .nav-link {
  font-size: 18px;
  letter-spacing: 0;
}

html[lang="ko"] .step-copy,
[data-lang="ko"] .step-copy {
  font-size: 16px;
  line-height: 1.6;
}

/* Network counter & Partners */
html[lang="ko"] .network-copy > strong:first-child,
[data-lang="ko"] .network-copy > strong:first-child {
  line-height: 1.3;
  letter-spacing: 0;
}

/* FAQ */
html[lang="ko"] .faq-button,
[data-lang="ko"] .faq-button {
  font-size: 18px;
  line-height: 1.45;
}

/* Header & Navigation */
html[lang="ko"] .site-header .nav-link,
[data-lang="ko"] .site-header .nav-link {
  letter-spacing: 0;
}

html[lang="ko"] .btn-header-download,
[data-lang="ko"] .btn-header-download {
  font-size: 17px;
}

/* Responsive adjustments for Korean on mobile */
@media (max-width: 767.98px) {
  html[lang="ko"] .hero-content h1,
  [data-lang="ko"] .hero-content h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  html[lang="ko"] .hero-content p,
  [data-lang="ko"] .hero-content p {
    font-size: 16px;
    line-height: 1.4;
  }

  html[lang="ko"] .section-heading h2,
  [data-lang="ko"] .section-heading h2 {
    font-size: 28px;
    line-height: 1.3;
  }
}