/* 看圖美化：pro（_build/polish.py） */
body .s-pro {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 100%;
  min-width: 0;
  padding-bottom: var(--sp-8);
}
body .s-pro p { margin: 0; }
body .s-pro h1,
body .s-pro h2 { margin: 0; }

/* ---------- 頂部：關閉鈕與標題 ---------- */
body .s-pro__top {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
body .s-pro__bar {
  display: flex;
  align-items: center;
  margin-top: calc(-1 * var(--sp-6));
  margin-left: calc(-1 * var(--sp-2));
}
body .s-pro__close { color: var(--text-2); }
body .s-pro__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: center;
  align-items: center;
}
body .s-pro__title {
  font-size: var(--fs-title1);
  line-height: var(--lh-title1);
  font-weight: var(--fw-title1);
  letter-spacing: var(--ls-title);
  color: var(--text);
}
body .s-pro__sub {
  max-width: 34ch;
  font-size: var(--fs-callout);
  line-height: var(--lh-callout);
  color: var(--text-2);
  text-wrap: balance;
}

/* ---------- 圖示底座（統一） ---------- */
body .s-pro__feat-icon,
body .s-pro__status-icon,
body .s-pro__promise-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  color: var(--primary);
}
body .s-pro__status-icon,
body .s-pro__promise-icon { border-radius: 50%; }
body .s-pro__feat-icon > svg,
body .s-pro__status-icon > svg,
body .s-pro__promise-icon > svg { flex: none; }

/* ---------- 狀態／亮點／承諾卡：圖示與文字橫向對齊 ---------- */
body .s-pro__status,
body .s-pro__highlight,
body .s-pro__promise {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-align: left;
}
body .s-pro .c-card--hero.s-pro__status,
body .s-pro .c-card--hero.s-pro__highlight {
  background: var(--primary-tint);
  border-color: var(--primary-soft);
  box-shadow: none;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}
body .s-pro__status > div,
body .s-pro__highlight > .s-pro__feat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body .s-pro__status strong,
body .s-pro__highlight strong {
  display: block;
  font-size: var(--fs-body);
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}
body .s-pro__status p,
body .s-pro__highlight p {
  font-size: var(--fs-callout);
  line-height: var(--lh-callout);
  color: var(--text-2);
}
body .s-pro__promise {
  padding: var(--sp-4);
  box-shadow: none;
}
body .s-pro__promise p {
  font-size: var(--fs-callout);
  line-height: var(--lh-callout);
  color: var(--text-2);
}

/* ---------- 區塊標題 ---------- */
body .s-pro__h2 {
  font-size: var(--fs-title2);
  line-height: var(--lh-title2);
  font-weight: var(--fw-title2);
  letter-spacing: var(--ls-title);
  color: var(--text);
  margin-bottom: var(--sp-2);
}

/* ---------- Pro 功能清單 ---------- */
body .s-pro__features {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body .s-pro__feat {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-4) 0;
}
body .s-pro__feat:first-child { padding-top: var(--sp-2); }
body .s-pro__feat:last-child { padding-bottom: 0; }
body .s-pro__feat + .s-pro__feat { border-top: 1px solid var(--divider); }
body .s-pro__feat .s-pro__feat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body .s-pro__feat strong {
  display: block;
  font-size: var(--fs-body);
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}
body .s-pro__feat .s-pro__feat-text > span {
  display: block;
  font-size: var(--fs-callout);
  line-height: var(--lh-callout);
  color: var(--text-2);
}

/* ---------- 免費核心清單 ---------- */
body .s-pro .c-card--flat > .u-text-2 {
  font-size: var(--fs-callout);
  line-height: var(--lh-callout);
  margin-bottom: var(--sp-3);
}
body .s-pro .c-check-list__item {
  align-items: flex-start;
  gap: var(--sp-3);
  min-height: 0;
  padding: var(--sp-3) 0;
  font-size: var(--fs-callout);
  line-height: var(--lh-callout);
  color: var(--text);
  cursor: default;
}
body .s-pro .c-check-list__item > :first-child {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--primary);
}
body .s-pro .c-check-list__item > span:not(:first-child) {
  flex: 1;
  min-width: 0;
}
body .s-pro .c-check-list__item:first-child { padding-top: var(--sp-1); }
body .s-pro .c-check-list__item:last-child { padding-bottom: 0; }

/* ---------- 欄位排版 ---------- */
body .s-pro__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}
body .s-pro__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
}

/* ---------- 方案卡 ---------- */
body .s-pro__products {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
body .s-pro__products .c-product + .c-product { margin-top: 0; }
body .s-pro .c-product {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: var(--sp-3);
  row-gap: 2px;
  align-items: center;
  padding: var(--sp-4);
}
body .s-pro .c-product::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  background: var(--surface);
  box-sizing: border-box;
  transition: border-color var(--dur-1) var(--ease), border-width var(--dur-1) var(--ease);
}
body .s-pro .c-product[aria-checked="true"]::before,
body .s-pro .c-product.is-selected::before {
  border-color: var(--primary);
  border-width: 6px;
}
body .s-pro .c-product__title {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.3;
}
body .s-pro .c-product__sub {
  grid-column: 2;
  grid-row: 2;
  font-size: var(--fs-footnote);
  line-height: 1.4;
  color: var(--text-2);
}
body .s-pro .c-product__price {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: var(--fs-title3);
  font-weight: 700;
}

/* ---------- 購買區 ---------- */
body .s-pro__buy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
body .s-pro__note {
  text-align: center;
  font-size: var(--fs-footnote);
  line-height: var(--lh-footnote);
  color: var(--text-3);
}

/* ---------- 法律說明與連結 ---------- */
body .s-pro__legal {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
body .s-pro__legal .u-footnote {
  font-size: var(--fs-footnote);
  line-height: var(--lh-footnote);
  color: var(--text-3);
  max-width: 62ch;
}
body .s-pro__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-2);
  margin-left: calc(-1 * var(--sp-3));
}
body .s-pro__links .c-btn {
  min-height: var(--tap);
  padding: 0 var(--sp-3);
  font-size: var(--fs-callout);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- 平板／桌面 ---------- */
@media (min-width: 600px) {
  body .s-pro { gap: var(--sp-5); }
  body .s-pro__head { text-align: left; align-items: flex-start; }
  body .s-pro__sub { max-width: 52ch; }
  body .s-pro__bar { margin-top: calc(-1 * var(--sp-4)); }
}
@media (min-width: 720px) {
  body .s-pro__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5);
  }
  body .s-pro__col { gap: var(--sp-5); }
  body .s-pro .c-card { padding: var(--sp-6); }
  body .s-pro .c-card--hero.s-pro__status,
  body .s-pro .c-card--hero.s-pro__highlight { padding-left: calc(var(--sp-6) + 4px); }
  body .s-pro .c-card--flat.s-pro__promise { padding: var(--sp-4) var(--sp-6); }
}
