/**
 * DS4K (Data Science for Kids) — 공통 스타일
 * 메인 홈페이지와 worksheets/ 하위 페이지에서 공유합니다.
 */

/* Pretendard 웹폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ---------- 기본 타이포 · 배경 ---------- */
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: #ffffff;
  color: #1e293b;
}

.font-brand {
  font-family: 'Comfortaa', cursive, sans-serif;
}

/* ---------- 브랜드 컬러 ---------- */
.bg-ds-mint { background-color: #B8E8D4; }
.bg-ds-mint-light { background-color: #ECFDF5; }
.bg-ds-blue { background-color: #2563EB; }
.bg-ds-coral { background-color: #FF7A6B; }
.bg-ds-green { background-color: #10B981; }

.text-ds-blue { color: #2563EB; }
.text-ds-coral { color: #FF7A6B; }
.text-ds-green { color: #10B981; }

/* ---------- 그림자 · 카드 ---------- */
.ds-card-shadow {
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}
.ds-btn-shadow {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.ds-btn-coral-shadow {
  box-shadow: 0 8px 20px rgba(255, 122, 107, 0.35);
}

/* ---------- 스크롤 · 뷰포트 ---------- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: clip;
  max-width: 100%;
}
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* ---------- 네비게이션 ---------- */
.nav-link {
  color: #1e3a5f;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #38bdf8;
}
.nav-link-active {
  color: #38bdf8;
}

/* ---------- 히어로 ---------- */
.hero-section {
  background: linear-gradient(180deg, #C5F0DC 0%, #B8E8D4 55%, #A8DFC8 100%);
  position: relative;
}

.mascot-stage {
  min-height: 260px;
  padding-bottom: 28px;
}

.hero-cta {
  z-index: 5;
}

/* ALGO 로봇 */
.mascot-algo {
  animation: mascot-float 3.2s ease-in-out infinite;
}

.mascot-algo-body {
  position: relative;
  width: 130px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mascot-algo-antenna {
  width: 6px;
  height: 18px;
  background: #60a5fa;
  border-radius: 4px;
  position: relative;
}
.mascot-algo-antenna::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.mascot-algo-head {
  width: 100px;
  height: 88px;
  background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
  border: 4px solid #3b82f6;
  border-radius: 28px 28px 22px 22px;
  position: relative;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mascot-algo-eye {
  width: 18px;
  height: 22px;
  background: #1e3a5f;
  border-radius: 50%;
  position: relative;
  top: -4px;
}
.mascot-algo-eye.wink {
  height: 4px;
  width: 18px;
  border-radius: 4px;
  top: 2px;
}
.mascot-algo-eye::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}
.mascot-algo-eye.wink::after {
  display: none;
}

.mascot-algo-mouth {
  position: absolute;
  bottom: 18px;
  width: 22px;
  height: 10px;
  border-bottom: 3px solid #1e3a5f;
  border-radius: 0 0 12px 12px;
}

.mascot-algo-chest {
  margin-top: 6px;
  width: 78px;
  height: 52px;
  background: linear-gradient(160deg, #60a5fa 0%, #2563eb 100%);
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* PY 몬스터 */
.mascot-py {
  animation: mascot-float 3.2s ease-in-out infinite 0.4s;
}

.mascot-py-body {
  position: relative;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 35% 30%, #86efac 0%, #22c55e 55%, #16a34a 100%);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
}

.mascot-py-spikes {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 40px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.mascot-py-spikes span {
  width: 16px;
  height: 28px;
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
  border-radius: 8px 8px 4px 4px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  display: block;
}
.mascot-py-spikes span:nth-child(1),
.mascot-py-spikes span:nth-child(5) {
  height: 20px;
  margin-top: 10px;
}
.mascot-py-spikes span:nth-child(2),
.mascot-py-spikes span:nth-child(4) {
  height: 26px;
  margin-top: 4px;
}

.mascot-py-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-py-eye {
  position: absolute;
  top: 48px;
  width: 22px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.06);
}
.mascot-py-eye::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 6px;
  width: 10px;
  height: 12px;
  background: #1e3a5f;
  border-radius: 50%;
}
.mascot-py-eye.left { left: 38px; }
.mascot-py-eye.right { right: 38px; }

.mascot-py-mouth {
  position: absolute;
  top: 88px;
  width: 48px;
  height: 28px;
  background: #fff;
  border-radius: 0 0 28px 28px;
  border: 3px solid #15803d;
  border-top: none;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Flywheel / 3단계 카드 ---------- */
.flywheel-section {
  background: #3B82F6;
  border-radius: 48px 48px 0 0;
}

.step-card {
  background: #fff;
  border-radius: 28px;
  padding: 22px 20px 18px;
  box-shadow: 0 14px 32px rgba(30, 58, 95, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  width: 100%;
  font: inherit;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30, 58, 95, 0.22);
}

.step-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-num-blue { background: #3B82F6; }
.step-num-green { background: #22C55E; }
.step-num-coral { background: #FF7A6B; }

.step-title {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #1e3a5f;
  text-transform: uppercase;
}

.step-preview {
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PRINT sheets */
.step-preview-print .sheet {
  position: absolute;
  width: 88px;
  height: 112px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.12);
  border: 1px solid #e2e8f0;
}
.sheet-back {
  transform: rotate(-12deg) translate(-28px, 6px);
  background: #dbeafe;
}
.sheet-mid {
  transform: rotate(8deg) translate(30px, 4px);
  background: #ecfdf5;
}
.sheet-front {
  z-index: 2;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sheet-lines {
  height: 54px;
  background: repeating-linear-gradient(
    transparent 0 8px,
    #cbd5e1 8px 9px
  );
  border-radius: 2px;
}
.sheet-qr {
  width: 28px;
  height: 28px;
  align-self: flex-end;
  background:
    linear-gradient(#1e3a5f 0 0) 0 0 / 40% 40%,
    linear-gradient(#1e3a5f 0 0) 100% 0 / 40% 40%,
    linear-gradient(#1e3a5f 0 0) 0 100% / 40% 40%,
    linear-gradient(#94a3b8 0 0);
  background-repeat: no-repeat;
  border-radius: 3px;
}

/* INTERACTIVE game */
.step-preview-game {
  background: linear-gradient(180deg, #bae6fd 0%, #7dd3fc 40%, #86efac 100%);
}
.game-screen {
  width: 85%;
  height: 78%;
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.1);
}
.game-title {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #1e3a5f;
  background: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.game-track {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 28px;
  height: 8px;
  background: #1e3a5f;
  border-radius: 4px;
  opacity: 0.35;
  transform: skewX(-12deg);
}
.game-car {
  position: absolute;
  bottom: 36px;
  left: 28%;
  width: 36px;
  height: 28px;
  background: radial-gradient(circle at 40% 35%, #86efac 0%, #22c55e 70%);
  border-radius: 50% 50% 40% 40%;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
  animation: car-bounce 1.4s ease-in-out infinite;
}
.game-car::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #f97316;
}
@keyframes car-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* PARENT GUIDE cards */
.step-preview-guide .guide-card {
  position: absolute;
  width: 78px;
  height: 100px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.12);
}
.guide-back {
  background: #fdba74;
  transform: rotate(-14deg) translate(-34px, 8px);
}
.guide-mid {
  background: #86efac;
  transform: rotate(10deg) translate(32px, 6px);
}
.guide-front {
  background: #fff;
  border: 2px solid #fecaca;
  z-index: 2;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.guide-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7A6B, #fb923c);
}
.guide-lines {
  width: 100%;
  height: 36px;
  background: repeating-linear-gradient(
    transparent 0 7px,
    #e2e8f0 7px 8px
  );
}

/* ---------- 반응형 ---------- */
@media (max-width: 480px) {
  .lang-code { display: none; }
  .lang-btn { padding: 5px 7px; }
  header .max-w-6xl { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}

@media (max-width: 768px) {
  .mascot-stage {
    min-height: 200px;
    padding-bottom: 20px;
  }
  .mascot-algo-body {
    width: 100px;
    height: 140px;
  }
  .mascot-algo-head {
    width: 78px;
    height: 70px;
    gap: 10px;
  }
  .mascot-algo-eye {
    width: 14px;
    height: 18px;
  }
  .mascot-algo-eye.wink {
    height: 3px;
    width: 14px;
  }
  .mascot-algo-chest {
    width: 62px;
    height: 42px;
    font-size: 11px;
  }
  .mascot-py-body {
    width: 120px;
    height: 120px;
  }
  .mascot-py-eye {
    top: 38px;
    width: 18px;
    height: 22px;
  }
  .mascot-py-eye.left { left: 28px; }
  .mascot-py-eye.right { right: 28px; }
  .mascot-py-mouth {
    top: 70px;
    width: 38px;
    height: 22px;
  }
  .mascot-py-spikes {
    width: 96px;
  }
  .flywheel-section {
    border-radius: 32px 32px 0 0;
  }
  .step-preview {
    height: 140px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav-link {
    font-size: 12px;
  }
}

/* ---------- 언어 전환 ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  transition: background .15s, color .15s;
}
.lang-btn.is-active {
  background: #fff;
  color: #1e3a5f;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.lang-flag { font-size: 14px; line-height: 1; }
.lang-code { letter-spacing: 0.04em; }

/* ---------- WORKSHEETS 카테고리 ---------- */
.ws-category-head {
  margin-bottom: 0.85rem;
}
.ws-cat-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.ws-cat-preschool { background: #ffe4e6; color: #be123c; }
.ws-cat-elem { background: #e0f2fe; color: #0369a1; }
.ws-cat-math { background: #fef3c7; color: #b45309; }
.ws-cat-coding { background: #ccfbf1; color: #0f766e; }

/* ---------- INTERACTIVE 게임 카드 ---------- */
.ix-game-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #e9d5ff;
  border-radius: 1.25rem;
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
  transition: transform .2s, border-color .2s;
}
.ix-game-card:hover {
  transform: translateY(-4px);
  border-color: #d946ef;
}
.ix-game-visual {
  font-size: 2.4rem;
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 0.85rem;
  padding: 1rem;
  border-radius: 1rem;
}
.ix-fruit { background: linear-gradient(135deg, #fef3c7, #fecaca); }
.ix-animal { background: linear-gradient(135deg, #dbeafe, #e9d5ff); }
.ix-cook { background: linear-gradient(135deg, #ffedd5, #fde68a); }
.ix-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: #a21caf;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

/* ---------- 커리큘럼 브릿지 ---------- */
.cur-bridge {
  background: #fff;
  border: 2px solid #a7f3d0;
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.08);
}
.cur-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}
.cur-step {
  flex: 1 1 140px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #ecfdf5;
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #134e4a;
  line-height: 1.35;
}
.cur-step-num {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cur-step-arrow {
  display: none;
  align-items: center;
  font-weight: 900;
  color: #34d399;
  padding: 0 0.15rem;
}
@media (min-width: 768px) {
  .cur-step-arrow { display: flex; }
}

.hero-accent {
  color: #4f46e5;
}

/* ---------- Parent's Guide (AI Native) ---------- */
.pg-section {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(165, 180, 252, 0.35), transparent 55%),
    radial-gradient(700px 360px at 0% 20%, rgba(196, 181, 253, 0.28), transparent 50%),
    #f5f3ff;
  border-top: 1px solid #e0e7ff;
  animation: pg-enter 0.55s ease both;
}
@keyframes pg-enter {
  from { opacity: 0.72; }
  to { opacity: 1; }
}
.pg-compare-card,
.pg-stat,
.pg-pillar,
.pg-road li,
.pg-wb,
.pg-principles li,
.pg-quote,
.pg-faq,
.pg-next,
.pg-form-wrap,
.pg-next-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}
.pg-compare-card:hover,
.pg-stat:hover,
.pg-pillar:hover,
.pg-road li:hover,
.pg-wb:hover,
.pg-principles li:hover,
.pg-faq:hover,
.pg-next:hover,
.pg-next-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(49, 46, 129, 0.12);
}
.pg-compare-card.is-old:hover,
.pg-pillar:hover,
.pg-wb:hover,
.pg-stat:hover {
  border-color: #a5b4fc;
}
.pg-compare-card.is-new:hover,
.pg-quote:hover,
.pg-form-wrap:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}
.pg-principles li:hover {
  border-left-color: #3730a3;
}
@media (prefers-reduced-motion: reduce) {
  .pg-section { animation: none; }
  .pg-compare-card,
  .pg-stat,
  .pg-pillar,
  .pg-road li,
  .pg-wb,
  .pg-principles li,
  .pg-quote,
  .pg-faq,
  .pg-next,
  .pg-form-wrap,
  .pg-next-card {
    transition: none;
  }
  .pg-compare-card:hover,
  .pg-stat:hover,
  .pg-pillar:hover,
  .pg-road li:hover,
  .pg-wb:hover,
  .pg-principles li:hover,
  .pg-faq:hover,
  .pg-next:hover,
  .pg-next-card:hover,
  .pg-compare-card.is-new:hover,
  .pg-quote:hover,
  .pg-form-wrap:hover {
    transform: none;
    filter: none;
  }
}
.pg-badge {
  display: inline-block;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.pg-h3 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #1e1b4b;
  margin-bottom: 1.25rem;
}
.pg-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .pg-compare { grid-template-columns: 1fr 1fr; }
}
.pg-compare-card {
  border-radius: 1.25rem;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 28px rgba(49, 46, 129, 0.06);
}
.pg-compare-card h3 {
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.pg-compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 600;
}
.pg-compare-card.is-old {
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #64748b;
}
.pg-compare-card.is-old h3 { color: #64748b; }
.pg-compare-card.is-new {
  background: #312e81;
  color: #e0e7ff;
  border: 2px solid #4338ca;
}
.pg-compare-card.is-new h3 { color: #fff; }
.pg-stat {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 2px solid #c7d2fe;
}
@media (min-width: 768px) {
  .pg-stat { grid-template-columns: 160px 1fr; padding: 2rem; }
}
.pg-stat-num {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: #4f46e5;
  text-align: center;
}
.pg-stat-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  color: #6366f1;
  margin-bottom: 0.35rem;
}
.pg-stat-h {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1e1b4b;
  margin-bottom: 0.5rem;
}
.pg-stat-b {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  font-weight: 500;
}
.pg-pillar {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 2px solid #e0e7ff;
}
.pg-pillar-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #eef2ff;
  color: #4338ca;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}
.pg-pillar h4 {
  font-weight: 900;
  color: #1e1b4b;
  margin-bottom: 0.4rem;
}
.pg-pillar p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
  font-weight: 600;
}
.pg-road {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .pg-road { grid-template-columns: repeat(4, 1fr); }
}
.pg-road li {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1rem;
  border-top: 4px solid #6366f1;
  box-shadow: 0 8px 20px rgba(49, 46, 129, 0.05);
}
.pg-road-age {
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  color: #4f46e5;
  margin-bottom: 0.4rem;
}
.pg-road p {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}
.pg-wb {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  border: 2px solid #e0e7ff;
}
.pg-wb h4 {
  font-weight: 900;
  color: #1e1b4b;
}
.pg-wb-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6366f1;
  margin: 0.25rem 0 0.75rem;
}
.pg-wb ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.7;
}
.pg-principles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.pg-principles li {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  border-left: 5px solid #4f46e5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pg-principles strong {
  color: #1e1b4b;
  font-size: 0.95rem;
}
.pg-principles span {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.5;
}
.pg-quote {
  margin: 0;
  background: #312e81;
  color: #eef2ff;
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.pg-quote p {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}
.pg-quote cite {
  font-style: normal;
  font-size: 0.8rem;
  color: #a5b4fc;
  font-weight: 700;
}
.pg-form-wrap {
  background: linear-gradient(145deg, #312e81, #4338ca);
  border-radius: 1.75rem;
  padding: 1.75rem 1.5rem;
  color: #fff;
  box-shadow: 0 20px 40px rgba(49, 46, 129, 0.25);
}
@media (min-width: 768px) {
  .pg-form-wrap { padding: 2.25rem; }
}
.pg-form-step {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.18);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.pg-form-step-dark {
  background: #e0e7ff;
  color: #3730a3;
}
.pg-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  border: 0;
  background: #fff;
  color: #1e1b4b;
  font-size: 0.875rem;
  font-weight: 700;
}
.pg-input:focus {
  outline: 2px solid #a5b4fc;
}
.pg-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #fbbf24;
  color: #1e1b4b;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 0;
  cursor: pointer;
}
.pg-submit:hover { background: #f59e0b; }
.pg-lead-done {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: #bbf7d0;
  line-height: 1.5;
}
.pg-lead-done-sub {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c7d2fe;
  line-height: 1.5;
}
.pg-lead-market {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #fbbf24;
  color: #1e1b4b;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.95rem 1.2rem;
  border-radius: 0.85rem;
  text-align: center;
}
.pg-lead-market:hover {
  background: #f59e0b;
  color: #1e1b4b;
}
.pg-next {
  background: #fff;
  border: 2px dashed #a5b4fc;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.pg-next.is-highlight {
  border-style: solid;
  border-color: #4f46e5;
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.18);
}
.pg-next-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 0.5rem;
  border-radius: 1rem;
  background: #eef2ff;
  color: #312e81;
  font-weight: 800;
  font-size: 0.8rem;
}
.pg-next-card i { color: #4f46e5; }
.pg-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #4f46e5;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
}
.pg-next-btn:hover { background: #4338ca; color: #fff; }
.pg-faq {
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}
.pg-faq summary {
  font-weight: 800;
  font-size: 0.9rem;
  color: #1e1b4b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary i { color: #94a3b8; font-size: 0.7rem; }
.pg-faq p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.65;
  font-weight: 600;
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid #eef2ff;
}
