/* 官網（店家風）：米白、朱紅印章、大字、白話。顏色一律走 tokens.css 的變數。 */
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
em { font-style: normal; }
body {
  font-size: 17px; line-height: 1.85;
  background-image: radial-gradient(rgba(70, 48, 24, .05) 1px, transparent 1.3px); background-size: 17px 17px;
}
.btn-lg { padding: 15px 28px; font-size: 17px; }

/* 印章：小小的朱紅方塊，像蓋在紙上的章 */
.seal {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 4px;
  background: var(--live); color: #fff; font: 700 15px/1 var(--serif); transform: rotate(-5deg); flex: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 30%, transparent);
}

/* 導覽列 */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px max(20px, calc((100% - 1160px) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { position: relative; width: 30px; height: 30px; border-radius: 8px; background: var(--live); flex: none; box-shadow: 0 6px 14px -6px var(--live); }
.brand-mark::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.brand-text { display: grid; line-height: 1.2; }
.brand-text b { font-size: 18px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .12em; white-space: nowrap; }
.nav nav { display: flex; gap: 30px; font-size: 16px; color: var(--muted); }
.nav nav a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav nav a:hover { color: var(--text); border-color: var(--live); }
.nav-cta { display: flex; gap: 10px; align-items: center; flex: none; }

/* 首屏 */
.hero { position: relative; padding: 74px 0 100px; overflow: hidden; isolation: isolate; }
.hero-art {
  position: absolute; inset: 0; z-index: -1; background-repeat: no-repeat; background-position: right center; background-size: cover;
  background-image:
    radial-gradient(520px 380px at 8% 12%, color-mix(in srgb, var(--live) 10%, transparent), transparent 70%),
    radial-gradient(640px 460px at 92% 80%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%);
}
.hero-art.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, transparent 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.kicker { display: flex; align-items: center; margin: 0 0 22px; font-size: 15px; color: var(--muted); letter-spacing: .08em; }
.hero h1 { margin: 0 0 24px; font-size: clamp(40px, 5.6vw, 74px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.hero h1 em, .sec-head h2 em { font-family: var(--serif); font-weight: 700; color: var(--live); }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--body); margin: 0 0 34px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust li { display: grid; gap: 2px; padding-top: 14px; border-top: 2px solid var(--text); }
.trust b { font-size: 16.5px; }
.trust span { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* 範例訂購單 */
.slip-wrap { position: relative; padding: 26px 10px 30px; display: grid; place-items: center; }
.slip {
  position: relative; width: min(420px, 100%); padding: 26px 28px 72px; transform: rotate(1.4deg);
  background: #fffdf8; border: 1px solid var(--line-2); border-radius: 6px;
  box-shadow: 0 30px 50px -28px rgba(70, 48, 24, .55), 0 2px 0 var(--line);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(70, 48, 24, .05) 31px 32px);
}
.slip::before { /* 單據上緣的撕線 */
  content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 8px;
  background: radial-gradient(circle at 7px 8px, var(--bg) 4px, transparent 4.5px) 0 0 / 14px 8px repeat-x;
}
.slip-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 3px double var(--text); }
.slip-head b { font: 700 24px var(--serif); letter-spacing: .3em; }
.slip-head span { font-size: 12.5px; color: var(--muted); }
.slip dl { margin: 0; }
.slip dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dotted var(--line-2); font-size: 15.5px; }
.slip dt { color: var(--muted); }
.slip dd { margin: 0; text-align: right; font-weight: 600; }
.slip dd.amt { font: 800 26px var(--serif); color: var(--live); }
.stamp {
  position: absolute; right: 20px; bottom: 16px; padding: 6px 18px; transform: rotate(-12deg);
  border: 3px double var(--live); border-radius: 8px; color: var(--live); font: 800 30px var(--serif); letter-spacing: .12em; opacity: .88; mix-blend-mode: multiply;
}
.slip-note { position: absolute; left: 28px; bottom: 22px; max-width: 48%; margin: 0; font-size: 12.5px; color: var(--faint); }
.tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 14px 26px -16px rgba(70, 48, 24, .6); }
.tag span:not(.live-dot) { font-size: 11.5px; letter-spacing: .12em; padding: 2px 7px; border-radius: 4px; background: var(--text); color: var(--bg); }
.tag-a { top: 2px; left: -6px; background: #fff3bf; transform: rotate(-4deg); }
.tag-b { bottom: 8px; left: 14px; background: #fff; border: 1px solid var(--line-2); transform: rotate(2deg); }

/* 區塊 */
.sec { padding: 120px 0 0; }
.sec-head { max-width: 780px; margin-bottom: 44px; }
.sec-no { display: flex; align-items: center; margin: 0 0 16px; font-size: 15px; color: var(--muted); letter-spacing: .1em; }
.sec-head h2 { margin: 0 0 16px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
.sec-head p { margin: 0; color: var(--body); font-size: 18px; }
.sec-head p b { color: var(--text); }

/* 麻煩 → 之後 */
.pairs { display: grid; gap: 14px; }
.pair { display: grid; grid-template-columns: 1fr 54px 1fr; align-items: stretch; }
.pair > div { padding: 22px 26px; border-radius: var(--radius); display: flex; gap: 16px; align-items: flex-start; font-size: 18px; }
.pair .before { background: var(--tint-1); border: 1px dashed var(--line-2); color: var(--body); }
.pair .after { background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; }
.pair .arrow { display: grid; place-items: center; color: var(--live); font: 800 26px var(--serif); background: none; border: 0; box-shadow: none; padding: 0; }
.pair .mk { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-top: 3px; }
.pair .before .mk { background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live); }
.pair .after .mk { background: color-mix(in srgb, var(--lime) 16%, transparent); color: var(--lime); }

/* 切換鈕 */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tint-2); border: 1px solid var(--line-2); gap: 2px; flex-wrap: wrap; }
.seg button { padding: 9px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--seg-on-bg); color: var(--seg-on-fg); }

/* 試玩 */
.play { padding: 26px; }
.play-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.play-meta { color: var(--muted); font-size: 14.5px; margin-right: auto; }
.play-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.log-box { margin-top: 12px; min-height: 120px; }
.play-empty { color: var(--faint); font-size: 15px; padding: 30px 12px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; margin-top: 12px; }
.plan-card { margin-top: 12px; display: grid; gap: 10px; }
.plan-card h4 { margin: 0; font-size: 24px; display: flex; align-items: baseline; gap: 10px; }
.plan-card h4 small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-card p { margin: 0; color: var(--body); font-size: 15.5px; }
.kv { display: grid; gap: 2px; margin-top: 4px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 15.5px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 700; }
.play .step-main em, .play .step-ms { display: none; }
.verdict { margin-top: 18px; padding: 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--tint-1); }
.verdict.good { border-color: color-mix(in srgb, var(--lime) 45%, transparent); background: color-mix(in srgb, var(--lime) 8%, transparent); }
.verdict.stop { border-color: color-mix(in srgb, var(--live) 45%, transparent); background: color-mix(in srgb, var(--live) 7%, transparent); }
.verdict b { display: block; margin-bottom: 4px; font-size: 17px; }
.verdict p { margin: 0 0 12px; color: var(--body); font-size: 15.5px; line-height: 1.7; }
.verdict strong { color: var(--text); }
.verdict .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* 資料分開 */
.multi { padding: 24px; }
.multi-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.multi-note { color: var(--faint); font-size: 13.5px; }
.multi-rows { display: grid; gap: 12px; }
.mrow { display: grid; grid-template-columns: 230px 1fr 190px; gap: 22px; align-items: center; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--tint-1); transition: border-color .3s, background .3s; }
.mrow.running { border-color: color-mix(in srgb, var(--cyan) 55%, transparent); background: color-mix(in srgb, var(--cyan) 6%, transparent); }
.mrow .who b { display: block; font-size: 18px; }
.mrow .who small { color: var(--muted); font-size: 14px; }
.mrow .who .pill { margin-top: 8px; }
.mini { display: flex; align-items: center; }
.mini-node { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--h); background: var(--hs); border: 1px solid color-mix(in srgb, var(--h) 45%, transparent); transition: transform .25s, box-shadow .25s, filter .3s; }
.mini-node.locked { filter: grayscale(1); opacity: .5; border-style: dashed; }
.mini-node.hit { transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--h) 18%, transparent); }
.mini-node.bad { animation: pulse-locked .7s; }
.mini-wire { flex: 1; min-width: 22px; height: 2px; background: linear-gradient(90deg, transparent, var(--wire), transparent); }
.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 12px; }
.tick { height: 6px; border-radius: 3px; background: var(--tint-3); transition: background .25s; }
.tick.ok { background: var(--lime); }
.tick.locked { background: var(--live); }
.tick.skipped { background: var(--line-2); }
.mres { text-align: right; font-size: 14px; color: var(--muted); }
.mres b { display: block; font: 800 28px/1.1 var(--serif); color: var(--text); }
.multi-proof { margin-top: 18px; padding: 16px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); background: color-mix(in srgb, var(--lime) 9%, transparent); color: var(--body); font-size: 16px; }
.multi-proof b { color: var(--text); }

/* 方案 */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pcard { padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.pcard.feat { border-color: var(--live); box-shadow: 0 0 0 1px var(--live), var(--shadow); }
.ribbon { position: absolute; top: -13px; left: 24px; padding: 4px 14px; border-radius: 6px; background: var(--live); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.pcard h3 { margin: 0; font-size: 28px; display: flex; align-items: baseline; gap: 10px; }
.pcard h3 small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.pcard .for { margin: 0; color: var(--body); font-size: 16px; min-height: 52px; }
.price { padding: 14px 0; border-block: 1px dashed var(--line-2); }
.price .big { font: 800 38px/1.1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.price .big small { font: 500 15px var(--sans); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.price .sub { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.pcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; }
.pcard li { display: flex; gap: 10px; align-items: baseline; }
.pcard li i { font-style: normal; width: 20px; flex: none; text-align: center; font-weight: 800; }
.pcard li.yes i { color: var(--lime); }
.pcard li.part i { color: var(--amber); }
.pcard li.no { color: var(--faint); }
.pcard .btn { margin-top: auto; }

.matrix-wrap { margin-top: 30px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.matrix { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 660px; }
.matrix th, .matrix td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.matrix thead th { font-size: 15px; color: var(--muted); background: var(--tint-1); font-weight: 700; }
.matrix tbody th { color: var(--body); font-weight: 500; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.matrix .grp th { background: var(--tint-2); font-size: 13px; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* 怎麼開始 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); position: relative; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: var(--live); color: #fff; font: 800 22px var(--serif); transform: rotate(-4deg); }
.steps h3 { margin: 10px 0 8px; font-size: 21px; }
.steps p { margin: 0; color: var(--body); font-size: 16px; }

/* 常見問題 */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--live); font-size: 22px; font-weight: 400; transition: transform .2s; flex: none; }
.faq details[open] summary::after { content: "－"; }
.faq details[open] summary { border-bottom: 1px dashed var(--line-2); }
.faq p { margin: 0; padding: 18px 24px 22px; color: var(--body); font-size: 16.5px; }

/* 聯絡 */
.cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; padding: 40px; background: linear-gradient(135deg, color-mix(in srgb, var(--live) 8%, var(--panel)), var(--panel)); }
.cta h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; }
.cta p { margin: 0; color: var(--body); }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.contact-line { text-align: center; font-size: 15px; color: var(--muted); }
.contact-line b { color: var(--text); }

.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 80px 0 48px; margin-top: 70px; border-top: 1px solid var(--line-2); }
.foot p { margin: 0; color: var(--faint); font-size: 13.5px; }

/* 需求對話框 */
dialog { width: min(640px, calc(100% - 28px)); max-height: calc(100svh - 32px); overflow: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 40px 100px -20px rgba(43, 33, 24, .5); }
dialog::backdrop { background: rgba(43, 33, 24, .45); backdrop-filter: blur(3px); }
.brief-form { padding: 30px; display: grid; gap: 18px; }
.brief-form h3 { margin: 0 0 6px; font-size: 26px; }
.brief-form header p { margin: 0; color: var(--muted); font-size: 15.5px; }
.field > span { font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--body); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; }
.checks legend { padding: 0 8px; color: var(--body); font-size: 14px; font-weight: 600; }
.checks label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 16px; }
.checks input { accent-color: var(--live); width: 18px; height: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brief-actions { display: flex; align-items: center; gap: 12px; }
.copied { color: var(--lime); font-size: 14px; font-weight: 700; }
textarea.input { resize: vertical; line-height: 1.7; }

/* 捲動出現 */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .trust { grid-template-columns: 1fr; gap: 14px; }
  .pair { grid-template-columns: 1fr; }
  .pair .arrow { transform: rotate(90deg); height: 34px; }
  .play-body, .cta, .plan-grid, .steps { grid-template-columns: 1fr; }
  .steps { gap: 34px; }
  .mrow { grid-template-columns: 1fr; gap: 14px; }
  .mres { text-align: left; }
  .nav nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .sec { padding-top: 88px; }
  .two { grid-template-columns: 1fr; }
  .play, .multi { padding: 14px; }
  .cta { padding: 26px; }
  .brand-text small, .nav-brief { display: none; }
  .slip { padding: 22px 20px; }
  .stamp { font-size: 24px; right: 14px; }
}
