/* =========================================================
   이감 파이널 EVENT — interactive responsive landing
   ========================================================= */

:root {
  /* palette */
  --indigo: #5257cc;
  /* hero / primary */
  --indigo-2: #4a4fc4;
  --indigo-deep: #16216e;
  /* dark benefits section */
  --indigo-deep-2: #101a5c;
  --periwinkle: #6a6fe0;
  --lilac: #7f83e8;
  --yellow: #ffd23b;
  --yellow-soft: #FFED9E;
  --red: #FF3B00;
  --green: #22c94c;
  --green-ink: #0b1f10;
  --ink: #1d1e33;
  --ink-soft: #444EB6;
  --line: #7C83CC;
  --card: #ffffff;

  --wrap: 62.5rem;
  --radius: 0.625rem;
  --radius-lg: 30px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-head: 'Jua', 'Pretendard Variable', sans-serif;
  --font-body: 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: #fff;
  background: var(--indigo);
  overflow-x: hidden;
  word-break: keep-all;
}

img {
  display: block;
  max-width: 100%;
}

/* 모바일에서 타이틀 이미지를 _m 버전으로 바꾸는 데 쓴다.
   기본 inline 이면 블록 img 를 감싸면서 익명 블록이 생겨,
   line-height:0 으로 높이를 이미지에 딱 맞춰둔 마스크(.ben__title--img 등)의
   계산이 흐트러진다. 항상 블록으로 둔다 */
picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -.01em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 120;
  background: rgba(0, 0, 0, .12);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--yellow), #ffec8b);
  box-shadow: 0 0 12px rgba(255, 210, 59, .6);
  transition: width .1s linear;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .4s var(--ease);
  transform: translateY(0);
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.site-header.is-solid {
  background: rgba(38, 42, 120, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 26px rgba(0, 0, 0, .22);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: .02em;
}

.brand b {
  color: var(--yellow);
}

.brand span {
  font-size: 13px;
  opacity: .75;
  letter-spacing: .14em;
}

.gnb {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}

.gnb a {
  opacity: .82;
  transition: opacity .2s, color .2s;
}

.gnb a:hover {
  opacity: 1;
  color: var(--yellow);
}

/* ---------- buttons ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--indigo-deep);
  font-weight: 800;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 210, 59, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  /* box-shadow: 0 12px 28px rgba(255, 210, 59, .5); */
  /* background-color: var(--yellow); */
}

.btn-cta:active {
  transform: translateY(0) scale(.99);
}

.btn-cta--sm {
  padding: 9px 18px;
  font-size: 14px;
}

.gnb+.btn-cta--sm {
  margin-left: 0;
}

.btn-cta--pill {
  /* 배경 채움(::before)의 기준 박스 + 그것이 글자 위로 못 올라오게 스택 컨텍스트 */
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 20rem;
  padding: 1rem 1.5rem;
  color: #444EB6;
  text-align: center;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  box-shadow: none;
  border-radius: 6.25rem;
  background: #FFF;
}

/* 텍스트·아이콘 기본색 #444EB6 — 방문(visited)·hover·포커스 상태에서도 텍스트는 그대로.
   전역 a:hover / a:visited 색상 규칙에 덮이지 않도록 상태별로 명시한다.
   (hover 시 화살표만 남색 배지 위에서 흰색으로 바뀐다 → .btn-cta__arrow 규칙) */
.btn-cta--pill:link,
.btn-cta--pill:visited,
.btn-cta--pill:hover,
.btn-cta--pill:active,
.btn-cta--pill:focus-visible,
.btn-cta--pill .btn-cta__label {
  color: #444EB6;
}

/* hover 시 왼쪽에 #E0E3FF 정원이 뜨고, 그 원이 오른쪽으로 늘어나 버튼 배경을 채운다.
   시작 폭을 버튼 높이와 같게 두면 pill 왼쪽 끝에 정확히 내접하는 정원이 되고,
   폭 100% 가 되는 순간에는 버튼과 똑같은 pill 이 된다 → 클리핑이 필요 없다.
   z-index -1 + 부모의 isolation → 배경 위, 글자 아래에 깔린다.
   지연을 base 와 hover 에 나눠 걸어 들어올 때는 원 → 채움, 빠질 때는 그 역순으로 간다. */
.btn-cta--pill::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  /* 2.633em = 세로 패딩 1rem×2 + 라인박스 1.3em (= 버튼 높이 63.2px) */
  width: 2.633em;
  z-index: -1;
  border-radius: 999px;
  background: #E0E3FF;
  transform: scale(0);
  transform-origin: left center;
  pointer-events: none;
  transition: transform .26s var(--ease) .16s, width .44s var(--ease) 0s;
}

/* 배지가 오른쪽으로 늘어나는 만큼 라벨은 왼쪽으로 밀린다.
   transform 이라 리플로우가 없어 줄바꿈이 생길 위험이 없다.
   지연은 hover 규칙에만 걸어 둔다 → 들어올 때만 배지 팝 뒤에 따라오고, 빠질 때는 바로 복귀 */
.btn-cta__label {
  transition: transform .34s var(--ease);
}

/* CTA 화살표 — hover 하면 원형 배지가 솟아 오른쪽으로 캡슐처럼 늘어나고,
   화살표는 배지 밖으로 빠져나가 왼쪽에서 다시 날아 들어온다.
   텍스트 글리프(→) 대신 인라인 SVG 를 쓰는 이유: 꼬리선과 화살촉의 좌표를
   직접 잡아야 선이 화살촉 축에 정확히 붙는다(글꼴 글리프는 위치를 추측해야 함). */
/* 화살표 자리. 높이를 라인박스(1.3em)와 같게 잡아 버튼 높이가 늘어나지 않는다 */
.btn-cta__arrow-wrap {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  margin-left: 0.35em;
  /* 캡슐이 오른쪽으로 길게 뻗을 자리를 벌기 위해 자리 자체도 살짝 왼쪽으로 옮긴다 */
  transition: transform .34s var(--ease);
}

/* 원 모양 무대 겸 클리핑 레이어. 화살표가 이 원의 경계에서 잘리기 때문에
   "오른쪽으로 빠져나가 왼쪽에서 다시 들어온다" 가 성립한다.
   inset 을 음수로 줘 라인박스보다 크게 보이면서도 레이아웃에는 영향이 없다
   (버튼 세로 패딩 1rem 안에서 끝난다) */
.btn-cta__arrow-disc {
  position: absolute;
  inset: -0.22em;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 50% 가 아니라 pill 반경 — 정사각일 때는 원, 오른쪽으로 늘어나면 캡슐이 된다
     (50% 면 늘어날 때 타원이 되어 모서리가 뭉개진다) */
  border-radius: 999px;
  overflow: hidden;
  /* hover 시 오른쪽으로만 늘어난다. right 만 바뀌므로 왼쪽 끝은 제자리 */
  transition: right .34s var(--ease);
}

/* hover 에서만 솟아오르는 원형 배지 — 기본 상태의 버튼 디자인은 건드리지 않는다 */
.btn-cta__arrow-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--ink-soft);
  transform: scale(0);
  /* 살짝 오버슈트해서 "퍽" 튀어나오게 */
  transition: transform .34s cubic-bezier(.34, 1.56, .64, 1);
}

/* position 을 줘야 절대배치된 ::before 위에 그려진다.
   overflow: visible — 꼬리가 늘어나면 viewBox(0~28) 밖으로 나가는데 svg 기본값이면 잘린다 */
.btn-cta__arrow {
  position: relative;
  flex: none;
  width: 1.05em;
  height: auto;
  overflow: visible;
  stroke: currentColor;
  transition: stroke .24s var(--ease);
}

/* 원점을 꼬리의 오른쪽 끝(x=20, 화살촉 꼭지점)에 둔다 → 늘어날 때 왼쪽으로만
   자라서 화살촉 밖으로 삐져나오지 않는다. 가운데(x=14)로 두면 오른쪽 끝이
   화살촉 꼭지점을 넘어 둥근 캡이 튀어나온다.
   transform-box: view-box → transform-origin 을 viewBox 좌표로 해석 */
.btn-cta__arrow-tail {
  transform-box: view-box;
  transform-origin: 20px 6px;
  transition: transform .3s var(--ease);
}

.btn-cta__arrow-head {
  transform-box: view-box;
}

@media (hover: hover) and (pointer: fine) {

  /* 배지가 원 → 캡슐로 오른쪽으로 쭈욱 (폭 1.74em → 2.87em).
     캡슐 오른쪽 끝은 rest 대비 1.13em 오른쪽으로 가고, 자리 자체가 0.4em 왼쪽으로
     옮겨지므로 실제 이동은 0.73em(약 17px) — 우측 여백(24px) 안에서 끝난다. */
  .btn-cta--pill:hover .btn-cta__arrow-disc {
    right: -1.35em;
    transition-delay: .1s;
  }

  /* 기본 .btn-cta:hover 의 노랑 배경은 이 버튼에선 쓰지 않으므로 흰색으로 되돌려,
     채워지지 않은 부분이 원래 색으로 남게 한다.
     리프트는 .upload 버튼과 같은 규격 — 확대(scale) 없이 3px 만 올라간다
     (.btn-cta:hover 의 translateY(-2px) scale(1.03) 을 덮어쓴다).
     그림자 색은 .upload 의 rgba(68,78,182,…) 를 쓰지 않는다: 그 값(#444EB6)은
     이 버튼이 놓인 .voices 섹션 배경(var(--ink-soft) = #444EB6)과 같은 색이라
     전혀 보이지 않는다. 배경보다 어두운 남색(var(--indigo-deep) 계열)으로 깐다. */
  .btn-cta--pill:hover {
    background-color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem -0.25rem rgba(16, 26, 92, .5);
  }

  /* 누르는 순간엔 들린 만큼 내려앉고 그림자가 얕아진다 (.upload:active 와 동일한 규격) */
  .btn-cta--pill:active {
    transform: translateY(0);
    box-shadow: 0 0.125rem 0.375rem -0.1875rem rgba(16, 26, 92, .55);
  }

  .btn-cta--pill:hover::before {
    transform: scale(1);
    width: 100%;
    transition-delay: 0s, .16s;
  }

  .btn-cta--pill:hover .btn-cta__arrow-wrap {
    transform: translateX(-0.4em);
    transition-delay: .1s;
  }

  .btn-cta--pill:hover .btn-cta__label {
    transform: translateX(-0.55em);
    transition-delay: .1s;
  }

  .btn-cta--pill:hover .btn-cta__arrow-disc::before {
    transform: scale(1);
  }

  .btn-cta--pill:hover .btn-cta__arrow {
    stroke: #FFF;
    animation: arrowLap .62s var(--ease) both;
  }

  .btn-cta--pill:hover .btn-cta__arrow-tail {
    animation: arrowLapTail .62s var(--ease) both;
  }
}

.btn-cta--pill:focus-visible .btn-cta__arrow-disc {
  right: -1.35em;
  transition-delay: .1s;
}

.btn-cta--pill:focus-visible {
  background-color: #FFF;
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem -0.25rem rgba(16, 26, 92, .5);
}

.btn-cta--pill:focus-visible::before {
  transform: scale(1);
  width: 100%;
  transition-delay: 0s, .16s;
}

.btn-cta--pill:focus-visible .btn-cta__arrow-wrap {
  transform: translateX(-0.4em);
  transition-delay: .1s;
}

.btn-cta--pill:focus-visible .btn-cta__label {
  transform: translateX(-0.55em);
  transition-delay: .1s;
}

.btn-cta--pill:focus-visible .btn-cta__arrow-disc::before {
  transform: scale(1);
}

.btn-cta--pill:focus-visible .btn-cta__arrow {
  stroke: #FFF;
  animation: arrowLap .62s var(--ease) both;
}

.btn-cta--pill:focus-visible .btn-cta__arrow-tail {
  animation: arrowLapTail .62s var(--ease) both;
}


/* 오른쪽으로 빠져나갔다가 왼쪽에서 다시 들어와 제자리.
   35% → 36% 의 순간 이동은 화살표가 배지 밖(클리핑 영역 밖)에 있을 때 일어나므로
   되돌아가는 궤적은 보이지 않는다.
   2.1em 근거: 늘어난 배지 폭 2.87em(1.3 + 0.22 + 1.35)의 절반 1.435em
   + 화살표 절반 0.525em = 1.96em → 그보다 커야 완전히 숨는다. */
@keyframes arrowLap {
  0% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(2.1em);
  }

  36% {
    transform: translateX(-2.1em);
  }

  100% {
    transform: translateX(0);
  }
}

/* 날아 들어오는 구간에서 꼬리를 크게 늘여 속도감("쭈욱")을 주고,
   hover 가 유지되는 동안에는 1.4 배 길이로 남는다 — 길어진 캡슐과 비율을 맞춘다.
   hover 가 풀리면 애니메이션이 사라지며 .btn-cta__arrow-tail 의 transition 으로 1 로 복귀 */
@keyframes arrowLapTail {
  0% {
    transform: scaleX(1);
  }

  36% {
    transform: scaleX(1.75);
  }

  62% {
    transform: scaleX(1.55);
  }

  100% {
    transform: scaleX(1.4);
  }
}

/* 모션 최소화: 원과 색만 바뀌고 화살표는 움직이지 않는다 */
@media (prefers-reduced-motion: reduce) {

  .btn-cta__arrow-wrap,
  .btn-cta__arrow-disc,
  .btn-cta__arrow-disc::before,
  .btn-cta__arrow,
  .btn-cta__arrow-tail,
  .btn-cta__label,
  .btn-cta--pill::before {
    transition: none;
  }

  .btn-cta--pill:hover .btn-cta__arrow,
  .btn-cta--pill:focus-visible .btn-cta__arrow,
  .btn-cta--pill:hover .btn-cta__arrow-tail,
  .btn-cta--pill:focus-visible .btn-cta__arrow-tail {
    animation: none;
  }

}

/* =========================================================
   HERO
   ========================================================= */
/* 히어로 등장 순서(위→아래로 한 줄기로 이어지도록 텀은 짧게).
   transition 기반 요소는 HTML의 data-delay(ms)로, animation 기반 요소는
   아래 변수로 시점을 잡는다 — 두 축의 숫자가 하나의 사다리를 이룬다.
     0s   말풍선
     .12s 타이틀 1줄 → .26s 2줄 (~1.1s 종료) → .95s #룰렛 착지 → 1.5s 룰렛 루프
     .20s 서브카피          (data-delay 200)
     .29s 캐릭터 비주얼      (data-delay 290, 데코/캐릭터 인트로도 여기에 맞춤)
     .40/.47/.54s 혜택 카드  (data-delay 400/470/540, 트랜지션 .42s → .96s 에 안착)
     .62s 도장 + 형광펜 타임라인 (형광펜 --hl-in .35/.47/.59 → 1.55s 에 종료)
     안내 리스트는 자기 스크롤 진입 기준 .12/.21/.30s (data-delay 120/210/300)
   .hero__head → .hero__visual → .bcards 순서가 읽히는 것이 우선이다. 그래서
   카드만 당기지 않고 사다리 전체를 같은 비율로 압축한다(제네릭 트랜지션도 .55s).
   카드 지연을 비주얼보다 앞세우면 순서가 뒤집혀 보이므로 건드리지 말 것. */
.hero {
  --seq-speech: 0s;
  --seq-title: .12s;
  --seq-visual: .29s;
  --seq-stamp: .62s;
  position: relative;
  padding: 5rem 0 7.5rem 0;
  /* background:
    radial-gradient(120% 80% at 50% -10%, #676cdb 0%, var(--indigo) 46%, var(--indigo-2) 100%); */
  overflow: hidden;
}

.hero__inner {
  max-width: 90rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.speech {
  display: block;
  /* scales with the viewport like the title (which uses 10vw),
     capped at 21rem on desktop so it never overpowers the title */
  width: min(45vw, 21rem);
  margin: 0 auto 0.5rem;
  transform-origin: bottom center;
}

/* speech-bubble entrance: pop out of the tail with a little overshoot.
   상시 부유(speechFloat)는 제거했다 — 바로 아래 #룰렛이 3s 로 굴러가는데
   그 위에서 같은 주기로 흔들리면 두 움직임이 서로를 갉아먹는다. */
@media (prefers-reduced-motion: no-preference) {
  .speech[data-reveal].in {
    animation: speechPop .5s cubic-bezier(.2, .7, .3, 1.35) var(--seq-speech, 0s) both;
  }
}

@keyframes speechPop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(.3);
  }

  60% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }

  80% {
    transform: scale(.97);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__title {
  /* shared render height for every title image (all are 240px tall natively).
     min(vw, cap) keeps the widest line (hash 3.05 + title2 5.5 = 8.55×h)
     inside the viewport down through tablet/phone widths — never overflows. */
  --title-h: min(10vw, 92px);
}

/* .line 은 글자가 밀려 올라오는 "창"(마스크) 역할만 한다 — 높이가 이미지와 딱 맞아
   안쪽이 아래에서 올라오면 글자가 창 밖에서 차오르듯 드러난다 */
.hero__title .line {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* 1회성 등장이라 will-change 를 걸지 않는다 (계속 도는 .hash-reel / .deco 만 유지) */
.hero__title .line__inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.hero__title .line+.line {
  margin-top: calc(var(--title-h) * 0.14);
}

.title-img {
  flex: 0 0 auto;
  height: var(--title-h);
  width: auto;
  max-width: none;
}

/* hash "roulette": two title images rolling like a slot reel, infinitely.
   3rd frame is a clone of the 1st so the loop wraps seamlessly. */
.hash-roulette {
  flex: 0 0 auto;
  width: calc(var(--title-h) * 3.05);
  height: var(--title-h);
  overflow: hidden;
}

/* 실제 재생은 .hero__title.in 기준으로 아래에서 건다 (타이틀 등장 후에 굴러가도록) */
.hash-reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.hash-reel img {
  height: var(--title-h);
  width: auto;
  max-width: none;
}

@keyframes hashRoll {

  0%,
  40% {
    transform: translateY(0);
    /* #만점 */
  }

  50%,
  90% {
    transform: translateY(-33.333%);
    /* #운명 */
  }

  100% {
    transform: translateY(-66.666%);
    /* #만점 clone → seamless wrap */
  }
}

@media (prefers-reduced-motion: reduce) {

  /* .hero__title.in 하위 규칙보다 특정도가 낮으면 무시되므로 선택자를 맞춰준다 */
  .hash-reel,
  .hero__title.in .hash-reel {
    animation: none;
  }
}

/* ---- first-entrance for the title ----
   "마스크 라이즈" — 각 줄이 자기 높이만 한 창 아래에서 통째로 밀려 올라온다.
   튀거나(overshoot) 기울이지(rotate) 않고, easeOutQuint 로 앞부분만 빠르게 움직인 뒤
   길게 감속해 내려앉는다. 편집 디자인의 타이틀 연출 방식이라 크게 움직여도 차분하다.
   심심해지지 않도록 '움직임'이 아니라 '내용'으로 한 번 더 준다 → 아래 hashDebut:
   타이틀이 자리잡는 순간 룰렛이 #운명 → #만점 으로 또렷하게 한 칸 굴러 착지한다. */
.hero__title[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {

  /* 지연 구간에는 both 로 0% 상태(창 아래)가 유지되므로 따로 숨길 필요가 없다 */
  .hero__title.in .line:first-child .line__inner {
    animation: maskRise .85s cubic-bezier(.22, 1, .36, 1) var(--seq-title, 0s) both;
  }

  .hero__title.in .line--roulette .line__inner {
    animation: maskRise .85s cubic-bezier(.22, 1, .36, 1) calc(var(--seq-title, 0s) + .14s) both;
  }

  /* 둘째 줄이 거의 내려앉는 시점에 슬롯머신처럼 #만점으로 착지(.83s),
     그 뒤부터 평소의 3s 루프로 넘어간다(.83 + .55 = 1.38s).
     hashDebut 의 끝(-66.666% = 만점 clone)과 hashRoll 의 시작(0% = 만점)이
     같은 그림이라 이어지는 지점이 보이지 않는다.
     .in 기준이라 다시 스크롤해 올라오면 착지 연출부터 다시 재생된다 */
  .hero__title.in .hash-reel {
    animation:
      hashDebut .55s cubic-bezier(.16, 1, .3, 1) calc(var(--seq-title, 0s) + .83s) both,
      hashRoll 3s cubic-bezier(.6, 0, .2, 1) calc(var(--seq-title, 0s) + 1.38s) infinite;
  }
}

/* 마스크 라이즈 공용 키프레임 — 히어로 타이틀과 혜택 헤드(.tag / .ben__title--img)가
   같은 연출을 쓰도록 하나로 공유한다. 110% 는 drop-shadow 여유분까지 확실히 창 밖으로
   빼기 위한 값 (마스크가 이미지보다 조금 클 수 있어 100% 로는 살짝 걸친다) */
@keyframes maskRise {
  from {
    transform: translateY(110%);
  }

  to {
    transform: translateY(0);
  }
}

/* 등장하는 동안은 #운명 을 보여주다가, 자리잡는 순간 #만점 으로 한 칸 굴러 멈춘다 */
@keyframes hashDebut {
  from {
    transform: translateY(-33.333%);
  }

  to {
    transform: translateY(-66.666%);
  }
}

.hero__sub {
  position: relative;
  z-index: 3;
  margin: 22px auto 0;
  color: #C9CCF0;
  text-align: center;
  font-family: 'PretendardRegular';
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 120%;
  letter-spacing: -0.06rem;
}

/* character visual */
.hero__visual {
  position: relative;
  width: min(480px, 86vw);
  margin: 30px auto 60px;
  aspect-ratio: 1/1;
}

.hero__circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #000D91;
  will-change: transform;
  animation: circleBreathe 7s ease-in-out infinite;
}

/* 글로우를 ::after 로 분리해 opacity 만 움직인다.
   box-shadow 애니메이션은 매 프레임 페인트를 유발하지만 opacity 는 컴포지터에서만
   처리된다 — 480px 짜리 원이라 이 차이가 그대로 프레임 비용으로 온다. */
.hero__circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 55px 6px rgba(58, 66, 200, .38);
  opacity: 0;
  animation: circleGlow 7s ease-in-out infinite;
}

/* gentle breathing + soft glow so the circle feels alive like everything else.
   7s desyncs it from the character's 4.5s float.
   scale 은 1.035 → 1.012 로 낮췄다: 480px 기준 17px 이나 움직여서 위에 얹힌
   캐릭터가 같이 흔들려 보였다. 살아있는 느낌은 글로우가 대부분 담당한다. */
@keyframes circleBreathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.012);
  }
}

@keyframes circleGlow {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero__circle,
  .hero__circle::after {
    animation: none;
  }

  /* 깜빡임 없이 은은한 글로우 상태로 고정 */
  .hero__circle::after {
    opacity: 1;
  }
}

.hero__character {
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  width: 70%;
  z-index: 2;
  /* filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .32)); */
}

/* Single fighting pose, brought to life with a smooth transform-only pump —
   NO opacity blending (so it never looks like a ghostly double image).
   A rhythmic jump + squash/stretch + tiny sway reads as energetic fighting. */
.hero__character__pose {
  display: block;
  width: 100%;
  transform-origin: bottom center;
  backface-visibility: hidden;
  /* fightIntro 는 1회성이라 will-change 불필요 — 상시 부유는 부모 .float-y 담당 */
}

/* strong bounce once on entry; afterwards it just holds (scale 1, translateY 0)
   while the wrapper's float-y keeps it gently drifting up and down.
   데코와 마찬가지로 .in 기준이라, 다시 스크롤해 올라오면 한 번 더 튄다 */
.hero__visual.in .hero__character__pose {
  animation: fightIntro 1.3s ease-in-out var(--seq-visual, 0s) both;
}

/* initial entrance — energetic */
@keyframes fightIntro {
  0% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }

  20% {
    transform: translateY(-13px) scale(.98, 1.04) rotate(-1.5deg);
    /* spring up + stretch, lean */
  }

  40% {
    transform: translateY(0) scale(1.03, .97) rotate(0deg);
    /* land + squash */
  }

  57% {
    transform: translateY(-8px) scale(.99, 1.02) rotate(1.5deg);
    /* second, smaller pump the other way */
  }

  75% {
    transform: translateY(0) scale(1.01, .99) rotate(0deg);
  }

  100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  /* .hero__visual.in 하위 규칙보다 특정도가 낮으면 무시되므로 선택자를 맞춰준다 */
  .hero__character__pose,
  .hero__visual.in .hero__character__pose {
    animation: none;
  }
}

/* decorations arranged around the circle (matches 시안), gentle float loop.
   --x / --y / --w are % of the circle box, so they scale & stay in place with it. */
.deco-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.deco {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .2));
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  /* 비주얼이 .in 되기 전까지는 숨어 있다가, .in 이 붙는 순간 인트로가 재생된다.
     (스크롤로 히어로를 벗어나면 .in 이 제거되므로 다시 올라올 때 처음부터 재생) */
  opacity: 0;
  will-change: transform;
  /* 상시 도는 decoLoop 가 transform 만 쓴다 (opacity 는 1회성 인트로에서만) */
}

/* 데코도 캐릭터와 같은 시점(--seq-visual)부터 --din 만큼 순차로 튀어나온다 */
.hero__visual.in .deco {
  animation:
    decoIntro .7s cubic-bezier(.2, .75, .3, 1) calc(var(--seq-visual, 0s) + var(--din, 0s)) both,
    decoLoop var(--dur, 7s) ease-in-out calc(var(--seq-visual, 0s) + var(--din, 0s) + .7s) infinite;
}

.deco--envelope {
  --x: -1%;
  --y: 3%;
  --w: 30%;
  --rot: -6deg;
  --fh: 12px;
  --dur: 4.3s;
  --delay: -0.2s;
}

.deco--pen {
  --x: 115%;
  --y: 5%;
  --w: 30%;
  --rot: 0deg;
  --fh: 15px;
  --dur: 3.6s;
  --delay: -1.2s;
}

.deco--book {
  --x: -39%;
  --y: 42%;
  --w: 30%;
  --rot: 0deg;
  --fh: 13px;
  --dur: 4.7s;
  --delay: -0.7s;
}

.deco--note {
  --x: -18%;
  --y: 80%;
  --w: 30%;
  --rot: -4deg;
  --fh: 12px;
  --dur: 4.0s;
  --delay: -1.9s;
}

.deco--idea {
  --x: 130%;
  --y: 80%;
  --w: 30%;
  --rot: 0deg;
  --fh: 12px;
  --dur: 3.9s;
  --delay: -0.5s;
}

/* entrance: emerge from the circle centre (behind character) out to resting spot */
.deco--envelope {
  --sx: 245px;
  --sy: 226px;
  --din: .05s;
}

.deco--pen {
  --sx: -350px;
  --sy: 283px;
  --din: .18s;
}

.deco--book {
  --sx: 427px;
  --sy: 38px;
  --din: .10s;
}

.deco--note {
  --sx: 326px;
  --sy: -96px;
  --din: .24s;
}

.deco--idea {
  --sx: -451px;
  --sy: -38px;
  --din: .14s;
}

/* --din = quick intro stagger (all pop in within ~1.2s on load).
   --dur = loop length, varied per element so they desync and take turns after the intro. */
.deco--envelope {
  --din: 0s;
  --dur: 5.6s;
}

.deco--pen {
  --din: 0.12s;
  --dur: 6.4s;
}

.deco--book {
  --din: 0.24s;
  --dur: 7.8s;
}

.deco--note {
  --din: 0.36s;
  --dur: 8.6s;
}

.deco--idea {
  --din: 0.48s;
  --dur: 9.4s;
}

/* INTRO (once): emerge from circle centre, growing, out to resting spot */
@keyframes decoIntro {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--sx, 0px)), calc(-50% + var(--sy, 0px))) scale(.1) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg));
  }
}

/* LOOP (infinite): starts AT the resting spot (seamless from intro) and just
   bobs gently up/down with a subtle sway — never fades or disappears, so the
   decorations stay put and quietly float. Varied --dur keeps them out of sync. */
@keyframes decoLoop {
  0% {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  }

  25% {
    transform: translate(calc(-50% + 4px), calc(-50% - var(--fh, 12px))) rotate(calc(var(--rot, 0deg) + 2deg));
  }

  50% {
    transform: translate(-50%, calc(-50% - var(--fh, 12px) * 0.45)) rotate(calc(var(--rot, 0deg) - 1deg));
  }

  75% {
    transform: translate(calc(-50% - 4px), calc(-50% - var(--fh, 12px))) rotate(calc(var(--rot, 0deg) + 1deg));
  }

  100% {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  }
}

@media (max-width:640px) {

  /* 시안(01_m) 기준: 모바일에서는 원형 주변 장식 요소를 노출하지 않는다 */
  .deco-layer {
    display: none;
  }
}

/* benefit summary cards */
.bcards {
  position: relative;
  margin: 52px auto 0;
  max-width: 62.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bcards__stamp {
  display: block;
  position: absolute;
  top: -70px;
  left: -54px;
  width: 100%;
  max-width: 7.5rem;
  z-index: 5;
}

/* 카드는 제네릭 .55s 보다 짧게 — 3장이 순차로 올라오는 구간이라
   개별 트랜지션이 길면 전체가 늘어져 보인다 */
.bcard[data-reveal="up"] {
  transition-duration: .42s;
}

.bcard {
  background: #fff;
  color: var(--indigo-deep);
  display: flex;
  padding: 1.5rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1 0 0;
  border-radius: 0.625rem;
  border: 0 solid #FFF;
  background: #FFF;
}

.tag {
  display: block;
  width: 100%;
  max-width: 8rem;
}

.bcard__cap {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  font-family: 'PretendardBold';
  font-size: 1.75rem;
  font-style: normal;
  line-height: 120%;
  letter-spacing: -0.07rem;
}

.bcard__title {
  margin: 0.25rem 0 0 0;
  font-family: var(--font-head);
  font-size: clamp(18px, 3.4vw, 24px);
}

.bcard__title mark {
  /* white base; the yellow (solid gradient) is swept in over it via background-size */
  display: inline-block;
  /* inline-block so the jelly scale transform applies */
  transform-origin: center;
  background-image: linear-gradient(var(--yellow-soft), var(--yellow-soft));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  background-color: #fff;
  /* default: white (unpainted) */
  color: var(--ink-soft);
  text-align: center;
  font-family: 'PretendardBold';
  font-size: 2.5rem;
  font-style: normal;
  line-height: 120%;
  letter-spacing: -0.1rem;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 형광펜 — 도장이 착지한 뒤(--seq-stamp + .5s) 1 → 2 → 3 순으로 칠해지고
   그대로 유지된다(forwards). 셋 다 칠해지는 순간 함께 한 번 통통 튄다.
   예전엔 3.5s 마다 지웠다 다시 긋는 무한 루프였고, 그래서 페이지가 늘 시끄러웠다.
   지금은 혜택1 nowHighlight / 혜택3 npay__count 와 같은 "1회 후 유지" 규칙을 따른다.
   percentage 로 phase-lock 하던 방식을 버리고 각자 delay 로 잡으므로
   키프레임은 하나면 충분하다. */
.bcard:nth-of-type(1) {
  --hl-in: .35s;
}

.bcard:nth-of-type(2) {
  --hl-in: .47s;
}

.bcard:nth-of-type(3) {
  --hl-in: .59s;
}

@media (prefers-reduced-motion: no-preference) {
  .bcard.in .bcard__title mark {
    animation:
      hlSweep .34s linear calc(var(--seq-stamp, 0s) + var(--hl-in, 0s)) forwards,
      hlJelly .62s linear calc(var(--seq-stamp, 0s) + .95s) both;
  }
}

/* 모션 최소화: 긋는 과정 없이 칠해진 상태로 표시 */
@media (prefers-reduced-motion: reduce) {
  .bcard__title mark {
    background-size: 100% 100%;
  }
}

@keyframes hlSweep {
  from {
    background-size: 0% 100%;
  }

  to {
    background-size: 100% 100%;
  }
}

/* 칠해진 직후 한 번, 부드럽게 부풀었다가 천천히 제자리로.
   이전 버전은 1 → 1.1 → .98 → 1.02 → 1 로 방향을 세 번 바꿨는데, CSS 는 타이밍 함수를
   키프레임 구간마다 따로 적용하기 때문에 ease-in-out 이면 매 구간 끝에서 속도가 0 이
   된다 → 완전히 멈추는 짧은 움직임 네 개가 이어 붙어 덜커덩거렸다.
   방향 전환을 정점 한 번으로 줄이고, 구간별 곡선을 키프레임에서 직접 지정한다.
   올라갈 때는 빠르게 시작해 정점에 부드럽게 닿고(ease-out), 내려올 때는 천천히
   떨어지기 시작해 부드럽게 안착한다 → 정점에 잠깐 머무는 젤리 같은 탄성.
   ※ 구간별 함수가 있으므로 이 키프레임을 쓰는 규칙의 easing 값은 무시된다(linear 로 표기) */
@keyframes hlJelly {
  0% {
    transform: scale(1);
    animation-timing-function: cubic-bezier(.3, .75, .3, 1);
  }

  42% {
    transform: scale(1.09);
    animation-timing-function: cubic-bezier(.45, 0, .35, 1);
  }

  100% {
    transform: scale(1);
  }
}

/* info list */
.infolist {
  max-width: 62.5rem;
  margin: 2.5rem auto 0;
}

.infolist__row:nth-child(1) {
  border-top: 0.125rem solid #fff;
}

.infolist__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 22px 4px;
  border-top: 0.0625rem solid var(--line);
  text-align: left;
}

/* 정보성 텍스트라 가볍고 빠르게 — 기본 .7s/38px 대신 .4s/16px 로 짧게 훑고 지나간다.
   히어로 아래쪽이라 대부분 스크롤해서 마주치는 블록이므로, 큰 지연은 그대로 렉처럼 느껴진다 */
.infolist__row[data-reveal="up"] {
  transform: translateY(16px);
  transition-duration: .4s;
}

.infolist__row[data-reveal="up"].in {
  transform: none;
}

.infolist__row:last-child {
  border-bottom: 0.125rem solid #fff;
}

.infolist dt {
  padding-top: 3px;
  color: #FFF;
  font-family: 'PretendardBold';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

.infolist dd,
.infolist dd p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #FFF;
  font-family: 'PretendardRegular';
  font-size: 2rem;
  line-height: 120%;
  letter-spacing: -0.08rem;
}

.infolist .or {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: middle;
  margin: 0 4px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.steps .arrow {
  color: var(--yellow);
  font-size: 13px;
}


.schedule p:nth-child(1),
.schedule p:last-child {
  margin: 0;
}

.schedule p {
  margin: 0.5rem 0;
}

.schedule b {
  color: var(--yellow);
  font-weight: 800;
}

.infolist .schedule .tiny {
  color: #FFF;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* =========================================================
   BENEFITS (dark)
   ========================================================= */
.benefits {
  background: linear-gradient(180deg, var(--indigo-deep) 0%, var(--indigo-deep-2) 100%);
  padding: 7.5rem 1rem;
  /* 2열 카드의 좌/우 등장 시간차. 혜택1(.pkg) · 혜택2(.grade) · 추가혜택(.addcard)이
     같은 값을 쓴다. 똑같이 생긴 카드 2장이 같은 프레임에 같은 동작을 하면 기계적으로
     보이고, 그렇다고 길면 "순서"로 읽힌다 — 그 사이를 노린 값이다.
     모바일에서는 1열로 쌓여 카드가 각자 스크롤로 들어오므로 0 으로 되돌린다 */
  --card-stagger: .16s;
}

.ben:nth-child(1) {
  max-width: var(--wrap);
  margin: 0 auto;
}

.ben {
  max-width: var(--wrap);
  margin: 7.5rem auto 0 auto;
}

.ben__head {
  text-align: center;
  margin-bottom: 1.25rem;
}

/* 아래 여백은 마스크 래퍼(.rise--tag)가 갖는다 */
.tag--lg {
  height: 3.75rem;
  margin: 0 auto;
}

.ben__title {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .18);
}

.ben__title .hl {
  color: var(--yellow);
}

/* 혜택1 제목: 텍스트 대신 이미지 (한 줄 타이틀) */
.ben__title--img {
  text-shadow: none;
  line-height: 0;
}

.ben__title--img img {
  width: 100%;
  max-width: 55rem;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .18));
}

.ben--3 .ben__title--img img {
  max-width: 49rem;
}

.brn--4 .ben__title--img img {
  max-width: 45rem;
}

.ben--add .ben__title--img img {
  max-width: 45rem;
}

/* =========================================================
   혜택 헤드(.ben__head) 스크롤 진입 연출 — 혜택1/2/3/추가 공통
   - .ben__head 는 자체 페이드 대신 "트리거" 역할만 하고(.in),
     태그 → 제목이 차례로 창 밖에서 밀려 올라온다.
   - 히어로 타이틀과 완전히 같은 maskRise + easeOutQuint 를 쓴다.
   - 기존 빗금/0원 강조 애니메이션은 그대로 유지.
   ========================================================= */
.ben__head[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* 태그 마스크. .tag--lg 가 갖고 있던 아래 여백을 래퍼로 옮겼다 —
   여백이 마스크 안에 남으면 이미지가 창 밖으로 완전히 빠지지 못한다 */
.rise {
  display: block;
  overflow: hidden;
}

.rise--tag {
  margin-bottom: 1.25rem;
}

/* 제목 이미지의 drop-shadow(0 4px) 가 잘리지 않도록 마스크를 아래로만 6px 넓히고
   같은 크기의 음수 마진으로 상쇄해 레이아웃은 그대로 둔다 (h1~h3 은 margin:0 리셋됨) */
.ben__title--img {
  overflow: hidden;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {

  /* .in 이 붙기 전엔 창 아래에 숨어 있어야 한다 — 헤드가 화면에 살짝 걸친 상태에서
     이미지가 먼저 보였다가 내려앉는 깜빡임을 막는다 */
  .ben__head .tag--lg,
  .ben__title--img img {
    transform: translateY(110%);
  }

  /* 규칙(maskRise)은 같게, 비중만 다르게 — 태그는 보조 라벨이라 짧고 가볍게,
     제목이 주인공이라 길고 무겁게. 둘이 같은 길이면 위계가 사라져 "같은 동작 두 번"으로 읽힌다.
     히어로 타이틀(.85s)보다 짧은 건 의도적이다 — 여긴 스크롤하며 네 번 마주치는 블록이라
     첫인상용 길이를 그대로 쓰면 매번 기다리게 된다. */
  .ben__head.in .tag--lg {
    animation: maskRise .45s cubic-bezier(.22, 1, .36, 1) both;
  }

  .ben__head.in .ben__title--img img {
    animation: maskRise .7s cubic-bezier(.22, 1, .36, 1) .1s both;
  }
}

/* ③ 패키지 카드: 부담스럽지 않게 살짝 떠오르며 등장, 내부 콘텐츠도 가볍게 순차 등장.
   --pkg 는 좌/우 카드의 시간차. 카드 내부의 모든 지연이 여기에 상대적이라
   카드 하나를 통째로 옮길 때 손댈 곳이 한 군데다 (혜택2 --card / 추가혜택 --add 와 같은 구조) */
.ben--1 .pkg {
  --pkg: 0s;
}

.ben--1 .pkg:nth-of-type(2) {
  --pkg: var(--card-stagger, .16s);
}

.ben--1 .pkg[data-reveal="up"] {
  transform: translateY(24px) scale(.985);
}

/* 위 오버라이드가 제네릭 [data-reveal].in 규칙보다 특정도가 높아
   .in 상태에서 최종 위치로 못 돌아오는 것을 방지 */
.ben--1 .pkg[data-reveal="up"].in {
  transform: none;
}

.ben--1 .pkg__badge,
.ben--1 .pkg__name,
.ben--1 .pkg__desc,
.ben--1 .pkg__old {
  opacity: 0;
  transform: translateY(12px);
}

/* 뱃지 → 상품명 → 설명 → 정가 순으로 약 0.1s 간격을 두고 떠오른다.
   정가(.pkg__old)는 빗금 긋기(--pkg + .55s)와 맞물리도록 그 직전에 자리를 잡는다 */
@media (prefers-reduced-motion: no-preference) {

  /* 카드 등장을 트랜지션 대신 애니메이션으로 돌려서 --pkg 로 좌/우 시간차를 잡는다
     (트랜지션 지연은 JS 가 data-delay 를 inline 으로 써넣어 CSS 에서 제어할 수 없다) */
  .ben--1 .pkg.in {
    animation: softRise .6s ease-out var(--pkg, 0s) both;
  }

  .ben--1 .pkg.in .pkg__badge {
    animation: softRise .5s ease-out calc(var(--pkg, 0s) + .18s) forwards;
  }

  .ben--1 .pkg.in .pkg__name {
    animation: softRise .55s cubic-bezier(.2, .7, .3, 1.1) calc(var(--pkg, 0s) + .28s) forwards;
  }

  .ben--1 .pkg.in .pkg__desc {
    animation: softRise .5s ease-out calc(var(--pkg, 0s) + .36s) forwards;
  }

  .ben--1 .pkg.in .pkg__old {
    animation: softRise .45s ease-out calc(var(--pkg, 0s) + .44s) forwards;
  }
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ben__note {
  margin: 1.5rem 0 0 0;
  color: #C9CCF0;
  text-align: center;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* 안내문: 작은 텍스트라 과하지 않게, 기본 38px 대신 살짝만 떠오르며 페이드인 */
.ben__note[data-reveal="up"] {
  transform: translateY(14px);
}

.ben__note[data-reveal="up"].in {
  transform: none;
}

/* 혜택1 packages */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 62.5rem;
  margin: 0 auto;
}

.pkg {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  color: var(--indigo-deep);
  border-radius: var(--radius);
  padding: 34px 20px 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.pkg__badge {
  margin: 0 auto;
  padding: 0.25rem 0.75rem;
  border-radius: 62.5rem;
  background: #E6E8FB;
  color: #444EB6;
  text-align: center;
  font-family: 'PretendardSemiBold';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

.pkg__name {
  font-family: var(--font-head);
  font-size: clamp(26px, 5vw, 36px);
  color: var(--indigo);
}

/* 상품명: 텍스트 대신 이미지 (두 카드의 글자 높이를 맞추기 위해 height 기준) */
.pkg__name--img {
  line-height: 0;
}

.pkg__name--img img {
  margin: 0.5rem auto;
  height: 2.6rem;
  width: auto;
  max-width: 100%;
}

.pkg__desc {
  margin: 0;
  color: var(--ink-soft);
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* 정가: 처음엔 빗금 없이 보이다가, 섹션 진입 시 빗금이 왼쪽→오른쪽으로 그어진다.
   text-decoration은 애니메이션이 안 되므로 span 위에 ::after 선을 덧그려 scaleX로 연출 */
.pkg__old {
  margin: 0;
  /* font-size: 2rem !important; */
  color: var(--ink-soft);
  font-family: 'PretendardRegular';
  font-size: 2rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

.pkg__old span {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.pkg__old span::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 50%;
  height: 0.125rem;
  background: var(--ink-soft);
  transform: scaleX(0);
  transform-origin: left center;
}

/* 할인가(0원): 빗금이 그어진 뒤 조용히 나타남 → 이미지로 대체.
   inline-block 으로 이미지 폭에 맞춰지고, 뒤에 형광펜 하이라이트(::before)를 깐다.
   초기 상태는 softRise 의 시작점(아래 12px + 투명)과 같아야 한다 */
.pkg__now {
  margin: 0 auto;
  position: relative;
  display: inline-block;
  max-width: 10rem;
  line-height: 0;
  opacity: 0;
  transform: translateY(12px);
}

.pkg__now--img img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 5.625rem;
  margin: 0 auto;
}

/* 형광펜 하이라이트 바 (0원 뒤, #FFED9E) — 왼쪽에서 그어지듯 채워짐 */
.pkg__now::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: -10%;
  height: 120%;
  z-index: 0;
  background: #FFED9E;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
}

/* 스크롤로 카드가 나타나면(.in) 순차 재생:
     .55s  ① 정가에 빗금 긋기        strikeDraw  → 1.05s 종료
     1.05s ② 0원 조용히 등장          softRise
     1.27s ③ 형광펜 그어짐            nowHighlight
     1.64s ④ 0원 강조                 hlJelly     → 2.26s 종료
   혜택2 목표 등급(1등급)과 똑같은 규칙이다 — 강조를 맨 뒤로 미뤄서 피크가
   "완성된 조합(0원 + 노란색)" 위에 놓이게 한다. 팝을 앞에 두면 노란색이 없는
   상태에서 가장 큰 움직임이 일어나 봉우리가 둘로 갈리고 에너지가 식는다. */
@media (prefers-reduced-motion: no-preference) {
  .pkg.in .pkg__old span::after {
    animation: strikeDraw .5s cubic-bezier(.65, 0, .35, 1) calc(var(--pkg, 0s) + .55s) forwards;
  }

  /* softRise 와 hlJelly 가 둘 다 transform 을 건드리지만, hlJelly 가 목록상 뒤라
     활성 구간에서 우선하고 fill 이 forwards 라 지연 구간에는 관여하지 않는다
     (both 로 두면 backwards fill 이 softRise 의 시작 상태를 덮어써 처음부터 보인다) */
  .pkg.in .pkg__now {
    animation:
      softRise .32s ease-out calc(var(--pkg, 0s) + 1.05s) both,
      hlJelly .62s linear calc(var(--pkg, 0s) + 1.64s) forwards;
  }

  .pkg.in .pkg__now::before {
    /* 0원이 자리잡는 즈음(1.05s + 0.32s)에 맞춰 그어지고 그대로 유지.
       ::before 는 .pkg__now 의 자식이라 뒤이은 hlJelly 스케일에 함께 실린다 */
    animation: nowHighlight .45s cubic-bezier(.65, 0, .35, 1) calc(var(--pkg, 0s) + 1.27s) forwards;
  }
}

/* 형광펜: 왼쪽에서 오른쪽으로 한 번 그어진 뒤 최종 상태 유지(forwards).
   섹션을 벗어났다 다시 들어오면 .in 이 재부여되며 처음부터 한 번 더 재생된다 */
@keyframes nowHighlight {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes strikeDraw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* 모션 최소화 설정: 애니메이션 없이 최종 상태(빗금 O, 0원 노출)로 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
  .pkg__old span::after {
    transform: scaleX(1);
  }

  .pkg__now {
    opacity: 1;
    transform: none;
  }

  /* 형광펜 하이라이트는 반복 대신 정적으로 표시 */
  .pkg__now::before {
    transform: scaleX(1);
    opacity: 1;
  }

  /* 모션 최소화: 혜택1 진입 연출 요소들도 애니메이션 없이 즉시 최종 상태로.
     (.tag--lg / .ben__title--img img 는 숨김 상태 자체가 no-preference 안에만 있어 별도 처리 불필요) */
  .ben--1 .pkg__badge,
  .ben--1 .pkg__name,
  .ben--1 .pkg__desc,
  .ben--1 .pkg__old {
    opacity: 1;
    transform: none;
  }

  /* 혜택3 npay 카드: 회전/광택/도장 없이 즉시 노출 */
  .npay__card,
  .npay__count {
    opacity: 1;
    transform: none;
  }
}

/* 혜택2 grades */
.grade-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 62.5rem;
  margin: 0 auto;
}

.grade {
  background: #fff;
  color: var(--indigo-deep);
  border-radius: var(--radius);
  padding: 1.5rem;
  /* .grade__flow 는 등장 연출 때 translateX 로 오른쪽으로 밀려 있다(--flow-shift).
     카드가 잘라주지 않으면 그 폭이 그대로 문서 폭에 더해져 body 가 가로로 넘친다.
     밀려 나간 부분은 그 시점에 투명한 목표 그룹뿐이라 잘려도 보이는 변화가 없고,
     둥근 모서리 카드라 클리핑이 오히려 자연스럽다 */
  overflow: hidden;
}

.grade__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.grade__top img {
  width: 100%;
  max-width: 3.75rem;
  object-fit: contain;
}

.bubble {
  position: relative;
  background: #eef0ff;
  color: var(--indigo);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 14px;
}

.bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right-color: #eef0ff;
  border-left: 0;
}

.grade__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem
}

.grade__flow .arrow {
  color: var(--indigo);
  font-size: 20px;
}

.g {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.25rem;
}

.g em {
  margin-bottom: 0.35rem;
  font-style: normal;
}

.g b {
  font-family: var(--font-head);
  font-size: clamp(24px, 4.6vw, 32px);
}

/* 노란 하이라이트 — 평면 배경 대신 왼쪽에서 그어질 수 있게 그라디언트로 깐다.
   기본값은 "칠해진 상태"라 애니메이션이 없는 환경(모션 최소화)에서도 그대로 보인다 */
.g--goal b {
  display: inline-block;
  padding: 5px 5px;
  background-image: linear-gradient(var(--yellow-soft), var(--yellow-soft));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
}

/* 혜택2 등급: 텍스트 대신 이미지 */
.g__img {
  line-height: 0;
}

.ben--2 .g b img {
  display: block;
  width: 100%;
  max-width: 8.75rem;
}

/* 혜택2 말풍선: CSS 도형 대신 이미지(꼬리 포함) */
.ben--2 .bubble--img {
  background: none;
  padding: 0;
  border-radius: 0;
}

.ben--2 .bubble--img::before {
  display: none;
}

.ben--2 .bubble--img img {
  display: block;
  width: 100%;
  max-width: 10.75rem;
}

/* =========================================================
   혜택2 등장 연출
   두 카드는 "같은 것의 두 사례"(4등급→1등급 / 3등급→1등급)라 순서가 있는 이야기가
   아니다. 그래서 카드 레벨 밀기(오른쪽 카드가 왼쪽을 밀어냄)와 제목 밀어올리기는
   걷어냈다 — 없는 위계를 암시하면서 2.7초를 쓰고 있었다.
   대신 두 장이 거의 동시에 들어오고, 각자 안에서 "성적이 이동한다"는 밀기(.grade__flow)만
   남긴다. 그게 혜택2 에서 유일하게 의미를 담은 움직임이다.

   --ben  : 제목보다 카드가 얼마나 뒤에 들어오는지. 카드 전체의 기준점.
            0 이면 제목과 한꺼번에 쏟아지고, 크면 기다리게 된다.
   --card : 카드별 시작 오프셋. 카드 내부의 모든 지연이 여기에 상대적이라
            카드 하나를 통째로 옮길 때 손댈 곳이 한 군데다.
   ========================================================= */
.ben--2 {
  --ben: .35s;
}

.ben--2 .grade {
  --card: var(--ben);
}

.ben--2 .grade:nth-of-type(2) {
  --card: calc(var(--ben) + var(--card-stagger, .16s));
}

.ben--2 .grade[data-reveal="up"] {
  transform: translateY(28px) scale(.99);
}

.ben--2 .grade[data-reveal="up"].in {
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {

  /* 카드 자체의 등장을 트랜지션 대신 애니메이션으로 돌린 이유:
     지연을 --card 로 잡아야 카드별 오프셋을 CSS 에서 제어할 수 있다
     (트랜지션 지연은 JS 가 inline 으로 덮어써서 CSS 에서 손댈 수 없다) */
  .ben--2 .grade.in {
    animation: softRise .6s ease-out var(--card) both;
  }

  /* ① 캐릭터: 아래에서 떠오르며 살짝 오버슈트 */
  .ben--2 .grade__top>img {
    opacity: 0;
    transform: translateY(16px) scale(.88);
  }

  .ben--2 .grade.in .grade__top>img {
    animation: b2CharRise .6s cubic-bezier(.2, .7, .3, 1.3) calc(var(--card) + .18s) both;
  }

  /* ② 말풍선: 캐릭터(왼쪽)가 말하듯 왼쪽에서 "뽀용" 한 번 튀어나온 뒤(+.5~+1.05s),
     그 자리에서 아주 느리게 둥실둥실 떠다닌다.
     transform-origin 이 왼쪽(꼬리 쪽)이라 살짝 기울면 캐릭터에 매달린 것처럼 읽힌다.
     transform 을 두 애니메이션이 같이 건드리지만, 목록상 뒤에 있는 float 이
     활성 구간에서 우선하고 pop 의 종료 상태와 float 의 0% 가 동일(=제자리)해서
     이어지는 지점이 보이지 않는다. */
  .ben--2 .grade .bubble--img {
    opacity: 0;
    transform-origin: left center;
  }

  .ben--2 .grade.in .bubble--img {
    animation:
      b2BubblePop .55s cubic-bezier(.2, .7, .3, 1.25) calc(var(--card) + .5s) both,
      b2BubbleFloat var(--bubble-dur, 5s) ease-in-out calc(var(--card) + 1.05s) infinite;
  }

  /* 두 말풍선이 한 몸처럼 같이 흔들리지 않도록 주기를 어긋나게 둔다 */
  .ben--2 .grade:nth-of-type(2) .bubble--img {
    --bubble-dur: 6.2s;
  }
}

@keyframes b2CharRise {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(.88);
  }

  60% {
    opacity: 1;
  }

  76% {
    transform: translateY(-4px) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 등장 1회 — 왼쪽(캐릭터 쪽)에서 가로로 부드럽게 뽀용 튀어나온다 */
@keyframes b2BubblePop {
  0% {
    opacity: 0;
    transform: translateX(-14px) scale(.6);
  }

  62% {
    opacity: 1;
    transform: translateX(2px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* 등장 후 상시 — 둥실둥실. 진폭을 작게(4px / 0.7deg) 두고 주기를 5초 이상으로
   길게 늘여야 "떠 있다"로 읽힌다. 빠르거나 크면 곧바로 산만해진다.
   되돌아오는 지점(66%)을 절반이 아니라 살짝 어긋나게 둬서 왕복 운동처럼
   기계적으로 보이지 않게 한다 */
@keyframes b2BubbleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-4px) rotate(-.7deg);
  }

  66% {
    transform: translateY(-1px) rotate(.5deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* =========================================================
   혜택2 성적 흐름(.grade__flow) 순차 등장
   "6모 4등급" 이 먼저 혼자 가운데 서 있다가, 화살표가 오른쪽으로 자라며 그걸
   왼쪽으로 밀어내고, 밀려난 자리에 목표(27수능 1등급)가 강조되며 들어온다.
   → 성적이 "이동했다"는 의미를 레이아웃 움직임 자체로 말한다.

     .55s 왼쪽 배지(6모)      softRise
     .63s 왼쪽 등급 이미지     softRise      ← 여기까지는 가운데
     .79s 밀림 + 화살표        flowPush / arrowDraw  (동시에, 같은 길이)
     1.13s 오른쪽 배지(27수능)  softRise
     1.17s 목표 등급 이미지     softRise      (조용히 등장 — 강조는 맨 뒤로 미룬다)
     1.41s 노란 하이라이트      hlSweep       (히어로 형광펜과 같은 스윕)
     1.63s 목표 등급 강조       hlJelly       (히어로 형광펜 뒤의 통통과 같은 팝) → 2.25s 종료

   1단계에서 .g 를 가운데로 보이게 하려면 오른쪽 그룹 폭의 절반만큼 흐름을 미리
   오른쪽으로 밀어둬야 하고, 그 값은 CSS 로 알 수 없어 main.js 가 --flow-shift 로
   넘겨준다. JS 가 없거나 측정 전이면 0 → 밀림 없이 순차 등장만 된다(안전한 기본값).
   새 키프레임은 flowPush / arrowDraw 둘뿐 — 나머지는 이미 있는 규칙을 재사용한다.

   위 시점은 모두 카드 오프셋(--card)에 상대적이다. 두 카드가 .18s 차이로 거의 같이
   재생되므로, 혜택2 전체는 --ben(.35s) + .18s + 2.25s ≈ 2.8s 에 끝난다.
   ========================================================= */
.ben--2 .grade__flow {
  --flow: calc(var(--card, 0s) + .55s);
}

@media (prefers-reduced-motion: no-preference) {

  /* 오른쪽 그룹은 자리는 차지한 채 안 보이는 상태로 두고(레이아웃 확정 = 측정 가능),
     흐름 전체를 오른쪽으로 밀어 왼쪽 .g 가 가운데 있는 것처럼 보이게 한다 */
  .ben--2 .grade__flow {
    transform: translateX(var(--flow-shift, 0px));
  }

  .ben--2 .grade__flow .pkg__badge,
  .ben--2 .grade__flow .g__img {
    opacity: 0;
  }

  .ben--2 .grade__flow>svg {
    clip-path: inset(0 100% 0 0);
  }

  /* 하이라이트는 등급 이미지가 자리잡은 뒤에 그어지므로 처음엔 비워둔다 */
  .ben--2 .g--goal .g__img {
    background-size: 0% 100%;
  }

  .ben--2 .grade.in .g:first-of-type .pkg__badge {
    animation: softRise .32s ease-out var(--flow) both;
  }

  .ben--2 .grade.in .g:first-of-type .g__img {
    animation: softRise .36s ease-out calc(var(--flow) + .08s) both;
  }

  /* 밀어내기 — 화살표가 자라는 것과 정확히 같은 구간/길이라야
     "화살표가 밀었다"로 읽힌다. 미는 동작이라 가속·감속이 있는 이징을 쓴다 */
  .ben--2 .grade.in .grade__flow {
    animation: flowPush .4s cubic-bezier(.6, 0, .3, 1) calc(var(--flow) + .24s) both;
  }

  .ben--2 .grade.in .grade__flow>svg {
    animation: arrowDraw .4s cubic-bezier(.6, 0, .3, 1) calc(var(--flow) + .24s) both;
  }

  .ben--2 .grade.in .g--goal .pkg__badge {
    animation: softRise .32s ease-out calc(var(--flow) + .58s) both;
  }

  /* 목표 등급 — 조용히 등장 → 형광펜 → 마지막에 톡.
     팝을 맨 앞에 두면 노란색이 없는 상태에서 가장 큰 움직임이 일어나고 하이라이트가
     뒤따라오면서 봉우리가 둘로 갈린다. 순서를 뒤집으면 피크가 하나이고 그게 완성된
     조합(등급 + 노란색) 위에 놓인다. 노란 배경이 채워진 상태에서 커지므로 움직이는
     시각적 질량이 커서, 같은 1.1배로도 강조가 더 세게 읽힌다.
     마무리 팝은 히어로 요약카드의 형광펜 뒤에 붙는 것과 같은 hlJelly 를 그대로 쓴다.

     한 요소에 세 애니메이션이지만 충돌하지 않는다:
       · softRise  transform + opacity
       · hlSweep   background-size (겹치는 속성 없음)
       · hlJelly   transform — softRise 보다 목록상 뒤라 활성 구간에서 우선하고,
                   fill 을 forwards 로 둬서 지연 구간에는 관여하지 않는다
                   (both 로 두면 backwards fill 이 softRise 의 시작 상태를 덮어쓴다) */
  .ben--2 .grade.in .g--goal .g__img {
    animation:
      softRise .32s ease-out calc(var(--flow) + .62s) both,
      hlSweep .3s linear calc(var(--flow) + .86s) forwards,
      hlJelly .62s linear calc(var(--flow) + 1.08s) forwards;
  }
}

/* 오른쪽으로 밀어뒀던 흐름이 제자리로 → 왼쪽 .g 가 왼쪽으로 밀려난다 */
@keyframes flowPush {
  from {
    transform: translateX(var(--flow-shift, 0px));
  }

  to {
    transform: translateX(0);
  }
}

/* 화살표: 왼쪽 끝에서 오른쪽으로 잘려나간 창이 열리며 자란다 */
@keyframes arrowDraw {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

/* 혜택3 npay */
.npay {
  /* 카드 폭을 한 곳에서 정하고, 뱃지·원근·링 두께가 전부 이 값에 비례하게 한다.
     계수는 PC 기준(360px)에서 기존 고정값과 정확히 같아지도록 잡았다.

     ★ 카드 크기를 바꿀 때는 반드시 이 변수만 바꿔야 한다. .npay__card 에 max-width 를
     걸어 카드만 줄이면 래퍼(.npay)는 그대로 남아, 래퍼 기준으로 배치되는
     뱃지(top/left)와 광택(inset:0)이 카드와 어긋난다 — 뱃지가 카드에서 떨어져 보이고
     광택 띠가 카드 밖 배경까지 새어 나간다. */
  --npay-w: min(22.5rem, 88vw);
  /* 원근도 카드 크기에 비례해야 3D 회전의 깊이감이 유지된다.
     1000px 고정이면 카드가 작아질수록 회전이 납작해 보인다 (360 × 2.78 ≈ 1000) */
  --npay-persp: calc(var(--npay-w) * 2.78);
  position: relative;
  width: var(--npay-w);
  margin: 3.5rem auto 0 auto;
  /* 광택(::after)의 mix-blend-mode 가 카드 안에서만 합성되도록 경계를 명시한다.
     예전에는 이 요소의 perspective 가 3D 문맥을 만들면서 우연히 그 역할을 했는데,
     원근을 카드 자신의 transform 으로 옮겼으므로 여기서 명시적으로 격리한다.
     (3D 문맥 안에서 blend + 크기 변화가 겹치면 리사이즈 중 합성이 튄다) */
  isolation: isolate;
}

/* 래퍼는 자체 페이드 대신 "트리거" 역할만 하고(.in),
   카드 회전과 광택은 각자의 애니메이션을 재생한다 */
.npay[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.npay__card {
  display: block;
  width: 100%;
  height: auto;
  /* 원본 720x480. 이미지 로드 전에도 .npay 높이가 확정되어야
     inset:0 인 광택과 절대 배치된 뱃지가 첫 프레임부터 제자리에 놓인다 */
  aspect-ratio: 3 / 2;
  /* box-shadow: 0 24px 44px rgba(0, 0, 0, .35); */
  opacity: 0;
}

/* 광택(글레어) 띠 — 카드 위에 깔고, 배경 위치를 옮겨 연출하므로
   카드 영역(inset:0) 밖으로는 절대 새어 나가지 않는다.
   45deg 그라디언트라 띠는 카드를 왼쪽 아래 → 오른쪽 위로 가로지른다 */
.npay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  border-radius: calc(var(--npay-w) * .0333);
  /* 12px @360 */
  background: linear-gradient(45deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, .3) 46%,
      rgba(255, 255, 255, .85) 50%,
      rgba(255, 255, 255, .3) 54%,
      rgba(255, 255, 255, 0) 62%);
  background-repeat: no-repeat;
  background-size: 250% 250%;
  background-position: 100% 0%;
  mix-blend-mode: screen;
}

/* 크기·위치·글자·테두리 전부 카드 폭(--npay-w) 비례.
   괄호 안은 PC(360px) 환산값 = 이전 고정값과 동일하다.
   비례로 묶지 않으면 카드만 줄고 뱃지는 그대로 남아 카드를 덮어버리고,
   -2rem 오프셋이 좁은 화면에서 화면 왼쪽 밖으로 나가 잘린다 */
.npay__count {
  z-index: 2;
  position: absolute;
  top: calc(var(--npay-w) * -.0889);
  /* -32px */
  left: calc(var(--npay-w) * -.0889);
  /* -32px */
  width: calc(var(--npay-w) * .1944);
  /* 70px */
  height: calc(var(--npay-w) * .1944);
  /* 70px */
  font-size: calc(var(--npay-w) * .0533);
  /* 19.2px */
  border: calc(var(--npay-w) * .00667) solid #FFF;
  /* 2.4px */
  background: var(--red);
  color: #FFF;
  text-align: center;
  font-family: 'PretendardBold';
  line-height: 120%;
  /* em 이라 font-size 와 함께 줄어든다 (기존 -.048rem = -.04em) */
  letter-spacing: -0.04em;
  border-radius: 750rem;
  display: grid;
  place-items: center;
}

/* 도장 충격파 링 — 뱃지가 "쾅" 내려앉는 순간 한 번 퍼진다.
   두께도 비례해야 작은 뱃지에서 링만 두껍게 남지 않는다 */
.npay__count::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  border: calc(var(--npay-w) * .00833) solid #fff;
  /* 3px @360 */
  opacity: 0;
  pointer-events: none;
}

/* 스크롤로 카드가 나타나면(.in): ① 3D 카드처럼 빙글빙글 돌며 등장
   → ② 회전이 멎을 즈음 광택이 왼쪽 아래에서 오른쪽 위로 한 번만 스쳐 지난다 */
@media (prefers-reduced-motion: no-preference) {
  .npay.in .npay__card {
    animation: npayCardSpin 1.15s cubic-bezier(.18, .72, .22, 1) both;
  }

  .npay.in::after {
    animation: npayCardShine .85s cubic-bezier(.45, 0, .35, 1) 1s 1;
  }

  /* ③ 광택이 다 지나간 뒤(1s 지연 + .85s = 1.85s) 도장을 쾅 찍듯 등장.
     히어로 요약카드 도장과 같은 stampSlam/stampWave 를 공유한다 */
  .npay__count {
    opacity: 0;
  }

  .npay.in .npay__count {
    animation: stampSlam .5s cubic-bezier(.2, .85, .3, 1) 1.85s both;
  }

  .npay.in .npay__count::after {
    animation: stampWave .5s ease-out 1.85s 1;
  }
}

/* 원근을 부모(.npay)의 perspective 속성이 아니라 카드 자신의 transform 안에서 준다.
   부모에 perspective 를 걸면 .npay 가 3D 렌더링 문맥이 되어, 그 안에 있는 광택의
   mix-blend-mode 합성이 카드 크기가 변하는 동안 함께 재계산되며 튄다.
   transform: perspective() 는 이 요소에만 적용되므로 광택과 서로 간섭하지 않는다. */
@keyframes npayCardSpin {
  0% {
    opacity: 0;
    transform: perspective(var(--npay-persp, 1000px)) rotateY(-720deg) rotateX(16deg) scale(.62);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: perspective(var(--npay-persp, 1000px)) rotateY(0) rotateX(0) scale(1);
  }
}

/* 띠가 카드 밖(왼쪽 아래)에서 시작해 카드 밖(오른쪽 위)으로 빠져나간다.
   fill-mode 없이 1회만 재생 → 끝나면 다시 opacity:0 으로 사라짐 */
@keyframes npayCardShine {
  0% {
    opacity: 0;
    background-position: 100% 0%;
  }

  12%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    background-position: 0% 100%;
  }
}

.infolist--dark {
  margin-top: 52px;
}

.infolist--dark .tiny {
  display: block;
  color: #C9CCF0;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* 추가혜택 */
.add-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.addcard__group {
  display: flex;
  flex-direction: column;
}

.addcard {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fff;
  color: var(--indigo-deep);
  border-radius: var(--radius);
  width: 100%;
  max-width: 30.5rem;
  height: 27.75rem;
  align-items: center;
}

.addcard .addcard--1-character {
  margin: 0 auto;
  width: 15.46125rem;
  height: 18rem;
  flex-shrink: 0;
  aspect-ratio: 67 / 78;
}

.addcard .addcard--2-character {
  display: flex;
  width: 16.75rem;
  height: 18.125rem;
  padding: 3.375rem 2.5625rem 0 2.5625rem;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
}

.addcard .addcard__title img {
  width: 100%;
  max-width: 22.75rem;
}

.addcard h3 {
  font-family: var(--font-head);
  font-size: clamp(20px, 3.6vw, 26px);
  color: var(--indigo);
}

/* 카드 제목: 텍스트 대신 이미지 배너.
   overflow:hidden 은 제목 이미지가 창 밖에서 밀려 올라오게 하는 마스크 역할 —
   line-height:0 이라 높이가 이미지와 딱 맞고, .ben__title--img 와 같은 구조다 */
.addcard__title {
  line-height: 0;
  overflow: hidden;
}

.addcard__title img {
  width: auto;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
}

.addcard__link:link,
.addcard__link:visited {
  margin: 0.5rem auto 0 auto;
  display: inline-flex;
  padding: 0.3125rem 0.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid var(--ink-soft);
  background: #E6E8FB;
  text-align: center;
  font-family: 'PretendardBold';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
  color: var(--ink-soft);
  transition:
    background .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease),
    translate .2s var(--ease),
    box-shadow .25s var(--ease);
}

/* 화살표는 링크가 이동한다는 뜻이므로 hover 에서 앞(오른쪽)으로 나아간다
   (.upload 는 '올린다' 는 뜻이라 아이콘이 위로 간다) */
.addcard__link-arrow {
  transition: transform .25s var(--ease);
}

/* 터치 기기에서는 tap 후 hover 상태가 남으므로 마우스 환경에만 */
@media (hover: hover) and (pointer: fine) {

  /* 리프트에 transform 이 아니라 translate 프로퍼티를 쓰는 이유:
     이 링크는 등장 연출로 softRise 애니메이션(both)이 걸려 있어 transform 의 최종값
     (none)이 hover 선언을 덮어쓴다. translate 는 별개 프로퍼티라 함께 적용된다. */
  .addcard__link:hover {
    background: #D6DAFF;
    border-color: var(--indigo);
    color: var(--indigo);
    translate: 0 -2px;
    box-shadow: 0 0.375rem 0.875rem -0.25rem rgba(68, 78, 182, .35);
  }

  .addcard__link:hover .addcard__link-arrow {
    transform: translateX(3px);
  }

  /* 누르는 순간엔 들린 만큼 내려앉고 그림자가 얕아진다 */
  .addcard__link:active {
    translate: 0 0;
    box-shadow: 0 0.125rem 0.375rem -0.1875rem rgba(68, 78, 182, .4);
  }

  .addcard__link:active .addcard__link-arrow {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .addcard__link:hover {
    translate: 0 0;
    box-shadow: none;
  }

  .addcard__link:hover .addcard__link-arrow {
    transform: none;
  }
}

.addcard__text {
  margin: 0.5rem 0 0 0;
  color: #9CA0C9;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* =========================================================
   추가혜택(.ben--add) 카드 진입 연출
   카드가 떠오르고 → 캐릭터 → 제목 → 링크/주석 순으로 이어진다.
   새 키프레임은 없다. 요소 성격에 맞는 기존 규칙을 그대로 가져다 쓴다:
     캐릭터  b2CharRise (혜택2 캐릭터와 같은 등장)
     제목    maskRise   (히어로 타이틀 / 혜택 제목과 같은 마스크 라이즈)
     그 외   softRise
   --add : 카드별 오프셋. 두 장이 같은 프레임에 같은 동작을 하면 기계적으로 보인다.
   ========================================================= */
.ben--add .addcard {
  --add: 0s;
}

.ben--add .addcard:nth-of-type(2) {
  --add: var(--card-stagger, .16s);
}

@media (prefers-reduced-motion: no-preference) {

  /* .in 이 붙기 전까지 숨김. 카드가 화면에 살짝 걸친 상태에서 내용이 먼저 보였다가
     다시 움직이는 깜빡임을 막는다 (제목 이미지는 마스크가 가려주므로 위치만 내려둔다) */
  .ben--add .addcard--1-character,
  .ben--add .addcard--2-character,
  .ben--add .addcard__link,
  .ben--add .addcard__text {
    opacity: 0;
  }

  .ben--add .addcard__title img {
    transform: translateY(110%);
  }

  /* 카드 등장을 트랜지션 대신 애니메이션으로 돌려서 --add 로 카드별 오프셋을 잡는다
     (트랜지션 지연은 JS 가 inline 으로 덮어써서 CSS 에서 제어할 수 없다) */
  .ben--add .addcard.in {
    animation: softRise .55s ease-out var(--add, 0s) both;
  }

  .ben--add .addcard.in .addcard--1-character,
  .ben--add .addcard.in .addcard--2-character {
    animation: b2CharRise .6s cubic-bezier(.2, .7, .3, 1.3) calc(var(--add) + .15s) both;
  }

  .ben--add .addcard.in .addcard__title img {
    animation: maskRise .55s cubic-bezier(.22, 1, .36, 1) calc(var(--add) + .3s) both;
  }

  .ben--add .addcard.in .addcard__link,
  .ben--add .addcard.in .addcard__text {
    animation: softRise .35s ease-out calc(var(--add) + .45s) both;
  }
}

/* =========================================================
   VOICES / marquee (03)
   ========================================================= */
.voices {
  background: var(--ink-soft);
  padding: 7.5rem 0;
  overflow: hidden;
}

.voices__title {
  text-align: center;
  margin: 0 auto 3.75rem;
}

.voices__title img {
  display: block;
  width: 100%;
  max-width: 56rem;
  height: auto;
  margin: 0 auto;
}

.marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 좌우 페이드. 예전에는 .marquee에 mask-image로 처리했으나, mask는 합성 레이어
   전체를 하나의 render surface로 묶는다. 트랙 폭이 8000px대라 태블릿급 GPU의
   max texture size를 넘겨 줄이 통째로 안 그려지는 일이 있었다.
   .voices 배경색(--ink-soft)과 같은 그라디언트 오버레이로 대체 */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink-soft), rgba(68, 78, 182, 0));
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink-soft), rgba(68, 78, 182, 0));
}

.marquee__row {
  position: relative;
  /* 각 줄에서 클리핑해 트랙 합성 레이어 크기를 행 박스로 제한한다.
     (chip hover 연출이 없어졌으므로 세로로 넘칠 요소도 없음) */
  overflow: hidden;
}

/* 트랙을 한 벌씩 두 개로 나눠 서로 이어 달리게 한다.
   예전에는 chip 을 2배 복제한 트랙 하나를 -50% 이동시켰는데, 그러면 합성 레이어
   폭이 6,400~6,700px 이 되어 max texture size 가 4096 인 태블릿 GPU 를 넘긴다.
   (문구가 가장 긴 data-dir="left" 줄이 6,677px 로 제일 먼저 걸렸다)
   두 벌로 쪼개면 레이어 한 장이 약 3,300px 로 절반이 되고 화면 결과는 동일하다.
   will-change 는 제거 — ActiveTransformAnimation 으로 어차피 합성되고,
   강제 승격은 레이어가 과대할 때 폴백 여지를 없앤다. */
.marquee__track {
  display: flex;
  width: max-content;
  gap: 14px;
  white-space: nowrap;
  animation: marquee-a 42s linear infinite;
}

.marquee__track--b {
  position: absolute;
  top: 0;
  left: 0;
  animation-name: marquee-b;
}

.marquee__row[data-dir="right"] .marquee__track {
  animation-direction: reverse;
  animation-duration: 52s;
}

.chip {
  flex: none;
  /* background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600; */
  display: flex;
  padding: 1rem 1.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 6.25rem;
  background: #7C83CC;
  color: #FFF;
  font-family: 'PretendardRegular';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  transition: background .2s, transform .2s;
}

@keyframes marquee-a {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 14px));
  }
}

@keyframes marquee-b {
  from {
    transform: translateX(calc(100% + 14px));
  }

  to {
    transform: translateX(0);
  }
}

.voices__cta {
  text-align: center;
  margin-top: 3.75rem;
}

.voices__lead {
  margin: 0 0 2rem;
}

.voices__lead img {
  display: block;
  width: 100%;
  max-width: 56rem;
  height: auto;
  margin: 0 auto;
}

/* =========================================================
   APPLY FORM (04)
   ========================================================= */
.apply {
  background: #fff;
  color: var(--ink);
  padding: 7.5rem 0;
}

.apply__inner {
  max-width: var(--wrap);
  margin: 0 auto;
}

.apply__title {
  text-align: center;
  margin: 0 0 56px;
}

.apply__title img {
  display: block;
  width: min(453px, 72vw);
  height: auto;
  margin: 0 auto;
}

/* ---- 비로그인 안내 (말풍선 + 캐릭터 + 로그인 버튼) ---- */
.login-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 말풍선. 꼬리는 ::after 의 테두리 삼각형으로 만든다(이미지 불필요).
   캐릭터 머리 위 가운데를 가리키도록 아래쪽 가운데에 둔다. */
.login-gate__bubble {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  background: #E6E8FB;
  color: var(--ink);
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.045rem;
}

.login-gate__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border: 0.5rem solid transparent;
  border-bottom: 0;
  border-top-color: #E6E8FB;
}

.login-gate__character {
  display: block;
  width: 100%;
  max-width: 11.875rem;
  height: auto;
  margin: 0 auto 2.5rem;
}

/* 로그인 버튼 — .btn-submit 과 같은 규격(폭·패딩·라운드·색·테두리·리프트)에
   같은 hover 연출(.btn-fill)까지 공유한다. 두 버튼은 같은 자리에 번갈아 나타나므로
   차이가 있으면 구분이 아니라 오류로 읽힌다. */
.login-gate__btn:link,
.login-gate__btn:visited,
.login-gate__btn {
  position: relative;
  /* filler / 라벨의 z-index 를 이 버튼 안에서만 쌓는다 */
  isolation: isolate;
  /* 올라오는 filler 를 pill 라운드 안쪽으로 자른다 */
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20rem;
  max-width: 100%;
  /* 테두리 3px 만큼 패딩에서 뺀다 — .btn-submit 과 같은 이유(hover 에서 크기가 튀지 않게) */
  padding: calc(1rem - 3px) calc(1.5rem - 3px);
  border: 3px solid transparent;
  border-radius: 6.25rem;
  background: #444EB6;
  color: #FFF;
  text-align: center;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  box-shadow: 0 0 0 0 rgba(68, 78, 182, 0);
  transition:
    transform .2s var(--ease),
    box-shadow .2s var(--ease),
    border-color .2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {

  .login-gate__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem -0.25rem rgba(68, 78, 182, .4);
    border-color: #444EB6;
  }

  .login-gate__btn:active {
    transform: translateY(0);
  }
}

.login-gate__btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem -0.25rem rgba(68, 78, 182, .4);
  border-color: #444EB6;
}

.fld {
  border: 0;
  margin: 0 0 46px;
  padding: 0;
}

.fld:last-child {
  margin: 0;
}

.fld__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #444;
  font-family: 'PretendardBold';
  font-size: 2rem;
  line-height: 130%;
  letter-spacing: -0.08rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

.fld__lead {
  margin-bottom: 1rem;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  color: #444;
}

.fld__lead--mt {
  margin-top: 30px;
}

.fld__lead .tiny {
  color: #444;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 130%;
  letter-spacing: -0.04rem;
}

.req,
.req-txt {
  color: var(--red);
}

.opt-txt {
  color: var(--indigo);
}

/* product select */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product {
  position: relative;
  display: flex;
  padding: 1.5rem;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1 0 0;
  cursor: pointer;
  border-radius: 0.625rem;
  border: 1px solid #C8C8C8;
  background: #FFF;
  transition: border-color .2s, box-shadow .2s;
}

.product input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 상단: 라디오 + 캡션 (가운데 정렬) */
.product__head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product__radio {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid #c3c6da;
  flex: none;
  transition: border-color .2s;
}

.product__radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9375rem;
  height: 0.9375rem;
  border-radius: 50%;
  background: #444;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s var(--ease);
}

.product__cap {
  color: #C8C8C8;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 120%;
  letter-spacing: -0.06rem;
  transition: color .2s;
}

/* 하단: 책 이미지 + 상품명 이미지 */
.product__body {
  display: flex;
  align-items: center;
}

.product__img {
  width: 100%;
  max-width: 5rem;
  flex: none;
  opacity: .45;
  transition: opacity .2s;
}

.product__name {
  display: block;
}

.product__name img {
  display: block;
  width: 100%;
  max-width: 13.25rem;
}

.fld .product:nth-child(2) .product__name img,
.fld .product:nth-child(2).is-selected .product__name .is-on {
  max-width: 16.6875rem;
}

.product__name .is-on {
  display: none;
}

/* 선택 상태 */
.product.is-selected {
  border-radius: 0.625rem;
  border: 1px solid #444;
  background: #FFF;
}

.product.is-selected .product__radio {
  border-color: #444;
}

.product.is-selected .product__radio::after {
  transform: translate(-50%, -50%) scale(1);
}

.product.is-selected .product__cap {
  color: var(--ink);
}

.product.is-selected .product__img {
  opacity: 1;
}

.product.is-selected .product__name .is-off {
  display: none;
}

.product.is-selected .product__name .is-on {
  display: block;
}

/* STEP2: 상품 유형별 구매처 필드 전환 (기본 = 온라인용) */
.grid2 .field.field--academy {
  display: none;
}

#applyForm.mode-academy .field--online {
  display: none;
}

#applyForm.mode-academy .field--academy {
  display: flex;
  grid-column: 1 / -1;
}

/* select 플레이스홀더(예: 구매처 선택)는 회색으로 */
select:has(option[value=""]:checked) {
  color: #C8C8C8;
}

/* generic fields */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 48px;
  align-items: center;
}

/* STEP2: 라벨 왼쪽 + 필드 오른쪽 인라인 배치 (시안과 동일) */
.grid2 .field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.field label {
  width: 10rem;
  color: #444;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  white-space: nowrap;
}

.field>input,
.field>select,
.field>.select-wrap {
  flex: 1;
  width: auto;
  min-width: 0;
}

/* 이름/연락처: 박스 없이 값만 표시 */
.grid2 .field--display input {
  border: 0;
  background: transparent;
  padding: 0;
  color: #444;
  font-family: 'PretendardRegular';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

.grid2 .field--display input:focus {
  box-shadow: none;
}

.field input,
.field select,
.score-row input,
.score-row select,
.qa textarea {
  font-family: 'PretendardRegular';
  font-size: 1.5rem;
  border-radius: 0.25rem;
  border: 1px solid #444;
  background: #FFF;
  padding: 0.75rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder,
.field select::placeholder,
.score-row input::placeholder,
.qa textarea::placeholder {
  color: #C8C8C8;
}

.qa textarea {
  min-height: 3.4375rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(82, 87, 204, .15);
}

/* 입력 잠금(readonly) 표시 — 온라인 구매처로 '이감하이' 를 고르면 구매처 ID 가 잠긴다.
   포커스는 여전히 받을 수 있으므로(readonly 는 focus 가능) 포커스 링도 지워
   "지금은 입력할 수 없다" 가 어긋나 보이지 않게 한다. */
.field input.is-readonly,
.field input.is-readonly:focus {
  border-color: #d9dbe1;
  background: #f4f5f7;
  color: #a9adb8;
  box-shadow: none;
  cursor: not-allowed;
}

.field input.is-readonly::placeholder {
  color: #C8C8C8;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  /* iOS Safari(아이폰/아이패드)는 select 값 텍스트를 UA 기본색(파랑 계열)으로 칠한다.
     color 만 지정하면 -webkit-text-fill-color 가 UA 값으로 남아 그대로 파랗게 보이므로
     currentColor 로 묶어 준다 → 아래 플레이스홀더 회색 규칙도 그대로 따라간다.
     opacity 는 iOS 가 폼 컨트롤을 흐리게 칠하는 것을 막는다 */
  color: #444;
  -webkit-text-fill-color: currentColor;
  opacity: 1;
}

/* 열린 드롭다운의 옵션 텍스트 색상 */
select option {
  color: #444;
}

select option:disabled {
  background: #F2F2F2;
  color: #9A9A9A;
}

/* select 커스텀 화살표 (열림 시 위로 회전) */
.select-wrap {
  position: relative;
  display: block;
}

/* select 은 inline-block 기본값이라 래퍼에 baseline 여백(약 3px)이 생겨
   같은 행의 .inline / .upload 와 박스 상하단이 어긋난다 → block 으로 제거 */
.select-wrap>select {
  width: 100%;
  display: block;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  display: inline-flex;
  pointer-events: none;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center;
  transition: transform .25s var(--ease);
}

.select-wrap.is-open .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* 커스텀 옵션 목록/조작 버튼은 모바일 전용 (데스크톱은 네이티브 select 그대로) */
.select-list,
.select-btn {
  display: none;
}

/* score row */
.score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.score-row__label {
  width: 10.75rem;
  color: #444;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
}

/* 라벨 아래 업로드 형식 안내 ("* PDF만 업로드 가능") */
.score-row__hint {
  display: block;
  margin-top: 0.25rem;
  color: var(--red);
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 130%;
  letter-spacing: -0.0375rem;
}

/* 입력 기간 전 잠금(disabled) — select / 등급·점 박스 / 업로드 버튼을
   테두리·배경·글자·아이콘 모두 같은 회색 톤으로 맞춘다 */
.score-row select:disabled,
.score-row .inline.bg_gray,
.score-row .inline:has(input:disabled),
.score-row .upload.bg_gray,
.score-row .upload:has(input:disabled) {
  border-color: #D9DBE1;
  background: #F4F5F7;
  color: #A9ADB8;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.score-row .inline input:disabled,
.score-row .inline.bg_gray i,
.score-row .inline:has(input:disabled) i {
  background: transparent;
  color: #A9ADB8;
  -webkit-text-fill-color: currentColor;
  opacity: 1;
  cursor: not-allowed;
}

.score-row .inline input:disabled::placeholder {
  color: #C4C7CF;
}

.score-row .select-wrap:has(select:disabled) .select-arrow path {
  fill: #C4C7CF;
}

.score-row .upload.bg_gray svg path,
.score-row .upload:has(input:disabled) svg path {
  stroke: #A9ADB8;
}

.score-row .upload.bg_gray svg,
.score-row .upload:has(input:disabled) svg {
  transform: none !important;
}

/* select 기본 line-height 는 normal 이라 같은 행의 .inline / .upload(130%) 보다
   약 2px 낮게 잡힌다 → 동일한 130% 로 맞춘다 */
.score-row select {
  line-height: 130%;
}

/* 래핑되지 않은 select 대비 폴백 (실제 select 은 .select-wrap 안에 들어감) */
.score-row>select {
  flex: 1 1 10rem;
  max-width: 10rem;
}

/* select 은 래퍼를 100% 채우고, 크기 제한은 래퍼가 담당 → 화살표가 박스 우측에 정확히 위치 */
.score-row .select-wrap {
  flex: 1 1 10rem;
  min-width: 8rem;
  max-width: 10rem;
  color: #444;
  font-family: 'PretendardRegular';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

/* 시험 선택 옵션("26 수능 국어" 등)이 길어 화살표에 붙으므로 이 박스만 폭 확대 */
.score-row .select-wrap:has(#improve-exam) {
  flex-basis: 10.75rem;
  min-width: 10.75rem;
  max-width: 10.75rem;
}

/* 등급/점: 숫자 + 단위를 한 박스 안에 (시안과 동일) */
.inline {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #444;
  background: #FFF;
  transition: border-color .2s, box-shadow .2s;
}

.inline:focus-within {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(82, 87, 204, .15);
}

.inline input {
  padding: 0;
  width: 100%;
  max-width: 2.5rem;
  flex: 0 1 auto;
  border: 0;
  background: transparent;
  color: #444;
  font-family: 'PretendardLight';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  text-align: right;
}

.inline input::placeholder {
  color: #C8C8C8;
}

.score-row .inline:nth-of-type(2) input {
  max-width: 7.5625rem;
}

.inline input:focus {
  box-shadow: none;
}

/* 숫자 입력 스피너 제거 (오른쪽 정렬 숫자가 잘리지 않도록) */
.inline input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.inline input[type="number"]::-webkit-outer-spin-button,
.inline input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.inline i {
  font-style: normal;
  color: #444;
  font-family: 'PretendardRegular';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

.upload {
  display: flex;
  padding: 0.75rem 1rem;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #444EB6;
  font-family: 'PretendardRegular';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  border-radius: 0.25rem;
  border: 1px solid #444EB6;
  background: #E0E3FF;
  transition:
    background .2s var(--ease),
    border-color .2s var(--ease),
    transform .2s var(--ease),
    box-shadow .25s var(--ease);
}

/* 업로드 아이콘은 버튼과 같은 방향으로 한 번 더 올라간다 —
   "파일을 올린다" 는 동작이 hover 에서 미리 읽히게 하는 장치 */
.fld .upload svg {
  transition: transform .25s var(--ease);
}

/* 터치 기기에서는 tap 후 hover 상태가 남으므로 마우스 환경에만 적용 */
@media (hover: hover) and (pointer: fine) {
  .upload:hover {
    background: #D6DAFF;
    border-color: var(--indigo);
    transform: translateY(-2px);
    box-shadow: 0 0.375rem 0.875rem -0.25rem rgba(68, 78, 182, .35);
  }

  .fld .upload:hover svg {
    transform: translateY(-2px);
  }

  /* 누르는 순간엔 들린 만큼 다시 내려앉아 클릭이 손끝에 걸리는 느낌을 준다 */
  .upload:active {
    transform: translateY(0);
    box-shadow: 0 0.125rem 0.375rem -0.1875rem rgba(68, 78, 182, .4);
  }

  .fld .upload:active svg {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .upload:hover {
    transform: none;
    box-shadow: none;
  }

  .fld .upload:hover svg {
    transform: none;
  }
}

/* 업로드 버튼 + 파일칩 세로 셀 */
.upload-cell {
  position: relative;
  flex: none;
  align-self: center;
}

/* 업로드한 성적표 파일 표시 — 버튼 왼쪽 시작점부터 (시안과 동일) */
.filechip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}

.filechip[hidden] {
  display: none;
}

/* 파일칩이 보일 때 아래 콘텐츠와 겹치지 않도록 공간 확보 */
.score-row:has(.filechip:not([hidden])) {
  margin-bottom: 3.5rem;
}

.filechip .thumb {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border: 1px solid #e3e5f0;
  border-radius: 4px;
  background: #f3f4fb;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.filechip .name {
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filechip .rm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #e6e7ef;
  color: #8b90a3;
  font-size: 12px;
  cursor: pointer;
  flex: none;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}

.filechip .rm:hover {
  background: #d9dbe6;
  color: #5a5c78;
}

/* qa */
.qa {
  margin-bottom: 24px;
}

.qa__q {
  margin-bottom: 1rem;
  display: block;
  color: #444;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

.qa__q .cnt {
  color: #8b90a3;
  font-weight: 600;
  margin: 0 4px;
}

.qa textarea {
  resize: vertical;
  padding: 0.75rem 1rem;
  width: 100%;
  border-radius: 0.25rem;
  border: 1px solid #444;
  background: #FFF;
  font-family: 'PretendardRegular';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

/* agree */
.agree {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 체크박스 박스(라벨) — 이 요소만 클릭 시 토글됨 */
.check__box {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  border: 1px solid #444;
  flex: none;
  display: grid;
  place-items: center;
  /* 라인박스 잔여 높이(디센더)로 아이콘이 아래로 밀리는 것 방지 */
  line-height: 0;
  cursor: pointer;
  transition: border-color .2s;
}

.check__box svg {
  width: 0.9375rem;
  height: auto;
  /* 인라인 베이스라인 정렬 제거 → 박스 정중앙 배치 */
  display: block;
  transform: scale(0);
  transition: transform .15s var(--ease);
}

.check input:checked+.check__box svg {
  transform: scale(1);
}

.check p {
  margin: 0;
  color: #444;
  font-size: 1.5rem;
  font-family: 'PretendardRegular';
  line-height: 130%;
  letter-spacing: -0.06rem;
}

/* 동의 문구 안의 안내 링크 — 클릭하면 개인정보 안내 모달이 열린다.
   button 이지만 문장 안에 섞여 있으므로 텍스트처럼 보이도록 초기화한다
   (밑줄·서체는 안쪽 <u> 가 .check u 규칙으로 그대로 받는다) */
.doc-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.doc-link:hover u {
  color: var(--indigo);
}

.doc-link:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 2px;
}

.check u {
  color: #444;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: 0.25rem;
  text-underline-position: from-font;
}

/* ---- 필수값 검증 실패 표시 ---- */
.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.inline.is-invalid,
.upload.is-invalid {
  border-color: #e5484d !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .14) !important;
}

.upload.is-invalid {
  background: #fff2f2;
}

.check__box.is-invalid {
  border-color: #e5484d !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .14);
}

/* ---- 필수값 안내 모달 ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  /* .gpop(1100) 팝업 위에도 뜨도록 */
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 22, 60, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: modalFade .2s ease;
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  width: min(420px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 34px 28px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 22, 60, .35);
  animation: modalPop .24s var(--ease);
}

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fdecec;
  color: #e5484d;
  font-family: 'PretendardSemiBold';
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* 저장 완료(성공) 시 아이콘 — 초록 체크 */
.modal.is-success .modal__icon {
  background: #e7f7ec;
  color: #22c94c;
}

.modal__title {
  font-family: 'PretendardSemiBold';
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
  /* 안내 문구의 줄바꿈(\n)을 그대로 보여준다 */
  white-space: pre-line;
}

/* ---- 개인정보 안내 모달 (긴 문서형) ---- */
/* 본문만 스크롤시키고 제목·확인 버튼은 항상 보이게 → dialog 는 flex 컬럼 */
.modal__dialog--doc {
  width: min(680px, 100%);
  max-height: min(80vh, 45rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  padding: 1.75rem 1.5rem 1.375rem;
  text-align: left;
}

.modal__dialog--doc .modal__title {
  margin: 0;
  text-align: center;
  flex: none;
  font-family: 'PretendardSemiBold';
  font-size: 1.5rem;
}

.doc__body {
  flex: 1 1 auto;
  overflow-y: auto;
  /* 모달 안에서 스크롤이 끝나도 뒤 페이지로 넘어가지 않게 */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.5rem;
  color: var(--ink);
  font-family: 'PretendardRegular';
  font-size: 0.9375rem;
  line-height: 1.65;
}

.doc__body p {
  color: var(--ink);
  font-family: 'PretendardRegular';
  font-size: 0.9375rem;
}

.doc__body:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.doc__h {
  margin: 1.25rem 0 0.375rem;
  color: var(--ink);
  font-family: 'PretendardBold';
  font-size: 1rem;
  line-height: 1.5;
}

.doc__p {
  margin: 0 0 0.5rem;
}

.doc__list {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

/* '-' 를 텍스트로 넣지 않고 마커로 깔아, 줄바꿈 시 둘째 줄이 들여쓰기된다 */
.doc__list li {
  position: relative;
  padding-left: 0.75rem;
  margin-bottom: 0.25rem;
}

.doc__list li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.doc__note {
  margin: 0.75rem 0 0;
  color: var(--ink);
}

.modal__dialog--doc .modal__btn {
  flex: none;
}

.modal__btn {
  width: 100%;
  border: 0;
  background: var(--indigo);
  color: #fff;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
}

.modal__btn:hover {
  background: #464bc0;
}

body.modal-open {
  overflow: hidden;
}

@keyframes modalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.btn-submit {
  position: relative;
  /* filler / 라벨의 z-index 를 이 버튼 안에서만 쌓는다 */
  isolation: isolate;
  /* 올라오는 filler 를 pill 라운드 안쪽으로 자른다 */
  overflow: hidden;
  /* 투명 그림자를 미리 선언해 둔다 — none 에서 시작하면 트랜지션이 보간되지 않는다 */
  box-shadow: 0 0 0 0 rgba(68, 78, 182, 0);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  text-align: center;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  width: 20rem;
  /* 테두리는 기본 상태에서 '투명'으로 미리 자리를 잡아 두고 hover 에서 색만 켠다.
     hover 에서 border 를 새로 만들면 높이(auto)가 6px 늘어 버튼이 튄다.
     자리를 잡은 3px 만큼 패딩에서 빼 현재 크기를 그대로 유지한다. */
  padding: calc(1rem - 3px) calc(1.5rem - 3px);
  border: 3px solid transparent;
  border-radius: 6.25rem;
  background: #444EB6;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

/* =========================================================
   .btn-fill — filler 상승 + 라벨 교체 hover (공용)
   .btn-submit(저장) 과 .login-gate__btn(로그인) 이 같이 쓴다. 두 버튼은 .apply 섹션의
   같은 자리에 번갈아 나타나므로 hover 도 같아야 한다.
   button / a 어디에 붙여도 동작한다. 붙이는 쪽이 지켜야 할 것:
     position: relative + overflow: hidden + isolation: isolate
     자식으로 .btn-fill__label 과 .btn-fill__filler
   (레거시: 주석 상태인 폼의 .btn-submit__label / __filler 마크업도 함께 받아 준다.
    폼을 되살릴 때 클래스명을 btn-fill__* 로 바꾸면 아래 레거시 셀렉터는 지워도 된다.)
   ========================================================= */
.btn-fill__label,
.btn-submit__label {
  flex: none;
  display: block;
  position: relative;
  /* filler 위에 온다 */
  z-index: 2;
}

/* hover 시 아래에서 올라와 버튼을 채우는 덩어리.
   원(border-radius 50%)이라 올라오는 앞면이 곡선이 된다 — 이게 이 연출의 핵심.
   기하: top -50% + height 200% → 자기 높이가 버튼의 2배. transform 의 % 는
   자기 높이 기준이므로 78% = 버튼 높이의 1.56배.
     translateY(78%)  → 버튼 아래로 완전히 빠짐 (기본 상태)
     translateY(0)    → 버튼을 덮음 (타원이 pill 네 구석을 모두 포함)
     translateY(-78%) → 버튼 위로 완전히 빠짐 (hover 해제 시 같은 방향으로 계속 빠져나간다)
   딱 맞는 값은 75%(= 버튼 높이의 1.5배) 지만, 그러면 filler 윗변이 버튼 바닥선과
   0px 로 만난다. 버튼 높이가 63.2px 처럼 소수라 스크롤 위치·확대율에 따라 반올림이
   어긋나면 연한 filler 색이 밑줄처럼 비친다 → 3%(약 3.8px) 여유를 둔다. */
.btn-fill__filler,
.btn-submit__filler {
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  z-index: 1;
  border-radius: 50%;
  /* 폼 섹션의 톤 — .upload 버튼 배경과 같은 연한 인디고.
     노랑(--yellow)은 히어로/CTA 계열 색이라 이 흰 폼 안에서는 튄다.
     .btn-cta--pill 의 hover 채움색과도 같아 두 버튼의 hover 언어가 맞는다. */
  background: #E0E3FF;
  transform: translate3d(0, 78%, 0);
  pointer-events: none;
}

/* hover-in / hover-out 을 JS 클래스로 나누는 이유: hover 해제 시 라벨이
   '반대 방향에서 다시 들어와야' 하는데, 트랜지션으로는 되돌아가는 궤적만 나온다 */
.is-hover-in .btn-fill__label,
.is-hover-in .btn-submit__label {
  animation: fillTextIn .3s forwards;
}

.is-hover-in .btn-fill__filler,
.is-hover-in .btn-submit__filler {
  animation: fillRiseIn .3s forwards;
}

.is-hover-out .btn-fill__label,
.is-hover-out .btn-submit__label {
  animation: fillTextOut .3s forwards;
}

.is-hover-out .btn-fill__filler,
.is-hover-out .btn-submit__filler {
  animation: fillRiseOut .3s forwards;
}

/* 누르는 순간 filler 색이 한 톤 짙어진다 (셀렉트 목록 활성색과 동일) */
.btn-fill:active .btn-fill__filler,
.btn-submit:active .btn-submit__filler {
  background: #D6DAFF;
}

/* 라벨은 위에서 새로 들어오며 흰색 → 인디고로 바뀐다.
   55% 까지 흰색을 유지하는 이유: 그 전에는 filler 의 앞면이 아직 글자 높이를 지나지 않아
   글자가 어두운 버튼 배경(#444EB6) 위에 있다. 색을 일찍 바꾸면 그 구간에서 글자가 사라진다. */
@keyframes fillTextIn {
  0% {
    opacity: 0;
  }

  1% {
    transform: translateY(-100%);
    opacity: 1;
    color: #FFF;
  }

  55% {
    color: #FFF;
  }

  100% {
    transform: translateY(0);
    color: var(--ink-soft);
  }
}

/* 되돌아올 때는 아래에서 들어온다. 같은 이유로, filler 가 아직 글자를 덮고 있는
   45% 까지는 인디고를 유지하고 그 뒤에 흰색으로 넘긴다. */
@keyframes fillTextOut {
  0% {
    opacity: 0;
  }

  1% {
    transform: translateY(100%);
    opacity: 1;
    color: var(--ink-soft);
  }

  45% {
    color: var(--ink-soft);
  }

  100% {
    transform: translateY(0);
    color: #FFF;
  }
}

@keyframes fillRiseIn {
  0% {
    transform: translate3d(0, 78%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fillRiseOut {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, -78%, 0);
  }
}

/* 터치 기기에서는 tap 후 hover 가 남으므로 마우스 환경에만 (키보드 포커스는 별도로 허용) */
@media (hover: hover) and (pointer: fine) {

  /* .btn-cta--pill 과 같은 규격의 리프트. 이 버튼은 흰 .apply 섹션 위에 있어서
     .upload 와 같은 인디고 계열 그림자가 그대로 잘 보인다 */
  .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem -0.25rem rgba(68, 78, 182, .4);
    border-color: #444EB6;
  }

  .btn-submit:active {
    transform: translateY(0);
  }
}

.btn-submit:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem -0.25rem rgba(68, 78, 182, .4);
  border-color: #444EB6;
}

/* 모션 최소화: filler·라벨 애니메이션을 돌리지 않는다
   (JS 에서도 클래스를 붙이지 않지만, 이중으로 막아 둔다) */
@media (prefers-reduced-motion: reduce) {

  .btn-fill__label,
  .btn-fill__filler,
  .btn-submit__label,
  .btn-submit__filler {
    animation: none !important;
  }
}

/* =========================================================
   NOTICE (유의 사항) + sticky CTA
   ========================================================= */
.notice {
  background: #f6f6f6;
  color: #444;
  padding: 7.5rem 0;
}

.notice__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.notice__title {
  color: #444;
  font-family: 'PretendardBold';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

/* 유의사항은 블록 단위로 fade up.
   제네릭 [data-reveal="up"] 의 38px 은 이 정도 길이의 문단 블록에는 과해서
   이동 거리를 줄이고 시간도 짧게 잡는다 (.infolist__row 와 같은 결). */
.notice__block[data-reveal="up"] {
  transform: translateY(20px);
  transition-duration: .45s;
}

.notice__block[data-reveal="up"].in {
  transform: none;
}

.notice__block {
  margin-bottom: 1.5rem;
}

.notice__block:last-child {
  margin-bottom: 0;
}

.notice__head {
  margin-top: 1.5rem;
  color: #444;
  font-family: 'PretendardBold';
  font-size: 1rem;
  line-height: 130%;
  letter-spacing: -0.04rem;
}

.notice__head--accent {
  color: #fe521f;
}

.notice__sub {
  margin: 1.5rem 0 0 0;
  color: #444;
  font-family: 'PretendardBold';
  font-size: 1rem;
  line-height: 130%;
  letter-spacing: -0.04rem;
}

.notice__block .notice__sub.first {
  margin: 0;
}

.notice__text {
  font-size: 14.5px;
  line-height: 1.75;
  color: #4a4a4a;
  margin: 0 0 4px;
}

.notice__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notice__list li {
  color: #444;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 130%;
  letter-spacing: -0.04rem;
}

.notice__list--num li {
  /* padding-left: 1.5em;
  text-indent: -1.5em; */
}

.notice .accent {
  color: #fe521f;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 100;
  background: var(--yellow);
  color: var(--indigo-deep);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  transition: transform .4s var(--ease);
  white-space: nowrap;
}

.sticky-cta b {
  color: var(--red);
}

.sticky-cta.is-visible {
  transform: translate(-50%, 0);
}

.sticky-cta:hover {
  transform: translate(-50%, -3px);
}

.notice-box {
  padding: 0.75rem 1rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.25rem;
  border: 1px solid #FF3B00;
  background: #FFEBE6;
  color: #FF3B00;
  text-align: center;
  font-family: 'PretendardRegular';
  font-size: 1.5rem;
  line-height: 130%;
  letter-spacing: -0.06rem;
  text-align: center;
  word-break: keep-all;
}

/* =========================================================
   REVEAL animations
   ========================================================= */
/* will-change 를 여기 두지 않는다 — 페이지의 [data-reveal] 29개가 영구히
   컴포지터 레이어로 승격돼 모바일 메모리/스크롤에 그대로 부담이 된다.
   opacity/transform 트랜지션은 재생되는 동안 브라우저가 알아서 승격시키므로
   힌트가 없어도 손해가 없다. */
[data-reveal] {
  opacity: 0;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

[data-reveal="up"] {
  transform: translateY(38px);
}

[data-reveal="left"] {
  transform: translateX(-46px);
}

[data-reveal="right"] {
  transform: translateX(46px);
}

[data-reveal="scale"] {
  transform: scale(.9);
}

[data-reveal="zoom"] {
  transform: scale(.4) rotate(-12deg);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---- stamp "쾅!" slam ---- */
/* wrapper stays instantly opaque so the slam isn't muted by a fade;
   [data-reveal] attr selector raises specificity above the generic reveal rule */
.bcards__stamp[data-reveal] {
  opacity: 1;
  transition: none;
}

.bcards__stamp__img {
  display: block;
  width: 100%;
  transform-origin: center 60%;
}

/* impact shockwave ring */
.bcards__stamp::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 3px solid #ff4a3d;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .bcards__stamp__img {
    opacity: 0;
    /* hidden until the stamp lands */
  }

  /* 한 번 쾅 찍고 그대로 남는다(both). 예전엔 3.5s 마다 지웠다 다시 찍었는데,
     반복되는 강조는 강조가 아니라 배경 소음이 되고 저렴해 보인다.
     스크롤로 벗어났다 돌아오면 .in 이 다시 붙으며 처음부터 재생된다. */
  .bcards__stamp.in .bcards__stamp__img {
    animation: stampSlam .5s cubic-bezier(.2, .85, .3, 1) var(--seq-stamp, 0s) both;
  }

  .bcards__stamp.in::after {
    animation: stampWave .5s ease-out var(--seq-stamp, 0s) 1;
  }
}

/* 도장 "쾅" — 위에서 크게 내려꽂혀 눌렸다가 튕기고 제자리.
   히어로 요약카드 도장과 혜택3 .npay__count 가 같이 쓴다 */
@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: scale(2.6);
  }

  36% {
    opacity: 1;
    transform: scale(.82);
    /* 착지 + 눌림 */
  }

  57% {
    transform: scale(1.09);
    /* 반동 */
  }

  79% {
    transform: scale(.97);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 착지 순간 링이 바깥으로 터지며 사라진다 */
@keyframes stampWave {
  0% {
    opacity: 0;
    transform: scale(.7);
  }

  30% {
    opacity: .6;
    transform: scale(.9);
  }

  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

/* idle floats */
.float-y {
  animation: floatY 4.5s ease-in-out infinite;
}

.float-tilt {
  animation: floatTilt 5s ease-in-out infinite;
}

/* 로그인 안내 말풍선 — 상시 둥실둥실.
   .float-y 를 재사용하지 않는 이유: floatY 키프레임은 히어로 캐릭터의 가로 중앙 정렬
   (translateX(-50%))을 품고 있어 그대로 붙이면 말풍선이 왼쪽으로 밀린다.
   캐릭터보다 작은 요소라 진폭은 짧게, 주기는 조금 빠르게 잡았다 */
.login-gate__bubble {
  animation: bubbleFloat 3.4s ease-in-out infinite;
}

@keyframes bubbleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-14px);
  }
}

@keyframes floatTilt {

  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }

  50% {
    transform: rotate(-2deg) translateY(-8px);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:820px) {
  .gnb {
    display: none;
  }

  .site-header__inner {
    padding: 12px 18px;
  }

  .brand span {
    display: none;
  }

  .btn-cta--sm {
    margin-left: auto;
  }
}

/* ---- 태블릿(모바일↔PC 사이): 혜택 카드가 3열로 유지되지만 폭이 좁아
   caption/title이 두 줄로 줄바꿈되고, 스탬프가 좌측에서 잘리는 구간 보정.
   PC(≥1081px)와 모바일(≤640px)은 건드리지 않음. ---- */
@media (min-width:641px) and (max-width:1080px) {

  .hero,
  .benefits,
  .voices,
  .apply,
  .notice {
    padding: 7.5rem 1.5rem;
  }

  .bcards {
    gap: 1rem;
  }

  .bcard {
    padding: 1.5rem 1rem;
  }

  /* 뷰포트 폭에 따라 유연하게 축소해 한 줄 유지 (PC 값 28/40px을 상한으로) */
  .bcard__cap {
    font-size: clamp(13px, 2.4vw, 28px);
    white-space: nowrap;
  }

  .bcard__title {
    white-space: nowrap;
  }

  .bcard__title mark {
    font-size: clamp(16px, 3.6vw, 40px);
    white-space: nowrap;
  }

  /* 카드가 화면 가장자리에 붙어 스탬프가 hero의 overflow:hidden에 잘리므로
     안쪽으로 당겨 첫 카드 좌상단에 걸치도록 */
  .bcards__stamp {
    left: -6px;
    top: -46px;
    width: 92px;
    max-width: 92px;
  }

  /* 원형(약 480px)이 태블릿 화면 폭을 거의 채워, PC용 바깥쪽 배치
     (--x 115~130% / -39%)에서는 요소가 화면 밖으로 나가 잘린다.
     원 좌우 가장자리로 --x를 당겨 641~1080px 전 구간에서 잘리지 않게 하되,
     --w는 충분히 키워 시안처럼 또렷하게 보이도록 조정. 좁은 폭에서는 원의
     가장자리에 살짝 겹쳐 떠 있는 형태가 된다 (세로 --y는 PC와 동일). */
  .deco--envelope {
    --x: -2%;
    --w: 26%;
  }

  .deco--pen {
    --x: 102%;
    --w: 26%;
  }

  .deco--book {
    --x: -2%;
    --w: 26%;
  }

  .deco--note {
    --x: -2%;
    --w: 24%;
  }

  .deco--idea {
    --x: 102%;
    --w: 26%;
  }

  .notice-box {
    font-size: 1.25rem;
  }

  .score-row:has(.filechip:not([hidden])) {
    margin-bottom: 4.25rem;
  }

  .score-row:has(.filechip:not([hidden])):last-child {
    margin-bottom: 2.5rem;
  }
}

@media (max-width:640px) {

  .hero,
  .benefits,
  .voices {
    /* 시안 기준: 상단 여백을 줄이고 좌우 여백을 좁혀 타이틀/카드가 폭을 꽉 채우도록 */
    padding: 3.75rem 1rem;
  }

  .speech[data-reveal].in {
    max-width: 6.25rem;
  }

  /* 캐릭터 원형: 시안에서는 화면 폭의 약 60% 크기 (기존 86vw → 축소) */
  .hero__visual {
    width: min(300px, 62vw);
    margin: 1rem auto 1rem;
  }

  /* 좌우 여백이 좁아진 만큼 타이틀을 살짝 키워 시안처럼 폭을 채움 */
  .hero__title {
    --title-h: min(10.5vw, 92px);
    letter-spacing: -.03em;
  }

  .bcards {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 30px;
  }

  .tag--lg {
    width: 4rem;
    height: auto;
  }

  /* ---- 모바일 전용 타이틀 이미지(_m)의 렌더 크기 ----
     _m 애셋은 데스크톱 애셋과 같은 규칙으로 @2x 로 제작되어 있다.
     (검증: 720px 시안에서 혜택1 타이틀이 정확히 469px = boon1_title_m.png 자연 크기.
      데스크톱도 같은 규칙 — boon1_title.png 1760px ↔ max-width 55rem(880px) = 절반)
     그래서 상한을 각 애셋 자연 크기의 절반으로 잡으면 시안과 같은 크기가 된다.
     좁은 화면에서는 width:100% 가 먼저 걸려 폭에 맞춰 줄어든다.
     이미지 교체 자체는 HTML 의 <picture><source media="(max-width:640px)"> 가 담당하므로
     여기 값은 "얼마나 크게 보이는가" 만 정한다 — 브레이크포인트를 바꾸면 양쪽을 함께 고쳐야 한다 */
  .ben--1 .ben__title--img img {
    max-width: 16rem;
    /* 469px / 2 */
  }

  .ben--2 .ben__title--img img {
    max-width: 15.5rem;
    /* 498px / 2 */
  }

  .ben--3 .ben__title--img img {
    max-width: 14.4rem;
    /* 462px / 2 */
  }

  .ben--add .ben__title--img img {
    max-width: 19.2rem;
    /* 614px / 2 */
  }

  .voices__title img {
    max-width: 18.05rem;
    /* 578px / 2 */
  }

  .voices__lead img {
    max-width: 18.65rem;
    /* 597px / 2 */
  }

  .apply__title img {
    width: min(14.2rem, 72vw);
    /* 454px / 2 */
  }

  .bcards__stamp {
    max-width: 3.75rem;
    top: -28px;
    left: -6px;
  }

  .infolist__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.75rem 0;
  }

  .infolist dt {
    margin-bottom: 0.5rem;
    font-size: 0.625rem;
  }

  .infolist dd {
    font-size: 1.125rem;
  }

  .pkg-grid,
  .grade-grid,
  .add-grid,
  .product-grid,
  .grid2 {
    grid-template-columns: 1fr;
  }

  /* ---- 혜택2 성적 흐름: 모바일 크기 (시안 720px @2x 기준) ----
     시안 실측: 등급 이미지 70px · 간격 11px · 화살표 8px → 흐름 폭 약 180px.
     데스크톱 값(140px / 24px / 12px)을 그대로 두면 흐름이 350px 가 되는데
     카드 내부 가용 폭은 276px(=360 - 좌우 18 - 카드 패딩 24×2) 뿐이라 이미 넘치고,
     여기에 등장 연출의 밀기 transform 까지 더해져 body 가 가로로 넘쳤다 */
  .ben--2 .g b img {
    max-width: 4.375rem;
  }

  .grade__flow {
    gap: 0.6875rem;
  }

  .grade__flow>svg {
    width: 8px;
    height: auto;
  }

  /* 혜택3 npay 카드 크기는 여기서 따로 정하지 않는다 —
     .npay 의 clamp(10rem, 50vw, 22.5rem) 가 이 구간(50vw ≈ 시안의 180px @360)까지
     연속적으로 커버한다. 미디어쿼리로 끊으면 경계에서 뱃지 위치가 튄다 */

  .addcard {
    max-width: 100%;
  }

  .benefits {
    /* 카드가 1열로 쌓이면 각 카드가 스크롤로 따로 들어오므로 좌/우 시간차가 의미 없다
       — 두 번째 카드만 0.16s 늦게 뜨는 지연으로만 남는다. 혜택1·2·추가혜택 공통.
       (.grade__flow 내부 밀기는 가로 배치라 모바일에서도 그대로 유효하다) */
    --card-stagger: 0s;
  }

  .score-row {
    gap: 0.5rem;
  }

  .score-row select {
    /* min-width: 0; */
    flex: 1 1 46%;
  }

  .inline input {
    width: 100%;
  }

  .inline {
    flex: 1 1 40%;
  }

  .upload {
    flex: 1 1 100%;
    justify-content: center;
  }

  .sticky-cta {
    padding: 13px 20px;
    /* width: calc(100% - 32px); */
    justify-content: center;
    text-align: center;
  }

  .hero__sub {
    font-size: 0.875rem;
  }

  .bcard__cap {
    font-size: 1rem;
  }

  .bcard__title mark {
    font-size: 1.375rem;
  }

  .hero .tag {
    max-width: 4rem;
  }

  .bcard {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .infolist .schedule {
    gap: 0.5rem;
  }

  .schedule p {
    margin: 0;
  }

  .tiny {
    margin: 0;
    font-size: 0.75rem;
  }

  .hero__character {
    bottom: -6%;
  }

  /* 모바일 상시 루프 축소.
     데코 5개는 .deco-layer{display:none} 으로 이미 빠지고, 여기서 원 호흡까지 뺀다 —
     300px 로 줄어든 원에서 1.2% 스케일은 사실상 안 보이는데 글로우 레이어 비용만 남는다.
     남는 루프는 #룰렛과 캐릭터 부유 둘뿐. */
  .hero__circle,
  .hero__circle::after {
    animation: none;
  }

  .hero__circle {
    will-change: auto;
    /* 안 움직이는데 레이어만 잡고 있을 이유가 없다 */
  }

  .hero__circle::after {
    opacity: 1;
  }

  @keyframes floatY {

    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }

    50% {
      transform: translateX(-50%) translateY(-8px);
    }
  }

  .pkg {
    padding: 1rem;
    gap: 0.25rem;
  }

  .pkg__badge {
    font-size: 0.625rem;
  }

  .pkg__name--img img {
    margin: 0 auto;
    max-width: 9.9375rem;
    width: 100%;
    height: auto;
  }

  .pkg__desc {
    font-size: 0.625rem;
  }

  .pkg__old,
  .pkg__old span {
    font-size: 1.125rem;
  }

  .pkg__now--img img {
    max-width: 2.8125rem;
  }

  .pkg-grid .pkg:nth-child(2) .pkg__name--img img {
    max-width: 4.375rem;
  }

  .ben__note {
    margin: 0.75rem 0 0 0;
    font-size: 0.625rem;
  }

  .pkg__name--img img {
    margin: 0.1rem auto;
  }

  .ben {
    margin: 3.75rem auto 0 auto;
  }

  .grade {
    padding: 1rem;
  }

  .grade__top img {
    width: 1.875rem;
  }

  .ben--2 .bubble--img img {
    max-width: 5.375rem;
  }

  .grade__top {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  /* 카드 크기는 래퍼 변수 하나로만 정한다 (시안 실측 180px).
     카드(.npay__card)에 max-width 를 걸어 줄이면 래퍼는 그대로 남아서
     뱃지 위치(top/left)와 광택(inset:0)이 카드와 어긋난다.
     이 한 줄이면 뱃지 35px / 오프셋 -16px / 테두리 1.2px / 글자 9.6px /
     원근 500px / 광택 모서리 6px 가 전부 같은 비율로 따라온다 */
  .npay {
    margin: 1.5rem auto 0 auto;
    --npay-w: 11.25rem;
  }

  .ben--3 .ben__title--img img {
    margin-bottom: 0.75rem;
  }

  .infolist--dark .tiny {
    font-size: 0.625rem;
  }

  .infolist--dark {
    margin-top: 1.75rem;
  }

  .ben--add .addcard--1-character {
    width: 7.73063rem;
    height: auto;
  }

  .ben--add .addcard--2-character {
    padding: 0;
    width: 5.8125rem;
    height: auto;
  }

  .addcard {
    height: auto;
  }

  .addcard .addcard__title img {
    max-width: 12.875rem;
  }

  .addcard__text {
    margin: 0.25rem 0 0 0;
    font-size: 0.625rem;
  }

  .chip {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .marquee {
    gap: 0.75rem;
  }

  .voices__title {
    margin: 0 auto 2rem;
  }

  .voices__cta {
    margin-top: 3.5rem;
  }

  .btn-cta--pill,
  .login-gate__btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    max-width: 10rem;
  }

  .voices__lead {
    margin: 0 0 0.75rem;
  }

  /* 개인정보 안내 모달 — 좁은 화면에서 좌우 여백을 줄여 본문 폭을 확보한다 */
  .modal {
    padding: 1rem;
  }

  .modal__dialog--doc {
    max-height: 57vh;
    gap: 0.875rem;
    padding: 1.25rem 1rem 1rem;
    border-radius: 1rem;
  }

  .modal__dialog--doc .modal__title {
    font-size: 0.9375rem;
  }

  .doc__body,
  .doc__body p {
    font-size: 0.8125rem;
    line-height: 1.6;
    padding-right: 0.375rem;
  }

  .doc__h {
    margin: 0.875rem 0 0.25rem;
    font-size: 0.875rem;
  }

  .modal__dialog--doc .modal__btn {
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: 0.625rem;
  }

  .apply {
    padding: 3.75rem 1rem;
  }

  .apply__title {
    margin: 0 0 1.88rem;
  }

  /* 비로그인 안내 — 버튼은 .btn-submit 모바일 규격(10rem / 0.875rem)과 맞춘다 */
  .login-gate__bubble {
    margin-bottom: 1rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: -0.035rem;
  }

  .login-gate__bubble::after {
    border-width: 0.375rem;
    border-bottom: 0;
  }

  .login-gate__character {
    width: min(6rem, 52vw);
    margin-bottom: 1.5rem;
  }

  .login-gate__btn:link {
    width: 10rem;
    padding: calc(0.5rem - 3px) calc(0.75rem - 3px);
    font-size: 0.875rem;
  }

  .fld__title {
    gap: 0.25rem;
    font-size: 1.125rem;
  }

  .fld svg {
    margin: 0.25rem 0 0 0;
    width: 1.25rem;
    height: 1.25rem;
  }

  .fld__title {
    margin-bottom: 0.75rem;
  }

  .product {
    padding: 1rem;
  }

  .product__img {
    max-width: 2.5rem;
  }

  .product__name img {
    max-width: 6.625rem;
  }

  .fld .product:nth-child(2) .product__name img,
  .fld .product:nth-child(2) .product__name img,
  .fld .product:nth-child(2).is-selected .product__name .is-on {
    max-width: 8.375rem;
  }

  .product__radio {
    width: 1rem;
    height: 1rem;
  }

  .product__radio::after {
    width: 0.6375rem;
    height: 0.6375rem;
  }

  .product__cap {
    font-size: 0.875rem;
  }

  .field label {
    font-size: 0.875rem;
    width: 5rem;
  }

  .field input,
  .field select,
  .score-row input,
  .score-row select,
  .qa textarea,
  .grid2 .field--display input {
    font-size: 0.875rem;
  }

  .field input,
  .field select,
  .score-row input,
  .score-row select,
  .qa textarea {
    padding: 0.375rem 0.5rem;
    border-radius: 0.125rem;
  }

  .fld .select-arrow svg {
    width: 0.5rem;
    height: 0.5rem;
  }

  .grid2 {
    gap: 0.75rem;
  }

  .fld {
    border: 0;
    margin: 0 0 1.88rem;
    padding: 0;
  }

  .inline {
    gap: 0.25rem;
    max-width: 5rem;
    height: 2rem;
    border-radius: 0.125rem;
    padding: 0.375rem 0.5rem;
  }

  .inline i {
    font-size: 0.875rem;
  }

  .score-row__label {
    width: 100%;
  }

  .score-row .select-wrap {
    min-width: 6.5rem;
    max-width: 6.5rem;
  }

  .inline.standard-score {
    max-width: 6.5rem;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
  }

  .score-row .inline input,
  .score-row .inline:nth-of-type(2) input {
    padding: 0;
    /* 우측 정렬 input 의 끝 글자 잘림 방지:
       1) 음수 자간(-0.06rem)은 마지막 글자 뒤에도 적용돼 글자가 콘텐츠 박스를 넘어간다 → 자간 해제
       2) 브라우저가 캐럿 자리로 1px 정도를 더 쓰므로 우측 여백을 조금 남긴다 */
    letter-spacing: normal;
    padding-right: 0.125rem;
  }

  .score-row .select-wrap:has(#improve-exam) {
    flex-basis: 6.5rem;
    min-width: 6.5rem;
    max-width: 6.5rem;
  }

  .fld__lead .tiny {
    font-size: 0.625rem;
  }

  .fld__lead {
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
  }

  .upload {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
    gap: 0.25rem;
  }

  .fld .upload svg {
    margin: 0 auto;
    width: 0.75rem;
    height: 0.75rem;
  }

  /* select / .inline / .upload 높이 통일 (세로 패딩 대신 고정 높이로 정렬) */
  .score-row select,
  .score-row .inline,
  .score-row .upload {
    height: 2rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .score-row .inline,
  .score-row .upload {
    align-items: center;
    line-height: 1;
  }

  .score-row .inline input,
  .score-row .inline i {
    line-height: 1;
  }

  /* 네이티브 옵션 팝업 대신 쓰는 커스텀 목록 — select 박스 폭/폰트에 맞춘다.
     select 는 값 표시/전송만 담당하고(클릭·포커스 차단) 조작은 위에 덮은
     투명 버튼(.select-btn)이 받는다 → 네이티브 피커가 뜨지 않는다. */
  .select-wrap>select {
    pointer-events: none;
  }

  .select-btn {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  .select-btn:focus {
    outline: none;
  }

  /* 투명 버튼이 포커스를 받으므로 포커스 링은 아래 select 박스에 그린다 */
  .select-wrap:has(.select-btn:focus-visible)>select {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(82, 87, 204, .15);
  }

  .select-wrap .select-list {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 30;
    display: block;
    margin: 0;
    padding: 0.25rem 0;
    min-width: 100%;
    width: max-content;
    max-width: 60vw;
    max-height: 11rem;
    overflow-y: auto;
    list-style: none;
    border: 1px solid #444;
    border-radius: 0.125rem;
    background: #FFF;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, .12);
    -webkit-overflow-scrolling: touch;
  }

  .select-wrap .select-list[hidden] {
    display: none;
  }

  .select-list__item {
    padding: 0.375rem 0.5rem;
    color: #444;
    font-family: 'PretendardRegular';
    font-size: 0.875rem;
    line-height: 1.4;
    letter-spacing: -0.02rem;
    white-space: nowrap;
    cursor: pointer;
  }

  .select-list__item[aria-selected="true"] {
    background: #E0E3FF;
    color: #444EB6;
  }

  /* 키보드 이동 중인 항목 */
  .select-list__item.is-active {
    background: #F2F3FB;
  }

  .select-list__item.is-active[aria-selected="true"] {
    background: #D6DAFF;
  }

  .select-list__item:active {
    background: #F2F3FB;
  }

  /* (선택) 성적 향상 도전 행: 시안처럼 "시험 선택" 을 한 줄에 단독 배치하고
     아래 줄에 선택과목 / 등급 / 표준점수, 그 아래 업로드 버튼 */
  .score-row:has(#improve-exam) {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: start;
    align-items: center;
  }

  .score-row:has(#improve-exam)>.select-wrap:has(#improve-exam),
  .score-row:has(#improve-exam)>.upload-cell {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .score-row__label {
    font-size: 0.875rem;
  }

  .score-row__hint {
    font-size: 0.75rem;
    letter-spacing: -0.03rem;
  }

  .fld__lead--mt {
    margin-top: 1rem;
  }

  .qa__q {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .qa {
    margin-bottom: 0.75rem;
  }

  .check__box {
    width: 1rem;
    height: 1rem;
    border-radius: 0.16669rem;
  }

  /* 박스가 작아진 만큼 체크 아이콘도 축소 (박스 밖으로 넘치는 문제 방지) */
  .check__box svg {
    width: 0.625rem;
    /* 아이콘이 아래로 치우쳐 보이는 문제 보정: top 값으로 직접 위로 올린다.
       (margin 은 중앙 정렬 컨테이너에서 절반만 반영돼 효과가 약함) */
    position: relative;
    top: -0.425rem;
  }

  .check p,
  .check u {
    font-size: 0.875rem;
  }

  .check {
    gap: 0.25rem;
  }

  .btn-submit {
    font-size: 0.875rem;
    width: 10rem;
    /* 데스크톱과 같은 이유로 테두리 3px 만큼 패딩에서 뺀다 */
    padding: calc(0.5rem - 3px) calc(0.75rem - 3px);
  }

  .notice {
    padding: 3.75rem 1rem;
    font-size: 0.875rem;
  }

  .notice__title {
    font-size: 1rem;
  }

  .notice__head {
    margin-top: 1rem;
    font-size: 0.875rem;
  }

  .notice__list li {
    font-size: 0.875rem;
  }

  .select-arrow {
    top: 45%;
  }

  .score-row:has(.filechip:not([hidden])) {
    margin-bottom: 4rem;
  }

  .score-row:has(.filechip:not([hidden])):last-child {
    margin-bottom: 3rem;
  }

  .addcard__link {
    font-size: 0.625rem;
  }

  .infolist dd,
  .infolist dd p {
    font-size: 1.125rem;
  }

  .infolist .schedule .tiny,
  .addcard__link:link,
  .addcard__link:visited,
  .notice-box {
    font-size: 0.625rem;
  }

  .notice__sub {
    font-size: 0.875rem;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee__track {
    animation: none;
  }

  /* 인트로 없이 제자리에 그대로 노출 (.deco 기본값이 opacity:0 이므로 되돌려준다).
     .hero__visual.in .deco 보다 특정도가 낮으면 무시되므로 선택자를 맞춰준다 */
  .deco,
  .hero__visual.in .deco {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  }
}

/* =========================================================
   수능 성적증명서 업로드 가이드 팝업 (2026.11.19~)
   - [오늘 그만 보기] / [닫기] 버튼으로만 닫힌다 (배경 클릭·ESC 무시)
   - 열고 닫을 때 페이드 + 슬라이드 (모바일은 아래에서 올라오는 시트)
   ========================================================= */
.gpop {
  --gpop-red: #E03400;
  --gpop-dur: .38s;
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--gpop-dur) var(--ease), visibility 0s linear var(--gpop-dur);
}

.gpop.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--gpop-dur) var(--ease), visibility 0s;
}

.gpop__dim {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 60, .6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.gpop__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(40rem, 100%);
  max-height: min(67.5rem, calc(100dvh - 48px));
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(16, 20, 70, .38);
  color: var(--ink);
  text-align: left;
  transform: translateY(28px) scale(.97);
  transition: transform var(--gpop-dur) var(--ease);
}

.gpop.is-open .gpop__dialog {
  transform: none;
}

.gpop__dialog:focus {
  outline: none;
}

/* 헤더 */
.gpop__head {
  flex: none;
  padding: 1.5rem 2rem;
  background: #444EB6;
  color: #fff;
}

.gpop__title {
  margin: 0;
  font-family: 'PretendardBold';
  color: #fff;
  font-size: 2.5rem;
  line-height: 120%;
  letter-spacing: -0.1rem;
}

.gpop__sub {
  margin: 0.5rem 0 0;
  color: #FFF;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* 본문 (스크롤 영역) */
.gpop__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 2rem;
}

/* 상단 안내 카드 2개 */
.gpop__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gpop__point {
  display: flex;
  padding: 0.625rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  background: #EAEBF6;
}

.gpop__point-icon {
  flex: none;
  width: 40px;
  height: 40px;
}

.gpop__point strong {
  display: block;
  font-family: 'PretendardBold';
  color: #444;
  font-size: 1.25rem;
  line-height: 120%;
  letter-spacing: -0.05rem;
}

.gpop__point span {
  margin-top: 0.25rem;
  display: block;
  font-family: 'PretendardRegular';
  color: #444;
  font-size: 1rem;
  letter-spacing: -0.04rem;
}

.gpop__point svg {
  width: 2.5rem;
  height: 2.5rem;
}

/* 경고 바 */
.gpop__warn {
  margin: 1rem 0;
  display: flex;
  padding: 0.625rem;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  align-self: stretch;
  border-radius: 0.625rem;
  background: var(--gpop-red);
  color: #fff;
  font-family: 'PretendardBold';
  text-align: center;
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

.gpop__warn svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}

/* 성적표 예시 + 설명 */
.gpop__grid {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 1rem;
  align-items: start;
}

.gpop__sheet {
  position: relative;
  margin: 0;
  line-height: 0;
}

.gpop__sheet img {
  display: block;
  width: 100%;
  height: auto;
}

/* 가려지면 안 되는 곳 표시 (원본 이미지 570x818 기준 % 좌표) */
.gpop__mark {
  position: absolute;
  border: 2px dashed var(--gpop-red);
  border-radius: 4px;
  background: rgba(226, 61, 11, .1);
}

.gpop__mark--1 {
  left: 79%;
  top: 3%;
  width: 14.5%;
  height: 4.8%;
}

.gpop__mark--2 {
  left: 6%;
  top: 7.6%;
  width: 38.5%;
  height: 3.8%;
}

.gpop__mark--3 {
  left: 38.5%;
  top: 70.6%;
  width: 20%;
  height: 3.8%;
}

.gpop__mark--4 {
  left: 24.5%;
  top: 75%;
  width: 59.5%;
  height: 8%;
}

.gpop__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--gpop-red);
  color: #fff;
  font-family: 'PretendardBold';
  font-size: 0.625rem;
  font-style: normal;
  line-height: 1;
}

.gpop__mark .gpop__num {
  position: absolute;
  left: -10px;
  top: -10px;
  box-shadow: 0 0 0 2px #fff;
}

.gpop__mark--1 .gpop__num {
  left: -8px;
  top: -14px;
}

.gpop__mark--4 .gpop__num {
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
}

.gpop__sec+.gpop__sec {
  margin-top: 1.5rem;
}

.gpop__h {
  margin: 0 0 0.5rem;
  font-family: 'PretendardBold';
  color: #444;
  font-size: 1.5rem;
  line-height: 120%;
  letter-spacing: -0.06rem;
}

.gpop__h.pdf {
  margin: 0;
}

.gpop__txt {
  margin: 0;
  font-family: 'PretendardRegular';
  color: #444;
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
  word-break: keep-all;
}

.gpop__link {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 62.5rem;
  border: 1px solid #444;
  background: #FFF;
  color: #444;
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
  font-family: 'PretendardSemiBold';
  text-decoration: none;
  transition: background .2s, color .2s;
}

.gpop__link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gpop__link:hover {
  background: #444;
  color: #fff;
}

/* 저장 순서 — 세로 연결선이 있는 번호 목록 */
.gpop__steps {
  position: relative;
  padding: 0;
  list-style: none;
}

.gpop__steps::before {
  content: "";
  position: absolute;
  left: 0.625rem;
  bottom: 0.875rem;
  width: 1px;
  height: 9rem;
  background: #D9D9D9;
}

.gpop__steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  font-family: 'PretendardRegular';
  color: #444;
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

.gpop__steps li:first-child {
  padding: 0.75rem 0 0.5rem 0;
}

.gpop__steps li:last-child {
  padding: 0.5rem 0 0 0;
}

.gpop__steps .gpop__num {
  background: #444;
}

.gpop__steps li.is-key {
  font-family: 'PretendardBold';
  color: #444;
}

/* 가려지면 안 되는 곳 — 빨간 테두리 알약 */
.gpop__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.gpop__tags li {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  gap: 0.25rem;
  border-radius: 6.25rem;
  border: 1px solid #E03400;
  background: #FFF;
  color: var(--gpop-red);
  font-family: 'PretendardRegular';
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* 하단 버튼 */
.gpop__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e3e4ec;
}

.gpop__btn {
  padding: 1.5rem 2rem;
  border: 0;
  background: none;
  color: #444;
  font-family: 'PretendardRegular';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
  cursor: pointer;
  transition: color .2s;
}

.gpop__btn--close {
  font-family: 'PretendardBold';
}

.gpop__btn:hover {
  color: var(--indigo);
}

.gpop__btn:focus-visible,
.gpop__link:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: -4px;
}

/* 모바일 — 좌우 여백을 둔 카드형, 본문은 높이를 제한해 내부 스크롤 */
@media (max-width:640px) {
  .gpop {
    padding: 20px 16px;
  }

  .gpop__dialog {
    width: 100%;
    max-height: 100%;
    border-radius: 16px;
    transform: translateY(40px) scale(.97);
  }

  .gpop__body {
    max-height: 52vh;
    max-height: 52dvh;
  }

  .gpop__head {
    padding: 26px 20px 22px;
  }

  .gpop__title {
    font-size: clamp(1.0625rem, 1.5rem, 1.5rem);
    word-break: keep-all;
  }

  .gpop__sub {
    font-size: 1rem;
  }

  .gpop__body {
    padding: 1.5rem 1rem;
  }

  .gpop__points {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gpop__point strong {
    font-size: 1.25rem;
  }

  .gpop__point span {
    font-size: 1rem;
  }

  .gpop__warn {
    font-size: clamp(0.6875rem, 4vw, 1rem);
    white-space: nowrap;
  }

  .gpop__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gpop__sheet {
    width: min(272px, 17rem);
    margin: 0 auto;
  }

  .gpop__h {
    font-size: 1.25rem;
  }

  .gpop__txt,
  .gpop__steps li,
  .gpop__link {
    font-size: 1rem;
  }

  .gpop__btn {
    padding: 18px 20px;
    font-size: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .gpop,
  .gpop.is-open,
  .gpop__dialog {
    transition: none;
  }
}

/* =========================================================
   수능 성적표 업로드 전 확인 팝업 (#reportPopup)
   - #suneung-report 클릭 시 .gpop 과 같은 페이드 + 슬라이드로 열린다
   - 동의 체크 시에만 [성적표 업로드 하기] 활성화 → 파일 선택창
   - [PDF 저장 방법 다시 보기] 는 아코디언 (grid-template-rows 로 부드럽게 펼침)
   ========================================================= */
.rpop {
  --rpop-green: #1E9E3E;
}

.rpop__notice {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  background: #FCEAE5;
  color: var(--gpop-red);
  font-family: 'PretendardBold';
  font-size: 1rem;
  line-height: 130%;
  letter-spacing: -0.04rem;
  word-break: keep-all;
}

.rpop__notice svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}

/* 카드 3장 + 아코디언 — PC: 카드 한 줄, 모바일: 가능 → 아코디언 → 불가 2장 */
.rpop__layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "ok photo capture"
    "acc acc acc";
  gap: 1rem;
  margin-top: 1rem;
}

.rpop__card--ok {
  grid-area: ok;
}

.rpop__card--photo {
  grid-area: photo;
}

.rpop__card--capture {
  grid-area: capture;
}

.rpop__acc {
  grid-area: acc;
}

.rpop__card {
  margin: 0;
  padding: 0.375rem 0.375rem 0.75rem;
  border: 2px solid var(--gpop-red);
  border-radius: 0.625rem;
  background: #fff;
}

.rpop__card--ok {
  border-color: var(--rpop-green);
}

.rpop__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.rpop__card figcaption {
  padding: 0.5rem 0.25rem 0;
}

.rpop__card strong {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'PretendardBold';
  color: #444;
  font-size: 1.125rem;
  line-height: 120%;
  letter-spacing: -0.045rem;
  white-space: nowrap;
}

.rpop__card span {
  display: block;
  margin-top: 0.25rem;
  font-family: 'PretendardRegular';
  color: #666;
  font-size: 0.875rem;
  line-height: 120%;
  letter-spacing: -0.035rem;
  word-break: keep-all;
}

.rpop__badge {
  flex: none;
  padding: 0.125rem 0.375rem;
  border-radius: 62.5rem;
  background: var(--gpop-red);
  color: #fff;
  font-family: 'PretendardBold';
  font-size: 0.875rem;
  font-style: normal;
  line-height: 120%;
  letter-spacing: -0.035rem;
}

.rpop__card--ok .rpop__badge {
  background: var(--rpop-green);
}

/* 아코디언 */
.rpop__acc {
  border: 1px solid #D9D9D9;
  border-radius: 0.625rem;
  background: #fff;
}

.rpop__acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1rem;
  border: 0;
  background: none;
  color: #444;
  font-family: 'PretendardBold';
  font-size: 1rem;
  line-height: 120%;
  letter-spacing: -0.04rem;
  text-align: left;
  cursor: pointer;
}

.rpop__acc-btn:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: -4px;
  border-radius: 0.625rem;
}

.rpop__acc-caret {
  flex: none;
  width: 0.75rem;
  height: auto;
  /* SVG 원본이 위(▲)를 향하므로 접힘 상태에선 뒤집어 아래(▼)로 */
  transform: rotate(180deg);
  transition: transform .3s var(--ease);
}

.rpop__acc-btn[aria-expanded="true"] .rpop__acc-caret {
  transform: none;
}

.rpop__acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .35s var(--ease), visibility 0s linear .35s;
}

.rpop__acc.is-open .rpop__acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .35s var(--ease), visibility 0s;
}

.rpop__acc-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 1rem;
}

.rpop__acc-inner> :last-child {
  margin-bottom: 1.25rem;
}

.rpop__acc .gpop__steps {
  margin: -0.75rem 0 0;
}

.rpop__acc .gpop__link {
  margin-top: 1.25rem;
}

.rpop__acc-note {
  margin: 0.5rem 0 0;
  font-family: 'PretendardRegular';
  color: #666;
  font-size: 0.875rem;
  line-height: 130%;
  letter-spacing: -0.035rem;
  word-break: keep-all;
}

/* 동의 체크 */
.rpop__agree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem 0.625rem;
  border-radius: 0.625rem;
  background: #EAEBF6;
  color: #444;
  font-family: 'PretendardRegular';
  font-size: 0.875rem;
  line-height: 120%;
  letter-spacing: -0.035rem;
}

/* 클릭 영역은 체크박스(네모)만 */
.rpop__box {
  flex: none;
  position: relative;
  display: block;
  cursor: pointer;
}

.rpop__agree input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rpop__check {
  /* <i> 는 기본 inline 이라 width/height 가 무시돼 테두리만 막대처럼 보인다 → block 으로 */
  display: block;
  position: relative;
  box-sizing: border-box;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  border: 1.5px solid #444;
  border-radius: 2px;
  background: #fff;
}

/* 체크 표시 — 10x8 SVG 를 박스 정중앙에 */
.rpop__check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M3.17568 5.4L0.5 3.53333L3.41892 7.5L9.5 0.5L3.17568 5.4Z' fill='%23444444' stroke-linejoin='round' stroke='%23444444'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .15s var(--ease);
}

.rpop__agree input:checked+.rpop__check::after {
  transform: translate(-50%, -50%) scale(1);
}

.rpop__agree input:focus-visible+.rpop__check {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.rpop__agree u {
  text-underline-offset: 3px;
}

/* 업로드 버튼 */
.rpop__cta {
  margin-top: 1rem;
  text-align: center;
}

.rpop__submit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(15rem, 100%);
  height: 3.25rem;
  border: 0;
  border-radius: 6.25rem;
  background: #444EB6;
  /* 아래 안쪽 그림자(키캡 두께) + 바깥 그림자(띄움) 두 겹 — 바깥은 평소엔 0 */
  box-shadow: 0 -4px 0 0 rgba(0, 0, 0, 0.25) inset, 0 0 0 0 rgba(36, 44, 140, 0);
  color: #fff;
  font-family: 'PretendardBold';
  font-size: 1.25rem;
  line-height: 130%;
  letter-spacing: -0.05rem;
  cursor: pointer;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

/* hover 시 왼쪽 → 오른쪽으로 한 번 지나가는 빛 */
.rpop__submit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}

/* 터치 기기에선 hover 가 눌린 채 남으므로 마우스 환경에서만 */
@media (hover: hover) {
  .rpop__submit:not(:disabled):hover {
    background-color: #3A44B0;
    transform: translateY(-2px);
    box-shadow: 0 -4px 0 0 rgba(0, 0, 0, 0.3) inset, 0 0.5rem 1.125rem -0.375rem rgba(36, 44, 140, .55);
  }

  .rpop__submit:not(:disabled):hover::after {
    transform: translateX(120%);
    transition: transform .7s var(--ease);
  }
}

/* 누르는 순간: 내려앉으며 키캡 두께가 얇아지고 바깥 그림자도 거의 사라진다 */
.rpop__submit:not(:disabled):active {
  background-color: #343DA0;
  transform: translateY(1px);
  box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.3) inset, 0 0.125rem 0.375rem -0.25rem rgba(36, 44, 140, .5);
  transition-duration: .08s;
}

.rpop__submit:disabled {
  border-radius: 6.25rem;
  background: #C8C8C8;
  box-shadow: 0 -4px 0 0 rgba(0, 0, 0, 0.25) inset;
  cursor: not-allowed;
}

.rpop__submit:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
}

.rpop__hint {
  margin: 0.75rem 0 0;
  font-family: 'PretendardRegular';
  color: #888;
  font-size: 0.75rem;
  line-height: 120%;
  letter-spacing: -0.03rem;
}

.rpop__foot {
  justify-content: flex-end;
}

@media (max-width:640px) {
  .rpop__notice {
    align-items: flex-start;
  }

  .rpop__notice svg {
    margin-top: 0.125rem;
  }

  .rpop__layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "ok ok"
      "acc acc"
      "photo capture";
    gap: 0.75rem;
  }

  /* 가능 카드: 이미지 왼쪽, 설명 오른쪽 */
  .rpop__card--ok {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .rpop__card--ok img {
    flex: none;
    width: 5.5rem;
    height: 4.75rem;
    object-fit: cover;
    object-position: top;
  }

  .rpop__card--ok figcaption {
    padding: 0;
  }

  /* 불가 카드: 이미지 작게 가운데 */
  .rpop__card--no {
    padding: 0.75rem 0.5rem;
  }

  .rpop__card--no img {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto;
    object-fit: cover;
    object-position: top;
  }

  .rpop__card strong {
    font-size: 1rem;
  }

  .rpop__card span {
    font-size: 0.8125rem;
  }

  .rpop__badge {
    font-size: 0.8125rem;
  }

  .rpop__agree {
    font-size: 0.875rem;
  }

  .rpop__submit {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .rpop__acc-panel,
  .rpop__acc.is-open .rpop__acc-panel,
  .rpop__acc-caret,
  .rpop__check::after,
  .rpop__submit,
  .rpop__submit::after {
    transition: none;
  }
}