/* Automate The Planet design tokens (new page designs, 2026).
   Ported from the ATP design system: tokens/colors.css, spacing.css, typography.css, effects.css.
   Loaded ONLY on pages that pass designTokens to BaseLayout. Nunito comes from /css/fonts.css (identical files).
   Light theme: the design system's `.light` scope matches the site's body.light toggle. */
/* 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);
}
/* 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;
}
/* 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);
}
/* 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 */
}

/* ---- Scoped base for new pages (from tokens/base.css, limited to .atp2 so Thrive pages are untouched) ---- */
.atp2{font-family:var(--font-sans);font-size:var(--fs-body);line-height:var(--lh-body);color:var(--text-body);background:var(--surface-page);-webkit-font-smoothing:antialiased}
.atp2 *,.atp2 *::before,.atp2 *::after{box-sizing:border-box}
.atp2 :where(h1,h2,h3,h4,h5,h6){font-family:var(--font-sans);font-weight:var(--fw-regular);color:var(--text-heading);margin:0;padding:0;letter-spacing:normal;text-transform:none}
.atp2 :where(p,figure,blockquote,dl,dd){margin:0}
.atp2 :where(ul,ol){margin:0;padding:0}
.atp2 :where(a){color:var(--link);text-decoration:none;transition:var(--transition-link)}
.atp2 :where(a:hover){color:var(--link-hover)}
.atp2 :where(img,video,svg){max-width:100%}
.atp2 :where(button){font:inherit}

/* ---- Page frame: most designs keep the site's 31px light-blue frame (Thrive body padding); Home v2 is full-bleed ---- */
body.atp2-body{background:var(--surface-header)}
body.atp2-bleed{padding:0!important}
/* the framed designs keep 31px at every width (Thrive drops to 12px + top padding on mobile) */
body.atp2-framed{padding:0 31px 31px!important}
.atp2-header-spacer{height:var(--header-height);background:var(--surface-header)}
/* the design header is 96px at every width (the transplanted one is 82px on mobile): spacer keeps the design offset */
/* Shared animation gate: blocks marked data-atp2-anim run their keyframes once .is-in is set */
.atp2 [data-atp2-anim]:not(.is-in) *{animation-play-state:paused!important}
/* reduced motion: no animation at all (as the designs do); elements show their static styles */
@media (prefers-reduced-motion:reduce){
  .atp2 *,.atp2 *::before,.atp2 *::after{animation:none!important;transition-duration:0s!important}
}
/* Transplanted Header/Footer on the frameless new pages: keep the design's 5% side gutter */
body.atp2-bleed #header{padding-left:5%!important;padding-right:5%!important}
body.atp2-bleed #footer{padding-left:5%!important;padding-right:5%!important}

/* Heading colours at the source: Thrive forces `h2,h3,.h3{color:var(--headings-color)!important}` (navy in body.light).
   Inside the new pages that variable resolves to the design's heading token (white on dark, navy on light) ... */
.atp2{--headings-color:var(--text-heading)}
/* ... and to white in sections that stay dark in both themes (blue/navy bands, film and CTA sections). */
.atp2 .atp2-on-dark{--headings-color:#fff}
