/* ==========================================================================
   퀄리튜브 — 공용 스타일시트
   모든 페이지가 이 파일 하나를 공유합니다.
   (기존 v2.06은 페이지마다 CSS를 복붙해서 A/S 규정이 30일/28일로 갈렸습니다)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:          #FAFAF8;
  --bg-elev:     #FFFFFF;
  --bg-soft:     #F2F2EE;
  --bg-invert:   #0D0D0E;
  --ink:         #0E0E0F;
  --ink-2:       #5A5A60;
  --ink-3:       #94949C;
  --line:        #E3E3DE;
  --line-2:      #D2D2CB;
  --accent:      #CD0700;
  --accent-2:    #A30600;
  --accent-ink:  #FFFFFF;
  --accent-wash: #FDF1F0;
  --on-invert:   #F5F5F3;
  --on-invert-2: #8E8E96;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);

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

:root[data-theme="dark"] {
  --bg:          #0B0B0C;
  --bg-elev:     #141416;
  --bg-soft:     #131315;
  --bg-invert:   #F5F5F3;
  --ink:         #F4F4F2;
  --ink-2:       #9E9EA6;
  --ink-3:       #6A6A72;
  --line:        #232326;
  --line-2:      #34343B;
  --accent:      #FF4433;   /* #CD0700 은 어두운 배경에서 대비가 부족해 밝게 보정 */
  --accent-2:    #FF6656;
  --accent-ink:  #12100F;
  --accent-wash: #1E100E;
  --on-invert:   #0D0D0E;
  --on-invert-2: #55555C;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip 은 hidden 과 달리 스크롤 컨테이너를 만들지 않아
   position: sticky / fixed 헤더가 그대로 동작합니다. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 900px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.4rem, 7.4vw, 5.4rem);
  line-height: 1.0; letter-spacing: -0.045em; font-weight: 700;
}
.h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; }
.h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; }
.h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.32; letter-spacing: -0.025em; font-weight: 650; }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink-2); line-height: 1.68; }
.small { font-size: .85rem; color: var(--ink-2); }
.tiny { font-size: .76rem; color: var(--ink-3); line-height: 1.6; }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .73rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: 100px;
  font-weight: 600; font-size: .95rem; letter-spacing: -0.02em; white-space: nowrap;
  transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s, opacity .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: .87rem; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 1rem; }
.btn--full { width: 100%; }
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.hdr.is-stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 20px; height: 70px; }

.logo { display: flex; align-items: baseline; gap: 8px; font-weight: 750; letter-spacing: -0.04em; font-size: 1.16rem; }
.logo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); flex: none; }
.logo__en { font-size: .66rem; letter-spacing: .16em; color: var(--ink-3); font-weight: 600; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 100px; font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }

.hdr__act { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: border-color .2s, background .2s; flex: none;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--bg-elev); }
.icon-btn svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: none; }
.burger { display: none; }

/* 메뉴가 8개라 960px 에서는 로고·버튼과 부딪칩니다. 조금 일찍 햄버거로 접습니다. */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hdr__act .btn { display: none; }
}

.mnav {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mnav.is-open { opacity: 1; visibility: visible; }
/* :not(.btn) — 버튼까지 2.4rem 로 키우면 알약 밖으로 글자가 삐져나옵니다. */
.mnav a:not(.btn) {
  font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; letter-spacing: -0.04em;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.mnav .btn { margin-top: 30px; align-self: flex-start; }

/* ==========================================================================
   Sections
   ========================================================================== */
.sec { padding: clamp(66px, 10vw, 120px) 0; }
.sec--tight { padding-top: 0; }
.sec--soft { background: var(--bg-soft); }
.page-hd { padding: clamp(120px, 17vh, 180px) 0 clamp(40px, 6vw, 66px); }
.page-hd p { margin-top: 20px; max-width: 54ch; }

.sec__hd { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 58px); }
.sec__hd p { max-width: 54ch; }
@media (min-width: 900px) {
  .sec__hd { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 40px; }
}

/* ---------- Hero ---------- */
/* 글로우가 우측으로 삐져나가 모바일에서 가로 스크롤을 만들지 않도록 가둡니다. */
.hero { padding: clamp(118px, 17vh, 180px) 0 clamp(48px, 7vw, 78px); position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; top: -12%; right: -6%; width: min(54vw, 640px); aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 66%);
  filter: blur(34px); pointer-events: none;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  padding: 7px 15px 7px 11px; border: 1px solid var(--line); border-radius: 100px;
  font-size: .8rem; font-weight: 500; color: var(--ink-2); background: var(--bg-elev);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; position: relative; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; background: #22C55E;
  opacity: .35; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.5); opacity: .5 } to { transform: scale(1.5); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none } }
.hero__sub { max-width: 46ch; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 36px; }

/* ---------- Facts row ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(50px, 7vw, 84px); border-top: 1px solid var(--line);
}
.fact { padding: 24px 20px 0 0; }
.fact__v { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.fact__v em { font-style: normal; font-size: .52em; color: var(--ink-3); margin-left: 3px; font-weight: 600; }
.fact__l { font-size: .81rem; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 14px 0; overflow: hidden; display: flex; user-select: none; }
.marquee__row { display: flex; flex: none; gap: 32px; padding-right: 32px; animation: slide 36s linear infinite; }
.marquee span {
  font-size: .83rem; font-weight: 550; color: var(--ink-3); white-space: nowrap;
  display: flex; align-items: center; gap: 32px;
}
.marquee span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .55; }
@keyframes slide { to { transform: translateX(-100%) } }
@media (prefers-reduced-motion: reduce) { .marquee__row { animation: none } }

/* ==========================================================================
   Cards / Grid
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 15px;
  position: relative; min-height: 300px; transition: background .35s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0 auto auto 0; height: 2px; width: 0; background: var(--accent); transition: width .45s var(--ease); }
.card:hover { background: var(--bg-elev); }
.card:hover::before { width: 100%; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__no { font-size: .77rem; font-weight: 600; color: var(--ink-3); letter-spacing: .05em; }
.card p { color: var(--ink-2); font-size: .92rem; line-height: 1.62; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }

.tag { font-size: .67rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink-2); }
.tag--hot { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.tag--soft { border-color: transparent; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.tag--out { border-color: transparent; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-3); }
/* 새 상품 배지 — 빨강(HOT)과 나란히 서야 해서 검정 계열로 구분합니다. */
.tag--new { border-color: transparent; background: var(--ink); color: var(--bg); }

.spec { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 17px; border-top: 1px dashed var(--line); }
.spec li { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--ink-2); }
.spec li::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%; flex: none; margin-top: 4px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent);
}

.link-arw { display: inline-flex; align-items: center; gap: 6px; font-size: .87rem; font-weight: 600; color: var(--accent); }
.link-arw svg { transition: transform .3s var(--ease); }
.card:hover .link-arw svg, .link-arw:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans { display: flex; flex-direction: column; gap: 14px; }
.plan {
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 32px);
  display: grid; gap: 18px; position: relative; background: var(--bg);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.plan:hover { border-color: var(--line-2); background: var(--bg-elev); transform: translateY(-2px); }
.plan--feat { border-color: var(--accent); }
.plan--out { opacity: .72; }
.plan--out:hover { transform: none; }
@media (min-width: 780px) { .plan { grid-template-columns: 1fr auto; align-items: center; gap: 30px; } }

.plan__badge {
  position: absolute; top: -11px; left: clamp(20px, 3vw, 30px);
  background: var(--accent); color: var(--accent-ink);
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; padding: 4px 11px; border-radius: 100px;
}
.plan__name { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.plan__desc { color: var(--ink-2); font-size: .9rem; margin-top: 7px; }
.plan__list { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; }
.plan__list li { font-size: .84rem; color: var(--ink-2); padding-left: 17px; position: relative; line-height: 1.55; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 1.5px; background: var(--accent); }
.plan__price { text-align: left; }
@media (min-width: 780px) { .plan__price { text-align: right; } }
/* 가격 아래 구매 버튼. 좁은 화면에서는 꽉 채우고, 넓어지면 내용 폭으로 줄입니다. */
.plan__cta { margin-top: 15px; width: 100%; }
.plan__cta.is-off { pointer-events: none; opacity: .5; }
/* 재정비 중 비활성화된 구매 링크 */
.is-paused { pointer-events: none; opacity: .45; filter: saturate(.4); }
@media (min-width: 780px) { .plan__cta { width: auto; } }
.plan__was { font-size: .88rem; color: var(--ink-3); text-decoration: line-through; }
.plan__now { font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 700; letter-spacing: -0.035em; color: var(--accent); line-height: 1.15; }
.plan__vat { font-size: .73rem; color: var(--ink-3); margin-top: 3px; }
/* 제휴강의 할인가 표기 — 가격 바로 아래, 부가세 안내보다 한 단계 더 옅게 */
.plan__note { font-size: .74rem; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.card__note { font-size: .74rem; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }

.notes { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.notes li { font-size: .84rem; color: var(--ink-2); padding-left: 14px; position: relative; line-height: 1.6; }
.notes li::before { content: "*"; position: absolute; left: 0; color: var(--ink-3); }
.notes li.warn { color: var(--accent); font-weight: 550; }

/* ==========================================================================
   Evidence carousel
   ========================================================================== */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 clamp(240px, 32vw, 360px); aspect-ratio: 1; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: var(--bg-soft); transition: border-color .3s;
}
.shot:hover { border-color: var(--accent); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.shot:hover img { transform: scale(1.03); }

.carousel__nav { display: flex; gap: 8px; margin-top: 18px; }
.carousel__nav button {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background .2s, border-color .2s, opacity .2s;
}
.carousel__nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.carousel__nav button[disabled] { opacity: .3; pointer-events: none; }

/* Lightbox */
.lbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.93);
  display: grid; place-items: center; padding: clamp(16px, 4vw, 48px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lbox.is-open { opacity: 1; visibility: visible; }
.lbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lbox__x {
  position: absolute; top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.lbox__x:hover { background: var(--accent); }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { display: grid; }
.step {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start;
  padding: clamp(24px, 3vw, 34px) 0; border-top: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
/* 자식이 번호·제목·본문 3개인데 좁은 화면에서는 2열이라,
   본문이 58px 짜리 번호 칸으로 밀려 들어갑니다. 제목 아래로 보내 폭을 살립니다. */
.step__body { grid-column: 2 / -1; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { padding-left: 10px; }
.step__n { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; letter-spacing: -0.05em; color: var(--line-2); line-height: 1; transition: color .3s; }
.step:hover .step__n { color: var(--accent); }
.step__body p { color: var(--ink-2); font-size: .93rem; margin-top: 8px; max-width: 60ch; }
.step__list { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.step__list li { font-size: .87rem; color: var(--ink-2); padding-left: 17px; position: relative; }
.step__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1.5px; background: var(--accent); }
@media (min-width: 940px) {
  .step { grid-template-columns: 58px 280px 1fr; }
  .step__body { grid-column: 3; }   /* 3열일 때는 제목 옆으로 */
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; gap: 20px;
  font-weight: 600; font-size: clamp(.96rem, 1.6vw, 1.08rem); letter-spacing: -0.02em; transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover, .qa[open] summary { color: var(--accent); }
.qa__pm { margin-left: auto; width: 20px; height: 20px; flex: none; position: relative; }
.qa__pm::before, .qa__pm::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.qa__pm::after { transform: rotate(90deg); }
.qa[open] .qa__pm::after { transform: rotate(0); }
.qa__a { padding: 0 40px 26px 0; color: var(--ink-2); font-size: .92rem; line-height: 1.75; max-width: 76ch; }
.qa__a > * + * { margin-top: 13px; }
.qa__a strong { color: var(--ink); font-weight: 650; }
.qa__a ul { display: flex; flex-direction: column; gap: 8px; }
.qa__a li { padding-left: 17px; position: relative; }
.qa__a li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 1.5px; background: var(--accent); }
.qa__note { font-size: .84rem; color: var(--ink-3); }

.callout { border-left: 2px solid var(--accent); background: var(--accent-wash); padding: 16px 18px; border-radius: 0 10px 10px 0; }
.callout--warn { border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-left: 3px solid var(--accent); border-radius: 10px; }
.callout--warn h4 { color: var(--accent); }
.callout h4 { font-size: .88rem; font-weight: 650; color: var(--ink); margin-bottom: 9px; }

/* ==========================================================================
   Ebook
   ========================================================================== */
.ebook-stack { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin-inline: auto; }
.ebook-stack img { width: 100%; height: auto; border-radius: 0; }
.ebook-stack img:first-child { border-radius: 14px 14px 0 0; }
.ebook-stack img:last-child { border-radius: 0 0 14px 14px; }

.buybox {
  max-width: 780px; margin: clamp(34px, 5vw, 54px) auto 0; text-align: center;
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 4vw, 46px); background: var(--bg-elev);
}
.buybox__was { font-size: .95rem; color: var(--ink-3); text-decoration: line-through; }
.buybox__off { display: inline-block; margin: 10px 0; background: var(--accent); color: var(--accent-ink); font-size: .76rem; font-weight: 700; padding: 5px 13px; border-radius: 100px; }
.buybox__now { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.045em; color: var(--accent); line-height: 1.1; }

/* ==========================================================================
   예약 폼
   ========================================================================== */
.form { max-width: 620px; }
.field { margin-bottom: 20px; }
.field > label {
  display: block; font-size: .87rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.015em;
}
.field > label .req { color: var(--accent); margin-left: 3px; }
/* 선택 입력 표시 — 필수(*)와 헷갈리지 않게 작은 회색 글씨로 둡니다. */
.field > label .opt { margin-left: 6px; font-size: .72rem; font-weight: 500;
                      color: var(--ink-3); letter-spacing: 0; }
/* .field 밖에서도 쓸 수 있도록 클래스 단독으로 정의합니다. */
.hint { font-size: .78rem; color: var(--ink-3); margin-top: 7px; line-height: 1.55; }

.input, .select, .textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--bg-elev); color: var(--ink);
  font: inherit; font-size: .95rem; letter-spacing: -0.015em;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.select {
  appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394949C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field.is-bad .input, .field.is-bad .select, .field.is-bad .textarea { border-color: var(--accent); }
.field .err { display: none; font-size: .8rem; color: var(--accent); margin-top: 7px; font-weight: 550; }
.field.is-bad .err { display: block; }

/* 허니팟 — 사람에게는 보이지 않지만 display:none 이면 일부 봇이 건너뜁니다. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
/* 전체 동의 — 개별 항목 위에 두고 한 번에 켜고 끕니다 */
.check--all { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-elev); font-weight: 650; }
.check--all em { display: block; margin-top: 3px; font-style: normal; font-size: .78rem; font-weight: 450; color: var(--ink-3); }
.check--all:has(input:checked) { border-color: var(--accent); }
.check input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--accent); cursor: pointer; }
.check span { font-size: .87rem; color: var(--ink-2); line-height: 1.6; }

.consent {
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  padding: 16px 18px; margin-bottom: 14px;
}
.consent--warn { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); border-left: 3px solid var(--accent); }
.consent--warn p { font-size: .84rem; color: var(--ink-2); line-height: 1.6; }
.consent--warn p + p { margin-top: 8px; }
.consent--warn strong { color: var(--ink); }
.consent--warn a { color: var(--accent); font-weight: 600; }
.consent dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: .82rem; }
.consent dt { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.consent dd { color: var(--ink-2); }

.form__msg {
  display: none; margin-top: 16px; padding: 14px 16px; border-radius: 11px;
  font-size: .88rem; line-height: 1.6;
  border-left: 2px solid var(--accent); background: var(--accent-wash); color: var(--ink);
}
.form__msg.is-on { display: block; }

/* ---------- 채널별 입력 항목 ---------- */
/* 항목은 카드 하나 안에 줄로 쌓습니다. 개별 카드로 두면 자리만 많이 먹습니다. */
.items { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--bg); margin-bottom: 20px; }
.items__hd { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 14px; padding: 13px 0 7px;
  font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.items__hd .req { font-style: normal; color: var(--accent); }
.items__hd .opt { font-style: normal; font-size: .72rem; font-weight: 500; color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; margin-left: 2px; }
.item { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 14px; align-items: center;
  padding: 11px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; padding-top: 0; }

/* 재사용 항소 완료채널 옵션 — 행 아래에 붙는 보조 선택지라 들여쓰고 작게 */
.item__opt { grid-column: 2 / -1; margin-top: 2px; }
.item__opt .check--inline { display: inline-flex; align-items: flex-start; gap: 8px;
  font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.item__opt .check--inline input { margin-top: 3px; accent-color: var(--accent); }
.item__opt .check--inline strong { color: var(--accent); font-weight: 700; }
.item__opt .tiny { margin: 3px 0 0 24px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 620px) { .item__opt { grid-column: 1; } }
.item:last-child { padding-bottom: 15px; }
.item.is-bad .select, .item.is-bad .input { border-color: var(--accent); }
.item__no { font-size: .8rem; font-weight: 650; color: var(--ink-3); }
.item__f label { display: none; }
.item .input, .item .select { height: 44px; font-size: .9rem; }
/* 좁은 화면에서는 열 머리글을 접고 항목마다 라벨을 보여줍니다 */
@media (max-width: 620px) {
  .items__hd { display: none; }
  .item { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .item:first-of-type { padding-top: 14px; }
  .item__f label { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
  .item__f label .opt { font-size: .72rem; font-weight: 500; color: var(--ink-3);
    border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
}

/* 채널 입력 박스 위 경고 — 체크박스 대신 문구로 주의를 줍니다 */
.warnline { display: flex; gap: 8px; margin-bottom: 12px; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-wash); font-size: .84rem; color: var(--ink-2); line-height: 1.6; }
.warnline::before { content: "!"; flex: none; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.warnline strong { color: var(--ink); }
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  padding: 16px 18px; margin-bottom: 14px;
}
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  font-size: .86rem; padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}

/* ---------- 다음 단계 (오픈톡 유도) ---------- */
.nextstep {
  margin-top: 24px; border: 1px solid var(--line-2); border-radius: 14px;
  padding: 22px 26px 24px; background: var(--bg-soft);
}
.nextstep .small { line-height: 1.75; }
@media (max-width: 620px) { .nextstep { padding: 20px 18px; } }
/* 안 하면 연락이 닿지 않는 단계라, 카드 안에서 확실히 튀어야 합니다. */
.nextstep--must {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.nextstep__tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 100px; background: var(--accent); color: var(--accent-ink);
  margin-bottom: 12px;
}
.nextstep h3 { margin-bottom: 9px; }
.nextstep__box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px;
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px 18px; background: var(--bg);
}
.nextstep__box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .98rem; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  line-height: 1.5; min-width: 0; overflow-wrap: anywhere;   /* 긴 메시지도 버튼을 안 밀어냄 */
}

/* ---------- 채널 항목 목록 (조회 화면) ---------- */
.ilist { display: flex; flex-direction: column; gap: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.ilist li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .85rem;
}
.ilist__n { font-size: .74rem; font-weight: 650; color: var(--ink-3); flex: none; min-width: 48px; }
.ilist__ch { color: var(--ink); font-weight: 600; }
.ilist__eta { font-size: .78rem; font-weight: 650; color: var(--accent); flex: none; }
.ilist__em { color: var(--ink-2); word-break: break-all; margin-left: auto; }
.ilist .badge { flex: none; height: 26px; font-size: .74rem; }
@media (max-width: 560px) { .ilist__em { margin-left: 0; width: 100%; } }

/* ==========================================================================
   예약 결과 / 순번 조회
   ========================================================================== */
.result { display: none; }
.result.is-on { display: block; }

.ticket {
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg-elev);
  padding: clamp(26px, 4vw, 40px); max-width: 620px;
}
.ticket__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.ticket__code {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px;
  font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.copy {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 100px; font-size: .8rem; font-weight: 600;
  color: var(--ink-2); transition: border-color .2s, color .2s;
}
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy.is-done { border-color: var(--accent); color: var(--accent); }
/* 완료 화면의 핵심 행동(예약 메시지 복사)만 빨간 버튼으로 강조합니다. */
.copy--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.copy--accent:hover { border-color: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
.copy--accent.is-done { background: var(--bg); color: var(--accent); }

.qnum {
  display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px;
  font-size: clamp(2.6rem, 8vw, 4.2rem); font-weight: 700; letter-spacing: -0.05em;
  line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums;
}
.qnum small { font-size: .3em; font-weight: 650; color: var(--ink-2); letter-spacing: -0.02em; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px;
  border-radius: 100px; font-size: .8rem; font-weight: 650;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge[data-s="대기"]   { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.badge[data-s="처리중"] { background: rgba(234,140,0,.16); color: #C97A00; }
.badge[data-s="완료"]   { background: rgba(34,197,94,.16); color: #16884A; }
.badge[data-s="보류"]   { background: rgba(120,120,132,.18); color: #6B6B75; }
:root[data-theme="dark"] .badge[data-s="처리중"] { color: #F0A73C; }
:root[data-theme="dark"] .badge[data-s="완료"]   { color: #4ADE80; }
:root[data-theme="dark"] .badge[data-s="보류"]   { color: #A0A0AC; }

.kv { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.kv > div {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.kv dt { color: var(--ink-3); flex: none; }
.kv dd { color: var(--ink); font-weight: 550; text-align: right; word-break: break-all; }

.live {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: .78rem; color: var(--ink-3);
}
.live--off { color: var(--ink-3); }
.live__dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; position: relative; flex: none; }
.live__dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; background: #22C55E;
  opacity: .35; animation: pulse 2.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .live__dot::after { animation: none } }

/* ==========================================================================
   A/S 보증 — 제외 항목 목록
   ========================================================================== */
.xlist { display: flex; flex-direction: column; gap: 11px; }
.xlist li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .92rem; color: var(--ink-2); line-height: 1.6;
}
.xlist li::before {
  content: "✕"; flex: none; margin-top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 700;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-3);
}

/* 보증 기간 기산점 — 종류별 대비 카드 */
.clock { border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 32px); background: var(--bg-elev); }
.clock--accent { border-color: var(--accent); background: var(--accent-wash); }
.clock__tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2);
}
.clock--accent .clock__tag { background: var(--accent); color: var(--accent-ink); }
.clock__from { font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 12px; }
.clock__from em { font-style: normal; color: var(--accent); }
.clock ul { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.clock li { font-size: .87rem; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.55; }
.clock li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: var(--accent); }

/* 예시 상자 */
.egbox {
  margin-top: 14px; border: 1px dashed var(--line-2); border-radius: 10px;
  padding: 12px 14px; background: var(--bg); font-size: .83rem; color: var(--ink-2); line-height: 1.7;
}
.egbox strong { color: var(--ink); font-weight: 650; }

/* 상품 카드 안의 경고 한 줄 — 놓치면 보증을 잃는 조건에만 씁니다.
   빨간 상자를 쓰면 카드가 시끄러워져서, 왼쪽 선만으로 눈에 걸리게 했습니다. */
.warn-note {
  border-left: 3px solid var(--accent); padding: 2px 0 2px 10px;
  color: var(--ink-2); line-height: 1.75;
}

/* ==========================================================================
   공개 대기 현황
   ========================================================================== */
.qgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.qcard {
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elev);
  padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s, transform .3s var(--ease);
}
.qcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.qcard--soon { opacity: .78; }
.qcard--soon:hover { transform: none; }
.qcard--full { border-color: var(--line-2); background: var(--bg-soft); }
.qcard--full:hover { transform: none; }
.qcard--full .qcard__v { color: var(--ink-3); }
.qcard__t { font-size: .95rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.35; }
.qcard__v {
  display: flex; align-items: baseline; gap: 7px;
  font-size: clamp(2.1rem, 5.5vw, 2.9rem); font-weight: 700; letter-spacing: -0.05em;
  line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums;
}
.qcard__v small { font-size: .32em; font-weight: 650; color: var(--ink-2); letter-spacing: -0.02em; }
.qcard--soon .qcard__v { color: var(--ink-3); }
.qcard__w { font-size: .85rem; color: var(--ink-2); }

.qfoot { margin-top: 22px; }

/* ==========================================================================
   이전 매뉴얼 (manual.html) — 화면 + 인쇄
   ========================================================================== */
.manual { max-width: 820px; margin-inline: auto; }

.m-cover {
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg-elev);
  padding: clamp(30px, 5vw, 52px); margin-bottom: 34px;
}
.m-cover__ver {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 100px; background: var(--accent); color: var(--accent-ink);
}
.m-cover h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.04em; font-weight: 700; margin: 16px 0 12px; }
.m-cover p { color: var(--ink-2); font-size: .95rem; line-height: 1.7; }

/* 목차 — 인쇄 시 숨김 */
.m-toc { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 40px; background: var(--bg-soft); }
.m-toc h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.m-toc ol { list-style: none; counter-reset: t; display: grid; gap: 9px; }
@media (min-width: 680px) { .m-toc ol { grid-template-columns: 1fr 1fr; gap: 9px 28px; } }
.m-toc li { counter-increment: t; }
.m-toc a { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); transition: color .2s; }
.m-toc a::before { content: counter(t, decimal-leading-zero); color: var(--ink-3); font-weight: 650; font-size: .78rem; padding-top: 2px; }
.m-toc a:hover { color: var(--accent); }

.m-sec { margin-bottom: 46px; scroll-margin-top: 90px; }
.m-sec > h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem); font-weight: 700; letter-spacing: -0.03em;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 20px;
}
.m-sec > h2 .m-sec__n { color: var(--accent); margin-right: 10px; }
.m-sec h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.02em; margin: 24px 0 10px; }
.m-sec p { color: var(--ink-2); font-size: .93rem; line-height: 1.72; margin-bottom: 10px; }
.m-sec ul, .m-sec ol { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.m-sec li { font-size: .91rem; color: var(--ink-2); line-height: 1.65; padding-left: 17px; position: relative; }
.m-sec li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 1.5px; background: var(--accent); }
.m-sec strong { color: var(--ink); font-weight: 650; }

/* 금지 / 주의 */
.m-warn { border-left: 2px solid var(--accent); background: var(--accent-wash); border-radius: 0 10px 10px 0; padding: 16px 18px; margin: 14px 0; }
.m-warn h4 { font-size: .89rem; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.m-warn p, .m-warn li { color: var(--ink-2); font-size: .88rem; }
.m-warn ul { margin: 8px 0 0; }

/* 캡처 이미지 */
.m-shot { margin: 14px 0 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.m-shot img { width: 100%; height: auto; display: block; }
.m-shot figcaption { font-size: .78rem; color: var(--ink-3); padding: 9px 12px; border-top: 1px solid var(--line); background: var(--bg-soft); }

/* 비교표 */
.m-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: .88rem; }
.m-table th, .m-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.m-table th { background: var(--bg-soft); font-weight: 650; color: var(--ink); }
.m-table td { color: var(--ink-2); }
.m-table td strong { color: var(--ink); }

/* ---------- 인쇄 (브라우저 인쇄 → PDF로 저장) ---------- */
@media print {
  :root { --bg: #fff; --bg-elev: #fff; --bg-soft: #f6f6f4; --ink: #000; --ink-2: #333; --ink-3: #666; --line: #ccc; --line-2: #aaa; }
  /* 화면 전용 요소는 전부 숨깁니다. .mnav / .lbox 는 inset:0 전체화면 오버레이라
     인쇄에서 살아 있으면 페이지 분할이 폭주합니다. */
  .hdr, .mnav, .lbox, .ftr, .fab, .popup, .m-toc, .m-printhint { display: none !important; }
  body { background: #fff !important; }
  main { padding: 0 !important; }
  .page-hd, .sec { padding: 0 !important; }
  .wrap { padding-inline: 0 !important; max-width: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  /* 섹션은 한 페이지보다 길어서 avoid 를 걸면 안 됩니다. 작은 덩어리만 보호합니다. */
  .m-sec { margin-bottom: 26px; }
  .m-sec > h2 { break-after: avoid; break-before: page; }   /* 표지는 한 장을 온전히 씁니다 */
  .m-sec h3 { break-after: avoid; }
  .m-shot, .m-warn, .m-table, .m-cover { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
  @page { size: A4; margin: 15mm 14mm; }   /* 국내 기준 A4 */
}
.cta {
  background: var(--bg-invert); color: var(--on-invert); border-radius: clamp(18px, 3vw, 26px);
  padding: clamp(42px, 6.5vw, 84px) clamp(26px, 5vw, 64px); position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -8%; bottom: -60%; width: min(60%, 460px); aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 65%);
  filter: blur(22px); pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta .h2 { max-width: 19ch; }
.cta p { color: var(--on-invert-2); max-width: 48ch; margin-top: 17px; font-size: 1rem; }
.cta__row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.cta .btn--ghost { border-color: color-mix(in srgb, var(--on-invert) 26%, transparent); color: var(--on-invert); }
.cta .btn--ghost:hover { border-color: var(--on-invert); }
.cta__note { margin-top: 24px; font-size: .82rem; color: var(--on-invert-2); }

.ftr { border-top: 1px solid var(--line); padding: clamp(42px, 6vw, 68px) 0 32px; }
.ftr__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .ftr__grid { grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; } }
.ftr h4 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.ftr ul { display: flex; flex-direction: column; gap: 10px; }
.ftr ul a { font-size: .89rem; color: var(--ink-2); transition: color .2s; }
.ftr ul a:hover { color: var(--accent); }
.ftr__legal { max-width: 66ch; margin-top: 16px; }
.ftr__biz {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .77rem; color: var(--ink-3); line-height: 1.85;
}
/* flex 로 두면 좁은 화면에서 항목이 한 줄씩 쌓입니다.
   가운뎃점으로 이어 한 문장처럼 흐르게 하고, 필요할 때만 줄이 바뀌게 합니다. */
.ftr__biz span:not(:last-of-type)::after { content: "·"; margin: 0 8px; color: var(--line-2); }
.ftr__bot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .77rem; color: var(--ink-3); }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 100px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: .9rem;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 36%, transparent);
  transform: translateY(90px); opacity: 0; transition: transform .45s var(--ease), opacity .45s, background .2s;
}
.fab.in { transform: none; opacity: 1; }
.fab:hover { background: var(--accent-2); }

/* ---------- 전자책 팝업 ----------
   기존 v2.06은 화면 전체를 덮는 모달이었습니다. 진입 1초 만에 시야를 막으면
   이탈률이 오릅니다. 우하단에서 밀려 올라오는 카드로 바꿔 읽기를 막지 않습니다. */
/* 공지는 화면 가운데에 띄웁니다. 구석 배너보다 확실히 읽힙니다. */
.popup {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center; padding: 20px;
  /* 뒤 페이지를 어둡게 덮습니다. inset:0 이라 클릭도 이 층에서 막힙니다. */
  background: rgba(15,15,14,.62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.popup > * { grid-area: 1 / 1; }
.popup__panel {
  position: relative; width: min(420px, 100%);
  background: var(--bg-invert); color: var(--on-invert);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 18px;
  padding: 30px 28px 24px; box-shadow: 0 24px 70px rgba(0,0,0,.45);
  transform: translateY(14px) scale(.97);
  transition: transform .4s var(--ease);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.popup.is-open { opacity: 1; visibility: visible; }
.popup.is-open .popup__panel { transform: none; }
.popup__x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--on-invert-2); transition: color .2s, background .2s; }
.popup__x:hover { color: var(--on-invert); background: color-mix(in srgb, var(--on-invert) 12%, transparent); }
.popup__tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; }
.popup__t { font-size: 1.2rem; font-weight: 700; line-height: 1.45; letter-spacing: -0.025em; }
.popup__d { font-size: .89rem; color: var(--on-invert-2); line-height: 1.6; margin-top: 9px; }
.popup__cta { display: flex; width: 100%; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; height: 44px; border-radius: 100px; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: .9rem; transition: background .2s; }
.popup__cta:hover { background: var(--accent-2); }
.popup__skip { display: block; width: 100%; margin-top: 10px; font-size: .77rem; color: var(--on-invert-2); text-align: center; transition: color .2s; }
.popup__skip:hover { color: var(--on-invert); }
.popup.is-open ~ .fab { display: none; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none } }
