/* ============================================================
   TOGETUS web
   - 로고의 교차하는 캡슐 막대 = 두 사람의 길이 만나는 지점
   - 컬러: 로고 4색 + 네이비 기운의 잉크/뉴트럴
   - 타이포: Pretendard(앱 폰트) + Barlow Semi Condensed(숫자·영문 라벨)
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --paper-2: #F5F5FA;
  --paper-3: #ECECF4;

  --ink: #17163B;
  --ink-2: #4A4968;
  --ink-3: #85849E;
  --ink-4: #B8B7CB;
  --line: #E4E4EE;
  --line-2: #D5D5E2;

  --pink: #F56275;          /* Primary100_Original */
  --pink-ink: #D93850;      /* 흰 글자 AA 대비용 */
  --pink-soft: #FDE3E7;
  --navy: #28266E;          /* 로고 워드마크 */
  --navy-soft: #E3E3F2;
  --cyan: #16B8DE;
  --cyan-ink: #0A7897;
  --cyan-soft: #DCF3F9;
  --purple: #7E5C96;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-num: "Barlow Semi Condensed", "Pretendard Variable", Pretendard, "Arial Narrow", sans-serif;

  --header-h: 68px;
  --gutter: 20px;
  --maxw: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.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;
}

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

section[id] { scroll-margin-top: var(--header-h); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }

.btn-primary { background: var(--pink-ink); color: #fff; }
.btn-primary:hover { background: #C22E45; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26255A; }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4); }

.store-btn { min-height: 58px; padding: 0 16px; gap: 8px; }
.store-btn span { display: block; text-align: left; font-size: 17px; line-height: 1.1; white-space: nowrap; }
.store-btn small { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 500; opacity: .72; }

/* 준비 중 안내 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-ink);
  font-size: 15px;
  font-weight: 700;
}
.text-link span { transition: transform .15s; }
.text-link:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* backdrop-filter를 헤더에 직접 주면 fixed 모바일 메뉴의 기준이 헤더로 바뀌어 메뉴가 잘림 → 가상요소로 분리 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
body.nav-open .site-header::before { background: var(--paper); }
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand img { height: 28px; width: auto; }

.nav-toggle {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px var(--gutter) 32px;
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav li a {
  display: block;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.site-nav .nav-cta { margin-top: 28px; width: 100%; }
body.nav-open { overflow: hidden; }

@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: transparent;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav li a {
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
  }
  .site-nav li a:hover { background: var(--paper-2); color: var(--ink); }
  .site-nav .nav-cta { margin: 0; width: auto; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; }
  .brand img { height: 32px; }
}

/* ---------- Section common ---------- */
.section { padding-block: 88px; }
.section-head { max-width: 680px; margin-bottom: 48px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--pink-ink);
  font-size: 14px;
  font-weight: 700;
}
/* 로고의 기울어진 캡슐 막대 */
.eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 7px;
  border-radius: 4px;
  background: var(--pink);
  transform: rotate(-14deg);
}
.eyebrow .en {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.04em;
}
.section-desc {
  margin-top: 18px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 17px;
}

@media (min-width: 768px) {
  .section { padding-block: 128px; }
  .section-head { margin-bottom: 64px; }
  .section-desc { font-size: 18px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: 28px 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
}
.plus-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}
.plus-mark::before,
.plus-mark::after {
  content: "";
  position: absolute;
  border-radius: 4px;
}
.plus-mark::before { left: 0; top: 6px; width: 18px; height: 7px; background: var(--pink); }
.plus-mark::after {
  left: 6px; top: 0; width: 7px; height: 18px;
  background: var(--cyan);
  mix-blend-mode: multiply;
  transform: rotate(12deg);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.05em;
}
.hl {
  position: relative;
  z-index: 0;
  background: none;
  color: inherit;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.06em;
  right: -.06em;
  bottom: .06em;
  height: .36em;
  border-radius: 999px;
  transform: rotate(-2.5deg);
}
.hl-pink::after { background: #FFC5CE; }
.hl-cyan::after { background: #BCE9F5; transform: rotate(2deg); }

.hero-lead {
  margin-top: 24px;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 17px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-actions .btn { flex: 1 1 170px; }

/* 노선 장면 */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  aspect-ratio: 560 / 520;
  overflow: hidden;
  border-radius: 32px;
  background: var(--paper-2);
  container-type: inline-size;
}
.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-grid path { fill: none; stroke: #FFFFFF; stroke-width: 5; }
.scene-road path { fill: none; stroke: #FFFFFF; stroke-width: 20; stroke-linecap: round; }
.scene-leader { fill: none; stroke: var(--ink-4); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }

.scene-tag,
.scene-meet,
.scene-card {
  position: absolute;
  font-size: clamp(10px, 2.25cqw, 13px);
  line-height: 1.35;
}
.scene-tag {
  padding: .65em .95em;
  border-radius: .9em;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 .9em 1.8em -1.1em rgba(23, 22, 59, .35);
  color: var(--ink-3);
  font-weight: 600;
  white-space: nowrap;
}
.scene-tag b { display: block; margin-top: .15em; color: var(--ink); font-size: 1.1em; font-weight: 700; }
.scene-tag-a { left: 4%; top: 5%; }
.scene-tag-b { left: 4%; top: 82%; }
.scene-tag-d { right: 4%; top: 5%; }

.scene-meet {
  left: 34%;
  top: 31%;
  padding: .6em 1.05em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.scene-card {
  right: 4%;
  bottom: 5%;
  width: 36%;
  padding: 1em 1.1em .8em;
  border-radius: 1.1em;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 1.2em 2.4em -1.2em rgba(23, 22, 59, .35);
}
.scene-card-title { color: var(--ink); font-size: 1.08em; font-weight: 800; margin-bottom: .45em; }
.scene-card li {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .26em 0;
  color: var(--ink-4);
  font-weight: 600;
}
.scene-card li::before {
  content: "";
  flex: none;
  width: .7em;
  height: .7em;
  border-radius: 50%;
  background: var(--line-2);
}
.scene-card li.done { color: var(--ink-3); }
.scene-card li.done::before { background: var(--pink); opacity: .45; }
.scene-card li.now { color: var(--ink); font-weight: 800; }
.scene-card li.now::before { background: var(--pink); box-shadow: 0 0 0 .25em var(--pink-soft); }

@media (min-width: 1000px) {
  .hero { padding-block: 56px 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .hero-lead { font-size: 19px; }
  .hero-actions .btn { flex: 0 0 auto; padding: 0 22px; }
}

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; gap: 64px; }
.about .section-title { margin-top: 44px; }

.lockup {
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: clamp(72px, 13vw, 156px);
  font-style: italic;
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.015em;
  color: var(--navy);
}
.lockup span { color: var(--pink); }
.lockup-meaning {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 16px;
}
.lockup-meaning strong { color: var(--ink); }

.points { display: grid; gap: 40px 44px; }
.point { padding-top: 22px; border-top: 2px solid var(--ink); }
.point svg { width: 30px; height: 30px; }
.point h3 { margin-top: 18px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.point p { margin-top: 8px; font-size: 15px; }
.point-pink svg { color: var(--pink-ink); }
.point-cyan svg { color: var(--cyan-ink); }
.point-purple svg { color: var(--purple); }
.point-navy svg { color: var(--navy); }

@media (min-width: 700px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 88px; align-items: end; }
}

/* ============================================================
   How — 노선도
   유저(핑크)·플레이어(네이비) 두 노선이 매칭 역에서 합류해 함께 달림
   ============================================================ */
.how { background: var(--paper-2); }

.route { position: relative; }
.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 36px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.route-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 28px; height: 6px; border-radius: 3px; }
.lg-user { background: var(--pink); }
.lg-player { background: var(--navy); }
.lg-both {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--pink) 0 43%, transparent 43% 57%, var(--navy) 57% 100%);
}

.stop { position: relative; }
.stop-mark {
  position: absolute;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--ink);
  transform: translate(-50%, -50%);
}
.stop-user .stop-mark { border-color: var(--pink); }
.stop-player .stop-mark { border-color: var(--navy); }
.stop-end .stop-mark { background: var(--ink); }

.stop-lane {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}
.stop-user .stop-lane { background: var(--pink-soft); color: var(--pink-ink); }
.stop-player .stop-lane { background: var(--navy-soft); color: var(--navy); }
.stop h3 { margin-top: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.stop p:not(.stop-lane) { margin-top: 6px; font-size: 15px; line-height: 1.6; }

/* 모바일: 세로 노선 */
.route-track { display: none; }
.route-merge { position: relative; height: 44px; }
.route-merge svg { position: absolute; left: 0; top: 0; width: 64px; height: 44px; }
.route-merge path { fill: none; stroke-width: 6; }

.stop { padding: 0 0 32px 80px; }
.stop::before,
.stop::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
}
.stop-user::before,
.stop-player::before { left: 18px; background: var(--pink); }
.stop-user::after,
.stop-player::after { left: 42px; background: var(--navy); }
.stop-user::before,
.stop-user::after { top: 14px; }
.stop-both::before { left: 25px; background: var(--pink); }
.stop-both::after { left: 33px; background: var(--navy); }
.stop-end { padding-bottom: 0; }
.stop-end::before,
.stop-end::after { bottom: auto; height: 14px; }

.stop-mark { top: 14px; }
.stop-user .stop-mark { left: 21px; }
.stop-player .stop-mark { left: 45px; }
.stop-both .stop-mark { left: 32px; width: 32px; height: 20px; border-radius: 10px; }

@media (min-width: 1000px) {
  .route-legend { position: absolute; right: 0; top: 0; margin: 0; }

  .route-stops {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto 64px auto;
  }
  .route-track { display: block; grid-row: 2; grid-column: 1 / -1; }
  .route-track svg { display: block; width: 100%; height: 64px; overflow: visible; }
  .route-track path { fill: none; stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .route-merge { display: none; }

  .stop { padding: 0 24px 0 0; }
  .stop::before,
  .stop::after { display: none; }
  .stop-user { grid-row: 1; grid-column: 1; align-self: end; padding-bottom: 22px; }
  .stop-player { grid-row: 3; grid-column: 1; padding-top: 22px; }
  .stop-both { grid-row: 3; padding-top: 22px; }

  .stop-mark { left: 12px; }
  .stop-user .stop-mark { left: 12px; top: calc(100% + 18px); }
  .stop-player .stop-mark { left: 12px; top: -18px; }
  .stop-both .stop-mark { left: 12px; top: -32px; width: 20px; height: 32px; }
  .stop h3 { font-size: 19px; }
}

/* ============================================================
   Player
   ============================================================ */
.player {
  background: var(--navy);
  color: rgba(255, 255, 255, .74);
}
.player h2,
.player h3 { color: #fff; }
.player .section-desc { color: rgba(255, 255, 255, .74); }
.player .eyebrow { color: #FFB3BE; }
.player .eyebrow .en { color: rgba(255, 255, 255, .55); }

.ways { display: grid; gap: 36px; }
.way { padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .2); }
.way-art { display: block; width: 100%; max-width: 300px; height: auto; }
.way-tag {
  margin-top: 20px;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  font-weight: 700;
}
.way h3 { margin-top: 4px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.way p:not(.way-tag) { margin-top: 8px; font-size: 15px; }

@media (min-width: 800px) {
  .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* 플레이어 패스(승차권) */
.pass {
  position: relative;
  display: grid;
  margin-top: 64px;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink-2);
}
.pass h3 { color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.pass-main,
.pass-stub { padding: 30px 24px; }
.pass-stub {
  position: relative;
  border-top: 2px dashed var(--line-2);
}
.pass-stub::before,
.pass-stub::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
}
.pass-stub::before { left: -14px; top: -15px; }
.pass-stub::after { right: -14px; top: -15px; }

.pass-label {
  margin-bottom: 10px;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink-ink);
}

.check-list { margin-top: 18px; }
.check-list li {
  position: relative;
  padding: 7px 0 7px 32px;
  color: var(--ink);
  font-size: 16px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.2l3 2.9 6-6' fill='none' stroke='%23D93850' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
}

.apply-flow { margin-top: 14px; }
.apply-flow li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.apply-flow li:last-child { border-bottom: 0; }
.apply-flow b {
  flex: none;
  min-width: 26px;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.pass .btn { margin-top: 20px; width: 100%; }

@media (min-width: 800px) {
  .pass { grid-template-columns: 1fr 1fr; }
  .pass-main,
  .pass-stub { padding: 44px 48px; }
  .pass-stub { border-top: 0; border-left: 2px dashed var(--line-2); }
  .pass-stub::before { left: -15px; top: -14px; }
  .pass-stub::after { left: -15px; right: auto; top: auto; bottom: -14px; }
  .pass .btn { width: auto; }
}

/* ============================================================
   Price / 취소 구간 차트
   ============================================================ */
.facts { display: grid; gap: 32px; }
.facts li { padding-top: 20px; border-top: 2px solid var(--ink); }
.facts h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.facts p { margin-top: 8px; font-size: 15px; }
@media (min-width: 800px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

.cancel {
  margin-top: 64px;
  padding: 28px 20px;
  border-radius: 28px;
  background: var(--paper-2);
}
.cancel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.cancel-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

.cc-scroll { margin-top: 28px; overflow-x: auto; }

/* 모바일: 세로(행=상태, 열=취소 주체) */
.cc {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) repeat(3, 54px);
  grid-template-rows: auto repeat(6, 52px);
  column-gap: 6px;
  min-width: 280px;
}
.cc-st {
  grid-column: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.cc-st::before {
  content: "";
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink-4);
  background: var(--paper);
}
.cc-st-4::before { border-color: var(--pink-ink); }
.cc-st-1 { grid-row: 2; }
.cc-st-2 { grid-row: 3; }
.cc-st-3 { grid-row: 4; }
.cc-st-4 { grid-row: 5; }
.cc-st-5 { grid-row: 6; }
.cc-st-6 { grid-row: 7; }

.cc-row {
  grid-row: 1;
  align-self: end;
  padding-bottom: 10px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.cc-row-user { grid-column: 2; }
.cc-row-player { grid-column: 3; }
.cc-row-auto { grid-column: 4; }

.cc-bar { display: grid; gap: 3px; padding-block: 4px; }
.cc-bar-user { grid-column: 2; grid-row: 2 / 8; grid-template-rows: 3fr 1fr 2fr; }
.cc-bar-player { grid-column: 3; grid-row: 2 / 8; grid-template-rows: 3fr 3fr; }
.cc-bar-auto { grid-column: 4; grid-row: 4; }

.cc-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0;           /* 모바일은 색으로만, 설명은 아래 노트 */
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.cc-seg b { font-family: var(--font-num); font-size: 15px; font-weight: 800; }
.cc-seg small { display: none; }
.cc-bar-user .cc-seg-free { background: var(--pink-soft); color: var(--pink-ink); }
.cc-seg-fee { background: var(--pink-ink); color: #fff; }
.cc-bar-player .cc-seg-free { background: var(--navy-soft); color: var(--navy); }
.cc-bar-auto .cc-seg-free { background: var(--cyan-soft); color: var(--cyan-ink); }
.cc-seg-no {
  background: repeating-linear-gradient(-45deg, var(--paper-3) 0 6px, var(--paper) 6px 12px);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-3);
}

/* 데스크톱: 가로(열=상태, 행=취소 주체) */
@media (min-width: 900px) {
  .cancel { padding: 40px 44px 44px; }
  .cc {
    grid-template-columns: 112px repeat(6, minmax(0, 1fr));
    grid-template-rows: auto repeat(3, 64px);
    column-gap: 0;
    row-gap: 10px;
  }
  .cc-st {
    grid-row: 1;
    align-items: flex-start;
    padding: 0 8px 18px 0;
    border-bottom: 2px solid var(--line-2);
    font-size: 14px;
  }
  .cc-st::before { left: 0; top: auto; bottom: -7px; }
  .cc-st-1 { grid-column: 2; }
  .cc-st-2 { grid-column: 3; }
  .cc-st-3 { grid-column: 4; }
  .cc-st-4 { grid-column: 5; }
  .cc-st-5 { grid-column: 6; }
  .cc-st-6 { grid-column: 7; }

  .cc-row {
    grid-column: 1;
    align-self: center;
    padding: 0;
    font-size: 14px;
    text-align: left;
  }
  .cc-row-user { grid-row: 2; }
  .cc-row-player { grid-row: 3; }
  .cc-row-auto { grid-row: 4; }

  .cc-bar { padding-block: 0; padding-right: 3px; }
  .cc-bar-user { grid-row: 2; grid-column: 2 / 8; grid-template-rows: none; grid-template-columns: 3fr 1fr 2fr; }
  .cc-bar-player { grid-row: 3; grid-column: 2 / 8; grid-template-rows: none; grid-template-columns: 3fr 3fr; }
  .cc-bar-auto { grid-row: 4; grid-column: 4 / 5; }

  .cc-seg {
    align-items: flex-start;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: left;
  }
  .cc-seg b { font-size: 22px; line-height: 1; }
  .cc-seg small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; opacity: .85; }
}

.cc-notes { margin-top: 28px; display: grid; gap: 14px; }
.cc-notes li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
}
.cc-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 4px;
}
.cc-notes b { display: block; color: var(--ink); font-weight: 800; }
.note-user::before { background: var(--pink-soft); box-shadow: inset 0 0 0 1px #F5B5C0; }
.note-fee::before { background: var(--pink-ink); }
.note-player::before { background: var(--navy-soft); box-shadow: inset 0 0 0 1px #C4C3E3; }
.note-auto::before { background: var(--cyan-soft); box-shadow: inset 0 0 0 1px #A9DDEB; }
.note-plain::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-4); }

@media (min-width: 900px) {
  .cc-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
  .cc-notes b { display: inline; margin-right: 8px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper-2); }
.faq-grid { display: grid; gap: 8px; }
.faq .section-head { margin-bottom: 28px; }

.chips {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.chip[aria-pressed="true"] { background: var(--ink); box-shadow: none; color: #fff; }

.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item[hidden] { display: none; }
.faq-item summary {
  position: relative;
  display: block;
  padding: 22px 44px 22px 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  background:
    linear-gradient(var(--pink-ink), var(--pink-ink)) center / 16px 2px no-repeat;
}
.faq-item summary:hover { color: var(--pink-ink); }
.faq-a { padding: 0 44px 26px 0; font-size: 16px; }
.faq-a p + p,
.faq-a p + ul,
.faq-a ul + p { margin-top: 10px; }
.faq-a ul li { position: relative; padding-left: 16px; }
.faq-a ul li + li { margin-top: 4px; }
.faq-a ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-4);
}
.faq-a a { color: var(--pink-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 88px; align-items: start; }
  .faq-side { position: sticky; top: calc(var(--header-h) + 40px); }
  .chips { flex-wrap: wrap; overflow: visible; }
  .faq-item summary { font-size: 18px; padding-block: 26px; }
}

/* ============================================================
   Contact — 표지판
   ============================================================ */
.contact-grid { display: grid; gap: 16px; }
.contact .section-head { margin-bottom: 32px; }

.signs { border-top: 2px solid var(--ink); }
.sign {
  display: grid;
  grid-template-areas: "label" "value";
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
}
.sign-label { grid-area: label; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.sign-value { grid-area: value; color: var(--ink); overflow-wrap: anywhere; }
.sign-tel {
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
}
.sign-mail {
  margin-top: 6px;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 700;
  letter-spacing: -.02em;
}

@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 88px; align-items: start; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding-block: 48px 44px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-logo,
.footer-brand img { height: 28px; width: auto; }
.footer-brand { margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a.is-strong { color: var(--ink); font-weight: 800; }

.biz-info { display: flex; flex-wrap: wrap; gap: 2px 0; line-height: 1.8; }
.biz-info div { display: inline-flex; flex-wrap: wrap; align-items: center; margin-right: 16px; }
.biz-info dt { margin-right: 6px; color: var(--ink-4); }
.biz-info dd { color: var(--ink-2); }
.biz-check {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.biz-check:hover { background: var(--paper); }
.footer-notice { margin-top: 16px; }
.copyright { margin-top: 8px; font-family: var(--font-num); font-size: 14px; letter-spacing: .02em; }

/* ============================================================
   정책 페이지(refund.html)
   ============================================================ */
.page-hero {
  padding-block: 56px 40px;
  background: var(--paper-2);
}
.page-hero .section-title { font-size: clamp(32px, 4.4vw, 48px); }
.page-hero .section-desc { margin-top: 12px; font-size: 15px; }

.policy {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 96px;
}
.policy-section { padding: 36px 0; border-top: 1px solid var(--line); }
.policy-section:first-child { border-top: 0; }
.policy-section h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.policy-section h3 { margin-top: 22px; font-size: 17px; font-weight: 700; }
.policy-section p,
.policy-section li { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.policy-section ul li { position: relative; padding-left: 16px; }
.policy-section ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-4);
}
.policy-section strong { color: var(--ink); }

/* 약관 원문 페이지 (tools/build_terms.py 로 생성) */
.doc h2 {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -.02em;
}
.doc > h2:first-child { margin-top: 8px; padding-top: 0; border-top: 0; }
.doc h3 { margin-top: 24px; font-size: 17px; font-weight: 700; color: var(--ink); }
.doc p { margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.doc p.sub { padding-left: 16px; }
.doc ul,
.doc ol { margin-top: 12px; padding-left: 22px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc ul ul,
.doc ol ol,
.doc ul ol,
.doc ol ul { margin-top: 6px; }
.doc li { margin-top: 6px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.doc li::marker { color: var(--ink-4); }
.doc strong { color: var(--ink); }
.doc .note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper-2);
}
.doc .note p:first-child { margin-top: 0; }
.table-scroll { margin-top: 16px; overflow-x: auto; }
.doc table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 15px; }
.doc th,
.doc td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); line-height: 1.6; }
.doc th { background: var(--paper-2); color: var(--ink); font-weight: 700; }

/* 약관 전체보기 */
.doc-group + .doc-group { margin-top: 40px; }
.doc-group h2 { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--pink-ink); }
.doc-links { margin-top: 12px; border-top: 2px solid var(--ink); }
.doc-links a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line-2);
}
.doc-links span { color: var(--ink); font-size: 17px; font-weight: 700; }
.doc-links small { color: var(--ink-3); font-size: 14px; }
.doc-links a:hover span { color: var(--pink-ink); text-decoration: underline; text-underline-offset: 4px; }

.refund-summary {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.refund-note { margin: 0; padding: 0 20px 20px; color: var(--ink-3); font-size: 14px; }

/* 요약표: 모바일은 카드, 넓은 화면은 표 */
.policy-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.policy-table thead { display: none; }
.policy-table tbody tr {
  display: block;
  margin: 12px 12px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--paper-2);
}
.policy-table tbody tr:last-child { margin-bottom: 16px; }
.policy-table th[scope="row"] {
  display: block;
  padding-bottom: 8px;
  text-align: left;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}
.policy-table td {
  position: relative;
  display: block;
  padding: 4px 0 4px 88px;
  color: var(--ink-2);
}
.policy-table td::before {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: 4px;
  width: 76px;
  color: var(--ink-3);
  font-weight: 600;
}
.policy-table strong { color: var(--pink-ink); }

@media (min-width: 768px) {
  .policy-table thead { display: table-header-group; }
  .policy-table tbody tr { display: table-row; margin: 0; padding: 0; border-radius: 0; background: none; }
  .policy-table th,
  .policy-table td {
    display: table-cell;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }
  .policy-table thead th {
    border-top: 0;
    background: var(--paper-2);
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 700;
  }
  .policy-table th[scope="row"] { display: table-cell; padding-bottom: 14px; font-size: 15px; }
  .policy-table td::before { display: none; }
  .refund-note { padding-top: 16px; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
