/* ────────────────────────────────────────────────────────────────
   신청 화면(첫 화면) 디자인 — 2026-09-14 개편
   모바일 우선. 넓은 화면에서는 여백을 얹어 넓힙니다.
   색은 무채색으로 두고, 분위기는 그림(--hero-art)이 냅니다.
   ※ 결제완료 화면(complete.css)·관리자 화면(admin.css)은 건드리지 않습니다.
   ──────────────────────────────────────────────────────────────── */

:root {
  /* ── 글자색 (진한 → 옅은) ── */
  --ink:        #111111;   /* 본문·제목 */
  --ink-2:      #424242;   /* 카드 속 설명글 */
  --muted:      #757575;   /* 보조 설명 */
  --faint:      #a1a1a1;   /* 안내문·비활성 */

  /* ── 바탕 ── */
  --bg:         #ffffff;
  --surface:    #f3f4f6;   /* 옅은 회색 구역·입력칸 */
  --surface-2:  #e9eaed;   /* 눌린 상태 */
  --line:       #e5e7eb;   /* 실선 */

  /* ── 브랜드색 — 화면에서 딱 여기만 씁니다 ── */
  --brand:      #6d0414;   /* 짙은 자주 */
  --brand-ink:  #ffffff;
  --brand-soft: #f7efdc;   /* 그림 위에 얹는 버튼의 크림색 */
  --brand-light: #9d4756;  /* 옅은 와인색 — 고른 버튼(성별·양음력·관계·시간 모름) */

  /* ── 모서리 ── */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-pill: 9999px;

  /* ── 그림 자리 ──
     첫 화면 맨 위 그림입니다. 파일을 public/img/ 에 넣고 아래 한 줄만 바꾸면 됩니다.
       --hero-art: url("/img/hero.webp");
     비워 두면 짙은 단색 바탕이 대신 깔립니다. */
  --hero-art: none;

  /* ── 본문 기둥 너비 ── */
  --col: 480px;

  --font-sans: "Pretendard Variable", Pretendard, "Noto Sans KR",
               -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;

  /* ── 옛 이름 이어 두기 ───────────────────────────
     결제완료 화면(complete.css)이 이 파일을 함께 읽으면서 아래 이름들을 씁니다.
     그 화면은 이번에 손대지 않기로 했으므로, 이름만 새 값으로 이어 둡니다.
     나중에 결제완료 화면도 개편하면 이 칸은 지워도 됩니다. */
  --paper:       var(--bg);
  --paper-alt:   var(--surface);
  --border:      var(--line);
  --radius:      var(--r-lg);
  --accent:      var(--brand);
  --accent-dark: #4d020e;
  --gold:        #8a6d2f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;          /* 한글이 낱말 가운데서 잘리지 않게 */
}

/* 화면이 넓어도 본문은 한 기둥 — 그 기둥만 흰색으로 세웁니다. */
.app {
  max-width: var(--col);
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 88px;          /* 아래 고정 버튼에 가리지 않도록 */
}

.container { padding: 0 20px; }

.container.narrow { padding: 0 20px; }

/* ── 맨 위 머리띠 ─────────────────────────────── */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.app-bar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* 그림 로고(투명 PNG). 머리띠 56px 안에서 높이 38px, 폭은 비율대로(약 115px) */
.app-bar-logo img {
  display: block;
  height: 38px;
  width: auto;
}

/* ── 메인 배너(슬라이드) ──────────────────────
   칸은 언제나 정확히 4:5. 그림도 4:5(1200×1500)라 어느 기기에서도 잘리지 않습니다.
   손가락으로 좌우로 밀면 한 장씩 딱딱 걸리고(scroll-snap), 화살표·점·8초 자동 넘김은
   /js/hero-slider.js 가 맡습니다. */
.hero {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: #1a0a0c;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* 스크롤 막대 숨김 */
}
.hero-track::-webkit-scrollbar { display: none; }
/* 마우스로 끄는 동안: 한 장씩 걸리는 기능 잠시 해제, 손 모양 커서 */
.hero-track { cursor: grab; }
.hero-track.is-dragging { cursor: grabbing; }
.hero-track.is-free { scroll-snap-type: none; scroll-behavior: auto; }
.hero-slide img { user-select: none; -webkit-user-drag: none; }

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;       /* 한 번에 한 장씩만 */
}
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 좌우 화살표: 흰색 반투명 동그라미 안에 꺾쇠 */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.85); }
.hero-arrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.hero-arrow.prev { left: 10px; }
.hero-arrow.prev::before { transform: translateX(2px) rotate(-135deg); }
.hero-arrow.next { right: 10px; }
.hero-arrow.next::before { transform: translateX(-2px) rotate(45deg); }

/* 아래 점: 현재 장은 주황색 */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.hero-dot.is-active { background: #f97316; }

/* ── 그림 위 소구점 상자(1장) ─────────────────────
   그림 오른쪽 아래에 얹는 반투명 짙은 유리판. 왼쪽 「정통사주」 족자(그림 폭의 약 35%)를 가리지 않도록
   왼쪽 가장자리를 35.5% 지점에 둡니다. 뒤 그림을 살짝 흐려(backdrop-filter) 글이 또렷하게 읽히고,
   글 색은 흰색·크림색만 써서 붓글씨·낙관과 다투지 않게 합니다.
   상자 바닥은 왼쪽 족자의 아래 테두리(그림 바닥에서 7.1%, 실측)와 같은 높이로 맞춥니다. 아래 점(바닥 12px)보다 위입니다. */
.hero-slide { position: relative; }
.hero-note {
  position: absolute;
  left: 35.5%;
  right: 14px;
  bottom: 7.1%;                  /* 족자 아래 테두리(그림 높이의 7.1% 지점)와 상자 바닥을 맞춤 */
  z-index: 1;
  padding: 11px 14px 12px;
  border-radius: var(--r-md);
  background: rgba(24, 12, 14, 0.62);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  text-align: left;
  overflow-wrap: anywhere;
  user-select: none;             /* 마우스로 끌어 넘길 때 글이 선택되지 않게 */
}
/* 연애보감·인연보감은 족자가 조금 더 넓고(오른쪽 가장자리 약 39%), 아래 테두리 높이도 다릅니다(실측).
   장 순서가 바뀌어도 그림을 따라가도록 순서(nth-child)가 아니라 그림별 클래스로 둡니다(2026-09-21). */
.hero-note--love1 { left: 40.5%; bottom: 7.4%; }   /* 연애보감(hero-2.jpg) */
.hero-note--love2 { left: 40%;   bottom: 5.6%; }   /* 인연보감(hero-3.jpg) */
/* 목차 그림 장: 비율이 4:5 가 아니어도 잘리지 않게 통째로 넣고, 남는 곳은 크림색 */
.hero-slide--toc { background: #f7efdc; }
.hero-slide--toc img { object-fit: contain; }
/* backdrop-filter 를 못 쓰는 옛 브라우저는 바탕을 조금 더 진하게 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-note { background: rgba(24, 12, 14, 0.8); }
}
.hero-note-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(247, 239, 220, 0.85);   /* 크림색(--brand-soft) */
}
.hero-note-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* 아랫단: 글머리 줄들 → 큰 숫자(분량) 한 줄 */
.hero-note-row {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-note-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.hero-note-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-note-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f7efdc;
}
.hero-note-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 1.1;
}
.hero-note-stat strong {
  font-size: 18px;               /* 짧은 숫자(120쪽)뿐 아니라 한 문장도 들어갈 수 있는 크기(2026-09-20) */
  line-height: 1.25;
  text-wrap: balance;            /* 두 줄로 접힐 때 낱말 하나만 남지 않게 고르게 나눔 */
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f7efdc;
}
.hero-note-stat span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
/* 휴대폰 폭: 글줄이 넷 이상이면 상자가 그림을 많이 가리므로 글자·간격을 한 단계 촘촘하게(2026-09-20) */
@media (max-width: 599px) {
  .hero-note { padding: 10px 12px 11px; }
  .hero-note-kicker { margin-bottom: 3px; font-size: 10.5px; }
  .hero-note-title { margin-bottom: 7px; font-size: 16px; }
  .hero-note-row { padding-top: 7px; }
  .hero-note-points { gap: 1px; font-size: 11.5px; line-height: 1.4; }
  .hero-note-stat { margin-top: 7px; padding-top: 7px; }
  .hero-note-stat strong { font-size: 15px; }
  .hero-note-stat span { font-size: 10.5px; }
}
/* 편집 모드에서는 글을 고를 수 있어야 합니다 */
html.site-edit .hero-note { user-select: text; }

/* 그림 바로 아래 신청 단추 칸(흰 바탕) */
.hero-cta {
  padding: 16px 0 4px;
  background: var(--bg);
}

/* ── 버튼 ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn:active { opacity: 0.82; }

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn-block { display: flex; }

.btn:disabled,
.btn[disabled] {
  background: var(--surface-2);
  color: var(--faint);
  cursor: not-allowed;
}

/* ── 구역 ─────────────────────────────────────── */
.section {
  padding: 36px 0;
  border-top: 8px solid var(--surface);
  background: var(--bg);
}

.section.alt { background: #fbfbfc; }

.section h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-sub {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* 신청 칸 제목과 안내 문구는 가운데 정렬 */
#apply h2,
#apply .section-sub { text-align: center; }

/* ── 상세 설명(상세페이지) ──────────────────────
   처음엔 윗부분만 보여 주고, 아래로 갈수록 살짝 어두워지는 막 위에
   금색 단추를 얹습니다. .open 이 붙으면 전부 펼쳐집니다. */
#detail { padding: 0 0 28px; }

.detail {
  position: relative;
  scroll-margin-top: 64px; /* 고정 상단바(56px)에 가리지 않게 */
}

.detail-body {
  position: relative;
  max-height: 360px;
  overflow: hidden;
}

.detail.open .detail-body { max-height: none; }

.detail-body img {
  display: block;
  width: 100%;
  height: auto;
}

/* 아래로 갈수록 어두워지는 막 — 끝은 은은한 금빛 갈색 */
.detail-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(70, 56, 28, 0.16) 45%,
    rgba(52, 41, 18, 0.58) 100%
  );
}

.detail.open .detail-veil { display: none; }

.detail-toggle {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100% - 40px, 320px);
  height: 48px;
  margin: -30px auto 0;
  padding: 0 20px;
  border: 1px solid #c9a85a;
  border-radius: var(--r-md);
  background: #fffdf7;
  color: var(--gold);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(201, 168, 90, 0.18),
              0 8px 24px rgba(52, 41, 18, 0.28);
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.detail-toggle:hover { background: #fff8e6; }
.detail-toggle:active { box-shadow: 0 0 0 4px rgba(201, 168, 90, 0.28); }

.detail.open .detail-toggle {
  margin-top: 16px;
  box-shadow: 0 0 0 4px rgba(201, 168, 90, 0.14);
}

/* ── 상세페이지 본문(.dp) ──────────────────────── 2026-09-20
   그림 한 장 대신 HTML 구획 8개로 짭니다. 색은 바탕색(무채색)·브랜드 자주·크림·금색만 씁니다.
   구획: 첫 띠 → 원국표 네 가지+견본 → 시중 풀이 대비+인물 → 논문급(어두운 띠) → 원칙(낙관) →
         대운 곡선 → 오래 함께 → 질문하세요. 본문은 가운데 정렬, 글머리 줄 목록만 왼쪽 정렬. */
.dp {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: keep-all;
  overflow-wrap: anywhere;        /* 띄어쓰기 없는 긴 글(편집 중 붙는 공백 포함)도 칸 밖으로 넘치지 않고 줄바꿈 */
}
.dp-sec { padding: 34px 20px; text-align: center; }   /* 본문은 가운데 정렬(2026-09-20) */
.dp-sec + .dp-sec { border-top: 1px solid var(--line); }
.dp-label {
  margin: 0 0 8px;
  font-size: 14.5px;               /* 2026-09-21 12.5 → 14.5 (작아 보인다는 요청) */
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.dp-label.light { color: rgba(247, 239, 220, 0.85); }
.dp-title {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.dp-body { margin: 0 0 12px; }
.dp-body:last-child { margin-bottom: 0; }

/* 1. 첫 띠 — 흰 바탕에 위쪽 자주 띠, 제목 아래 짧은 자주 선(2026-09-21 「⑤ 흰 바탕 + 자주 띠」로 교체.
   전에는 짙은 자주 바탕이었는데 배너 상자·120쪽 띠와 겹쳐 무거웠음) */
.dp-hero {
  position: relative;
  margin-top: 14px;                 /* 신청 단추와 띠 사이를 띄워 "본문 시작" 느낌(2026-09-21) */
  padding: 44px 24px 26px;
  background: var(--bg);
  border-top: 7px solid var(--brand);
  color: var(--ink);
  text-align: center;
}
.dp-hero::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 30px auto 0;             /* 보조문과 다음 구획 사이에 놓이도록 아래로(2026-09-21) */
  background: var(--brand);
}
.dp-kicker {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.dp .dp-hero-title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dp-hero-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* 2. 원국표 네 가지 — 번호 붙은 카드 2열 */
.dp-cards {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  counter-reset: dp;
}
.dp-cards li {
  min-width: 0;                   /* 격자 칸이 안의 긴 글 때문에 넓어지지 않게 */
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fbfbfc;
  counter-increment: dp;
}
.dp-cards li::before {
  content: "0" counter(dp);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.dp-cards b {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}
.dp-cards p {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
/* 견본 갤러리 — 좌우로 넘기는 카드, 한 장씩 걸림 */
.dp-gallery-cap {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.dp-gallery {
  display: flex;
  gap: 10px;
  margin: 0 -20px;
  padding: 2px 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dp-gallery::-webkit-scrollbar { display: none; }
/* 마우스로 끄는 동안(js/gallery-drag.js): 한 장씩 걸리는 기능 잠시 해제, 손 모양 커서 */
.dp-gallery { cursor: grab; }
.dp-gallery.is-dragging { cursor: grabbing; }
.dp-gallery.is-free { scroll-snap-type: none; scroll-behavior: auto; }
.dp-gallery img { user-select: none; -webkit-user-drag: none; }
.dp-gallery figure {
  flex: 0 0 76%;
  margin: 0;
  aspect-ratio: 5 / 7;
  scroll-snap-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}
.dp-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

/* 3. 시중 풀이 대비 — 왼쪽 회색(그들), 오른쪽 옅은 자주(우리) */
.dp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.dp-col {
  min-width: 0;
  padding: 14px 12px;
  border-radius: var(--r-md);
}
.dp-col-them { background: var(--surface); color: var(--muted); }
.dp-col-us { background: #fdf6f7; border: 1px solid #ecd6db; color: var(--ink-2); }
.dp-col-h {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
}
.dp-col-us .dp-col-h { color: var(--brand); }
.dp-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;               /* 글머리 줄은 왼쪽 정렬이 읽기 편합니다 */
}
.dp-col li { position: relative; padding-left: 12px; margin-bottom: 6px; }
.dp-col li:last-child { margin-bottom: 0; }
.dp-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}
.dp-col-us li::before { background: var(--brand); }
.dp-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dp-profile img {
  flex: 0 0 104px;
  width: 104px;
  height: 130px;
  object-fit: cover;
  object-position: 62% 42%;
  border-radius: var(--r-md);
}
.dp-profile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}

/* 4. 논문급 — 첫 띠와 같은 흰 바탕 + 위쪽 자주 띠(2026-09-21 어두운 띠에서 교체), 큰 숫자는 자주 */
.dp-sec.dp-proof {
  background: var(--bg);
  border-top: 6px solid var(--brand);
  color: var(--ink-2);
}
.dp-proof .dp-label.light { color: var(--gold); }   /* 다른 구획 머리글과 같은 금색(2026-09-21) */
.dp-proof-num {
  display: flex;
  flex-direction: column;          /* 큰 글 아래에 작은 설명 한 줄(2026-09-21, 전엔 나란히) */
  align-items: center;
  gap: 4px;
  margin: 0 0 14px;
}
.dp-proof-num strong {
  font-size: 26px;                 /* 「좋은 건 좋다고」 큰 글(.dp-big)과 같은 크기(2026-09-21, 전엔 44px) */
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.dp-proof-num span {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.dp-quotes {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.dp-quotes blockquote {
  margin: 0;
  padding: 12px 14px;
  border-top: 2px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.dp-quotes blockquote::before { content: "\201C"; margin-right: 4px; color: var(--brand); }

/* 5. 원칙 — 가운데 큰 글, 맺음말은 자주색 한 줄 */
.dp-principle { background: #fbfbfc; }
.dp-big {
  margin: 4px 0 18px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* 맺음 한 줄 — 2026-09-21 도장(테두리·기울임) 없애고 자주색 글만 */
.dp-seal {
  display: block;
  margin: 22px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand);
}

/* 6. 대운 곡선 */
.dp-wave {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
}

/* 7. 오래 함께 */
.dp-long { background: var(--surface); }

/* 8. 질문하세요 */
.dp-ask-line {
  margin: 20px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

@media (min-width: 600px) {
  .dp-sec { padding: 40px 28px; }
  .dp-gallery { margin: 0 -28px; padding-left: 28px; padding-right: 28px; }
  .dp-hero { padding: 54px 28px 48px; }
  .dp .dp-hero-title { font-size: 30px; }
  .dp-title { font-size: 23px; }
  .dp-big { font-size: 29px; }
  .dp-proof-num strong { font-size: 29px; }
}

/* ── 상품 카드 ─────────────────────────────────── */
.plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;           /* 몸통을 그림 기둥 높이까지 늘려 안내문(.plan-note)이 카드 맨 아래에 붙게 합니다(2026-09-19) */
  gap: 12px;
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.plan-card:hover { border-color: var(--faint); }

/* 카드를 눌러 고르면 아래 「신청 상품」 선택칸이 같이 바뀝니다(.selected 가 붙음).
   「제일 많이 찾는 상품」의 자주색 테두리와 헷갈리지 않도록 고른 카드는 따로 꾸미지 않습니다(2026-09-17). */

/* 왼쪽 기둥 — 그림(1:1) 아래에 상품 이름·가격 */
.plan-side {
  flex: 0 0 120px;
  width: 120px;
  min-width: 0;
  text-align: center; /* 그림 아래 이름·가격은 그림 가운데에 맞춥니다 */
}

/* 상품 그림 칸 — 가로세로 1:1. 그림은 background-image 로 넣습니다(그림 준비 전엔 옅은 회색 빈칸). */
.plan-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  background: var(--surface) center / cover no-repeat;
  overflow: hidden;
}

.plan-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: var(--brand);
  margin-top: 10px;
}

/* 표식 — 왼쪽 그림 칸(카드 안쪽 여백 12px + 그림 120px)의 가로 가운데에 맞춥니다. */
.badge {
  position: absolute;
  top: -11px;
  left: calc(12px + 120px / 2);
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.plan-card h3 {
  margin: 10px 0 2px;
  font-size: 15px;
  line-height: 1.3;
  word-break: keep-all;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.plan-card .price {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.plan-card .price .unit {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.plan-card ul {
  list-style: none;
  margin: 0 0 12px;               /* 아래 안내문과의 간격(안내문은 margin-top: auto 로 카드 바닥에 붙음) */
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.plan-card ul li {
  position: relative;
  padding: 3px 0 3px 12px;
}

.plan-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

/* 안내문은 카드 맨 아래에 붙입니다(설명이 짧은 카드도 긴 카드처럼) — .plan-card 가 align-items: stretch 라 몸통이 그림 기둥 높이까지 늘어납니다(2026-09-19). */
.plan-note {
  margin: 12px 0 0;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── 진심 담긴 후기 ─────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.reviews-head h2 { margin-bottom: 4px; }

.reviews-stat {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.reviews-stat .star { color: #d4a017; }
.reviews-stat strong { color: var(--ink); font-weight: 700; }
.reviews-stat .sep { margin: 0 6px; color: var(--faint); }

/* 오른쪽 위 정렬 선택칸 — 입력칸보다 작게 */
.reviews-sort { flex: 0 0 auto; }
.reviews-sort select {
  width: auto;
  height: 36px;
  padding: 0 32px 0 12px;
  font-size: 13.5px;
  background-position: right 10px center;
}

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.review {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* 왼쪽: 날짜·고객·상품·별점 */
.review-meta {
  flex: 0 0 128px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  white-space: nowrap;
}

.review-date {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.review-rating { margin-top: 2px; }

.review-stars {
  font-size: 12px;
  letter-spacing: 1px;
  color: #d4a017;
}

.reviews-stat .outof {
  margin-left: 3px;
  font-size: 12.5px;
  color: var(--faint);
}

.review-empty {
  justify-content: center;
  padding: 28px 0;
  font-size: 14px;
  color: var(--faint);
}

/* (더보기) 기준을 잴 때 잠깐 붙였다 떼는 보이지 않는 글자 */
.review-probe {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

/* 오른쪽: 후기 본문 */
.review-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.review-more {
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--brand);
  cursor: pointer;
}

/* 페이지 번호 */
.review-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.review-pages button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.review-pages button[aria-current="page"] {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 700;
}

.review-pages button:disabled {
  color: var(--faint);
  cursor: default;
}

.review-pages .ellipsis {
  padding: 0 2px;
  color: var(--faint);
}

/* 다음 페이지 오른쪽 — 구매 고객 리뷰 작성 */
.review-pages .review-write {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-left: 6px;
  padding: 0 12px;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}

.review-pages .review-write:hover { background: #fbf3f4; }

/* ── 후기 작성 페이지(review.html) ───────────────── */
#write-review { border-top: 0; }
#write-review h2,
#write-review .section-sub { text-align: center; }

.person-note {
  margin: -6px 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* 별점 고르기 — 단추를 누르면 5점부터 1점까지 목록이 열립니다 */
.star-pick { position: relative; }

.star-pick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface) url("/img/chevron.svg") no-repeat right 14px center;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.star-pick-stars {
  font-size: 22px;
  letter-spacing: 2px;
  color: #d4a017;
}

.star-pick-score {
  font-weight: 700;
  color: var(--ink-2);
}

.star-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.12);
}

.star-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
}

.star-menu li:hover,
.star-menu li:focus { background: var(--surface); outline: none; }
.star-menu li[aria-selected="true"] { font-weight: 700; color: var(--ink); }
.star-menu-stars { font-size: 18px; letter-spacing: 2px; color: #d4a017; }

.review-done {
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
}

.review-done-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.review-done-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* 「후기 남기기」는 펼쳐보기 단추와 같은 폭(최대 320px)으로 가운데에 둡니다 */
.review-submit {
  display: flex;
  width: min(100% - 40px, 320px);
  margin: 0 auto;
}

/* 「이전 화면으로 돌아가기」 — 펼쳐보기와 같은 금색 단추, 같은 크기 */
.review-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  text-decoration: none;
  box-shadow: 0 0 0 4px rgba(201, 168, 90, 0.14);
}

/* 펼치기 단추 — 상세 설명 단추와 같은 모양, 다만 막 위에 얹지 않으므로 여백만 다릅니다 */
.review-toggle {
  margin: 16px auto 0;
  box-shadow: 0 0 0 4px rgba(201, 168, 90, 0.14);
}

.review-toggle:active { box-shadow: 0 0 0 4px rgba(201, 168, 90, 0.28); }

#reviews { scroll-margin-top: 56px; }

/* ── 입력칸 ───────────────────────────────────── */
.field { margin-bottom: 20px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.req { color: var(--brand); }

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;            /* 16px 미만이면 아이폰이 화면을 확대해 버립니다 */
  letter-spacing: -0.01em;
}

textarea {
  height: auto;
  padding: 13px 14px;
  line-height: 1.6;
  resize: vertical;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("/img/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

input::placeholder,
textarea::placeholder { color: var(--faint); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--ink);
}

.field.centered {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.field.centered label { text-align: left; }

.field.centered input,
.field.centered select,
.field.centered textarea {
  max-width: none;
  text-align: left;
}

.field-note {
  margin: -4px 0 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

.memo-count {
  width: 100%;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--faint);
  text-align: right;
}

/* 신청 상품 칸 — 위아래 카드와 붙어 보이지 않게 띄웁니다. */
.field.plan-field { margin: 28px 0; }

/* ── 사람별 입력칸 ─────────────────────────────── */
.person-card {
  margin-bottom: 14px;
  padding: 18px 16px 2px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.person-title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.people-hint {
  margin: 0 0 14px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ── 고르는 버튼 (성별·양음력·관계) ──────────────── */
.toggle-group {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

/* 성별(2칸)·양음력(3칸)은 년·월·일 줄처럼 가로를 꽉 채워 똑같이 나눕니다. */
.toggle-group[data-group="gender"] .toggle-btn,
.toggle-group[data-group="calendarType"] .toggle-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  padding: 0 8px;
}

.toggle-btn {
  height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 0.13s ease, color 0.13s ease;
}

.toggle-btn:hover { background: var(--surface-2); }

.toggle-btn.active {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: #ffffff;
}

.toggle-btn.active:hover { background: var(--brand-light); }

.toggle-btn:disabled,
.toggle-btn[disabled] {
  background: var(--surface);
  color: #c9cbd0;
  cursor: not-allowed;
}

.toggle-btn:disabled:hover { background: var(--surface); }

/* ── 돌림판을 여는 버튼 (년·월·일, 시·분, 지역) ──── */
.picker-trigger-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.picker-trigger {
  flex: 1 1 0;
  min-width: 88px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--faint);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 0.13s ease, color 0.13s ease;
}

.picker-trigger.filled {
  background: var(--bg);
  border-color: var(--ink);
  color: var(--ink);
}

.picker-trigger:disabled {
  background: var(--surface);
  color: #c9cbd0;
  cursor: not-allowed;
}

/* '시간 모름'은 시·분 버튼과 한 줄에 서므로 키를 맞춥니다. */
.picker-trigger-row .toggle-btn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--r-sm);
}

.field.centered .birth-input { max-width: none; }

/* 동행 생년월일 안내글이 길어 휴대폰 폭에서 잘리지 않게 조금 줄입니다. */
.birth-input::placeholder { font-size: 13.5px; }

.birth-input.invalid { border-color: var(--brand); }

/* 입력칸 바로 아래 붙는 오류 안내 */
.field-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--brand);
  text-align: left;
}

/* ── 아래에서 올라오는 돌림판 ───────────────────── */
.picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.picker-overlay.hidden { display: none; }

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
}

.picker-sheet {
  position: relative;
  width: 100%;
  max-width: var(--col);
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: sheet-up 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.picker-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.picker-sheet-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.picker-cancel,
.picker-confirm {
  padding: 4px 6px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.picker-cancel { color: var(--muted); }

.picker-confirm {
  color: var(--brand);
  font-weight: 700;
}

.picker-wheel {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.picker-wheel-highlight {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface);
  pointer-events: none;
  z-index: 0;
}

.picker-wheel-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 88px 0;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.picker-wheel-list::-webkit-scrollbar { display: none; }

.picker-wheel-list li {
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 16px;
  color: var(--faint);
  scroll-snap-align: center;
}

.picker-wheel-list li.selected {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

/* ── 동의 ─────────────────────────────────────── */
.consent-box {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.consent-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.consent-text {
  max-height: 140px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--muted);
}

.consent-text p { margin: 7px 0; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
}

.checkbox-label.inline { margin-top: 26px; }

.checkbox-label input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: var(--brand);
}

.form-message {
  margin: 0 0 14px;
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.form-message.success { color: #1f7a4d; }
.form-message.error   { color: var(--brand); }

/* ── 맨 아래 ──────────────────────────────────── */
.footer {
  padding: 26px 0 32px;
  border-top: 8px solid var(--surface);
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
  text-align: center;
  background: var(--bg);
}

/* 바닥글의 처리방침·약관 링크와 사업자 정보 줄(2026-09-21). 사업자 정보는 편집 모드에서 채웁니다(footer.biz). */
.footer-links { margin: 10px 0 0; }
.footer-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-links a:hover { color: var(--ink); }
.footer-biz { margin: 8px auto 0; max-width: 560px; font-size: 11.5px; line-height: 1.7; color: var(--faint); word-break: keep-all; }

/* ── 개인정보 처리방침·이용약관 화면(privacy.html·terms.html, 2026-09-21) ── */
.legal .legal-body { margin-top: 22px; font-size: 14px; line-height: 1.75; color: var(--ink-2); word-break: keep-all; }
.legal .legal-body h3 { margin: 26px 0 8px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.legal .legal-body p { margin: 0 0 10px; }
.legal .legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal .legal-body li { margin: 4px 0; }
.legal-table { width: 100%; margin: 6px 0 12px; border-collapse: collapse; font-size: 13.5px; }
.legal-table th, .legal-table td { padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.6; }
.legal-table th { width: 30%; background: var(--surface); font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Turnstile(사람인지 확인) 위젯 자리(2026-09-21) — 사이트 키가 있을 때만 보입니다 */
.turnstile-box { display: flex; justify-content: center; margin: 0 0 14px; min-height: 65px; }
.turnstile-box[hidden] { display: none; }

/* 접수 폼의 동의 체크 두 개(개인정보 수집·이용, 국외 이전)와 처리방침 링크(2026-09-21) */
.checkbox-label + .checkbox-label { margin-top: 10px; }
.consent-links { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.consent-links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ── 화면 아래 붙어 다니는 신청 버튼 ──────────────
   신청서가 화면에 들어오면 main.js 가 .is-hidden 을 붙여 감춥니다. */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.cta-bar > .btn { max-width: calc(var(--col) - 40px); }

.cta-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.hide-mobile { display: none; }

/* ── 머리띠 아래 3분할 탭(사주풀이 / 역술 / 사주교육) ── 2026-09-17
   접수 화면(index.html)·역술(yeoksul.html)·사주교육(education.html) 세 화면 맨 위에 똑같이 놓입니다.
   지금 보고 있는 화면의 탭에는 .is-active 가 붙어 자주색 밑줄이 그어집니다. */
.site-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.site-tab + .site-tab { border-left: 1px solid var(--line); }

.site-tab:hover { color: var(--ink); background: #fbfbfc; }

.site-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* 역술·사주교육 화면: 탭 바로 아래 첫 구역은 회색 띠 없이 바로 이어집니다. */
.site-tabs + main > .section:first-child { border-top: 0; }

/* 안내용 카드(역술·사주교육) — 누르는 카드가 아니므로 손가락 모양·테두리 반응을 뺍니다. */
.plans.static .plan-card { cursor: default; }
.plans.static .plan-card:hover { border-color: var(--line); }

/* 가격 대신 「협의」처럼 글로 적을 때 */
.plan-card .price.talk { font-size: 17px; }

/* ── 넓은 화면 — 기둥은 그대로 두고 여백만 얹습니다 ── */
@media (min-width: 600px) {
  :root { --col: 560px; }

  body { background: #eef0f3; }

  .app {
    margin: 24px auto;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04),
                0 12px 40px rgba(17, 17, 17, 0.08);
  }

  /* 아래 버튼 띠도 기둥 너비에 맞춥니다 — 화면을 가로지르지 않게.
     (가운데 정렬은 margin 으로 합니다. transform 은 감출 때 쓰이므로 건드리면 안 됩니다.) */
  .cta-bar {
    max-width: var(--col);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
  }

  .app { padding-bottom: 40px; }

  .container { padding: 0 28px; }
  .section { padding: 44px 0; }
  .section h2 { font-size: 22px; }
  .hide-mobile { display: inline; }

  .plan-card { gap: 18px; padding: 18px; }
  .plan-side { flex-basis: 140px; width: 140px; }
  .badge { left: calc(18px + 140px / 2); }
  .plan-card h3 { font-size: 16px; }
  .plan-card .price { font-size: 21px; }
  .plan-card .price.talk { font-size: 18px; }
  .site-tab { height: 50px; font-size: 16px; }
}

@media (min-width: 1024px) {
  :root { --col: 600px; }

  .app { margin: 40px auto 56px; }
}

/* 움직임을 줄여 달라고 설정한 분께는 애니메이션을 끕니다. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
