/* ============================================================
   Pick My Card — Landing Page (scrollytelling)
   手機優先（390px 為主要設計目標），桌機單欄置中 + 淡色裝飾
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
    background:
        radial-gradient(90rem 60rem at 85% -10%, rgba(59, 130, 246, 0.08), transparent 60%),
        radial-gradient(70rem 50rem at -10% 40%, rgba(30, 64, 175, 0.06), transparent 55%),
        #f6f8fc;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- 頂端進度條 ---------- */
.lp-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(30, 64, 175, 0.08);
    z-index: 50;
}
.lp-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
}

/* ---------- 開場提示 ---------- */
.lp-hint {
    position: fixed;
    top: 50%; left: 0; right: 0;
    transform: translateY(-60%);
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.14em;
    z-index: 40;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.lp-hint.gone { opacity: 0; }
/* 拉長的向下箭頭（直線 + 箭頭尖） */
.lp-hint-arrow {
    display: block;
    position: relative;
    width: 2px;
    height: 46px;
    margin: 14px auto 0;
    background: #64748b;
    border-radius: 2px;
    animation: lp-hint-bob 2s ease-in-out infinite;
}
.lp-hint-arrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translate(-50%, -1px) rotate(45deg);
}
@keyframes lp-hint-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
}
.lp-hint-sub {
    display: block;
    margin-top: 24px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.1em;
}

/* 常駐下滑提示（淺灰 chevron，開始滑動後出現、接近結尾消失；點擊跳到下一幕） */
.lp-scrollcue {
    position: fixed;
    bottom: 4px;
    left: 50%;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    padding: 0;
    border: none;
    background: transparent;
    z-index: 40;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.lp-scrollcue::before {
    content: "";
    position: absolute;
    left: 15px; right: 15px; top: 12px; bottom: 20px;
    border-right: 3px solid #94a3b8;
    border-bottom: 3px solid #94a3b8;
    border-radius: 2px;
    transform: rotate(45deg);
    animation: lp-cue-bob 1.8s ease-in-out infinite;
}
.lp-scrollcue.show { opacity: 0.85; pointer-events: auto; }
@keyframes lp-cue-bob {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50%      { transform: translateY(6px) rotate(45deg); }
}

/* ---------- 右上角快速入口（第 1 幕顯示，第 2 幕起淡出） ---------- */
.lp-skip {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: 16px;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
    transition: opacity 0.4s ease;
    -webkit-tap-highlight-color: transparent;
}
.lp-skip:hover { background: #fff; }
.lp-skip.gone { opacity: 0; pointer-events: none; }

/* ---------- Scrolly 骨架 ---------- */
.lp-scrolly { height: 680vh; }

.lp-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

.lp-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    visibility: hidden;
}
.lp-scene.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* 桌機：內容欄置中收窄 */
.lp-scene > * { width: 100%; max-width: 460px; }

/* ---------- 進場動畫元素（.fx） ---------- */
.fx {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fx.on {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 共用文字樣式 ---------- */
.lp-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #2563eb;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.lp-title {
    font-size: clamp(1.45rem, 6vw, 1.8rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 22px;
    color: #0f172a;
}
.lp-note {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.7;
    margin-top: 20px;
}
.lp-disclaimer {
    position: absolute;
    right: 16px;
    bottom: calc(58px + env(safe-area-inset-bottom)); /* 避開底部下滑提示 */
    width: auto;
    font-size: 0.68rem;
    color: #4a5871;
    letter-spacing: 0.02em;
    font-style: italic;
}

/* ============================================================
   第 1 幕｜開場：混亂收斂
   ============================================================ */
.lp-frags {
    position: absolute;
    inset: 0;
    width: auto;
    max-width: none;
    pointer-events: none;
}
.lp-frag {
    --c: 0; /* 收斂進度 0→1，由 JS 寫在 .lp-s1 上 */
    position: absolute;
    top: 50%; left: 50%;
    transform:
        translate(-50%, -50%)
        translate(
            calc(var(--tx) * var(--sx, 1) * (1 - var(--c))),
            calc(var(--ty) * var(--sy, 1) * (1 - var(--c)) + 56px * var(--c)) /* 收斂點：中間偏下（與結果卡位置一致） */
        )
        rotate(calc(var(--rz) * (1 - var(--c))))
        scale(calc(1 - 0.85 * var(--c)));
    opacity: calc(1 - var(--c) * 1.25);
    will-change: transform, opacity;
}
.lp-s1 .lp-frag { --c: var(--conv, 0); }
.lp-frag i {
    display: inline-block;
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
    animation: lp-float 4.5s ease-in-out var(--fd, 0s) infinite alternate;
}
@keyframes lp-float {
    from { transform: translateY(-5px); }
    to   { transform: translateY(6px); }
}

/* 第 1 幕：兩段式堆疊（結果卡 → 品牌畫面，重疊置中） */
.lp-s1-stack {
    display: grid;
    place-items: center;
}
.lp-s1-stack > * { grid-area: 1 / 1; }

/* 第一段：碎片收斂成的搜尋結果卡（中間偏下，與碎片收斂點一致） */
.lp-s1-result {
    margin-top: 112px;
    width: min(320px, 82vw);
    background: #fff;
    border: 2px solid #3b82f6;
    border-radius: 18px;
    padding: 26px 26px 22px;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.20);
    text-align: center;
}
.lp-s1-q {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 10px;
}
.lp-s1-cardname {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}
.lp-s1-rate {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 20px;
}
.lp-brain-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 7px;
    font-variant-numeric: tabular-nums;
}
.lp-brain-track {
    height: 8px;
    border-radius: 999px;
    background: #e8edf5;
    overflow: hidden;
}
.lp-brain-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* 進場：碎片被吸入後「凝聚成形」——從模糊的小尺寸凝聚成清晰卡片（無彈跳） */
.lp-s1-result.fx {
    opacity: 0;
    transform: scale(0.62);
    filter: blur(12px);
    transition: none;
}
.lp-s1-result.fx.on {
    opacity: 1;
    transform: none;
    filter: blur(0);
    transition: opacity 0.55s ease-out, transform 0.65s cubic-bezier(0.22, 0.9, 0.35, 1), filter 0.5s ease-out;
}
/* 第一段退場：往上淡出，讓品牌畫面接上 */
.lp-s1-result.fx.on.out {
    opacity: 0;
    transform: translateY(-46px) scale(0.96);
    pointer-events: none;
}

.lp-brand { position: relative; }
.lp-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}
.lp-brand-logo-img {
    height: 22px;
    width: auto;
}
.lp-brand-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 900;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 16px;
}
.lp-brand-t2 {
    background: linear-gradient(120deg, #1e40af 10%, #2563eb 55%, #3b82f6 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2563eb;
}
.lp-brand-sub {
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.75;
    transition-delay: 0.15s;
}

/* ============================================================
   卡面（純 CSS，含晶片 / 感應波 / 金屬光澤）
   ============================================================ */
.lp-card {
    position: relative;
    aspect-ratio: 1.586;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}
/* 金屬光澤（斜向高光帶）＋ 頂部柔光 */
.lp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.4) 46%, rgba(255, 255, 255, 0.1) 52%, transparent 60%),
        radial-gradient(130% 90% at 18% -5%, rgba(255, 255, 255, 0.28), transparent 55%);
    pointer-events: none;
}
.lp-chip {
    position: absolute;
    top: 22%; left: 9%;
    width: 17%;
    aspect-ratio: 1.3;
    border-radius: 3px;
    background:
        linear-gradient(to right, transparent 44%, rgba(120, 72, 8, 0.55) 44%, rgba(120, 72, 8, 0.55) 56%, transparent 56%),
        linear-gradient(to bottom, transparent 30%, rgba(120, 72, 8, 0.55) 30%, rgba(120, 72, 8, 0.55) 38%, transparent 38%, transparent 62%, rgba(120, 72, 8, 0.55) 62%, rgba(120, 72, 8, 0.55) 70%, transparent 70%),
        linear-gradient(135deg, #fde68a, #d97706);
}
.lp-wave {
    position: absolute;
    top: 20%; right: 9%;
    width: 14%;
    aspect-ratio: 1;
    opacity: 0.85;
    background:
        radial-gradient(circle at 0% 50%, transparent 26%, rgba(255,255,255,.9) 28%, rgba(255,255,255,.9) 33%, transparent 35%,
            transparent 48%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.9) 55%, transparent 57%,
            transparent 70%, rgba(255,255,255,.9) 72%, rgba(255,255,255,.9) 77%, transparent 79%);
}
.lp-cardname {
    position: absolute;
    left: 9%; bottom: 10%;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

/* 各卡配色 */
.lp-card--uni     { background: linear-gradient(135deg, #065f46 0%, #10b981 70%, #6ee7b7 105%); }
.lp-card--richart { background: linear-gradient(135deg, #365314 0%, #84cc16 75%, #d9f99d 108%); }
.lp-card--crystal { background: linear-gradient(135deg, #86198f 0%, #d946ef 62%, #f0abfc 105%); }
.lp-card--cube    { background: linear-gradient(135deg, #0f172a 0%, #334155 65%, #94a3b8 108%); }
.lp-card--green   { background: linear-gradient(135deg, #14532d 0%, #16a34a 70%, #86efac 108%); }
.lp-card--ubear   { background: linear-gradient(135deg, #075985 0%, #0ea5e9 68%, #7dd3fc 105%); }

/* ============================================================
   第 2 幕｜勾選卡片
   ============================================================ */
.lp-cardgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 6px;
}
/* 勾勾出齊後，未勾選的卡變暗 */
.lp-cardgrid.on .lp-card:not(.checked) {
    opacity: 0.35;
    filter: grayscale(0.55) brightness(0.92);
    transform: scale(0.96);
}
.lp-check {
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.lp-check::after {
    content: "";
    position: absolute;
    left: 7px; top: 5px;
    width: 6px; height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(42deg);
}
.lp-check.fx { transform: scale(0); transition: none; }
.lp-check.fx.on { animation: lp-pop 0.45s cubic-bezier(0.2, 1.6, 0.45, 1) forwards; }
@keyframes lp-pop {
    from { transform: scale(0);   opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   第 3 幕｜搜尋 + 排名
   ============================================================ */
.lp-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #2563eb;
    border-radius: 14px;
    padding: 13px 16px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    text-align: left;
    min-height: 50px;
}
.lp-search-icon {
    flex: none;
    width: 16px; height: 16px;
    border: 2.5px solid #64748b;
    border-radius: 50%;
    position: relative;
}
.lp-search-icon::after {
    content: "";
    position: absolute;
    width: 2.5px; height: 7px;
    background: #64748b;
    border-radius: 2px;
    transform: rotate(-45deg);
    right: -4px; bottom: -5px;
}
.lp-typed, .lp-typed-static {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.04em;
    line-height: 1;
}
.lp-caret {
    width: 2px; height: 20px;
    background: #2563eb;
    animation: lp-blink 1s steps(1) infinite;
}
@keyframes lp-blink { 50% { opacity: 0; } }

.lp-result-head {
    font-size: 0.92rem;
    color: #334155;
    margin: 20px 0 12px;
    text-align: left;
}
.lp-result-head strong { color: #1e40af; }

.lp-ranking { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lp-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    text-align: left;
    position: relative;
}
.lp-rank:first-child {
    border: 2px solid #2563eb;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.18);
}
.lp-rank-no {
    flex: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-rank-no--gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; }
.lp-minicard {
    flex: none;
    width: 44px;
    aspect-ratio: 1.586;
    border-radius: 5px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}
.lp-minicard::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.4) 48%, transparent 58%);
}
.lp-rank-name {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
/* 分級選擇 chip（展示可自選卡片級別） */
.lp-level-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    margin-top: 3px;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    border-radius: 7px;
    white-space: nowrap;
}
.lp-rank-rate {
    font-size: 1.05rem;
    font-weight: 900;
    color: #475569;
    font-variant-numeric: tabular-nums;
}
.lp-rank-rate--best { color: #16a34a; }

/* 回饋率印章（從大縮小蓋下去） */
.lp-stamp {
    flex: none;
    font-size: 1.15rem;
    font-weight: 900;
    color: #b91c1c;
    border: 3px solid #b91c1c;
    border-radius: 10px;
    padding: 3px 10px;
    transform: rotate(-8deg);
    box-shadow: inset 0 0 0 1.5px rgba(185, 28, 28, 0.25);
    background: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
}
.lp-stamp.fx { opacity: 0; transition: none; }
.lp-stamp.fx.on { animation: lp-stamp-in 0.5s cubic-bezier(0.25, 1.2, 0.4, 1) forwards; }
@keyframes lp-stamp-in {
    0%   { opacity: 0; transform: rotate(-16deg) scale(2.6); }
    62%  { opacity: 1; transform: rotate(-8deg)  scale(0.94); }
    100% { opacity: 1; transform: rotate(-8deg)  scale(1); }
}

/* ============================================================
   第 4 幕｜提醒自動跳出
   ============================================================ */
.lp-mini-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lp-search--mini { padding: 10px 14px; min-height: 44px; border-width: 1.5px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }
.lp-rank--mini { padding: 10px 14px; }

.lp-reminder {
    margin-top: 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #93c5fd;
    border-radius: 16px;
    padding: 16px 16px 14px 46px;
    text-align: left;
    position: relative;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}
.lp-reminder.fx { transform: translateY(40px) scale(0.96); }
.lp-reminder.fx.on { transform: translateY(0) scale(1); }
.lp-reminder.fx.on { animation: lp-ding 0.9s ease 0.45s 1; }
@keyframes lp-ding {
    0%, 100% { box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18); }
    35%      { box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18), 0 0 0 8px rgba(59, 130, 246, 0.18); }
}
.lp-reminder-icon {
    position: absolute;
    left: 14px; top: 14px;
    font-size: 1.25rem;
}
.lp-reminder p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #1e3a8a;
    font-weight: 500;
}
.lp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
.lp-pill::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #0f172a;
}
.lp-pill--line::before { background: #06c755; }
.lp-pill--jko::before  { background: #e4002b; }
/* 純文字建議 pill（相關通路建議，無色點） */
.lp-pill--plain { color: #1d4ed8; border-color: #93c5fd; }
.lp-pill--plain::before { display: none; }
/* 第二個範例的搜尋框：與上一個提醒卡隔開 */
.lp-search--hint { margin-top: 26px; }
/* 矮螢幕（如 iPhone SE）：第 4 幕兩個範例較擠，整幕緊湊化 */
@media (max-height: 700px) {
    .lp-s4 .lp-title { margin-bottom: 14px; }
    .lp-s4 .lp-reminder { margin-top: 12px; padding: 12px 14px 11px 42px; }
    .lp-s4 .lp-reminder p { font-size: 0.88rem; line-height: 1.55; }
    .lp-s4 .lp-pills { margin-top: 9px; }
    .lp-s4 .lp-search--hint { margin-top: 16px; }
}
.lp-pill.fx { transform: scale(0); transition: none; }
.lp-pill.fx.on { animation: lp-pop 0.4s cubic-bezier(0.2, 1.6, 0.45, 1) forwards; }

/* ============================================================
   第 5 幕｜回饋率矩陣
   ============================================================ */
.lp-matrix {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.lp-mx-head {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    line-height: 1.25;
}
.lp-mx-row {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    text-align: left;
    line-height: 1.25;
}
.lp-mx-row .lp-minicard { width: 26px; border-radius: 3px; }
.lp-mx-cell {
    font-size: 0.95rem;
    font-weight: 800;
    color: #334155;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    position: relative;
}
.lp-mx-cell--win {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    box-shadow: inset 0 0 0 2.5px #10b981;
}
.lp-mx-cell--win em { font-style: normal; font-size: 1.1rem; font-weight: 900; }
.lp-winstamp {
    position: absolute;
    top: -10px; right: -8px;
    font-size: 0.66rem;
    font-weight: 900;
    color: #b91c1c;
    border: 2px solid #b91c1c;
    border-radius: 6px;
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.92);
    transform: rotate(8deg);
}
.lp-winstamp.fx { opacity: 0; transition: none; }
.lp-winstamp.fx.on { animation: lp-stamp-in-r 0.45s cubic-bezier(0.25, 1.2, 0.4, 1) forwards; }
@keyframes lp-stamp-in-r {
    0%   { opacity: 0; transform: rotate(16deg) scale(2.4); }
    62%  { opacity: 1; transform: rotate(8deg)  scale(0.94); }
    100% { opacity: 1; transform: rotate(8deg)  scale(1); }
}

.lp-payoff {
    margin-top: 20px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.6;
}
.lp-payoff strong {
    color: #047857;
    font-size: 1.3rem;
    font-weight: 900;
    padding: 0 2px;
}

/* ============================================================
   第 6 幕｜收尾 CTA
   ============================================================ */
.lp-hero-card {
    position: relative;
    width: min(240px, 58vw);
    aspect-ratio: 1.586;
    border-radius: 16px;
    margin-bottom: 26px;
    background:
        radial-gradient(120% 100% at 85% 110%, rgba(96, 165, 250, 0.65), transparent 55%),
        linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    box-shadow:
        0 22px 45px rgba(30, 64, 175, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    overflow: hidden;
    color: #fff;
    animation: lp-hero-float 5s ease-in-out infinite alternate;
}
@keyframes lp-hero-float {
    from { transform: translateY(-4px) rotate(-1.2deg); }
    to   { transform: translateY(6px)  rotate(1.2deg); }
}
.lp-hero-card.fx { animation: none; }
.lp-hero-card.fx.on { animation: lp-hero-float 5s ease-in-out infinite alternate; }
.lp-hero-card::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0.1) 52%, transparent 62%),
        radial-gradient(130% 90% at 15% -5%, rgba(255, 255, 255, 0.3), transparent 55%);
    pointer-events: none;
}
.lp-hero-card .lp-chip { top: 30%; width: 15%; }
.lp-hero-card .lp-wave { top: 27%; width: 12%; }
.lp-hero-card-name {
    position: absolute;
    left: 9%; bottom: 22%;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.lp-hero-card-sub {
    position: absolute;
    left: 9%; bottom: 10%;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    opacity: 0.85;
}

.lp-final-title {
    font-size: clamp(1.6rem, 7.2vw, 2.1rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 12px;
}
.lp-final-sub {
    font-size: 1rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 6px;
}
.lp-final-stat {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 24px;
}
.lp-final-stat strong { color: #1e40af; font-size: 1.05rem; }

.lp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    min-height: 54px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lp-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.48); }
.lp-cta:active { transform: translateY(0); }

.lp-safety {
    display: block;
    margin-top: 18px;
    font-size: clamp(0.6rem, 3.2vw, 0.78rem);
    white-space: nowrap;
    color: #475569;
    line-height: 1.7;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #94a3b8;
    padding: 8px 0;
}
.lp-safety:hover { color: #1e40af; }

.lp-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 999px;
    max-width: 240px;
}
.lp-follow:hover { color: #0f172a; background: rgba(15, 23, 42, 0.05); }

/* ============================================================
   桌機（≥1024px）：單欄置中 + 左右淡色裝飾
   ============================================================ */
.lp-deco { display: none; }

@media (min-width: 1024px) {
    .lp-deco { display: block; position: absolute; inset: 0; pointer-events: none; }
    .lp-deco-blob {
        position: absolute;
        width: 480px; height: 480px;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.5;
    }
    .lp-deco-blob--l { left: -160px; top: 8%;  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%); }
    .lp-deco-blob--r { right: -160px; bottom: 4%; background: radial-gradient(circle, rgba(30, 64, 175, 0.2), transparent 70%); }
    .lp-deco-card {
        position: absolute;
        width: 300px;
        aspect-ratio: 1.586;
        border-radius: 20px;
        border: 1.5px solid rgba(37, 99, 235, 0.16);
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(30, 64, 175, 0.02));
    }
    .lp-deco-card--l { left: 5%;  top: 22%;   transform: rotate(-14deg); }
    .lp-deco-card--r { right: 5%; bottom: 18%; transform: rotate(11deg); }

    .lp-scene { padding-top: 64px; }
    .lp-scene > * { max-width: 480px; }
    .lp-scene > .lp-frags { max-width: none; }
    .lp-frag { --sx: 2.6; --sy: 1.05; }
    .lp-disclaimer { right: 24px; bottom: 18px; }
    .lp-hint { font-size: 1.25rem; }
    .lp-hint-arrow { height: 58px; margin-top: 16px; }
}

/* ============================================================
   減少動態（prefers-reduced-motion）：靜態依序排版
   ============================================================ */
.lp-reduced .lp-progress,
.lp-reduced .lp-scrollcue,
.lp-reduced .lp-hint { display: none; }

.lp-reduced .lp-scrolly { height: auto; }
.lp-reduced .lp-stage { position: static; height: auto; overflow: visible; }
.lp-reduced .lp-deco { display: none; }
.lp-reduced .lp-scene {
    position: static;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    min-height: 0;
    padding: 72px 24px;
    border-bottom: 1px solid #e2e8f0;
}
.lp-reduced .fx,
.lp-reduced .fx.on {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
}
.lp-reduced .lp-check.fx { transform: scale(1); }
.lp-reduced .lp-pill.fx { transform: scale(1); }
.lp-reduced .lp-stamp.fx { opacity: 1; transform: rotate(-8deg); }
.lp-reduced .lp-winstamp.fx { opacity: 1; transform: rotate(8deg); }
.lp-reduced .lp-reminder.fx { transform: none; }

/* 第 1 幕碎片：靜態收斂示意——碎片微傾、越往下越小越淡，
   背後兩束速度線指向結果卡，定格「即將咻地被吸入」的瞬間 */
.lp-reduced .lp-frags {
    position: relative;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto 10px;
    padding-bottom: 54px; /* 留給速度線的收斂區 */
}
.lp-reduced .lp-frag {
    position: static;
    transform: none;
    opacity: 1;
}
.lp-reduced .lp-frag i { animation: none; white-space: normal; }
/* 微傾排列：模擬移動中的動勢 */
.lp-reduced .lp-frag:nth-child(4n+1) i { transform: rotate(-2.5deg) translateY(1px); }
.lp-reduced .lp-frag:nth-child(4n+2) i { transform: rotate(2deg)    translateY(-2px); }
.lp-reduced .lp-frag:nth-child(4n+3) i { transform: rotate(-1.5deg) translateY(2px); }
.lp-reduced .lp-frag:nth-child(4n)   i { transform: rotate(3deg)    translateY(-1px); }
/* 越接近結果卡（越下排）越小、越淡：收斂進行中 */
.lp-reduced .lp-frag:nth-child(n+7)    { opacity: 0.92; }
.lp-reduced .lp-frag:nth-child(n+7) i  { font-size: 0.66rem; padding: 7px 10px; }
.lp-reduced .lp-frag:nth-child(n+10)   { opacity: 0.78; }
.lp-reduced .lp-frag:nth-child(n+10) i { font-size: 0.6rem; padding: 5px 9px; }
/* 「咻」速度線：碎片背後兩束漸層光痕，往中下（結果卡）收 */
.lp-reduced .lp-frags::before,
.lp-reduced .lp-frags::after {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: 2px;
    width: 46px;
    height: 88px;
    transform-origin: bottom center;
    background:
        linear-gradient(to bottom, rgba(59, 130, 246, 0),   rgba(59, 130, 246, 0.50))   2px 100% / 2px 60px no-repeat,
        linear-gradient(to bottom, rgba(59, 130, 246, 0),   rgba(59, 130, 246, 0.32))   22px 100% / 2px 86px no-repeat,
        linear-gradient(to bottom, rgba(148, 163, 184, 0), rgba(148, 163, 184, 0.55)) 42px 100% / 2px 46px no-repeat;
}
/* 底端錨在中心附近、頂端向外張開：線束往內收向結果卡（收斂，非擴散） */
.lp-reduced .lp-frags::before { left: calc(50% - 60px);  transform: rotate(-26deg); }
.lp-reduced .lp-frags::after  { right: calc(50% - 60px); transform: rotate(26deg) scaleX(-1); }
/* 兩段式改為依序排版：結果卡與品牌畫面都完整顯示 */
.lp-reduced .lp-s1-stack { display: flex; flex-direction: column; align-items: center; gap: 32px; }
/* 中央吸入光帶：接到結果卡上緣（收斂終點） */
.lp-reduced .lp-s1-stack::before {
    content: "";
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.55));
    margin-bottom: -26px; /* 抵銷 stack gap，讓光帶貼近結果卡上緣 */
}
.lp-reduced .lp-s1-result { margin-top: 0; }
.lp-reduced .lp-s1-result.fx,
.lp-reduced .lp-s1-result.fx.on.out { opacity: 1; transform: none; animation: none; }
.lp-reduced .lp-brain-bar { width: 100% !important; }
/* 收尾大卡靜態微傾（左低右高），保留一點動勢 */
.lp-reduced .lp-hero-card,
.lp-reduced .lp-hero-card.fx.on { animation: none; transform: rotate(-4deg); }
.lp-reduced .lp-disclaimer { position: static; margin-top: 14px; text-align: right; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
