html, body {
  height: 100%;
  background: #ffffff;
  color: #191f28;
}

.toss-onboard {
  min-height: 100svh;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top Minimal Bar: Back + Thin Progress */
.onboard-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.onboard-back {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 8px 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #4e5968;
  cursor: pointer;
  letter-spacing: -0.02em;
}

.onboard-back:hover {
  color: #191f28;
}

.onboard-back svg {
  width: 22px;
  height: 22px;
}

.onboard-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-family: "Exo 2", "Pretendard Variable", Pretendard, sans-serif;
  font-style: italic;
  line-height: 1;
}

.onboard-logo__solar {
  font-size: 16px;
  font-weight: 800;
  padding: 1px 3px 1px 0;
  background: linear-gradient(180deg, #215191 8%, #0d2956 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.onboard-logo__insight {
  font-size: 14.8px;
  font-weight: 600;
  padding: 1px 3px 1px 0;
  background: linear-gradient(180deg, #1e6fb8 8%, #0b3670 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.onboard-progress {
  width: 100%;
  height: 1.5px;
  background: #eef1f5;
  border-radius: 999px;
  overflow: hidden;
}

.onboard-progress__fill {
  height: 100%;
  width: 20%;
  background: #3182f6;
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Stage */
.onboard-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 0 14px;
}

.onboard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.onboard-step[hidden] {
  display: none !important;
}

.onboard-step:not([hidden]) {
  animation: tossStepIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tossStepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboard-copy {
  text-align: left;
}

.onboard-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.035em;
  color: #191f28;
  word-break: keep-all;
}

.onboard-blue {
  color: #3182f6;
}

.onboard-mark {
  display: inline;
  color: #191f28;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, rgba(56, 155, 255, 0.22) 60%);
  padding: 0 3px;
  border-radius: 2px;
}

.onboard-muted {
  color: #191f28;
  font-weight: 700;
}

.onboard-sub {
  margin: 12px 0 0;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.5;
  color: #6b7684;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

/* Center Floating 3D Icon + Trust Badge */
.onboard-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 10px 0;
}

.onboard-icon {
  width: 196px;
  height: 196px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 34px rgba(34, 114, 235, 0.18));
  animation: iconFloat 3.6s ease-in-out infinite;
}

/* 공장 지붕 시공 이미지 + 박스 없이 위에 크게 떠 있는 0원 3D 아이콘 */
.onboard-factory-zero {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: visible;
  margin: 8px 0 2px;
}

.onboard-factory-photo {
  width: 100%;
  height: 152px;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f6;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.12);
}

.onboard-factory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.onboard-factory-zero-badge {
  position: absolute;
  right: 8px;
  top: -40px;
  width: 132px;
  height: 132px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  pointer-events: none;
}

.onboard-factory-zero-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.28));
  animation: iconFloat 3.6s ease-in-out infinite;
}

/* 한국전력공사 vs 솔라인사이트 로고 비교 카드 (살짝 겹치는 레이어 구조) */
.onboard-kepco-overlap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.onboard-kepco-left {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid #e5e8eb;
  background: linear-gradient(90deg, #f2f4f6 0%, #f2f4f6 58%, rgba(229, 232, 235, 0.85) 100%);
  padding: 14px 22px 14px 12px;
  text-align: center;
}

.onboard-kepco-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 5px;
}

.onboard-kepco-logo {
  height: 15px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
}

.onboard-kepco-brand span {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7684;
  letter-spacing: -0.025em;
}

.onboard-kepco-left-main {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.3;
  font-weight: 600;
  color: #6b7684;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.onboard-kepco-left-sub {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;
  color: #8b95a1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.onboard-kepco-right {
  position: relative;
  z-index: 2;
  flex: 1.08;
  margin-left: -18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 2px solid rgba(49, 130, 246, 0.85);
  background: #ffffff;
  padding: 17px 14px;
  text-align: center;
  box-shadow:
    0 12px 26px -10px rgba(49, 130, 246, 0.18),
    0 4px 12px rgba(15, 23, 42, 0.05);
}

.onboard-kepco-right-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eff6ff;
  font-family: "Exo 2", "Pretendard Variable", Pretendard, sans-serif;
  font-style: italic;
  line-height: 1;
}

.onboard-kepco-right-brand .b-solar {
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
}

.onboard-kepco-right-brand .b-insight {
  font-size: 11.5px;
  font-weight: 600;
  color: #2563eb;
}

.onboard-kepco-right-main {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  color: #3182f6;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.onboard-kepco-right-sub {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: #333d4b;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.onboard-kepco-right-sub strong {
  color: #3182f6;
  font-weight: 700;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.onboard-sgi {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
}

.onboard-sgi img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.onboard-sgi span {
  font-size: 17px;
  font-weight: 700;
  color: #333d4b;
  letter-spacing: -0.025em;
}

.onboard-zero-box {
  margin-top: 8px;
  background: #f4f7fc;
  border: 1px solid #e1eaf6;
  border-radius: 15px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.onboard-zero-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.onboard-zero-box em {
  font-style: normal;
  color: #3182f6;
  font-weight: 800;
}

.onboard-zero-sep {
  width: 1px;
  height: 14px;
  background: #cfd8e6;
}

/* 공통 말풍선 (상환 리스크 제로 / 확정 임대수익 안내) */
.onboard-risk-bubble {
  position: relative;
  margin-top: 8px;
  padding: 16px 26px;
  border-radius: 20px;
  background: #f4f8ff;
  border: 1.5px solid #d4e4ff;
  box-shadow: 0 14px 30px -10px rgba(49, 130, 246, 0.14);
  font-size: 16.5px;
  line-height: 1.46;
  font-weight: 600;
  color: #333d4b;
  letter-spacing: -0.03em;
  text-align: center;
  word-break: keep-all;
}

.onboard-risk-bubble::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #f4f8ff;
  border-top: 1.5px solid #d4e4ff;
  border-left: 1.5px solid #d4e4ff;
  transform: translateX(-50%) rotate(45deg);
}

.onboard-risk-bubble strong {
  display: block;
  margin-top: 2px;
  font-size: 17.5px;
  font-weight: 800;
  color: #3182f6;
}

/* rental.html Step 1: 빈 지붕 Before -> 태양광 임대 After 비교 */
.onboard-ba-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboard-ba-curve {
  width: 144px;
  height: 32px;
  margin: 0 auto 4px;
  display: block;
  color: #3182f6;
}

.onboard-ba-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.onboard-ba-card {
  position: relative;
  height: 158px;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid #e5e8eb;
}

.onboard-ba-card.is-after {
  border: 2px solid #3182f6;
  box-shadow: 0 12px 26px -10px rgba(49, 130, 246, 0.25);
}

.onboard-ba-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onboard-ba-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.onboard-ba-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.onboard-ba-tag.is-blue {
  background: #3182f6;
}

.onboard-ba-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  margin: 0;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* finance.html: 아이콘 없이 기관 로고 + 핵심 혜택만 심플하게 보여주는 레이아웃 */
.onboard-logo-benefit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.onboard-inst-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.onboard-inst-head img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.onboard-inst-head span {
  font-size: 16px;
  font-weight: 700;
  color: #4e5968;
  letter-spacing: -0.025em;
}

.onboard-benefit-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.onboard-benefit-box {
  background: #f4f7fc;
  border: 1px solid #e1eaf6;
  border-radius: 18px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.onboard-benefit-box span {
  font-size: 14.5px;
  font-weight: 600;
  color: #6b7684;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.onboard-benefit-box strong {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #3182f6;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

/* Step 2: 배경 박스 없이 초심플 비교 그래프 + 실선 곡선 화살표 */
.onboard-vchart-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 4px 0 0;
  background: transparent;
  border: 0;
}

.onboard-vchart-curve {
  width: 148px;
  height: 36px;
  margin: 0 auto 6px;
  display: block;
  color: #3182f6;
}

.onboard-vchart-plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  padding: 0 8px 16px;
  border-bottom: 1.5px solid #e5e8eb;
}

.onboard-vbar-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.onboard-vbar-gray {
  width: 128px;
  height: 176px;
  border-radius: 16px 16px 6px 6px;
  background: #e5e8eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4e5968;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.onboard-vbar-split {
  width: 128px;
  height: 176px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.onboard-vbar-save {
  height: 62px;
  border-radius: 14px;
  background: #eaf2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3182f6;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.onboard-vbar-lease {
  flex: 1;
  border-radius: 14px 14px 6px 6px;
  background: #3182f6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.onboard-vbar-bottom-label {
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #8b95a1;
  white-space: nowrap;
}

.onboard-vbar-bottom-label.is-dark {
  color: #191f28;
  font-weight: 700;
}

/* Step 4 Simple 2-Photo O&M Visual + Own Plant Operation Card Below */
.onboard-om-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onboard-om-pair {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.onboard-om-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #f2f4f6;
}

.onboard-om-photo--wide {
  aspect-ratio: 16 / 6.6;
}

.onboard-om-photo img,
.onboard-om-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onboard-om-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.74) 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Step 5 Clean Toss Inputs */
.onboard-fields {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.onboard-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboard-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #4e5968;
  letter-spacing: -0.02em;
}

.onboard-addr-row {
  display: flex;
  gap: 8px;
}

.onboard-input {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 1px solid #e5e8eb;
  background: #f9fafb;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #191f28;
  outline: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.onboard-input::placeholder {
  color: #9ca3af;
}

.onboard-input:focus {
  background: #ffffff;
  border-color: #3182f6;
}

.onboard-addr-btn {
  height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #d1d6db;
  background: #ffffff;
  color: #333d4b;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

/* Bottom Single Primary Toss CTA Button */
.onboard-bottom {
  padding-top: 8px;
}

.onboard-cta {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: #3182f6;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.12s ease;
}

.onboard-cta:hover {
  background: #1b64da;
}

.onboard-cta:active {
  transform: scale(0.99);
}

@media (max-width: 640px) {
  .toss-onboard {
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .onboard-title {
    font-size: clamp(21.5px, 6vw, 25px);
  }
  .onboard-sub {
    font-size: clamp(13.5px, 3.85vw, 15px);
  }
  .onboard-icon {
    width: 168px;
    height: 168px;
  }
  .onboard-zero-box {
    padding: 12px 16px;
    gap: 10px;
    font-size: 13.5px;
  }
  .onboard-inst-head img {
    height: 38px;
  }
  .onboard-inst-head span {
    font-size: 15px;
    white-space: nowrap;
  }
  .onboard-benefit-grid {
    gap: 10px;
  }
  .onboard-benefit-box {
    padding: 20px 12px;
    border-radius: 16px;
    gap: 6px;
  }
  .onboard-benefit-box span {
    font-size: 13px;
  }
  .onboard-benefit-box strong {
    font-size: 20px;
  }
  .onboard-risk-bubble {
    padding: 14px 16px;
    font-size: 14px;
  }
  .onboard-risk-bubble strong {
    font-size: 15px;
  }
  .onboard-om-photo figcaption {
    font-size: 12px;
    padding: 18px 10px 9px;
  }
}
