/* KOVIL 사이트 — 값은 앱 토큰(kovil-foreigner-expo/src/design/tokens.ts)과 로고(코빌.svg)에서 옮겼다.
   주색 #1D6DED 는 면 · 버튼 전용, 글자 링크는 진한 짝 #1849D6(흰 바탕 7.1:1). #8B95A1 은 흰 바탕 3:1 이라 본문 글자에 쓰지 않는다.
   흰 글자를 얹는 면(--primary-fill)은 어두운 화면에서도 밝히지 않는다 — #3D82F0 위 흰 글자는 3.7:1 이다.
   --muted 는 흰 바탕만이 아니라 --canvas(바닥) · 머리 그라데이션 위에서도 4.5:1 을 넘게 #636E7C. */
:root {
  --primary: #1d6ded;
  --primary-pressed: #1849d6;
  --primary-fill: #1d6ded;
  --primary-fill-pressed: #1849d6;
  --primary-tint: #f1f7ff;
  --link: #1849d6;
  --ink: #191f28;
  --sub: #4e5968;
  --muted: #636e7c;
  --canvas: #f9f9f9;
  --surface: #ffffff;
  --divider: #f2f4f6;
  --hairline: #e5e8eb;
  --subtle: #f7f8fa;
  --logo-ink: #000a19;
  --logo-roof: #3577fa;
  --success: #03875b;
  --success-bg: #e6faf1;
  --warning: #96590a;
  --warning-bg: #fff6e5;
  --shadow-card: 0 4px 10px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 24px 48px -16px rgba(25, 31, 40, 0.28), 0 8px 16px -8px rgba(25, 31, 40, 0.12);
  --radius-card: 20px;
  --radius-control: 10px;
  --header-h: 64px;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #3d82f0;
    --primary-pressed: #2f74e6;
    --primary-tint: #16233a;
    --link: #8fc0ff;
    --ink: #eef1f4;
    --sub: #b4bcc6;
    --muted: #9aa4af;
    --canvas: #101317;
    --surface: #171b21;
    --divider: #222831;
    --hairline: #2b323c;
    --subtle: #1c2128;
    --logo-ink: #ffffff;
    --success-bg: #10291f;
    --success: #4fd1a1;
    --warning-bg: #2e2410;
    --warning: #f0b45a;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius-control);
}

.skip:focus {
  left: 8px;
}

/* ── 머리 줄 ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--logo-ink);
  text-decoration: none;
  flex: none;
  padding: 9px 0;
}

.brand svg {
  height: 26px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sub);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 0 12px;
  border-radius: var(--radius-control);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
  background: var(--subtle);
}

.lang-switch {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--subtle);
  border: 1px solid var(--hairline);
  flex: none;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sub);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

/* 보이는 알약은 34px 로 두고 누르는 자리만 위아래로 넓혀 44px 를 채운다 */
.lang-switch button::before {
  content: '';
  position: absolute;
  inset: -5px 0;
}

.lang-switch button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
  }
  /* 폰에서는 머리 아래 메뉴 줄까지 붙어 있어(약 113px) 목차 · 앵커가 그 밑에 숨지 않게 */
  html {
    scroll-padding-top: calc(var(--header-h) + 64px);
  }
}

/* 좁은 폰: 메뉴는 머리 줄 아래 가로 스크롤 줄로 */
.mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  .mobile-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    /* 가로 스크롤 상자는 넘친 자리를 잘라 누르는 자리(::before)가 위로 5px 나갈 틈을 안에 둔다 */
    padding: 5px var(--gutter) 10px;
    margin-top: -11px;
  }
  .mobile-nav::-webkit-scrollbar {
    display: none;
  }
  .mobile-nav a {
    flex: none;
    color: var(--sub);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--subtle);
    position: relative;
  }
  .mobile-nav a::before {
    content: '';
    position: absolute;
    inset: -5px 0;
  }
  .mobile-nav a[aria-current='page'] {
    color: var(--ink);
    background: var(--primary-tint);
  }
}

/* ── 공통 구획 ─────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 104px 0;
  }
}

.section.alt {
  background: var(--canvas);
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--link);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
}

.section-lead {
  margin-top: 16px;
  color: var(--sub);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 640px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
  background: var(--subtle);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  flex: none;
}

/* ── 첫 화면 ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--surface) 78%);
}

.hero-map {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  pointer-events: none;
  background: url('/assets/img/seoul-l2.svg') center 30% / 1500px auto no-repeat;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

@media (prefers-color-scheme: dark) {
  .hero-map {
    opacity: 0.12;
    filter: invert(1) hue-rotate(180deg);
  }
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: end;
}

@media (min-width: 960px) {
  .hero {
    padding-top: 88px;
  }
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
  }
}

.hero-copy {
  padding-bottom: 8px;
}

@media (min-width: 960px) {
  .hero-copy {
    padding-bottom: 120px;
  }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero .lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--sub);
  max-width: 540px;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.langs li {
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
}

.hero-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-fill);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-fill-pressed);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  background: var(--subtle);
}

/* 폰 화면 — 실제 앱 캡처를 넣는다(예시 데이터). */
.phones {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
}

.phone {
  position: relative;
  width: min(68vw, 290px);
  aspect-ratio: 402 / 874;
  border-radius: 44px;
  padding: 9px;
  background: #0b0d10;
  box-shadow: var(--shadow-float);
  flex: none;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  background: var(--canvas);
}

.hero .phones {
  align-items: flex-end;
  height: min(118vw, 560px);
  overflow: hidden;
}

.hero .phone.back {
  display: none;
}

@media (min-width: 560px) {
  .hero .phone.back {
    display: block;
    width: min(48vw, 250px);
    margin-bottom: -60px;
    opacity: 0.98;
  }
}

.shot-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0 0;
}

/* ── 단계 ──────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  counter-reset: step;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-fill);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex: none;
}

.step h3 {
  font-size: 19px;
  font-weight: 800;
}

.step p {
  margin-top: 12px;
  color: var(--sub);
  font-size: 15px;
}

.step .phone {
  width: min(100%, 230px);
  margin: 24px auto 0;
  border-radius: 36px;
  padding: 7px;
}

.step .phone img {
  border-radius: 30px;
}

/* ── 기능 ──────────────────────────────────────────────── */
.features {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.feature {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.feature .icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 800;
}

.feature p {
  margin-top: 8px;
  color: var(--sub);
  font-size: 15px;
}

/* 넓은 그림 + 설명 줄 */
.showcase {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .showcase.flip .showcase-media {
    order: 2;
  }
}

.showcase-media {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.showcase-media .phone {
  width: min(44vw, 260px);
}

.showcase h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}

.showcase p {
  margin-top: 14px;
  color: var(--sub);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 15px;
}

.checks li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231d6ded' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ── 파트너스 띠 ───────────────────────────────────────── */
.band {
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  padding: 40px 24px;
  display: grid;
  gap: 32px;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .band {
    background: var(--subtle);
    border: 1px solid var(--hairline);
  }
}

@media (min-width: 900px) {
  .band {
    grid-template-columns: 1.2fr 1fr;
    padding: 56px;
    align-items: center;
  }
}

.band .eyebrow {
  color: #8fc0ff;
}

.band h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
}

.band p {
  margin-top: 14px;
  color: #c9d0d8;
}

.band .checks li {
  color: #eef1f4;
}

.band .checks li::before {
  background-color: rgba(143, 192, 255, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%238fc0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.band-media {
  display: flex;
  justify-content: center;
}

.band-media .phone {
  width: min(62vw, 250px);
}

/* ── 신뢰 ──────────────────────────────────────────────── */
.trust {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.trust-item {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.trust-item h3 {
  font-size: 17px;
  font-weight: 800;
}

.trust-item p {
  margin-top: 10px;
  color: var(--sub);
  font-size: 15px;
}

.role-note {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--subtle);
  border: 1px solid var(--hairline);
  color: var(--sub);
  font-size: 15px;
}

/* ── 회사 정보 ─────────────────────────────────────────── */
.company {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .company {
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
  }
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(104px, max-content) 1fr;
  border-top: 1px solid var(--hairline);
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.facts dt {
  color: var(--sub);
  font-weight: 600;
  font-size: 15px;
  padding-right: 24px;
}

.facts dd {
  font-weight: 600;
}

.pending {
  color: var(--muted);
  font-weight: 500;
}

/* ── 바닥 줄 ───────────────────────────────────────────── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--divider);
  padding: 48px 0 56px;
  font-size: 14px;
  color: var(--sub);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
}

.footer-brand svg {
  height: 22px;
  width: auto;
  color: var(--logo-ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--sub);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-links a.strong {
  color: var(--ink);
}

.footer-biz {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ── 404 ───────────────────────────────────────────────── */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.notfound h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
}

.notfound p {
  margin-top: 12px;
  color: var(--sub);
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .site-nav a,
  .lang-switch button {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}

.notfound .cta-row {
  justify-content: center;
}
