:root {
  --ink: #1f1b16;
  --ink-2: #4a4239;
  --muted: #8c7b65;
  --paper: #f6f1e7;
  --paper-2: #fbf8f2;
  --line: #e3dacb;
  --vermilion: #b3261e;
  --vermilion-ink: #8f1d17;
  --ok: #3e6b4a;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --latin: "Cormorant Garamond", "Noto Serif TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --radius: 4px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: 0.04em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--serif); color: var(--vermilion); letter-spacing: 0.35em; font-size: 14px; }
.latin { font-family: var(--latin); letter-spacing: 0.2em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header img { height: 44px; width: auto; }
.site-header a.cta-mini {
  font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; letter-spacing: 0.1em;
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(30px, 7vw, 54px); margin: 18px 0 22px; }
.hero .lede { max-width: 34em; color: var(--ink-2); font-size: 17px; }
.hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero .ink-wash {
  position: absolute; right: -80px; top: 10px; width: 520px; opacity: 0.9; pointer-events: none; z-index: -1;
}
@media (max-width: 720px) { .hero .ink-wash { width: 340px; right: -140px; top: 120px; opacity: 0.5; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font: 500 16px/1 var(--sans); letter-spacing: 0.18em; padding: 17px 30px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--vermilion-ink); border-color: var(--vermilion-ink); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn.block { width: 100%; }
.reassure { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- sections ---------- */
section.block { padding: 80px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(24px, 4.6vw, 34px); margin: 12px 0 18px; }
section.block .intro { color: var(--ink-2); max-width: 36em; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); margin-top: 44px; border: 1px solid var(--line); }
.pillar { background: var(--paper); padding: 30px 26px; }
.pillar .num { font-family: var(--latin); color: var(--vermilion); font-size: 22px; }
.pillar h3 { font-size: 20px; margin: 6px 0 10px; }
.pillar p { color: var(--ink-2); font-size: 15px; }

.threshold { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .threshold { grid-template-columns: 1fr; gap: 32px; } }
.threshold-card {
  background: var(--ink); color: var(--paper); padding: 40px 34px; position: relative; border-radius: var(--radius);
}
.threshold-card .label { font-family: var(--serif); letter-spacing: 0.3em; font-size: 13px; color: #cdbfa8; }
.threshold-card .amount { font-family: var(--latin); font-size: clamp(44px, 9vw, 64px); line-height: 1.1; margin: 10px 0 4px; letter-spacing: 0.04em; }
.threshold-card .amount small { font-size: 0.4em; letter-spacing: 0.2em; }
.threshold-card p { color: #d9cfbf; font-size: 14px; margin-top: 14px; }
.threshold-card .seal { position: absolute; right: 24px; top: 24px; width: 34px; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 16px; }
.steps .num { font-family: var(--latin); font-size: 15px; color: var(--muted); letter-spacing: 0.2em; }
.steps h3 { font-size: 19px; margin: 6px 0 8px; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* ---------- forms ---------- */
.apply { background: var(--paper-2); }
.form-card { max-width: 560px; margin: 36px auto 0; }
.field { margin-bottom: 20px; }
.field > label, .field > .label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; letter-spacing: 0.06em; }
.field .req { color: var(--vermilion); margin-left: 2px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.tel { grid-template-columns: 150px 1fr; }
@media (max-width: 420px) { .row.tel { grid-template-columns: 124px 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.error { color: var(--vermilion); font-size: 14px; margin-top: 6px; }
.form-error { background: #fbeceb; border: 1px solid #efc9c6; color: var(--vermilion-ink); padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--vermilion); outline-offset: 2px; }

.success { text-align: center; padding: 20px 0; }
.success .seal { width: 46px; margin: 0 auto 18px; }
.success h3 { font-size: 24px; margin-bottom: 12px; }
.success p { color: var(--ink-2); margin-bottom: 8px; }
.success .btn { margin-top: 22px; }

/* ---------- faq / footer ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--serif); font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--latin); font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

.site-footer { background: var(--ink); color: #cdbfa8; padding: 48px 0 40px; font-size: 13px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 18px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.site-footer a { color: var(--paper); text-decoration: none; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 560px; margin: 0 auto;
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(31, 27, 22, 0.12);
  padding: 16px 18px; border-radius: 6px; font-size: 14px; color: var(--ink-2);
}
.cookie .btns { display: flex; gap: 10px; margin-top: 12px; }
.cookie .btn { padding: 11px 16px; font-size: 14px; letter-spacing: 0.08em; }

/* ---------- details flow ---------- */
.flow { max-width: 620px; margin: 0 auto; padding: 24px 20px 80px; }
.progress { display: flex; gap: 6px; margin: 8px 0 28px; }
.progress span { flex: 1; height: 3px; background: var(--line); }
.progress span.on { background: var(--ink); }
.step-head { margin-bottom: 26px; }
.step-head .eyebrow { font-size: 12px; }
.step-head h1 { font-size: 26px; margin-top: 8px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.step-nav .btn { flex: 1; }
.saved-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; min-height: 1.5em; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.media-tile { aspect-ratio: 3 / 4; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; }
.media-tile button.remove { position: absolute; top: 6px; right: 6px; background: rgba(31, 27, 22, 0.75); color: #fff; border: 0; border-radius: 999px; width: 28px; height: 28px; cursor: pointer; font-size: 16px; line-height: 1; }
.media-tile.add { cursor: pointer; border-style: dashed; }
.media-tile.add:hover { border-color: var(--ink); color: var(--ink); }
.media-tile .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--vermilion); transition: width 0.2s; }
.withdraw { text-align: center; margin-top: 48px; font-size: 13px; }
.withdraw button { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 32px 20px 96px; }
.prose h1 { font-size: 30px; margin-bottom: 8px; }
.prose h2 { font-size: 20px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper-2); font-weight: 500; }
