/* ============================================================================
   「先免費看看像不像」流程頁（start.html／zh/開始.html 共用）。

   六步（飼主 9/5 定的）：形象設定 → 上傳照片 → 形象預覽 → 確認方案付款 → 選擇動作 → 製作中
   版面：左邊一條直的步驟軌道，右邊一張紙。標題襯線體，跟首頁方案卡同一套。
   排法是 流程樣品.html 飼主看過點頭的那版；改這裡記得樣品不用跟著改（樣品只是給人看的）。
   .top／.btn 是從 index.html 抄的，改那邊記得改這邊。邏輯在 開始.js。
   ============================================================================ */

/* ⚠️ 沒有這行的話 .pv{display:grid} 這種 class 規則會蓋掉瀏覽器內建的 [hidden]，hidden 屬性形同虛設（踩過：等預覽和看預覽兩塊同時出現） */
[hidden]{ display:none !important }
.serif{ font-family:"Noto Serif TC",serif; font-weight:900 }
.en{ font-family:"Fraunces",serif; font-style:italic; color:var(--muted); font-weight:400 }

/* ---------------------------------------------------------------- 頂端（抄自 index.html） */
.top{ position:fixed; top:0; left:0; right:0; z-index:21; height:var(--navH);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:0 28px 0 max(28px, calc((100vw - 1120px) / 2 + 28px)) }
.top .logo{ display:flex; align-items:center; gap:10px }
.top .logo img{ height:48px; width:auto }
.top .logo a{ text-decoration:none }
.top .lang{ margin-left:8px; font-size:11.5px; letter-spacing:1px; color:var(--muted); border:1px solid var(--line);
  border-radius:999px; padding:4px 10px; text-decoration:none; font-weight:700; transition:color .2s, border-color .2s }
.top .lang:hover{ color:var(--accent); border-color:var(--accent) }
.top .links{ display:flex; gap:22px; font-size:14px; color:var(--muted); align-items:center }
.top .links a{ text-decoration:none; color:inherit; transition:color .2s }
.top .links a:hover{ color:var(--accent) }
.top .me{ display:none; align-items:center; gap:8px; font-size:13px }
.top .me.on{ display:flex }
.top .me img{ width:26px; height:26px; border-radius:50%; border:1px solid var(--line) }
.top .me button{ border:0; background:none; color:var(--muted); font:inherit; font-size:12px; cursor:pointer; padding:0 }
.top .me button:hover{ color:var(--accent) }

/* ---------------------------------------------------------------- 按鈕（抄自 index.html） */
.btn{ display:inline-block; border:0; cursor:pointer; text-decoration:none; color:var(--on-accent);
  padding:13px 28px; border-radius:16px; font-size:15.5px; font-weight:700; font-family:inherit; line-height:1.3; text-align:center;
  background:linear-gradient(180deg,#D8705A 0%,#C2553D 55%,#B04A34 100%);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.22), 0 8px 18px -8px rgba(140,58,40,.7);
  transition:transform .18s cubic-bezier(.34,1.4,.64,1), box-shadow .18s, filter .18s, opacity .18s }
.btn span{ display:block; font-size:11px; font-weight:400; opacity:.85 }
.btn:hover{ transform:translateY(-2px); filter:brightness(1.04) }
.btn:active{ transform:translateY(2px); filter:none; box-shadow:inset 0 3px 6px rgba(0,0,0,.28), 0 2px 6px -4px rgba(140,58,40,.6) }
.btn.ghost{ color:var(--text); background:linear-gradient(180deg,#FFFBF4 0%,#F6EBDB 60%,#EBDCC5 100%);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.9), inset 0 -4px 0 rgba(74,58,48,.14), 0 8px 18px -8px rgba(74,58,48,.35) }
.btn.ghost:hover{ filter:none }
.btn.ghost:active{ box-shadow:inset 0 3px 6px rgba(74,58,48,.18), 0 2px 6px -4px rgba(74,58,48,.3) }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; filter:none;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.12) }
.link{ color:var(--muted); font-size:13px; text-decoration:underline; text-underline-offset:3px; cursor:pointer; background:none; border:0; font-family:inherit; padding:0 }
.link:hover{ color:var(--accent) }
.link:disabled{ opacity:.4; cursor:not-allowed }

/* Google 登入那顆：白底、左邊一個 G。長得像 Google 的客人才敢按 */
.gbtn{ display:inline-flex; align-items:center; gap:12px; cursor:pointer; padding:12px 22px 12px 16px; border-radius:12px;
  border:1px solid var(--line); background:#FFFDF9; color:var(--text); font:inherit; font-size:15.5px; font-weight:700;
  box-shadow:0 6px 16px -10px rgba(74,58,48,.45); transition:transform .15s, box-shadow .15s }
.gbtn:hover{ transform:translateY(-1px); box-shadow:0 10px 20px -10px rgba(74,58,48,.5) }
.gbtn svg{ width:20px; height:20px; flex:none }

/* ---------------------------------------------------------------- 版面 */
.wrap{ max-width:1040px; margin:0 auto; padding:36px 24px 110px }
h1{ font-size:28px; line-height:1.3; margin:0 0 4px }
.sub{ color:var(--muted); margin:0 0 30px; font-size:14.5px }

.paper{ background:var(--sheet); border-radius:20px; padding:32px 36px;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -24px rgba(90,60,40,.45), 0 0 0 1px rgba(228,211,188,.6) }
.paper h2{ font-size:24px; margin:0 0 4px; letter-spacing:.5px }
.paper .lead{ color:var(--muted); margin:0 0 24px; font-size:14px }
.pane{ display:none } .pane.on{ display:block }
.foot{ display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:28px; padding-top:20px; border-top:1px solid var(--line) }
.foot small{ color:var(--muted); font-size:12.5px }
.hint{ text-align:center; color:var(--muted); font-size:13px; margin-top:12px; min-height:1.5em }
.hint.bad{ color:var(--accent); font-weight:700 }

/* 登入牆 */
.gate{ text-align:center; padding:26px 0 14px }
.gate p{ color:var(--muted); margin:0 auto 22px; font-size:15px; max-width:440px }
.gate small{ display:block; color:var(--muted); font-size:12.5px; margin-top:16px }

/* 一步 = 左軌道 + 右紙 */
.flow{ display:grid; grid-template-columns:200px 1fr; gap:34px; align-items:start }
.rail{ position:relative; padding:6px 0; position:sticky; top:calc(var(--petPad) + 20px) }
.rail::before{ content:""; position:absolute; left:15px; top:14px; height:calc(6 * 50px); width:1.5px; background:var(--line) }
.rail .r{ position:relative; display:flex; align-items:center; gap:12px; padding:9px 0; color:var(--muted); font-size:13.5px; font-weight:700; min-height:50px; box-sizing:border-box }
.rail .r i{ font-style:normal; width:32px; height:32px; border-radius:50%; background:var(--paper); border:1.5px solid var(--line);
  display:inline-flex; align-items:center; justify-content:center; font-size:12px; flex:none; z-index:1 }
.rail .r.done{ color:var(--text) } .rail .r.done i{ background:var(--kraft); border-color:var(--kraft); color:var(--text) }
.rail .r.done i::before{ content:"✓" } .rail .r.done i b{ display:none }
.rail .r.on{ color:var(--text); font-size:15px } .rail .r.on i{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); box-shadow:0 0 0 4px #F6E3DC }
.rail .r small{ display:none; font-weight:400; font-size:11px; color:var(--muted); line-height:1.3 }
.rail .r.on small{ display:block }
.rail .who{ margin-top:22px; padding:12px 14px; background:var(--sub); border-radius:12px; font-size:12.5px; color:var(--muted); line-height:1.5 }
.rail .who:empty{ display:none }
.rail .who b{ color:var(--text) }
.rail .link{ margin-top:12px; display:block }

/* 第 1 步 */
.f label{ display:block; font-size:13px; font-weight:700; margin:0 0 6px }
.f input{ width:100%; box-sizing:border-box; padding:12px 16px; border-radius:12px; border:1px solid var(--line); background:var(--card); font:inherit; font-size:17px; outline:none }
.f input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px #F6E3DC }
.f .row{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:22px; align-items:end }   /* 名字、貓狗、公母（2026-09-05 加公母） */
.seg{ display:flex; border:1.5px solid var(--line); border-radius:12px; overflow:hidden; background:var(--card) }
.seg button{ flex:1; border:0; background:transparent; font:inherit; font-weight:700; padding:9px; cursor:pointer; color:var(--muted); display:flex; align-items:center; justify-content:center; gap:8px }
.seg button img{ width:30px; height:30px }
.seg button[aria-pressed="true"]{ background:#F6E3DC; color:var(--text) }
.seg button+button{ border-left:1.5px solid var(--line) }
.note{ margin-top:22px; padding:14px 18px; border-radius:12px; background:var(--sub); font-size:13.5px; color:var(--muted); display:flex; gap:14px; align-items:center }
.note img{ width:56px; height:56px; object-fit:contain; flex:none }
.note b{ color:var(--text) }

/* 第 2 步 */
.shots{ display:grid; grid-template-columns:1.4fr 1fr; gap:22px }
.slot{ border:2px dashed var(--line); border-radius:16px; background:var(--card); display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; color:var(--muted); font-size:13px; padding:16px; position:relative; overflow:hidden; cursor:pointer; transition:border-color .15s, background .15s }
.slot:hover, .slot.over{ border-color:var(--accent); background:#F6E3DC }
.slot.has{ border-style:solid; cursor:default }
.slot.main{ aspect-ratio:1 }
.slot img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:none }
.slot.has img{ display:block }
.slot .tag{ position:absolute; left:12px; top:12px; background:var(--accent); color:var(--on-accent); font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; z-index:1 }
.slot b{ color:var(--text); font-size:15px; display:block }
.slot .x{ position:absolute; top:8px; right:8px; width:26px; height:26px; border-radius:50%; border:0; background:rgba(74,58,48,.75); color:#fff; cursor:pointer; font-size:15px; line-height:1; padding:0; display:none; z-index:1 }
.slot.has .x{ display:block }
.slot .x:hover{ background:var(--accent) }
.slot input{ display:none }
.side .grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
.side .slot{ aspect-ratio:1; padding:8px; font-size:12px; border-radius:12px }
.side h4{ margin:0 0 8px; font-size:13.5px } .side h4 span{ color:var(--muted); font-weight:400 }
.tips{ margin-top:18px; display:grid; grid-template-columns:1fr 1fr; gap:4px 24px; font-size:13px; color:var(--muted) }
.tips div::before{ content:"✓"; color:var(--accent); margin-right:8px; font-weight:900 }
.tips div.no::before{ content:"✕"; color:#B9A08F }

/* 第 3 步 */
.wait{ text-align:center; padding:30px 0 20px }
.wait .dots{ display:inline-flex; gap:8px; margin-bottom:14px } .wait .dots i{ width:12px; height:12px; border-radius:50%; background:var(--accent); opacity:.35; animation:blink 1.2s infinite }
.wait .dots i:nth-child(2){ animation-delay:.2s } .wait .dots i:nth-child(3){ animation-delay:.4s }
@keyframes blink{ 0%,100%{ opacity:.25 } 50%{ opacity:1 } }
.wait h2{ margin-bottom:6px } .wait p{ color:var(--muted); font-size:14px; margin:0 auto; max-width:460px }
.pv{ display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:center }
.pv .frame{ grid-column:1; grid-row:1; position:relative; border-radius:18px; overflow:hidden; aspect-ratio:1;
  background:radial-gradient(circle at 50% 70%, #FBF3E7 0%, #EFE2CE 70%, #E6D6BC 100%);
  box-shadow:inset 0 0 0 1px rgba(228,211,188,.8), 0 18px 34px -20px rgba(90,60,40,.5) }
.pv .frame img{ position:absolute; inset:6%; width:88%; height:88%; object-fit:contain; filter:drop-shadow(0 18px 18px rgba(90,60,40,.35)) }
.pv .frame .wm{ position:absolute; inset:0; pointer-events:none; opacity:.14; font:900 22px "Noto Serif TC",serif; color:var(--text);
  transform:rotate(-24deg) scale(1.4); display:flex; flex-wrap:wrap; gap:26px 40px; align-content:center; justify-content:center; line-height:1 }
.pv .frame .lo{ position:absolute; left:12px; bottom:12px; background:rgba(74,58,48,.7); color:#fff; font-size:11.5px; padding:3px 10px; border-radius:999px }
.pv .cap{ grid-column:1; grid-row:2; margin:-16px 0 0; text-align:center; font-size:12.5px; color:var(--muted) } .pv .cap b{ color:var(--text) }
.pv .say{ grid-column:2; grid-row:1 / span 2 }
.pv .say h2{ margin-bottom:8px }
.pv .say p{ color:var(--muted); font-size:14px; margin:0 0 18px }
.pv .say .btn{ display:block; width:100%; box-sizing:border-box; margin-bottom:10px }
.pv .say .btn.ghost{ font-size:14px }
.pv .cmp{ display:flex; gap:8px; margin:0 0 18px; align-items:center }
.pv .cmp img{ width:54px; height:54px; object-fit:cover; border-radius:8px; border:1px solid var(--line) }
.pv .cmp small{ color:var(--muted); font-size:11.5px; margin-left:4px }

/* 第 4 步 */
.plans{ display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; align-items:start }
.plan{ border:1.5px solid var(--line); border-radius:16px; padding:18px 18px 16px; background:var(--card); position:relative; cursor:pointer; transition:border-color .15s, background .15s }
.plan:hover{ border-color:#D9B9A8 }
.plan[aria-pressed="true"]{ border-color:var(--accent); background:#FDF3EC; box-shadow:0 0 0 3px rgba(194,85,61,.14) }
.plan .k{ font-size:12px; color:var(--muted) }
.plan .n{ font-size:20px; margin:0 0 6px }
.plan .p{ font-size:26px; font-weight:900 } .plan .p small{ font-size:13px; font-weight:700; margin-right:3px }
.plan .was{ font-size:12px; color:var(--muted); text-decoration:line-through; margin-left:6px }
.plan .d{ font-size:12.5px; color:var(--muted); margin-top:6px; line-height:1.5 } .plan .d b{ color:var(--text) }
.plan .pick{ position:absolute; top:-11px; right:14px; background:var(--accent); color:var(--on-accent); font-size:11px; font-weight:700; padding:2px 10px; border-radius:999px }
.plan .chk{ position:absolute; top:14px; right:14px; width:20px; height:20px; border-radius:50%; border:1.5px solid var(--line) }
.plan[aria-pressed="true"] .chk{ background:var(--accent); border-color:var(--accent) }
.plan[aria-pressed="true"] .chk::after{ content:"✓"; color:#fff; font-size:12px; display:flex; justify-content:center; line-height:19px; font-weight:900 }
.plan details{ margin-top:12px; border-top:1px dashed var(--line); padding-top:8px }
.plan summary{ cursor:pointer; list-style:none; font-size:12.5px; color:var(--accent); font-weight:700; display:flex; align-items:center; gap:6px }
.plan summary::-webkit-details-marker{ display:none }
.plan summary::after{ content:"▾"; font-size:14px; transition:transform .2s } .plan details[open] summary::after{ transform:rotate(180deg) }
.plan h5{ margin:10px 0 4px; font-size:12px; color:var(--muted); font-weight:700 } .plan h5.hi{ color:var(--accent) }
.plan ul{ margin:0; padding:0; list-style:none; font-size:12.5px; line-height:1.6 }
.plan li::before{ content:"✓"; color:var(--muted); margin-right:6px; font-weight:900 } .plan ul.hi li::before{ content:"✦"; color:var(--accent) }
.custom{ margin-top:12px; font-size:13px; color:var(--muted) } .custom a{ color:var(--accent) }
.pay{ display:flex; align-items:center; gap:14px }
.pay .cards{ display:flex; gap:6px; align-items:center; font-size:12px; color:var(--muted) }
.pay .cards i{ font-style:normal; border:1px solid var(--line); border-radius:4px; padding:1px 6px; background:#fff; font-size:10.5px; font-weight:700; letter-spacing:.5px }

/* 第 5 步 */
.acts h4{ margin:0 0 10px; font-size:13.5px; display:flex; align-items:center; gap:10px } .acts h4 span{ color:var(--muted); font-weight:400 }
.acts .cnt{ margin-left:auto; font-size:13px; color:var(--accent); font-weight:900 }
.chips{ display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin-bottom:22px }
.chip{ border:1.5px solid var(--line); border-radius:12px; padding:10px 12px; background:var(--card); font:inherit; font-size:14px; font-weight:700;
  display:flex; align-items:center; gap:8px; cursor:pointer; text-align:left; color:var(--text); flex-wrap:wrap }
/* 說明小字要自己一行：不寫 flex-basis:100% 的話它會跟名字擠在同一行，名字被擠成直的（踩過） */
.chip small{ flex-basis:100%; margin:-4px 0 0 26px }
.chip i{ font-style:normal; width:18px; height:18px; border-radius:5px; border:1.5px solid var(--line); flex:none; display:inline-flex; align-items:center; justify-content:center; font-size:11px }
.chip.lock{ color:var(--muted); cursor:default; background:var(--sub) } .chip.lock i{ background:var(--kraft); border-color:var(--kraft); color:var(--text) } .chip.lock i::before{ content:"✓" }
.chip[aria-pressed="true"]{ border-color:var(--accent); background:#F6E3DC } .chip[aria-pressed="true"] i{ background:var(--accent); border-color:var(--accent); color:#fff } .chip[aria-pressed="true"] i::before{ content:"✓" }
.chip:disabled{ opacity:.45; cursor:not-allowed }
.chip small{ display:block; font-weight:400; font-size:11px; color:var(--muted); line-height:1.2 }
.acts.all .chip{ pointer-events:none }

/* 第 6 步 */
.bar{ height:8px; border-radius:999px; background:var(--sub); overflow:hidden; margin:8px 0 6px } .bar b{ display:block; height:100%; width:0; background:var(--accent); border-radius:999px; transition:width .4s }
.prog{ display:grid; grid-template-columns:1fr 1fr; gap:6px 20px; margin:6px 0 20px }
.prog div{ display:flex; align-items:center; gap:10px; font-size:14px; padding:6px 0; border-bottom:1px dashed var(--line) }
.prog div i{ font-style:normal; width:18px; height:18px; border-radius:50%; border:1.5px solid var(--line); flex:none }
.prog div.ok i{ background:var(--accent); border-color:var(--accent) } .prog div.ok{ color:var(--muted) }
.prog div.now i{ border-color:var(--accent); border-style:dashed; animation:spin 2s linear infinite }
@keyframes spin{ to{ transform:rotate(360deg) } }
.prog .st{ margin-left:auto; font-size:12px; color:var(--muted) }
.mail{ display:flex; align-items:center; gap:14px; padding:14px 18px; background:var(--sub); border-radius:12px; font-size:13.5px; margin-top:18px } .mail img{ width:60px }

@media (max-width:760px){
  .wrap{ padding:22px 16px 80px }
  .paper{ padding:22px 18px; border-radius:18px }
  .flow{ grid-template-columns:1fr }
  .rail{ position:static; display:flex; gap:2px; overflow-x:auto; padding:0 0 8px } .rail::before{ display:none }
  .rail .r{ min-height:0; padding:4px 6px } .rail .r span{ display:none } .rail .r.on span{ display:inline; font-size:13px } .rail .r small,.rail .who,.rail .link{ display:none }
  .shots,.pv,.f .row,.tips,.prog{ grid-template-columns:1fr }
  .pv .say{ grid-column:1; grid-row:auto } .pv .cap{ grid-row:auto }
  .plans{ grid-template-columns:1fr } .chips{ grid-template-columns:1fr 1fr }
  .foot{ flex-wrap:wrap } .pay{ flex-wrap:wrap }
  .top .links a{ display:none }
}

/* 付款前的同意勾選（2026-09-06）：消保法七天鑑賞期，客製化商品要「客人事先同意」才能例外，所以一定要有這個勾、勾了才能付 */
.agree{ display:flex; gap:10px; align-items:flex-start; margin:16px 0 6px; padding:12px 14px; border-radius:12px; background:var(--sub); font-size:13px; line-height:1.6; color:var(--text); cursor:pointer }
.agree input{ margin-top:4px; width:16px; height:16px; flex:none; accent-color:var(--accent) }
.agree a{ color:var(--accent) }
