/* 行銷網站共用樣式，取自設計稿 website/*.dc.html。字型自架，不向 Google Fonts 載入（隱私：不把訪客 IP 送給第三方） */
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/fonts/Baloo2_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Luckiest Guy'; src: url('/fonts/LuckiestGuy_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

body { margin: 0; background: #FDF1DC; font-family: 'Baloo 2', system-ui, sans-serif; color: #3B3355; }
a { color: #6C4FE0; }
a:hover { color: #FF7B54; }
button, input, select, textarea { font-family: 'Baloo 2', system-ui, sans-serif; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; display: flex; flex-direction: column; }
.display { font-family: 'Luckiest Guy', cursive; }
:focus-visible { outline: 3px solid #FF7B54; outline-offset: 2px; }

@keyframes mIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes coinSpin { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: #FDF1DC; border-bottom: 3px solid #3B3355; display: flex; align-items: center; gap: 22px; padding: 12px 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-word { font-family: 'Luckiest Guy', cursive; font-size: 26px; color: #FFD54D; -webkit-text-stroke: 1.5px #6C4FE0; letter-spacing: 1px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 16px; font-weight: 700; flex-wrap: wrap; }
.nav-link { color: #3B3355; text-decoration: none; }
.nav-current { color: #6C4FE0; border-bottom: 3px solid #6C4FE0; }
.nav-cta { background: #6C4FE0; color: #fff; border: 3px solid #3B3355; border-radius: 999px; box-shadow: 0 4px 0 #3B3355; padding: 7px 18px; text-decoration: none; }
.nav-cta:hover { transform: translateY(-2px); color: #fff; }

/* footer */
.footer { background: #3B3355; color: #BFB3F2; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.footer-brand { font-family: 'Luckiest Guy', cursive; font-size: 22px; color: #FFD54D; }
.footer-links, .footer-stores { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #FFD54D; }
.footer-stores a { color: #BFB3F2; }

/* store buttons */
.store { display: flex; align-items: center; gap: 10px; background: #3B3355; color: #fff; border: 3px solid #3B3355; border-radius: 14px; box-shadow: 0 5px 0 #1f1a2e; padding: 10px 18px; text-decoration: none; font-weight: 700; line-height: 1.1; text-align: left; }
.store:hover { transform: translateY(-2px); color: #fff; }
.store-small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.store-name { font-size: 19px; }
.store-lg { padding: 12px 22px; }
.store-lg .store-name { font-size: 21px; }

/* shared blocks */
.card { background: #fff; border: 4px solid #3B3355; border-radius: 24px; box-shadow: 0 6px 0 #3B3355; }
.page-head { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.page-title { margin: 0; font-family: 'Luckiest Guy', cursive; font-size: clamp(40px, 6vw, 64px); color: #6C4FE0; text-shadow: 4px 4px 0 #3B3355; }
.page-sub { margin: 0; font-size: 19px; font-weight: 600; color: #7a6f95; max-width: 520px; text-wrap: pretty; }
.h2 { margin: 0; font-family: 'Luckiest Guy', cursive; font-size: clamp(34px, 4.5vw, 50px); color: #3B3355; }
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #43C465; border: 3px solid #3B3355; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.btn { cursor: pointer; display: inline-block; text-align: center; border: 3px solid #3B3355; border-radius: 14px; box-shadow: 0 4px 0 #3B3355; padding: 11px 20px; font-size: 17px; font-weight: 800; text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #3B3355; }
.btn-white { background: #fff; color: #3B3355; }
.btn-white:hover { background: #F6F3FF; color: #3B3355; }
.btn-yellow { background: #FFD54D; color: #3B3355; }
.btn-yellow:hover { background: #FFE27A; color: #3B3355; }
.btn-purple { background: #6C4FE0; color: #fff; }
.btn-purple:hover { color: #fff; }

/* home */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 64px 28px 48px; width: 100%; box-sizing: border-box; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 20px; justify-content: center; width: 100%; margin-top: 10px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-kicker { align-self: center !important; }
  .nav-hide { display: none !important; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: minmax(0, 220px); }
  .nav { padding: 12px 16px; gap: 10px; }
  .nav-links { gap: 12px; }
}

/* pricing */
.plan .btn { margin-top: auto; padding: 11px; font-size: 17px; border-radius: 14px; }

/* faq */
.faq-item { background: #fff; border: 3px solid #3B3355; border-radius: 18px; box-shadow: 0 4px 0 #3B3355; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 800; color: #3B3355; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #F6F3FF; }
.faq-chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #FFD54D; border: 3px solid #3B3355; color: #3B3355; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.faq-item[open] .faq-chev { background: #6C4FE0; color: #fff; }
.faq-chev::before { content: '+'; }
.faq-item[open] .faq-chev::before { content: '−'; }
.faq-answer { padding: 0 20px 18px; font-size: 16px; font-weight: 600; color: #7a6f95; line-height: 1.5; text-wrap: pretty; }

/* contact */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 800; }
.field input, .field select, .field textarea { border: 3px solid #3B3355; border-radius: 12px; padding: 11px 14px; font-size: 16px; font-weight: 600; color: #3B3355; background: #FDF1DC; }
.field textarea { resize: vertical; line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; font-weight: 700; color: #E4572E; }
[hidden] { display: none !important; }

/* legal */
.legal { background: #fff; border: 3px solid #3B3355; border-radius: 18px; box-shadow: 0 4px 0 #3B3355; padding: 26px 28px; display: flex; flex-direction: column; gap: 22px; font-size: 16px; font-weight: 600; color: #4a4361; line-height: 1.6; text-wrap: pretty; }
.legal section { display: flex; flex-direction: column; gap: 8px; }
.legal h2 { margin: 0; font-size: 22px; font-weight: 800; color: #3B3355; }
.legal p { margin: 0; }
.short { background: #FFF7E0; border: 3px solid #B98900; border-radius: 18px; padding: 18px 22px; font-size: 16px; font-weight: 600; color: #7a5a00; line-height: 1.5; text-wrap: pretty; }
@media (max-width: 560px) { .legal { padding: 20px 18px; } }
