/*
 * 新版首頁（2026-11-09）：一屏只講一件事、大字大圖、下載鈕永遠在手邊。
 * 沿用 site-20260813.css 的色票與霞鶩文楷；法律頁不載入本檔。
 * 檔名帶日期：Hosting 對 css/site-*.css 長快取，改版要換新檔名，不要原地改。
 */
.home {
  --accent: #b35249;          /* 小字與按鈕用的深珊瑚，白字對比約 5:1 */
  --accent-soft: #e0857c;
  --ink-soft: #6c625a;
  --muted: #786e65;
  --cream: #fffdf9;
  --sand: #f5efe6;
  --sage: #eef1eb;
  --radius-lg: 32px;
  --shadow-soft: 0 18px 44px rgb(64 50 38 / 12%);
  overflow-x: clip;
}
.home ::selection { background: #f1ccc2; color: #3f3933; }
.home :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.home h1, .home h2, .home h3 { text-wrap: balance; }
/* 中文標題只在標點處換行（避免「大／家」這種斷法）；真的放不下時才允許任意斷，免得撐破版面 */
.home h2, .home h3 { word-break: keep-all; overflow-wrap: anywhere; }
.home main p { text-wrap: pretty; }
.home .wrap { max-width: 1184px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 導覽列：半透明、薄薄一條，右邊永遠有「下載」 */
.home .nav { background: rgb(250 248 244 / 86%); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); }
.home .nav-inner { height: 64px; gap: 16px; }
.home .nav .brand, .home .nav .brand-icon { flex-shrink: 0; }
.home .nav-actions { gap: 18px; }
.home .nav-links { gap: 26px; }
.home .nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 14px; }
.home .nav-links a:hover { color: var(--accent); }
.home .lang-switch { gap: 2px; padding: 0; border: 0; background: transparent; }
.home .lang-switch button { min-width: 42px; height: 44px; padding-inline: 8px; border-radius: 999px; color: var(--ink-soft); font-family: var(--display); font-size: 13px; }
.home .lang-switch button.active { background: #f4ddd5; color: #773b31; }
.home .lang-switch button:hover:not(.active) { background: #f2e7df; }
.nav-get { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; white-space: nowrap; }
.nav-get:hover { background: #9c463e; }

/* 共用：區塊、標題、段落 */
.h-section { padding-block: clamp(84px, 11vw, 152px); }
.h-head { max-width: 780px; margin: 0 auto clamp(44px, 6vw, 76px); text-align: center; }
.h-head h2, .h-copy h2, .h-faq h2 { font-size: clamp(31px, 4.3vw, 54px); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.h-head p, .h-copy > p { margin-top: 16px; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.85; }
.h-split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(40px, 7vw, 104px); }
.h-split--reverse .h-copy { order: 2; }
.h-copy { max-width: 520px; }
.h-note { margin-top: 22px !important; padding-left: 16px; border-left: 3px solid #e6d3c2; color: var(--ink-soft); font-size: 16px !important; line-height: 1.9; }

/* 1 首屏 */
.h-hero { padding-block: clamp(40px, 7vw, 104px) clamp(64px, 8vw, 120px); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.h-hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 700; line-height: 1.25; letter-spacing: -0.03em; }
.h-hero h1 span { display: block; }
.h-hero h1 .accent, .h-closing h2 .accent { color: var(--accent); }
.h-lead { max-width: 30em; margin-top: 24px; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.85; }
.get { margin-top: 34px; }
.h-hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.h-hero-glow { position: absolute; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #f3e2d0 0 52%, rgb(243 226 208 / 0%) 71%); }
.device { position: relative; width: clamp(236px, 23vw, 292px); padding: 9px; border-radius: 46px; background: #2d2723; box-shadow: 0 32px 70px rgb(64 50 38 / 22%), inset 0 0 0 1.5px #57504a; }
.device-screen { width: 100%; height: auto; border-radius: 37px; }
#hero-film { display: block; aspect-ratio: 1080 / 1920; background: #e9dfcf; object-fit: cover; }
.film-play { display: none; }
.js .film-play { position: absolute; top: 50%; left: 50%; display: grid; width: 76px; height: 76px; place-items: center; padding-left: 4px; border: 0; border-radius: 50%; background: rgb(255 253 249 / 88%); color: var(--accent); box-shadow: 0 10px 28px rgb(64 50 38 / 28%); cursor: pointer; transform: translate(-50%, -50%); transition: transform 0.2s ease, background 0.2s ease; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.js .film-play:hover { background: #fff; transform: translate(-50%, -50%) scale(1.06); }
.device.is-playing .film-play { display: none; }

/* 下載鈕：依裝置只留一個（電腦與沒有 JavaScript 時兩個都在） */
html[data-device="ios"] .platform-download--play,
html[data-device="android"] .platform-download--apple { display: none; }

/* 2 誠意的樣子 */
.h-moments { background: var(--cream); }
.moments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; }
.moment img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 26px; object-fit: cover; box-shadow: var(--shadow-soft); }
.moment p { margin-top: 18px; font-size: 18px; line-height: 1.7; }

/* 3 怎麼認識：四步，左右交錯 */
.h-how { background: var(--sand); }
.steps { display: grid; gap: clamp(64px, 9vw, 128px); list-style: none; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.step:nth-child(even) .step-visual { order: 2; }
.step-visual { position: relative; display: grid; min-height: 500px; place-items: center; overflow: hidden; padding: 40px 24px; border-radius: var(--radius-lg); background: #e9ddcf url("../assets/home/20261109/step-bg.webp") center / cover; }
.step-visual::before { content: ""; position: absolute; inset: 0; background: rgb(250 246 240 / 58%); }
.step-visual > * { position: relative; }
.step-shot { height: auto; filter: drop-shadow(0 20px 30px rgb(64 50 38 / 22%)); }
.step-shot--coffee { width: min(290px, 84%); }
.step-shot--letter { width: min(390px, 94%); }
.mood-stack { display: grid; gap: 10px; width: min(288px, 88%); }
.mood-stack img { width: 100%; height: auto; filter: drop-shadow(0 12px 22px rgb(64 50 38 / 18%)); }
.mood-stack img:nth-child(2) { transform: translateX(14px); }
.mood-stack img:nth-child(3) { transform: translateX(-10px); }
.consent-card { width: min(390px, 94%); padding: 18px 18px 20px; border-radius: 26px; background: var(--cream); box-shadow: 0 20px 40px rgb(64 50 38 / 18%); }
.consent-title { margin-bottom: 14px; color: var(--ink-soft); font-size: 15px; }
.consent-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px 40px; align-items: center; gap: 12px; }
.consent-row img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.consent-row p { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.consent-row strong { font-size: 16px; }
.consent-row p span { color: var(--muted); font-size: 13px; }
.consent-no, .consent-yes { position: relative; width: 40px; height: 40px; border-radius: 50%; }
.consent-no { background: #efe7de; }
.consent-no::before, .consent-no::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; border-radius: 2px; background: #8d8178; transform: translate(-50%, -50%) rotate(45deg); }
.consent-no::after { transform: translate(-50%, -50%) rotate(-45deg); }
.consent-yes { background: #e0675e; box-shadow: 0 6px 14px rgb(224 103 94 / 35%); }
.consent-yes::before { content: ""; position: absolute; top: 12px; left: 14px; width: 9px; height: 15px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.step-copy { max-width: 440px; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; }
.step-copy h3 { font-size: clamp(25px, 2.7vw, 34px); line-height: 1.35; }
.step-copy p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; line-height: 1.85; }

/* 4 先看內在 */
.avatar-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.avatar-wall img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 10px 24px rgb(64 50 38 / 12%); }
.avatar-wall img:nth-child(4n + 2), .avatar-wall img:nth-child(4n + 4) { transform: translateY(18px); }

/* 5 適合的人 */
.h-fit { background: var(--cream); }
.fit-card { width: 100%; max-width: 460px; margin-inline: auto; padding: 28px 28px 32px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.fit-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 19px; }
.fit-card small { color: var(--muted); font-size: 12px; }
.fit-card ul { display: grid; gap: 18px; margin-top: 22px; list-style: none; }
.fit-card li { display: grid; gap: 8px; font-size: 15px; }
.fit-card i { position: relative; display: block; height: 10px; overflow: hidden; border-radius: 99px; background: #f1e8de; }
.fit-card i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--fit) * 100%); border-radius: inherit; background: var(--accent-soft); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .15s; }
.js .fit-card:not(.in) i::after { transform: scaleX(0); }

/* 6 安心 */
.h-trust { background: var(--sage); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust-grid article { padding: 28px 24px 30px; border-radius: 26px; background: rgb(255 255 255 / 72%); }
.trust-grid h3 { font-size: 19px; line-height: 1.45; }
.trust-grid p { margin-top: 10px; color: #5f6559; font-size: 15px; line-height: 1.85; }
.trust-age { margin-top: 32px; color: #5f6b59; font-size: 14px; text-align: center; }

/* 7 常見問題 */
.h-faq-wrap { max-width: 840px; }
.h-faq h2 { text-align: center; }
.faq-list { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 22px 4px; cursor: pointer; font-size: clamp(17px, 1.8vw, 20px); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; color: var(--accent); font-size: 26px; line-height: 1; transition: transform 0.25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 40em; padding: 0 4px 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.95; }

/* 8 結尾 */
.h-closing { background: var(--sand); }
.closing-art img { width: 100%; height: auto; max-height: 680px; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-soft); }
.h-closing h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.25; }
.h-closing h2 span { display: block; }

/* 手機底部下載列 */
.sticky-get { position: fixed; right: 12px; bottom: 12px; left: 12px; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid rgb(63 57 51 / 8%); border-radius: 22px; background: rgb(255 253 249 / 94%); box-shadow: 0 14px 36px rgb(64 50 38 / 20%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: sticky-rise 0.35s ease; }
.sticky-get[hidden] { display: none; }
.sticky-get-icon { width: 40px; height: 40px; border-radius: 11px; }
.sticky-get-text { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.35; }
.sticky-get-text strong { font-size: 15px; }
.sticky-get-text span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sticky-get-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; white-space: nowrap; }
@keyframes sticky-rise { from { opacity: 0; transform: translateY(16px); } }

/* 頁尾：沿用兩平台欄位，整理字級與間距 */
.home .footer { padding-top: 64px; }
.home .footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 54px; }
.home .footer-brand > p { max-width: 240px; color: #e0d7ce; font-size: 14px; }
.home .footer-links { display: grid; grid-template-columns: 0.85fr 1fr 1.2fr; gap: 28px; }
.home .footer-links > div { min-width: 0; gap: 0; }
.home .footer-links h2 { margin: 0 0 10px; color: #fff; font-family: var(--display); font-size: 14px; font-weight: 600; }
.home .footer-links a { display: flex; align-items: center; min-height: 40px; color: #e0d7ce; font-size: 13px; line-height: 1.6; }
.home .footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.home .footer-bottom { margin-top: 40px; color: #c9bfb4; font: 12px/1.8 var(--display); }

@media (max-width: 1000px) {
  .home .nav-links { display: none; }
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .home .wrap { padding-inline: 20px; }
  .h-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .h-hero-copy { text-align: center; }
  .h-hero h1 { font-size: clamp(34px, 10.4vw, 46px); }
  .h-lead { margin-inline: auto; font-size: 17px; }
  .get { justify-content: center; }
  .h-hero-visual { min-height: 0; padding-block: 8px 0; }
  .device { width: 232px; border-radius: 40px; }
  .device-screen { border-radius: 32px; }
  .moments { display: flex; gap: 14px; margin-inline: -20px; padding: 4px 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
  .moments::-webkit-scrollbar { display: none; }
  .moment { flex: 0 0 76%; scroll-snap-align: start; }
  .moment p { font-size: 17px; }
  .step { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-child(even) .step-visual { order: 0; }
  .step-visual { min-height: 380px; padding: 32px 18px; border-radius: 28px; }
  .consent-card { width: 100%; padding: 16px 14px 18px; }
  .consent-row { grid-template-columns: 42px minmax(0, 1fr) 34px 34px; gap: 9px; }
  .consent-row img { width: 42px; height: 42px; }
  .consent-no, .consent-yes { width: 34px; height: 34px; }
  .consent-yes::before { top: 9px; left: 12px; width: 8px; height: 13px; }
  .step-copy p { font-size: 17px; }
  .h-split { grid-template-columns: 1fr; gap: 36px; }
  .h-split--reverse .h-copy { order: 0; }
  .avatar-wall { gap: 10px; }
  .avatar-wall img { border-radius: 18px; }
  .avatar-wall img:nth-child(4n + 2), .avatar-wall img:nth-child(4n + 4) { transform: translateY(12px); }
  .trust-grid article { padding: 24px 20px 26px; }
  .h-closing .h-copy { text-align: center; }
  .h-closing .get { justify-content: center; }
  .home .footer-links { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .home .footer-links > div:first-child { grid-column: 1 / -1; }
  .home .footer-bottom { flex-direction: column; gap: 6px; }
  html[data-device="ios"] .footer, html[data-device="android"] .footer { padding-bottom: 32px; }
}

@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .home .nav .brand-name { display: none; }
  .home .nav-inner, .home .nav-actions { gap: 10px; }
  .home .lang-switch button { min-width: 36px; padding-inline: 5px; }
  .nav-get { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-get { animation: none; }
  .fit-card i::after { transition: none; }
  .faq-list summary::after { transition: none; }
  .js .film-play { transition: none; }
}
