/* ============================================
   放大製作 v2 方案頁（2026-10-27 預覽）
   - 方案比較板：四張方案卡＋比較表共用同一組欄位，往下看就是逐項比較
   - 計價細節：原本一大塊小字改成可展開的問答
   - 合作流程：捲動敘事，左邊固定的聲波隨步驟一格格放大
   - 單項合作：拿掉 emoji 與框框，改成細線欄
   依賴 layout-wide.css（寬度）與 motion.css（深淺色變數）
   ============================================ */

/* ---------- 頁首：加跳轉 ---------- */
.plans-head { padding: clamp(56px, 6vw, 96px) 0 clamp(40px, 4vw, 64px); }
.plans-head .wrap { display: grid; gap: 18px; }
@media (min-width: 1100px) {
  .plans-head .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }
  .plans-head .breadcrumb, .plans-head h1 { grid-column: 1; }
  .plans-head .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
  .plans-head .jump { grid-column: 1 / -1; }
}
.plans-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem) !important; margin: 6px 0 0 !important; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jump a {
  text-decoration: none; font-size: 0.86rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 100px; padding: 6px 16px;
  transition: background .15s, border-color .15s;
}
.jump a:hover { background: var(--bg-hover); border-color: var(--ink-soft); }

/* ---------- 方案比較板 ---------- */
.pboard { --cols: minmax(150px, 0.72fr) repeat(4, minmax(0, 1fr)); --gap: clamp(12px, 1.4vw, 20px); }
.pboard-cards { display: grid; grid-template-columns: var(--cols); column-gap: var(--gap); align-items: stretch; }
.pboard-corner { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 6px; }
.pboard-corner h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.35; }
.pboard-corner p { font-size: 0.86rem; color: var(--ink-soft); margin-top: 8px; }

.pboard .plan { padding: 22px 20px 20px; gap: 12px; box-shadow: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pboard .plan:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pboard .plan h3 { font-size: 1.02rem; line-height: 1.45; }
.pboard .plan h3 em { display: block; font-style: normal; font-weight: 600; font-size: 0.86rem; color: var(--ink-soft); margin-top: 2px; }
.pboard .plan .plan-price { font-size: clamp(1.45rem, 1.9vw, 1.85rem); line-height: 1.1; }
.pboard .plan .plan-price small { display: block; margin-top: 4px; }
.pboard .plan .fit { font-size: 0.86rem; }
.pboard .plan-shot { margin: 0; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-hover); display: flex; gap: 6px; justify-content: center; }
.pboard .plan-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pboard .plan-shot.duo { padding: 8px; }
.pboard .plan-shot.duo img { width: auto; max-width: 48%; height: 100%; aspect-ratio: 9 / 16; border-radius: 6px; }
.pboard .plan-case { font-size: 0.84rem; font-weight: 600; color: var(--forest-ink, var(--forest)); text-decoration: none; }
.pboard .plan-case:hover { text-decoration: underline; }
.pboard .plan .btn { margin-top: auto; padding-left: 10px; padding-right: 10px; }

/* 比較表：每一列跟上面的卡片用同一組欄 */
.pboard-table { margin-top: 18px; border-top: 1px solid var(--line); }
.pboard-table table { display: block; min-width: 0; }
.pboard-table tbody { display: block; }
.pboard-table tr { display: grid; grid-template-columns: var(--cols); column-gap: var(--gap); border-bottom: 1px solid var(--line); }
.pboard-table tbody tr:hover { background: none; }
.pboard-table th, .pboard-table td { border: none; padding: 15px 12px; font-size: 0.92rem; line-height: 1.55; }
.pboard-table th { font-weight: 700; color: var(--ink-soft); font-size: 0.86rem; padding-left: 0; text-align: left; }
.pboard-table td.no { color: var(--line-strong); }
.pboard-table td.yes::before { content: "✓"; font-weight: 800; color: var(--forest-ink, var(--forest)); }
.pboard-table td.add { font-size: 0.86rem; color: var(--ink-soft); }
.pboard-table td.span { grid-column: 2 / -1; color: var(--ink-soft); }
.pboard-table td b { font-weight: 800; font-size: 1.05rem; }

/* 欄位亮起：滑到哪一欄，那一欄整條（卡片到表格）一起亮 */
.pboard [data-col] { transition: background .18s; border-radius: 10px; }
.pboard[data-hl="1"] td[data-col="1"], .pboard[data-hl="2"] td[data-col="2"],
.pboard[data-hl="3"] td[data-col="3"], .pboard[data-hl="4"] td[data-col="4"] { background: var(--bg-hover); }
.pboard td[data-col="3"] { background: var(--forest-soft); }
.pboard[data-hl="3"] td[data-col="3"] { background: var(--forest-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.pboard-table tr:first-child td[data-col="3"] { border-radius: 0 0 10px 10px; }

/* ---------- 計價細節（可展開） ---------- */
.price-notes { margin-top: clamp(48px, 5vw, 72px); display: grid; gap: 28px; }
@media (min-width: 1000px) { .price-notes { grid-template-columns: minmax(0, 0.72fr) minmax(0, 2.2fr); column-gap: var(--gap, 20px); align-items: start; } }
.price-notes-side h3 { font-size: 1.25rem; font-weight: 800; }
.price-notes-side p { font-size: 0.88rem; color: var(--ink-soft); margin: 8px 0 18px; }
.note-list { display: grid; gap: 0 clamp(16px, 2vw, 28px); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .note-list { grid-template-columns: 1fr 1fr; } }
.note-item { border-bottom: 1px solid var(--line); }
.note-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px;
  padding: 18px 36px 18px 0; position: relative; font-weight: 700;
}
.note-item summary::-webkit-details-marker { display: none; }
.note-item summary .fig {
  margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--mark-bg, var(--volt-mark)); color: var(--mark-fg, var(--ink)); padding: 0 8px; border-radius: 6px; font-size: 0.92rem;
}
.note-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest-soft); color: var(--forest-ink, var(--forest)); font-size: 1rem; line-height: 1;
  transition: transform .2s;
}
.note-item[open] summary::after { content: "−"; }
.note-item p { font-size: 0.9rem; color: var(--ink-soft); padding: 0 0 18px; max-width: 36em; }

/* ---------- 合作流程：捲動敘事 ---------- */
#workflow .story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 120px); }
.story-pin { position: sticky; top: calc(50vh - 170px); align-self: start; height: 340px; display: flex; flex-direction: column; justify-content: center; }
.story-count { font-variant-numeric: tabular-nums; line-height: 1; }
.story-count b { font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 800; letter-spacing: -0.04em; color: var(--forest-ink, var(--forest)); }
.story-count span { font-size: 1.2rem; font-weight: 700; color: var(--ink-soft); margin-left: 8px; }
.story-title { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; margin-top: 10px; min-height: 1.5em; }
.story-bars { display: flex; align-items: center; gap: 5px; height: 110px; margin-top: 26px; }
.story-bars i {
  flex: 1; border-radius: 4px; background: var(--forest-ink, var(--forest)); opacity: .85;
  height: calc(var(--h) * (12% + 88% * var(--p, 0)));
  transition: height .35s cubic-bezier(.2, .8, .2, 1);
}
.story-bars i:nth-child(4n+2) { background: var(--wave-b, var(--volt-mark)); opacity: 1; }
.story-cap { font-size: 0.82rem; color: var(--ink-soft); margin-top: 12px; }

.story-steps { list-style: none; padding: 12vh 0; }
.story-step { min-height: 42vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .4s; }
.story-step.on { opacity: 1; }
.story-step .n { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: .14em; color: var(--forest-ink, var(--forest)); }
.story-step h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; margin: 8px 0 12px; line-height: 1.3; }
.story-step p { font-size: 1.05rem; color: var(--ink-soft); max-width: 24em; }
.story-step .btn { align-self: flex-start; margin-top: 22px; }

@media (max-width: 860px) {
  #workflow .story { grid-template-columns: 1fr; }
  .story-pin { display: none; }
  .story-steps { padding: 0; border-left: 2px solid var(--line); margin-left: 6px; }
  .story-step { min-height: 0; opacity: 1; padding: 0 0 34px 26px; position: relative; }
  .story-step::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--forest-ink, var(--forest)); }
  .story-step h3 { font-size: 1.3rem; margin: 4px 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .story-step { opacity: 1; } }

/* ---------- 單項合作：細線欄 ---------- */
.offer-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(36px, 3.5vw, 56px) clamp(24px, 3vw, 48px); }
.offer-cols .offer {
  grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left;
  border: none; border-top: 2px solid var(--ink); border-radius: 0; background: none; box-shadow: none; padding: 22px 0 0;
}
.offer-cols .offer:nth-child(n+4) { grid-column: span 3; }
.offer-cols .offer:hover { box-shadow: none; }
.offer-cols .offer .k { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: .14em; color: var(--ink-soft); text-transform: uppercase; }
.offer-cols .offer h3 { font-size: 1.3rem; margin: 6px 0 10px; }
.offer-cols .offer p { font-size: 0.94rem; max-width: 30em; }
.offer-cols .offer .offer-tags { margin-top: 14px; }
.offer-cols .offer .go { margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--forest-ink, var(--forest)); text-decoration: none; }
.offer-cols .offer .go:hover { text-decoration: underline; }
@media (max-width: 1000px) { .offer-cols { grid-template-columns: 1fr 1fr; } .offer-cols .offer, .offer-cols .offer:nth-child(n+4) { grid-column: span 1; } }
@media (max-width: 640px) { .offer-cols { grid-template-columns: 1fr; } }

/* ---------- 常見問題：左標題右清單 ---------- */
@media (min-width: 1000px) {
  .faq-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); column-gap: clamp(40px, 6vw, 110px); align-items: start; }
  .faq-split .section-head { display: block; position: sticky; top: 120px; margin: 0; }
  .faq-split .section-head p { margin-top: 14px; }
}
.faq-split .faq-list { gap: 0; border-top: 1px solid var(--line); }
.faq-split .faq-item { border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: none; }
.faq-split .faq-item summary { padding: 22px 48px 22px 0; }
.faq-split .faq-item summary::after { right: 0; }
.faq-split .faq-item[open] summary { border-bottom: none; }
.faq-split .faq-answer { padding: 0 0 22px; }

/* ---------- 手機：方案卡左右滑，比較表橫捲 ---------- */
@media (max-width: 960px) {
  .pboard-corner { display: none; }
  .pboard-cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 calc(var(--gutter) * -1); padding: 16px var(--gutter) 10px; scrollbar-width: none;
  }
  .pboard-cards::-webkit-scrollbar { display: none; }
  .pboard-cards .plan { flex: 0 0 min(78%, 320px); scroll-snap-align: center; }
  .pboard-table { overflow-x: auto; margin: 22px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
  .pboard-table table { min-width: 640px; }
  .pboard-table th { position: sticky; left: 0; background: var(--page); z-index: 1; }
  .swipe-hint { display: block !important; }
}
@media (max-width: 560px) {
  .pboard-cards { margin: 0 -20px; padding: 16px 20px 10px; }
  .pboard-table { margin: 22px -20px 0; padding: 0 20px; }
}
.swipe-hint { display: none; font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
