/* =========================================================
   MoneyMila marketing site - shared stylesheet
   Palette pulled directly from the MoneyMila Android app's
   own brand assets (splash screen / launcher icon), so the
   site and the app read as the same product.
   ========================================================= */

:root {
  /* --- Brand palette (from the app's icon/splash gradient) --- */
  --color-primary: #1e6e5c;        /* deep teal-green: headings, buttons, links */
  --color-primary-dark: #164e8c;   /* deep blue: gradient end, footer */
  --color-accent: #1e9e7c;         /* mid teal: gradient middle, secondary accents */
  --color-gold: #b97a00;           /* coin gold, darkened for AA contrast on white */
  --color-gold-soft: #ffc94d;      /* coin gold, light - decorative only */
  --color-leaf: #2f9e63;

  /* --- Neutrals --- */
  --color-bg: #fbfdf9;
  --color-surface: #ffffff;
  --color-text: #142420;
  --color-text-muted: #4b5f59;
  --color-border: #e3ece8;

  /* --- Type --- */
  --font-heading: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* --- Layout --- */
  --content-width: 1120px;
  --prose-width: 720px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-gold-soft);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.prose {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 0 24px;
}
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-play {
  background: var(--color-text);
  color: #fff;
}
.btn-play:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20, 36, 32, 0.25); }
.btn-play svg { flex-shrink: 0; }
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text);
}
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 34px; height: 34px; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}
.main-nav a:not(.btn) {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:not(.btn):hover { color: var(--color-primary); }
.main-nav a[aria-current="page"] { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.hero-eyebrow svg { width: 18px; height: 18px; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 1.4em; }
.hero-note { font-size: 0.88rem; color: var(--color-text-muted); }

.hero-art { position: relative; }
.hero-art .blob {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 30% 20%, rgba(30, 158, 124, 0.28), transparent 60%),
              radial-gradient(circle at 75% 75%, rgba(22, 78, 140, 0.22), transparent 60%);
  z-index: 0;
  border-radius: 50%;
  filter: blur(10px);
}
.hero-art svg { position: relative; z-index: 1; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--color-text-muted); font-weight: 600; }
.trust-item svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }
.section-alt { background: var(--color-surface); }

/* ---------- Feature list (flat, not boxed cards) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
}
.feature {
  border-top: 3px solid var(--color-border);
  padding-top: 20px;
}
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(30, 110, 92, 0.08);
  color: var(--color-primary);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 0.4em; }
.feature p { color: var(--color-text-muted); margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Privacy-forward panel ---------- */
.privacy-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #1e9e7c, #1b7e9c 55%, #164e8c);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
}
.privacy-panel h2 { color: #fff; }
.privacy-panel p { color: rgba(255,255,255,0.88); }
.privacy-panel .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.privacy-panel .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.12); }
.privacy-checklist { list-style: none; padding: 0; margin: 0; }
.privacy-checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-size: 0.96rem;
}
.privacy-checklist li:last-child { border-bottom: none; }
.privacy-checklist svg { flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-text);
  color: #fff;
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 46ch; margin: 0 auto 1.8em; }
.cta-band .btn-play { background: #fff; color: var(--color-text); }

/* ---------- Content pages (About/Privacy/Terms/Disclaimer/Contact) ---------- */
.page-header { padding: 56px 0 8px; }
.page-header p.lede { color: var(--color-text-muted); font-size: 1.08rem; max-width: 60ch; }
.updated-note {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1.4em;
}
.placeholder {
  background: #fff6e0;
  border: 1px dashed var(--color-gold);
  color: #5c4400;
  padding: 0.05em 0.5em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95em;
}
.callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 2.2em;
}
.toc h2 { font-size: 1rem; text-transform: none; margin-bottom: 0.6em; }
.toc ol { margin-bottom: 0; padding-left: 1.2em; columns: 2; column-gap: 24px; }
.toc a { font-size: 0.94rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card .feature-icon { margin-bottom: 14px; }
.contact-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1e1a;
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .btn-play { padding: 0.6em 1.2em; font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
  .main-nav a:not(.btn) { font-size: 0.88rem; }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-actions .btn-play span.btn-text-full { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(20, 36, 32, 0.08);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 12px 24px 18px;
  }
  .site-header.nav-open .main-nav a:not(.btn) {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 4px;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-panel { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { padding: 44px 24px; margin: 0 16px; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
