/* Complete AI visual layer: gradients, glow, orbs and gentle motion.

   How a page opts in. Put these as the LAST lines before </head>, after the page's own <style>,
   so this file can restyle the page's existing classes without editing its markup:

       <link rel="stylesheet" href="/assets/css/ca-visual.css">
       <script src="/assets/js/ca-visual.js" defer></script>   (key pages only: adds the moving dot-grid and aurora)

   Pages without the script still get every colour, orb and glow, just no motion.
   The homepage loads this stylesheet only, never the script: its dot field is its own animation, and its
   animated block (#show) is fenced off from every rule here (see section 7).
   NOT loaded on the Fractional AI Director page until its own animations are checked.
   /ai-opportunity-score carries its own copy of this look inline.

   Rules: navy and blue family only (no red, green or amber). Lucide icons only. Sky (#5DADE2) sits on navy,
   never as small text on white. Motion only runs with html.ca-motion, which the script adds only when the
   visitor has not asked for reduced motion. Never style the how-we-work timeline (.step-node, .timeline)
   or the workshops caret and tabs: they run their own animations. */

:root {
    --cv-navy: #0A1E3F;
    --cv-deep: #061430;
    --cv-mid: #1B4F86;
    --cv-link: #236FA8;
    --cv-sky: #5DADE2;
    --cv-ice: #CDEBFF;
    --cv-line: #D3E2F1;
    --cv-tint: #F3F8FD;
    --cv-glow: rgba(35, 111, 168, .38);
    --bg-alt: #F2F7FC;            /* the light section bands pick up a faint blue */
}

/* ---------------------------------------------------------------------------
   1. Buttons
--------------------------------------------------------------------------- */
.btn:not(.btn-secondary):not(.secondary):not(.btn-light):not(.btn-ghost-light):not(.btn-accent),
.btn-solid, .btn-primary, .rp-submit, .ws-submit, .read-more, .cta-btn, .nav-cta {
    background: linear-gradient(135deg, var(--cv-navy) 0%, var(--cv-mid) 100%);
    background-origin: border-box;
    border-color: transparent;
    color: #fff;
    box-shadow: var(--cv-glow) 0 8px 22px, inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:not(.btn-secondary):not(.secondary):not(.btn-light):not(.btn-ghost-light):not(.btn-accent):hover,
.btn-solid:hover, .btn-primary:hover, .rp-submit:hover, .ws-submit:hover, .read-more:hover, .cta-btn:hover, .nav-cta:hover {
    background: linear-gradient(135deg, var(--cv-navy) 0%, var(--cv-mid) 100%);
    background-origin: border-box;
    color: #fff;
    filter: brightness(1.18);
    transform: translateY(-1px);
    box-shadow: rgba(35, 111, 168, .5) 0 12px 28px, inset 0 1px 0 rgba(255, 255, 255, .22);
}
.nav-cta { box-shadow: rgba(35, 111, 168, .3) 0 6px 16px, inset 0 1px 0 rgba(255, 255, 255, .18); }

/* Light buttons on navy: ice, with a glow */
.btn-light, .tp-cta .btn-light, .cta-button {
    background: linear-gradient(135deg, #FFFFFF 0%, #DCEFFE 100%);
    background-origin: border-box;
    border-color: transparent;
    color: var(--cv-navy);
    box-shadow: rgba(93, 173, 226, .45) 0 8px 26px, inset 0 1px 0 #fff;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn-light:hover, .tp-cta .btn-light:hover, .cta-button:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #CDEBFF 100%);
    color: var(--cv-navy);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: rgba(93, 173, 226, .65) 0 12px 30px, inset 0 1px 0 #fff;
}

/* Outline buttons: glass */
.btn-secondary, .btn.secondary, .btn-line {
    background: rgba(255, 255, 255, .72);
    border-color: #B9CCDF;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-secondary:hover, .btn.secondary:hover, .btn-line:hover {
    background: #fff;
    border-color: var(--cv-link);
    color: var(--cv-navy);
    transform: translateY(-1px);
    box-shadow: rgba(35, 111, 168, .18) 0 8px 20px;
}
/* :not(:where(#show *)) keeps these off the homepage's animated block without changing their weight elsewhere */
.btn-ghost-light:not(:where(#show *)) {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn-ghost-light:not(:where(#show *)):hover { background: rgba(255, 255, 255, .14); border-color: #fff; box-shadow: rgba(93, 173, 226, .35) 0 0 22px; }

/* Arrow icons nudge forward on hover */
.btn .icon, .btn-solid .icon, .nav-cta .icon { transition: transform .15s ease; }
.btn:hover .icon, .btn-solid:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------------------
   2. Navy panels: aurora glow and a faint dot-grid
--------------------------------------------------------------------------- */
.final-cta, .tp-cta, section.cta, .cta-section, .agent-builder, .case-study-visual, .tp-card.navy,
.founder-story .cta-box, .founder-story .kemi-card, .pkg.flagship, .gift.hero-gift {
    background-color: var(--cv-navy);
    background-image:
        radial-gradient(60% 120% at 88% -20%, rgba(93, 173, 226, .40) 0%, rgba(93, 173, 226, 0) 60%),
        radial-gradient(55% 110% at 8% 125%, rgba(35, 111, 168, .58) 0%, rgba(35, 111, 168, 0) 62%),
        radial-gradient(rgba(93, 173, 226, .14) 1px, transparent 1.6px),
        linear-gradient(135deg, var(--cv-deep) 0%, var(--cv-navy) 55%, #10305E 100%);
    background-size: 170% 170%, 170% 170%, 18px 18px, 100% 100%;
    background-position: 0 0, 100% 100%, 0 0, 0 0;
}
.tp-card.navy, .founder-story .kemi-card, .pkg.flagship, .case-study-visual { box-shadow: rgba(10, 30, 63, .28) 0 16px 36px; }
html.ca-motion :is(.final-cta, .tp-cta, section.cta, .cta-section, .agent-builder, .tp-card.navy, .founder-story .cta-box) {
    animation: cv-aurora 18s ease-in-out infinite alternate;
}
@keyframes cv-aurora {
    from { background-position: 0% 0%, 100% 100%, 0 0, 0 0; }
    to   { background-position: 100% 55%, 0% 35%, 0 0, 0 0; }
}
/* Headline accent words on navy */
.tp-cta h2 em, .final-cta h2 em, section.cta h2 em {
    background: linear-gradient(90deg, #E3F3FF 0%, var(--cv-sky) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--cv-sky);
}

/* ---------------------------------------------------------------------------
   3. Icons: glowing orbs instead of flat squares
--------------------------------------------------------------------------- */
.service-icon, .step-icon, .case-study-visual .visual-icon, .agent-builder-visual .big-icon, .gift .ico {
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle at 30% 22%, #8CCBF2 0%, #3B8FCC 28%, #1B5590 60%, var(--cv-navy) 100%);
    box-shadow: 0 0 0 5px rgba(93, 173, 226, .16), rgba(35, 111, 168, .45) 0 10px 24px,
                inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -6px 12px rgba(6, 20, 48, .35);
}
.service-icon .icon, .step-icon .icon, .case-study-visual .visual-icon .icon, .agent-builder-visual .big-icon .icon, .gift .ico svg {
    stroke: currentColor;
    stroke-width: 1.75;
    filter: drop-shadow(0 1px 1px rgba(6, 20, 48, .45));
}

/* Numbered steps and list dots */
.tp-steps > li::before {
    background: radial-gradient(circle at 30% 22%, #5DADE2 0%, #236FA8 40%, var(--cv-navy) 100%);
    box-shadow: 0 0 0 4px rgba(93, 173, 226, .18), rgba(35, 111, 168, .4) 0 8px 18px, inset 0 1px 1px rgba(255, 255, 255, .5);
}
.tp-steps > li::after { background: linear-gradient(180deg, var(--cv-sky) 0%, var(--cv-line) 100%); }
.tp-list li::before, .score-themes li::before, .track-features li::before, .pkg-list li::before {
    background: linear-gradient(135deg, var(--cv-sky) 0%, var(--cv-link) 100%);
    box-shadow: 0 0 6px rgba(93, 173, 226, .7);
}
.tp-card.navy .tp-list li::before { background: var(--cv-sky); box-shadow: 0 0 8px rgba(93, 173, 226, .9); }

/* ---------------------------------------------------------------------------
   4. Cards: soft blue edge, depth and a lift on hover
--------------------------------------------------------------------------- */
.service-card, .insight-card, .tp-card:not(.navy), .partner-card, .rp-card, .ws-card, .blog-card, .stat-card {
    border-color: var(--cv-line);
    box-shadow: rgba(35, 111, 168, .08) 0 8px 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:not(.featured), .insight-card, .tp-card:not(.navy):not(.tonal), .partner-card, .rp-card, .ws-card, .blog-card, .stat-card {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cv-tint) 100%);
}
.service-card:hover, .insight-card:hover, .tp-card:not(.navy):hover, .partner-card:hover, .rp-card:hover, .ws-card:hover, .blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--cv-sky);
    box-shadow: rgba(35, 111, 168, .2) 0 16px 34px;
}
.service-card.featured { box-shadow: 0 0 0 1px var(--cv-sky), rgba(35, 111, 168, .25) 0 16px 40px; }
.service-card.featured::before { background: linear-gradient(135deg, #CDEBFF 0%, var(--cv-sky) 100%); box-shadow: rgba(93, 173, 226, .5) 0 4px 12px; }

/* Panels that hold facts and tables: glass with a gradient top edge */
.tp-facts, .tp-toc, .tp-table-wrap {
    border-color: #C3D5E8;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
    box-shadow: rgba(35, 111, 168, .12) 0 12px 32px, inset 0 3px 0 0 var(--cv-sky);
}
.tp-table thead th { background: linear-gradient(135deg, var(--cv-navy) 0%, var(--cv-mid) 100%); }

/* Big numbers read as data */
.tp-stat, .stat-value, .tp-facts dd, .tp .tp-facts dd, .tp-price, .tp .tp-price, .service-price {
    background: linear-gradient(90deg, var(--cv-navy) 0%, var(--cv-link) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tp-price span, .service-price .price-gst { -webkit-text-fill-color: var(--text-muted, #6B7280); }

/* ---------------------------------------------------------------------------
   5. Sections and hero
--------------------------------------------------------------------------- */
.tp-alt {
    background-color: #F1F7FD;
    background-image: radial-gradient(rgba(10, 30, 63, .07) 1px, transparent 1.6px), linear-gradient(180deg, #F5F9FE 0%, #ECF4FC 100%);
    background-size: 18px 18px, 100% 100%;
    border-color: #DCE7F3;
}
.hero-badge, .ca-tag {
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: rgba(35, 111, 168, .2) 0 6px 18px;
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    backdrop-filter: blur(10px) saturate(160%);
}

/* Static dot-grid over the hero mesh. ca-visual.js swaps it for a moving one on key pages. */
.ca-mesh::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 620px;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(35, 111, 168, .22) 1px, transparent 1.6px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
}
.ca-mesh.cv-live::after { display: none; }
.ca-mesh > canvas.ca-dots {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 620px;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
}
@media (max-width: 767px) {
    .ca-mesh::after, .ca-mesh > canvas.ca-dots { height: 460px; }
}

/* Footer: a soft glow and the dot motif */
footer, .site-footer {
    background-image: radial-gradient(50% 90% at 100% 0%, rgba(93, 173, 226, .16) 0%, rgba(93, 173, 226, 0) 60%),
                      radial-gradient(rgba(93, 173, 226, .09) 1px, transparent 1.6px);
    background-size: 100% 100%, 18px 18px;
}

/* ---------------------------------------------------------------------------
   6. Readability fixes for older pages (existing bugs, fixed here so the page files stay untouched)
--------------------------------------------------------------------------- */
/* Blog index: the shared blog stylesheet coloured the button text blue on a navy button. */
.blog-card .read-more, .blog-card .read-more:hover { color: #fff; }
/* Links hub: card titles had no colour of their own, so they fell back to the browser's default link blue on navy. */
a.card .card-name { color: #fff; }
a.card:hover .card-name { color: var(--cv-ice); }

/* ---------------------------------------------------------------------------
   7. Homepage (index.html)

   The homepage loads this stylesheet but NOT ca-visual.js.

   THE FENCE: the animated block, #show (hero, Who we are, Track record, An agent at work,
   What it is worth), its dot field and its two buttons must look exactly as they do without
   this file. Any selector in this file that could match an element inside #show must end in
   :not(:where(#show *)). Today that is .btn-ghost-light (section 1) and .btn under reduced
   motion (section 8). The menu button's glow is also trimmed so it stays inside the menu bar.
   Nothing below styles anything inside #show: these classes are only used underneath it.
--------------------------------------------------------------------------- */
/* The menu button's glow is kept inside the menu bar here, so it cannot spill onto the animated block below it */
.hw-home .nav-cta { box-shadow: rgba(35, 111, 168, .3) 0 4px 10px, inset 0 1px 0 rgba(255, 255, 255, .18); }
.hw-home .nav-cta:hover { box-shadow: rgba(35, 111, 168, .45) 0 4px 11px, inset 0 1px 0 rgba(255, 255, 255, .22); }

/* Cards: opportunities and agents */
.hw-card {
    border-color: var(--cv-line);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cv-tint) 100%);
    box-shadow: rgba(35, 111, 168, .08) 0 8px 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hw-card:hover {
    transform: translateY(-3px);
    border-color: var(--cv-sky);
    box-shadow: rgba(35, 111, 168, .2) 0 16px 34px;
}
/* Rank numbers and step numbers: glowing orbs */
.hw-rank, .hw-step::before, .hw-ladder .hw-n {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    letter-spacing: 0;
    background: radial-gradient(circle at 30% 22%, #5DADE2 0%, #236FA8 40%, var(--cv-navy) 100%);
    box-shadow: 0 0 0 4px rgba(93, 173, 226, .18), rgba(35, 111, 168, .4) 0 8px 18px, inset 0 1px 1px rgba(255, 255, 255, .5);
}
.hw-step { border-top-color: transparent; border-image: linear-gradient(90deg, var(--cv-navy) 0%, var(--cv-sky) 100%) 1; }
.hw-ladder, .hw-ladder li, .hw-nums { border-color: var(--cv-line); }
/* Big numbers read as data */
.hw-nums b {
    background: linear-gradient(90deg, var(--cv-navy) 0%, var(--cv-link) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Where to start: each step is a card with a price pill and an arrow, so it reads as clickable */
.hw-ladder li {
    border-color: var(--cv-line);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cv-tint) 100%);
    box-shadow: rgba(35, 111, 168, .08) 0 8px 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hw-ladder li:hover {
    transform: translateY(-3px);
    border-color: var(--cv-sky);
    box-shadow: rgba(35, 111, 168, .2) 0 16px 34px;
}
.hw-price {
    padding: 6px 14px;
    border-radius: 9999px;
    background: #EEF6FC;
    border: 1px solid var(--cv-line);
    color: var(--cv-navy);
    font-size: .9375rem;
}
.hw-go { border-color: var(--cv-line); transition: background .18s ease, color .18s ease, border-color .18s ease; }
.hw-go svg { transition: transform .18s ease; }
.hw-ladder li:hover .hw-go {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cv-navy) 0%, var(--cv-link) 100%);
    box-shadow: rgba(35, 111, 168, .35) 0 6px 14px;
}
.hw-ladder li:hover .hw-go svg { transform: translateX(2px); }
/* Tinted bands: faint dot-grid */
.hw-section--alt, .hw-band {
    background-color: #F1F7FD;
    background-image: radial-gradient(rgba(10, 30, 63, .07) 1px, transparent 1.6px), linear-gradient(180deg, #F5F9FE 0%, #ECF4FC 100%);
    background-size: 18px 18px, 100% 100%;
}
/* The Delivery Register strip: a navy panel like the others */
.hw-register {
    background-color: var(--cv-navy);
    background-image:
        radial-gradient(60% 120% at 88% -20%, rgba(93, 173, 226, .40) 0%, rgba(93, 173, 226, 0) 60%),
        radial-gradient(55% 110% at 8% 125%, rgba(35, 111, 168, .58) 0%, rgba(35, 111, 168, 0) 62%),
        radial-gradient(rgba(93, 173, 226, .14) 1px, transparent 1.6px),
        linear-gradient(135deg, var(--cv-deep) 0%, var(--cv-navy) 55%, #10305E 100%);
    background-size: 170% 170%, 170% 170%, 18px 18px, 100% 100%;
    box-shadow: rgba(10, 30, 63, .28) 0 16px 36px;
}
/* FAQs: glass rows with a sky edge when open */
.hw-faqs details {
    border: 1px solid var(--cv-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    box-shadow: rgba(35, 111, 168, .08) 0 8px 24px;
    padding: 0 22px;
    margin-bottom: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.hw-faqs details:hover { border-color: var(--cv-sky); }
.hw-faqs details[open] {
    border-color: #C3D5E8;
    box-shadow: rgba(35, 111, 168, .14) 0 12px 30px, inset 0 3px 0 0 var(--cv-sky);
}
.hw-faqs summary::after {
    top: 50%;
    right: 0;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.125rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--cv-navy) 0%, var(--cv-mid) 100%);
    box-shadow: var(--cv-glow) 0 6px 14px;
}
/* Contact form: a glass panel with a sky top edge, and a soft glow on the field in use */
.contact-form-wrap.hw-contact {
    border-color: #C3D5E8;
    background: rgba(255, 255, 255, .86);
    box-shadow: rgba(35, 111, 168, .12) 0 12px 32px, inset 0 3px 0 0 var(--cv-sky);
}
.hw-contact .hw-fld input:focus-visible, .hw-contact .hw-fld textarea:focus-visible {
    box-shadow: 0 0 0 4px rgba(93, 173, 226, .22);
}

/* ---------------------------------------------------------------------------
   8. Reduced motion
--------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .final-cta, .tp-cta, section.cta, .cta-section, .agent-builder, .tp-card.navy, .founder-story .cta-box { animation: none; }
    .btn-solid, .btn-light, .btn-secondary, .btn-line, .nav-cta, .cta-button, .read-more,
    .service-card, .insight-card, .tp-card, .partner-card, .rp-card, .ws-card, .blog-card,
    .hw-card, .hw-faqs details, .hw-ladder li, .hw-go, .hw-go svg { transition: none; transform: none; }
    .btn-solid:hover, .btn-light:hover, .btn-secondary:hover, .btn-line:hover, .nav-cta:hover,
    .service-card:hover, .insight-card:hover, .tp-card:hover, .partner-card:hover, .rp-card:hover, .ws-card:hover, .blog-card:hover,
    .hw-card:hover, .hw-ladder li:hover, .hw-ladder li:hover .hw-go svg { transform: none; }
    /* .btn is listed on its own so it can skip the homepage's animated block */
    .btn:not(:where(#show *)) { transition: none; transform: none; }
    .btn:not(:where(#show *)):hover { transform: none; }
}
