/* RetireWealth Advisors base styles, loaded by every RetireWealth page through the "head" section.
   Holds the brand colours, type, page width, header and footer. Page-specific styles live in
   their own files (landing.css, quiz.css, ...). To re-colour the brand, change the tokens below. */

:root {
    --bg: #FFFFFF;
    --bg-soft: #F7F6F2;
    --bg-tint: #EEF3F8;
    --ink: #0E1C2B;
    --ink-2: #3A4A5C;
    --ink-3: #6A7686;
    --line: #E2E6EB;
    --accent: #1B4F8A;
    --accent-strong: #133B69;
    --accent-bright: #2E6FB7;
    --accent-soft: rgba(27, 79, 138, 0.08);
    --accent-line: rgba(27, 79, 138, 0.22);
    --accent-glow: rgba(46, 111, 183, 0.10);
    --accent-shadow: rgba(27, 79, 138, 0.30);
    --on-accent: #FFFFFF;
    --on-accent-muted: rgba(255, 255, 255, 0.80);
    --scrim: rgba(14, 28, 43, 0.18);
    --glass: rgba(255, 255, 255, 0.94);
    --gold: #C99A3E;
    --gold-strong: #A87C26;
    --gold-soft: #F7EEDB;
    --gold-line: rgba(201, 154, 62, 0.38);
    --good: #1E7A4F;
    --danger: #B42318;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(14, 28, 43, 0.05), 0 2px 8px rgba(14, 28, 43, 0.04);
    --shadow-md: 0 2px 4px rgba(14, 28, 43, 0.04), 0 12px 32px rgba(14, 28, 43, 0.08);
    --shadow-lg: 0 4px 8px rgba(14, 28, 43, 0.04), 0 24px 60px rgba(14, 28, 43, 0.12);
    --shadow-up: 0 -8px 24px rgba(14, 28, 43, 0.08);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); text-wrap: balance; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

.rw-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .rw-wrap { padding: 0 32px; } }

/* Header */
.rw-topbar {
    position: sticky; top: 0; z-index: 40;
    background: var(--glass);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
}
.rw-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.rw-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -0.2px;
    color: var(--ink); text-decoration: none;
}
.rw-mark { width: 34px; height: 34px; flex: none; }
.rw-topbar-badge {
    display: none;
    font-family: var(--font-head); font-weight: 600; font-size: 13px;
    color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-line);
    padding: 6px 12px; border-radius: 999px;
}
@media (min-width: 640px) { .rw-topbar-badge { display: inline-flex; } }

/* Footer */
.rw-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.rw-footer-disclosures p + p { margin-top: 10px; }
.rw-footer-disclosures a, .rw-footer-links a { color: var(--ink-2); }
.rw-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.rw-footer-copy { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
