/* Memo Us 形象官網。色票與字型沿用 App 的繪本風設計（design/home-themes-20261121、mockup-kit-20261120）。 */
:root {
  --page: #FFF4E4; --cloud1: #FDE0BE; --cloud2: #FFE8CC; --cloud3: #FFEFD9;
  --anniv1: #FDE3DD; --anniv2: #F7C4C0; --next1: #FFF0C9; --next2: #FBD98E;
  --card: #FFFBF3; --edge: #EAD6BC; --dash: #D9BE98; --ink: #4A3226; --muted: #7A5E4A;
  --on-ink: #FFF4E0; --head-ink: #4A3226; --head-muted: #7A5E4A; --accent: #F2B661; --share: #FFF0C9;
  --cta-bg: #4A3226; --cta-fg: #FFF4E0;
  --love: #E8735A;
  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Huninn', 'PingFang TC', 'Noto Sans TC', system-ui, sans-serif;
  font-size: 17px; line-height: 1.75; color: var(--head-ink);
  background-color: var(--page);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(max(60vw,520px) max(22vw,240px) at 12% 6%, var(--cloud1), transparent 70%),
    radial-gradient(max(50vw,460px) max(18vw,220px) at 88% 14%, var(--cloud2), transparent 70%),
    radial-gradient(max(70vw,560px) max(26vw,280px) at 50% 38%, var(--cloud3), transparent 72%),
    radial-gradient(max(55vw,480px) max(20vw,240px) at 8% 62%, var(--cloud2), transparent 70%),
    radial-gradient(max(60vw,520px) max(22vw,240px) at 92% 84%, var(--cloud1), transparent 70%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--head-ink); outline-offset: 3px; border-radius: 6px; }

.serif { font-family: 'Noto Serif TC', 'Songti TC', serif; font-weight: 700; }
.it { font-family: 'Cormorant Garamond', 'Noto Serif TC', serif; font-style: italic; font-weight: 500; }
.num { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-style: normal; font-variant-numeric: lining-nums; }
.kicker { font-size: 20px; color: var(--head-muted); letter-spacing: .01em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cta-bg); color: var(--cta-fg); padding: 8px 14px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 12px; }

/* ---- 導覽 ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gut);
}
.nav::before {
  content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .6s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 24px; letter-spacing: .01em; }
.brand img { border-radius: 22%; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--head-muted); padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover { color: var(--head-ink); border-color: var(--head-ink); }
.lang { height: 36px; min-width: 52px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--head-ink); font-size: 13px; transition: background-color .2s, color .2s; }
.lang:hover { background: var(--cta-bg); color: var(--cta-fg); }

/* ---- 首屏 ---- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gut) clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.25; letter-spacing: .02em; margin: 10px 0 22px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--head-muted); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 32px; }
.soon { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 24px; background: var(--cta-bg); color: var(--cta-fg); font-size: 15px; transition: background-color .6s var(--ease), color .6s var(--ease); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.text-link { font-size: 15px; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.platforms { margin-top: 22px; font-size: 13px; color: var(--head-muted); }

.hero-stage { position: relative; justify-self: center; display: grid; justify-items: center; gap: 16px; }
/* 首屏的手機是可以操作的迷你 App：四個分頁、每日題、小任務、分享匯入。 */
.phone {
  width: min(330px, 84vw); aspect-ratio: 330 / 690; padding: 10px; border-radius: 52px;
  background: #2E211B; box-shadow: 0 2px 0 #1b1310, 0 40px 60px -24px color-mix(in srgb, var(--ink) 45%, transparent);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.phone img { -webkit-user-drag: none; pointer-events: none; }
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  color: var(--head-ink); background-color: var(--page);
  background-image: radial-gradient(90% 26% at 10% 4%, var(--cloud1), transparent 70%), radial-gradient(80% 24% at 95% 48%, var(--cloud2), transparent 70%), radial-gradient(90% 26% at 20% 92%, var(--cloud1), transparent 70%);
  transition: background-color .6s var(--ease), color .6s var(--ease);
  font-size: 12px; line-height: 1.45;
}
.view { position: absolute; inset: 0; padding: 42px 16px 84px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; display: none; flex-direction: column; gap: 10px; }
.view::-webkit-scrollbar { display: none; }
.view.on { display: flex; animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.view > * { flex: none; }
.phone button { font-size: inherit; line-height: inherit; text-align: left; }
.phone :focus-visible { outline-offset: 1px; }

.p-date { font-size: 13px; color: var(--head-muted); }
.p-hello, .p-title { font-size: 22px; line-height: 1.3; margin-top: -8px; }
.p-title { margin-top: 0; }
.p-small { font-size: 10.5px; opacity: .85; }
.p-center { text-align: center; }
.p-share { background: var(--share); color: var(--ink); border-radius: 12px; padding: 8px 12px; animation: viewIn .4s var(--ease); }
.p-share[hidden] { display: none; }

.p-hero { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--ink) 40%, transparent); color: #4A3226; }
[data-night='true'] .p-hero { color: #FFF6E8; }
.p-hero img { width: 100%; aspect-ratio: 1026 / 696; object-fit: cover; }
.p-hero-text { position: absolute; left: 14px; top: 12px; display: grid; }
.p-hero-text .num { font-size: 38px; line-height: 1; }
.phone .p-swap { position: absolute; right: 10px; bottom: 10px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(255, 251, 243, .92); color: #4A3226; font-size: 11px; transition: transform .2s var(--ease); }
.p-swap:active { transform: scale(.94); }

.p-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-mini { border-radius: 16px; padding: 10px 12px; display: grid; color: var(--ink); }
.p-mini.anniv { background: linear-gradient(150deg, var(--anniv1), var(--anniv2)); }
.p-mini.next { background: linear-gradient(150deg, var(--next1), var(--next2)); }
.p-mini .num { font-size: 26px; line-height: 1.1; }

.p-card { background: var(--card); color: var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 2px 0 var(--edge); display: grid; gap: 6px; transition: background-color .6s var(--ease), box-shadow .6s var(--ease); }
.p-card .it { color: var(--muted); font-size: 12px; }
.p-q { font-size: 14px; line-height: 1.45; }
.q-ask { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.q-ask .p-small { color: var(--muted); }
.phone .p-btn { height: 32px; padding: 0 16px; border-radius: 16px; background: var(--ink); color: var(--on-ink); font-size: 12px; }
.q-pick, .q-done { display: none; gap: 6px; }
.q[data-state='pick'] .q-ask, .q[data-state='done'] .q-ask { display: none; }
.q[data-state='pick'] .q-pick, .q[data-state='done'] .q-done { display: grid; animation: viewIn .35s var(--ease); }
.phone .p-opt { border: 1px solid var(--dash); border-radius: 12px; padding: 7px 12px; transition: background-color .2s; }
.p-opt:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.p-ans { border-radius: 12px; padding: 7px 12px; display: grid; }
.p-ans > span { font-size: 10px; color: var(--muted); }
.p-ans.mine { background: linear-gradient(150deg, var(--next1), var(--next2)); }
.p-ans.theirs { background: linear-gradient(150deg, var(--anniv1), var(--anniv2)); animation: viewIn .5s .25s var(--ease) both; }
.p-ans.mine p { display: none; }
.q[data-pick='0'] .mine p[data-i='0'], .q[data-pick='1'] .mine p[data-i='1'], .q[data-pick='2'] .mine p[data-i='2'] { display: block; }

.p-row-head { display: flex; justify-content: space-between; align-items: baseline; }
.p-row-head .num { font-size: 15px; }
.phone .p-task { display: flex; align-items: center; gap: 10px; padding: 6px 0; width: 100%; }
.p-task i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.p-task .w { display: none; font-size: 10px; color: var(--muted); border: 1px dashed var(--dash); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.p-task b { margin-left: auto; font-size: 16px; }
.p-task[aria-pressed='true'] i { background: var(--accent); border-color: var(--accent); }
.p-task[aria-pressed='true'] i::after { content: ''; width: 8px; height: 4px; border: solid var(--ink); border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg) translate(1px, -1px); }
.p-task[aria-pressed='true'] .t { color: var(--muted); }
.p-task[aria-pressed='true'] .w { display: inline; }
.p-task[aria-pressed='true'] b { opacity: .45; }

.p-seg { display: flex; gap: 16px; margin: 2px 0 4px; }
.phone .p-seg button { font-size: 13px; opacity: .55; padding-bottom: 4px; border-bottom: 1.5px solid transparent; }
.phone .p-seg button.on { opacity: 1; border-color: currentColor; }
.p-panel { display: none; gap: 10px; }
.p-panel.on { display: grid; animation: viewIn .3s var(--ease); }
.p-mem { background: var(--card); color: var(--ink); border-radius: 16px; padding: 8px 8px 10px; box-shadow: 0 2px 0 var(--edge); display: grid; gap: 6px; }
.p-mem img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.p-mem div { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; gap: 8px; }
.p-mem span { font-size: 10px; color: var(--muted); }
.p-lock { font-size: 11px; color: var(--head-muted); }
.p-lock::before { content: '🔒 '; }
.p-row { display: flex; align-items: center; gap: 12px; background: var(--card); color: var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: 0 2px 0 var(--edge); }
.p-row b { min-width: 40px; font-size: 18px; line-height: 1; }
.p-row div { display: grid; }
.p-row span { font-size: 10.5px; color: var(--muted); }
.p-row.dashed { border: 1px dashed var(--dash); box-shadow: none; }
.p-row.new { display: none; }
[data-state='done'] .p-row.new { display: flex; animation: viewIn .45s var(--ease) both; }
[data-state='done'] .p-row.new:nth-of-type(2) { animation-delay: .12s; }
[data-state='done'] .p-row.new:nth-of-type(3) { animation-delay: .24s; }
.phone .p-ig { border: 1px dashed var(--head-ink); border-radius: 14px; padding: 10px 14px; text-align: center; }
.p-ig span { display: none; }
[data-state='idle'] .s-idle, [data-state='loading'] .s-loading, [data-state='done'] .s-done { display: inline; }
[data-state='loading'] .p-ig { animation: breathe 1s ease-in-out infinite; }
[data-state='done'] .p-ig { border-color: var(--dash); opacity: .7; }
@keyframes breathe { 50% { opacity: .45; } }
.p-wallet { display: flex; justify-content: space-between; align-items: baseline; background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 8px 16px; }
.p-wallet .num { font-size: 26px; line-height: 1.1; color: var(--accent); }

.p-couple, .pv-pair { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.p-ava { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 20px; color: #4A3226; box-shadow: 0 2px 0 var(--edge); }
.p-ava.a { background: linear-gradient(150deg, #FFF0C9, #FBD98E); }
.p-ava.b { background: linear-gradient(150deg, #FDE3DD, #F7C4C0); }
.p-couple i, .pv-line i { font-style: normal; color: var(--love); }
.p-names { font-size: 18px; text-align: center; }
.p-settings { gap: 0; margin-top: 8px; }
.phone .p-set { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; width: 100%; border-top: 1px dashed var(--dash); }
.p-set:first-child { border-top: 0; }
.p-set b { font-weight: 400; color: var(--muted); }
button.p-set b::after { content: ' ›'; }

.phone .p-fab { position: absolute; right: 16px; bottom: 74px; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--ink); color: var(--on-ink); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--ink) 60%, transparent); display: none; }
.screen[data-view='memories'] .p-fab, .screen[data-view='plans'] .p-fab { display: block; }
[data-night='true'] .phone .p-fab { background: var(--on-ink); color: var(--ink); }
.p-toast { position: absolute; left: 16px; right: 16px; bottom: 120px; background: #2E211B; color: #FFF4E0; border-radius: 14px; padding: 10px 14px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.p-toast.show { opacity: 1; transform: none; }

.p-tabs { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 52px; border-radius: 26px; background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--ink) 35%, transparent); display: flex; justify-content: space-around; align-items: center; }
.phone .p-tabs button { display: grid; justify-items: center; gap: 1px; font-size: 9.5px; color: var(--muted); padding: 4px 8px; position: relative; }
.p-tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.p-tabs button.on { color: var(--ink); }
.p-tabs button.on::after { content: ''; position: absolute; bottom: -2px; width: 4px; height: 4px; border-radius: 2px; background: var(--accent); }
.mock-note { font-size: 13px; color: var(--head-muted); max-width: 22em; text-align: center; }

/* 分享匯入的示意：貼文 → 三筆店家 */
.art-share { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); align-items: center; gap: 14px; }
.post { background: var(--card); border-radius: 18px; padding: 12px; box-shadow: 0 2px 0 var(--edge), 0 22px 30px -18px color-mix(in srgb, var(--ink) 45%, transparent); display: grid; gap: 8px; font-size: 13px; line-height: 1.5; transform: rotate(-2.5deg); }
.post-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.post-head i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(150deg, var(--anniv2), var(--next2)); }
.post img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.post-share { justify-self: start; background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 4px 12px; font-size: 12px; }
.share-arrow svg { width: 44px; fill: none; stroke: var(--head-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 5; }
.share-list { display: grid; gap: 10px; }
.share-list .rowcard { padding: 12px 16px; gap: 12px; }
.share-list .rowcard b { min-width: 0; font-size: 20px; }
.share-list .rowcard:nth-child(2) { margin-left: 14px; }
@media (max-width: 520px) {
  .art-share { grid-template-columns: 1fr; justify-items: center; }
  .post { width: 70%; }
  .share-arrow { transform: rotate(90deg); }
  .share-list { width: 100%; }
}


/* ---- 段落標題 ---- */
section { scroll-margin-top: 72px; }
.sec-head { max-width: var(--wrap); margin: 0 auto clamp(32px, 5vw, 64px); padding: 0 var(--gut); }
.sec-head h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.3; letter-spacing: .02em; margin-top: 4px; text-wrap: balance; max-width: 18em; }
.sec-lead { margin-top: 14px; color: var(--head-muted); max-width: 34em; }

/* ---- 功能 ---- */
.features { padding: clamp(40px, 6vw, 80px) 0; }
.feature {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: center;
}
.feature.flip .f-copy { order: 2; }
.f-no { font-size: 22px; color: var(--head-muted); display: block; }
.f-copy h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; margin: 2px 0 12px; }
.f-copy p { color: var(--head-muted); max-width: 28em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { font-size: 13px; padding: 5px 13px; border-radius: 999px; border: 1px dashed var(--dash); color: var(--head-muted); }

.f-art { position: relative; color: var(--ink); min-height: 300px; display: grid; align-content: center; gap: 12px; }
.f-art > * { transition: background-color .6s var(--ease), box-shadow .6s var(--ease), color .6s var(--ease); }

.art-memories { min-height: 360px; }
.polaroid { position: absolute; width: min(56%, 300px); background: var(--card); padding: 10px 10px 12px; border-radius: 14px; box-shadow: 0 2px 0 var(--edge), 0 22px 30px -18px color-mix(in srgb, var(--ink) 45%, transparent); }
.polaroid img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.polaroid figcaption { font-size: 14px; margin-top: 8px; padding-left: 2px; }
.polaroid.a { left: 0; top: 4%; transform: rotate(-5deg); }
.polaroid.b { right: 0; top: 16%; transform: rotate(4deg); }
.polaroid.c { left: 22%; bottom: 0; transform: rotate(-1.5deg); }

.art-plans, .art-tasks { max-width: 440px; width: 100%; justify-self: center; }
.sharebar { background: var(--share); border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.rowcard { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: 18px; padding: 14px 18px; box-shadow: 0 2px 0 var(--edge); }
.rowcard b { font-size: 26px; min-width: 62px; line-height: 1; }
.rowcard.wish b { font-size: 22px; color: var(--love); font-family: inherit; }
.rowcard div { display: grid; line-height: 1.45; }
.rowcard span { font-size: 13px; color: var(--muted); }
.art-plans .rowcard:nth-of-type(2) { margin-left: 28px; }
.rowcard.wish { margin-left: 56px; border: 1px dashed var(--dash); box-shadow: none; }

.qcard { max-width: 440px; width: 100%; justify-self: center; background: var(--card); border-radius: 22px; padding: 24px; box-shadow: 0 2px 0 var(--edge), 0 26px 36px -24px color-mix(in srgb, var(--ink) 45%, transparent); display: grid; gap: 12px; }
.qcard > .it { color: var(--muted); font-size: 17px; }
.qcard > .serif { font-size: 22px; line-height: 1.5; }
.answer { border-radius: 16px; padding: 12px 16px; display: grid; gap: 2px; font-size: 15px; }
.answer span { font-size: 12px; color: var(--muted); }
.answer.mine { background: linear-gradient(150deg, var(--next1), var(--next2)); }
.answer.theirs { border: 1px dashed var(--dash); }
.veil { color: var(--muted); }
.veil::before { content: '♥ '; color: var(--love); }

.task { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 14px 18px; box-shadow: 0 2px 0 var(--edge); }
.task i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--ink); display: grid; place-items: center; }
.task.done i { background: var(--accent); border-color: var(--accent); }
.task.done i::after { content: ''; width: 10px; height: 5px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.task.done span { text-decoration: line-through; text-decoration-color: var(--dash); color: var(--muted); }
.task b { margin-left: auto; font-size: 22px; }
.wallet { justify-self: end; display: flex; align-items: baseline; gap: 12px; background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 10px 20px; font-size: 14px; transform: rotate(-2deg); }
.wallet .num { font-size: 34px; line-height: 1; color: var(--accent); }
.reward { display: flex; align-items: center; gap: 14px; background: linear-gradient(150deg, var(--anniv1), var(--anniv2)); border-radius: 18px; padding: 14px 18px; }
.reward span { font-size: 12px; color: var(--muted); }
.reward b { margin-left: auto; font-size: 22px; }

.extras {
  max-width: var(--wrap); margin: clamp(32px, 5vw, 64px) auto 0; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.extras li { display: grid; gap: 6px; align-content: start; padding: 22px 28px; border-left: 1px dashed var(--dash); }
.extras li:first-child { border-left: 0; padding-left: 0; }
.extras strong { font-size: 19px; }
.extras span { font-size: 15px; color: var(--head-muted); }

/* ---- 換一幅畫 ---- */
.paintings { padding: clamp(48px, 7vw, 96px) 0; }
.gallery { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px); }
.tile { text-align: left; display: grid; gap: 10px; border-radius: 22px; padding: 8px 8px 12px; transition: background-color .3s, transform .3s var(--ease); }
.tile img { width: 100%; aspect-ratio: 1026 / 696; object-fit: cover; border-radius: 16px; box-shadow: 0 16px 24px -16px rgba(40, 24, 16, .45); transition: transform .4s var(--ease); }
.tile span { font-size: 17px; padding-left: 8px; display: flex; align-items: center; gap: 8px; }
.tile span::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--head-ink); transition: background-color .3s; }
.tile:hover img { transform: translateY(-4px) rotate(-.6deg); }
.tile[aria-checked='true'] { background: color-mix(in srgb, var(--card) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--head-ink); }
.tile[aria-checked='true'] span::before { background: var(--accent); border-color: var(--accent); }

/* ---- 只屬於兩個人 ---- */
.private { padding: clamp(48px, 7vw, 96px) 0; }
.private { padding: clamp(48px, 7vw, 96px) var(--gut); }
.pv-card {
  max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; background: var(--card); color: var(--ink);
  border-radius: clamp(24px, 3vw, 36px); box-shadow: 0 2px 0 var(--edge), 0 40px 60px -40px color-mix(in srgb, var(--ink) 40%, transparent);
  padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease), opacity .7s var(--ease), transform .7s var(--ease);
}
.pv-left .kicker { color: var(--muted); }
.pv-left h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; letter-spacing: .02em; margin-top: 4px; }
.pv-lead { color: var(--muted); margin-top: 14px; max-width: 24em; }
.pv-pair { justify-content: flex-start; gap: 0; margin-top: 32px; }
.pv-pair .p-ava { width: 64px; height: 64px; font-size: 22px; }
.pv-line { flex: 0 1 120px; height: 0; border-top: 1.5px dashed var(--dash); position: relative; }
.pv-line i { position: absolute; left: 50%; top: 0; transform: translate(-50%, -52%); background: var(--card); padding: 0 8px; font-size: 18px; transition: background-color .6s var(--ease); }
.pv-code { display: flex; gap: 6px; margin-top: 22px; }
.pv-code b { width: 34px; height: 42px; border-radius: 10px; border: 1px dashed var(--dash); display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 22px; font-variant-numeric: lining-nums; }
.pv-cap { font-size: 13px; color: var(--muted); margin-top: 10px; }
.pv-list li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 26px 0; border-top: 1px dashed var(--dash); }
.pv-list li:first-child { border-top: 0; padding-top: 0; }
.pv-list li:last-child { padding-bottom: 0; }
.pv-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--next1), var(--next2)); transition: background .6s var(--ease); }
.pv-list li:nth-child(2) .pv-ico { background: linear-gradient(150deg, var(--anniv1), var(--anniv2)); }
.pv-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-list h3 { font-size: 21px; line-height: 1.4; }
.pv-list p { font-size: 15px; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) {
  .pv-card { grid-template-columns: 1fr; }
}


/* ---- 結尾 ---- */
.closing { text-align: center; padding: clamp(56px, 8vw, 112px) var(--gut) clamp(48px, 6vw, 80px); display: grid; justify-items: center; gap: 12px; }
.closing img { border-radius: 22%; box-shadow: 0 18px 28px -14px rgba(40, 24, 16, .5); transform: rotate(-4deg); margin-bottom: 12px; }
.closing h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: .04em; }
.closing p { color: var(--head-muted); max-width: 28em; }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gut) 40px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--head-muted); border-top: 1px dashed var(--dash); }
.foot .brand { font-size: 18px; color: var(--head-ink); }

/* ---- 動態 ---- */
/* 換畫的顏色過場在 JS 套好初始主題後才啟用，避免載入時從預設色閃到已選的畫。 */
.ready body { transition: background-color .6s var(--ease), color .6s var(--ease); }
html:not(.ready) * { transition: none !important; }
.ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ready .reveal.in { opacity: 1; transform: none; }
.hero-copy > *, .hero-stage { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-stage { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

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

/* ---- 窄版 ---- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature.flip .f-copy { order: 0; }
  .extras { grid-template-columns: 1fr; }
  .extras li, .extras li:first-child { border-left: 0; border-top: 1px dashed var(--dash); padding: 20px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .art-memories { min-height: 0; aspect-ratio: 1 / 1.02; }
  .art-plans .rowcard:nth-of-type(2) { margin-left: 14px; }
  .rowcard.wish { margin-left: 28px; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .tile span { font-size: 15px; }
  .polaroid figcaption { font-size: 12px; }
}
