/* Easy Money website: same look as the Easy Money app (theme tokens from
   Frontend/AsaanMoneyApp/src/theme/tokens.ts, day + night). Plain CSS, no dependencies. */
:root {
  --bg: #F4F3F8;
  --surface: #FFFFFF;
  --surface-raised: #EEEDF4;
  --line: #E3E2EA;
  --text: #181729;
  --text-2: #4D4C62;
  --muted: #636377;
  --primary: #5344C3;
  --primary-text: #4F3FBE;
  --primary-tint: #E9E8FD;
  --on-primary: #FFFFFF;
  --primary-grad: linear-gradient(135deg, #6654D0, #5344C3 55%, #3F37AC);
  --header-grad: linear-gradient(135deg, #5B42B4, #41319B 55%, #2E2A84);
  --on-header: #FFFFFF;
  --on-header-muted: #D4D0F2;
  --gold-grad: linear-gradient(135deg, #F3D782, #E7B349 55%, #D09233);
  --gold-text: #8A5C00;
  --gold-tint: #FEF3D6;
  --shadow: 0 4px 14px rgba(24, 23, 41, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1080px;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Chakra Petch", "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161620;
    --surface: #20202D;
    --surface-raised: #2A2938;
    --line: #31313F;
    --text: #E9E7F0;
    --text-2: #B9B8CA;
    --muted: #9C9BB0;
    --primary: #5D55BE;
    --primary-text: #B1AEF8;
    --primary-tint: #312D58;
    --primary-grad: linear-gradient(135deg, #6A61CF, #5D55BE 55%, #4A43A6);
    --header-grad: linear-gradient(135deg, #49378C, #332C74 55%, #202154);
    --on-header-muted: #CFCAF0;
    --gold-grad: linear-gradient(135deg, #EFD483, #DEB257 55%, #C69242);
    --gold-text: #E9C673;
    --gold-tint: #362D19;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.65 var(--font-ui);
}
a { color: var(--primary-text); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* Header: the app's purple header gradient */
.site-header { background: var(--header-grad); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 12px rgba(24, 23, 41, 0.18); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--font-display); color: var(--on-header); text-decoration: none; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-header-muted); text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--on-header); background: rgba(255, 255, 255, 0.10); }
.nav-links a[aria-current="page"] { color: var(--on-header); background: rgba(255, 255, 255, 0.16); }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; padding: 10px 0; }
  .nav-links { width: 100%; }
  .nav-links a { padding: 6px 10px; }
}

/* Headings use the app's display font */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: .01em; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: clamp(23px, 3.2vw, 31px); line-height: 1.22; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 19px; margin: 0 0 6px; }

/* Hero: like the app's Home header, with the golden coin */
.hero { background: var(--header-grad); color: var(--on-header); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.hero .lead { color: var(--on-header-muted); }
.hero-coin { width: min(220px, 40vw); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25)); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-coin { width: 140px; order: -1; }
}
.lead { font-size: 18px; color: var(--text-2); max-width: 62ch; }

/* Sections and cards: the app's white cards on the lilac background */
.section { padding: 52px 0; }
.section.alt { background: var(--surface-raised); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--text-2); margin: 0; }
.step-art { width: 56px; height: 56px; margin-bottom: 10px; }
.step-no { display: inline-block; font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); background: var(--gold-tint); border-radius: 999px; padding: 5px 10px; margin-bottom: 8px; }

/* Buttons: primary purple and gold, like the app */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; text-decoration: none; font-weight: 800; border-radius: var(--radius-sm); padding: 12px 22px; }
.btn.gold { background: var(--gold-grad); color: #211201; }
.btn.primary { background: var(--primary-grad); color: var(--on-primary); }
.btn.ghost { color: var(--on-header); border: 1px solid rgba(255, 255, 255, 0.35); }
.btn:hover { filter: brightness(1.05); }
.note { border-left: 4px solid var(--primary); background: var(--primary-tint); padding: 14px 16px; border-radius: 10px; color: var(--text); }

/* Legal pages */
.page-head { background: var(--header-grad); color: var(--on-header); padding: 40px 0 36px; }
.page-head .lead, .page-head .updated { color: var(--on-header-muted); }
.page-head h1 { margin-bottom: 8px; }
.doc { max-width: 780px; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 24px; box-shadow: var(--shadow); }
.doc h2 { font-size: 21px; margin-top: 28px; color: var(--primary-text); }
.doc h3 { margin-top: 16px; }
.doc p, .doc li { max-width: 68ch; color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; }
.updated { font-size: 14px; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); }
.contact-list strong { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--primary-text); }
.placeholder { background: var(--gold-tint); border: 1px dashed var(--gold-text); border-radius: 6px; padding: 0 6px; }
