/* Palette 2 (Ajay, 25 Nov 2026): Shadow Grey #2D2D38, Midnight Blue #0B3B2A, International Klein Blue #00573F, Lavender #CBDDD3,
   Lavender Mist #E3EEE8, (orange removed at Ajay's request, 25 Nov 2026). Light: white and lavender with colour carried by gradients, labels, numbers
   and outlines (no boxed colour bands). Dark: deep blue throughout (greys become navy via scripts/navy-theme.mjs, no black or grey).
   Loaded last from BaseLayout. Preview branch edit/palette-2 only. */
@property --pa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --mid: #0B3B2A; --klein: #00573F; --lav: #CBDDD3; --mist: #E3EEE8; --hot: #00573F;
  --pal-flow: linear-gradient(120deg, #0B3B2A, #00573F, #2E8B67, #00573F, #0B3B2A);
  --pal-text: linear-gradient(100deg, #0B3B2A 0%, #00573F 45%, #3FA37C 100%);
  --pal-edge: conic-gradient(from var(--pa), #0B3B2A, #00573F, #6FC29E, #CBDDD3, #00573F, #0B3B2A); }
html:not(.lt) { --pal-text: linear-gradient(100deg, #7FD1AD 0%, #BFE8D3 55%, #E3EEE8 100%); --hot: #7FD1AD; }
@keyframes pa-spin { to { --pa: 360deg; } }
@keyframes pa-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes pa-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3%, 4%, 0) scale(1.08); } }

/* ---------- page colour: one continuous wash, no hard edges ---------- */
html.lt {
  --page: #F4F8F5; --shell: #FFFFFF; --raised: #EDF4F0; --track: #E3EEE8; --selected: #E3EEE8; --active: #CBDDD3;
  --text: #0B3B2A; --text-2: #22493A; --muted: #4E6E61; --faint: #6F8A7F;
  --line: #E3EEE8; --line-2: #D2E3DA; --line-4: #CBDDD3; --accent: #00573F; --green: #00573F;
}
html.lt body { background: linear-gradient(180deg, #FFFFFF 0%, #F1F7F3 18%, #E8F2EC 45%, #F1F7F3 75%, #FFFFFF 100%); }
html:not(.lt) body { background: linear-gradient(180deg, #062A1D 0%, #0A3626 30%, #0D4130 60%, #0A3626 85%, #062A1D 100%); }
/* the hero gets a soft, slowly drifting glow of blue and lavender */
.hero.hv { position: relative; isolation: isolate; }
.hero.hv::before { content: ""; position: absolute; inset: -10% -20% 30%; z-index: -1; pointer-events: none; filter: blur(70px); opacity: .55;
  background: radial-gradient(40% 50% at 30% 30%, rgba(0, 87, 63, .45), transparent 70%), radial-gradient(30% 40% at 75% 25%, rgba(203, 221, 211, .6), transparent 70%), radial-gradient(45% 50% at 60% 70%, rgba(63, 163, 124, .35), transparent 70%);
  animation: pa-float 18s ease-in-out infinite; }
html:not(.lt) .hero.hv::before { opacity: .8; }

/* ---------- type ---------- */
:root:is(.lt, :not(.lt)) h1 .l2, :root:is(.lt, :not(.lt)) h2 .g, :root:is(.lt, :not(.lt)) .hv #h1 .l2 {
  background: var(--pal-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: pa-shift 10s ease infinite; }
/* section labels become small tinted pills */
:root:is(.lt, :not(.lt)) .sec-k { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 4px 12px; border-radius: 999px; font-weight: 500; }
:root:is(.lt, :not(.lt)) .sec-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); }
html.lt .sec-k { background: rgba(0, 87, 63, .08); color: var(--klein); }
html:not(.lt) .sec-k { background: rgba(127, 209, 173, .14); color: #BFE8D3; }
/* card index numbers and stat numbers in Klein blue */
:root:is(.lt, :not(.lt)) .cd-i, :root:is(.lt, :not(.lt)) .hv-t b, :root:is(.lt, :not(.lt)) .hs-n { color: var(--hot); }
:root:is(.lt, :not(.lt)) .hv-st, :root:is(.lt, :not(.lt)) .hs-st { color: var(--hot); fill: var(--hot); }
:root:is(.lt, :not(.lt)) [class*="free"] { background: var(--hot) !important; color: #fff !important; }
:root:is(.lt, :not(.lt)) :focus-visible { outline-color: var(--hot) !important; }
:root:is(.lt, :not(.lt)) .hv-snd { background: var(--hot); color: #fff; }

/* ---------- buttons ---------- */
:root:is(.lt, :not(.lt)) .cta-bar, :root:is(.lt, :not(.lt)) .cta-bar:hover, :root:is(.lt, :not(.lt)) .nav-cta, :root:is(.lt, :not(.lt)) .pi-buy, :root:is(.lt, :not(.lt)) .bk-btn {
  background: var(--pal-flow); background-size: 300% 100%; color: #fff; animation: pa-shift 8s ease infinite; border: 0; box-shadow: 0 10px 30px -12px rgba(0, 87, 63, .6); }
:root:is(.lt, :not(.lt)) .cta-bar svg, :root:is(.lt, :not(.lt)) .nav-cta svg { stroke: #fff; }
:root:is(.lt, :not(.lt)) .cta-bar .cta-t1, :root:is(.lt, :not(.lt)) .cta-bar .cta-t2 { color: #fff; }
:root:is(.lt, :not(.lt)) .av img { border-color: #fff; }
/* secondary buttons, the Partner badge, the hero video and filter pills: an animated gradient outline */
:root:is(.lt, :not(.lt)) .wa, :root:is(.lt, :not(.lt)) .status, :root:is(.lt, :not(.lt)) .gl-fb, :root:is(.lt, :not(.lt)) .hv-v video, :root:is(.lt, :not(.lt)) .pi-ex {
  border: 1.5px solid transparent; background: linear-gradient(var(--shell), var(--shell)) padding-box, var(--pal-edge) border-box; animation: pa-spin 6s linear infinite; }
:root:is(.lt, :not(.lt)) .hv-v video { border-width: 3px; background-color: #0B3B2A; box-shadow: 0 30px 80px -30px rgba(0, 87, 63, .55); }
html.lt .wa { color: var(--mid); }
html:not(.lt) .wa { color: #fff; }

/* ---------- cards: white (or navy) with a soft gradient edge that animates on hover ---------- */
:root:is(.lt, :not(.lt)) .panel, :root:is(.lt, :not(.lt)) .gp, :root:is(.lt, :not(.lt)) .pn, :root:is(.lt, :not(.lt)) .gl-set {
  border: 1px solid transparent; background: linear-gradient(var(--shell), var(--shell)) padding-box, linear-gradient(135deg, rgba(0, 87, 63, .45), var(--line) 40%, var(--line-2) 65%, rgba(111, 194, 158, .4)) border-box; }
:root:is(.lt, :not(.lt)) .gp:hover { background: linear-gradient(var(--shell), var(--shell)) padding-box, var(--pal-edge) border-box; animation: pa-spin 4s linear infinite; }

/* ---------- the logo wall: logos in midnight blue (light) or white (dark), no grey cells ---------- */
html.lt #logos img { filter: brightness(0) invert(18%) sepia(40%) saturate(1100%) hue-rotate(110deg) brightness(80%); opacity: .9; }
html:not(.lt) #logos img { filter: brightness(0) invert(1); opacity: .9; }

/* ---------- the final call to action: the one full-colour panel, a moving blue gradient ---------- */
:root:is(.lt, :not(.lt)) #contact .fc { background: var(--pal-flow); background-size: 300% 300%; animation: pa-shift 14s ease infinite; border: 0; color: #fff; box-shadow: 0 40px 100px -40px rgba(0, 87, 63, .7); }
:root:is(.lt, :not(.lt)) #contact .fc-fr { background: transparent; }
:root:is(.lt, :not(.lt)) .fc .sec-k { background: rgba(255, 255, 255, .14); color: #fff; }
:root:is(.lt, :not(.lt)) .fc h2, :root:is(.lt, :not(.lt)) .fc .sec-sub, :root:is(.lt, :not(.lt)) .fc p { color: #fff; }
:root:is(.lt, :not(.lt)) .fc h2 .g { background: linear-gradient(90deg, #E3EEE8, #FFFFFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root:is(.lt, :not(.lt)) .fc .cta-bar { background: #fff; color: var(--mid); animation: none; }
:root:is(.lt, :not(.lt)) .fc .cta-bar .cta-t1, :root:is(.lt, :not(.lt)) .fc .cta-bar .cta-t2 { color: var(--mid); }
:root:is(.lt, :not(.lt)) .fc .cta-bar svg { stroke: var(--mid); }
:root:is(.lt, :not(.lt)) .fc .wa { background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; animation: none; }
:root:is(.lt, :not(.lt)) #contact .fc-st, :root:is(.lt, :not(.lt)) #contact .fc-st * { color: #fff; border-color: rgba(255, 255, 255, .25); }

@media (prefers-reduced-motion: reduce) { html *, html *::before { animation-duration: 0s !important; } }
:root:is(.lt, :not(.lt)) { --accent: var(--klein); } html:not(.lt) { --accent: #7FD1AD; }

/* no black anywhere (Ajay, 25 Nov 2026): anything still near-black becomes midnight blue */
html.lt { color: var(--text); }
html.lt :is(h1, h2, h3, h4, strong, b) { color: inherit; }
:root:is(.lt, :not(.lt)) video { background-color: #0B3B2A; }
:root:is(.lt, :not(.lt)) .nav-mb { border-color: transparent; }

/* verified ticks in racing green, not Meta blue */
:root:is(.lt, :not(.lt)) .vf-b { fill: #00573F; }
html:not(.lt) .vf-b { fill: #3FA37C; }

/* review cards (Ajay, 25 Nov 2026): no lighter green fill, just a very subtle animated gradient outline */
:root:is(.lt, :not(.lt)) .ts-card, :root:is(.lt, :not(.lt)) .rvc { position: relative; background: transparent; border: 0; }
:root:is(.lt, :not(.lt)) .ts-card::before, :root:is(.lt, :not(.lt)) .rvc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--pa), rgba(0, 87, 63, .55), rgba(203, 221, 211, .25), rgba(63, 163, 124, .5), rgba(203, 221, 211, .25), rgba(0, 87, 63, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: pa-spin 9s linear infinite; }
html:not(.lt) .ts-card::before, html:not(.lt) .rvc::before { background: conic-gradient(from var(--pa), rgba(127, 209, 173, .5), rgba(127, 209, 173, .08), rgba(191, 232, 211, .45), rgba(127, 209, 173, .08), rgba(127, 209, 173, .5)); }
:root:is(.lt, :not(.lt)) .ts-track { background: transparent; }
/* comparison chart ticks: kept here (loaded last) so the generated light and dark twins can't recolour them */
:root:is(.lt, :not(.lt)) .cmp-y .cmp-i { background: #00573F; color: #FFFFFF; }
html:not(.lt) .cmp-y .cmp-i { background: #3FA37C; color: #062A1D; }

/* ---------- Revenue & Profit Scaling Calculator (#calculator): contribution colour, status tints, the WhatsApp button ---------- */
html.lt #calculator .pc-big output[data-sign="-"], html.lt #calculator .pc-status[data-state="bad"] { color: #A3332A; }
html:not(.lt) #calculator .pc-big output[data-sign="-"], html:not(.lt) #calculator .pc-status[data-state="bad"] { color: #FFB1A6; }
html.lt #calculator .pc-status[data-state="bad"] { background: rgba(163, 51, 42, .08); }
html:not(.lt) #calculator .pc-status[data-state="bad"] { background: rgba(255, 177, 166, .12); }
html.lt #calculator .pc-status[data-state="ok"] { background: rgba(0, 87, 63, .10); color: var(--klein); }
html:not(.lt) #calculator .pc-status[data-state="ok"] { background: rgba(127, 209, 173, .16); color: #BFE8D3; }
:root:is(.lt, :not(.lt)) #calculator .pc-btn { background: var(--pal-flow); background-size: 300% 100%; color: #fff; animation: pa-shift 8s ease infinite; box-shadow: 0 10px 30px -12px rgba(0, 87, 63, .6); }
html:not(.lt) .pc-pop { background: #E3EEE8; color: #0B3B2A; }
html:not(.lt) #calculator .pc-hp { background: rgba(127, 209, 173, .10); box-shadow: inset 0 0 0 1px rgba(127, 209, 173, .28); }

/* ---------- homepage Convert / Retain / Scale (#convert, #retain, #scale): text on the accent, and the last Scale step filled ---------- */
html.lt { --on-hot: #FFFFFF; } html:not(.lt) { --on-hot: #0B3B2A; }
:root:is(.lt, :not(.lt)) #scale .gs-step:last-child { background: var(--hot); border-color: transparent; }
:root:is(.lt, :not(.lt)) #scale .gs-step:last-child :is(.gs-n, .gs-t, .gs-p) { color: var(--on-hot); }
:root:is(.lt, :not(.lt)) #scale .gs-step:last-child .gs-p { opacity: .85; }

/* ---------- section labels look like the Shopify Partner badge: white pill, thin animated gradient outline, normal case (Ajay, 26 Nov 2026).
   Both outlines are 1px (the badge was 1.5px; Ajay asked for a slightly lighter stroke on both). ---------- */
:root:is(.lt, :not(.lt)) .status { border-width: 1px; }
:root:is(.lt, :not(.lt)) .sec-k { height: 32px; padding: 0 12px; border: 1px solid transparent; background: linear-gradient(var(--shell), var(--shell)) padding-box, var(--pal-edge) border-box;
  animation: pa-spin 6s linear infinite; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
:root:is(.lt, :not(.lt)) .fc .sec-k { border-color: rgba(255, 255, 255, .5); animation: none; }

/* the win rate footnote in the footer: deliberately faint (Ajay, 26 Nov 2026) */
:root:is(.lt, :not(.lt)) .ft-note { margin: 16px 0 0; font-size: 13px; line-height: 20px; color: var(--faint); opacity: .7; }

/* pause the decorative animations while the page scrolls (public/scripts/calm-scroll.js, Ajay 27 Nov 2026: scroll glitchy) */
html.is-scrolling :is(.sec-k, .status, .wa, .g, .l2, .cta-bar, .nav-cta, .pc-btn, .pi-buy, .bk-btn, .gl-fb, .pi-ex, .ga, .gp, .pn, .panel, #hvVid, .hero.hv), html.is-scrolling :is(.sec-k, .status, .wa, .g, .l2, .cta-bar, .nav-cta, .pc-btn, .pi-buy, .bk-btn, .gl-fb, .pi-ex, .ga, .gp, .pn, .panel, #hvVid, .hero.hv)::before, html.is-scrolling :is(.sec-k, .status, .wa, .g, .l2, .cta-bar, .nav-cta, .pc-btn, .pi-buy, .bk-btn, .gl-fb, .pi-ex, .ga, .gp, .pn, .panel, #hvVid, .hero.hv)::after { animation-play-state: paused !important; }
