/* ============================================================
   AXA ACCOUNTING — SHARED DESIGN TOKENS
   Used by index.html and offer.html.
   Page-specific stylesheets load AFTER this and may override.
   ============================================================ */

:root {
    --primary: #0473ea;
    --primary-dark: #0360c4;
    --primary-light: #5a9ff5;
    --primary-ultra: #d6e9ff;
    --accent: #38d200;
    --accent-dark: #2db300;
    --accent-light: #5de030;
    --danger: #e05252;
    --danger-soft: #f87171;
    --text: #292929;
    --text-2: #3f4147;
    --text-3: #6b7079;
    --text-muted: #888b90;
    --white: #ffffff;
    --bg: #ffffff;
    --bg-2: #f6f8fb;
    --bg-3: #edf1f7;
    --border: #e4e8ee;
    --border-2: #d0d5dd;

    /* Navy scale (dark surfaces) */
    --navy-900: #0a1628;
    --navy-800: #0b1c36;
    --navy-700: #0e2244;
    --navy-600: #122a54;
    --navy-500: #1a3a6e;

    /* Elevation tiers */
    --lift-sm: -2px;
    --lift-md: -6px;
    --lift-lg: -10px;
    --lift-xl: -16px;

    /* Neutral shadow tokens */
    --sh-sm: 0 4px 16px rgba(17,24,39,.06);
    --sh-md: 0 12px 40px rgba(17,24,39,.08);
    --sh-lg: 0 24px 64px rgba(17,24,39,.10);
    /* Brand shadow tokens */
    --sh-brand-sm: 0 4px 16px rgba(4,115,234,.18);
    --sh-brand-md: 0 12px 32px rgba(4,115,234,.22);
    --sh-brand-lg: 0 24px 64px rgba(4,115,234,.18);
    /* Accent shadow tokens */
    --sh-accent-sm: 0 6px 20px rgba(56,210,0,.28);
    --sh-accent-md: 0 14px 36px rgba(56,210,0,.38);
    --sh-accent-lg: 0 22px 56px rgba(56,210,0,.32);

    /* Unified card system */
    --card-radius: 22px;
    --card-pad: 36px 30px;
    --icon-size: 52px;
    --icon-radius: 14px;

    --display: 'Montserrat', sans-serif;
    --body: 'Karla', sans-serif;
    --ease: cubic-bezier(.4,0,.2,1);
    --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ===== FOCUS ===== */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ===== SELECTION ===== */
::selection { background: rgba(4,115,234,.2); color: var(--text); }

/* ===== NOISE OVERLAY ===== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.12;
    color: var(--text);
    letter-spacing: -.025em;
}

/* Eyebrow / tag pill — single canonical style across the site */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 22px;
}
.tag::before { display: none; }

.stitle {
    font-size: clamp(1.85rem, 3.4vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.ssub {
    font-size: clamp(.98rem, 1.4vw, 1.06rem);
    color: var(--text-3);
    max-width: 560px;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--body);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    padding: 18px 36px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all .4s var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Header CTA button — matches .btn-w style */
.hdr-cta {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 24px;
    font-size: .84rem;
    font-weight: 700;
    font-family: var(--body);
    box-shadow: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    cursor: pointer;
    transition: all .4s var(--ease);
}
.hdr-cta:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.3);
}
/* Sticky header — match nav link colour */
.hdr.stuck .hdr-cta {
    background: transparent;
    color: var(--text-3);
    border-color: var(--text-3);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.hdr.stuck .hdr-cta:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(4,115,234,.06);
}
/* Shimmer sweep on hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left .8s var(--ease);
    pointer-events: none;
}
.btn:hover::before { left: 120%; }

/* Primary gradient — canonical CTA (.btn-p and .btn-g are aliases) */
.btn-p,
.btn-g {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-g:hover i { transform: translateX(4px); }

/* Outlined */
.btn-o {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-o:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(4,115,234,.04);
}

/* White / glass (used on dark surfaces) */
.btn-w {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-w:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.3);
}

/* Block (full-width) modifier */
.btn-block { width: 100%; }

/* Pulse halo (campaign CTA emphasis) */
.btn-pulse { position: relative; }
.btn-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: pulseRing 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes pulseRing {
    0%   { box-shadow: none; }
    70%  { box-shadow: none; }
    100% { box-shadow: none; }
}

/* ===== POSITION-AWARE BUTTON (cursor-tracked accent fill) =====
   Add `position-aware-button` alongside any .btn variant. Wrap text in
   <span class="label">…</span>. Hover spawns a green blob that grows
   from the cursor entry point. JS lives in assets/position-aware-button.js. */
.position-aware-button {
    appearance: none;
    z-index: 1;
    text-transform: capitalize;
    letter-spacing: 0;
}
/* Suppress the default .btn shimmer sweep — blob replaces it */
.position-aware-button::before { content: none; }
/* Position-aware variants inherit their base styles; blob is the only visual change */
.btn-w.position-aware-button {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.15);
}
.btn-o.position-aware-button {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
/* Label layer (no animation) */
.position-aware-button .label {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.position-aware-button .blob {
    position: absolute;
    width: 2px;
    height: 2px;
    margin-left: 0;
    margin-top: 0;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--accent);
    z-index: -1;
    transition:
        border-width .4s ease-out,
        margin-left .4s ease-out,
        margin-top .4s ease-out;
    pointer-events: none;
}
.position-aware-button .blob.expand {
    border-width: 1500px;
    margin-left: -1500px;
    margin-top: -1500px;
    transition:
        border-width .7s ease-in-out,
        margin-left .7s ease-in-out,
        margin-top .7s ease-in-out;
}

/* ===== SCROLL REVEAL ===== */
.rv {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.rv.vis {
    opacity: 1;
    transform: translateY(0);
}
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .4s; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .btn-pulse::after { animation: none !important; }
    .rv { opacity: 1; transform: none; }
    .position-aware-button .label,
    .position-aware-button .label::after,
    .position-aware-button .blob { transition: none !important; }
}
