/**
 * 源頭預處理 — 左三欄步驟 / 右縱向效益
 * 內容區：距瀏覽器左右各 275px（小螢幕自適應）
 */

.pub-section--prep-v2 {
  --prep-v2-content-rail: 275px;
  --prep-v2-rail-gutter: clamp(24px, 5vw, var(--prep-v2-content-rail));
  padding:
    clamp(32px, calc(8vw - 40px), 60px)
    var(--prep-v2-rail-gutter)
    120px !important;
  background: #f6f4f5;
}

.pub-section--prep-v2 .pub-section__inner--prep {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ── Header ── */
.pub-prep-v2__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}

.pub-prep-v2__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 16.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e60012;
}

.pub-prep-v2__eyebrow-mark {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: #e60012;
}

.pub-prep-v2__title {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.33;
  color: #111;
}

.pub-prep-v2__lead {
  margin: 4px 0 0;
  width: 100%;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.65);
}

/* ── 雙欄主體：左步驟三欄 / 右效益縱向 ── */
.pub-prep-v2__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 48px);
  align-items: start;
}

.pub-prep-v2__split-col {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 24px);
  min-width: 0;
}

/* ── 區塊小標 ── */
.pub-prep-v2__subhead {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

/* ── 三步驟：Hims 橫向三卡 ── */
.pub-prep-v2__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 32px);
}

.pub-prep-v2__step {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.pub-prep-v2__step-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #eaeaea;
}

.pub-prep-v2__step-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.pub-prep-v2__step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 2px 0;
}

.pub-prep-v2__step-num {
  margin: 0;
  font-family: Georgia, 'Times New Roman', 'Noto Serif TC', serif;
  font-size: clamp(36px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(17, 17, 17, 0.18);
}

.pub-prep-v2__step-title {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

.pub-prep-v2__step-desc {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.65);
}

/* ── 效益（右欄縱向） ── */
.pub-prep-v2__benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-prep-v2__benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2vw, 22px);
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.pub-prep-v2__benefit-stat {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #df2f2f;
}

.pub-prep-v2__benefit-title {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

.pub-prep-v2__benefit-desc {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(17, 17, 17, 0.65);
}

/* ── 綠點加權誘因（延伸「什麼是綠點？」金幣視覺） ── */
.pub-prep-v2__reward {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(36px, 4vw, 48px);
  padding: clamp(28px, 3.5vw, 36px) clamp(24px, 4vw, 48px);
  overflow: hidden;
  text-align: center;
  background-color: #faf7f2;
  border: 1px solid rgba(212, 168, 67, 0.22);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px rgba(17, 17, 17, 0.05);
}

.pub-prep-v2__reward-pattern {
  position: absolute;
  inset: -12%;
  background-image: url('../assets/points-v2/1.webp');
  background-size: clamp(200px, 22vw, 280px) auto;
  background-repeat: repeat;
  background-position: center center;
  opacity: 0.38;
  pointer-events: none;
}

.pub-prep-v2__reward::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 252, 248, 0.88) 42%,
    rgba(255, 255, 255, 0.72) 100%
  );
  pointer-events: none;
}

.pub-prep-v2__reward-text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 40em;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #111;
}

.pub-prep-v2__reward-em {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  font-weight: 700;
  color: #c41e1e;
}

/* ── 1024px+ 雙欄 ── */
@media (min-width: 1024px) {
  .pub-prep-v2__lead {
    max-width: 100%;
  }

  .pub-prep-v2__split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: clamp(28px, 3vw, 40px);
    align-items: start;
  }

  .pub-prep-v2__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 20px);
  }

  .pub-prep-v2__step-body {
    padding: 14px 0 0;
  }
}

/* ── 1200px+ 固定左右 275px ── */
@media (min-width: 1200px) {
  .pub-section--prep-v2 {
    --prep-v2-rail-gutter: var(--prep-v2-content-rail);
  }
}

/* ── 1440px+ ── */
@media (min-width: 1440px) {

  .pub-prep-v2__split {
    gap: 48px;
  }

  .pub-prep-v2__split {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .pub-prep-v2__steps {
    gap: 20px;
  }

  .pub-prep-v2__step-title {
    font-size: 18px;
  }

  .pub-prep-v2__step-desc,
  .pub-prep-v2__benefit-desc {
    font-size: 16px;
  }
}

/* ── 768–1023 步驟三欄（效益仍在下方） ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .pub-prep-v2__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .pub-prep-v2__lead {
    max-width: 100%;
  }
}

/* ── 320px 微調 ── */
@media (max-width: 359px) {
  .pub-prep-v2__step-body {
    padding-left: 0;
    padding-right: 0;
  }
}
