@charset "utf-8";
/* ==========================================================================
   The인연 — 홈페이지 스타일
   한지(韓紙) 질감 + 먹(墨) + 낙관(落款) 붉은색을 기조로 한 정적 랜딩 페이지.
   모바일 우선(min-width 미디어쿼리로 확장). 인앱 웹뷰에서 웹폰트가 차단돼도
   시스템 한글 폰트로 자연스럽게 대체되도록 폰트 스택을 구성했다.
   ========================================================================== */

/* --------------------------------------------------------------- 토큰 */
:root {
  /* 종이 계열 */
  --paper:        #F4F1EA;
  --paper-raised: #FCFAF6;
  --paper-sunken: #EBE5D9;

  /* 먹 계열 */
  --ink:      #1B1917;
  --ink-soft: #433C34;
  --ink-mute: #6F6559;

  /* 선 */
  --line:      #E2DACC;
  --line-bold: #CEC2AE;

  /* 낙관 붉은색 (포인트) */
  --seal:      #B0402C;
  --seal-deep: #8C3020;
  --seal-wash: #F7E7E2;

  /* 매화 */
  --blossom:      #DDA0A0;
  --blossom-wash: #F8ECEA;

  /* 레이아웃 */
  --container: 1120px;
  --gutter: 20px;
  --radius: 14px;
  --radius-lg: 22px;

  /* 그림자 — 종이 위에 살짝 얹힌 느낌 */
  --shadow-sm: 0 1px 2px rgba(27, 25, 23, .04), 0 2px 8px rgba(27, 25, 23, .04);
  --shadow-md: 0 2px 4px rgba(27, 25, 23, .04), 0 10px 30px rgba(27, 25, 23, .07);
  --shadow-lg: 0 4px 8px rgba(27, 25, 23, .05), 0 24px 60px rgba(27, 25, 23, .10);

  /* 타이포 */
  --font-serif: "Nanum Myeongjo", "Noto Serif KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;

  --header-h: 62px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 헤더에 가리지 않도록 앵커 이동 위치 보정 */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -.01em;
  word-break: keep-all;      /* 한글 어절 단위 줄바꿈 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 한지 질감 — 아주 옅은 노이즈를 깔아 종이 느낌을 준다 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 스크린리더 전용 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 키보드 사용자를 위한 본문 바로가기 */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- 레이아웃 */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: 64px; position: relative; z-index: 1; }
.section--sunken { background: var(--paper-sunken); }
.section--ink { background: var(--ink); color: var(--paper); }

.section-head { text-align: center; margin-bottom: 36px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--seal); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before,
.eyebrow::after {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5;
}
.section--ink .eyebrow { color: var(--blossom); }

.section-title {
  font-size: clamp(25px, 6.2vw, 40px);
  line-height: 1.38;
}
.section-lead {
  margin-top: 14px;
  color: var(--ink-mute);
  font-size: clamp(14px, 3.6vw, 17px);
  line-height: 1.85;
}
.section--ink .section-lead { color: #C7BEB1; }

/* 강조: 붓으로 밑줄 그은 느낌 */
.mark {
  position: relative;
  white-space: nowrap;
  color: var(--seal);
}
.mark::after {
  content: "";
  position: absolute; left: -2px; right: -2px; bottom: .06em;
  height: .36em;
  background: var(--blossom-wash);
  border-radius: 2px 6px 3px 8px;
  z-index: -1;
}
.section--ink .mark { color: var(--blossom); }
.section--ink .mark::after { background: rgba(221, 160, 160, .16); }

/* --------------------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: -.02em;
  text-align: center;
  transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn--primary {
  background: var(--seal); color: #FFF;
  box-shadow: 0 6px 18px rgba(176, 64, 44, .26);
}
.btn--primary:hover { background: var(--seal-deep); box-shadow: 0 10px 26px rgba(176, 64, 44, .32); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-bold);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(27, 25, 23, .03); }

.btn--paper {
  background: var(--paper-raised); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--paper:hover { box-shadow: var(--shadow-md); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.btn-row {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px;
}

/* --------------------------------------------------------------- 헤더 */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(244, 241, 234, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
/* backdrop-filter 미지원(구형 인앱 웹뷰)에서는 불투명 배경으로 대체 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: var(--paper); }
}
.topbar.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(27, 25, 23, .05);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
}

/* padding 으로 터치 영역을 44px 까지 넓힌다 */
.brand { display: flex; align-items: center; gap: 9px; padding-block: 5px; }
.brand__logo { width: 34px; height: 34px; object-fit: contain; }
.brand__name {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 19px; letter-spacing: -.02em; line-height: 1;
}
.brand__name .brand__the { font-size: .82em; margin-right: 1px; }

.nav { display: none; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.topbar__login { display: none; }

/* --------------------------------------------------------------- 히어로 */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 44px 56px;
  text-align: center;
}
/* 엔소(圓相) 붓 원 — 배경 워터마크 */
.hero__enso {
  position: absolute;
  top: -30px; left: 50%;
  width: min(560px, 128vw);
  transform: translateX(-50%);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }

/* 캘리그라피 로고. 원본 이미지의 한지색 여백이 페이지 배경과 이어지도록
   multiply 로 합성해 사각형 경계가 보이지 않게 한다. */
.hero__logo {
  width: min(200px, 54vw);
  height: auto;
  margin: 0 auto 6px;
  mix-blend-mode: multiply;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line-bold);
  border-radius: 999px;
  background: rgba(252, 250, 246, .7);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: -.01em;
}
.hero__badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--seal);
  box-shadow: 0 0 0 3px var(--seal-wash);
}

/* 한 줄이 10글자 안팎이라, 열 폭에 맞춰 두 줄로 떨어지는 크기를 상한으로 잡는다 */
.hero__title {
  margin-top: 22px;
  font-size: clamp(28px, 8.2vw, 46px);
  line-height: 1.34;
  letter-spacing: -.035em;
}
.hero__title .line { display: block; }

.hero__sub {
  margin-top: 18px;
  font-size: clamp(14.5px, 3.9vw, 18px);
  line-height: 1.9;
  color: var(--ink-mute);
}
.hero__sub strong { color: var(--ink-soft); font-weight: 700; }

.hero__note {
  margin-top: 14px;
  font-size: 12.5px; color: var(--ink-mute);
}

/* 히어로 사진 */
.hero__figure {
  margin-top: 38px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 25, 23, .42), rgba(27, 25, 23, 0) 46%);
}
.hero__caption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  color: #FFF;
  font-family: var(--font-serif);
  font-size: clamp(15px, 4vw, 20px);
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
  text-align: left;
}

/* --------------------------------------------------------------- 신뢰 지표 */
.trust {
  border-block: 1px solid var(--line);
  background: var(--paper-raised);
  padding-block: 26px;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 12px;
  text-align: center;
}
.trust__num {
  font-family: var(--font-serif);
  font-size: clamp(22px, 6.6vw, 30px);
  font-weight: 700;
  color: var(--seal);
  line-height: 1.2;
}
.trust__num small { font-size: .58em; font-weight: 700; margin-left: 1px; }
.trust__label {
  margin-top: 5px;
  font-size: 12.5px; color: var(--ink-mute); letter-spacing: -.02em;
}

/* --------------------------------------------------------------- 비교표 */
.compare {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: 15px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}
.compare thead th {
  background: var(--paper-sunken);
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  padding-block: 14px;
}
.compare tbody th {
  font-weight: 600;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: left;
  padding-left: 16px;
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }

/* The인연 열 강조 */
.compare .col-ours { background: var(--seal-wash); }
.compare thead .col-ours { background: var(--seal); color: #FFF; }
.compare tbody .col-ours {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--seal-deep);
}
.compare tbody .col-theirs {
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: var(--line-bold);
}

.compare__foot {
  padding: 12px 16px;
  background: var(--paper-sunken);
  font-size: 11.5px; color: var(--ink-mute); text-align: center;
}

.compare-note {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-mute);
}

/* --------------------------------------------------------------- 특징 카드 */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__no {
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 700; color: var(--seal);
  letter-spacing: .14em;
}
.feature__icon { width: 38px; height: 38px; margin: 12px 0 14px; color: var(--seal); }
.feature__title { font-size: 19px; margin-bottom: 9px; }
.feature__desc { font-size: 14.5px; color: var(--ink-mute); line-height: 1.8; }
.feature__desc b { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------- 이용권 카드 */
.tickets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.ticket {
  display: flex; flex-direction: column;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.ticket--featured {
  border-color: var(--seal);
  box-shadow: var(--shadow-md);
}
.ticket__flag {
  position: absolute; top: -12px; left: 22px;
  padding: 4px 13px; border-radius: 999px;
  background: var(--seal); color: #FFF;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.ticket__name { font-size: 22px; }
.ticket__for {
  margin-top: 7px;
  font-size: 13.5px; color: var(--seal); font-weight: 600;
}
.ticket__price {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px dashed var(--line-bold);
  display: flex; align-items: baseline; gap: 5px;
  font-family: var(--font-serif);
}
.ticket__amount { font-size: 34px; font-weight: 700; line-height: 1.1; }
.ticket__unit { font-size: 15px; color: var(--ink-mute); }
.ticket__per { margin-top: 4px; font-size: 12.5px; color: var(--ink-mute); font-family: var(--font-sans); }

.ticket__list { margin-top: 18px; display: grid; gap: 10px; }
.ticket__list li {
  display: flex; gap: 9px;
  font-size: 14px; line-height: 1.7; color: var(--ink-soft);
}
.ticket__list svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--seal); }

.ticket__foot { margin-top: auto; padding-top: 22px; }
.ticket__foot .btn { width: 100%; }

.tickets-note {
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: var(--seal-wash);
  border: 1px solid #EED9D3;
  font-size: 13.5px; line-height: 1.75; color: var(--seal-deep);
  text-align: center;
}

/* --------------------------------------------------------------- 절차(탭) */
.tabs {
  display: flex; gap: 6px;
  padding: 5px;
  margin: 0 auto 30px;
  max-width: 420px;
  border-radius: 999px;
  background: var(--paper-sunken);
  border: 1px solid var(--line);
}
.tab {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: var(--ink-mute);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tab[aria-selected="true"] {
  background: var(--paper-raised);
  color: var(--seal);
  box-shadow: var(--shadow-sm);
}

.steps { position: relative; display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-bottom: 26px;
}
.step:last-child { padding-bottom: 0; }
/* 세로 연결선 */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px; top: 46px; bottom: 6px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line-bold) 0 4px, transparent 4px 9px);
}
.step__no {
  position: relative; z-index: 1;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1px solid var(--line-bold);
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 700; color: var(--seal);
}
.step__body { padding-top: 6px; }
.step__title { font-size: 17.5px; margin-bottom: 8px; }
.step__desc { font-size: 14px; color: var(--ink-mute); line-height: 1.8; }
.step__desc li { position: relative; padding-left: 12px; }
.step__desc li + li { margin-top: 4px; }
.step__desc li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--blossom);
}

/* --------------------------------------------------------------- 할매 이야기 */
.story__grid { display: grid; gap: 26px; align-items: center; }
.story__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.story__figure img { width: 100%; }
.story__quote {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 3px solid var(--seal);
  font-family: var(--font-serif);
  font-size: clamp(17px, 4.6vw, 22px);
  line-height: 1.75;
}
.story__text { margin-top: 18px; font-size: 15px; color: var(--ink-mute); line-height: 1.9; }
.story__text + .story__text { margin-top: 12px; }

/* --------------------------------------------------------------- 약속 */
.promise {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin-top: 8px;
}
.promise__item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
}
.promise__x {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(221, 160, 160, .14);
  color: var(--blossom);
}
.promise__x svg { width: 15px; height: 15px; }
.promise__title { font-size: 16.5px; margin-bottom: 5px; color: var(--paper); }
.promise__desc { font-size: 13.5px; color: #B9B0A3; line-height: 1.75; }

/* --------------------------------------------------------------- FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 16.5px; font-weight: 700; line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { display: flex; gap: 11px; }
.faq__q i {
  font-style: normal;
  font-family: var(--font-serif);
  color: var(--seal);
  flex: none;
}
.faq__chev {
  flex: none; width: 20px; height: 20px; margin-top: 3px;
  color: var(--ink-mute);
  transition: transform .25s ease;
}
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a {
  padding: 0 2px 22px 30px;
  font-size: 14.5px; line-height: 1.9; color: var(--ink-mute);
}

/* --------------------------------------------------------------- 마감 CTA */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--paper-sunken);
}
/* 320px 같은 좁은 화면에서 고정 max-width 가 뷰포트를 넘지 않도록 */
.cta__photo { width: 100%; max-width: 340px; margin: 0 auto 6px; }
.cta__title { font-size: clamp(24px, 6.4vw, 38px); line-height: 1.4; }
.cta__lead { margin-top: 14px; color: var(--ink-mute); font-size: clamp(14px, 3.6vw, 16.5px); }

/* --------------------------------------------------------------- 푸터 */
.footer {
  background: var(--ink);
  color: #A79E92;
  padding-block: 40px 34px;
  font-size: 13px;
  line-height: 1.85;
}
.footer .brand__name { color: var(--paper); }
.footer__links {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.footer__links a, .footer__links button {
  display: inline-flex; align-items: center;
  min-height: 40px;              /* 손가락으로 누르기 편한 높이 확보 */
  font-size: 13.5px; color: #C9C0B3;
  transition: color .18s ease;
}
.footer__links a:hover, .footer__links button:hover { color: var(--paper); }
.footer__biz { font-size: 12.5px; color: #857C71; }
/* 주소처럼 긴 항목이 있어 nowrap 을 걸면 좁은 화면에서 가로 스크롤이 생긴다.
   body 의 word-break: keep-all 덕분에 어절 단위로 자연스럽게 줄바꿈된다. */
.footer__biz span::after { content: " | "; opacity: .45; }
.footer__biz span:last-child::after { content: ""; }
.footer__copy { margin-top: 16px; font-size: 12px; color: #6E665C; }

/* --------------------------------------------------------------- 모바일 하단 CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 9px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(244, 241, 234, .93);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-cta { background: var(--paper); }
}
.mobile-cta.is-visible { transform: translateY(0); }
/* min-width:0 이 없으면 flex 항목이 글자 길이 밑으로 줄지 않아 좁은 화면에서 넘친다 */
.mobile-cta .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 50px;
  padding-inline: 12px;
  font-size: 15px;
  white-space: nowrap;
}
.mobile-cta .btn--ghost { flex: 0 1 32%; }

/* --------------------------------------------------------------- 라이트박스 */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(20, 18, 16, .88);
}
.lightbox.is-open { display: flex; }
.lightbox__panel {
  position: relative;
  width: 100%; max-width: 760px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  background: #FFF;
  border-radius: var(--radius);
  overflow: hidden;
}
.lightbox__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.lightbox__title { font-size: 16px; }
.lightbox__close {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; color: var(--ink-mute);
}
.lightbox__close:hover { background: var(--paper-sunken); color: var(--ink); }
.lightbox__body { overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
.lightbox__body img { width: 100%; }
.lightbox__hint { padding: 0 16px 14px; font-size: 12px; color: var(--ink-mute); text-align: center; }

/* --------------------------------------------------------------- 스크롤 등장
   기본값은 "보이는 상태"다. <html>에 .js-reveal 이 붙었을 때만 숨겼다가
   나타낸다. 스크립트가 로드되지 않으면 본문이 그대로 보이므로,
   JS 실패가 백지 화면으로 이어지지 않는다. */
.reveal {
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* 모션 최소화 선호 시 애니메이션 제거 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .mobile-cta { transition: none; }
}

/* ===============================================================
   태블릿 이상 (>= 640px)
   =============================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }

  .section { padding-block: 84px; }
  .section-head { margin-bottom: 46px; }

  .btn-row { flex-direction: row; justify-content: center; }
  .btn-row .btn { min-width: 190px; }

  .hero { padding-block: 60px 74px; }
  .hero__figure { aspect-ratio: 16 / 9; }
  .hero__caption { left: 30px; right: 30px; bottom: 24px; }

  .trust__grid { grid-template-columns: repeat(4, 1fr); }

  .compare th, .compare td { padding: 18px 14px; font-size: 15px; }
  .compare thead th { font-size: 15px; }
  .compare tbody th { font-size: 14px; padding-left: 24px; }
  .compare tbody .col-ours { font-size: 19px; }

  .features { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .feature { padding: 30px 26px; }

  .tickets { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ticket { padding: 32px 28px; }

  .step { grid-template-columns: 52px 1fr; gap: 20px; padding-bottom: 32px; }
  .step:not(:last-child)::before { left: 25px; top: 54px; }
  .step__no { width: 52px; height: 52px; font-size: 18px; }
  .step__title { font-size: 19px; }
  .step__desc { font-size: 15px; }

  .promise { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .footer { font-size: 13.5px; padding-block: 52px 44px; }
}

/* ===============================================================
   데스크톱 (>= 960px)
   =============================================================== */
@media (min-width: 960px) {
  :root { --header-h: 74px; }

  .section { padding-block: 110px; }

  .nav { display: flex; align-items: center; gap: 30px; }
  .nav a {
    font-size: 15px; font-weight: 600; color: var(--ink-soft);
    transition: color .18s ease;
    position: relative;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--seal);
    transform: scaleX(0); transform-origin: left;
    transition: transform .22s ease;
  }
  .nav a:hover { color: var(--seal); }
  .nav a:hover::after { transform: scaleX(1); }

  .topbar__login { display: inline-flex; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__name { font-size: 22px; }

  /* 데스크톱에서는 히어로를 2단으로 */
  .hero { padding-block: 76px 96px; text-align: left; }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
  }
  .hero__enso { top: -120px; left: 26%; width: 640px; opacity: .42; }
  .hero__logo { width: 200px; margin-left: 0; margin-bottom: 8px; }
  .hero .btn-row { justify-content: flex-start; }
  /* align-items:center 때문에 블록축 stretch 가 없으므로 폭을 명시해야 열을 채운다 */
  .hero__figure { margin-top: 0; width: 100%; aspect-ratio: 4 / 5; }
  .hero__title { letter-spacing: -.04em; }

  .features { grid-template-columns: repeat(4, 1fr); }
  .feature__title { font-size: 20px; }

  .steps { grid-template-columns: repeat(5, 1fr); gap: 22px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; gap: 14px; }
  /* 가로 배치에서는 연결선도 가로로 */
  .step:not(:last-child)::before {
    left: 60px; right: -22px; top: 26px; bottom: auto;
    width: auto; height: 1px;
    background: repeating-linear-gradient(to right, var(--line-bold) 0 4px, transparent 4px 9px);
  }
  .step__body { padding-top: 0; }

  .story__grid { grid-template-columns: .9fr 1.1fr; gap: 60px; }

  .promise { grid-template-columns: repeat(4, 1fr); }
  .promise__item { flex-direction: column; gap: 14px; }

  .cta__photo { max-width: 420px; }

  /* 데스크톱에서는 하단 고정 CTA 불필요 */
  .mobile-cta { display: none; }
}

@media (min-width: 1160px) {
  .hero__title { font-size: 54px; }
}
