/* cjpresents.com
   灰白底、黑字、只用一種紅（D91E26）標重點；大字、大數字、編號撐版面。
   規則見 品牌形象/設計參考圖紀錄.md。英文字體改 --latin 一個地方即可。 */

:root {
  --page: #F4F4F5;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #5F5F66;
  --ink-3: #8A8A91;
  --line: #DADADE;
  --ghost: #E8E8EB;
  --red: #D91E26;
  --red-ink: #FFFFFF;

  --latin: "Inter";
  --font: var(--latin), "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { max-width: 100%; }
.en { font-family: var(--latin), sans-serif; }
.num { font-family: var(--latin), sans-serif; font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 2; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; }
.mark { font-family: var(--latin), sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.head-line { font-family: var(--latin), sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2); }
.site-head .head-cta { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  font-size: 16px; font-weight: 500; text-decoration: none; line-height: 1.4;
  padding: 15px 22px 15px 24px; border-radius: 999px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: #000; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--page); }
.text-link { font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .grid-v { position: absolute; top: 0; bottom: 0; left: 64%; width: 1px; background: var(--line); }
.hero .circle {
  position: absolute; width: 560px; height: 560px; border: 1px solid var(--line); border-radius: 50%;
  left: 64%; top: -220px; transform: translateX(-50%);
}
.hero .ghost {
  position: absolute; right: -0.04em; bottom: 118px;
  font-family: var(--latin), sans-serif; font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(7rem, 24vw, 21rem); line-height: 0.8; color: var(--ghost);
  user-select: none;
}
.hero-main { position: relative; z-index: 1; display: grid; gap: 28px; padding-block: 56px 72px; max-width: 64%; }
.eyebrow { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.04em; }
.hero h1 {
  margin: 0; font-weight: 700; font-size: clamp(2.2rem, 5.6vw, 4.8rem);
  line-height: 1.22; letter-spacing: -0.02em;
}
.hero h1 .row { display: block; }
.hero h1 .en { font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .dot {
  display: inline-block; width: 0.33em; height: 0.33em; border-radius: 50%;
  background: var(--red); margin-left: 0.1em;
}
.lead { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.hero .btn { justify-self: start; }

.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--page) 70%, transparent); }
.step { padding: 24px var(--gutter) 28px; display: grid; align-content: start; gap: 4px; border-right: 1px solid var(--line); min-width: 0; }
.step:last-child { border-right: 0; }
.step .num { font-weight: 700; font-size: 15px; color: var(--ink-3); }
.step b { font-size: 18px; }
.step span { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 40em; }
.label { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.08em; }
h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; text-wrap: balance; }
.section-head p { margin: 0; color: var(--ink-2); }

/* 卡在這裡 */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { background: var(--paper); padding: 28px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.case h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.case p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* 5 題 */
.questions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.questions li { display: grid; grid-template-columns: 110px 1fr; gap: 8px 24px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.questions .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.questions h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; }
.questions p { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }
.verdict { margin: 40px 0 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; line-height: 1.45; text-wrap: balance; }

/* 改稿示範 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.draft { background: var(--paper); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.draft-tag { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.draft-before .draft-tag { color: var(--ink-3); }
.draft blockquote { margin: 0; font-size: 18px; line-height: 1.9; }
.draft-before blockquote { color: var(--ink-2); }
.draft blockquote p { margin: 0 0 0.6em; }
.draft blockquote p:last-child { margin-bottom: 0; }
.flag { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.notes { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 12px; }
.notes li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 15px; line-height: 1.65; color: var(--red); }
.notes li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-top: 0.62em; }
.notes q { color: var(--ink); quotes: "「" "」"; }
.notes .ref { font-family: var(--latin), sans-serif; font-size: 13px; color: var(--ink-3); margin-left: 4px; white-space: nowrap; }
.fine { margin: 20px 0 0; font-size: 14px; color: var(--ink-3); }

/* 服務摘要 */
.summary { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }
.summary .big { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.4; }
.summary .big .num { font-weight: 800; }
.summary p { margin: 0; color: var(--ink-2); }

/* 聯絡（全站唯一紅底） */
.contact { background: var(--red); color: var(--red-ink); padding-block: clamp(64px, 9vw, 112px); }
.contact .wrap { display: grid; gap: 24px; }
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.contact h2 .en { font-weight: 800; }
.contact p { margin: 0; max-width: 32em; font-size: 18px; color: color-mix(in srgb, var(--red-ink) 88%, var(--red)); }
.contact .btn { justify-self: start; }
.contact .btn:hover { background: var(--page); }

/* ---------- services ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 16px; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.15; letter-spacing: -0.02em; }
.page-head p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 32em; }

.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer { background: var(--paper); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.offer h3 { margin: 0; font-size: 22px; line-height: 1.4; }
.offer .desc { margin: 0; color: var(--ink-2); }
.price { display: grid; gap: 2px; padding-block: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price .amount { font-family: var(--latin), sans-serif; font-variant-numeric: tabular-nums; font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.price .amount small { font-size: 0.42em; font-weight: 600; letter-spacing: 0; margin-right: 4px; color: var(--ink-2); }
.price .unit { font-size: 15px; color: var(--ink-2); }
.addons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.addons li { display: flex; justify-content: space-between; gap: 16px; }
.addons li span:last-child { font-family: var(--latin), sans-serif; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.includes { margin: 0; padding-left: 1.2em; font-size: 15px; color: var(--ink-2); display: grid; gap: 4px; }
.small { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.small-list { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.tip { margin: 0; font-size: 15px; padding: 14px 16px; background: var(--page); border-left: 3px solid var(--ink); }
.tag { display: inline-block; font-size: 13px; font-weight: 500; padding: 3px 10px; border: 1px solid var(--ink); border-radius: 999px; justify-self: start; }

.group + .group { margin-top: clamp(56px, 8vw, 96px); }
.group-head { display: grid; gap: 8px; margin-bottom: 28px; }
.group-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.group-head p { margin: 0; color: var(--ink-2); max-width: 36em; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--latin), sans-serif; font-weight: 400; font-size: 26px; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 40em; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 40em; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-foot { padding-block: 32px 40px; font-size: 14px; color: var(--ink-3); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav, .head-line { display: none; }
  .site-head .head-cta { display: inline-flex; font-size: 14px; padding: 9px 16px; }
  .hero .grid-v, .hero .circle { display: none; }
  .hero-main { max-width: none; padding-block: 28px 56px; }
  .hero .ghost { bottom: auto; top: 46%; }
  .steps, .cases, .compare, .offer-grid { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: auto 1fr; column-gap: 14px; padding-block: 18px; }
  .step:last-child { border-bottom: 0; }
  .step span { grid-column: 2; }
  .questions li { grid-template-columns: 1fr; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* APICTA 限期入口（12/12 後由頁面腳本移除） */
.nav-apicta, .head-apicta { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.site-head .head-cta { white-space: nowrap; }
.badge { font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.04em; color: var(--red-ink); background: var(--red); padding: 4px 6px; border-radius: 4px; }
.site-head .head-apicta { display: none; font-size: 14px; font-weight: 500; margin-left: auto; }
@media (max-width: 900px) {
  .site-head .head-apicta { display: inline-flex; }
}
