/* MoneyCrumb website, direction A "Shopfront" (Brandon, 2 Dec 2026).
   The app's own skins: Kopitiam by day, Pasar Malam by night. The page follows the phone,
   and the Day/Night button in the footer overrides it (data-skin on <html>). */

@font-face { font-family: 'Alfa Slab One'; src: url('/assets/fonts/alfa-slab-one.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Bungee'; src: url('/assets/fonts/bungee.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Tilt Neon'; src: url('/assets/fonts/tilt-neon.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-700.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-800.woff') format('woff'); font-weight: 800 900; font-display: swap; }

/* Kopitiam (the app's src/theme/skins/kopitiam.ts) */
:root {
  --page: #ECEFEA; --ink: #2A1C13; --sub: #5E4E43; --card: #FFFFFF; --border: #D9DBD3; --soft: #E1F0EA;
  --a1: #1E7A62; --a1-ink: #17614E; --a2: #C8312A; --a3: #E0A526; --eyebrow: #17614E;
  --btn: #2A1C13; --btn-fg: #FFFFFF; --btn2-line: #2A1C13; --phone: #1C1714;
  --display: 'Alfa Slab One', Georgia, serif; --num: 'Alfa Slab One', Georgia, serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --glow: none; --shadow: 0 30px 60px -30px rgba(42, 28, 19, .55);
  --stripe: repeating-linear-gradient(90deg, #1E7A62 0 22px, transparent 22px 44px, #C8312A 44px 66px, transparent 66px 88px);
  --stripe-h: 16px; --stripe-filter: none;
  color-scheme: light;
}
/* Pasar Malam (src/theme/skins/pasarmalam.ts) */
@media (prefers-color-scheme: dark) { :root:not([data-skin="kopitiam"]) {
  --page: #110C22; --ink: #F6F2FF; --sub: #B7AED8; --card: #1A1433; --border: #2E2552; --soft: #241A45;
  --a1: #3CF0DD; --a1-ink: #8FFFF3; --a2: #FF5A4A; --a3: #FFD35C; --eyebrow: #FFD35C;
  --btn: #3CF0DD; --btn-fg: #110C22; --btn2-line: #8FFFF3; --phone: #2E2552;
  --display: 'Bungee', Impact, sans-serif; --num: 'Tilt Neon', system-ui, sans-serif;
  --glow: 0 0 18px rgba(255, 79, 168, .75); --shadow: 0 0 0 1px #3A2F66, 0 30px 70px -20px rgba(255, 79, 168, .35);
  --stripe: radial-gradient(circle at 11px 15px, #FFD35C 0 5px, transparent 6px) 0 0 / 44px 26px repeat-x, radial-gradient(circle at 33px 15px, #FF4FA8 0 5px, transparent 6px) 0 0 / 44px 26px repeat-x, linear-gradient(transparent 7px, rgba(183, 174, 216, .35) 7px 8px, transparent 8px);
  --stripe-h: 26px; --stripe-filter: drop-shadow(0 0 6px rgba(255, 211, 92, .55));
  color-scheme: dark;
} }
:root[data-skin="pasar"] {
  --page: #110C22; --ink: #F6F2FF; --sub: #B7AED8; --card: #1A1433; --border: #2E2552; --soft: #241A45;
  --a1: #3CF0DD; --a1-ink: #8FFFF3; --a2: #FF5A4A; --a3: #FFD35C; --eyebrow: #FFD35C;
  --btn: #3CF0DD; --btn-fg: #110C22; --btn2-line: #8FFFF3; --phone: #2E2552;
  --display: 'Bungee', Impact, sans-serif; --num: 'Tilt Neon', system-ui, sans-serif;
  --glow: 0 0 18px rgba(255, 79, 168, .75); --shadow: 0 0 0 1px #3A2F66, 0 30px 70px -20px rgba(255, 79, 168, .35);
  --stripe: radial-gradient(circle at 11px 15px, #FFD35C 0 5px, transparent 6px) 0 0 / 44px 26px repeat-x, radial-gradient(circle at 33px 15px, #FF4FA8 0 5px, transparent 6px) 0 0 / 44px 26px repeat-x, linear-gradient(transparent 7px, rgba(183, 174, 216, .35) 7px 8px, transparent 8px);
  --stripe-h: 26px; --stripe-filter: drop-shadow(0 0 6px rgba(255, 211, 92, .55));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55 }
img { max-width: 100% }
a { color: inherit }
p { margin: 0 }
:focus-visible { outline: 3px solid var(--a1); outline-offset: 2px; border-radius: 4px }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--btn); color: var(--btn-fg); padding: 8px 14px; border-radius: 10px; z-index: 5 }
.skip:focus { left: 16px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
section { padding-block: 56px }
h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0 }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.12; margin-bottom: 10px }
h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; line-height: 1.3 }
:lang(zh) h1, :lang(zh) h2 { font-family: var(--body); font-weight: 900; letter-spacing: .01em }
.lede { color: var(--sub); font-size: 17px; max-width: 60ch }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 8px }
.muted { color: var(--sub) }

/* top bar */
.top { display: flex; align-items: center; gap: 18px; padding-block: 16px; flex-wrap: wrap }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none }
.brand img { width: 34px; height: 34px; border-radius: 9px }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; font-size: 14.5px; color: var(--sub) }
.top nav a { text-decoration: none }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px }
.grow { flex: 1 }
.lang { font-size: 13.5px; font-weight: 700; color: var(--sub); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; text-decoration: none; white-space: nowrap }
.lang b { color: var(--ink) }
@media (max-width: 820px) { .top nav { order: 5; width: 100%; gap: 6px 16px } }
@media (max-width: 480px) { .top .btn { display: none } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 14px; padding: 13px 20px; font-weight: 800; font-size: 15px; text-decoration: none; border: 2px solid var(--btn); background: var(--btn); color: var(--btn-fg); white-space: nowrap; font-family: var(--body); cursor: pointer; line-height: 1.2 }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--btn2-line) }
.btn svg { width: 20px; height: 20px; flex: none }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 11px }
.btn:hover { filter: brightness(1.08) }
.ctas { display: flex; flex-wrap: wrap; gap: 10px }

.band { height: var(--stripe-h); background: var(--stripe); filter: var(--stripe-filter) }

/* phones */
.phone { width: min(300px, 100%); aspect-ratio: 540 / 1169; border-radius: 34px; border: 9px solid var(--phone); background: var(--phone); overflow: hidden; box-shadow: var(--shadow); max-width: 100% }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block }
.phone .dark { display: none }
@media (prefers-color-scheme: dark) { :root:not([data-skin="kopitiam"]) .phone .light { display: none } :root:not([data-skin="kopitiam"]) .phone .dark { display: block } }
:root[data-skin="pasar"] .phone .light { display: none }
:root[data-skin="pasar"] .phone .dark { display: block }

/* hero */
.hero { padding-block: 36px 56px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: .98; margin: 6px 0 16px; text-shadow: var(--glow) }
:lang(zh) .hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.1 }
.hero .lede { margin-bottom: 22px }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none }
.badges li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--a1-ink) }
.badges li::before { content: "✓"; font-weight: 900 }
.hero-phone { display: grid; justify-items: center; position: relative }
.toast { position: absolute; left: 0; bottom: 70px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .4); display: flex; gap: 10px; align-items: center; max-width: 80% }
.toast i { font-style: normal; font-family: var(--num); font-size: 18px; color: var(--a1-ink) }
.toast small { display: block; color: var(--sub); font-weight: 600; font-size: 12px }
@media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr) } .toast { left: 4px } }

/* pain points */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 26px }
.pain { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: grid; gap: 12px; align-content: start }
.pain q { font-size: 19px; font-weight: 800; line-height: 1.3 }
.fix { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; padding-top: 12px; border-top: 1px dashed var(--border) }
.ico { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--a1-ink); display: grid; place-items: center }
.ico svg { width: 20px; height: 20px }
.fix b { display: block; color: var(--a1-ink) }
.fix span { color: var(--sub); font-size: 14.5px }

/* screens */
.reel-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap }
.reel-btns { display: flex; gap: 8px }
.reel-btns button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--btn2-line); background: transparent; color: var(--ink); font-size: 20px; font-weight: 800; cursor: pointer }
.reel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 2px 10px; min-width: 0; scroll-behavior: smooth }
.reel figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: start; display: grid; gap: 10px }
.reel .phone { width: 220px; border-width: 7px; border-radius: 28px; box-shadow: none }
.reel figcaption { font-size: 14px; color: var(--sub) }
.reel figcaption b { display: block; font-size: 16px; color: var(--ink) }

/* Mochi */
.mochi { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 28px }
.crop { border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 100%; background: var(--card); border: 1px solid var(--border) }
.crop img { width: 100%; height: 100%; object-fit: cover; display: block }
.crop .dark { display: none }
@media (prefers-color-scheme: dark) { :root:not([data-skin="kopitiam"]) .crop .light { display: none } :root:not([data-skin="kopitiam"]) .crop .dark { display: block } }
:root[data-skin="pasar"] .crop .light { display: none }
:root[data-skin="pasar"] .crop .dark { display: block }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none }
.stages li { text-align: center; font-size: 12.5px; color: var(--sub); font-weight: 700 }
.stages i { display: grid; place-items: center; margin: 0 auto 6px; width: 40px; height: 40px; border-radius: 50%; font-style: normal; font-family: var(--num); font-size: 15px; color: var(--ink); background: var(--soft) }
.stages .bronze i { background: #C88A55; color: #FFFFFF } .stages .silver i { background: #B9C0C8; color: #2A1C13 } .stages .gold i { background: #E0A526; color: #2A1C13 }
@media (max-width: 760px) { .mochi { grid-template-columns: minmax(0, 1fr); padding: 20px } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; counter-increment: s; display: grid; gap: 4px }
.steps li::before { content: counter(s); font-family: var(--num); font-size: 30px; color: var(--a2); line-height: 1 }
.more { display: inline-block; margin-top: 16px; font-weight: 800; color: var(--a1-ink) }

/* privacy block */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start }
.privacy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px }
.privacy li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; font-size: 14.5px }
.privacy li b { display: block }
@media (max-width: 760px) { .privacy { grid-template-columns: minmax(0, 1fr) } }

/* Free and Plus */
.compare-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--card) }
.compare { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border) }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0 }
.compare thead th { font-family: var(--display); font-weight: 400; font-size: 18px }
.compare tbody th { font-weight: 600 }
.compare td { width: 26% }
.compare .y { color: var(--a1-ink); font-weight: 900 }

/* Discord */
.discord { background: #5865F2; color: #FFFFFF; border-radius: 26px; padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center }
.discord h2 { color: #FFFFFF; text-shadow: none }
.discord ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 2px }
.discord .btn { background: #FFFFFF; color: #2B2E7A; border-color: #FFFFFF }
@media (max-width: 760px) { .discord { grid-template-columns: minmax(0, 1fr); padding: 22px } }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 20px; max-width: 780px }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0 }
.faq details p { color: var(--sub); padding-bottom: 14px; max-width: 65ch }

/* text pages: guide, privacy, terms, support */
.doc { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 40px; padding-block: 36px 64px; align-items: start }
.doc h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin-bottom: 10px; text-shadow: var(--glow) }
.doc .meta { color: var(--sub); font-size: 14px; margin-bottom: 26px }
.doc article { max-width: 70ch; min-width: 0 }
.doc article h2 { font-size: clamp(22px, 3vw, 28px); margin: 36px 0 10px; scroll-margin-top: 16px }
.doc article h3 { margin: 22px 0 6px }
.doc article p, .doc article li { color: var(--ink) }
.doc article p + p { margin-top: 10px }
.doc article ul, .doc article ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0 }
.doc article a { color: var(--a1-ink); font-weight: 700 }
.toc { position: sticky; top: 16px; display: grid; gap: 4px; font-size: 14px; border-left: 2px solid var(--border); padding-left: 14px }
.toc b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); margin-bottom: 4px }
.toc a { text-decoration: none; color: var(--sub); font-weight: 600 }
.toc a:hover { color: var(--ink) }
.tip { background: var(--soft); border-radius: 14px; padding: 12px 16px; margin: 14px 0; color: var(--ink) }
.shot { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: start; margin: 8px 0 }
.shot .phone { width: 200px; border-width: 6px; border-radius: 24px; box-shadow: none }
@media (max-width: 760px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 16px } .toc { position: static } .shot { grid-template-columns: minmax(0, 1fr) } .shot .phone { justify-self: center } }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 18px 0 }
.contact > div { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; display: grid; gap: 8px; align-content: start }
.copy-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 800 }
.copy-line button { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--border); background: transparent; color: var(--ink); border-radius: 8px; padding: 3px 9px; cursor: pointer }

/* footer */
.foot { border-top: 1px solid var(--border); padding-block: 26px 34px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 14px; color: var(--sub) }
.foot a { font-weight: 700; color: var(--ink) }
.skin-btn { font: inherit; font-weight: 700; font-size: 13.5px; border: 1px solid var(--border); background: transparent; color: var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer }

@media (prefers-reduced-motion: reduce) { .reel { scroll-behavior: auto } }
