/*
 * PDS (Playlab Design System) — 컴포넌트 정본. 글자 크기·줄간격은 typography.css(같은 PDS 의 기초)에 있다.
 * (사람 지침 2026-11-09: "토스 TDS 처럼 이미 잘 만든 것을 거의 그대로 — 라운딩·사이즈를 빌려 와서 일관성만 맞춘다")
 *
 * 크기·라운딩 출처: TDS 문서의 Button 예제를 렌더해 잰 값(tossmini-docs.toss.im/tds-mobile/components/button, 2026-11-09).
 * 문서 본문에는 px 이 없어 문서가 실제로 그린 TDS 컴포넌트를 측정했다. 둥근 정도는 pill 이 아니라 크기별 라운드다.
 *   xlarge  높이 56 · 좌우 28 · 17px/600 · 라운드 16   → pds-btn-xl
 *   large   높이 48 · 좌우 16 · 17px/600 · 라운드 14   → pds-btn-lg
 *   medium  높이 38 · 좌우 16 · 15px/600 · 라운드 10   → pds-btn-md (헤더 버튼)
 *   small   높이 32 · 좌우 10 · 13px/600 · 라운드 8    → pds-btn-sm
 *   메뉴 링크    헤더 버튼(medium)과 같은 높이·라운드        → pds-nav-link
 *   Top(제목+버튼) 제목과 아래 버튼 사이 18 · 위아래 24 (TDS Top 예제 실측) — 웹 첫 화면은 큰 제목에 맞춰 늘린다.
 *   카드         라운드 24 · 안쪽 여백 24~36 · 테두리 없이 면 색  → pds-card
 * 글자 크기는 7단계 토큰에 맞췄다(19→subtitle, 14→caption).
 * 색은 우리 것(어두운 바탕 · 흰 primary). 페이지는 여기 클래스만 쓰고 높이·패딩·라운드를 따로 박지 않는다.
 */
:root {
  /* 색 — 토스 다크 배경 단계(toss.im CSS 실측 2026-11-09: darkBackground·darkGreyBackground·darkLayeredBackground·
     darkFloatBackground) + TDS 다크 회색 단계(글자). 브랜드 색(핑크·보라 그라데이션)은 우리 것 그대로. */
  --pds-bg: #17171c;        /* 페이지 바탕 */
  --pds-bg-deep: #101013;   /* 더 깊은 바탕 */
  --pds-layer: #202027;     /* 카드·패널 */
  --pds-float: #2c2c35;     /* 떠 있는 것(팝오버·버튼 면) */
  --pds-grey800: #e4e4e5;   /* 강조 본문 */
  --pds-grey700: #c3c3c6;   /* 본문 보조 */
  --pds-grey600: #9e9ea4;   /* 설명·메뉴 */
  --pds-grey500: #7e7e87;   /* 라벨·주석 */
  --pds-grey400: #62626d;
  --pds-grey300: #4d4d59;   /* 꺼진 점·구분선 진한 것 */
  --radius-card: 24px;
  --radius-inner: 16px;   /* 카드 안의 카드·썸네일 */
  --radius-sm: 6px;       /* 메뉴 링크·작은 칩 */
  --radius-pill: 9999px;
  --pds-card-pad: 24px;
}
@media (min-width: 768px) { :root { --pds-card-pad: 36px; } }

/* ---------- Button ---------- */
.pds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; line-height: 1.25; white-space: nowrap; text-decoration: none;
  transition: background-color .2s ease, transform .1s ease, box-shadow .3s ease;
}
.pds-btn:active { transform: scale(.97); }
.pds-btn-xl { height: 56px; padding: 0 28px; font-size: var(--fs-body); border-radius: 16px; }
.pds-btn-lg { height: 48px; padding: 0 16px; font-size: var(--fs-body); border-radius: 14px; }
.pds-btn-md { height: 38px; padding: 0 16px; font-size: var(--fs-caption); border-radius: 10px; }
.pds-btn-sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.pds-btn-xl, .pds-btn-lg { min-width: 120px; }
.pds-primary { background: #fff; color: #0e0e0e; }
.pds-primary:hover { background: rgba(255,255,255,.88); }
.pds-weak { background: rgba(255,255,255,.08); color: #fff; }
.pds-weak:hover { background: rgba(255,255,255,.13); }
/* 휴대폰에서 꽉 찬 폭(TDS display="full") */
@media (max-width: 639px) { .pds-full-mobile { width: 100%; } }

/* ---------- Nav link ---------- */
.pds-nav-link {
  display: inline-flex; align-items: center; height: 38px; padding: 0 12px;
  border-radius: 10px; font-size: var(--fs-caption); font-weight: 500;  /* 헤더 버튼(TDS medium)과 같은 높이·라운드 — 호버 면과 버튼 모양을 맞춘다(11-09) */
  color: var(--pds-grey600); text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.pds-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
/* ---------- Mobile menu (휴대폰 햄버거 → 오른쪽 사이드바) ---------- */
.pl-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 4px;
  border-radius: 10px; color: #fff; background: transparent; border: 0; cursor: pointer; transition: background-color .2s ease; }
.pl-menu-btn:hover, .pl-menu-btn:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.pl-menu { position: fixed; inset: 0; z-index: 60; }
.pl-menu-dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .32s ease; }
.pl-menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 320px); display: flex; flex-direction: column;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--pds-layer, #1c1c22);
  box-shadow: -24px 0 60px -12px rgba(0,0,0,.6); transform: translateX(100%); transition: transform .34s cubic-bezier(.22,1,.36,1); will-change: transform; }
/* 메뉴 항목은 패널보다 살짝 늦게 떠오른다 */
.pl-menu-links a { opacity: 0; transform: translateX(12px); transition: opacity .28s ease, transform .34s cubic-bezier(.22,1,.36,1); }
.pl-menu.is-open .pl-menu-links a { opacity: 1; transform: none; }
.pl-menu.is-open .pl-menu-links a:nth-child(1) { transition-delay: .06s; }
.pl-menu.is-open .pl-menu-links a:nth-child(2) { transition-delay: .1s; }
.pl-menu.is-open .pl-menu-links a:nth-child(3) { transition-delay: .14s; }
.pl-menu-sub { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--pds-grey600, #9e9ea4); }
.pl-menu-panel:focus { outline: none; }
.pl-menu.is-open .pl-menu-dim { opacity: 1; }
.pl-menu.is-open .pl-menu-panel { transform: none; }
.pl-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pl-menu-links { display: flex; flex-direction: column; }
.pl-menu-links a { display: flex; align-items: center; height: 52px; padding: 0 4px; font-size: 17px; font-weight: 600; color: #fff;
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.06); }
.pl-menu-links a:active { background: rgba(255,255,255,.04); }
@media (prefers-reduced-motion: reduce) { .pl-menu-dim, .pl-menu-panel, .pl-menu-links a { transition: none; } }

/* ---------- Card ---------- */
.pds-card { border-radius: var(--radius-card); padding: var(--pds-card-pad); background: var(--pds-layer); }
/* 토스처럼 테두리·빛 없이 면 색만. 눌러지는 카드만 올렸을 때 면이 한 단계 밝아진다. */
a.pds-card, .pds-card--hover { transition: background-color .2s ease; }
a.pds-card:hover, .pds-card--hover:hover { background: var(--pds-float); }
.pds-quote-mark { font-family: Georgia, serif; font-size: var(--fs-headline); line-height: 1; color: var(--pds-grey400); }

/* ---------- Tab (큰 선택 칸) ---------- 테두리 대신 면: 꺼진 칸=layer 반투명, 켜진 칸=float */
.pds-tab { display: flex; align-items: center; gap: 14px; padding: 20px; min-width: 0; border-radius: var(--radius-inner);
  background: rgba(32,32,39,.6); text-align: left; transition: background-color .2s ease; }
.pds-tab:hover { background: var(--pds-layer); }
.pds-tab[aria-selected="true"] { background: var(--pds-float); }
.pds-tab-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); flex-shrink: 0; }

/* ---------- Chip ---------- 작은 꼬리표·필터(테두리 없이 면) */
.pds-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  background: rgba(255,255,255,.06); font-size: var(--fs-micro); color: var(--pds-grey700); white-space: nowrap; }
.pds-radius-card { border-radius: var(--radius-card); }
.pds-radius-inner { border-radius: var(--radius-inner); }

/* ---------- Hero CTA glow ---------- 첫 화면 버튼 하나: 은은한 그라데이션 빛을 기본으로, 올리면 조금 밝아지며 커피잔이 흔들리며 나온다.
   (사람 피드백 11-09: 빛이 넓다 → 좁고 연하게, 이후 색을 조금 더 진하게) 마크업: <a class="pds-btn … hero-glow"><span class="cta-coffee" aria-hidden="true">☕</span>문구</a> */
.hero-glow { position: relative; gap: 0; }
#hero .hero-cta, #hero [data-cta-location="hero"] { margin-top: 56px; }  /* 제목·설명과 버튼 사이 56. 위 요소의 아래 마진과 겹쳐지므로(margin collapse) 큰 쪽 하나만 남는다.
   근거: TDS Top 은 22px 제목 아래 버튼까지 18(≈0.8em), toss.im 첫 화면은 56px 제목 → 설명 → 버튼이 약 35+25. 설명 없이 큰 제목 바로 아래라 그 합에 맞췄다(11-09). */  /* 쌓임 맥락을 만들지 않아야 빛(::after, z -1)이 흰 면 뒤로 간다 */
.hero-glow::after {
  content: ''; position: absolute; inset: -4px; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, #ff89aa, #fb88c7, #a064ff, #64b4ff); background-size: 300% 300%;
  animation: gradientShift 6s ease infinite; filter: blur(14px); opacity: .45; transition: opacity .4s ease;
}
.hero-glow:hover::after { opacity: .65; }
.cta-coffee { display: inline-block; width: 0; margin-right: 0; opacity: 0; overflow: hidden; transform-origin: 50% 80%;
  transition: width .25s ease, margin-right .25s ease, opacity .25s ease; }
.hero-glow:hover .cta-coffee { width: 1.15em; margin-right: .35em; opacity: 1; animation: coffeeWiggle .9s ease-in-out infinite; }
@media (hover: none) { .cta-coffee { width: 1.15em; margin-right: .35em; opacity: 1; animation: coffeeWiggle 1.6s ease-in-out infinite; } }
@keyframes coffeeWiggle { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .cta-coffee, .hero-glow::after { animation: none !important; } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Footer ---------- 마크업은 생성기(sync-footer-guides·sync-social)가 쓰므로 손대지 않고 모양만 여기서.
   토스 푸터처럼: 깊은 단색 바탕, 밑줄 없는 회색 링크(올리면 밝게), 라벨은 한 단계 더 연하게. */
#footer { background: var(--pds-bg-deep); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; }
#footer, #footer p { color: var(--pds-grey500); }
#footer span { color: var(--pds-grey600); }
#footer a { color: var(--pds-grey600); text-decoration: none; transition: color .2s ease; }
#footer a:hover { color: var(--pds-grey800); }
#footer p.uppercase { color: var(--pds-grey700); letter-spacing: .08em; }
#footer p.font-bold:not(.uppercase) { color: var(--pds-grey700); }
#footer img { opacity: .5; }
#footer .space-y-2 > * + * { margin-top: 10px; }
#footer .border-t { border-color: rgba(255,255,255,.06); }
#footer .border-t p { color: var(--pds-grey400); }

/* ---------- Mobile ---------- TDS 처럼 손가락 기준: 푸터 링크는 줄 높이만큼 누를 자리를 넓힌다 */
@media (max-width: 639px) {
  #footer a { display: inline-block; padding: 6px 0; }
  #footer .space-y-2 > * + * { margin-top: 4px; }
}
