/*
   Addeo site theme: matches the app.
   Navy background (#0F172A), slate glass surfaces, mint (#3EFFA3) and gold (#D4AF37) accents,
   gold-to-mint gradients, Playfair Display headings, Inter body, JetBrains Mono for figures.
   Gold marks Pro features; mint is the default accent.
*/

/* ---------- Fonts (self-hosted variable fonts, latin subset) ---------- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/playfair-display-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/playfair-display-italic-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
    --bg: #0F172A;
    --bg-deep: #0B1222;
    --surface: #1E293B;
    --surface-glass: rgba(30, 41, 59, 0.6);
    --surface-highlight: #334155;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #F8FAFC;
    --text-2: #94A3B8;
    /* Muted text: 5.5:1 on the page background, 4.7:1 on cards (WCAG AA) */
    --text-3: #8190A5;

    --mint: #3EFFA3;
    --green: #2ECC71;
    --gold: #D4AF37;
    --danger: #EF4444;
    --warning: #F0A35E;

    --chart-cash: #34D399;
    --chart-investment: #10B981;
    --chart-property: #3B82F6;
    --chart-crypto: #8B5CF6;

    --grad-accent: linear-gradient(90deg, var(--gold), var(--mint));
    --grad-badge: linear-gradient(135deg, var(--gold), var(--mint));
    --grad-button: linear-gradient(135deg, var(--mint), var(--green));

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius-m: 12px;
    --radius-l: 16px;
    --radius-xl: 24px;
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: 2rem;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    /* clip (not hidden) so the sticky header keeps working */
    overflow-x: clip;
}

img,
svg {
    display: block;
}

/* Feather-style icons from the inline sprite (the app uses Feather icons) */
.i {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.i-xs {
    width: 11px;
    height: 11px;
}

.i-sm {
    width: 15px;
    height: 15px;
}

.i-lg {
    width: 26px;
    height: 26px;
}

.brand {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
    border-radius: 6px;
}

strong {
    color: var(--text);
    font-weight: 600;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--text);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--mint);
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s;
}

.skip-link:focus {
    transform: none;
}

/* ---------- Layout utilities ---------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(4rem, 7vw, 5.5rem) 0;
    position: relative;
}

/* A slightly deeper band to break up the page rhythm */
.band {
    background: rgba(11, 18, 34, 0.55);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    margin-bottom: 1.5rem;
}

/* An eyebrow inside a heading keeps the look of one placed above it */
h1 .eyebrow {
    display: block;
    line-height: 1.6;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--text-2);
}

.text-gradient {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.italic-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--text-2);
    white-space: nowrap;
}

.glass {
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

/* Gold-to-mint hairline across the top of a card, as on the app's briefing cards.
   Reserved for the briefing cards and the Pro plan so it keeps its meaning. */
.accent-top {
    position: relative;
    overflow: hidden;
}

.accent-top::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad-accent);
    opacity: 0.85;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 0;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--mint);
}

.text-link svg {
    transition: transform 0.2s var(--ease-out);
}

.text-link:hover svg {
    transform: translateX(3px);
}

/* ---------- Background ---------- */

.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}

.glow-mint {
    width: 60vw;
    height: 60vw;
    top: -30vw;
    left: -15vw;
    background: radial-gradient(circle, rgba(62, 255, 163, 0.22), transparent 65%);
    animation: drift 18s ease-in-out infinite alternate;
}

.glow-gold {
    width: 55vw;
    height: 55vw;
    bottom: -30vw;
    right: -15vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 65%);
    animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    to {
        transform: translate(6vw, 4vw) scale(1.08);
    }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, padding 0.3s;
}

.site-header.is-scrolled,
.site-header.nav-open {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
    padding: 0.7rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* With JS, the header button waits until the hero's store buttons have scrolled away */
.js .nav-cta {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0.25s;
}

.js .site-header.show-cta .nav-cta {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* `.site-header` adds specificity over `.icon-btn`, which sets display: grid further down */
.site-header .nav-toggle,
.nav-toggle .icon-close,
.site-header.nav-open .nav-toggle .icon-menu {
    display: none;
}

.site-header.nav-open .nav-toggle .icon-close {
    display: block;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s, border-color 0.2s, opacity 0.25s;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--grad-button);
    color: var(--bg);
    box-shadow: 0 0 24px rgba(62, 255, 163, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(62, 255, 163, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--mint);
}

.btn:active {
    transform: scale(0.97);
}

/* Store buttons. `.is-soon` is the pre-launch state: not a link, no hover. */
.store-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 9px 22px 9px 18px;
    border-radius: 14px;
    background: #05080F;
    border: 1px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}

.store-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
}

.store-text small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-2);
}

a.store-btn:hover {
    transform: translateY(-2px);
    border-color: var(--mint);
    box-shadow: 0 0 28px rgba(62, 255, 163, 0.25);
}

.store-btn.is-soon {
    cursor: default;
}

.store-btn.is-soon small {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: 2rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy .lede {
    max-width: 520px;
    margin-bottom: 2.25rem;
}

.trust-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.trust-item svg {
    color: var(--mint);
}

/* Kinetic headline: words fade and rise in with a slight overshoot, like the app's KineticText */
.kinetic .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.3em);
    transition:
        opacity 0.45s ease-out,
        transform 0.55s var(--ease-back);
    transition-delay: calc(var(--i) * 65ms);
}

.kinetic.play .word {
    opacity: 1;
    transform: none;
}

/* The gradient phrase stays on one line: each word paints its slice of one shared gradient,
   which only lines up when the phrase isn't wrapped */
.kinetic .text-gradient {
    white-space: nowrap;
}

/* Gradient text has to be painted per word once the line is split */
.kinetic .text-gradient .word {
    background: var(--grad-accent);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Phone mockup (the app's home screen) ---------- */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.phone {
    position: relative;
    width: 320px;
    max-width: 100%;
    border-radius: 44px;
    padding: 12px;
    background: linear-gradient(160deg, #273449, #0B1222 60%);
    border: 1px solid var(--border-strong);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 60px rgba(62, 255, 163, 0.12);
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.phone-screen {
    position: relative;
    border-radius: 34px;
    background: var(--bg);
    overflow: hidden;
    padding: 14px 16px 18px;
}

.phone-screen::before {
    content: "";
    position: absolute;
    width: 140%;
    height: 220px;
    top: -120px;
    left: -20%;
    background: radial-gradient(circle, rgba(62, 255, 163, 0.18), transparent 65%);
    pointer-events: none;
}

.phone-notch {
    width: 90px;
    height: 24px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: #000;
}

.app-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.app-greeting {
    font-family: var(--font-serif);
    font-size: 1.15rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: color 0.2s, border-color 0.2s, transform 0.15s;
}

.icon-btn:hover {
    color: var(--text);
}

.icon-btn:active {
    transform: scale(0.92);
}

.icon-btn[aria-pressed="true"] {
    color: var(--mint);
    border-color: rgba(62, 255, 163, 0.4);
}

.icon-btn .eye-closed,
.icon-btn[aria-pressed="true"] .eye-open {
    display: none;
}

.icon-btn[aria-pressed="true"] .eye-closed {
    display: block;
}

.app-card {
    position: relative;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 14px;
    margin-bottom: 10px;
}

.nw-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-label {
    font-size: 0.72rem;
    color: var(--text-2);
}

.pill-toggle {
    display: flex;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.pill-toggle button {
    font-size: 0.7rem;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text-3);
    transition: background 0.2s, color 0.2s;
}

.pill-toggle button[aria-pressed="true"] {
    background: rgba(46, 204, 113, 0.14);
    color: var(--green);
    font-weight: 700;
}

.nw-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.01em;
    margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}

.delta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--green);
    background: rgba(46, 204, 113, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
}

.alloc-bar {
    display: flex;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.alloc-bar span {
    height: 100%;
    width: 0;
    transition: width 1s var(--ease-out);
}

.phone.counted .alloc-bar span {
    width: var(--w);
}

.alloc-bar span:nth-child(2) {
    transition-delay: 0.1s;
}

.alloc-bar span:nth-child(3) {
    transition-delay: 0.2s;
}

.alloc-bar span:nth-child(4) {
    transition-delay: 0.3s;
}

.fire-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ring {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

.ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-track {
    fill: none;
    stroke: var(--surface-highlight);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 226.2;
    stroke-dashoffset: 226.2;
    transition: stroke-dashoffset 1.4s var(--ease-out);
}

.ring-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.ring-pct {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--mint);
    line-height: 1;
}

.ring-sub {
    font-size: 0.66rem;
    color: var(--text-2);
    margin-top: 2px;
}

.ring.pulse {
    animation: springPulse 0.6s var(--ease-back);
}

@keyframes springPulse {
    40% {
        transform: scale(1.06);
    }
}

.fire-meta div + div {
    margin-top: 6px;
}

.fire-meta .app-label {
    display: block;
}

.fire-meta strong {
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.asset-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.78rem;
}

.asset-row + .asset-row {
    border-top: 1px solid var(--border);
}

.asset-dot {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c) 18%, transparent);
    color: var(--c);
    flex-shrink: 0;
}

.asset-name {
    flex: 1;
    min-width: 0;
}

.asset-name small {
    display: block;
    color: var(--text-3);
    font-size: 0.68rem;
}

.asset-value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.money {
    transition: filter 0.25s, opacity 0.25s;
}

.phone.shadow .money {
    letter-spacing: 0.08em;
}

.mock-caption {
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.shadow-hint {
    position: absolute;
    top: 64px;
    right: -8px;
    transform: translateX(100%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--gold);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
}

/* ---------- Reveal on scroll (only when JS is running, so content never stays hidden) ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
    transition-delay: calc(var(--stagger, 0) * 70ms);
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- Tags ---------- */

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text-2);
    vertical-align: middle;
}

.tag-pro {
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--gold);
}

/* ---------- Privacy ---------- */

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: center;
}

.online-card {
    padding: 2rem;
}

.online-card h3,
.compare-title {
    font-size: 1.35rem;
}

.online-sub {
    color: var(--text-2);
    margin: 0.35rem 0 1.25rem;
}

.online-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.92rem;
}

.online-list strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.online-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(62, 255, 163, 0.08);
    color: var(--mint);
}

.online-card .text-link {
    margin-top: 0.75rem;
}

.compare-title {
    margin: 0.5rem 0 1rem 1rem;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.compare-table thead th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.compare-table tbody th {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text);
}

.compare-table td {
    color: var(--text-3);
}

/* The Addeo column is outlined in mint, top to bottom */
.compare-table .is-addeo {
    background: rgba(62, 255, 163, 0.05);
    color: var(--text);
    font-weight: 600;
    border-left: 1px solid rgba(62, 255, 163, 0.55);
    border-right: 1px solid rgba(62, 255, 163, 0.55);
}

.compare-table thead .is-addeo {
    color: var(--mint);
    border-top: 1px solid rgba(62, 255, 163, 0.55);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
}

.compare-table tbody tr:last-child .is-addeo {
    border-bottom: 1px solid rgba(62, 255, 163, 0.55);
    border-radius: 0 0 var(--radius-l) var(--radius-l);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td:not(.is-addeo) {
    border-bottom: none;
}

.cell-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.cell-check svg {
    color: var(--mint);
    margin-top: 3px;
    stroke-width: 3;
}

/* ---------- Features ---------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    padding: 1.75rem;
}

/* Plan and region tags sit in the card's top-right corner, level with the icon */
.feature-card .card-tags {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    display: flex;
    gap: 6px;
}

/* Matches `.js .reveal` specificity and comes later, so the hover transition survives */
.js .feature-card {
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out),
        border-color 0.3s;
    /* keep the reveal stagger for opacity/transform only */
    transition-delay: calc(var(--stagger, 0) * 70ms), calc(var(--stagger, 0) * 70ms), 0s;
}

.feature-card:hover {
    border-color: rgba(62, 255, 163, 0.28);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-2);
}

/* Gradient-ringed icon badge, as on the app's briefing cards. `.gold` marks Pro. */
.icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 2px;
    background: var(--grad-badge);
    margin-bottom: 1.25rem;
    transition: transform 0.3s var(--ease-back);
}

.icon-badge > span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--mint);
}

.icon-badge.gold > span {
    color: var(--gold);
}

.feature-card:hover .icon-badge {
    transform: scale(1.06);
}

/* FIRE math spotlight, between the two feature rows */
.spotlight {
    margin: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.spotlight-title {
    font-size: clamp(1.75rem, 3.2vw, 2.3rem);
    margin-bottom: 1rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list {
    margin-top: 1.5rem;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0.45rem 0;
    color: var(--text-2);
}

.check-list li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat,
        var(--grad-badge);
}

.check-list .tag {
    margin-left: 4px;
}

.tool-mockup {
    padding: 1.5rem;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.mockup-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
}

.mockup-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.monte-carlo-container {
    height: 140px;
    border-radius: var(--radius-m);
    background: linear-gradient(180deg, rgba(62, 255, 163, 0.06), transparent 80%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.mc-chart {
    width: 100%;
    height: 100%;
}

.mc-path {
    fill: none;
    stroke: var(--mint);
    stroke-width: 2px;
    opacity: 0.18;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: d 0.3s ease-out;
}

.monte-carlo-container.visible .mc-path {
    animation: drawPath 2.6s var(--ease-out) forwards;
}

.mc-path:nth-child(2) { animation-delay: 0.1s; }
.mc-path:nth-child(3) { animation-delay: 0.2s; }
.mc-path:nth-child(4) { animation-delay: 0.3s; }
.mc-path:nth-child(5) { animation-delay: 0.4s; }
.mc-path:nth-child(6) { animation-delay: 0.5s; }

.mc-path.p6 {
    stroke: var(--danger);
    opacity: 0.45;
}

.mc-path.p7 {
    stroke: url(#mcGradient);
    stroke-width: 3px;
    opacity: 1;
    animation-delay: 0.7s;
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-2);
}

.slider-control {
    flex: 1;
}

.slider-control label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.slider-control label span {
    color: var(--mint);
    font-weight: 600;
}

.stat-box {
    text-align: right;
}

.stat-box .label {
    display: block;
    font-size: 0.75rem;
}

.value-green {
    color: var(--mint);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
}

/* ---------- Briefing carousel ---------- */

.brief-steps {
    display: flex;
    gap: 6px;
    max-width: 520px;
    margin: 0 auto 1rem;
}

.brief-steps button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
    transition: color 0.2s;
}

.brief-steps button:hover,
.brief-steps button[aria-current="true"] {
    color: var(--text);
}

.brief-steps .bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.brief-steps .bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.brief-steps button.done .bar::after,
.brief-steps button[aria-current="true"] .bar::after {
    transform: scaleX(1);
}

.brief-steps button[aria-current="true"] .bar {
    box-shadow: 0 0 10px rgba(62, 255, 163, 0.5);
}

.brief-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem calc(50% - min(280px, 42vw)) 2rem;
    scrollbar-width: none;
}

.brief-track::-webkit-scrollbar {
    display: none;
}

.brief-card {
    flex: 0 0 min(560px, 84vw);
    scroll-snap-align: center;
    padding: 2.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.45;
    transform: scale(0.94);
    transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.brief-card.is-active {
    opacity: 1;
    transform: none;
}

.brief-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 55%;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
    pointer-events: none;
}

.brief-card > * {
    position: relative;
    z-index: 1;
}

.brief-card .icon-badge {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
}

.brief-card h3 {
    font-size: 1.7rem;
    margin-bottom: 0.25rem;
}

.brief-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.brief-lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.brief-points {
    text-align: left;
    max-width: 420px;
    width: 100%;
}

.brief-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-2);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.brief-points svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--accent);
}

.brief-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.brief-controls .icon-btn {
    width: 44px;
    height: 44px;
}

.brief-controls .icon-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Wide screens: show all five cards at once instead of a carousel */
@media (min-width: 1100px) {
    .brief-steps,
    .brief-controls {
        display: none;
    }

    .brief-track {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--gutter);
        overflow: visible;
        scroll-snap-type: none;
    }

    .brief-card {
        grid-column: span 2;
        opacity: 1;
        transform: none;
    }

    .brief-card:nth-child(n + 4) {
        grid-column: span 3;
    }
}

/* Fuel slider */
.fuel {
    width: 100%;
    max-width: 420px;
}

.fuel-stats {
    display: flex;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 1rem;
}

.fuel-stats > div:last-child {
    text-align: right;
}

.fuel-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.fuel-number {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.fuel-number.gold {
    color: var(--gold);
}

.fuel-number.mint {
    color: var(--mint);
}

.range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 32px;
    background: transparent;
    cursor: pointer;
    --fill: 30%;
}

.range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--gold), var(--mint)) 0 0 / var(--fill) 100% no-repeat,
        rgba(255, 255, 255, 0.1);
}

.range::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.range::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--grad-accent);
}

.range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--text);
    border: 3px solid var(--mint);
    box-shadow: 0 0 14px rgba(62, 255, 163, 0.6);
}

.range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    border: 3px solid var(--mint);
    box-shadow: 0 0 14px rgba(62, 255, 163, 0.6);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-3);
}

.fineprint {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 1rem;
    line-height: 1.5;
}

/* Vault seal switch */
.seal {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-m);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-strong);
}

.seal-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--text-3);
    min-width: 8.5em;
    text-align: left;
    transition: color 0.3s;
}

.switch {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #333;
    position: relative;
    transition: background 0.3s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #777;
    transition: transform 0.3s var(--ease-back), background 0.3s, box-shadow 0.3s;
}

.switch[aria-checked="true"] {
    background: rgba(62, 255, 163, 0.3);
}

.switch[aria-checked="true"]::after {
    transform: translateX(20px);
    background: var(--mint);
    box-shadow: 0 0 12px rgba(62, 255, 163, 0.8);
}

.seal.sealed .seal-label {
    color: var(--mint);
}

.seal.sealed {
    animation: sealThud 0.45s var(--ease-back);
}

@keyframes sealThud {
    35% {
        transform: scale(1.08);
    }
}

/* ---------- Plans ---------- */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}

.plan-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.plan-card h3 {
    font-size: 1.6rem;
}

.plan-card .check-list {
    margin-bottom: 1.75rem;
}

.plan-card .check-list li {
    font-size: 0.95rem;
}

.plan-card .btn,
.plan-foot {
    margin-top: auto;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.75rem;
    min-height: 74px;
}

.plan-price .amount {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
}

.plan-price .per {
    color: var(--text-2);
}

.plan-pro {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.08);
}

.plan-pro h3 {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    align-self: flex-start;
}

.price-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    min-height: 74px;
}

.price-options > div {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-m);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
}

.price-options dt {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.price-options dd {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.plan-foot {
    color: var(--text-2);
    font-size: 0.9rem;
    padding: 14px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.plans-note {
    text-align: center;
    color: var(--text-3);
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 44px;
    padding: 1.2rem 0.25rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--mint);
}

.faq-item summary svg {
    color: var(--text-2);
    transition: transform 0.25s var(--ease-out), color 0.2s;
}

.faq-item[open] summary svg {
    transform: rotate(180deg);
    color: var(--mint);
}

.faq-body {
    padding: 0 0.25rem 1.4rem;
    max-width: 680px;
    color: var(--text-2);
}

/* ---------- Manifesto ---------- */

.manifesto {
    text-align: center;
}

/* A soft gold-to-mint glow behind the line, so it reads as a pause between sections */
.manifesto::before {
    content: "";
    position: absolute;
    inset: 15% 20%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08), rgba(62, 255, 163, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

.manifesto .container {
    position: relative;
    max-width: 860px;
}

.manifesto-lead {
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.manifesto-body {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-2);
}

/* ---------- Final CTA ---------- */

.final-cta {
    text-align: center;
    padding: clamp(5rem, 9vw, 7rem) 0 4rem;
    position: relative;
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(62, 255, 163, 0.14), transparent 60%);
    pointer-events: none;
}

.final-cta .store-list {
    justify-content: center;
    margin-top: 2rem;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-2);
    font-size: 0.9rem;
}

.indicator-item svg {
    color: var(--mint);
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer .nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.site-footer .logo-text {
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
}

.footer-nav a {
    display: inline-block;
    padding: 0.7rem 0;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-disclaimer {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-3);
    max-width: 800px;
}

.footer-disclaimer a {
    color: inherit;
    padding: 0.25rem 0;
}

.copyright {
    margin-top: 1rem;
    color: var(--text-3);
    font-size: 0.8rem;
}

/* ---------- Legal pages ---------- */

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 3.5rem 1rem 4rem;
    color: var(--text-2);
}

.legal-content h1 {
    color: var(--text);
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.45rem;
    color: var(--text);
    margin: 3rem 0 1rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--mint);
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    background: var(--surface-glass);
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 640px;
}

.legal-content th,
.legal-content td {
    text-align: left;
    vertical-align: top;
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.legal-content tr:last-child td {
    border-bottom: none;
}

.legal-content th {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---------- Calculator pages ---------- */

.calc-page {
    padding-top: 3rem;
}

.calc-head {
    max-width: 780px;
    margin-bottom: 2.5rem;
}

.calc-head h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    margin-bottom: 1rem;
}

/* The inputs beside the results; one column on tablets and phones */
.calc {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    padding: 2rem;
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    align-content: start;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.field-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.field-row label {
    margin-bottom: 0;
}

.field-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--mint);
    font-variant-numeric: tabular-nums;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.field input:not(.range),
.field select {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-m);
    border: 1px solid var(--border-strong);
    background: rgba(11, 18, 34, 0.7);
    color: var(--text);
    font: inherit;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    background: rgba(11, 18, 34, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
    cursor: pointer;
}

.field input:not(.range):hover,
.field select:hover {
    border-color: rgba(62, 255, 163, 0.35);
}

/* Inputs show focus with their own border and ring instead of the site-wide outline */
.field input:not(.range):focus-visible,
.field select:focus-visible {
    outline: none;
    border-radius: var(--radius-m);
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(62, 255, 163, 0.2);
}

.input-wrap {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    color: var(--text-3);
    pointer-events: none;
}

.field .input-wrap input {
    padding-left: 2rem;
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: var(--radius-l);
    background: rgba(11, 18, 34, 0.55);
    border: 1px solid var(--border);
}

.calc-results .stat-box {
    text-align: left;
    color: var(--text-2);
}

.result-number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--mint);
    overflow-wrap: anywhere;
}

.result-note {
    display: block;
    font-size: 0.9rem;
}

.stat-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-3);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.stat-grid .value-green {
    display: block;
    font-size: 1.3rem;
    line-height: 1.3;
}

.calc-progress {
    height: 6px;
    margin-top: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.calc-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--grad-accent);
    transition: width 0.4s var(--ease-out);
}

.calc-summary {
    font-size: 0.92rem;
    color: var(--text-2);
}

/* Left-aligned at every width (the hero centres .trust-stack on smaller screens) */
.calc-results .trust-stack {
    margin-top: auto;
    justify-content: flex-start;
}

/* The explanation under the calculator */
.calc-prose {
    max-width: 780px;
    color: var(--text-2);
}

.calc-prose h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    color: var(--text);
    margin: 3.5rem 0 1rem;
}

.calc-prose p {
    margin-bottom: 1rem;
}

.calc-prose a:not(.text-link) {
    color: var(--mint);
}

.calc-prose ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.calc-prose ol li {
    padding-left: 0.3rem;
    margin-bottom: 0.6rem;
}

.calc-prose .check-list {
    margin: 0 0 1rem;
}

.formula {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-m);
    border: 1px solid var(--border-strong);
    background: rgba(11, 18, 34, 0.6);
    overflow-wrap: anywhere;
}

.formula span {
    display: block;
}

.formula span + span {
    margin-top: 0.4rem;
    color: var(--text-2);
}

/* The not-financial-advice note */
.calc-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 2rem 0 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-m);
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.05);
    font-size: 0.92rem;
}

.calc-note svg {
    color: var(--gold);
    margin-top: 3px;
}

.calc-note p {
    margin: 0;
}

.calc-prose .faq-list {
    margin-top: 1.5rem;
}

.calc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1.5rem;
    margin-top: 2rem;
}

/* Links from the homepage's FIRE math spotlight */
.spotlight-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 960px) {
    .calc {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .calc-page {
        padding-top: 1.5rem;
    }

    .calc {
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .calc-results {
        padding: 1.25rem;
    }
}

@media (max-width: 560px) {
    .calc-form {
        grid-template-columns: 1fr;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero-grid,
    .split-layout,
    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .split-layout {
        gap: 3.5rem;
    }

    .hero {
        min-height: auto;
        padding-top: 2.5rem;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy .lede {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-copy .store-list,
    .trust-stack {
        justify-content: center;
    }

    .shadow-hint {
        display: none;
    }

    .compare-title {
        margin-left: 0;
    }
}

/* Phones and small tablets: the main links move into a menu */
@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .js .site-header .nav-toggle {
        display: grid;
        width: 44px;
        height: 44px;
    }

    .js .site-header.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 2px;
        position: absolute;
        top: 100%;
        left: var(--gutter);
        right: var(--gutter);
        margin-top: 0.5rem;
        padding: 0.5rem;
        background: var(--surface);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-l);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    }

    .site-header.nav-open .nav-links a {
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
        color: var(--text);
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
        --header-h: 64px;
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .site-header.is-scrolled,
    .site-header.nav-open {
        padding: 0.6rem 0;
    }

    .hero {
        padding-top: 1.5rem;
        padding-bottom: 4rem;
    }

    .hero-copy .lede {
        font-size: 1.05rem;
        margin-bottom: 1.75rem;
    }

    .store-btn {
        min-height: 54px;
        padding: 8px 18px 8px 14px;
    }

    .trust-stack {
        margin-top: 1.5rem;
    }

    .online-card {
        padding: 1.5rem 1.25rem;
    }

    /* Compact feature cards: icon beside the title, tags under it */
    .feature-card {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 14px;
        align-items: start;
        padding: 1.25rem;
    }

    .feature-card .icon-badge {
        grid-row: 1 / span 3;
        width: 44px;
        height: 44px;
        margin: 0;
    }

    .feature-card .icon-badge .i {
        width: 18px;
        height: 18px;
    }

    .feature-card h3 {
        margin: 0.55rem 0 0.35rem;
    }

    .feature-card .card-tags {
        position: static;
        margin-bottom: 0.4rem;
    }

    .feature-card > p:last-child {
        grid-column: 2;
    }

    .features-grid {
        gap: 1rem;
    }

    .compare-table tbody tr {
        padding: 0.75rem 0;
    }

    .brief-card {
        padding: 2rem 1.25rem 1.5rem;
    }

    .brief-track {
        padding-left: 8vw;
        padding-right: 8vw;
    }

    .stat-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .stat-box {
        text-align: left;
    }

    .price-options dd {
        font-size: 1.1rem;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 0.9rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Very narrow phones (320px): keeps "Your Business." on one line without overflowing */
@media (max-width: 359px) {
    h1 {
        font-size: 2.2rem;
    }
}

/* Small phones: each comparison row becomes a block that still compares both sides */
@media (max-width: 600px) {
    /* Stacked store buttons share one width */
    .store-list {
        display: grid;
        grid-template-columns: minmax(0, 270px);
        justify-content: center;
    }

    .store-btn {
        width: 100%;
    }

    .compare-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table th,
    .compare-table td {
        display: block;
    }

    .compare-table tbody tr {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }

    .compare-table tbody tr:last-child {
        border-bottom: none;
    }

    .compare-table tbody th,
    .compare-table td,
    .compare-table .is-addeo,
    .compare-table tbody tr:last-child .is-addeo {
        padding: 0.3rem 0;
        border: none;
        border-radius: 0;
        background: none;
    }

    .compare-table tbody th {
        padding-bottom: 0.5rem;
        font-size: 1.05rem;
    }

    .compare-table td {
        display: grid;
        grid-template-columns: 7.5rem 1fr;
        gap: 1rem;
    }

    .compare-table td::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 400;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-3);
        padding-top: 3px;
    }

    .compare-table td.is-addeo::before {
        color: var(--mint);
    }
}

/* Playfair defaults to old-style figures; numbers set in it use lining figures so "0" doesn't read as "o" */
.fuel-number,
.value-green,
.result-number,
.plan-price .amount,
.price-options dd {
    font-variant-numeric: lining-nums tabular-nums;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }

    .js .reveal,
    .kinetic .word {
        opacity: 1;
        transform: none;
    }

    .mc-path {
        stroke-dashoffset: 0;
    }
}
