/* 5주년 캠페인 랜딩(gbc5th.nonibus.ai, 2026-12-01) 전용 — body.c5 에만 걸린다.
   병원 리뷰(12-01 2차): 흰 바탕·진한 글자(검정 바탕 폐기), 맨 위 큰 금속광 제목 3줄, 상단 바 「유튜브 전용혜택 마감까지」(타임어택 배지 삭제)
   + 상담신청 완료 알림이 상단 바와 함께 고정, 「비용 때문에 치료 시기를 놓치지 마세요!」 강조. 바뀐 자리 숫자만 뒤집힘·게이지·배지 반짝임·
   CTA 펄스·폰 하단 고정 신청 바는 유지. 동작 줄이기면 모두 멈춘다. */
:root { color-scheme: only light; } /* 항상 라이트 — 강제 다크 거부 */
.c5 {
  --c5-red: #e4002b;
  --c5-red-hi: #ff2b4b;
  --c5-red-deep: #c20024;
  --c5-yellow: #ffe14d;
  --c5-ink: #15171c;
  --c5-sub: #3a3d46;
  background: #eef0f4;
}
.c5 .shell { background: #fff; color: var(--c5-ink); padding-bottom: 96px; }

/* ── 고정 상단: 마감 타이머 + 상담신청 완료 알림 ── */
.c5-top {
  position: sticky; top: 0; z-index: 40;
  font-family: var(--pretendard);
  box-shadow: 0 4px 14px rgba(20, 23, 28, .10);
}
.c5-timebar { background: var(--c5-red); padding-top: env(safe-area-inset-top); }
.c5-timebar-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: var(--shell); margin: 0 auto; padding: 9px 14px 8px;
}
.c5-live {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.8);
  animation: c5Live 1.1s ease-out infinite;
}
.c5-timebar-label { color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }
.c5-timebar .countdown { margin: 0; gap: 3px; perspective: 300px; }
.c5-timebar .countdown .d {
  font-variant-numeric: tabular-nums; overflow: hidden;
  width: 30px; height: 40px;
  background: #14161b; color: #fff; border-radius: 7px;
  font-size: 24px; font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.25);
}
.c5-timebar .countdown .d.flip { animation: c5Flip .42s cubic-bezier(.2,.7,.2,1); }
.c5-timebar .countdown .gap { width: auto; color: #fff; font-size: 22px; font-weight: 900; animation: c5Blink 1s steps(2, start) infinite; }
.c5-gauge { height: 4px; background: rgba(0,0,0,.18); }
.c5-gauge i {
  display: block; height: 100%; transform-origin: left center; transform: scaleX(1);
  background: linear-gradient(90deg, var(--c5-yellow), #fff);
  transition: transform .9s linear;
}
.c5 .c5-top .live-proof {
  position: relative; top: auto; z-index: 1;
  max-width: var(--shell); margin: 0 auto; background: #fff; color: var(--c5-ink);
  font-weight: 600;
}
.c5-top { background: #fff; border-bottom: 1px solid #e6e7ec; }
.c5 .c5-top .live-proof .when { color: #6b6f7a; opacity: 1; }
@media (max-width: 430px) {
  .c5-timebar-row { gap: 7px; padding-left: 10px; padding-right: 10px; }
  .c5-live { width: 8px; height: 8px; }
  .c5-timebar-label { font-size: 14px; }
  .c5-timebar .countdown { gap: 2px; }
  .c5-timebar .countdown .d { width: 25px; height: 35px; font-size: 20px; border-radius: 6px; }
  .c5-timebar .countdown .gap { font-size: 18px; }
}
@media (max-width: 370px) {
  .c5-timebar-row { gap: 5px; padding-left: 6px; padding-right: 6px; }
  .c5-timebar-label { font-size: 13px; letter-spacing: -0.6px; }
  .c5-timebar .countdown .d { width: 22px; height: 32px; font-size: 18px; }
}

/* ── 유튜브형 검색창(본문 맨 위) ── */
@media (max-width: 480px) {
  .c5 .yt-logo .name { display: none; }
  .c5 .yt-search span { white-space: normal; overflow: visible; }
}

/* ── 금속광 큰 제목 3줄 — 흰 바탕 유지, 어두운 강철 금속광(짙은 남색 #0b1f4d → 강철 청색 → 짙은 남색).
   정지 상태에서 가장 밝은 지점(#2a5fb8)도 흰 바탕 대비 6.13:1. 배경(강철 결 + 반사 띠)은 제목 블록 하나에만 두고 글자로 잘라낸다 —
   그래서 반사 띠는 세 줄을 가로지르는 하나의 대각선(약 20°)으로 한 번에 지나간다. 주기는 #5주년 배지 반짝임과 같다(2.6s). ── */
.c5-hero { padding: 18px 20px 6px; font-family: var(--pretendard); }
.c5-metal {
  width: fit-content; margin: 6px 0 20px;
  font-size: clamp(44px, 13.2vw, 62px); font-weight: 900; line-height: 1.1; letter-spacing: -2.4px;
  word-break: keep-all;
  color: #12306e; /* 그라데이션을 못 그리는 브라우저 대비용 */
  background-image:
    linear-gradient(110deg, transparent 46.5%, rgba(255,255,255,.75) 49.6%, rgba(255,255,255,.75) 50.4%, transparent 53.5%),
    linear-gradient(180deg, #0b1f4d 0%, #12306e 22%, #1e4fa3 44%, #2a5fb8 52%, #1e4fa3 60%, #12306e 80%, #0b1f4d 100%);
  background-size: 260% 100%, 100% 1.1em;   /* 강철 결은 줄 높이(1.1em)마다 되풀이, 반사 띠는 블록 전체에 하나 */
  background-repeat: no-repeat, repeat-y;
  background-position: 130% 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 4px 6px rgba(11, 31, 77, .18));
  animation: c5Gleam 2.6s ease-in-out infinite;
}
.c5-metal span { display: block; }
/* 핵심 줄 「더 합리적이고」 — 글자만 조금 크게(줄 상자 높이는 다른 줄과 같은 1.1em 이라 강철 결이 어긋나지 않는다) */
.c5-metal span:nth-child(2) { font-size: 1.08em; line-height: calc(1.1 / 1.08); letter-spacing: -2.8px; }

/* ── #5주년캠페인 배지 — 신청 카드 왼쪽 위 테두리에 걸친 탭(병원 12-01 「이것만 이쪽으로」) ── */
.c5-tag { margin: 0 0 16px; }
.c5 .apply-card.onepage-card.c5-card { overflow: visible; } /* 위 테두리에 걸친 #5주년 배지가 잘리지 않게(공용 onepage 카드의 overflow:hidden 해제) */
.c5-tag-card { position: absolute; left: 16px; top: 0; transform: translateY(-55%); margin: 0; z-index: 2; }
.c5-tag-card span { font-size: 16px; padding: 7px 14px; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(214, 170, 0, .28); }
.c5-tag span {
  position: relative; overflow: hidden; display: inline-block;
  padding: 8px 16px; border-radius: 999px;
  background: var(--c5-yellow); color: var(--c5-ink);
  font-size: 18px; font-weight: 900; letter-spacing: -0.4px;
  box-shadow: 0 0 0 3px rgba(255, 225, 77, .28), 0 6px 18px rgba(214, 170, 0, .25);
}
.c5-tag span::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent);
  transform: skewX(-20deg); animation: c5Shine 2.6s ease-in-out infinite;
}

/* ── 공감 문단(조금 크게) + 강조어 ── */
.c5-story {
  margin: 0 0 14px;
  font-size: 20px; line-height: 1.72; font-weight: 600; color: var(--c5-ink);
  word-break: keep-all; letter-spacing: -0.4px;
}
.c5-story mark { background: linear-gradient(transparent 60%, rgba(228, 0, 43, .22) 60%); color: inherit; padding: 0 2px; }
.c5-story strong { color: var(--c5-red-deep); font-weight: 800; background: linear-gradient(transparent 62%, rgba(255, 225, 77, .75) 62%); }
.c5-shout {
  margin: 22px 0 26px; padding: 18px 16px;
  border-radius: 16px; background: #fff1f3; border: 2px solid rgba(228, 0, 43, .25);
  text-align: center; color: var(--c5-red);
  font-size: clamp(25px, 7.4vw, 32px); font-weight: 900; line-height: 1.3; letter-spacing: -1px; word-break: keep-all;
}

/* ── 신청 카드 ── */
.c5 .apply-card-wrap { padding: 14px 16px 16px; } /* 카드 위 걸친 배지 자리 */
.c5-card {
  position: relative;
  background: #fff; color: var(--c5-ink);
  border: 3px solid var(--c5-red); border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(228, 0, 43, .08), 0 16px 36px rgba(20, 23, 28, .12);
}
.c5-lead { margin: 0 0 2px; font-size: 18px; line-height: 1.6; font-weight: 700; color: var(--c5-sub); word-break: keep-all; }
.c5-cta {
  position: relative; min-height: 62px;
  font-size: 20px !important; font-weight: 900 !important; letter-spacing: -0.5px;
  background: linear-gradient(180deg, var(--c5-red-hi), var(--c5-red-deep)) !important;
  box-shadow: 0 10px 24px rgba(228, 0, 43, .35);
  animation: c5Pulse 1.6s ease-in-out infinite;
}
.c5-cta:disabled { animation: none; opacity: .75; }
.c5-hurry { margin: -2px 0 0; text-align: center; font-size: 16px; font-weight: 900; color: var(--c5-red); letter-spacing: -0.3px; }
.c5-hurry span { display: inline-block; animation: c5Shake 2.4s ease-in-out infinite; }

.c5-note { margin: 6px 20px 8px; font-family: var(--pretendard); font-size: 13px; line-height: 1.6; color: #5c606b; word-break: keep-all; }

/* ── 폰 하단 고정 신청 바 ── */
.c5-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.95) 35%);
  transform: translateY(110%); transition: transform .28s ease;
  pointer-events: none;
}
.c5-dock.on { transform: none; pointer-events: auto; }
@media (min-width: 768px) { .c5-dock { display: none; } } /* 폰 전용 — PC 는 신청 카드가 화면에 잘 보인다 */
.c5-dock-btn {
  display: block; width: 100%; max-width: 472px; margin: 0 auto; min-height: 56px;
  border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, var(--c5-red-hi), var(--c5-red-deep)); color: #fff;
  font: 900 19px/1 var(--pretendard); letter-spacing: -0.5px;
  box-shadow: 0 10px 26px rgba(228, 0, 43, .4);
  animation: c5Pulse 1.6s ease-in-out infinite;
}
.c5-dock-btn:focus-visible { outline: 3px solid var(--c5-ink); outline-offset: 3px; }

/* ── 스크롤 진입 ── */
.c5-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.c5-reveal.in { opacity: 1; transform: none; }

@keyframes c5Live { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.85); } 80% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes c5Blink { to { opacity: .35; } }
@keyframes c5Flip { 0% { transform: rotateX(-90deg); opacity: .4; } 100% { transform: rotateX(0); opacity: 1; } }
@keyframes c5Gleam { 0%, 55% { background-position: 130% 0, 0 0; } 100% { background-position: -30% 0, 0 0; } }
@keyframes c5Shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes c5Pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes c5Shake { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 93% { transform: rotate(12deg); } 97% { transform: rotate(-6deg); } }

@media (prefers-reduced-motion: reduce) {
  .c5-live, .c5-timebar .countdown .gap, .c5-tag span::after, .c5-cta, .c5-dock-btn, .c5-hurry span, .c5-metal { animation: none; }
  .c5-metal { background-position: -30% 0, 0 0; }
  .c5-timebar .countdown .d.flip { animation: none; }
  .c5-gauge i, .c5-dock { transition: none; }
  .c5-reveal { opacity: 1; transform: none; transition: none; }
}
