/*
 * 리스인사이트 데모 — 디자인 토큰과 공통 부품 (Task 2)
 *
 * 규칙: 색·글자 크기·간격·모서리는 아래 :root 토큰만 쓴다. Task 3·4는 새 색·새 글꼴을 만들지 않고
 * 자기 파일(quote.css, deals.css)에서 이 토큰과 부품 클래스를 가져다 쓴다.
 * 서버가 CSP(default-src 'self')를 붙이므로 inline style 속성·data: 주소는 쓰지 않는다.
 *
 * 부품 클래스
 *   상단 줄      .top  .top__title  .top__btn
 *   구역(흰 카드) .sec  .sec-head  .sec-head__title  .sec-head__link   구역이 아닌 덩어리의 흰 카드  .panel
 *                 화면 바탕은 연한 회색(--canvas), 구역마다 흰 카드. 카드 안의 카드는 그림자 없이 선이나 옅은 면으로 나눈다.
 *   카드          .card(옅은 면)  .card--line
 *   꼬리표        .badges  .badge  .badge--hot|soft|brand|plain
 *   칩 버튼       .chips  .chip  (.is-on 또는 aria-pressed="true")
 *   가로 넘김 줄  .hscroll
 *   목록 행       .rows  .row  .row__art  .row__text  .row__title  .row__sub  .row__side
 *   금액          .price  .price--lg|xl  .price__unit  .price__tag  .price__from
 *   버튼          .btn  .btn--brand|kakao|line|soft  .btn--block
 *   고정 버튼 줄  .cta (core.js app.setCta)
 *   아래 탭       .tabs  .tab (아래에서 띄운 알약 모양. 고정 버튼 줄·토스트·홈 카톡 버튼은 --tabs-space 위에 놓는다)
 *   올라오는 창   .sheet  .sheet__panel  .sheet__title  .sheet__body  .sheet__actions  .copybox
 *   토스트        .toast
 *   뼈대(로딩)    .skel  .skel--line|block|circle
 *   작은 안내 글  .fine    빈 화면  .empty  .empty__title
 *   특판 카드     .deal-card (core.js app.dealCard)
 *   차 그림       .car-art (core.js app.carArt)
 */

:root {
  /* 색: 기본 8개 */
  --bg: #ffffff;        /* 화면 바탕 */
  --soft: #f2f5f3;      /* 옅은 면: 카드 속, 뼈대 */
  --ink: #15211e;       /* 글자 */
  --muted: #65726d;     /* 흐린 글자 */
  --line: #e0e6e3;      /* 선 */
  --brand: #0d6b58;     /* 대표색 짙은 초록: 수수료 0원, 계산한 금액, 고른 조건 */
  --hot: #d63d24;       /* 특가·한정: 주황빨강 (면) */
  --kakao: #fee500;     /* 카카오 버튼 */
  /* 위 색의 짝 */
  --on-brand: #ffffff;
  --brand-soft: #e1f0eb;
  --hot-ink: #b9301a;   /* 특가 글자 */
  --hot-soft: #fdebe6;
  --kakao-ink: #191600;
  --page: #e7ecea;      /* 넓은 화면에서 양옆 바탕 */
  --canvas: #f2f5f3;    /* 화면 바탕(연한 회색): 흰 카드가 놓이는 면. --soft와 같은 값이라 흐린 글자 대비 4.5:1 이상 */
  --glass: rgba(255, 255, 255, 0.92);
  --shine: rgba(255, 255, 255, 0.72);
  --dim: rgba(21, 33, 30, 0.52);
  --shadow: 0 8px 28px rgba(21, 33, 30, 0.16);
  --card-shadow: 0 4px 20px rgba(21, 33, 30, 0.06);  /* 흰 카드 */
  --float-shadow: 0 4px 20px rgba(21, 33, 30, 0.12); /* 떠 있는 아래 탭·고정 버튼 줄 */

  /* 글자 크기 단계 */
  --t-xs: 12px;
  --t-sm: 13px;
  --t-md: 15px;
  --t-lg: 17px;
  --t-xl: 20px;
  --t-2xl: 24px;
  --t-3xl: 30px;

  /* 간격 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;

  /* 모서리 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* 틀 크기 */
  --col: 480px;
  --top-h: 52px;
  --tabs-h: 58px;
  --tabs-gap: 12px;     /* 아래 탭과 화면 아래 끝 사이 */
  --cta-h: 62px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabs-space: calc(var(--tabs-h) + var(--tabs-gap) + var(--safe-bottom)); /* 화면 아래 끝에서 아래 탭 위 끝까지 */

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

/* ───────── 바탕 ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 var(--t-md)/1.5 var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
}
a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.noscript { max-width: var(--col); margin: var(--s-8) auto; padding: 0 var(--s-4); }

/* ───────── 틀: 가운데 한 줄 ───────── */
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: var(--col);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--canvas);
}
.notice-bar {
  padding: 6px var(--s-4);
  background: var(--hot-soft);
  color: var(--hot-ink);
  font-size: var(--t-xs);
  font-weight: 700;
  text-align: center;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--top-h);
  padding: 0 var(--s-4);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.top__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--t-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: var(--t-sm);
}
.top__btn .icon { width: 16px; height: 16px; }
.view {
  flex: 1;
  min-width: 0;
  padding: 0 var(--s-4) calc(var(--tabs-space) + var(--s-10));
  outline: 0;
}
.app.has-cta .view { padding-bottom: calc(var(--tabs-space) + var(--s-2) + var(--cta-h) + var(--s-10)); }

/* 떠 있는 탭 아래·옆 틈으로 본문 글자가 비치지 않게, 화면 맨 아래를 바탕색 띠로 덮는다(탭·버튼 줄 자리는 그대로). */
.app::after {
  content: "";
  position: fixed;
  z-index: 29;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--col);
  height: var(--tabs-space);
  margin: 0 auto;
  background: linear-gradient(to top, var(--canvas) 60%, rgba(242, 245, 243, 0));
  pointer-events: none;
}
/* 고정 버튼 줄이 있으면 버튼 줄과 탭 사이 8px 틈까지 덮는다 */
.app.has-cta::after { height: calc(var(--tabs-space) + var(--s-2)); background: var(--canvas); }

/* 아래 탭 4개: 화면 아래에서 띄운 알약. 좌우 16px·아래 12px(+기기 아래 안전 영역), 넓은 화면에서는 가운데 기둥 안. */
.tabs {
  position: fixed;
  z-index: 30;
  left: var(--s-4);
  right: var(--s-4);
  bottom: calc(var(--tabs-gap) + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: calc(var(--col) - var(--s-8));
  height: var(--tabs-h);
  margin: 0 auto;
  padding: 0 var(--s-2);
  border-radius: var(--r-pill);
  background: var(--bg);
  box-shadow: var(--float-shadow);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: var(--t-xs);
}
.tab[aria-current="page"] { color: var(--brand); font-weight: 800; }
.tab__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab:focus-visible { outline-offset: -4px; }

/* 탭 위 고정 버튼 줄: 아래 탭과 같은 너비의 흰 판을 탭 위 8px에 띄운다 */
.cta {
  position: fixed;
  z-index: 30;
  left: var(--s-4);
  right: var(--s-4);
  bottom: calc(var(--tabs-space) + var(--s-2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--s-2);
  max-width: calc(var(--col) - var(--s-8));
  min-height: var(--cta-h);
  margin: 0 auto;
  padding: var(--s-2);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--float-shadow);
}

/* ───────── 공통 부품 ───────── */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* 구역 = 회색 바탕 위의 흰 카드. 구역이 아닌 덩어리(빠른 메뉴, 견적의 차·가격 등)는 .panel로 같은 모양 */
.sec, .panel {
  margin-top: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--card-shadow);
}
.panel.rows { padding: var(--s-1) var(--s-4); } /* 줄 목록은 줄마다 위아래 여백이 있다 */
.panel.rows:empty { display: none; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.sec-head__title { font-size: var(--t-lg); font-weight: 800; letter-spacing: -0.02em; }
.sec-head__link { flex: none; padding: 6px 0 6px var(--s-3); color: var(--muted); font-size: var(--t-sm); }
.sec-head__note { flex: none; color: var(--muted); font-size: var(--t-xs); }

.fine { color: var(--muted); font-size: var(--t-xs); }
.sec > .fine { margin-top: var(--s-2); }

.card { padding: var(--s-4); border-radius: var(--r-lg); background: var(--soft); }
.card--line { border: 1px solid var(--line); background: var(--bg); }

.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: var(--t-xs);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.badge--hot { background: var(--hot); color: var(--on-brand); }
.badge--soft { background: var(--hot-soft); color: var(--hot-ink); }
.badge--brand { background: var(--brand-soft); color: var(--brand); }
.badge--plain { background: var(--soft); color: var(--muted); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--muted);
  font-size: var(--t-sm);
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.chip.is-on, .chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

.hscroll {
  display: flex;
  gap: var(--s-3);
  margin: 0 calc(var(--s-4) * -1);
  padding: 2px var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--s-4);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: none; scroll-snap-align: start; }

.row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  min-height: 66px;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.rows > .row:last-child { border-bottom: 0; }
.row__art { flex: none; width: 68px; }
.row__text { flex: 1; min-width: 0; }
.row__title { display: block; font-weight: 700; line-height: 1.35; }
.row__sub { display: block; margin-top: 2px; color: var(--muted); font-size: var(--t-sm); }
.row__side { flex: none; text-align: right; }
/* 누를 수 있는 줄(a·button)만 누르는 동안 살짝 작아진다 */
a.row, button.row { transition: transform 0.15s ease-out; }
a.row:active:not(:disabled), button.row:active:not(:disabled) { transform: scale(0.97); }

.price { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.price--lg { font-size: var(--t-xl); line-height: 1.25; }
.price--xl { font-size: var(--t-3xl); line-height: 1.15; letter-spacing: -0.03em; }
.price__unit { font-size: 0.74em; font-weight: 700; letter-spacing: 0; }
.price__tag, .price__from {
  margin-left: 5px;
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0;
}
.price__tag { padding: 1px 5px; border-radius: 5px; background: var(--soft); }
.price--none { color: var(--muted); font-size: var(--t-sm); font-weight: 500; }
.row__side .price__tag, .row__side .price__from { display: table; margin: 3px 0 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--t-md);
  font-weight: 700;
  text-align: center;
  transition: transform 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn--line { border: 1px solid var(--line); background: var(--bg); }
.btn--soft { background: var(--soft); }
.btn--block { display: flex; width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* 아래에서 올라오는 창 */
.sheet {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--dim);
  animation: fade-in 0.18s ease both;
}
.sheet__panel {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  width: 100%;
  max-width: var(--col);
  max-height: 88vh;
  max-height: 88dvh;
  padding: var(--s-6) var(--s-4) calc(var(--s-5) + var(--safe-bottom));
  overflow-y: auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--bg);
  outline: 0;
  animation: sheet-up 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.sheet__title { font-size: var(--t-xl); font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.sheet__body { display: flex; flex-direction: column; gap: var(--s-3); }
.sheet__text { color: var(--muted); font-size: var(--t-sm); }
.sheet__actions { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-1); }
.sheet.is-closing { animation: fade-out 0.16s ease both; }
.sheet.is-closing .sheet__panel { animation: sheet-down 0.16s ease both; }
.copybox {
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--soft);
  font-size: var(--t-sm);
  line-height: 1.65;
  white-space: pre-wrap;
  -webkit-user-select: text;
  user-select: text;
}
/* 처음 로그인할 때 확인 3개 */
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  min-height: 44px;
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--soft);
  font-size: var(--t-sm);
  line-height: 1.55;
  cursor: pointer;
}
.consent__box { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.consent__text { display: flex; flex-direction: column; gap: 2px; }
.consent__note { color: var(--muted); font-size: var(--t-xs); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--tabs-space) + var(--s-3));
  max-width: min(calc(var(--col) - var(--s-8)), calc(100vw - var(--s-8)));
  padding: 10px var(--s-4);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: var(--t-sm);
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.app.has-cta .toast { bottom: calc(var(--tabs-space) + var(--s-2) + var(--cta-h) + var(--s-3)); }
/* 홈: 오른쪽 아래 카톡 상담 버튼(.fab, 높이 46px) 위쪽에 띄운다 */
html:not(.is-locked) .app:has(.fab) .toast { bottom: calc(var(--tabs-space) + var(--s-3) + 46px + var(--s-3)); }
/* 창이 열려 있으면 창을 가리지 않게 위쪽에 띄운다 */
html.is-locked .toast, html.is-locked .app.has-cta .toast { top: calc(var(--s-6) + env(safe-area-inset-top, 0px)); bottom: auto; }

/* 뼈대(로딩) */
.skel {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--line); /* 회색 바탕 위에서도, 흰 카드 안에서도 보이게 */
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--shine), transparent);
  transform: translateX(-100%);
  animation: skel 1.3s ease-in-out infinite;
}
.skel--line { height: 14px; margin: 6px 0; }
.skel--title { width: 62%; height: 26px; margin: var(--s-2) 0; }
.skel--block { height: 148px; border-radius: var(--r-lg); }
.skel--row { height: 54px; margin: var(--s-3) 0; border-radius: var(--r-md); }
.skel--short { width: 44%; }
@keyframes skel { to { transform: translateX(100%); } }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-10) var(--s-4);
  color: var(--muted);
  text-align: center;
}
.empty__title { color: var(--ink); font-size: var(--t-lg); font-weight: 800; }

/* 차 그림(사진 대신) */
.car-art { width: 100%; height: auto; }
.car-art__ground { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-linecap: round; }
.car-art__body { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 0.9; stroke-linejoin: round; }
.car-art__glass { fill: var(--bg); opacity: 0.86; }
.car-art__wheel { fill: var(--ink); }
.car-art__hub { fill: var(--line); }
.car-art--t1 .car-art__body { fill: var(--line); stroke: var(--muted); }
.car-art--t2 .car-art__body { fill: var(--ink); stroke: var(--ink); }
.car-art--t2 .car-art__glass { fill: var(--soft); opacity: 0.5; }
.car-art--t2 .car-art__wheel { fill: var(--muted); }
.car-art--t3 .car-art__body { fill: var(--brand); }
.car-art--t3 .car-art__glass { fill: var(--brand-soft); opacity: 0.8; }

/* 특판 카드: 홈 가로 줄과 특가 목록이 같이 쓴다 */
.deal-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 232px;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: transform 0.15s ease-out;
}
.deal-card:active:not(:disabled) { transform: scale(0.97); }
.deal-card--wide { width: auto; }
.deal-card__art { display: block; width: 150px; max-width: 100%; margin: var(--s-2) auto var(--s-1); }
.deal-card__name { font-weight: 700; line-height: 1.35; }
.deal-card__benefit { color: var(--hot-ink); font-weight: 800; }
.deal-card__cond { color: var(--muted); font-size: var(--t-xs); }

/* ───────── 첫 화면(home) ───────── */
.top__brand { font-size: var(--t-xl); letter-spacing: -0.03em; }

.intro { padding: var(--s-2) 0 var(--s-4); }
.intro__title { font-size: var(--t-2xl); font-weight: 800; line-height: 1.25; letter-spacing: -0.03em; }
.intro__sub { margin-top: 4px; color: var(--muted); font-size: var(--t-sm); }

.hero { margin: 0 calc(var(--s-4) * -1); }
.hero__track {
  display: flex;
  padding-top: 2px; /* 마우스를 올려 2px 떠오른 판이 잘리지 않게(자리는 그대로) */
  margin-top: -2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; padding: 0 var(--s-4); scroll-snap-align: start; }
.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 136px;
  padding: var(--s-4) 136px var(--s-4) var(--s-4);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg); /* 이벤트 슬라이드: 회색 바탕 위 흰 면 */
  transition: transform 0.15s ease-out;
}
.hero__panel:active { transform: scale(0.98); }
.hero__eyebrow { font-size: var(--t-sm); font-weight: 800; }
.hero__title { font-size: var(--t-xl); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.hero__sub { margin-top: 2px; font-size: var(--t-sm); }
.hero__art {
  position: absolute;
  right: var(--s-3);
  bottom: var(--s-3);
  width: 124px;
  pointer-events: none;
}
.hero__art .icon { width: 64px; height: 64px; margin: 0 var(--s-3) var(--s-3) auto; stroke-width: 1.3; }
.hero__zero {
  display: block;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: right;
}
.hero__zero small { font-size: 0.46em; letter-spacing: -0.02em; }
.hero__panel--hot { background: var(--hot-soft); }
.hero__panel--hot .hero__eyebrow { color: var(--hot-ink); }
.hero__panel--zero { background: var(--brand-soft); }
.hero__panel--zero .hero__eyebrow, .hero__panel--zero .hero__art { color: var(--brand); }
.hero__panel--event .hero__eyebrow, .hero__panel--event .hero__art { color: var(--brand); }
.hero__dots { display: flex; justify-content: center; gap: 2px; margin-top: var(--s-1); }
.hero__dot { display: grid; place-items: center; width: 20px; height: 24px; }
.hero__dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color 0.15s ease, width 0.15s ease; }
.hero__dot[aria-current="true"]::before { width: 16px; border-radius: var(--r-pill); background: var(--ink); }

.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-1); margin-top: var(--s-3); }
.quick.panel { padding: var(--s-3) var(--s-2); }
.quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--s-1) 0;
  font-size: var(--t-xs);
  font-weight: 600;
  text-align: center;
}
.quick__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  color: var(--brand);
  transition: transform 0.12s ease;
}
.quick__item:active .quick__icon { transform: scale(0.95); }
.quick__icon--hot { background: var(--hot-soft); color: var(--hot-ink); }
.quick__icon--kakao { background: var(--kakao); color: var(--kakao-ink); }

.why { display: grid; gap: var(--s-2); }
.why__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--soft);
}
.why__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.why__mark .icon { width: 20px; height: 20px; }
.why__title { display: block; font-weight: 800; }
.why__text { display: block; color: var(--muted); font-size: var(--t-sm); }

/* 이렇게 진행돼요(app.steps): 번호 동그라미를 세로 선으로 잇는다. 지금 단계만 짙은 초록. */
.steps { display: grid; }
.steps__item { position: relative; display: flex; gap: var(--s-3); padding-bottom: var(--s-4); }
.steps__item:last-child { padding-bottom: 0; }
.steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 4px;
  left: 13px;
  width: 2px;
  border-radius: 1px;
  background: var(--line);
}
.steps__no {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--t-sm);
  font-weight: 800;
}
.steps__item[aria-current="step"] .steps__no { background: var(--brand); color: var(--on-brand); }
.steps__text { display: grid; gap: 2px; min-width: 0; padding-top: 3px; }
.steps__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 800; }
.steps__desc { color: var(--muted); font-size: var(--t-sm); }

.strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-weight: 700;
  transition: transform 0.15s ease-out;
}
.strip:active:not(:disabled) { transform: scale(0.97); }
.strip + .strip { margin-top: var(--s-2); }
.strip__side { flex: none; color: var(--muted); font-size: var(--t-sm); font-weight: 500; }

.review {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 264px;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--soft);
}
.review__who { font-size: var(--t-sm); font-weight: 800; }
.review__text { font-size: var(--t-sm); }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0 5px 3px 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq__item[open] .faq__q::after { margin-bottom: -3px; transform: rotate(-135deg); }
.faq__a { padding: 0 var(--s-5) var(--s-4) 0; color: var(--muted); font-size: var(--t-sm); }
.faq__item:last-child { border-bottom: 0; }
.faq__item:last-child:not([open]) .faq__q, .faq__item:last-child .faq__a { padding-bottom: 0; }

.foot {
  display: grid;
  gap: 6px;
  margin-top: var(--s-10);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-xs);
}

.fab {
  position: fixed;
  z-index: 25;
  right: max(var(--s-4), calc(50vw - var(--col) / 2 + var(--s-4))); /* 아래 탭 오른쪽 끝과 맞춘다 */
  bottom: calc(var(--tabs-space) + var(--s-3));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  background: var(--kakao);
  color: var(--kakao-ink);
  font-size: var(--t-sm);
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.fab:active { transform: scale(0.96); }
.fab .icon { width: 18px; height: 18px; }

/* 화면이 바뀔 때 앞쪽 덩어리 4개가 차례로 올라온다. core.js enterOnce가 진짜 내용이 처음 놓일 때
   #view에 is-entering을 잠깐 붙였다 뗀다(뼈대·뒤로 가기·움직임 줄이기는 건너뛴다). 끝나면 transform이 남지 않는다. */
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
.view.is-entering > :nth-child(-n+4):not(.fab) {
  animation-name: enter;
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
  animation-fill-mode: both;
}
.view.is-entering > :nth-child(2) { animation-delay: 70ms; }
.view.is-entering > :nth-child(3) { animation-delay: 140ms; }
.view.is-entering > :nth-child(4) { animation-delay: 210ms; }

/* 바깥 주소로 들어온 사람이 처음 보는 접속 번호 화면(pass.html, 스크립트 없음). 이 파일만 통과 쿠키 없이 받는다. */
body.pass { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: var(--s-4); background: var(--canvas); }
.pass__box { display: grid; gap: var(--s-2); width: 100%; max-width: 360px; padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--card-shadow); }
.pass__title { font-size: var(--t-xl); font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.pass__lead { color: var(--muted); font-size: var(--t-sm); }
.pass__form { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.pass__label { font-size: var(--t-sm); font-weight: 700; }
.pass__input { width: 100%; min-height: 52px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--ink); font: 700 var(--t-2xl)/1 var(--font); letter-spacing: 0.3em; text-align: center; }
.pass__input:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }
.pass__error { color: var(--hot-ink); font-size: var(--t-sm); font-weight: 700; }

/* ───────── 넓은 화면·움직임 줄이기 ───────── */
@media (min-width: 520px) {
  .app { box-shadow: 0 0 0 1px var(--line); }
}
@media (hover: hover) {
  .row:hover .row__title, .deal-card:hover .deal-card__name, .strip:hover { color: var(--brand); }
  .sec-head__link:hover, .top__btn:hover { color: var(--ink); }
  /* 마우스를 올리면 2px 떠오른다. 누르는 중에는 위의 크기 줄임이 이긴다. */
  .deal-card:hover:not(:active), .hero__panel:hover:not(:active) { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
