/* ============================================================
   秒收 Brand System V1 — Design Tokens
   Premium Minimalism · Quiet Confidence
   深綠 Primary CTA · 暖象牙底 · 金色僅作極淡識別
   Mobile-first．無外部字型載入．prefers-reduced-motion 友善
   ============================================================ */

:root {
  /* Brand System V1 ＝ Visual Pack 單一收斂（禁止第二套 Token） */
  --brand-950: #0B2E25;
  --brand-900: #123D31;
  --brand-800: #123D31;
  --brand-700: #123D31;
  --warm-50: #FBF8F2;
  --warm-100: #F6F1E8;
  --warm-200: #E8E1D4;
  --ink-950: #202421;
  --ink-700: #6C706C;
  --ink-500: #6C706C;
  --line: rgba(18, 61, 49, 0.18);
  --focus: #123D31;
  --accent-muted: #B99352;

  /* Semantic aliases — same values, not a second palette */
  --miaoshou-ivory: var(--warm-100);
  --miaoshou-paper: var(--warm-50);
  --miaoshou-green: var(--brand-900);
  --miaoshou-green-deep: var(--brand-950);
  --miaoshou-gold: var(--accent-muted);
  --miaoshou-ink: var(--ink-950);
  --miaoshou-muted: var(--ink-700);
  --miaoshou-line: var(--line);

  /* Legacy aliases (keep selectors stable) */
  --pine: var(--brand-800);
  --pine-deep: var(--brand-950);
  --pine-soft: var(--brand-700);
  --ivory: var(--warm-50);
  --ivory-2: var(--warm-100);
  --card: #FFFFFF;
  --amber: var(--brand-700);
  --amber-hover: var(--brand-950);
  --amber-tint: var(--warm-100);
  --line-green: #06C755;
  --line-ink: #062E1C;
  --ink: var(--ink-950);
  --ink-2: var(--ink-700);
  --ink-3: var(--ink-500);
  --hairline: var(--line);
  --danger: #B3261E;
  --danger-tint: #FBEDEC;
  --warning: #8A6A1F;
  --warning-tint: #F7F1DE;
  --ok: #1B7A43;
  --success: var(--ok);

  /* Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --r-btn: 12px;
  --r-card: 14px;
  --r-input: 12px;
  --shadow-1: 0 1px 2px rgba(7, 55, 47, .05), 0 4px 14px rgba(7, 55, 47, .06);
  --shadow-2: var(--shadow-1);

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC",
          system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Serif TC", "Songti TC", "PMingLiU", "PingFang TC",
          "Microsoft JhengHei", serif;
  --motion: 160ms ease;
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--pine); }
button { font: inherit; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--pine); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 0; z-index: 99;
}
.skip-link:focus { left: 0; }

/* Cold-start boot shell — also inlined in index.html for first paint */
.intake-boot-shell {
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
  color: var(--ink-2);
}
.intake-boot-shell[hidden] { display: none !important; }
.intake-boot-inner { display: grid; gap: 6px; }
.intake-boot-brand { font-weight: 900; color: var(--pine); font-size: 18px; }
.intake-boot-title { font-weight: 700; color: var(--pine); font-size: 16px; }
.intake-boot-detail,
.intake-boot-slow { font-size: 14.5px; color: var(--ink-2); }
.intake-boot-error { font-size: 14.5px; color: var(--danger); margin: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.ic { width: 20px; height: 20px; flex: none; }
.ic-lg { width: 30px; height: 30px; flex: none; }

/* 錨點跳轉不被 sticky header 遮住 */
#suitable, #steps, #remote, #scrap, #faq { scroll-margin-top: 76px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: var(--r-btn);
  font-weight: 700; text-decoration: none; text-align: center;
  padding: 12px 24px; min-height: 48px;
  transition: background-color var(--motion), border-color var(--motion), color var(--motion);
}
.btn:active { transform: none; }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }
.btn-secondary {
  background: transparent; color: var(--brand-800); border-color: var(--brand-700);
}
.btn-secondary:hover { background: rgba(27, 93, 79, .06); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-ghost:hover { background: rgba(18, 77, 65, .07); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-lg { padding: 16px 32px; font-size: 18px; min-height: 56px; }
.btn-sm { padding: 8px 16px; min-height: 44px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* LINE 專屬動作 */
.btn-line { background: var(--line-green); color: var(--line-ink); }
.btn-line:hover { background: #05B34C; }
.btn-line .ic { width: 22px; height: 22px; }
.line-off {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; min-height: 44px; border-radius: var(--r-btn);
  border: 1.5px dashed var(--ink-3); color: var(--ink-3);
  font-size: 15px; font-weight: 500;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .96);
  border-bottom: 1px solid var(--hairline);
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 0; min-height: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; min-height: 44px; min-width: 0;
}
.brand-mark {
  display: inline-grid; place-items: center;
  background: var(--brand-900); color: var(--warm-50);
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; letter-spacing: 1px;
  border-radius: 10px; padding: 7px 10px; flex: none;
}
.brand-text {
  color: var(--brand-900); font-weight: 700; font-size: 15px; line-height: 1.2;
  min-width: 0;
}
.brand-aux {
  display: block; font-weight: 600; font-size: 13px; color: var(--brand-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text small {
  display: block; font-weight: 500; font-size: 11px;
  color: var(--ink-500); letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 760px) {
  .brand-aux { font-size: 14px; }
}
body[data-view="form"] .head-cta, body[data-view="success"] .head-cta { display: none; }
.head-cta { flex: none; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 20px; overflow: hidden; }
.hero-grid {
  display: flex; flex-direction: column; gap: 22px;
}
.headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.22; font-weight: 700; color: var(--brand-950);
  letter-spacing: .5px;
  max-width: 12em;
}
.hero-rule {
  width: 48px; height: 2px; margin: 16px 0 0;
  background: var(--accent-muted); border: 0;
}
.lede {
  margin-top: 14px; font-size: 17px; color: var(--ink-700); max-width: 34em;
  line-height: 1.65;
}
.lede strong { color: var(--brand-800); }
.hero-cta {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 22px; align-items: stretch;
}
.hero-cta .btn-ghost { font-weight: 600; }
.hero-trust-note {
  margin-top: 14px; font-size: 14.5px; color: var(--ink-700); max-width: 34em;
  line-height: 1.6;
}
.hero-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
  padding: 4px 0 0;
  order: 3;
}
.hero-features li {
  display: flex; gap: 8px; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--brand-900);
}
.hero-features .ic { width: 16px; height: 16px; color: var(--accent-muted); }
.hero-copy { order: 1; }
.hero-art {
  order: 2; align-self: stretch; width: 100%;
  border-radius: 0; overflow: hidden;
  background: var(--warm-100);
}
.hero-photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 870 / 651; object-fit: cover; object-position: 55% 58%;
  max-height: 280px;
}
@media (max-width: 759px) {
  .hero-cta .btn-lg { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px); font-weight: 700;
  color: var(--brand-950); line-height: 1.3;
}
.sec-lede { margin-top: 10px; color: var(--ink-700); max-width: 38em; }
.sec-note { margin-top: 20px; font-size: 14.5px; color: var(--ink-500); }

/* Suitable cases — numbered row, not heavy card wall */
.suitable-list {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin-top: 28px;
}
.suitable-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  align-items: start; padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.suitable-item .suit-no {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; color: var(--accent-muted);
  border: 1.5px solid var(--accent-muted);
  font-size: 13px; font-weight: 700; margin-top: 1px;
}
.suitable-item h3 {
  font-size: 16px; font-weight: 600; color: var(--brand-900);
  line-height: 1.45;
}
.suitable-item p { display: none; }
.sec-title-rule {
  width: 40px; height: 2px; margin: 14px auto 0;
  background: var(--accent-muted); border: 0;
}
#suitable .sec-title { text-align: center; }
@media (min-width: 760px) {
  .suitable-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 0;
  }
  .suitable-item {
    grid-template-columns: 1fr;
    justify-items: center; text-align: center;
    padding: 8px 16px;
    border-bottom: 0;
    border-right: 1px solid var(--hairline);
  }
  .suitable-item:last-child { border-right: 0; }
  .suitable-item .suit-no { margin: 0 auto 10px; }
}

.grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 18px 16px;
}
.card .ic-lg { color: var(--brand-700); margin-bottom: 10px; }
.card h3 { font-size: 16px; font-weight: 700; color: var(--pine); }
.card p { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* 深色帶（流程） */
.band { background: var(--pine); color: var(--ivory); }
.band .sec-title { color: var(--ivory); }
.band .sec-lede { color: #CFDCD6; }
.band-deep { background: var(--pine-deep); }

.steps-flow { margin-top: 30px; display: grid; gap: 14px; counter-reset: step; }
.steps-flow li {
  position: relative; background: rgba(250, 247, 241, .06);
  border: 1px solid rgba(250, 247, 241, .16); border-radius: var(--r-card);
  padding: 20px 18px 18px 62px;
}
.steps-flow .step-no {
  position: absolute; left: 16px; top: 20px;
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--accent-muted); color: var(--brand-950); font-weight: 800; border-radius: 50%;
  font-size: 15px;
}
.steps-flow .ic-lg { color: #9DC3B5; margin-bottom: 8px; }
.steps-flow h3 { font-size: 17px; font-weight: 700; color: var(--ivory); }
.steps-flow p { margin-top: 6px; font-size: 14px; color: #C4D4CD; line-height: 1.6; }

/* 遠端評估 + 誠實提醒 */
.split { display: grid; gap: 26px; }
.tick-list { margin-top: 20px; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.tick-list .ic { color: var(--ok); margin-top: 4px; width: 18px; height: 18px; }
.honest-card {
  background: var(--warm-100); border: 1px solid var(--warm-200);
  border-radius: var(--r-card); padding: 24px 22px;
}
.honest-card h3 { font-size: 18px; font-weight: 800; color: var(--brand-900); }
.honest-card p { margin-top: 12px; font-size: 14.5px; color: var(--ink-700); line-height: 1.7; }
.honest-card strong { color: var(--brand-900); }

/* 營運者背書 */
.trust-band {
  display: flex; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 26px 22px;
}
.trust-brand {
  flex: none; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 20px;
  background: var(--pine); color: var(--ivory);
  font-weight: 900; font-size: 15px; line-height: 1.35; text-align: center;
  letter-spacing: 1px;
}
.trust-band .sec-title { font-size: 20px; }
.trust-band p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }

/* LINE 導流／聯絡區塊 */
.line-band {
  display: grid; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 26px 22px;
}
.line-band .sec-title { font-size: 22px; }
.line-band-copy p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.line-id-row { font-size: 15px; }
.line-id-row strong { color: var(--pine); letter-spacing: 0.5px; }
.line-band-cta { margin-top: 16px; }
.line-band-cta .btn-line { width: 100%; justify-content: center; }
.line-band-qr {
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3);
}
.line-band-qr img {
  width: 160px; height: 160px; display: block;
  border: 1px solid var(--hairline); border-radius: 14px; background: #fff; padding: 6px;
}
@media (min-width: 760px) {
  .line-band { grid-template-columns: 1fr auto; padding: 30px 30px; }
  .line-band-qr { display: flex; }
  .line-band-cta .btn-line { width: auto; }
}

/* 報廢車分流 */
.scrap-cols { margin-top: 26px; display: grid; gap: 12px; }
.scrap-card {
  background: rgba(250, 247, 241, .06); border: 1px solid rgba(250, 247, 241, .16);
  border-radius: var(--r-card); padding: 20px 18px;
}
.scrap-card .ic-lg { color: #9DC3B5; margin-bottom: 10px; }
.scrap-card h3 { font-size: 16.5px; font-weight: 700; color: var(--ivory); }
.scrap-card p { margin-top: 8px; font-size: 14px; color: #C4D4CD; line-height: 1.65; }
.scrap-card strong { color: var(--ivory); }
.scrap-card-hl { border-color: var(--accent-muted); border-width: 1.5px; }
.scrap-flow { margin-top: 24px; counter-reset: sf; display: grid; gap: 10px; }
.scrap-flow li {
  counter-increment: sf; display: flex; align-items: baseline; gap: 12px;
  color: #DDE8E2; font-size: 15px;
}
.scrap-flow li::before {
  content: counter(sf);
  flex: none; display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(250, 247, 241, .14); color: var(--ivory);
  font-size: 13px; font-weight: 700; transform: translateY(4px);
}
.scrap-note { margin-top: 20px; font-size: 14px; color: #D4C4A8; }
.scrap-note strong { color: #E8D9BC; }
.scrap-cta { margin-top: 18px; }

/* FAQ */
.faq-list { margin-top: 24px; display: grid; gap: 10px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 14px; overflow: hidden;
}
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 18px; font-weight: 700; color: var(--pine); font-size: 15.5px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; font-size: 22px; font-weight: 400;
  color: var(--brand-700); transition: transform var(--motion); line-height: 1;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 18px 18px; }
.faq-body p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

/* 底部 CTA */
.closing { text-align: center; }
.closing .btn { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--pine-deep); color: #B9CCC4; padding: 34px 0 44px; margin-top: 30px; }
.foot-brand { font-weight: 900; font-size: 17px; color: var(--ivory); }
.foot-brand span { font-weight: 500; font-size: 14px; color: #B9CCC4; }
.foot-note { margin-top: 10px; font-size: 13px; line-height: 1.7; }

/* ============================================================
   表單
   ============================================================ */
.form-wrap { max-width: 620px; margin-inline: auto; padding: 22px 0 60px; }
.crumb { font-size: 14.5px; }
.crumb a { text-decoration: none; color: var(--ink-3); }
.crumb a:hover { color: var(--pine); }
.form-head { margin-top: 14px; }
.form-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; color: var(--brand-950);
}
.form-sub { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }

/* Stepper */
.stepper {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 22px 0 6px; counter-reset: st;
}
.stepper li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-3); font-weight: 500;
  padding-top: 6px; position: relative;
}
.stepper li::before {
  content: ""; position: absolute; top: 20px; left: -50%; width: 100%; height: 2px;
  background: var(--hairline); z-index: 0;
}
.stepper li:first-child::before { display: none; }
.stepper li span {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--ivory-2); color: var(--ink-3);
  border: 2px solid var(--hairline); font-weight: 700; font-size: 14px;
}
.stepper li.on { color: var(--pine); font-weight: 700; }
.stepper li.on span { background: var(--pine); border-color: var(--pine); color: var(--ivory); }
.stepper li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.done::before, .stepper li.on::before { background: var(--ok); }

/* Steps */
.step {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-card); box-shadow: var(--shadow-1);
  padding: 24px 20px 22px; margin-top: 16px;
}
.step-title { font-size: 20px; font-weight: 900; color: var(--pine); margin-bottom: 4px; float: left; width: 100%; }
.step-lede { clear: both; font-size: 14.5px; color: var(--ink-2); margin: 6px 0 4px; }

.field { clear: both; margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; color: var(--pine); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--ivory); border: 1.5px solid var(--hairline);
  border-radius: var(--r-input); padding: 12px 14px; min-height: 50px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pine) 50%), linear-gradient(135deg, var(--pine) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(27, 93, 79, .28); outline-offset: 0;
  border-color: var(--focus); background: #fff;
}
.field-half { max-width: 260px; }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--danger); background: var(--danger-tint);
}
.err { display: block; margin-top: 6px; font-size: 13.5px; color: var(--danger); font-weight: 500; }

.veh-block {
  clear: both;
  margin-top: 22px;
  padding-top: 6px;
  border-top: 1px solid var(--hairline);
}
.veh-block:first-of-type { border-top: 0; padding-top: 0; }
.veh-block-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--pine);
}
.check-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.check-inline input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--pine);
}
.step-nav-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.step-nav-primary .btn-lg { flex: 1 1 220px; }

/* Choice chips */
.choice-group { clear: both; margin-top: 20px; }
.choice-group legend { font-weight: 700; font-size: 15px; color: var(--pine); margin-bottom: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--hairline); border-radius: var(--r-btn);
  background: var(--ivory); padding: 10px 16px; min-height: 46px;
  font-size: 15px; cursor: pointer; color: var(--ink-2);
  transition: border-color var(--motion), background-color var(--motion);
}
.chip input {
  width: 18px; height: 18px; margin: 0;
  accent-color: var(--pine); cursor: pointer;
}
.chip:has(input:checked) {
  border-color: var(--pine); background: var(--pine); color: var(--ivory); font-weight: 700;
}
.chip:has(input:checked) input { accent-color: var(--ivory); }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-group.invalid .chips .chip { border-color: var(--danger); }

/* 照片 */
.shot-guide {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.shot-guide li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--pine); font-weight: 500;
  background: var(--ivory-2); border-radius: 999px; padding: 7px 13px;
}
.shot-guide .ic { width: 16px; height: 16px; color: var(--brand-700); }

.upload-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.upload-target {
  margin-top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 2px dashed var(--pine-soft); border-radius: var(--r-card);
  background: var(--ivory); padding: 22px 12px; cursor: pointer;
  text-align: center; transition: background-color .15s ease, border-color .15s ease;
  min-width: 0;
}
.upload-target:hover { background: var(--ivory-2); border-color: var(--pine); }
.upload-target .ic-lg { color: var(--pine); margin-bottom: 4px; }
.upload-title { font-weight: 700; color: var(--pine); font-size: 15px; }
.upload-sub { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.upload-target:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (max-width: 360px) {
  .upload-actions { grid-template-columns: 1fr; }
}

.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.photo-grid:empty { margin-top: 0; }
.photo-item {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--hairline); background: var(--ivory-2);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .del {
  position: absolute; top: 5px; right: 5px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(12, 43, 37, .78); color: #fff;
  font-size: 19px; line-height: 1; display: grid; place-items: center;
}
/* 擴大實際觸控範圍（不改變視覺大小） */
.photo-item .del::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
}
.photo-item .del:hover { background: var(--danger); }
.photo-item .slot {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(12, 43, 37, .72); border-radius: 6px; padding: 2px 7px;
}
.photo-status { margin-top: 12px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.photo-status.ok { color: var(--ok); }

.privacy-photo-note { font-size: 13px; color: var(--ink-2); margin: 8px 0 12px; line-height: 1.45; }
.photo-tip {
  font-size: 14px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.5;
  padding: 10px 12px; border-radius: 10px; background: var(--ivory-2);
  border: 1px dashed var(--hairline);
}
.photo-ttl-hint { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.45; }
.photo-uploading-banner {
  font-size: 14px;
  font-weight: 600;
  color: #7a4a00;
  background: #fff4e0;
  border: 1px solid #f0c36a;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.photo-progress {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  margin: 10px 0 14px; font-size: 14px; font-weight: 600; color: var(--pine);
}
.flex-photo-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 12px;
}
.support-docs-block { margin-top: 18px; }
.cond-checks { display: grid; gap: 10px; margin-top: 8px; }
.check-inline {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; line-height: 1.4; cursor: pointer;
}
.check-inline input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.photo-slots { display: grid; gap: 14px; margin: 14px 0; }
.photo-slots.flex-photo-grid { grid-template-columns: 1fr; }
.photo-slot {
  border: 1px solid var(--hairline); border-radius: 14px;
  padding: 14px; background: var(--ivory);
}
.photo-slot.is-done { border-color: color-mix(in srgb, var(--ok) 45%, var(--hairline)); }
.photo-slot.is-error { border-color: color-mix(in srgb, var(--danger, #b42318) 40%, var(--hairline)); }
.photo-slot-head { display: flex; gap: 12px; align-items: flex-start; }
.photo-slot-no {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--pine); color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.photo-slot-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.photo-slot-guide { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.photo-slot-status { margin: 8px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.photo-slot.is-done .photo-slot-status { color: var(--ok); }
.photo-slot-placeholder {
  aspect-ratio: 16/10; border-radius: 10px; border: 1px dashed var(--hairline);
  background: var(--ivory-2); display: grid; place-items: center;
  color: var(--ink-3); font-size: 13px; margin-bottom: 10px;
}
.photo-slot-thumb {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px;
  margin-bottom: 10px; border: 1px solid var(--hairline);
}
.photo-slot-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.photo-gate-hint {
  margin: 8px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--warm-100);
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4;
  border: 1px solid var(--warm-200);
}
.step-nav-primary { flex-wrap: wrap; }
@media (min-width: 720px) {
  .photo-slots.flex-photo-grid { grid-template-columns: 1fr 1fr; }
}

/* 確認 */
.review { margin-top: 14px; display: grid; gap: 12px; }
.review-group {
  border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px;
  background: var(--ivory);
}
.review-group h3 {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 700; color: var(--ink-3);
}
.review-group h3 button {
  border: 0; background: none; color: var(--brand-700); font-weight: 700; font-size: 13.5px;
  padding: 4px 6px; border-radius: 6px;
}
.review-group h3 button:hover { background: var(--warm-100); }
.review-group dl { margin: 8px 0 0; display: grid; gap: 4px; }
.review-group .row { display: flex; gap: 12px; }
.review-group dt { flex: none; width: 7em; color: var(--ink-3); font-size: 14px; }
.review-group dd { margin: 0; color: var(--ink); font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.review-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.review-photos img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hairline); }

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 20px; padding: 14px 15px;
  background: var(--ivory); border: 1px solid var(--hairline); border-radius: 12px;
  font-size: 14px; color: var(--ink-2); line-height: 1.65; cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pine); flex: none; }
.consent strong { color: var(--pine); }

.error {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--danger-tint); border: 1px solid #E4B6B3;
  color: var(--danger); font-size: 14.5px; font-weight: 500;
}

.step-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 26px;
}
.step-nav .btn { flex: none; }
.after-hint { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============================================================
   成功頁
   ============================================================ */
.success-wrap { max-width: 620px; margin-inline: auto; padding: 44px 0 60px; text-align: center; }
.success-check { color: var(--ok); width: 76px; margin: 0 auto 18px; }
.ck-circle { stroke-dasharray: 202; stroke-dashoffset: 202; animation: draw .7s ease forwards; }
.ck-mark { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s ease .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 30px); font-weight: 700; color: var(--brand-950);
}

.ref-card {
  margin-top: 24px; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 22px 18px;
}
.ref-label { font-size: 13.5px; color: var(--ink-3); font-weight: 700; letter-spacing: 2px; }
.ref-code {
  margin-top: 6px; font-size: clamp(21px, 5.6vw, 30px); font-weight: 900;
  color: var(--pine); letter-spacing: .5px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#copy-ref { margin-top: 12px; }
.copy-done { margin-top: 8px; font-size: 13.5px; color: var(--ok); font-weight: 700; min-height: 1.4em; }

.handoff { margin-top: 26px; }
.handoff-lede { font-size: 15.5px; color: var(--ink-2); text-align: left; line-height: 1.75; }
.handoff-lede strong { color: var(--pine); }
.handoff-cta { margin-top: 18px; }
.handoff-cta .btn-line { width: 100%; padding: 16px 24px; font-size: 17px; min-height: 58px; }
.handoff-cta .line-off { width: 100%; justify-content: center; padding: 15px 20px; }
.handoff-note { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.handoff-hours { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.handoff-hours strong { color: var(--pine); }

.success-desktop {
  display: none; margin-top: 30px; text-align: left;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 22px 22px 24px;
}
.success-desktop h2 { font-size: 17px; font-weight: 900; color: var(--pine); }
.qr-row { display: flex; gap: 22px; margin-top: 16px; align-items: center; }
.qr-img-box {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.qr-img-box img {
  width: 180px; height: 180px; display: block;
  border: 1px solid var(--hairline); border-radius: 14px; background: #fff;
  padding: 6px;
}
.qr-id { font-size: 13px; font-weight: 700; color: var(--pine); }
.qr-steps { counter-reset: q; display: grid; gap: 10px; }
.qr-steps li { counter-increment: q; display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: baseline; }
.qr-steps li::before {
  content: counter(q); flex: none; width: 22px; height: 22px;
  display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--pine); color: #fff; font-size: 12.5px; font-weight: 700;
  transform: translateY(3px);
}

.success-tips { margin-top: 28px; display: grid; gap: 10px; text-align: left; }
.success-tips li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-2);
}
.success-tips .ic { color: var(--pine); margin-top: 3px; width: 18px; height: 18px; }
.success-back { margin-top: 30px; font-size: 14.5px; }

.br-desktop { display: none; }
@media (min-width: 1024px) {
  .br-desktop { display: inline; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 760px) {
  .hero { padding: 40px 0 28px; }
  .hero-cta {
    flex-direction: row; flex-wrap: wrap; align-items: center;
  }
  .hero-features {
    grid-template-columns: repeat(4, 1fr);
    order: 3;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
  }
  .hero-photo { max-height: 320px; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .card { padding: 22px 20px; }
  .card h3 { font-size: 17px; }
  .card p { font-size: 14px; }
  .steps-flow { grid-template-columns: 1fr 1fr; gap: 16px; }
  .split { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 40px; }
  .scrap-cols { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .success-desktop { display: block; }
  .handoff-cta .btn-line { width: auto; min-width: 340px; }
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 46fr 54fr;
    grid-template-areas:
      "copy art"
      "features art";
    align-items: center;
    gap: 28px 40px;
  }
  .hero-copy { grid-area: copy; order: unset; }
  .hero-features { grid-area: features; align-self: start; order: unset; margin-top: 0; }
  .hero-art {
    grid-area: art; order: unset; align-self: stretch;
    max-width: none; border-radius: 0;
  }
  .hero-photo {
    aspect-ratio: 1032 / 651;
    max-height: min(52vh, 420px);
    height: 100%;
    object-position: 48% 55%;
  }
  .steps-flow { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 64px 0; }
}

/* ============================================================
   Footer 法律連結（全站共用）
   ============================================================ */
.foot-meta {
  margin: 6px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.foot-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-links {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}
.foot-links a {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
  font-size: 0.88rem;
}
.foot-links a:hover { opacity: 1; text-decoration: underline; }

/* Informational trust cards (not required checkboxes) */
.trust-info-cards {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 36em;
}
.trust-info-cards-closing,
.trust-info-cards-submit {
  margin: 16px 0 18px;
  max-width: 40em;
}
.trust-info-card {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent-muted, #B99352);
  background: rgba(18, 61, 49, 0.04);
  color: var(--ink-2, #6C706C);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================================
   Motion 偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ck-circle, .ck-mark { stroke-dashoffset: 0; animation: none; }
}

/* ===== P3A registration-document dual entry ===== */
.reg-doc-flow { margin: 0 0 22px; padding: 18px 16px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); }
.rd-panel { display: grid; gap: 14px; }
.rd-entry-actions { display: grid; gap: 10px; margin-top: 8px; }
.rd-entry-actions .btn-block { width: 100%; min-height: 48px; justify-content: center; }
.btn-text { background: transparent; border: none; color: var(--pine); text-decoration: underline; font-weight: 600; min-height: 44px; }
.rd-tips { margin: 0; padding-left: 1.2em; color: var(--ink-2); line-height: 1.7; font-size: 14.5px; }
.rd-canvas-wrap {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #111;
  max-width: 100%;
}
.rd-canvas {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  touch-action: none;
  height: auto;
}
.rd-preview-actions .btn-block { min-height: 48px; }
.rd-unmasked-body p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.65; font-size: 14.5px; }
.rd-need { color: var(--amber); font-weight: 700; font-size: 13px; margin-left: 4px; }
.rd-privacy-summary p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.65; font-size: 14.5px; }
.rd-privacy-full { max-height: 50vh; overflow: auto; padding-right: 4px; }
.rd-privacy-full h3 { font-size: 15px; margin: 14px 0 6px; color: var(--pine); }
.rd-privacy-full p { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.rd-reopen-entry { margin: 0 0 16px; }
.rd-extract-loading {
  margin: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1a4d3e;
  background: #e8f5ef;
  border: 1px solid #9ecfb8;
  border-radius: 10px;
  line-height: 1.45;
}
.rd-panel.is-extracting .rd-extract-loading { display: block; }
.reg-doc-flow.rd-adjust-mode .rd-canvas-wrap { outline: 2px solid rgba(26, 77, 62, 0.35); }
.rd-consent-body { margin: 0 0 14px; line-height: 1.55; color: var(--ink-2, #334); }
.rd-consent-check { align-items: flex-start; margin-bottom: 12px; }
.rd-consent-check span { font-size: 0.95rem; line-height: 1.45; }
.rd-preview-img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 8px; }
.rd-confirm-preview { margin: 0 0 16px; }
.rd-preview-actions {
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
#veh-manual-fields[hidden], #reg-doc-flow[hidden], .rd-panel[hidden] { display: none !important; }
[data-rd-when][hidden] { display: none !important; }
