/* =========================================================
   스터디판다 공식 홈페이지 — 공통 스타일 v3
   모눈종이 바탕 · 글래스 섹션 · 베이지/세이지 포인트 · 지마켓 산스 Medium 기본
   ========================================================= */

/* ---------- Font: Gmarket Sans ---------- */
@font-face {
  font-family: "GmarketSans"; font-weight: 300; font-display: swap;
  src: local("Gmarket Sans Light"), local("GmarketSansLight"),
       url("../fonts/StudyPandaSansLight.woff") format("woff");
}
@font-face {
  font-family: "GmarketSans"; font-weight: 500; font-display: swap;
  src: local("Gmarket Sans Medium"), local("GmarketSansMedium"),
       url("../fonts/StudyPandaSansMedium.woff") format("woff");
}
@font-face {
  font-family: "GmarketSans"; font-weight: 700; font-display: swap;
  src: local("Gmarket Sans Bold"), local("GmarketSansBold"),
       url("../fonts/StudyPandaSansBold.woff") format("woff");
}

/* ---------- Tokens ---------- */
:root {
  --white: #FFFFFF;
  --beige: #FDF7EB;
  --sage: #D7E2D5;
  --charcoal: #363B35;
  --bamboo: #7D965D;

  --bamboo-deep: #56693F;
  --beige-deep: #F1E6CF;
  --sage-deep: #BFCDBB;
  --ink-soft: #5E655C;
  --line: rgba(54, 59, 53, 0.12);
  --grid: rgba(54, 59, 53, 0.075);
  --grid-major: rgba(54, 59, 53, 0.13);

  /* 글래스 */
  --glass-bg: rgba(255, 255, 255, 0.36);
  --glass-bg-beige: rgba(253, 247, 235, 0.5);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 1px rgba(54,59,53,.03), 0 14px 36px -18px rgba(54,59,53,.22);
  --glass-shadow-lift: 0 2px 2px rgba(54,59,53,.04), 0 30px 60px -24px rgba(54,59,53,.32);

  --font: "GmarketSans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.875rem;
  --fs-2xl: clamp(1.875rem, 3.4vw, 2.75rem);
  --fs-3xl: clamp(2.6rem, 6vw, 4.6rem);

  --r-lg: 32px;
  --r-md: 22px;
  --r-pill: 999px;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --sy: 0;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); interpolate-size: allow-keywords; }
body {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-md);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  /* 모눈종이: 24px 격자 + 120px 굵은 선 */
  background-color: var(--white);
  background-image:
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
img, svg { display: block; max-width: 100%; }
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 { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--bamboo); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--white); padding: 10px 16px; border-radius: 10px; font-size: var(--fs-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* =========================================================
   글래스 (iOS 26 리퀴드 글래스 감성)
   - 바탕의 모눈이 블러로 비쳐 보이고, 윗변에 밝은 모서리 하이라이트
   - 포인터 위치(--mx/--my)에 따라 아주 옅은 반사광이 따라다님
   - 호버 시 살짝 떠오르며 가장자리 광택이 흐름
   ========================================================= */
.glass {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.04) 45%, rgba(255,255,255,.16) 100%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(1px) saturate(160%);
  backdrop-filter: blur(1px) saturate(160%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 1px 0 0 rgba(255,255,255,.6),
    inset 0 -1px 0 rgba(54,59,53,.05),
    inset -1px 0 0 rgba(54,59,53,.03),
    inset 0 20px 40px -30px rgba(255,255,255,.9),
    var(--glass-shadow);
  transition: box-shadow .45s var(--ease-out), transform .45s var(--ease-out), background-color .3s;
  --mx: 50%; --my: 0%;
}
.glass--beige { background: linear-gradient(135deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.04) 45%, rgba(255,255,255,.14) 100%), var(--glass-bg-beige); }
.glass--dark {
  background: rgba(54, 59, 53, 0.86);
  color: var(--sage);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 0 0 1px rgba(255,255,255,.06),
    var(--glass-shadow);
}
/* 반사광 (포인터 추적) */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.42), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.glass--dark::before { background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 60%); }
/* 가장자리 광택 (호버 시 한 번 흐름) */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  padding: 1px;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.95) 50%, transparent 70%) no-repeat;
  background-size: 250% 100%; background-position: 120% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
}
.glass > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .glass:hover { box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255,255,255,.6), var(--glass-shadow-lift); }
  .glass--dark:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.08), var(--glass-shadow-lift); }
  .glass:hover::before { opacity: 1; }
  .glass:hover::after { opacity: 1; animation: glass-sheen 1.1s var(--ease-out) forwards; }
}
@keyframes glass-sheen { from { background-position: 120% 0; } to { background-position: -40% 0; } }

/* ---------- 스크롤 진행 바 ---------- */
.scroll-bar { position: fixed; top: 0; left: 0; z-index: 70; height: 3px; width: 100%; background: var(--bamboo); transform-origin: 0 50%; transform: scaleX(var(--page-p, 0)); pointer-events: none; }

/* ---------- Header (글래스, 뒤의 대나무가 블러로 비침) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.6);
  transition: border-color .2s, transform .35s var(--ease-out), background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.5); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 46px; height: auto; }
.brand__name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; padding-top: 3px; }

.gnb__list { display: flex; align-items: center; gap: 4px; }
.gnb__link { position: relative; display: inline-block; padding: 10px 16px 8px; font-size: var(--fs-sm); color: var(--ink-soft); border-radius: var(--r-pill); transition: color .15s, background-color .15s; }
.gnb__link:hover { color: var(--charcoal); background: rgba(253,247,235,.9); }
.gnb__link[aria-current="page"] { color: var(--charcoal); background: var(--sage); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--charcoal); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .gnb { position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .gnb.is-open { transform: none; opacity: 1; visibility: visible; }
  .gnb__list { flex-direction: column; align-items: stretch; }
  .gnb__link { display: block; padding: 14px 12px 12px; font-size: var(--fs-md); border-radius: 12px; }
}

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; line-height: 1; transition: background-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s; }
.btn > span { position: relative; padding-top: 2px; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--solid { background: var(--charcoal); color: var(--white); box-shadow: 0 10px 24px -12px rgba(54,59,53,.6); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(54,59,53,.6); }
.btn--ghost { background: var(--glass-bg-beige); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255,255,255,.5), 0 8px 20px -14px rgba(54,59,53,.3); }
.btn--ghost:hover { background: var(--sage); transform: translateY(-2px); }

/* ---------- Page heading ---------- */
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head__title { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.page-head__desc { margin-top: 14px; color: var(--ink-soft); max-width: 34em; }

.mask-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask-line > span { display: block; transform: translateY(105%); animation: line-up .9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes line-up { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fade-up .8s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.tag { display: inline-flex; align-items: center; align-self: flex-start; height: 26px; padding: 2px 11px 0; border-radius: var(--r-pill); font-size: var(--fs-xs); line-height: 1; background: var(--sage); color: var(--charcoal); }

/* ---------- 스크롤 진행도 효과 ---------- */
.js [data-progress="enter"] .rise,
.js .rise[data-progress="enter"] {
  transform-origin: 50% 100%;
  transform: perspective(1100px) translate3d(0, calc((1 - var(--p, 0)) * 70px), 0) rotateX(calc((1 - var(--p, 0)) * 16deg)) scale(calc(.94 + var(--p, 0) * .06));
  opacity: calc(.15 + var(--p, 0) * .85);
  will-change: transform, opacity;
}

/* 포인터 3D 틸트 (글래스와 함께 쓰면 반사광도 같이 움직임) */
[data-tilt] { --rx: 0deg; --ry: 0deg; transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .3s; }
[data-tilt].is-tilting { transition: transform .08s linear, box-shadow .3s; }
@media (hover: hover) {
  [data-tilt]:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0); }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(80px, 10vw, 140px); background: var(--charcoal); color: var(--sage); padding: 56px 0 40px; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--white); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand__name { color: var(--beige); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.site-footer__col h2 { font-size: var(--fs-xs); color: var(--beige); font-weight: 500; margin-bottom: 12px; }
.site-footer__col li + li { margin-top: 6px; }
.site-footer__biz { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(215, 226, 213, 0.18); font-size: var(--fs-xs); color: rgba(215, 226, 213, 0.75); line-height: 1.9; }

/* =========================================================
   대나무 판다 (헤더 아래 z-index → 상단 네비에서 블러로 비침)
   ========================================================= */
.bamboo-rail { position: fixed; z-index: 55; right: 48px; top: 0; bottom: 0; width: 64px; pointer-events: none; }
.bamboo-rail__stalk {
  position: absolute; left: 50%; top: -10px; bottom: -10px; width: 8px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, transparent 0 83px, var(--bamboo-deep) 83px 85px), var(--bamboo);
  background-position: 0 calc(var(--sy) * -0.25px);
}
.bamboo-rail__leaf { position: absolute; left: 50%; width: 18px; height: 8px; background: var(--bamboo); border-radius: 0 100% 0 100%; transform-origin: 0 50%; animation: leaf-sway 4s ease-in-out infinite; }
.bamboo-rail__leaf--1 { top: 22%; transform: translateX(4px) rotate(-26deg); }
.bamboo-rail__leaf--2 { top: 58%; left: auto; right: 50%; transform-origin: 100% 50%; transform: translateX(-4px) rotate(26deg); animation-delay: -1.6s; border-radius: 100% 0 100% 0; }
.bamboo-rail__leaf--3 { top: 84%; transform: translateX(4px) rotate(-18deg); animation-delay: -2.4s; }
@keyframes leaf-sway { 50% { rotate: 8deg; } }

.climber { position: absolute; left: 0; top: 0; width: 93px; height: 101px; pointer-events: auto; transform: translate3d(0, 120px, 0); will-change: transform; }
.climber button { display: block; width: 100%; height: 100%; border-radius: 40%; }
.climber__sprite {
  display: block; width: 93px; height: 101px;
  background-image: url("../img/panda-sprite.png");
  background-size: 1302px 101px; /* 14프레임 × 93px */
  background-repeat: no-repeat; background-position: -1116px 0; /* 쉬는 자세 */
  filter: drop-shadow(0 4px 5px rgba(54, 59, 53, 0.14));
  transform-origin: 34px 38px; /* 손 잡은 지점 */
  animation: panda-sway 4.4s ease-in-out infinite;
}
.climber.is-climbing .climber__sprite { animation: none; }
@keyframes panda-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-2.2deg); } }
@media (hover: hover) { .climber:hover .climber__sprite { animation: panda-bounce .5s ease-in-out 2; } }
@keyframes panda-bounce { 50% { transform: translateY(-6px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .climber__sprite { animation: none; } }
@media (max-width: 1359px) { .bamboo-rail { display: none; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; background: var(--charcoal); color: var(--white); padding: 12px 20px 10px; border-radius: var(--r-pill); font-size: var(--fs-sm); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 검토용 토글 (히어로 밝게/어둡게) ---------- */
.review-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); color: var(--ink-soft);
  background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255,255,255,.5), var(--glass-shadow);
}
.review-toggle__seg { display: inline-flex; background: rgba(54,59,53,.08); border-radius: var(--r-pill); padding: 3px; }
.review-toggle__seg button { padding: 6px 12px 4px; border-radius: var(--r-pill); color: var(--ink-soft); line-height: 1.2; transition: background-color .2s, color .2s; }
.review-toggle__seg button[aria-pressed="true"] { background: var(--charcoal); color: var(--white); }
@media (max-width: 900px) { .review-toggle { left: 50%; transform: translateX(-50%); bottom: 12px; } }

/* =========================================================
   메인 — 히어로 카드 (글래스, 밝음/어두움 전환)
   ========================================================= */
.hero {
  background: var(--white);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: 24px 0 32px;
  transition: background-color .5s, color .5s;
}
.hero > .container { width: 100%; }
.hero__card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px);
}
.hero__title { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.045em; line-height: 1.12; }
.hero__desc { margin-top: 28px; font-size: var(--fs-md); color: var(--ink-soft); max-width: 30em; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.scene { --rx: 0deg; --ry: 0deg; position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1.02; justify-self: end; perspective: 1200px; }
.scene__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease-out); }
.scene__blob { position: absolute; inset: 8% 2% 2% 6%; background: var(--beige); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; transform: translateZ(-60px) translateY(calc(var(--sy) * 0.06px)); animation: blob-morph 12s ease-in-out infinite alternate; transition: background-color .5s; }
.scene__ring { position: absolute; inset: 18% 14% 10% 16%; border-radius: 50%; background: var(--sage); transform: translateZ(-30px) translateY(calc(var(--sy) * 0.03px)); transition: background-color .5s; }
@keyframes blob-morph { 50% { border-radius: 58% 42% 46% 54% / 44% 56% 44% 56%; } 100% { border-radius: 42% 58% 56% 44% / 56% 44% 58% 42%; } }
.scene__panda { position: absolute; left: 50%; bottom: 4%; width: 66%; transform: translate3d(-50%, calc(var(--sy) * -0.08px), 20px); }
.scene__panda svg { width: 100%; height: auto; overflow: visible; animation: panda-rise 1s var(--ease-out) both .15s; }
#hero-sprout { transform-box: fill-box; transform-origin: 30% 100%; animation: sprout-grow .8s var(--ease-spring) both .9s; }
@keyframes panda-rise { from { opacity: 0; transform: translateY(50px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sprout-grow { from { transform: scale(0) rotate(-24deg); } to { transform: scale(1) rotate(0); } }

.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px 10px 12px; border-radius: 16px; font-size: var(--fs-sm); line-height: 1.3; white-space: nowrap; opacity: 0; animation: card-pop .7s var(--ease-spring) forwards; }
.float-card__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card__ico svg { width: 18px; height: 18px; }
.float-card small { display: block; font-size: 11px; color: var(--ink-soft); }
.float-card--a { left: -4%; top: 22%; transform: translateZ(90px) translateY(calc(var(--sy) * -0.18px)); animation-delay: 1.05s; }
.float-card--a .float-card__ico { background: var(--sage); }
.float-card--b { right: -6%; top: 46%; transform: translateZ(130px) translateY(calc(var(--sy) * -0.28px)); animation-delay: 1.2s; }
.float-card--b .float-card__ico { background: var(--charcoal); color: var(--beige); }
.float-card--c { left: 4%; bottom: 10%; transform: translateZ(60px) translateY(calc(var(--sy) * -0.12px)); animation-delay: 1.35s; }
.float-card--c .float-card__ico { background: var(--beige); box-shadow: inset 0 0 0 1px var(--beige-deep); }
@keyframes card-pop { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }

/* 어두운 히어로 (검토용 토글) */
body[data-hero="dark"] .hero { background: var(--charcoal); color: var(--beige); }
body[data-hero="dark"] .hero__desc { color: var(--sage); }
body[data-hero="dark"] .btn--solid { background: var(--beige); color: var(--charcoal); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
body[data-hero="dark"] .btn--ghost { background: rgba(255,255,255,.08); color: var(--beige); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.1); }
body[data-hero="dark"] .btn--ghost:hover { background: rgba(255,255,255,.16); }
body[data-hero="dark"] .scene__blob { background: #4A5047; }
body[data-hero="dark"] .scene__ring { background: var(--bamboo-deep); }
body[data-hero="dark"] .float-card { background: rgba(54,59,53,.7); color: var(--beige); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.08), 0 14px 36px -18px rgba(0,0,0,.6); }
body[data-hero="dark"] .float-card small { color: var(--sage); }
body[data-hero="dark"] .float-card--b .float-card__ico { background: var(--beige); color: var(--charcoal); }
body[data-hero="dark"] .float-card--c .float-card__ico { background: var(--bamboo); box-shadow: none; color: var(--beige); }


/* ---------- Story ---------- */
.story { position: relative; padding-top: clamp(28px, 4vw, 48px); }
.story > .container { max-width: calc(1280px + var(--gutter) * 2); position: relative; }
/* 유리 뒤에 비칠 색 번짐 (블러된 세이지·베이지·대나무) */
.story__glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--r-lg); }
.story__glow i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .32; }
.story__glow i:nth-child(1) { width: 520px; height: 520px; left: -120px; top: -80px; background: var(--sage); }
.story__glow i:nth-child(2) { width: 620px; height: 620px; right: -200px; top: 25%; background: var(--beige-deep); }
.story__glow i:nth-child(3) { width: 420px; height: 420px; left: 30%; bottom: -120px; background: rgba(125,150,93,.45); }
.story__glow i:nth-child(4) { width: 360px; height: 360px; right: 12%; bottom: 18%; background: var(--sage); }
.story__card { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 60px); }
.story__grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.story__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.story__now { font-size: var(--fs-xs); color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.story__now b { font-weight: 700; color: var(--bamboo-deep); font-size: var(--fs-md); }
.story__heading-wrap { position: relative; margin-top: 10px; min-height: 2.6em; font-size: clamp(1.75rem, 2.6vw, 2.375rem); perspective: 600px; }
.story__heading { font-size: 1em; font-weight: 700; letter-spacing: -0.035em; line-height: 1.25; transform-origin: 50% 50% -20px; }
.story__heading.is-swap { animation: heading-flip .55s var(--ease-out); }
@keyframes heading-flip { from { opacity: 0; transform: rotateX(-80deg) translateY(10px); } to { opacity: 1; transform: none; } }

.chapters { position: relative; margin-top: 32px; padding-left: 30px; }
.chapters::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 4px; background: var(--beige-deep); border-radius: 4px; }
.chapters__fill { position: absolute; left: 7px; top: 10px; width: 4px; height: calc(var(--fill, 0) * (100% - 20px)); background: var(--bamboo); border-radius: 4px; }
.chapters li + li { margin-top: 6px; }
.chapters a { position: relative; display: block; padding: 9px 0 7px; color: var(--ink-soft); font-size: var(--fs-sm); transition: color .2s, transform .3s var(--ease-out); }
.chapters a::before { content: ""; position: absolute; left: -28px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border-radius: 50%; background: var(--white); border: 3px solid var(--beige-deep); transition: border-color .2s, background-color .2s, transform .3s var(--ease-spring); }
.chapters a:hover { color: var(--charcoal); }
.chapters a.is-active { color: var(--charcoal); transform: translateX(4px); }
.chapters a.is-active::before { border-color: var(--bamboo); background: var(--bamboo); transform: scale(1.3); }
.chapters a.is-past::before { border-color: var(--bamboo); background: var(--bamboo); }

.chapter { min-height: 70vh; padding: 0 0 80px; display: flex; flex-direction: column; justify-content: center; }
.chapter:first-child { justify-content: flex-start; padding-top: 8px; }
.chapter + .chapter { padding-top: 80px; }
.chapter__title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
.chapter__lead { margin-top: 20px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.6; letter-spacing: -0.02em; max-width: 28em; }
@media (min-width: 901px) {
  .chapter__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chapter__lead { margin-top: 0; font-size: var(--fs-xl); font-weight: 700; line-height: 1.5; letter-spacing: -0.03em; }
}

.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fact { position: relative; border-radius: var(--r-md); padding: 28px 28px 26px; height: 100%; background: var(--beige); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.6); transition: transform .5s var(--ease-out), box-shadow .3s; }
.fact:hover { box-shadow: inset 0 1px 0 #fff, var(--glass-shadow-lift); }
.fact__ico { width: 44px; height: 44px; border-radius: 14px; background: var(--white); display: grid; place-items: center; box-shadow: 0 1px 0 var(--beige-deep); }
.fact__ico svg { width: 22px; height: 22px; color: var(--bamboo-deep); }
.fact__k { margin-top: 18px; font-size: var(--fs-xs); color: var(--bamboo-deep); }
.fact__v { margin-top: 8px; font-size: var(--fs-md); line-height: 1.6; }

.proof { margin-top: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 28px; padding: 40px 40px 34px; border-radius: var(--r-lg); overflow: hidden; }
.proof__glow { position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(125,150,93,.35), transparent 70%); z-index: 0; }
.proof__num { font-weight: 700; font-size: clamp(4.5rem, 10vw, 7.5rem); line-height: .85; letter-spacing: -0.05em; color: var(--beige); font-variant-numeric: tabular-nums; }
.proof__num small { font-size: .45em; color: var(--bamboo); margin-left: 2px; }
.proof__bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: rgba(215,226,213,.16); overflow: hidden; }
.proof__bar i { position: absolute; inset: 0; background: var(--bamboo); border-radius: 8px; transform-origin: 0 50%; transform: scaleX(var(--count-p, 0)); }
.proof__text { padding-bottom: 6px; font-size: var(--fs-sm); line-height: 1.7; }
.proof__text strong { display: block; color: var(--beige); font-weight: 500; font-size: var(--fs-md); margin-bottom: 6px; }
.points { margin-top: 28px; }
.points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.points li:first-child { border-top: 1px solid var(--line); }
.points svg { width: 22px; height: 22px; margin-top: 2px; color: var(--bamboo); }

.route { margin-top: 44px; position: relative; }
.route__track { position: absolute; left: 30px; top: 32px; bottom: 32px; width: 4px; border-radius: 4px; background: var(--beige-deep); }
.route__track i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 4px; background: var(--bamboo); transform-origin: top; transform: scaleY(var(--p, 0)); }
.route__step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; padding-bottom: 40px; }
.route__step:last-child { padding-bottom: 0; }
.route__no { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-bg-beige); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255,255,255,.5); font-weight: 700; font-size: var(--fs-lg); padding-top: 3px; transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease-spring); }
.route__step.is-on .route__no { background: var(--bamboo); color: var(--white); box-shadow: 0 0 0 6px rgba(125,150,93,.18); transform: scale(1.06); }
.route__body { padding: 8px 0 0; transition: transform .5s var(--ease-out), opacity .5s; }
.js .route__step:not(.is-on) .route__body { opacity: .45; transform: translateX(10px); }
.route__name { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; }
.route__desc { margin-top: 6px; color: var(--ink-soft); font-size: var(--fs-sm); }

.go { margin-top: 40px; display: grid; gap: 14px; }
.go__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: var(--r-md); background: var(--beige); box-shadow: inset 0 1px 0 #fff; }
.go__row--main { background: var(--sage); }
.go__label { font-size: var(--fs-md); }
.go__label small { display: block; color: var(--ink-soft); font-size: var(--fs-xs); margin-top: 2px; }
.go__links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 2px 18px 0; border-radius: var(--r-pill); background: rgba(255,255,255,.75); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255,255,255,.6), 0 6px 16px -12px rgba(54,59,53,.3); font-size: var(--fs-sm); transition: box-shadow .15s, transform .2s var(--ease-out); }
.chip-link:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); transform: translateY(-2px); }
.chip-link svg { width: 16px; height: 16px; margin-top: -2px; }

@media (max-width: 900px) {
  .hero__card { grid-template-columns: 1fr; }
  .scene { justify-self: center; max-width: 300px; order: -1; }
  .float-card { font-size: 13px; padding: 8px 12px 6px 8px; }
  .float-card__ico { width: 28px; height: 28px; }
  .float-card--a { left: -2%; }
  .float-card--b { right: -2%; }
  .story__grid { grid-template-columns: 1fr; }
  .story__aside { display: none; }
  .story__card { padding: 24px 20px; }
  .hero { min-height: 0; }
  .chapter { min-height: 0; padding: 56px 0; }
  .chapter + .chapter { padding-top: 56px; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
}

/* =========================================================
   상품
   ========================================================= */
.products-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 32px; }
.products-head .page-head { padding-bottom: clamp(28px, 4vw, 48px); }

.shelf3d { --rx: 0deg; --ry: 0deg; position: relative; height: 380px; perspective: 1400px; }
.shelf3d__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(10deg + var(--rx))) rotateY(calc(30deg + var(--ry) - var(--sy) * 0.04deg)); transition: transform .6s var(--ease-out); }
.shelf3d__floor { position: absolute; left: 6%; right: 6%; bottom: 18px; height: 60px; border-radius: 50%; background: radial-gradient(ellipse, rgba(54,59,53,.18), transparent 70%); transform: rotateX(90deg) translateZ(-30px); }
.book { --w: 150px; --h: 210px; --d: 44px; position: absolute; bottom: 60px; width: var(--w); height: var(--h); transform-style: preserve-3d; animation: book-in 1s var(--ease-out) both; }
.book__face { position: absolute; border-radius: 4px 10px 10px 4px; backface-visibility: hidden; }
.book__front { inset: 0; transform: translateZ(calc(var(--d) / 2)); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px 16px; }
.book__back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.book__spine { top: 0; left: 0; width: var(--d); height: var(--h); transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); border-radius: 4px; }
.book__pages { top: 3px; right: 0; width: var(--d); height: calc(var(--h) - 6px); transform: rotateY(90deg) translateZ(calc(var(--w) - var(--d) / 2 - 2px)); background: repeating-linear-gradient(to right, #fff 0 2px, #EFE6D3 2px 3px); border-radius: 2px; }
.book__top { top: 0; left: 0; width: var(--w); height: var(--d); transform: rotateX(90deg) translateZ(calc(var(--d) / 2)); background: repeating-linear-gradient(to bottom, #fff 0 2px, #EFE6D3 2px 3px); }
.book__kind { font-size: 11px; opacity: .8; }
.book__title { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.2; }
.book__mark { width: 40px; align-self: flex-end; }
.book--summary { left: 4%; transform: translateZ(40px) rotateY(0deg); animation-delay: .1s; }
.book--summary .book__front, .book--summary .book__back { background: var(--sage); color: var(--charcoal); }
.book--summary .book__spine { background: var(--bamboo); }
.book--past { left: 40%; bottom: 72px; transform: translateZ(-40px) rotateY(-4deg); animation-delay: .22s; }
.book--past .book__front, .book--past .book__back { background: var(--charcoal); color: var(--beige); }
.book--past .book__spine { background: #2A2E29; }
@keyframes book-in { from { translate: 0 120px; scale: .85; } to { translate: 0 0; scale: 1; } }
.phone3d { position: absolute; right: 2%; bottom: 52px; width: 128px; height: 252px; transform-style: preserve-3d; transform: translateZ(10px) rotateY(-38deg); animation: book-in 1s var(--ease-out) both .34s; }
.phone3d__body { position: absolute; inset: 0; border-radius: 26px; background: var(--charcoal); transform: translateZ(6px); padding: 8px; box-shadow: inset 0 0 0 1.5px #4A5048; }
.phone3d__side { position: absolute; inset: 2px; border-radius: 24px; background: #262A25; transform: translateZ(-6px); }
.phone3d__screen { height: 100%; border-radius: 19px; background: var(--white); padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 9px; line-height: 1.3; }
.phone3d__screen .q { font-size: 9px; color: var(--ink-soft); }
.phone3d__screen .q b { display: block; color: var(--charcoal); font-size: 10.5px; margin-top: 2px; }
.phone3d__opt { border-radius: 7px; padding: 6px 7px 4px; background: var(--beige); }
.phone3d__opt.is-pick { animation: pick 3s ease-in-out infinite 1.6s; }
@keyframes pick { 0%, 30% { background: var(--beige); color: var(--charcoal); } 40%, 100% { background: var(--bamboo); color: var(--white); } }
.phone3d__timer { margin-top: auto; height: 4px; border-radius: 4px; background: var(--beige-deep); overflow: hidden; }
.phone3d__timer i { display: block; height: 100%; width: 100%; background: var(--charcoal); transform-origin: 0 50%; animation: timer 6s linear infinite; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* 시안 2번 구조: PDF 상품 카드 → 패키지 구성 → 어플(출시 예정) */
.shelf + .shelf { margin-top: 24px; }
.shelf { border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 40px); }
.shelf__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--charcoal); }
.shelf__title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.03em; }
.shelf__count { color: var(--ink-soft); font-size: var(--fs-sm); }
.shelf__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }

.pcard { position: relative; border-radius: var(--r-md); padding: 28px 30px 28px; background: var(--beige); box-shadow: inset 0 1px 0 #fff; }
.pcard--package { background: var(--sage); }
.pcard { display: flex; flex-direction: column; }
.pcard__top { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; flex: 1; }
.pcard__name { margin-top: 14px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.pcard__desc { margin-top: 8px; color: var(--ink-soft); font-size: var(--fs-sm); max-width: 40em; }
.pcard__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; perspective: 600px; margin-top: auto; }
.js .pcard__actions > * { opacity: 0; transform: translateX(40px) rotateY(-30deg); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.js .pcard.is-in .pcard__actions > * { opacity: 1; transform: none; }
.js .pcard.is-in .pcard__actions > *:nth-child(2) { transition-delay: .1s; }
.pcard__sub { margin-top: 22px; font-size: var(--fs-sm); color: var(--ink-soft); }
.pcard__parts { margin: 10px 0 20px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.part { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px 20px 16px; border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: inset 0 1px 0 #fff; }
.part__chk { width: 30px; height: 30px; border-radius: 50%; background: var(--bamboo); color: var(--white); display: grid; place-items: center; }
.part__chk svg { width: 16px; height: 16px; }
.part h3 { font-size: var(--fs-md); font-weight: 700; }
.part p { margin-top: 2px; font-size: var(--fs-xs); color: var(--ink-soft); }
.tag--dark { background: var(--charcoal); color: var(--white); }
.tag--soon { background: var(--white); box-shadow: inset 0 0 0 1px var(--beige-deep); color: var(--bamboo-deep); }

.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 0 6px; }
.item__main { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 22px; align-items: center; }
.item__icon { width: 76px; height: 76px; border-radius: 22px; background: var(--charcoal); display: grid; place-items: center; transform: perspective(400px) rotateY(calc((1 - var(--p, 1)) * 90deg)); }
.item__icon svg { width: 34px; height: 34px; color: var(--beige); }
.item__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.item__desc { margin-top: 6px; color: var(--ink-soft); font-size: var(--fs-sm); }
.item__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; perspective: 600px; }
.js .item__links > * { opacity: 0; transform: translateX(40px) rotateY(-30deg); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.js .item.is-in .item__links > * { opacity: 1; transform: none; }
.js .item.is-in .item__links > *:nth-child(2) { transition-delay: .1s; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 16px; background: var(--charcoal); color: var(--white); transition: background-color .15s, box-shadow .2s, opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.store-btn:hover { background: #2A2E29; box-shadow: 0 14px 24px -12px rgba(54,59,53,.6); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-size: var(--fs-sm); padding-top: 3px; }
.store-btn small { font-size: 11px; color: var(--sage); }
.store-btn--light { background: rgba(255,255,255,.9); color: var(--charcoal); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px var(--beige-deep); }
.store-btn--light small { color: var(--ink-soft); }
.store-btn--light:hover { background: var(--sage); }
.store-btn--soon { background: rgba(255,255,255,.6); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--beige-deep); }
.store-btn--soon small { color: var(--bamboo-deep); }
.store-btn--soon:hover { background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--beige-deep); }

@media (max-width: 960px) {
  .products-head { grid-template-columns: 1fr; }
  .products-head .page-head { padding-bottom: 0; }
  .shelf3d { height: 320px; margin: 0 auto 24px; width: 100%; max-width: 440px; }
  .book { --w: 120px; --h: 170px; --d: 36px; }
  .book__title { font-size: 1.1rem; }
  .phone3d { width: 104px; height: 206px; }
}
@media (max-width: 760px) {
  .shelf__list { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; gap: 18px; }
  .item__main { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; }
  .item__icon { width: 60px; height: 60px; border-radius: 18px; }
  .item__links { justify-content: flex-start; padding-left: 76px; }
}

/* =========================================================
   자격증
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { position: relative; height: 44px; padding: 2px 20px 0; border-radius: var(--r-pill); background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255,255,255,.55), 0 6px 16px -12px rgba(54,59,53,.3); font-size: var(--fs-sm); color: var(--ink-soft); transition: background-color .2s, color .2s, box-shadow .2s, transform .3s var(--ease-spring); }
.filter:hover { color: var(--charcoal); box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.filter[aria-pressed="true"] { background: var(--charcoal); color: var(--white); box-shadow: none; transform: scale(1.04); }

.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.cert { text-align: left; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 14px; min-height: 196px; padding: 26px 26px 22px; border-radius: var(--r-md); }
.cert-grid > li { animation: card-flip .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); transform-origin: 50% 100%; }
@keyframes card-flip { from { opacity: 0; transform: rotateX(-50deg) translateY(40px); } to { opacity: 1; transform: none; } }
.cert__name { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.cert__kind { font-size: var(--fs-xs); color: var(--ink-soft); }
.cert__has { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.cert__has li { font-size: 12px; padding: 4px 9px 2px; border-radius: 8px; background: rgba(255,255,255,.8); color: var(--ink-soft); }
.cert__go { position: absolute; right: 22px; top: 24px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.cert__go svg { width: 16px; height: 16px; }
.cert:hover .cert__go { background: var(--charcoal); color: var(--white); }
.cert-empty { padding: 48px 0; color: var(--ink-soft); grid-column: 1 / -1; }
@media (max-width: 960px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } .cert { min-height: 0; } }

.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(54, 59, 53, 0.35); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); box-shadow: inset 1px 0 0 rgba(255,255,255,.8), -20px 0 60px -30px rgba(54,59,53,.4); overflow-y: auto; padding: 28px clamp(20px, 4vw, 40px) 40px; transform: translateX(100%); transition: transform .45s var(--ease-out); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-left: auto; background: var(--beige); transition: transform .3s var(--ease-spring), background-color .2s; }
.drawer__close:hover { background: var(--sage); transform: rotate(90deg); }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__title { margin-top: 12px; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; }
.drawer__kind { margin-top: 8px; color: var(--ink-soft); font-size: var(--fs-sm); }
.drawer__list { margin-top: 32px; border-top: 2px solid var(--charcoal); }
.drawer__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.drawer.is-open .drawer__item { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
.drawer__item h3 { font-size: var(--fs-md); font-weight: 700; }
.drawer__item p { margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-soft); }
.drawer__state { font-size: var(--fs-xs); padding: 6px 12px 4px; border-radius: var(--r-pill); background: var(--sage); white-space: nowrap; }
.drawer__state--soon { background: var(--beige); box-shadow: inset 0 0 0 1px var(--beige-deep); color: var(--ink-soft); }
.drawer__actions { margin-top: 28px; display: grid; gap: 10px; }
.drawer__actions .btn { width: 100%; }
body.is-locked { overflow: hidden; }

/* =========================================================
   고객지원
   ========================================================= */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r-lg); padding: 32px 32px 30px; overflow: hidden; }
.contact__title { font-size: var(--fs-lg); font-weight: 700; }
.contact__desc { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-soft); }
.contact__mail { margin-top: 24px; display: block; font-size: var(--fs-md); padding: 16px 18px 14px; background: rgba(255,255,255,.85); border-radius: 14px; word-break: break-all; transition: box-shadow .2s; box-shadow: inset 0 1px 0 var(--glass-edge); }
.contact__mail:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.contact__meta { margin-top: 16px; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.8; }

.block { border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px); }
.block + .block { margin-top: 24px; }
.block__title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.03em; padding-bottom: 16px; border-bottom: 2px solid var(--charcoal); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 8px; align-items: center; padding: 22px 0 20px; font-size: var(--fs-md); transition: color .2s, padding .3s var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { color: var(--bamboo-deep); font-weight: 700; }
.faq summary .chev { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq summary:hover { color: var(--bamboo-deep); padding-left: 6px; }
.faq .a { margin: 0 0 20px 40px; padding: 18px 20px 16px; border-radius: 14px; background: rgba(253,247,235,.8); color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.8; }
.notice li { border-bottom: 1px solid var(--line); }
.notice li:last-child { border-bottom: 0; }
.notice a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 20px 0 18px; transition: padding .3s var(--ease-out); }
.notice a:hover { padding-left: 8px; }
.notice a:hover .notice__t { text-decoration: underline; text-underline-offset: 4px; }
.notice__d { color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 300; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } .contact { position: static; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-progress="enter"] .rise, .js .rise[data-progress="enter"] { transform: none; opacity: 1; }
  .mask-line > span { transform: none; }
  .fade-up, .float-card { opacity: 1; transform: none; }
}
