/* 꿈현시 상세 — 첫 화면·혜택 띠·고민·약속. 흰 바탕 + 네이비, 행동은 블루, 약속·숫자는 별빛 골드 */
[data-theme='edu'] {
  --page: var(--white);
}

.eyebrow {
  color: var(--cta);
}

.eyebrow.light {
  color: var(--gold);
}

.e-gray {
  background: var(--gray-50);
}

.center-cta {
  margin-top: 32px;
  text-align: center;
}

/* ---------- 1. 첫 화면 ---------- */
.e-hero {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  overflow: hidden;
}

.e-hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -30%;
  z-index: -1;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(61, 107, 245, 0.14), rgba(61, 107, 245, 0) 70%);
}

.e-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 32px;
}

.e-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: 700;
}

.e-pill .dot,
.live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(226, 182, 91, 0.6);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 8px rgba(226, 182, 91, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 182, 91, 0);
  }
}

.e-hero-title {
  margin-top: 22px;
  color: var(--brand);
  font-size: var(--text-hero);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.e-hero-title em {
  position: relative;
  font-style: normal;
  color: var(--cta);
}

.e-hero-title em::after {
  content: '✦';
  position: absolute;
  right: -0.62em;
  top: -0.08em;
  color: var(--gold);
  font-size: 0.42em;
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  50% {
    opacity: 0.35;
    transform: scale(0.8) rotate(20deg);
  }
}

.e-hero-lead {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: var(--text-lead);
}

.e-hero-lead strong {
  color: var(--brand);
}

.e-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.e-hero-copy > * {
  animation: e-rise var(--duration-slow) var(--ease-out-expo) both;
}

.e-hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}

.e-hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}

.e-hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}

@keyframes e-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 별 + 떠 있는 카드 */
.e-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.e-hero-art .glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 182, 91, 0.32), rgba(61, 107, 245, 0.12) 60%, transparent);
  filter: blur(8px);
}

.e-hero-art .star {
  position: relative;
  width: min(78%, 340px);
  animation: e-pop 1s var(--ease-spring) both 200ms, e-float 6s ease-in-out infinite 1.2s;
  filter: drop-shadow(0 30px 40px rgba(20, 40, 75, 0.22));
}

.float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-float);
  color: var(--brand);
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  animation: e-pop 0.9s var(--ease-spring) both, e-float 7s ease-in-out infinite;
}

.float-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.fc-1 {
  left: 0;
  top: 14%;
  animation-delay: 500ms, 1.4s;
}

.fc-2 {
  right: -4%;
  top: 44%;
  animation-delay: 650ms, 2.2s;
}

.fc-3 {
  left: 6%;
  bottom: 8%;
  animation-delay: 800ms, 1.8s;
}

@keyframes e-float {
  50% {
    transform: translateY(-12px);
  }
}

@keyframes e-pop {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 신뢰 숫자 */
.e-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.e-trust > div {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}

.e-trust dt {
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 600;
}

.e-trust dd {
  margin-top: 4px;
  color: var(--brand);
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.e-trust dd span {
  font-variant-numeric: tabular-nums;
}

.e-trust p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: var(--text-xs);
}

@media (max-width: 900px) {
  .e-hero-grid {
    grid-template-columns: 1fr;
  }

  .e-hero-art {
    order: -1;
    min-height: 320px;
  }

  .e-hero-art .star {
    width: min(56%, 240px);
  }

  .fc-2 {
    right: 0;
  }
}

@media (max-width: 560px) {
  .e-hero-actions .btn {
    flex: 1 1 100%;
  }

  .e-trust {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .e-trust > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 14px;
    padding: 16px 18px;
  }

  .e-trust dd {
    grid-row: span 2;
    order: -1;
    margin: 0;
    font-size: 1.625rem;
  }

  .e-trust p {
    margin: 0;
  }

  .e-hero-art {
    min-height: 250px;
  }

  .e-hero-art .star {
    width: 168px;
  }

  .fc-1 {
    top: 8%;
  }

  .fc-3 {
    left: 2%;
    bottom: 4%;
  }

  .float-card {
    padding: 8px 12px 8px 8px;
    font-size: var(--text-xs);
  }

  .float-card img {
    width: 28px;
    height: 28px;
  }
}

/* ---------- 흐르는 혜택 띠 ---------- */
.e-marquee {
  display: flex;
  overflow: hidden;
  padding: 18px 0;
  background: var(--brand);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.e-marquee .track {
  display: flex;
  flex-shrink: 0;
  gap: 36px;
  padding-right: 36px;
  animation: marquee 48s linear infinite;
}

.e-marquee:hover .track {
  animation-play-state: paused;
}

.e-marquee li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-small);
  font-weight: 600;
  white-space: nowrap;
}

.e-marquee li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.8em;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .e-marquee {
    flex-wrap: wrap;
  }

  .e-marquee .track {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--gutter);
    row-gap: 8px;
  }

  .e-marquee .track[aria-hidden] {
    display: none;
  }
}

/* ---------- 2. 고민 말풍선 ---------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  align-self: flex-start;
  max-width: min(82%, 520px);
  padding: 14px 20px;
  border-radius: 24px 24px 24px 8px;
  background: var(--gray-100);
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 1.55;
}

.bubble.right {
  align-self: flex-end;
  border-radius: 24px 24px 8px 24px;
  background: var(--brand-tint);
  color: var(--brand);
}

.bubble.reveal {
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom left;
}

.bubble.right.reveal {
  transform-origin: bottom right;
}

.bubble.reveal.is-in {
  transform: none;
}

.bubble.answer {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  max-width: none;
  margin-top: 28px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--text-lead);
}

.bubble.answer img {
  flex: 0 0 auto;
  width: 40px;
  height: auto;
}

.bubble.answer b {
  color: var(--white);
}

/* ---------- 3. 약속 (네이비) ---------- */
.e-promise {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-section);
  background: var(--brand);
  color: var(--white);
  overflow: hidden;
}

.e-promise::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1.4px);
  background-size: 54px 54px;
  opacity: 0.18;
}

.e-promise::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40%;
  z-index: -1;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(61, 107, 245, 0.45), transparent);
}

.promise-head {
  text-align: center;
}

.promise-head .section-title em {
  font-style: normal;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.promise-head .section-sub {
  margin-inline: auto;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.72);
}

.journey {
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto 0;
  max-width: 920px;
}

.journey-bar {
  position: relative;
  height: 8px;
  margin: 0 calc(100% / 6);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

.journey-bar .fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b8cff, var(--cta) 50%, var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease-out-expo) 0.4s;
}

.journey.is-in .journey-bar .fill {
  transform: scaleX(1);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -21px;
}

.journey-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.journey-steps .k {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  color: transparent;
  font-size: 0;
}

.journey-steps .k::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}

.journey-steps .goal .k {
  width: 44px;
  height: 44px;
  margin-top: -5px;
  margin-bottom: 11px;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(226, 182, 91, 0.2);
}

.journey-steps .goal .k::after {
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border-radius: 0;
  background: none;
  border: solid var(--brand);
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg);
}

.journey-steps b {
  font-size: var(--text-h3);
  letter-spacing: -0.03em;
}

.journey-steps .goal b {
  color: var(--gold);
}

.journey-steps small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-small);
}

.promise-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 820px;
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto 0;
  padding: 22px 24px;
  border: 1px solid rgba(226, 182, 91, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(226, 182, 91, 0.1);
}

.promise-proof img {
  flex: 0 0 64px;
  width: 64px;
}

.promise-proof p {
  flex: 1;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-small);
}

.promise-proof p b {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-size: var(--text-body);
}

@media (max-width: 720px) {
  .journey-bar {
    display: none;
  }

  .journey-steps {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0;
    padding-left: 4px;
    border-left: 0;
  }

  .journey-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    column-gap: 16px;
    text-align: left;
  }

  .journey-steps .k,
  .journey-steps .goal .k {
    grid-row: span 2;
    margin: 0 auto;
  }

  .journey-steps small {
    margin: 0;
  }

  .promise-proof {
    flex-wrap: wrap;
  }

  .promise-proof .btn {
    width: 100%;
  }
}
