/* 歌盒 SongGift 行銷網站樣式。手機優先，用流動欄位與 clamp() 往上放大，900px 以上為桌機版面。 */
:root {
  --coral: #F0624D;       /* 品牌珊瑚紅：大面積色塊、插圖 */
  --coral-btn: #E5503B;   /* 按鈕與色帶（上面只放 18px 以上粗字） */
  --coral-ink: #C94330;   /* 白底、奶油底上的珊瑚色小字 */
  --coral-soft: #FFE4DB;
  --coral-deep: #47140B;  /* 珊瑚底上的內文字 */
  --cream: #FFF6E9;
  --cream-2: #FBEAD3;
  --ink: #1F1B1A;
  --sub: #6B5F58;
  --line: #EBDFCD;
  --mustard: #FFC83D;
  --mustard-soft: #FFEFC0;
  --mustard-ink: #3A2A00;
  --shadow: 0 8px 24px rgba(31, 27, 26, .08);
  --display: "Chiron GoRound TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --g: clamp(20px, 4vw, 40px);                                  /* 左右留白 */
  --w: 1120px;                                                  /* 內容最大寬 */
  --disc: clamp(336px, calc(336px + (100vw - 390px) * .204), 440px); /* 唱片直徑：手機 336、桌機 440，其餘依它等比 */
  --radius-top: clamp(32px, 2px + 4.2vw, 40px);                 /* 白色面板上緣圓角 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #fff; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font: 400 16px/1.7 var(--body); color: var(--ink); -webkit-font-smoothing: antialiased; caret-color: var(--coral-btn); accent-color: var(--coral-btn); }
::selection { background: var(--mustard); color: var(--mustard-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(44px, calc(33.6px + 2.667vw), 72px); line-height: 1.22; letter-spacing: .01em; }
h2 { font-weight: 900; font-size: 28px; line-height: 1.32; }
h3 { font-weight: 700; font-size: 19px; line-height: 1.4; }
@media (min-width: 900px) { h2 { font-size: clamp(30px, 1.2rem + 1.2vw, 40px); } }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill { fill: currentColor; stroke: none; }
.page { overflow-x: clip; }
.wrap { width: min(var(--w), 100% - 2 * var(--g)); margin-inline: auto; }
.narrow { max-width: 720px; }

/* 頁首：與主視覺同一塊珊瑚色 */
.top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 max(calc(var(--g) - 8px), calc(50% - 552px)) 0 max(var(--g), calc(50% - 560px)); background: var(--coral); }
.top.plain { background: var(--cream); }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.brand .m { height: 38px; width: auto; }
.brand .w { height: 25px; width: auto; }
.top nav { display: flex; }
.top nav a { display: flex; align-items: center; height: 44px; padding: 0 9px; font-weight: 500; font-size: 15px; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .top { height: 76px; } .top nav a { padding: 0 14px; font-size: 16px; } .brand .m { height: 44px; } .brand .w { height: 29px; } }

/* 主要行動：芥末黃大膠囊 */
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 62px; border-radius: 999px; background: var(--mustard); color: var(--mustard-ink); font: 900 20px/1 var(--display); box-shadow: 0 10px 22px rgba(196, 136, 0, .30), inset 0 -3px 0 rgba(58, 42, 0, .12); transition: transform .15s; }
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: translateY(2px); }
.cta .ic { width: 22px; height: 22px; stroke-width: 2.6; }
.btn-coral { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 999px; background: var(--coral-btn); color: #fff; font: 700 19px/1 var(--display); }
.btn-coral:hover { background: #D9442F; }

.sec { padding: 56px 0; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--mustard-soft); color: var(--mustard-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fine { margin-top: 12px; font-size: 13px; color: var(--sub); }

/* 打勾清單 */
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.6; }
.checks .ic { margin-top: 3px; color: var(--coral-ink); stroke-width: 2.6; }

/* ───────── 首頁主視覺 ───────── */
.b-hero { background: var(--coral); padding-bottom: calc(var(--disc) * .4464); }
.b-hero h1 { padding: 14px var(--g) 0; color: #fff; text-align: center; }
.b-stage { position: relative; height: calc(var(--disc) * .744); margin-top: 22px; }
.b-disc { position: absolute; left: 50%; top: 0; width: var(--disc); height: var(--disc); margin-left: calc(var(--disc) / -2); border-radius: 50%; background:
  radial-gradient(circle, var(--mustard) 0 calc(var(--disc) * .0893), var(--cream) calc(var(--disc) * .0908) calc(var(--disc) * .1071), transparent calc(var(--disc) * .1086)),
  repeating-radial-gradient(circle, var(--cream) 0 calc(var(--disc) * .0298), #F2DFC2 calc(var(--disc) * .0298) calc(var(--disc) * .0342));
  box-shadow: 0 14px 30px rgba(120, 30, 14, .28); }
.b-note { position: absolute; color: var(--mustard); }
.b-note.n1 { left: calc(50% - var(--disc) / 2); top: 40px; width: 40px; height: 40px; transform: rotate(-14deg); }
.b-note.n2 { right: calc(50% - var(--disc) / 2); top: 14px; width: 30px; height: 30px; transform: rotate(12deg); color: #fff; }
.b-note.n3 { right: calc(50% - var(--disc) / 2 + 16px); top: calc(var(--disc) * .446); width: 24px; height: 24px; transform: rotate(-8deg); }
.b-sheet { position: relative; margin-top: calc(var(--disc) * -.4464); background: #fff; border-radius: var(--radius-top) var(--radius-top) 0 0; padding: calc(var(--disc) * .232 + 14px) var(--g) 8px; text-align: center; }
.b-sheet > :not(.b-box) { max-width: 560px; margin-inline: auto; }
.b-box { position: absolute; left: 50%; top: calc(var(--disc) * -.5536); width: calc(var(--disc) * .631); height: auto; margin-left: calc(var(--disc) * -.3155); transform-origin: 50% 100%; }
.b-sheet .lead { margin-bottom: 20px; font-size: 17px; color: var(--sub); }
.b-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 14px; font-weight: 500; }
.b-facts li { display: flex; align-items: center; gap: 5px; }
.b-facts .ic { width: 16px; height: 16px; color: var(--coral-ink); stroke-width: 2.6; }

/* 唯一一個有設計的動態：禮盒從面板後方彈上來，音符輕輕漂浮 */
@keyframes box-up { from { transform: translateY(56px) scale(.94); } to { transform: none; } }
@keyframes note-float { from { translate: 0 0; } to { translate: 0 -8px; } }
.b-box { animation: box-up .6s cubic-bezier(.16, 1, .3, 1) both; }
.b-note { animation: note-float 2.8s ease-in-out infinite alternate; }
.b-note.n2 { animation-delay: -.9s; }
.b-note.n3 { animation-delay: -1.8s; }

/* ───────── 其他頁的珊瑚色帶頁首與白色面板 ───────── */
.p-hero { background: var(--coral); padding: 14px 0 calc(var(--radius-top) + 40px); }
.p-hero h1 { color: #fff; font-size: clamp(44px, calc(31px + 2.4vw), 60px); }
.p-hero .lead { margin-top: 14px; max-width: 720px; font-size: 17px; font-weight: 500; color: var(--coral-deep); }
.p-hero .cta { max-width: 420px; margin-top: 26px; }
.p-hero .alt { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 700; color: var(--coral-deep); text-decoration: underline; text-underline-offset: 4px; }
.p-sheet { position: relative; margin-top: calc(var(--radius-top) * -1); background: #fff; border-radius: var(--radius-top) var(--radius-top) 0 0; }
.p-sheet > .sec:first-child { padding-top: 48px; }
.draft { margin: 16px 0 40px; color: var(--sub); }
/* 條款與隱私權：長文閱讀，標題用圓體、表格在窄螢幕可橫向捲動 */
.legal { padding-bottom: 56px; }
.legal > p:first-child { margin: 0 0 8px; color: var(--sub); font-size: 15px; }
.legal h2 { margin: 40px 0 12px; font-size: 22px; line-height: 1.4; }
.legal p, .legal li { font-size: 16px; line-height: 1.8; }
.legal p { margin: 10px 0; }
.legal ul { margin: 10px 0; padding-left: 1.3em; list-style: disc; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--coral-ink); }
.legal strong { font-weight: 700; }
.legal table { display: block; overflow-x: auto; margin: 14px 0; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1.5px solid var(--line); text-align: left; vertical-align: top; min-width: 7em; }
.legal th { font-weight: 700; background: var(--cream); }

/* ───────── 示範歌 ───────── */
.b-demos { padding: 48px 0 8px; }
.b-scroll { display: flex; gap: 12px; padding: 20px var(--g) 24px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--g); scrollbar-width: none; }
.b-scroll::-webkit-scrollbar { display: none; }
.b-song { flex: none; width: clamp(240px, 67.7vw, 320px); border-radius: 24px; padding: 18px; scroll-snap-align: start; }
.b-song.c1 { background: var(--cream); }
.b-song.c2 { background: var(--mustard-soft); }
.b-song.c3 { background: var(--coral-soft); }
.b-song .style { margin-top: 2px; font-size: 14px; color: var(--sub); }
.b-song .for { margin-top: 12px; font-size: 14px; color: var(--sub); }
.b-song h3 { font-weight: 900; font-size: 21px; }
.b-song .row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.b-song .tag { background: #fff; }
.b-demos .fine { margin: 0 auto; width: min(var(--w), 100% - 2 * var(--g)); }
@media (min-width: 900px) {
  .b-demos { padding-top: 64px; }
  .b-scroll { display: grid; grid-template-columns: repeat(3, 1fr); width: min(var(--w), 100% - 2 * var(--g)); margin-inline: auto; padding-inline: 0; overflow: visible; gap: 20px; }
  .b-song { width: auto; padding: 22px; }
}
.play { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--coral-btn); color: #fff; box-shadow: 0 6px 14px rgba(229, 80, 59, .32); }
.play .ic { width: 22px; height: 22px; margin-left: 3px; }
.play.sm { width: 44px; height: 44px; box-shadow: none; }
.play.sm .ic { width: 18px; height: 18px; }
.play:hover { background: #D9442F; }
.play .i-pause { margin-left: 0; }
.play[aria-pressed="true"] .i-play, .play:not([aria-pressed="true"]) .i-pause { display: none; }
.play:disabled { background: var(--cream-2); color: var(--sub); cursor: default; }
.wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 44px; flex: 1; min-width: 0; overflow: hidden; }
.wave i { width: 3px; flex: none; border-radius: 3px; background: #E7D9C6; }
.wave i.p { background: var(--coral); }
.time { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--sub); }
.is-off .wave { display: none; }
.is-off .time { flex: 1; }
html:not(.js) .b-song .row { display: none; }

/* ───────── 三步驟 ───────── */
.b-steps { display: grid; gap: 10px; margin-top: 22px; }
.b-steps li { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 6px; border-radius: 24px; padding: 20px 20px 20px 16px; }
.b-steps .n { font: 900 64px/1 var(--display); text-align: center; }
.b-steps p { margin-top: 2px; font-size: 15px; }
.b-steps .s1 { background: var(--cream-2); } .b-steps .s1 .n { color: var(--coral-ink); }
.b-steps .s2 { background: var(--mustard); color: var(--mustard-ink); }
.b-steps .s3 { background: var(--coral-soft); } .b-steps .s3 .n { color: var(--coral-ink); }
@media (min-width: 760px) {
  .b-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
  .b-steps li { grid-template-columns: 1fr; align-items: start; gap: 8px; padding: 26px 26px 30px; }
  .b-steps .n { text-align: left; font-size: 72px; }
  .b-steps p { font-size: 16px; }
}

/* ───────── 名字唸法（深色面板） ───────── */
.b-name { width: min(var(--w), 100% - 24px); margin-inline: auto; background: var(--ink); color: var(--cream); border-radius: 28px; padding: 36px clamp(20px, 5vw, 56px) 32px; }
.b-name h2 em { font-style: normal; color: var(--mustard); }
.b-name .head > p { margin-top: 8px; color: #D9CBB8; }
.b-name .namecard { margin: 22px 0; color: var(--ink); }
.b-name .checks .ic { color: var(--mustard); }
.namecard { background: #fff; border-radius: 20px; padding: 20px; }
.namecard .q { font-size: 15px; color: var(--sub); }
.namecard .nm { font: 900 46px/1.25 var(--display); letter-spacing: .08em; margin: 2px 0 14px; }
.namecard .nm b { color: var(--coral-ink); text-decoration: underline wavy var(--mustard) 3px; text-underline-offset: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 16px; }
.chip small { font-weight: 400; font-size: 13px; color: var(--sub); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on small { color: #E7D9C6; }
.chip .ic { width: 18px; height: 18px; stroke-width: 2.8; color: var(--mustard); }
@media (min-width: 900px) {
  .b-name { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head card" "list card"; column-gap: clamp(40px, 6vw, 88px); align-items: center; border-radius: 40px; padding-block: 56px; }
  .b-name .head { grid-area: head; align-self: end; }
  .b-name .namecard { grid-area: card; margin: 0; padding: 32px; }
  .b-name .namecard .nm { font-size: 64px; }
  .b-name .checks { grid-area: list; align-self: start; margin-top: 24px; }
}

/* ───────── 價格 ───────── */
.b-price { background: var(--cream); margin-top: 56px; }
.b-price .amt { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; font: 900 84px/1 var(--display); color: var(--coral-ink); letter-spacing: -.02em; }
.b-price .amt small { font: 900 22px/1 var(--display); color: var(--ink); letter-spacing: 0; }
.b-price .sub { color: var(--sub); margin-top: 8px; }
.b-price .checks { margin: 20px 0 24px; }
.price-free { margin-top: 12px; font-size: 14px; color: var(--sub); text-align: center; }
.soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 20px; border: 1.5px dashed #D8C8B0; }
.soon b { font: 700 17px/1.4 var(--display); }
.soon span:not(.tag) { display: block; font-size: 14px; color: var(--sub); }
.price-notes { display: grid; gap: 6px; margin-top: 20px; font-size: 13.5px; color: var(--sub); }
@media (min-width: 900px) {
  .b-price { margin-top: 72px; }
  .b-price .sec-in { padding: 24px 0; }
  .price-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .b-price .amt { font-size: clamp(96px, 9vw, 128px); }
  .b-price .amt small { font-size: 28px; }
  .b-price .sub { max-width: 420px; }
  .b-price .checks { margin-top: 0; }
}

/* ───────── 適合的時刻 ───────── */
.occ-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.occ-chips .chip { text-decoration: none; }
.occ-chips .chip .ic { color: var(--coral-ink); stroke-width: 2.2; }
.occ-chips .chip:hover { background: var(--coral-soft); border-color: var(--coral-soft); }
.occ-note { margin-top: 28px; font-weight: 700; font-size: 15px; color: var(--sub); }
.occ-list { margin-top: 8px; border-top: 1.5px solid var(--line); }
.occ-list a { text-decoration: none; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 4px 14px; min-height: 64px; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.occ-list .ic { color: var(--coral-ink); width: 24px; height: 24px; grid-row: span 2; }
.occ-list b { font: 700 17px/1.4 var(--display); }
.occ-list span { font-size: 14.5px; color: var(--sub); }
.occ-list a:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 640px) { .occ-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 900px) { .occ-list { grid-template-columns: repeat(4, 1fr); } .occ-list a { grid-template-columns: 1fr; align-content: start; padding: 20px 0; } .occ-list .ic { grid-row: auto; margin-bottom: 4px; } }

/* ───────── 常見問題 ───────── */
.faq-wrap { max-width: 720px; margin-inline: auto; }
.faq { margin-top: 20px; border-top: 1.5px solid var(--line); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 18px 0; font: 700 17px/1.5 var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--coral-ink); }
.faq summary .minus, .faq details[open] summary .plus { display: none; }
.faq details[open] summary .minus { display: block; }
.faq .ans { margin: -6px 0 18px; color: var(--sub); font-size: 15.5px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; height: 44px; font-weight: 700; color: var(--coral-ink); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 情境頁的寫作提示 */
.tips { margin-top: 20px; border-top: 1.5px solid var(--line); }
.tips li { padding: 18px 0; border-bottom: 1.5px solid var(--line); }
.tips p { margin-top: 4px; color: var(--sub); font-size: 15.5px; }
@media (min-width: 900px) { .tips li { display: grid; grid-template-columns: 240px 1fr; gap: 24px; } .tips p { margin: 0; } }

/* ───────── 結尾與頁尾 ───────── */
.final { background: var(--coral-btn); border-radius: var(--radius-top) var(--radius-top) 0 0; padding: 48px var(--g) 44px; text-align: center; color: #fff; }
.final h2 { font-size: clamp(30px, 1.5rem + 2vw, 44px); }
.final p { margin: 10px 0 24px; color: var(--coral-deep); font-weight: 700; font-size: 19px; }
.final .cta { max-width: 420px; margin-inline: auto; }
.foot { background: var(--ink); color: var(--cream); padding: 32px 0 40px; font-size: 14px; }
.foot-in { display: grid; gap: 24px; }
.foot .brandline { font: 900 20px/1 var(--display); }
.foot .brandline span { font: 500 14px/1 var(--body); margin-left: 8px; color: #D9CBB8; }
.foot p { margin-top: 10px; color: #D9CBB8; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { display: flex; align-items: center; height: 44px; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .nav-label { display: flex; align-items: center; height: 44px; color: #D9CBB8; font-weight: 700; }
.foot-legal { margin-top: 0 !important; font-size: 13px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.2fr 1fr; gap: 24px 64px; } .foot-legal { grid-column: 1 / -1; } .foot { padding-top: 56px; } }

/* 手機版底部固定按鈕：主視覺的按鈕捲出畫面後才出現 */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1.5px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
.sticky-cta.on { transform: none; visibility: visible; transition: transform .25s; }
.sticky-cta .cta { height: 56px; font-size: 19px; box-shadow: 0 6px 14px rgba(196, 136, 0, .28), inset 0 -3px 0 rgba(58, 42, 0, .12); }
.has-sticky .foot { padding-bottom: 112px; }
@media (min-width: 900px) { .sticky-cta { display: none; } .has-sticky .foot { padding-bottom: 40px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
