/* Pocket Finance: navy and gold. System font only, no external resources.
   Light and Dark follow the visitor's device (prefers-color-scheme). */

:root {
  color-scheme: light dark;
  --bg: #f3f6fa;
  --card: #ffffff;
  --text: #182430;
  --muted: #435871;
  --accent: #2166a0;
  --line: #d5dfeb;
  --navy: #1f3864;
  --gold: #f5c145;
  --gold-light: #ffe699;
  --on-navy: #ffffff;
  --on-navy-muted: #97bddb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1923;
    --card: #1a2d42;
    --text: #ffffff;
    --muted: #90b8d8;
    --accent: #6cb4ff;
    --line: #2a4260;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); }
a:focus-visible, .brand:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.brand svg { width: 32px; height: 32px; flex: none; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Main */
main { flex: 1; padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; }

/* Home hero: fixed navy panel in both modes, like the app's header */
.hero {
  background: linear-gradient(160deg, #1f3864, #16294a);
  color: var(--on-navy);
  text-align: center;
  padding: 56px 16px 64px;
}
.hero .coin { width: 112px; height: 112px; margin: 0 auto 20px; display: block; }
.hero h1 { color: var(--gold-light); font-size: clamp(2.25rem, 8vw, 3.25rem); margin-bottom: 12px; }
.hero p { margin: 0 auto 24px; max-width: 30rem; color: var(--on-navy-muted); font-size: 1.15rem; }
.badge {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #1b3358;
  font-weight: 700;
}

/* Support */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.email { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }

/* Legal placeholders (visible on purpose, so they can't ship unnoticed) */
.placeholder {
  border: 2px dashed var(--gold);
  border-radius: 14px;
  padding: 20px;
  color: var(--muted);
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 20px; }
.site-footer p { margin: 0; text-align: center; }

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
