/* WealthenX website. Colours and type follow mobile/src/theme/tokens.js. */
@font-face { font-family: 'Inter'; src: url('Inter-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('Inter-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('Inter-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --navy: #0a2540;
  --navy-700: #123a5e;
  --emerald: #0e9f6e;
  --emerald-text: #075e40;
  --emerald-soft: #e7f6ef;
  --ink: #101418;
  --body: #1f2937;
  --mute: #6b7280;
  --hairline: #e5e7eb;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --hero-ink: #ffffff;
  --hero-mute: rgba(255, 255, 255, 0.75);
  --todo-bg: #fef4e5;
  --todo-ink: #8a5300;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #f4f6f8;
    --body: rgba(244, 246, 248, 0.86);
    --mute: rgba(244, 246, 248, 0.62);
    --hairline: rgba(255, 255, 255, 0.1);
    --bg: #0b0f14;
    --surface: #141a21;
    --emerald-text: #10b981;
    --emerald-soft: rgba(16, 185, 129, 0.12);
    --todo-bg: rgba(245, 158, 11, 0.16);
    --todo-ink: #f5b544;
  }
}
:root[data-theme='dark'] {
  --ink: #f4f6f8;
  --body: rgba(244, 246, 248, 0.86);
  --mute: rgba(244, 246, 248, 0.62);
  --hairline: rgba(255, 255, 255, 0.1);
  --bg: #0b0f14;
  --surface: #141a21;
  --emerald-text: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --todo-bg: rgba(245, 158, 11, 0.16);
  --todo-ink: #f5b544;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
}
a { color: var(--emerald-text); text-underline-offset: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 22px; font-weight: 600; margin-top: 32px; }
h3 { font-size: 17px; font-weight: 600; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: #fff; }

/* Hero */
.hero { background: var(--navy); color: var(--hero-ink); padding: 56px 0 72px; }
.hero h1 { color: var(--hero-ink); max-width: 720px; }
.hero p { color: var(--hero-mute); font-size: 18px; max-width: 620px; }
.button {
  display: inline-block; background: var(--emerald); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 22px; border-radius: 999px; margin-top: 8px;
}
.button:hover { background: #0b7a54; }
.note { font-size: 14px; color: var(--hero-mute); margin-top: 12px; }

/* Sections */
section { padding: 48px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--mute); font-size: 15px; }
.tick { list-style: none; padding: 0; }
.tick li { padding-left: 28px; position: relative; }
.tick li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald-text); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan .price { font-size: 26px; font-weight: 700; color: var(--ink); margin: 4px 0 12px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--emerald-text); background: var(--emerald-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* Legal pages */
.doc { padding: 40px 0 56px; }
.doc .meta { color: var(--mute); font-size: 14px; margin-bottom: 24px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.doc th { color: var(--ink); font-weight: 600; width: 38%; }
.table-wrap { overflow-x: auto; }

/* Placeholders that must be filled before launch (search the source for "[[") */
.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.draft-banner { background: var(--todo-bg); color: var(--todo-ink); font-size: 14px; padding: 10px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0 40px; font-size: 14px; color: var(--mute); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer a { color: var(--mute); }
.fine { font-size: 14px; color: var(--mute); margin-top: 12px; }
