/* ──────────────────────────────────────────────────────────
   우상번역 본사이트(wooshang.com)의 디자인 규칙을 그대로 옮겼다.
   브랜드 블루 배경 + 흰 텍스트, 기본 웨이트 200, 각진 박스(라운드 금지),
   콘텐츠 최대 폭 1440px, 좌우 여백 18px → 40px → 125px.
   본사이트가 Tailwind라 클래스명을 CSS로 풀어 쓴 것뿐이므로,
   본사이트 토큰이 바뀌면 여기도 같이 맞출 것.
   ────────────────────────────────────────────────────────── */
:root {
  --wooshang: rgb(0, 25, 207);
  --max: 1440px;
}

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

body {
  margin: 0;
  background: var(--wooshang);
  color: #fff;
  font-family: 'Noto Sans', 'Noto Sans KR', 'Malgun Gothic',
    'Apple SD Gothic Neo', sans-serif;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
@media (min-width: 768px) {
  .wrap {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (min-width: 1280px) {
  .wrap {
    padding-left: 125px;
    padding-right: 125px;
  }
}

section {
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

/* 본사이트 h2: text-[clamp(24px,2.5vw,36px)] font-bold, 가운데 정렬 */
h2 {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.sub {
  max-width: 720px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 15px;
  font-weight: 200;
  line-height: 1.75;
  opacity: 0.8;
}
@media (min-width: 768px) {
  .sub {
    font-size: 18px;
  }
}

/* ── 헤더 ── 본사이트처럼 고정이 아니라 파란 배경 위에 얹힌다 ── */
header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 104px;
}
.brand {
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand em {
  font-style: normal;
  font-weight: 200;
  opacity: 0.7;
  margin-left: 8px;
  font-size: 14px;
}
/* 각진 박스 세그먼트 — 본사이트 언어 토글과 같은 형태(라운드 금지) */
.nav-tel {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.nav-tel:hover {
  background: #fff;
  color: var(--wooshang);
}

/* ── 히어로 ── 본사이트 Hero의 좌측 정렬 장문 인트로 + 요점 3줄 ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 92vh;
  padding-top: 104px;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 40px;
  padding-bottom: 56px;
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  opacity: 0.5;
}
.hero h1 {
  margin-top: 20px;
  max-width: 1150px;
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
}
.hero .intro {
  margin: 24px 0 0;
  max-width: 1000px;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 200;
  line-height: 1.5;
}
.facts {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 200;
  line-height: 1.6;
}
.facts li + li {
  margin-top: 4px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.btn-solid {
  background: #fff;
  color: var(--wooshang);
  font-weight: 600;
}
.btn-solid:hover {
  opacity: 0.9;
}
.btn-ghost {
  border: 1px solid #fff;
  font-weight: 400;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--wooshang);
}
.hero .copyright {
  margin-top: auto;
  padding-top: 40px;
  text-align: right;
  font-size: 15px;
  font-weight: 200;
}

/* ── 특징 3블록 ── 본사이트 Formats의 border border-white/25 카드 ── */
.cards {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 24px;
}
.card .num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  opacity: 0.5;
}
.card h3 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
.card p {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 200;
  line-height: 1.75;
  opacity: 0.8;
}

/* ── 요금 ── */
.price-lead {
  margin: 48px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 32px 28px;
  text-align: center;
}
.price-lead .label {
  font-size: 15px;
  font-weight: 200;
  opacity: 0.8;
}
.price-lead .amount {
  display: block;
  margin-top: 10px;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
}
.price-lead .amount small {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 200;
  opacity: 0.75;
  margin-left: 8px;
}
.price-lead .note {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 200;
  opacity: 0.7;
}

.tbl-title {
  margin: 56px 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.6;
}
.tbl-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 16px 20px;
  text-align: left;
  font-weight: 200;
}
thead th {
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}
td.price {
  white-space: nowrap;
  font-weight: 400;
}
td .ask {
  opacity: 0.6;
}
.tbl-note {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 200;
  opacity: 0.7;
}

/* ── 절차 ── 본사이트 Process의 가로 타임라인 + 연결선 ── */
.steps {
  position: relative;
  display: grid;
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 32px;
}
.steps li {
  position: relative;
}
.steps .dot {
  position: absolute;
  left: -45px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #fff;
  border-radius: 9999px;
  background: var(--wooshang);
  font-size: 12px;
  font-weight: 600;
}
.steps h3 {
  font-size: 16px;
  font-weight: 600;
}
.steps p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 200;
  opacity: 0.8;
}
@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
    padding-left: 0;
    border-left: 0;
  }
  .steps::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
  }
  .steps li {
    text-align: center;
  }
  .steps .dot {
    position: static;
    margin: 0 auto;
  }
  .steps h3 {
    margin-top: 16px;
    font-size: 18px;
  }
  .steps p {
    margin-top: 8px;
    line-height: 1.75;
  }
}

/* ── FAQ ── */
.faq {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 24px 44px 24px 0;
  font-size: 17px;
  font-weight: 400;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 200;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq .answer {
  margin: 0;
  padding: 0 44px 26px 0;
  font-size: 15px;
  font-weight: 200;
  line-height: 1.8;
  opacity: 0.85;
}

/* ── 문의 ── 본사이트 Contact의 대형 타이포 ── */
.contact-big {
  margin-top: 48px;
  text-align: center;
}
.contact-big a {
  display: inline-block;
  font-size: clamp(30px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.contact-big a:hover {
  opacity: 0.85;
}
.contact-big .sup {
  display: block;
  font-size: 15px;
  font-weight: 200;
  opacity: 0.7;
  margin-top: 8px;
}
.contact-meta {
  display: grid;
  gap: 0;
  margin: 56px auto 0;
  max-width: 720px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-meta div {
  display: grid;
  gap: 2px 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
@media (min-width: 640px) {
  .contact-meta div {
    grid-template-columns: 140px 1fr;
    align-items: baseline;
  }
}
.contact-meta dt {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.6;
}
.contact-meta dd {
  margin: 0;
  font-size: 16px;
  font-weight: 200;
}

/* ── 푸터 ── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px 0;
  font-size: 14px;
  font-weight: 200;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  opacity: 0.7;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  opacity: 0.7;
}

/* ── 떠오름 모션 ── 본사이트 wg_animated fadeInUp 재현 (1.3s ease, 50px) ──
   JS가 .reveal을 붙인 요소만 숨겼다 나타난다. JS가 없으면 클래스가 안 붙어
   내용이 그냥 보인다 — 크롤러와 JS 차단 환경에서도 안전하다. */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.reveal {
  opacity: 0;
}
.reveal.shown {
  animation: fade-in-up 1.3s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.shown {
    opacity: 1;
    animation: none;
  }
}

/* ── 언어 전환 ── 본사이트 언어 토글과 같은 각진 박스 세그먼트(라운드 금지) ── */
.langs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.langs a {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.langs a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.langs a:hover {
  background: rgba(255, 255, 255, 0.15);
}
.langs a[aria-current='true'] {
  background: #fff;
  color: var(--wooshang);
  font-weight: 600;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* 좁은 화면에서는 전화 버튼만 남기고 언어는 아래로 흘린다 */
@media (max-width: 900px) {
  .nav {
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    align-items: flex-start;
  }
  .langs a {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* ── CTA 버튼 묶음 ── 채널이 여러 개라 히어로와 문의 양쪽에서 쓴다 ── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}
.cta-row.center {
  justify-content: center;
}

/* ── 아랍어 RTL ──
   dir="rtl"이 붙으면 좌우 정렬만 뒤집는다. 숫자와 라틴 문자(전화번호, 이메일,
   SRT 같은 형식명)는 그대로 두어야 하므로 bdi로 감싼 곳은 건드리지 않는다. */
[dir='rtl'] body {
  letter-spacing: 0;
}
[dir='rtl'] .hero h1,
[dir='rtl'] .hero .intro,
[dir='rtl'] .facts,
[dir='rtl'] .kicker,
[dir='rtl'] .card h3,
[dir='rtl'] .card p,
[dir='rtl'] .steps h3,
[dir='rtl'] .steps p,
[dir='rtl'] .faq summary,
[dir='rtl'] .faq .answer,
[dir='rtl'] th,
[dir='rtl'] td {
  text-align: right;
}
[dir='rtl'] .hero .copyright {
  text-align: left;
}
[dir='rtl'] .steps {
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 0;
  padding-right: 32px;
}
[dir='rtl'] .steps .dot {
  left: auto;
  right: -45px;
}
@media (min-width: 1024px) {
  [dir='rtl'] .steps {
    border-right: 0;
    padding-right: 0;
  }
  [dir='rtl'] .steps h3,
  [dir='rtl'] .steps p {
    text-align: center;
  }
}
[dir='rtl'] .faq summary {
  padding: 24px 0 24px 44px;
}
[dir='rtl'] .faq summary::after {
  right: auto;
  left: 4px;
}
[dir='rtl'] .faq .answer {
  padding: 0 0 26px 44px;
}
[dir='rtl'] .langs a + a {
  border-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── 지원 언어 그리드 ── 각진 박스(라운드 금지), 본사이트 Formats 카드와 같은 테두리 ── */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .lang-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.lang-grid a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.lang-grid a:hover {
  background: #fff;
  color: var(--wooshang);
  border-color: #fff;
}
/* 자기 이름(endonym) — 그 언어 사용자가 한눈에 찾는 단서 */
.lang-grid .endo {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}
/* 페이지 언어로 쓴 이름 — 검색어와 맞물리는 쪽 */
.lang-grid .name {
  font-size: 13px;
  font-weight: 200;
  opacity: 0.65;
}
.lang-grid a:hover .name {
  opacity: 0.75;
}
