/* Custom surface styles — keep interactions Tailwind-friendly */
html { scroll-padding-top: 76px; scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.kb-body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.kb-core { overflow-x: clip; }
@media (min-width: 1024px) {
  .kb-body { padding-bottom: 96px; }
}
.kb-panel { background: #f5f5f5; }
.kb-heading {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.kb-heading em {
  font-style: normal;
  display: block;
}

.kb-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.kb-rail::-webkit-scrollbar { height: 0; }
.kb-rail > * { scroll-snap-align: start; flex: 0 0 auto; }

.kb-stars { color: #FDD000; letter-spacing: 1px; }

.kb-choice input { position: absolute; opacity: 0; pointer-events: none; }
.kb-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.kb-choice input:checked + span {
  border-color: #111;
  background: #111;
  color: #fff;
}

.kb-date-real {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.kb-drawer.is-open { transform: translateX(0); }
.kb-veil.is-on { display: block; }
body.kb-noscroll { overflow: hidden; }

.kb-hero-frame {
  background: #000;
  overflow: hidden;
}
.kb-hero-frame > img {
  width: 100%;
  height: calc(100vh - 100px);
  max-height: 720px;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
@media (max-width: 1023px) {
  .kb-hero-frame > img {
    height: 56vw;
    min-height: 220px;
    max-height: 420px;
  }
}

.kb-reel {
  position: relative;
  overflow: hidden;
  background: #000;
  height: calc(100vh - 100px);
  min-height: 420px;
  max-height: 900px;
}
@media (max-width: 1023px) {
  /* Keep the reel full width. aspect-ratio plus max-height shrinks the width and leaves a white strip. */
  .kb-reel {
    width: 100%;
    height: min(75vw, 420px);
    aspect-ratio: auto;
    min-height: 280px;
    max-height: none;
  }
}
.kb-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
}
.kb-scene.is-on { visibility: visible; opacity: 1; z-index: 2; }
.kb-scene.is-yellow { background: #FDD000; }
.kb-scene.is-white { background: #fff; }
.kb-scene.is-black { background: #000; }
.kb-scene.is-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.18) 0%, rgba(0,0,0,.5) 100%);
}
.kb-scene__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
.kb-scene.is-on .kb-scene__img.zoom-in  { animation: kbZoomIn  var(--dur, 2.2s) linear both; }
.kb-scene.is-on .kb-scene__img.zoom-out { animation: kbZoomOut var(--dur, 2.2s) linear both; }
.kb-scene.is-on .kb-scene__img.zoom-pan { animation: kbPan     var(--dur, 2.2s) linear both; }
@keyframes kbZoomIn  { from { transform: scale(1.02); } to { transform: scale(1.14); } }
@keyframes kbZoomOut { from { transform: scale(1.16); } to { transform: scale(1.03); } }
@keyframes kbPan     { from { transform: scale(1.12) translateX(3%); } to { transform: scale(1.12) translateX(-3%); } }

.kb-scene__cap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15em;
  padding: 0 6vw;
  text-align: center;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
  font-size: clamp(44px, 6.2vw, 112px);
  word-break: keep-all;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.kb-scene.is-yellow .kb-scene__cap,
.kb-scene.is-white .kb-scene__cap { color: #111; text-shadow: none; }
.kb-scene__line { display: block; opacity: 0; }
.kb-scene__line.is-xl { font-size: 1.55em; }
.kb-scene__line.is-sm { font-size: .62em; font-weight: 700; }
.kb-scene__line b { color: #FDD000; font-weight: 800; }
.kb-scene__line i { font-style: italic; font-weight: 900; }
.kb-scene.is-on .kb-scene__line { animation: kbPop .55s cubic-bezier(.2,.9,.25,1.25) var(--d, 0ms) both; }
.kb-scene.is-black.is-on .kb-scene__line,
.kb-scene.is-white.is-on .kb-scene__line { animation-name: kbRise; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
@keyframes kbPop {
  0%   { opacity: 0; transform: scale(.72); filter: blur(10px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes kbRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.kb-scene__end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}
.kb-scene__badge {
  background: #FDD000;
  color: #111;
  border-radius: 12px;
  padding: 8px 24px;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
}
.kb-scene__end strong {
  font-size: clamp(40px, 4.8vw, 80px);
  font-weight: 900;
  letter-spacing: -0.06em;
}
.kb-scene.is-on .kb-scene__end > * { animation: kbRise .7s cubic-bezier(.2,.8,.2,1) both; }
.kb-scene.is-on .kb-scene__end strong { animation-delay: .25s; }
@media (max-width: 1023px) {
  .kb-scene__cap { font-size: clamp(26px, 7.2vw, 40px); padding: 0 7vw; }
  .kb-scene__line.is-xl { font-size: 1.2em; }
  .kb-scene__end strong { font-size: clamp(28px, 8vw, 44px); }
  .kb-scene__badge { font-size: 16px; padding: 6px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .kb-scene.is-on .kb-scene__img { animation: none !important; }
  .kb-scene.is-on .kb-scene__line,
  .kb-scene.is-on .kb-scene__end > * { animation: none !important; opacity: 1; }
}

.kb-fade {
  animation: kbFade .6s ease both;
}
@keyframes kbFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.kb-branch-card .kb-branch-copy { display: none; }
.kb-branch-card.is-on .kb-branch-copy { display: block; }

.kb-date-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  padding: 16px;
}
.kb-date-pop.is-on { display: flex; }
.kb-postcode {
  display: flex;
  width: min(100%, 480px);
  height: min(560px, calc(100vh - 32px));
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.kb-cal {
  width: min(100%, 340px);
  border-radius: 16px;
  background: #fff;
  padding: 16px 16px 12px;
}
.kb-cal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kb-cal__bar p {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}
.kb-cal__bar button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f4;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.kb-cal__week,
.kb-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.kb-cal__week span {
  padding: 10px 0 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #666;
}
.kb-cal__grid button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.kb-cal__grid button.is-today {
  box-shadow: inset 0 0 0 1px #111;
}
.kb-cal__grid button.is-on,
.kb-cal__grid button.is-on.is-today {
  background: #111;
  color: #fff;
  box-shadow: none;
}
.kb-cal__close {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.kb-faq summary::-webkit-details-marker { display: none; }
.kb-faq summary { list-style: none; }

.kb-navlink { position: relative; color: #222; font-weight: 500; }
.kb-navlink:hover { color: #111; }
.kb-navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-bottom: 0.3125rem solid transparent;
  display: block;
}
.kb-navlink:hover::after,
.kb-navlink.is-on::after { border-bottom-color: #111; }
.kb-navlink.is-on { color: #111; font-weight: 600; }
.kb-navsub:hover { color: #111; font-weight: 600; }

.kb-flat { display: block; }
.kb-icon-badge { box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.kb-icon-tile { transition: transform .2s ease, box-shadow .2s ease; }
.kb-icon-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }

.kb-hero-bg {
  background: #111;
  min-height: 300px;
}
.kb-br::after {
  content: "\A";
  white-space: pre;
}
.kb-hero-bg > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.kb-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .55) 55%, rgba(10, 10, 10, .42) 100%);
}
.kb-hero-bg > div { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .kb-hero-bg::after {
    background: rgba(10, 10, 10, .62);
  }
  .kb-hero-bg {
    min-height: calc(100vh - 61px);
    min-height: calc(100dvh - 61px);
  }
  .kb-subhero h1 {
    font-size: clamp(18px, calc((100vw - 2rem) / 15.6), 28px);
    word-break: keep-all;
  }
}

.kb-hero-split {
  display: grid;
  gap: 0;
  background: #0a0a0a;
}
.kb-hero-split .kb-hero-media {
  overflow: hidden;
  background: #111;
}
.kb-hero-split .kb-hero-media img {
  display: block;
  width: 100%;
  height: 48vw;
  min-height: 220px;
  max-height: 360px;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .kb-hero-split {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: calc(100vh - 100px);
    max-height: 720px;
  }
  .kb-hero-split .kb-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .kb-hero-split .kb-hero-media,
  .kb-hero-split .kb-hero-media img {
    height: 100%;
    min-height: 100%;
    max-height: none;
  }
}

.kb-feature-row {
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .kb-feature-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}


/* flyer intro band */
.kb-flyer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 160px, rgba(255,255,255,.04) 160px 260px);
  pointer-events: none;
}
.kb-flyer__kicker { text-decoration: underline; text-decoration-color: #FDD000; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.kb-note {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 27, 58, 0.12);
}
.kb-note__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 16px 14px;
  background: #0b1b3a;
  border-bottom: 5px solid #FDD000;
}
.kb-note__badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FDD000;
}
.kb-note__title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.kb-note__photo {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}
.kb-note__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 20px 24px;
}
.kb-note__lead {
  display: grid;
  gap: 10px;
  color: #222;
  font-size: 16px;
  line-height: 1.65;
}
.kb-note__list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.kb-note__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #111;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.kb-note__list img { flex: none; margin-top: 1px; }
.kb-note__list:has(+ .kb-note__close) { margin-bottom: 22px; }
.kb-note__close {
  margin: auto 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff4b8;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  word-break: keep-all;
}
@media (min-width: 1024px) {
  .kb-note__head { min-height: 88px; padding: 16px 18px 14px; }
  .kb-note__title { font-size: 20px; }
  .kb-note__body { padding: 24px 22px 26px; }
}
.kb-flyer__name { font-size: clamp(22px, calc((100vw - 2rem) / 9.2), 36px); }
@media (min-width: 1024px) {
  .kb-flyer__name { font-size: 76px; }
}

/* price cards */
.kb-price__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FDD000;
  color: #111;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 15px;
  font-weight: 800;
}
.kb-price__num {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.kb-price__num small { font-size: .5em; font-weight: 800; margin-left: 2px; }
.kb-price__num { display: flex; align-items: flex-end; justify-content: center; }
.kb-odometer {
  display: inline-flex;
  align-items: flex-end;
  height: 1.1em;
  font-variant-numeric: tabular-nums;
}
.kb-odometer__col {
  display: block;
  height: 1.1em;
  overflow: hidden;
  width: 0.66em;
}
.kb-odometer__reel {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  transform: translateY(calc(var(--steps, 0) * -1.1em));
}
.kb-odometer__reel span { height: 1.1em; }
.kb-odometer.is-on .kb-odometer__reel {
  transform: translateY(0);
  transition: transform var(--dur, 1.15s) linear;
  transition-delay: var(--delay, 0ms);
}
.kb-odometer__comma { width: 0.32em; line-height: 1.1; }
@media (prefers-reduced-motion: reduce) {
  .kb-odometer__reel { transform: translateY(0); transition: none; }
}
.kb-price.is-main { transform: translateY(-8px); }
@media (max-width: 767px) { .kb-price.is-main { transform: none; } }

/* event cards with text overlay */
.kb-evcard__txt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 22px;
  width: 68%;
  color: #111;
  background: linear-gradient(90deg, rgba(253,208,0,.92) 55%, rgba(253,208,0,0));
}
.kb-evcard.is-dark .kb-evcard__txt { color: #fff; background: linear-gradient(90deg, rgba(11,27,58,.92) 55%, rgba(11,27,58,0)); }
.kb-evcard__txt em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #0b1b3a; }
.kb-evcard.is-dark .kb-evcard__txt em { color: #FDD000; }
.kb-evcard__txt strong { font-size: clamp(18px, 2vw, 26px); font-weight: 900; line-height: 1.2; letter-spacing: -0.04em; }
.kb-evcard.is-dark .kb-evcard__txt strong b { color: #FDD000; }
@media (max-width: 1023px) {
  .kb-evcard__txt { width: 78%; padding: 0 14px; }
  .kb-evcard__txt strong { font-size: 16px; }
  .kb-price { padding: 1.35rem 1rem; }
  .kb-price__num { font-size: 36px; }
}

/* certification marquee: two identical sets, slide by exactly one set */
.kb-cert-marquee {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}
.kb-cert-warm {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.kb-cert-track {
  display: flex;
  width: max-content;
  animation: kbCertMarquee 15s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}
.kb-cert-marquee.is-ready .kb-cert-track { animation-play-state: running; }
.kb-cert-marquee.is-held .kb-cert-track { animation-play-state: paused; }
.kb-cert-set { display: flex; flex: none; }
.kb-cert-card {
  flex: none;
  width: calc(100cqi / 1.15);
  padding: 0 10px;
  box-sizing: border-box;
}
@container (min-width: 720px) {
  .kb-cert-card { width: calc(100cqi / 2); }
}
@container (min-width: 1040px) {
  .kb-cert-card { width: calc(100cqi / 4); }
}
.kb-cert-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.kb-cert-shot img { display: block; width: 100%; height: auto; }
.kb-cert-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,17,17,.45);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  opacity: 0;
  transition: opacity .2s ease;
}
.kb-cert-shot:hover .kb-cert-zoom,
.kb-cert-shot:focus-visible .kb-cert-zoom { opacity: 1; }
.kb-cert-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
@keyframes kbCertMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.kb-cert-view {
  width: min(920px, 94vw);
  max-height: 94vh;
  padding: 16px 16px 20px;
  border: none;
  border-radius: 16px;
  background: #fff;
}
.kb-cert-view::backdrop { background: rgba(10,16,32,.72); }
.kb-cert-view__close {
  display: block;
  margin-left: auto;
  margin-bottom: 8px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.kb-cert-view img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 96px);
  margin: 0 auto;
}
.kb-cert-view p {
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}
@media (prefers-reduced-motion: reduce) {
  .kb-cert-track { animation: none; }
  .kb-cert-marquee { overflow-x: auto; }
}

/* tip article pages: larger, darker body copy */
body.kb-tip .kb-subhero p.text-white\/75 {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
}
.kb-tip-body p,
.kb-tip-body li,
.kb-tip-body td {
  font-size: 19px;
  line-height: 1.75;
  font-weight: 600;
  color: #1a1a1a;
}
.kb-tip-body h2 {
  font-size: 30px;
  font-weight: 800;
  color: #111;
}
.kb-tip-body th,
.kb-tip-body .font-bold,
.kb-tip-body .font-extrabold {
  font-weight: 800;
  color: #111;
}
.kb-tip-body th { font-size: 18px; }
.kb-tip-body a { font-size: 18px; font-weight: 800; color: #111; }
.kb-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
