/* Elite Money Ranger — marketing page.
 *
 * Hand-written, no build step. The app's stylesheet is Tailwind v4 behind npm;
 * importing it here would drag a bundler and a second lockfile back in to save
 * duplicating ten hex values, and a stale npmDepsHash on the artifact that
 * changes most often — copy edits — is a bad trade.
 *
 * So the tokens below are COPIED, verbatim, from frontend/src/index.css. Drift
 * between a brochure and a product UI is tolerable; a colour that is nearly the
 * brand colour is not. If you change one there, change it here, and copy the
 * value rather than eyeballing it.
 *
 * One thing does not carry over: the contrast ratios recorded in that file are
 * measured for the app's own surface pairings. `muted` on `elevated` is 4.69:1
 * there; on `void` it is a different number. Any pairing this page invents
 * needs checking on its own.
 */

:root {
  --color-brand-navy: #022143;
  --color-void: #070b12;
  --color-panel: #0f1721;
  --color-card: #16212d;
  --color-elevated: #1e2a38;

  --color-primary: #f1f5f9;
  --color-secondary: #9db4cd;
  --color-muted: #7e95ab;
  --color-accent: #27a78c;
  --color-accent-dim: rgba(39, 167, 140, 0.16);
  --color-gain: #4ade80;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-elevated: 0 8px 28px rgba(0, 0, 0, 0.55);

  --font-body: 'Poppins', ui-sans-serif, system-ui, sans-serif;

  /* Wider than the app's 14px workhorse. This is prose read once by a stranger,
     not a dashboard read daily by someone who knows where everything is. */
  --measure: 68ch;
  --wrap: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-void);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: 760px;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-brand-navy);
  font-weight: 600;
}

.btn-primary:hover {
  background: #2fbd9e;
}

.btn-secondary {
  border-color: var(--color-border-strong);
  background: var(--color-card);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-elevated);
}

.btn-ghost {
  padding: 0 14px;
  color: var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-card);
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 24px;
  text-align: center;
}

h1 {
  margin: 0 auto 20px;
  max-width: 16ch;
  font-size: clamp(38px, 6.5vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 auto;
  max-width: var(--measure);
  color: var(--color-secondary);
  font-size: clamp(17px, 2.2vw, 20px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.cta-note {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.shot {
  margin: 56px 0 0;
}

.shot img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.shot-inset {
  margin-top: 48px;
}

/* ── Bands ────────────────────────────────────────────────────────────── */

.band {
  padding: 88px 0;
}

.band-alt {
  background: var(--color-panel);
  border-block: 1px solid var(--color-border);
}

h2 {
  margin: 0 0 32px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0 0 18px;
  max-width: var(--measure);
  color: var(--color-secondary);
}

.cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.col p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

/* ── The comparison ───────────────────────────────────────────────────── */

.figures {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 36px 0;
}

.figure {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.figure-value {
  display: block;
  color: var(--color-gain);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.figure-label {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
}

/* The case against the product, given the same weight as the case for it.
   Teal rule rather than a warning colour: this is the brand, not a caveat. */
.honest {
  margin: 32px 0;
  padding: 24px 26px;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-accent-dim);
}

.honest h3 {
  color: var(--color-primary);
}

.honest p {
  margin: 0;
  color: var(--color-primary);
}

.claim {
  margin-bottom: 0;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 500;
}

/* ── Advisors ─────────────────────────────────────────────────────────── */

.ticks {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--color-secondary);
}

.ticks li::before {
  position: absolute;
  left: 0;
  color: var(--color-accent);
  content: '›';
  font-weight: 600;
}

/* ── What this is not ─────────────────────────────────────────────────── */

.notlist {
  margin: 0;
}

.notlist dt {
  margin-top: 24px;
  color: var(--color-primary);
  font-weight: 600;
}

.notlist dt:first-child {
  margin-top: 0;
}

.notlist dd {
  margin: 6px 0 0;
  max-width: var(--measure);
  color: var(--color-muted);
}

/* ── Long-form documents (privacy) ────────────────────────────────────── */

.doc-title {
  margin: 0 0 4px;
  font-size: clamp(30px, 4.5vw, 40px);
  text-align: left;
  max-width: none;
}

.doc-date {
  margin-bottom: 36px;
  color: var(--color-muted);
  font-size: 14px;
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 22px;
}

.prose h3 {
  margin: 26px 0 8px;
  color: var(--color-secondary);
  font-size: 16px;
}

.prose code {
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--color-primary);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.9em;
}

.prose strong {
  color: var(--color-primary);
  font-weight: 500;
}

.doc-note {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  padding: 56px 0 72px;
  border-top: 1px solid var(--color-border);
}

.foot-mark {
  margin-bottom: 20px;
  opacity: 0.75;
}

.foot p {
  margin: 0 0 6px;
  font-size: 14px;
}

.foot-fine {
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 44px;
  }

  .band {
    padding: 56px 0;
  }

  .cta .btn {
    flex: 1 1 100%;
  }
}
