:root {
  --ink: #0e1116;
  --signal: #ffb300;
  --surface: #1a1f26;
  --text: #f2f2ed;
  --muted: #8a919c;
  --line: #303741;
  --paper: #f6f2e7;
  --paper-ink: #26221b;
  --paper-faint: #857c6a;
  --radius-sm: 12px;
  --radius: 20px;
  --shell: min(1180px, calc(100% - 40px));
  --display: "Chocolate Classical Sans", "PingFang TC", "Noto Sans TC", serif;
  --mono: "IBM Plex Mono", "PingFang TC", monospace;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", sans-serif;
  background: var(--ink);
  color: var(--text);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.section-shell { width: var(--shell); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 20; padding: 12px 16px; border-radius: 10px; background: var(--signal); color: var(--ink); font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { width: var(--shell); min-height: 84px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand b, .footer-brand b { color: var(--signal); }
.brand-mark { display: block; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.language-toggle { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); cursor: pointer; }
.toggle-option.is-active { color: var(--signal); font-weight: 800; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(64px, 10vw, 128px) clamp(72px, 9vw, 112px); }
.eyebrow { margin: 0 0 16px; color: var(--signal); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 1080px; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 6.8vw, 6rem); line-height: 1.12; letter-spacing: .005em; text-wrap: balance; }
html[data-language="en"] .hero h1 { line-height: 1.04; }
.hero-subhead { margin: 28px 0 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 650; }

.method-rail { display: grid; grid-template-columns: repeat(6, minmax(112px, 1fr)); gap: 12px; margin-top: 48px; overflow-x: auto; padding: 4px 2px 16px; scrollbar-color: var(--line) transparent; scroll-snap-type: x proximity; }
.method-chip { position: relative; min-width: 112px; min-height: 92px; padding: 18px 14px; display: flex; align-items: flex-end; border-radius: 20px; color: white; font-size: .9rem; font-weight: 850; letter-spacing: -.01em; scroll-snap-align: start; opacity: 0; transform: translateY(16px) scale(.96); animation: chip-in .38s cubic-bezier(.2,.8,.2,1) forwards; }
.method-chip:nth-child(2) { animation-delay: 80ms; }
.method-chip:nth-child(3) { animation-delay: 160ms; }
.method-chip:nth-child(4) { animation-delay: 240ms; }
.method-chip:nth-child(5) { animation-delay: 320ms; }
.method-chip:nth-child(6) { animation-delay: 400ms; }
.method-cash { background: #edece5; color: #14171c; }
.method-octopus { background: #f5a623; color: #3b2700; }
.method-alipay { background: #1677ff; }
.method-wechat { background: #07c160; }
.method-payme { background: #e6005c; }
.method-card { background: #2b3038; }

/* the 嘟 — one Octopus tap ripple after the chips land */
.doot-ring { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border: 2.5px solid rgba(59, 39, 0, .8); border-radius: 50%; animation: doot 2.6s ease-out 1.1s infinite; }
.doot-note { position: absolute; top: 2px; right: 34px; font-style: normal; font-family: var(--display); font-size: 1rem; color: #3b2700; opacity: 0; animation: doot-note 2.6s ease-out 1.1s infinite; }
@keyframes doot { 0% { transform: scale(.4); opacity: 0; } 12% { opacity: .9; } 45% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes doot-note { 0% { transform: translateY(6px); opacity: 0; } 14% { opacity: 1; } 42% { transform: translateY(-8px); opacity: 0; } 100% { opacity: 0; } }

.app-store-badge { width: fit-content; min-height: 58px; margin-top: 30px; padding: 9px 16px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; }
.app-store-badge small, .app-store-badge strong { display: block; }
.app-store-badge small { color: var(--muted); font-size: .66rem; }
.app-store-badge strong { font-size: 1.15rem; }
.apple-mark { color: var(--signal); font-size: 1.45rem; }
.app-store-badge:hover { border-color: var(--signal); }

/* ---------- the receipt ---------- */
.receipt-section { display: grid; grid-template-columns: 1fr minmax(320px, 460px); align-items: start; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(96px, 11vw, 148px); }
.receipt-intro { position: sticky; top: 48px; }
.receipt-intro h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.15; text-wrap: balance; }
.receipt-note { margin: 20px 0 0; max-width: 400px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.receipt { font-family: var(--mono); color: var(--paper-ink); background: var(--paper); padding: 34px 26px 30px; transform: rotate(-1.4deg); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); font-size: .88rem; line-height: 1.5;
  --notch: 12px;
  clip-path: polygon(0 var(--notch), 4% 0, 8% var(--notch), 12% 0, 16% var(--notch), 20% 0, 24% var(--notch), 28% 0, 32% var(--notch), 36% 0, 40% var(--notch), 44% 0, 48% var(--notch), 52% 0, 56% var(--notch), 60% 0, 64% var(--notch), 68% 0, 72% var(--notch), 76% 0, 80% var(--notch), 84% 0, 88% var(--notch), 92% 0, 96% var(--notch), 100% 0,
  100% calc(100% - var(--notch)), 96% 100%, 92% calc(100% - var(--notch)), 88% 100%, 84% calc(100% - var(--notch)), 80% 100%, 76% calc(100% - var(--notch)), 72% 100%, 68% calc(100% - var(--notch)), 64% 100%, 60% calc(100% - var(--notch)), 56% 100%, 52% calc(100% - var(--notch)), 48% 100%, 44% calc(100% - var(--notch)), 40% 100%, 36% calc(100% - var(--notch)), 32% 100%, 28% calc(100% - var(--notch)), 24% 100%, 20% calc(100% - var(--notch)), 16% 100%, 12% calc(100% - var(--notch)), 8% 100%, 4% calc(100% - var(--notch)), 0 100%); }
.receipt-head { display: grid; gap: 4px; justify-items: center; padding: 14px 0 18px; border-bottom: 1.5px dashed var(--paper-faint); text-align: center; }
.receipt-head b { font-size: 1.15rem; letter-spacing: .1em; }
.receipt-head span { color: var(--paper-faint); font-size: .78rem; letter-spacing: .08em; }
.receipt-body { padding-top: 16px; }
.receipt-line { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.receipt-line > span:first-child { flex-shrink: 1; }
.receipt-line::after { content: ""; order: 2; flex: 1; border-bottom: 1.5px dotted var(--paper-faint); transform: translateY(-4px); }
.receipt-line .price { order: 3; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-line.is-negative .price { color: #9a1c1c; }
.receipt-total { font-size: 1.12rem; font-weight: 600; }
.receipt-total .price { font-size: 1.3rem; }
.receipt-rule { margin: 14px 0; border-top: 1.5px dashed var(--paper-faint); }
.receipt-foot { display: grid; gap: 14px; justify-items: center; margin-top: 22px; padding-top: 16px; border-top: 1.5px dashed var(--paper-faint); text-align: center; color: var(--paper-faint); font-size: .78rem; letter-spacing: .06em; }
.receipt-barcode { width: 72%; height: 44px; background: repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, transparent 2px 5px, var(--paper-ink) 5px 8px, transparent 8px 10px, var(--paper-ink) 10px 11px, transparent 11px 15px); }

/* printing: lines stay hidden until the receipt scrolls into view */
.receipt.will-print .receipt-line, .receipt.will-print .receipt-rule, .receipt.will-print .receipt-foot { opacity: 0; }
.receipt.is-printing .receipt-line, .receipt.is-printing .receipt-rule, .receipt.is-printing .receipt-foot { animation: print-line .3s ease-out forwards; animation-delay: calc(var(--i, 0) * 140ms); }
@keyframes print-line { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- screenshots ---------- */
.screens { padding-bottom: clamp(88px, 10vw, 132px); }
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading h2, .teaser h2, .privacy-page h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.8vw, 4rem); line-height: 1.12; text-wrap: balance; }
.screenshot-strip { display: flex; gap: 20px; overflow-x: auto; padding: 4px 2px 24px; scroll-snap-type: x mandatory; scrollbar-color: var(--signal) transparent; }
.phone-frame { flex: 0 0 clamp(230px, 25vw, 310px); margin: 0; scroll-snap-align: start; }
.phone-shot { aspect-ratio: 1320 / 2868; overflow: hidden; padding: 8px; border: 2px solid #3a414c; border-radius: 38px; background: #090b0e center / cover no-repeat; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
.phone-frame.has-image .shot-placeholder { display: none; }
.shot-placeholder { height: 100%; padding: 28px 20px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 30px; background: var(--surface); color: var(--muted); }
.shot-placeholder span { font-family: var(--mono); color: var(--signal); font-size: 2.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.shot-placeholder b { color: var(--text); font-size: 1.15rem; }
.phone-frame figcaption { margin-top: 14px; color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Jayden媽咪 ---------- */
.teaser { margin-bottom: clamp(88px, 10vw, 132px); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 88px); border: 1px solid #383f49; border-radius: 28px; background: var(--surface); }
.teaser-note { margin: 20px 0 0; color: var(--muted); line-height: 1.7; }
.notification-stack { display: grid; gap: 14px; }
.notification { padding: 18px; border: 1px solid #464e59; border-radius: 22px; background: #242a32; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.notification-stack .notification:nth-child(1) { transform: scale(.94); opacity: .55; }
.notification-stack .notification:nth-child(2) { transform: scale(.97); opacity: .8; }
.notification.is-loud { border-color: var(--signal); }
.notification-app { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; }
.notification-app img { display: block; width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.notification-app b { color: var(--text); }
.notification p { margin: 14px 0 2px; font-weight: 750; line-height: 1.5; }

/* ---------- closing ---------- */
.closing { display: grid; justify-items: center; gap: 8px; margin-bottom: clamp(88px, 10vw, 132px); text-align: center; }
.closing-word { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(4rem, 14vw, 11rem); line-height: 1.05; color: var(--signal); }
.closing-sub { margin: 6px 0 18px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }

/* ---------- footer + inner pages ---------- */
.site-footer { min-height: 160px; padding-block: 32px; display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-brand { color: var(--text); font-weight: 800; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { display: inline-flex; color: var(--muted); transition: color .2s ease, transform .2s ease; }
.footer-social a:hover { color: var(--signal); transform: translateY(-2px); }
.footer-social svg { width: 22px; height: 22px; }
.site-footer a:hover { color: var(--signal); }
.privacy-page { max-width: 850px; padding-block: clamp(64px, 9vw, 110px); }
.privacy-updated { margin: 20px 0 64px; color: var(--muted); }
.privacy-page section { padding: 28px 0; border-top: 1px solid var(--line); }
.privacy-page h2 { margin: 0 0 12px; font-size: 1.25rem; }
.privacy-page section p { margin: 0 0 8px; color: var(--muted); line-height: 1.7; }
.privacy-page section p:last-child { margin-bottom: 0; }

@keyframes chip-in { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .receipt-section { grid-template-columns: 1fr; }
  .receipt-intro { position: static; }
  .receipt { justify-self: center; width: min(460px, 100%); }
}

@media (max-width: 800px) {
  :root { --shell: min(100% - 32px, 680px); }
  .method-rail { grid-template-columns: repeat(6, 118px); }
  .teaser { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 430px) {
  :root { --shell: calc(100% - 24px); }
  .site-header { min-height: 72px; }
  .brand { font-size: .88rem; }
  .brand-mark { width: 32px; height: 32px; }
  .language-toggle { padding-inline: 9px; font-size: .78rem; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .hero-subhead { margin-top: 22px; }
  .method-rail { margin-top: 36px; grid-template-columns: repeat(6, 108px); }
  .method-chip { min-width: 108px; min-height: 88px; }
  .receipt { padding: 28px 16px 24px; font-size: .8rem; transform: rotate(-.8deg); }
  .teaser { padding: 24px; border-radius: 22px; }
  .notification { padding: 15px; }
  .notification-app { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .notification-app b { line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .method-chip { animation: none; opacity: 1; transform: none; }
  .doot-ring, .doot-note { animation: none; opacity: 0; }
  .receipt.will-print .receipt-line, .receipt.will-print .receipt-rule, .receipt.will-print .receipt-foot { opacity: 1; }
  .receipt.is-printing .receipt-line, .receipt.is-printing .receipt-rule, .receipt.is-printing .receipt-foot { animation: none; opacity: 1; }
}
