/* 허브 B안 (/b/) — 첫 화면 아래 구역: 서비스, 꿈현시, 고민별 안내, 상담 흐름, 행동 유도, 꼬리말, 상담 시트 */

/* ---------- 구역 머리 ---------- */
.b-head {
  margin-bottom: clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
}

.b-head .label-en {
  margin-bottom: 22px;
}

.b-head .label-en::after {
  width: 40px;
  margin-top: 14px;
}

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

.b-head.center .label-en::after {
  margin-inline: auto;
}

.b-title {
  color: var(--ink);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.b-title em,
.b-dream-title em {
  font-style: normal;
  background: linear-gradient(100deg, #3a5bc7 10%, #2a49b8 55%, #1f3484 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.b-sub {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: var(--text-lead);
  line-height: 1.6;
}

/* ---------- 꿈현시 ---------- */
.b-dream {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: clamp(2.25rem, 1.4rem + 4vw, 4.75rem);
  border-radius: clamp(28px, 1.2rem + 1.6vw, 40px);
  background: linear-gradient(135deg, #263d96 0%, #1f3484 38%, #162257 72%, #0b1233 100%);
  color: var(--white);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease;
}

.b-dream {
  cursor: pointer;
}

.b-dream:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(16, 24, 64, 0.3);
}

/* 장식 원은 칸 배치에서 빼서 패널 전체를 덮는 바닥 층에만 그린다 */
.b-dream-orbs,
.b-cta-rings {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

/* 첫 화면의 겹친 원을 다시 불러와 같은 브랜드로 읽히게 */
.b-dream-orbs i {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.b-dream-orbs i:nth-child(1) {
  right: -18%;
  top: -40%;
  width: 82%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, rgba(199, 206, 230, 0.35), rgba(199, 206, 230, 0.04) 62%);
}

.b-dream-orbs i:nth-child(2) {
  right: -8%;
  bottom: -46%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, #4d66c2 0%, #2a49b8 38%, #1f3484 70%);
  box-shadow: inset 8px 10px 30px rgba(255, 255, 255, 0.25);
}

.b-dream-orbs i:nth-child(3) {
  left: 38%;
  top: -60%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.b-dream-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.b-dream-copy > .label-en {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.b-dream-copy > .label-en > span {
  display: inline;
}

.b-dream-badge {
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--text-xs);
  font-weight: 600;
}

.b-dream-title {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.05em;
}

.b-dream-title em {
  background: linear-gradient(100deg, #ffffff 0%, #c7cee6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.b-dream-lead {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  font-size: var(--text-lead);
  line-height: 1.6;
}

.b-dream-q {
  color: rgba(255, 255, 255, 0.78);
}

.b-dream-a {
  color: var(--white);
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* 교육 혜택: 반투명 상자 안에 체크 목록 */
.b-dream-perks {
  width: 100%;
  max-width: 520px;
  margin-top: 22px;
  padding: 18px 20px;
}

.b-dream-perks-title {
  color: var(--periwinkle);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.b-dream-perks ul {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.b-dream-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.b-dream-perks li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 11px;
  margin: -3px 5px 0 4px;
  border: solid var(--periwinkle);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.b-dream-close {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-body);
  line-height: 1.65;
}

.b-dream-sign {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.b-dream-sign i {
  margin: 0 6px;
  font-style: normal;
  opacity: 0.6;
}

.b-dream-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin-top: 30px;
}

.glass-dark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-dark small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.glass-dark b {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.glass-dark b i {
  margin-left: 1px;
  color: var(--periwinkle);
  font-style: normal;
}

/* 상세 페이지 대신 바로 상담 시트를 여는 흰 알약 버튼 (패널 어디를 눌러도 같은 시트가 열린다) */
.b-dream-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  margin-top: 30px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--brand-deep);
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(10, 16, 48, 0.3);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-normal) ease;
}

.b-dream-cta:hover {
  box-shadow: 0 18px 40px rgba(10, 16, 48, 0.4);
}

.b-dream-cta:active {
  transform: scale(0.97);
}

@media (max-width: 420px) {
  .b-dream-cta {
    justify-content: center;
    width: 100%;
    padding: 0 20px;
  }
}

.b-dream-art {
  display: flex;
  justify-content: center;
}

.b-dream-art img {
  width: min(100%, 340px);
  filter: drop-shadow(0 30px 40px rgba(3, 8, 40, 0.45));
  transition: transform var(--duration-slow) var(--ease-spring);
}

.b-dream:hover .b-dream-art img {
  transform: translateY(-8px) rotate(-3deg);
}

@media (max-width: 820px) {
  .b-dream {
    grid-template-columns: minmax(0, 1fr);
  }

  .b-dream-art {
    order: -1;
    justify-content: flex-start;
  }

  .b-dream-art img {
    width: 140px;
  }
}

.br-m {
  display: none;
}

@media (max-width: 420px) {
  .br-m {
    display: inline;
  }

  .b-dream-stats {
    gap: 6px;
  }

  .glass-dark {
    padding: 12px 10px;
  }

  .glass-dark b {
    font-size: 1.0625rem;
    white-space: nowrap;
  }
}

/* ---------- 안심경영(보험) 띠 배너 — 공통 safe-banner.css 위에 B안 옷만 입힌다 ---------- */
[data-theme='blue'] .safe-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: none;
}

[data-theme='blue'] .safe-banner::before {
  content: '';
  position: absolute;
  left: -6%;
  top: 50%;
  z-index: -1;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 106, 186, 0.18) 0%, rgba(86, 106, 186, 0) 65%);
  transform: translateY(-50%);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

[data-theme='blue'] .safe-banner:hover {
  border-color: rgba(42, 73, 184, 0.22);
  box-shadow: 0 22px 48px rgba(28, 40, 96, 0.12);
}

[data-theme='blue'] .safe-banner:hover::before {
  transform: translateY(-50%) scale(1.25);
}

[data-theme='blue'] .safe-banner img {
  filter: drop-shadow(0 14px 18px rgba(28, 40, 96, 0.18));
}

[data-theme='blue'] .safe-banner .label-en {
  margin-bottom: 8px;
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.26em;
}

[data-theme='blue'] .safe-banner .badge {
  color: var(--brand-deep);
}

[data-theme='blue'] .safe-banner .title {
  font-weight: 800;
  letter-spacing: -0.045em;
}

[data-theme='blue'] .safe-banner .go {
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: linear-gradient(100deg, #3a5bc7 0%, #2a49b8 45%, #1f3484 100%);
  box-shadow: var(--shadow-blue);
}

/* ---------- 고민별 안내: 은은한 파란 빛 위에 유리 카드 ---------- */
.b-worry-sec {
  overflow-x: clip; /* 카드 뒤 빛이 화면 밖으로 번져도 가로 스크롤이 생기지 않게 */
}

.b-worry-grid {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.b-worry-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(900px, 120%);
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(86, 106, 186, 0.34), rgba(199, 206, 230, 0.2) 55%, rgba(199, 206, 230, 0));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.b-worry-grid > li {
  display: flex;
}

.b-worry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 30px 28px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  text-align: left;
  transition: transform var(--duration-normal) var(--ease-out-expo), background var(--duration-normal) ease,
    box-shadow var(--duration-normal) ease;
}

.b-worry:hover {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 #fff, 0 28px 70px rgba(28, 40, 96, 0.18);
  transform: translateY(-4px);
}

.b-worry .label-en {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
}

.b-worry strong {
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.b-worry small {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: var(--text-small);
  line-height: 1.6;
}

.b-worry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.b-worry-tags span {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}

.b-worry-go {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 26px;
  color: var(--brand);
  font-size: var(--text-small);
  font-weight: 700;
}

@media (max-width: 900px) {
  .b-worry-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .b-worry strong br {
    display: none;
  }
}

/* ---------- 상담 흐름 ---------- */
.b-steps-sec {
  background: var(--white);
}

.b-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  counter-reset: step;
}

.b-step {
  position: relative;
  padding-top: 30px;
  border-top: 1.5px solid var(--line);
}

/* 위 선이 왼쪽부터 파랗게 차오른다 */
.b-step::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1.5px;
  height: 1.5px;
  background: linear-gradient(90deg, #3a5bc7, #1f3484);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 180ms + 200ms);
}

.b-step.is-in::before,
.no-js .b-step::before {
  transform: scaleX(1);
}

.b-step-no {
  display: block;
  color: var(--brand);
  font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
}

.b-step strong {
  display: block;
  margin-top: 22px;
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.b-step p {
  margin-top: 8px;
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .b-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .b-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 12px;
    padding-top: 22px;
  }

  .b-step-no {
    grid-row: span 2;
    font-size: 2.5rem;
  }

  .b-step strong {
    margin-top: 2px;
  }
}

/* ---------- 마지막 행동 유도 ---------- */
.b-cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(2.25rem, 1.4rem + 4vw, 4.5rem);
  border-radius: clamp(28px, 1.2rem + 1.6vw, 40px);
  background:
    radial-gradient(circle at 100% 0%, rgba(140, 156, 214, 0.55) 0%, rgba(140, 156, 214, 0) 45%),
    linear-gradient(120deg, #3a5bc7 0%, #2a49b8 40%, #1f3484 75%, #162257 100%);
  color: var(--white);
  overflow: hidden;
}

.b-cta-rings i {
  position: absolute;
  z-index: -1;
  right: -120px;
  top: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: ring 6s ease-in-out infinite;
}

.b-cta-rings i:nth-child(1) {
  width: 300px;
}

.b-cta-rings i:nth-child(2) {
  width: 480px;
  animation-delay: 0.6s;
}

.b-cta-rings i:nth-child(3) {
  width: 660px;
  animation-delay: 1.2s;
}

@keyframes ring {
  50% {
    transform: translateY(-50%) scale(1.04);
    opacity: 0.6;
  }
}

.b-cta .label-en {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
}

.b-cta h2 {
  margin-top: 14px;
  font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.b-cta-copy p:last-child {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.b-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.b-cta-phone {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-small);
  font-weight: 600;
}

.b-cta-phone span {
  margin-left: 4px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .b-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .b-cta-actions .btn {
    width: 100%;
  }
}

/* ---------- 꼬리말 ---------- */
[data-theme='blue'] .site-footer {
  background: #eceff7;
}

[data-theme='blue'] .site-footer .top {
  border-bottom-color: #dde2ee;
}

.wordmark-footer {
  align-items: flex-start;
  margin-bottom: 12px;
}

.wordmark-footer .wordmark-sub {
  padding-left: 0;
  color: var(--ink-3);
}

/* ---------- 상담 시트 ---------- */
[data-theme='blue'] .sheet {
  background: linear-gradient(180deg, #f4f5f9 0%, var(--white) 140px);
}

[data-theme='blue'] .sheet::backdrop {
  background: rgba(16, 24, 64, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sheet .sheet-head .label-en {
  margin-bottom: 6px;
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.28em;
}

[data-theme='blue'] .chip span {
  background: #eef1f8;
}

[data-theme='blue'] .chip span:hover {
  background: #e2e8f6;
}

[data-theme='blue'] .chip input:checked + span {
  background: linear-gradient(100deg, #3a5bc7, #2a49b8);
  box-shadow: 0 6px 14px rgba(42, 73, 184, 0.26);
}

[data-theme='blue'] .input {
  background: #f1f4fa;
}

[data-theme='blue'] .input:focus {
  background: var(--white);
}

[data-theme='blue'] .form-done .check {
  background: linear-gradient(140deg, #3a5bc7, #1f3484);
}
