/* BELLATRIX design tokens (new-page-designs). Ported from the Claude Design system export
   ds/automate-the-planet-design-system-*/tokens/{colors,typography,spacing,effects}.css + brands/bellatrix.css.
   Loaded ONLY on pages built from the new designs (homepage v2, /features/ai-agent/) via BaseLayout's head slot.
   Not ported: tokens/fonts.css (Nunito is already self-hosted by /css/fonts.css) and tokens/base.css (element
   resets — they would restyle the transplanted header/footer; the bx2- components style their own elements).
   The --bx-* and remapped semantic tokens apply inside [data-brand="bellatrix"] (set on each bx2 section). */

/* ---- tokens/colors.css ---- */
/* Automate The Planet — color tokens. Values lifted from thrive-combined.css + prose-overrides.css */
:root{
/* Brand navy scale */
--atp-navy-950:#0c234c;   /* hero panel fallback rgb(12,35,76) */
--atp-navy-900:#14234c;   /* page background (dark theme --accent-color) */
--atp-navy-850:#14244d;   /* search button rgb(20,36,77) */
--atp-navy-700:#274492;   /* brand blue — footer, light links, pale-button text */
--atp-navy-600:#374773;   /* inactive tab (dark) */
--atp-blue-hover:#002895; /* blue button hover / light link hover */
--atp-navy-deep:#1a3370;
/* Sky / light blues */
--atp-sky-50:#def1f7;     /* header bar + body frame rgb(222,241,247) */
--atp-sky-400:#52b9ff;    /* feature-link tile (dark), roadmap (light) */
--atp-lavender-100:#dbe1f0;/* light inactive tab, hover glow */
--atp-lavender-200:#d4dae9;/* pale button bg */
--atp-lavender-300:#c4cad9;/* pale button hover */
--atp-lavender-400:#bec6da;
--atp-search-bg:#f5f8ff;
/* Accent — action red */
--atp-red-500:#ff473f;    /* primary CTA */
--atp-red-600:#ff2d12;    /* primary CTA hover */
--atp-red-700:#e03530;    /* download-source hover */
/* Accent — cyan links */
--atp-cyan-600:#00aed3;   /* hyperlinks (dark theme), TOC anchors */
--atp-cyan-500:#00c4ed;   /* TOC hover */
--atp-cyan-400:#22d3ee;   /* blog prose links */
--atp-cyan-300:#67e8f9;   /* prose link hover, table first column */
--atp-cyan-700:#0891b2;   /* table header, "pros" column */
--atp-cyan-800:#0e7490;
--atp-cyan-ink:#0e4f72;   /* links inside note boxes */
/* Ribbon blue (blog card category tag) */
--atp-ribbon:#008fff;
/* Secondary accents */
--atp-teal-400:#4ec9b0;   /* roadmap completed */
--atp-teal-600:#33a68f;   /* definition box */
--atp-amber-600:#c98600;  /* note box */
--atp-violet-600:#7c3aed; /* "cons" column */
--atp-yellow:#f5d10b;     /* theme toggle ring + glyph (sampled from production screenshot) */
/* Neutrals */
--atp-white:#fff;
--atp-black:#000;
--atp-gray-100:#f7f7f7;   /* code block bg */
--atp-gray-150:#f3f3f5;   /* related-card bg */
--atp-gray-300:#ccc;
--atp-gray-400:#c8c8c8;   /* paragraph (dark theme) */
--atp-gray-500:#7b839a;   /* "darkgray" — logo text, footer small */
--atp-gray-600:#61687c;   /* paragraph (light theme), nav links, code fg */
--atp-gray-ink:#3c3c3c;
/* Slate (newsletter popup / mermaid) */
--atp-slate-950:#0f1a2e;--atp-slate-900:#162033;--atp-slate-800:#1e3050;
--atp-slate-600:#475569;--atp-slate-500:#64748b;--atp-slate-400:#94a3b8;--atp-slate-200:#e2e8f0;
--atp-sky-popup:#38bdf8;
/* Social */
--atp-youtube:#f15a4b;--atp-twitter:#43bdef;--atp-linkedin:#0077b5;
/* Status */
--atp-error:#dc3232;

/* ---- Semantic (dark theme = site default) ---- */
--surface-page:var(--atp-navy-900);
--surface-hero:var(--atp-navy-950);
--surface-frame:var(--atp-sky-50);
--surface-header:var(--atp-sky-50);
--surface-footer:var(--atp-navy-700);
--surface-card:var(--atp-gray-150);
--surface-panel-light:var(--atp-white);
--surface-roadmap:var(--atp-sky-50);
--surface-feature-link:var(--atp-sky-400);
--surface-code:var(--atp-gray-100);
--surface-tab:var(--atp-navy-600);
--surface-tab-active:transparent;
--text-heading:var(--atp-white);
--text-body:var(--atp-gray-400);
--text-muted:var(--atp-gray-500);
--text-on-dark:var(--atp-white);
--text-on-light:var(--atp-black);
--text-feature-link:var(--atp-white);
--text-tab:var(--atp-cyan-600);
--text-tab-active:var(--atp-gray-500);
--link:var(--atp-cyan-600);
--link-hover:var(--atp-white);
--link-prose:var(--atp-cyan-400);
--link-prose-hover:var(--atp-cyan-300);
--border-default:var(--atp-white);
--border-tab-active:var(--atp-cyan-600);
--roadmap-completed:var(--atp-teal-400);
--action-primary:var(--atp-red-500);
--action-primary-hover:var(--atp-red-600);
--action-pale:var(--atp-lavender-200);
--action-pale-hover:var(--atp-lavender-300);
--action-pale-text:var(--atp-navy-700);
}
/* Light theme — mirrors body.light in the source */
.light{
--surface-page:var(--atp-white);
--surface-roadmap:var(--atp-sky-400);
--surface-feature-link:var(--atp-sky-50);
--surface-tab:var(--atp-lavender-100);
--surface-tab-active:var(--atp-white);
--text-heading:var(--atp-navy-900);
--text-body:var(--atp-gray-600);
--text-feature-link:var(--atp-black);
--text-tab:var(--atp-navy-700);
--text-tab-active:var(--atp-gray-600);
--link:var(--atp-navy-700);
--link-hover:var(--atp-blue-hover);
--border-default:var(--atp-gray-300);
--border-tab-active:var(--atp-navy-700);
--roadmap-completed:var(--atp-white);
}

/* ---- tokens/typography.css ---- */
/* Type tokens — Nunito everywhere; sizes from #page-content / #page-heading rules (desktop ≥64em) and .blog-prose */
:root{
--font-sans:'Nunito',sans-serif;
--font-mono:Consolas,Monaco,'Courier New',monospace;
--font-legacy:Arial,sans-serif; /* body fallback + breadcrumb in transplanted Thrive pages */
--fw-light:300; /* @kind font */
--fw-regular:400; /* @kind font */
--fw-semibold:600; /* @kind font */
--fw-bold:700; /* @kind font */
/* Display / headings (marketing pages, weight 400) */
--fs-display:3.75rem;  --lh-display:4.05rem; /* @kind font */   /* hero h1 60/64.8 */
--fs-h1:3.4375rem;     --lh-h1:3.75rem; /* @kind font */        /* 55/60 tablet h1 */
--fs-h2:2.75rem;       --lh-h2:3.1rem; /* @kind font */         /* 44/49.6 section title */
--fs-h2-lg:3.125rem;   --lh-h2-lg:3.5rem; /* @kind font */      /* 50/56 #page-content h2 */
--fs-h3:1.875rem;      --lh-h3:2.25rem; /* @kind font */        /* 30/36 */
--fs-h4:1.625rem;      --lh-h4:2.25rem; /* @kind font */        /* 26/36 subtitle */
--fs-h5:1.375rem;      --lh-h5:1.8rem; /* @kind font */         /* 22/28.8 */
--fs-h6:1.25rem;       --lh-h6:1.8rem; /* @kind font */         /* 20/28.8 */
/* Body */
--fs-body:1rem;        --lh-body:1.5; /* @kind font */          /* 16/24 */
--fs-body-lg:1.125rem; --lh-body-lg:1.6875rem; /* @kind font */ /* 18/27 nav, footer, sidebar */
--fs-prose:18px;       --lh-prose:1.8em; /* @kind font */       /* blog article body */
--fs-prose-h2:24px;    --fs-prose-h3:20px;     --lh-prose-h:1.4em; /* @kind font */
--fs-small:14px;       --fs-xs:13px;           --fs-tag:12px;
--fs-callout-title:28px;
/* Buttons */
--fs-button:1.125rem;  --ls-button:-.5px; /* @kind font */
/* Semantic */
--type-heading-family:var(--font-sans);
--type-body-family:var(--font-sans);
}

/* ---- tokens/spacing.css ---- */
/* Spacing + layout — rem utilities from the Thrive/BELLATRIX theme (.padded-40, .side-30, .padding-15 …) */
:root{
--space-1:.25rem;  /* 4  */
--space-2:.5rem;   /* 8  */
--space-3:.625rem; /* 10 padding-15 (mobile) */
--space-4:1rem;    /* 16 padding-15 */
--space-5:1.25rem; /* 20 side-30 */
--space-6:1.5rem;  /* 24 button x-pad, p margin */
--space-8:2rem;    /* 32 padding-30 */
--space-10:2.5rem; /* 40 padded-40 / bottom-40 */
--space-12:3rem;   /* 48 padded-60 */
--space-16:4rem;   /* 64 h2 top pad, roadmap block indent */
--space-20:5rem;   /* 80 padding-80 */
--frame-padding:31px;   /* light-blue body frame around the navy page (desktop) */
--frame-padding-mobile:12px;
--header-height:6rem;   /* 96px (5rem below 48em) */
--container-pad:5%;
--layout-content:1080px;
--layout-wide:1580px;
--grid-gap-cards:30px;  /* category grid gutter */
--grid-gap-related:40px;
}

/* ---- tokens/effects.css ---- */
/* Radii, shadows, motion */
:root{
--radius-none:0;
--radius-sm:3px;      /* inline code */
--radius-img:4px;     /* prose images */
--radius-md:8px;      /* code blocks, popup panel, mermaid */
--radius-lg:12px;     /* integration logo tiles */
--radius-tab:1rem 1rem 0 0;
--radius-pill:1.625rem; /* 26px — every button */
--radius-full:100px;  /* search input */
--shadow-submenu:0 0 5px rgba(0,0,0,.3);
--shadow-card-soft:0 0 10px rgba(0,0,0,.1);
--shadow-glow:0 0 20px #dbe1f0;   /* feature-link hover */
--shadow-logo:0 2px 6px rgba(0,0,0,.18);
--shadow-modal:0 24px 80px rgba(0,0,0,.5);
--shadow-ribbon-fold:rgba(0,0,0,.3) 0 13px 11px 0 inset;
--overlay-scrim:rgba(0,0,0,.6); /* @kind other */
--image-protection:linear-gradient(rgba(0,0,0,0) 0%,rgba(0,0,0,.5) 100%); /* @kind other */
--ease-out-spring:cubic-bezier(0,0,.15,1.25); /* @kind other */
--dur-fast:.2s; /* @kind other */--dur-base:.3s; /* @kind other */--dur-slow:.5s; /* @kind other */
--transition-button:background-color .5s ease 0s; /* @kind other */
--transition-link:background-color .5s linear 0s,color .5s linear 0s; /* @kind other */
--transition-underline:all .3s ease-in-out 0s; /* @kind other */
}

/* ---- tokens/brands/bellatrix.css ---- */
/* BELLATRIX product layer — DELTAS ONLY on top of the ATP tokens. Wrap any BELLATRIX surface in
   <div data-brand="bellatrix">. Sources: Bellatrix-Website-v2 public/css/bellatrix-combined.css (theme)
   + public/css/site.css (a11y overrides — these WIN). Light-only (dark theme planned post-launch).
   Palette, Nunito and breakpoints (35.5/48/64/80/102em) are inherited from ATP unchanged. */
[data-brand="bellatrix"]{
/* --- Primitives that only exist in BELLATRIX --- */
--bx-amber:#ed9d13;          /* Note box (ATP Note is #c98600) */
--bx-yellow:#f4aa16;         /* theme .yellow, logo sparkle */
--bx-logo-blush:#ff7676;     /* logo planet ring */
--bx-red-a11y:#e0302a;       /* site.css: solid red buttons (white text 4.5:1) */
--bx-ink-link:#0b1430;       /* site.css: links inside running text / footer small */
--bx-gray-hero:#9aa1b5;      /* site.css: h4 + .text-darkgray on the #14234c home hero */
--bx-gray-tech:#8294c3;      /* tech table cell text */
--bx-gray-nav-current:#777;  /* #page-nav current item */
--bx-gray-100:#f3f3f3;       /* .lightergray (integrations band) */
--bx-gray-200:#e6ebed;       /* resources band, search result rule */
--bx-gray-eee:#eee;          /* dropdown item hover */
--bx-hero-default:#7b839a;   /* #page-heading default */
--bx-hero-feature:#3d917d;   /* .single-features #page-heading */
--bx-hero-post:#4ec9b0;      /* .single-post #page-heading */
--bx-hero-roadmap:#52b9ff;   /* .single-roadmap #page-heading */
--bx-hero-search:#def1f7;    /* /search/ heading band */
--bx-input-line:#c8c8d2;     /* underline inputs */
--bx-input-focus:#002895;
--bx-placeholder:#b8bbc6;
--bx-search-border:#c8c8c8;
--bx-mark:#fff3b0;           /* search excerpt highlight */
--bx-star:#f8d72e;           /* Capterra stars */
--bx-tab-dark:#374773;       /* home tech tabs (inactive) */
--bx-cyan-tab:#00aed3;       /* home tech tabs (text / active rule) */
/* Code tokens (site.css darkened Rouge colours, all >= 4.6:1 on #f7f7f7) */
--bx-code-comment:#6e6e6e;--bx-code-keyword:#3474a0;--bx-code-number:#3473a4;--bx-code-string:#98640c;
--bx-code-builtin:#1f7a85;--bx-code-class:#007f65;--bx-code-var:#1f7a7a;--bx-code-decorator:#996300;--bx-code-namespace:#3c70b6;
/* Radii */
--bx-radius-input:.25rem;    /* search input, badge-ish */
--bx-radius-md:.5rem;
--bx-radius-top-md:.75rem .75rem 0 0;  /* tech table header cell */
--bx-radius-bottom-md:0 0 .75rem .75rem;
--bx-radius-chip:1.25rem;    /* search filter chips */
--bx-radius-badge:.2rem;
--bx-radius-dropdown:4px;    /* hero Download collapsible */
/* Shadows */
--bx-shadow-nav:0 0 10px rgba(0,0,0,.1);       /* #page-nav.white */
--bx-shadow-submenu:0 0 5px rgba(0,0,0,.3);    /* header sub-menu */
--bx-shadow-dropdown:rgba(0,0,0,.1) 0 5px 11px; /* Download collapsible */
--bx-shadow-feature-hover:0 0 20px #dbe1f0;

/* --- Scoped re-mapping of ATP tokens so ATP components render the BELLATRIX way --- */
--atp-red-500:var(--bx-red-a11y); /* Button primary -> darker red (hover stays #ff2d12) */
--atp-amber-600:var(--bx-amber);  /* Callout note */
--atp-teal-600:#4ec9b0;           /* Callout definition */
--surface-page:#fff;
--surface-frame:#fff;             /* no #def1f7 frame band */
--surface-header:transparent;
--surface-hero:#14234c;
--surface-footer:#274492;
--surface-card:#fff;
--surface-tab:#dbe1f0;
--surface-tab-active:#fff;
--surface-code:#f7f7f7;
--text-heading:#14234c;
--text-body:#61687c;
--text-muted:#61687c;             /* site.css: #7b839a -> #61687c for AA */
--text-tab:#274492;
--text-tab-active:#61687c;
--link:#274492;
--link-hover:#002895;
--link-prose:#0b1430;
--link-prose-hover:#274492;
--border-default:#c8c8c8;
--border-tab-active:#274492;
--roadmap-completed:#4ec9b0;
--action-primary:var(--bx-red-a11y);
--action-primary-hover:#ff2d12;
background:var(--surface-page);color:var(--text-body);font-family:var(--font-sans);
}
