/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "tnum" 1;
}

/* Korean text must never split a word (어절) mid-character across lines.
   `ch`-based widths also mismeasure Hangul (roughly 2x a Latin glyph),
   so headings/paragraphs use rem-based Tailwind max-w-* instead. */
h1, h2, h3, h4, p, blockquote, li, a, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

::selection {
  background: #2563EB;
  color: #fff;
}

/* Visible, high-contrast focus ring on every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #0F172A;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ===== Header ===== */
#site-header {
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
}
#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom-color: #E2E8F0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  transition: color 150ms ease;
}
.nav-link:hover {
  color: #0B1220;
}

.mobile-nav-link {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0F172A;
  border-bottom: 1px solid #E2E8F0;
  min-height: 44px;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  min-height: 44px;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: #0F172A;
  color: #fff;
  border: 1px solid #0F172A;
}
.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #fff;
  color: #0F172A;
  border: 1px solid #CBD5E1;
}
.btn-secondary:hover {
  border-color: #0F172A;
  background: #F8FAFC;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

/* ===== Icons ===== */
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-md { width: 24px; height: 24px; flex-shrink: 0; }

/* ===== Typography helpers ===== */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2563EB;
}

.text-gradient {
  background-image: linear-gradient(90deg, #2563EB 0%, #4F46E5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Stats ===== */
.stat-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 180px;
  justify-content: space-between;
}
.stat-index {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94A3B8;
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0B1220;
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: #64748B;
}

/* ===== Quote cards (problem section) ===== */
.quote-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ===== Solution cards ===== */
.solution-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.solution-card:hover {
  border-color: #2563EB;
  box-shadow: 0 8px 24px -12px rgba(37, 99, 235, 0.25);
}
.solution-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 0.75rem;
}
.solution-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0B1220;
  margin-bottom: 0.5rem;
}
.solution-desc {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.6;
}

/* ===== Process steps ===== */
.process-step {
  position: relative;
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-top: 2px solid #0F172A;
}
.process-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 0.6rem;
}
.process-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B1220;
}

/* ===== Reviews ===== */
.review-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}
.review-quote {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #0F172A;
  flex-grow: 1;
}
.review-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  font-style: normal;
}

/* ===== Pricing ===== */
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.price-card--highlight {
  border-color: #0F172A;
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.35);
}
.price-badge {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  background: #0F172A;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}
.price-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0B1220;
}
.price-desc {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #64748B;
  min-height: 2.5em;
}
.price-amount {
  margin-top: 1.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  color: #0B1220;
}
.price-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #64748B;
  margin-left: 0.25rem;
}
.price-period {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #64748B;
}
.price-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex-grow: 1;
}
.price-features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 14px;
  height: 14px;
  background-color: #2563EB;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1.is-visible { transition-delay: 80ms; }
.reveal.delay-2.is-visible { transition-delay: 160ms; }
.reveal.delay-3.is-visible { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary:hover,
  .solution-card:hover {
    transform: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
