/* =====================================================================
   신차FIT 공통 디자인 시스템 — 토큰 · 리셋 · 타이포 · 버튼 · 헤더 · 푸터 · 퀵바 · 리빌
   v17 · 홈(home.css)·가이드(guide.css)가 공유한다
   ===================================================================== */
:root {
  --bg: #F5F5F3;
  --bg-2: #EDEDEA;
  --white: #FFFFFF;
  --ink: #111214;
  --ink-2: #3A3D42;
  --muted: #70747A;
  --line: #DADCDD;
  --line-2: #C9CBCD;
  --blue: #2855FF;
  --blue-hover: #1E44D6;
  --blue-soft: rgba(40, 85, 255, 0.08);
  --danger: #C8362C;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;

  --wrap: 1360px;
  --wrap-wide: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --space-section: clamp(72px, 9vw, 160px);

  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .55s;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }   /* hidden 속성은 어떤 display 규칙보다 우선 (유일한 !important) */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ── 레이아웃 ──────────────────────────────────────────────────────── */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 0 auto; }
section { padding: var(--space-section) 0; }

/* ── 타이포 ────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255, 255, 255, .72); }
.h2 {
  font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12;
  text-wrap: balance;
}
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head__aside { max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.6; padding-bottom: 6px; }
.br-pc { display: none; }

/* ── 버튼 ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: var(--r-md);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn--sm { height: 42px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 28px; font-size: 16px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn--ghost:hover { border-color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .arrow, .link-btn:hover .arrow { transform: translateX(6px); }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink);
  padding-bottom: 2px; border-bottom: 1px solid var(--ink);
}

/* ── 헤더 ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); color: var(--ink); border-color: var(--line); }
.site-header__in {
  width: min(var(--wrap-wide), 100% - var(--gutter) * 2); margin: 0 auto;
  height: var(--header-h); display: flex; align-items: center; gap: 40px;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.brand span { color: var(--blue); }
.gnb { display: flex; gap: 32px; margin-left: 24px; font-size: 15px; font-weight: 500; }
.gnb a { opacity: .85; transition: opacity .3s; }
.gnb a:hover { opacity: 1; }
.site-header__act { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.nav-menu { display: none; }
.nav-menu[hidden] { display: none; }
.nav-menu:not([hidden]) {
  display: flex; flex-direction: column; background: #fff; color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.nav-menu a { padding: 18px var(--gutter); font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-menu a:last-child { border-bottom: 0; }
body.nf-nav-open { overflow: hidden; }
body.nf-nav-open .site-header { background: #fff; color: var(--ink); border-color: var(--line); }

/* ── 퀵바 ──────────────────────────────────────────────────────────── */
.quick { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.quick__btn { width: 56px; height: 48px; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .3s; }
.quick__btn:last-child { border-bottom: 0; }
.quick__btn:hover { background: var(--bg); }
.quick__btn--primary { background: var(--blue); color: #fff; }
.quick__btn--primary:hover { background: var(--blue-hover); }

/* ── FOOTER ────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; color: var(--ink-2); }
.site-footer__in { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr 1fr; gap: 32px; }
.brand--footer { font-size: 20px; color: var(--ink); }
.site-footer__tag { margin-top: 8px; color: var(--muted); font-size: 13px; }
.site-footer__h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.site-footer__col p { line-height: 1.7; }
.site-footer__col a { border-bottom: 1px solid var(--line-2); }
.site-footer__col a:hover { border-color: var(--ink); }
.site-footer__legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 90ch; }
.site-footer__copy { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* ── 스크롤 리빌 ───────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__video { animation: none; transform: none; }
  html { scroll-behavior: auto; }
  .form-step.active { animation: none; }
}

/* ── 반응형 (공통) ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .gnb { display: none; }
  .burger { display: inline-flex; }
  .site-header__act .btn { display: none; }
  .site-footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer__in { grid-template-columns: 1fr; gap: 24px; }
  .quick { right: 12px; bottom: 16px; }
}
