﻿/* Ripple 首頁：溫暖手繪風（米色紙張、深棕墨線、粉彩、手寫註記） */
@font-face { font-family: "Comfortaa"; src: url("/assets/fonts/comfortaa.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #fdf9f1; --ink: #3d2c1e; --ink-2: #6b5443; --ink-3: #8b735f;
  --mint: #bce8d0; --lemon: #fee599; --coral: #ffaaa6; --sky: #bae3f8; --clay: #c2593f;
  --line: rgba(61, 44, 30, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lp { margin: 0; background: var(--paper); color: var(--ink); font-family: "Comfortaa", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.lp img, .lp video { display: block; max-width: 100%; }
.lp a { color: inherit; text-decoration: none; }
.lp :focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.hand { font-family: "Caveat", cursive; color: var(--clay); font-weight: 700; }

/* 導覽列 */
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(253, 249, 241, .94); border-bottom: 2px dashed var(--line); backdrop-filter: blur(6px); }
.lp-nav .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; }
.logo img { width: 30px; height: 30px; }
.lp-nav .links { display: flex; gap: 24px; flex: 1; font-size: 15px; color: var(--ink-2); }
.lp-nav .links a:hover { color: var(--ink); }

/* 按鈕：手繪歪框 + 實心偏移陰影 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 14px 10px 16px 12px / 12px 16px 10px 14px; background: #fff; color: var(--ink); font: 700 15px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn.p { background: var(--lemon); box-shadow: 4px 4px 0 var(--ink); }
.btn.p:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn.p:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.s:hover { background: #fffaf0; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* 第一屏 */
.hero { padding: 64px 0 44px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.32; font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--mint) 62%); }
.hero .sub { margin: 22px 0 28px; max-width: 560px; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.hero .sub .hand { font-size: 28px; display: inline-block; transform: rotate(-4deg); margin-left: 6px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }

/* 影片外框：紙膠帶 + 粗墨線 */
.frame { position: relative; border: 3px solid var(--ink); border-radius: 18px 14px 20px 16px; box-shadow: 8px 8px 0 var(--ink); background: #fff; overflow: visible; }
.frame::before { content: ""; position: absolute; z-index: 2; width: 110px; height: 28px; background: rgba(254, 229, 153, .88); top: -14px; left: 42%; transform: rotate(-3deg); }
.frame .chrome { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 2px solid var(--ink); border-radius: 15px 11px 0 0; background: #fff; }
.frame .chrome i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); }
.frame .chrome i:nth-child(1) { background: var(--coral); } .frame .chrome i:nth-child(2) { background: var(--lemon); } .frame .chrome i:nth-child(3) { background: var(--mint); }
.frame .chrome span { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0 0 15px 13px; background: #0b1220; }

/* 適用場合 */
.uses { padding: 18px 0 8px; text-align: center; }
.uses .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.uses span { padding: 7px 15px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: 14px; }
.uses span:nth-child(2) { background: var(--sky); } .uses span:nth-child(3) { background: var(--lemon); } .uses span:nth-child(4) { background: var(--mint); } .uses span:nth-child(5) { background: #ffd8cb; }

/* 功能 */
.feat { padding: 84px 0 40px; }
.sec-h { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 700; text-align: center; }
.sec-sub { margin: 10px 0 0; text-align: center; color: var(--ink-2); font-size: 16px; }
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; align-items: center; margin-top: 84px; }
.row.rev { grid-template-columns: 1.25fr 1fr; }
.row.rev .txt { order: 2; }
.tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mint); font-size: 13px; font-weight: 700; }
.row:nth-of-type(2) .tag { background: var(--sky); } .row:nth-of-type(3) .tag { background: var(--lemon); } .row:nth-of-type(4) .tag { background: var(--coral); }
.row h3 { margin: 0 0 12px; font-size: 27px; line-height: 1.35; }
.row p { margin: 0; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.shot { position: relative; }
.shot .main { border: 3px solid var(--ink); border-radius: 16px 12px 18px 14px; box-shadow: 6px 6px 0 var(--ink); width: 100%; }
.shot .ph { position: absolute; width: 23%; right: -3%; bottom: -10%; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; background: #0b1220; }
.shot .memo { position: absolute; left: -6%; top: -9%; transform: rotate(-6deg); font-size: 26px; }

/* 三步驟 */
.steps { padding: 90px 0; }
.st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.st li { list-style: none; padding: 26px; border: 2px solid var(--ink); border-radius: 18px 12px 16px 14px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.st li:nth-child(1) { transform: rotate(-1deg); } .st li:nth-child(3) { transform: rotate(1deg); }
.st { padding: 0; margin-bottom: 0; }
.st b { font-family: "Caveat", cursive; font-size: 28px; color: var(--clay); }
.st h3 { margin: 6px 0 8px; font-size: 20px; }
.st p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

/* 常見問題 */
.faq { padding: 10px 0 90px; }
.faq .list { max-width: 820px; margin: 34px auto 0; }
.faq details { border-bottom: 2px dashed var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--clay); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }

/* 結尾行動區 */
.end { padding: 0 0 80px; }
.end .box { text-align: center; padding: 48px 28px; border: 3px solid var(--ink); border-radius: 22px 16px 24px 18px; background: var(--mint); box-shadow: 8px 8px 0 var(--ink); }
.end h2 { margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 32px); }
.end .cta { justify-content: center; }

.lp-foot { border-top: 2px dashed var(--line); padding: 28px 0; font-size: 14px; color: var(--ink-3); }
.lp-foot .wrap { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-foot a:hover { color: var(--ink); }

/* 完整示範（有聲）彈窗 */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(40, 28, 18, .72); }
.modal[hidden] { display: none; }
.modal .in { width: min(1100px, 100%); }
.modal video { width: 100%; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 8px 8px 0 var(--ink); background: #000; }
.modal .close { display: block; margin: 0 0 12px auto; }

@media (max-width: 900px) {
  .hero .wrap, .row, .row.rev { grid-template-columns: 1fr; gap: 34px; }
  .row.rev .txt { order: 0; }
  .lp-nav .links { display: none; }
  .st { grid-template-columns: 1fr; }
  .st li { transform: none !important; }
  .shot .ph { width: 26%; right: 2%; }
  .shot .memo { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .lp-nav .btn.s { display: none; }
  .hero { padding-top: 36px; }
  .cta .btn { flex: 1 1 100%; }
  .frame { box-shadow: 5px 5px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

@media (max-width: 1240px) { .shot .memo { left: 2%; top: -11%; } }

/* 語言切換（手機也顯示） */
.lp-lang { background: #fff; padding: 0 12px; gap: 6px; font-weight: 700; }
.lp-lang svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .lp-nav .wrap { gap: 10px; } .lp-lang { padding: 0 10px; } }
