/* ==========================================================================
   PibyThree — Global Typography System
   --------------------------------------------------------------------------
   Single source of truth for fonts and text styles across the website.

   - Font: Satoshi ONLY, for everything (official Fontshare CDN, woff2 + font-display:swap, in
     header.php and the standalone SNPL pages). System fonts below are just a
     safety net while Satoshi downloads or if the font CDN is unreachable.
   - All sizes are fluid: they scale smoothly with the viewport using clamp(),
     so text adapts from mobile to large desktop screens without breakpoints.
   - Change a token in :root and it updates everywhere.

   Load order: this file is loaded LAST in <head> (header.php) so that the
   base tag styles below act as the site-wide default. Component/page CSS
   that targets a class (e.g. ".hero h1") still wins, as it should.
   ========================================================================== */

:root {
  /* ---------- Font families ---------- */
  /* One font for the whole site: body, headings, header, footer, forms, buttons */
  --font-primary: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-primary);
  --font-heading: var(--font-primary);
  --font-body: var(--font-primary);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* ---------- Font weights ---------- */
  --fw-thin: 100;
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* ---------- Fluid type scale (min @ ~360px → max @ ~1920px) ---------- */
  --fs-2xs: clamp(0.6875rem, 0.66rem + 0.1vw, 0.75rem);   /* 11 → 12px */
  --fs-xs:  clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);  /* 12 → 13px */
  --fs-sm:  clamp(0.8125rem, 0.77rem + 0.15vw, 0.9375rem);/* 13 → 15px */
  --fs-base: clamp(0.875rem, 0.8rem + 0.2vw, 1.0625rem);  /* 14 → 17px */
  --fs-md:  clamp(1rem, 0.92rem + 0.3vw, 1.25rem);        /* 16 → 20px */
  --fs-lg:  clamp(1.125rem, 1rem + 0.45vw, 1.5rem);       /* 18 → 24px */
  --fs-xl:  clamp(1.25rem, 1.06rem + 0.7vw, 1.875rem);    /* 20 → 30px */
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.375rem);      /* 24 → 38px */
  --fs-3xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.875rem);     /* 28 → 46px */
  --fs-4xl: clamp(2rem, 1.4rem + 2.2vw, 3.5rem);          /* 32 → 56px */
  --fs-5xl: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem);        /* 40 → 72px */

  /* Semantic sizes (use these in components) */
  --fs-h1: var(--fs-4xl);
  --fs-h2: var(--fs-3xl);
  --fs-h3: var(--fs-2xl);
  --fs-h4: var(--fs-xl);
  --fs-h5: var(--fs-lg);
  --fs-h6: var(--fs-md);
  --fs-body: var(--fs-base);
  --fs-small: var(--fs-sm);
  --fs-caption: var(--fs-xs);

  /* ---------- Line heights ---------- */
  --lh-none: 1;
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  /* ---------- Letter spacing ---------- */
  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.02em;
  --ls-wider: 0.08em;

  /* ---------- Text colors (match existing brand) ---------- */
  --color-text: #3f4b4b;
  --color-heading: #1d4b98;
  --color-link: #184b98;
  --color-link-hover: #0a58ca;
  --color-muted: #6c757d;

  /* ---------- Map third-party / legacy font variables to Satoshi ---------- */
  --bs-font-sans-serif: var(--font-primary);           /* Bootstrap 5 */
  --bs-body-font-family: var(--font-primary);
  --global--font-body: var(--font-primary);            /* css/blog/style.css */
  --global--font-heading: var(--font-primary);
}

/* ==========================================================================
   Base / document
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  overflow-wrap: break-word;
}

h1, .h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
h2, .h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
h3, .h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h5, .h5 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h6, .h6 { font-size: var(--fs-h6); font-weight: var(--fw-semibold); line-height: var(--lh-snug); letter-spacing: var(--ls-normal); }

/* ==========================================================================
   Text-level elements
   ========================================================================== */

p {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  overflow-wrap: break-word;
}

a {
  font-family: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

strong, b { font-weight: var(--fw-semibold); }

small, .small { font-size: var(--fs-small); }

mark {
  padding: 0.1em 0.25em;
  border-radius: 0.2em;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

sub, sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }

blockquote {
  font-size: var(--fs-md);
  font-style: italic;
  line-height: var(--lh-relaxed);
}

address {
  font-style: normal;
  line-height: var(--lh-normal);
}

figcaption,
caption {
  font-size: var(--fs-caption);
  color: var(--color-muted);
  line-height: var(--lh-normal);
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol, dl {
  font-size: inherit;
}

li {
  line-height: var(--lh-normal);
}

dt { font-weight: var(--fw-semibold); }

/* ==========================================================================
   Code
   ========================================================================== */

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  line-height: var(--lh-normal);
  overflow-x: auto;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

th {
  font-weight: var(--fw-semibold);
}

/* ==========================================================================
   Forms & buttons — always inherit the site font
   ========================================================================== */

button, input, select, optgroup, textarea,
.btn, .form-control, .form-select, .form-label, .form-check-label {
  font-family: var(--font-body);
}

button, .btn {
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
}

input, select, textarea, .form-control, .form-select {
  font-size: var(--fs-sm);
}

label, .form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

legend {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

::placeholder {
  font-family: var(--font-body);
  opacity: 0.7;
}

/* Bootstrap dropdowns / nav use their own size; keep them on the scale */
.dropdown-menu,
.dropdown-item {
  font-family: var(--font-body);
}

/* ==========================================================================
   Typography utility classes
   ========================================================================== */

/* Sizes */
.text-2xs { font-size: var(--fs-2xs) !important; }
.text-xs  { font-size: var(--fs-xs) !important; }
.text-sm  { font-size: var(--fs-sm) !important; }
.text-base{ font-size: var(--fs-base) !important; }
.text-md  { font-size: var(--fs-md) !important; }
.text-lg  { font-size: var(--fs-lg) !important; }
.text-xl  { font-size: var(--fs-xl) !important; }
.text-2xl { font-size: var(--fs-2xl) !important; }
.text-3xl { font-size: var(--fs-3xl) !important; }
.text-4xl { font-size: var(--fs-4xl) !important; }
.text-5xl { font-size: var(--fs-5xl) !important; }

/* Lead paragraph (Bootstrap .lead made fluid) */
.lead {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
}

/* Line heights */
.leading-tight   { line-height: var(--lh-tight) !important; }
.leading-snug    { line-height: var(--lh-snug) !important; }
.leading-normal  { line-height: var(--lh-normal) !important; }
.leading-relaxed { line-height: var(--lh-relaxed) !important; }

/* Letter spacing */
.tracking-tight  { letter-spacing: var(--ls-tight) !important; }
.tracking-normal { letter-spacing: var(--ls-normal) !important; }
.tracking-wide   { letter-spacing: var(--ls-wide) !important; }
.tracking-wider  { letter-spacing: var(--ls-wider) !important; }

/* Eyebrow / overline label */
.text-eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* Balanced headings, nicer paragraph wrapping (progressive enhancement) */
h1, h2, h3, .text-balance { text-wrap: balance; }
p, .text-pretty { text-wrap: pretty; }

/* ==========================================================================
   Laptop scaling: render 1024-1439px screens like the browser at 75-90% zoom
   --------------------------------------------------------------------------
   Many page sections were designed for wide screens and squeeze or break on
   common laptops at 100% zoom (e.g. 1536px screens with 125% Windows scaling
   give a 1229px-wide page). Scaling the page here gives those sections the
   width they were designed for, exactly as browser zoom 80/90% does.
   Phones/tablets (< 1024px) keep their own responsive layout; wide screens
   (>= 1440px) are unchanged. Scripts that position things from
   getBoundingClientRect must divide by the zoom (see js/hero-pi-fx.js).
   Pages with their own standalone layout opt out with <html class="no-laptop-zoom">
   (Save Now Pay Later + its case studies), so they render at 100% like production.
   ========================================================================== */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.9; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.8; }
}
@media (min-width: 1024px) and (max-width: 1099.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.75; }
}

/* No sideways scrolling: elements that slide in from the left/right (partner pages,
   carousels) start outside the screen and used to widen the page on phones until
   they animated in. <body> is the page's scroll box here, so clip only the x axis. */
body { overflow-x: hidden; }

/* ==========================================================================
   Satoshi lock: one font for the whole site
   Older stylesheets (css/main.css, css/blog/vendor.min.css, css/style.css, page CSS)
   still set Gotham, Montserrat, Open Sans, Plus Jakarta Sans, Unbounded, and even an
   icon font on every "carousel-*" class. This forces Satoshi on every element.
   Icon fonts are left alone: Font Awesome, themify, Flaticon, energia, icomoon.
   Icons drawn with ::before / ::after keep their own font (pseudo-elements are not
   matched here). Code blocks keep the monospace font.
   ========================================================================== */
body,
body *:not(code):not(pre):not(kbd):not(samp):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fat):not([class*="fa-"]):not([class^="ti-"]):not([class*=" ti-"]):not([class*="flaticon"]):not([class*="energia-"]):not([class^="icon-"]):not([class*=" icon-"]) {
  font-family: var(--font-body) !important;
}
/* ==========================================================================
   PibyThree — Global Typography System
   --------------------------------------------------------------------------
   Single source of truth for fonts and text styles across the website.

   - Font: Satoshi ONLY, for everything (official Fontshare CDN, woff2 + font-display:swap, in
     header.php and the standalone SNPL pages). System fonts below are just a
     safety net while Satoshi downloads or if the font CDN is unreachable.
   - All sizes are fluid: they scale smoothly with the viewport using clamp(),
     so text adapts from mobile to large desktop screens without breakpoints.
   - Change a token in :root and it updates everywhere.

   Load order: this file is loaded LAST in <head> (header.php) so that the
   base tag styles below act as the site-wide default. Component/page CSS
   that targets a class (e.g. ".hero h1") still wins, as it should.
   ========================================================================== */

:root {
  /* ---------- Font families ---------- */
  /* One font for the whole site: body, headings, header, footer, forms, buttons */
  --font-primary: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-primary);
  --font-heading: var(--font-primary);
  --font-body: var(--font-primary);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* ---------- Font weights ---------- */
  --fw-thin: 100;
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* ---------- Fluid type scale (min @ ~360px → max @ ~1920px) ---------- */
  --fs-2xs: clamp(0.6875rem, 0.66rem + 0.1vw, 0.75rem);   /* 11 → 12px */
  --fs-xs:  clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);  /* 12 → 13px */
  --fs-sm:  clamp(0.8125rem, 0.77rem + 0.15vw, 0.9375rem);/* 13 → 15px */
  --fs-base: clamp(0.875rem, 0.8rem + 0.2vw, 1.0625rem);  /* 14 → 17px */
  --fs-md:  clamp(1rem, 0.92rem + 0.3vw, 1.25rem);        /* 16 → 20px */
  --fs-lg:  clamp(1.125rem, 1rem + 0.45vw, 1.5rem);       /* 18 → 24px */
  --fs-xl:  clamp(1.25rem, 1.06rem + 0.7vw, 1.875rem);    /* 20 → 30px */
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.375rem);      /* 24 → 38px */
  --fs-3xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.875rem);     /* 28 → 46px */
  --fs-4xl: clamp(2rem, 1.4rem + 2.2vw, 3.5rem);          /* 32 → 56px */
  --fs-5xl: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem);        /* 40 → 72px */

  /* Semantic sizes (use these in components) */
  --fs-h1: var(--fs-4xl);
  --fs-h2: var(--fs-3xl);
  --fs-h3: var(--fs-2xl);
  --fs-h4: var(--fs-xl);
  --fs-h5: var(--fs-lg);
  --fs-h6: var(--fs-md);
  --fs-body: var(--fs-base);
  --fs-small: var(--fs-sm);
  --fs-caption: var(--fs-xs);

  /* ---------- Line heights ---------- */
  --lh-none: 1;
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  /* ---------- Letter spacing ---------- */
  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.02em;
  --ls-wider: 0.08em;

  /* ---------- Text colors (match existing brand) ---------- */
  --color-text: #3f4b4b;
  --color-heading: #1d4b98;
  --color-link: #184b98;
  --color-link-hover: #0a58ca;
  --color-muted: #6c757d;

  /* ---------- Map third-party / legacy font variables to Satoshi ---------- */
  --bs-font-sans-serif: var(--font-primary);           /* Bootstrap 5 */
  --bs-body-font-family: var(--font-primary);
  --global--font-body: var(--font-primary);            /* css/blog/style.css */
  --global--font-heading: var(--font-primary);
}

/* ==========================================================================
   Base / document
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  overflow-wrap: break-word;
}

h1, .h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
h2, .h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
h3, .h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h5, .h5 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h6, .h6 { font-size: var(--fs-h6); font-weight: var(--fw-semibold); line-height: var(--lh-snug); letter-spacing: var(--ls-normal); }

/* ==========================================================================
   Text-level elements
   ========================================================================== */

p {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  overflow-wrap: break-word;
}

a {
  font-family: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

strong, b { font-weight: var(--fw-semibold); }

small, .small { font-size: var(--fs-small); }

mark {
  padding: 0.1em 0.25em;
  border-radius: 0.2em;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

sub, sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }

blockquote {
  font-size: var(--fs-md);
  font-style: italic;
  line-height: var(--lh-relaxed);
}

address {
  font-style: normal;
  line-height: var(--lh-normal);
}

figcaption,
caption {
  font-size: var(--fs-caption);
  color: var(--color-muted);
  line-height: var(--lh-normal);
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol, dl {
  font-size: inherit;
}

li {
  line-height: var(--lh-normal);
}

dt { font-weight: var(--fw-semibold); }

/* ==========================================================================
   Code
   ========================================================================== */

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  line-height: var(--lh-normal);
  overflow-x: auto;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

th {
  font-weight: var(--fw-semibold);
}

/* ==========================================================================
   Forms & buttons — always inherit the site font
   ========================================================================== */

button, input, select, optgroup, textarea,
.btn, .form-control, .form-select, .form-label, .form-check-label {
  font-family: var(--font-body);
}

button, .btn {
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
}

input, select, textarea, .form-control, .form-select {
  font-size: var(--fs-sm);
}

label, .form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

legend {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

::placeholder {
  font-family: var(--font-body);
  opacity: 0.7;
}

/* Bootstrap dropdowns / nav use their own size; keep them on the scale */
.dropdown-menu,
.dropdown-item {
  font-family: var(--font-body);
}

/* ==========================================================================
   Typography utility classes
   ========================================================================== */

/* Sizes */
.text-2xs { font-size: var(--fs-2xs) !important; }
.text-xs  { font-size: var(--fs-xs) !important; }
.text-sm  { font-size: var(--fs-sm) !important; }
.text-base{ font-size: var(--fs-base) !important; }
.text-md  { font-size: var(--fs-md) !important; }
.text-lg  { font-size: var(--fs-lg) !important; }
.text-xl  { font-size: var(--fs-xl) !important; }
.text-2xl { font-size: var(--fs-2xl) !important; }
.text-3xl { font-size: var(--fs-3xl) !important; }
.text-4xl { font-size: var(--fs-4xl) !important; }
.text-5xl { font-size: var(--fs-5xl) !important; }

/* Lead paragraph (Bootstrap .lead made fluid) */
.lead {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
}

/* Line heights */
.leading-tight   { line-height: var(--lh-tight) !important; }
.leading-snug    { line-height: var(--lh-snug) !important; }
.leading-normal  { line-height: var(--lh-normal) !important; }
.leading-relaxed { line-height: var(--lh-relaxed) !important; }

/* Letter spacing */
.tracking-tight  { letter-spacing: var(--ls-tight) !important; }
.tracking-normal { letter-spacing: var(--ls-normal) !important; }
.tracking-wide   { letter-spacing: var(--ls-wide) !important; }
.tracking-wider  { letter-spacing: var(--ls-wider) !important; }

/* Eyebrow / overline label */
.text-eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* Balanced headings, nicer paragraph wrapping (progressive enhancement) */
h1, h2, h3, .text-balance { text-wrap: balance; }
p, .text-pretty { text-wrap: pretty; }

/* ==========================================================================
   Laptop scaling: render 1024-1439px screens like the browser at 75-90% zoom
   --------------------------------------------------------------------------
   Many page sections were designed for wide screens and squeeze or break on
   common laptops at 100% zoom (e.g. 1536px screens with 125% Windows scaling
   give a 1229px-wide page). Scaling the page here gives those sections the
   width they were designed for, exactly as browser zoom 80/90% does.
   Phones/tablets (< 1024px) keep their own responsive layout; wide screens
   (>= 1440px) are unchanged. Scripts that position things from
   getBoundingClientRect must divide by the zoom (see js/hero-pi-fx.js).
   Pages with their own standalone layout opt out with <html class="no-laptop-zoom">
   (Save Now Pay Later + its case studies), so they render at 100% like production.
   ========================================================================== */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.9; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.8; }
}
@media (min-width: 1024px) and (max-width: 1099.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.75; }
}

/* No sideways scrolling: elements that slide in from the left/right (partner pages,
   carousels) start outside the screen and used to widen the page on phones until
   they animated in. <body> is the page's scroll box here, so clip only the x axis. */
body { overflow-x: hidden; }

/* ==========================================================================
   Satoshi lock: one font for the whole site
   Older stylesheets (css/main.css, css/blog/vendor.min.css, css/style.css, page CSS)
   still set Gotham, Montserrat, Open Sans, Plus Jakarta Sans, Unbounded, and even an
   icon font on every "carousel-*" class. This forces Satoshi on every element.
   Icon fonts are left alone: Font Awesome, themify, Flaticon, energia, icomoon.
   Icons drawn with ::before / ::after keep their own font (pseudo-elements are not
   matched here). Code blocks keep the monospace font.
   ========================================================================== */
body,
body *:not(code):not(pre):not(kbd):not(samp):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fat):not([class*="fa-"]):not([class^="ti-"]):not([class*=" ti-"]):not([class*="flaticon"]):not([class*="energia-"]):not([class^="icon-"]):not([class*=" icon-"]) {
  font-family: var(--font-body) !important;
}
/* ==========================================================================
   PibyThree — Global Typography System
   --------------------------------------------------------------------------
   Single source of truth for fonts and text styles across the website.

   - Font: Satoshi ONLY, for everything (official Fontshare CDN, woff2 + font-display:swap, in
     header.php and the standalone SNPL pages). System fonts below are just a
     safety net while Satoshi downloads or if the font CDN is unreachable.
   - All sizes are fluid: they scale smoothly with the viewport using clamp(),
     so text adapts from mobile to large desktop screens without breakpoints.
   - Change a token in :root and it updates everywhere.

   Load order: this file is loaded LAST in <head> (header.php) so that the
   base tag styles below act as the site-wide default. Component/page CSS
   that targets a class (e.g. ".hero h1") still wins, as it should.
   ========================================================================== */

:root {
  /* ---------- Font families ---------- */
  /* One font for the whole site: body, headings, header, footer, forms, buttons */
  --font-primary: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-primary);
  --font-heading: var(--font-primary);
  --font-body: var(--font-primary);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* ---------- Font weights ---------- */
  --fw-thin: 100;
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* ---------- Fluid type scale (min @ ~360px → max @ ~1920px) ---------- */
  --fs-2xs: clamp(0.6875rem, 0.66rem + 0.1vw, 0.75rem);   /* 11 → 12px */
  --fs-xs:  clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);  /* 12 → 13px */
  --fs-sm:  clamp(0.8125rem, 0.77rem + 0.15vw, 0.9375rem);/* 13 → 15px */
  --fs-base: clamp(0.875rem, 0.8rem + 0.2vw, 1.0625rem);  /* 14 → 17px */
  --fs-md:  clamp(1rem, 0.92rem + 0.3vw, 1.25rem);        /* 16 → 20px */
  --fs-lg:  clamp(1.125rem, 1rem + 0.45vw, 1.5rem);       /* 18 → 24px */
  --fs-xl:  clamp(1.25rem, 1.06rem + 0.7vw, 1.875rem);    /* 20 → 30px */
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.375rem);      /* 24 → 38px */
  --fs-3xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.875rem);     /* 28 → 46px */
  --fs-4xl: clamp(2rem, 1.4rem + 2.2vw, 3.5rem);          /* 32 → 56px */
  --fs-5xl: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem);        /* 40 → 72px */

  /* Semantic sizes (use these in components) */
  --fs-h1: var(--fs-4xl);
  --fs-h2: var(--fs-3xl);
  --fs-h3: var(--fs-2xl);
  --fs-h4: var(--fs-xl);
  --fs-h5: var(--fs-lg);
  --fs-h6: var(--fs-md);
  --fs-body: var(--fs-base);
  --fs-small: var(--fs-sm);
  --fs-caption: var(--fs-xs);

  /* ---------- Line heights ---------- */
  --lh-none: 1;
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  /* ---------- Letter spacing ---------- */
  --ls-tight: -0.02em;
  --ls-snug: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.02em;
  --ls-wider: 0.08em;

  /* ---------- Text colors (match existing brand) ---------- */
  --color-text: #3f4b4b;
  --color-heading: #1d4b98;
  --color-link: #184b98;
  --color-link-hover: #0a58ca;
  --color-muted: #6c757d;

  /* ---------- Map third-party / legacy font variables to Satoshi ---------- */
  --bs-font-sans-serif: var(--font-primary);           /* Bootstrap 5 */
  --bs-body-font-family: var(--font-primary);
  --global--font-body: var(--font-primary);            /* css/blog/style.css */
  --global--font-heading: var(--font-primary);
}

/* ==========================================================================
   Base / document
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  overflow-wrap: break-word;
}

h1, .h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
h2, .h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
h3, .h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h4, .h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h5, .h5 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
h6, .h6 { font-size: var(--fs-h6); font-weight: var(--fw-semibold); line-height: var(--lh-snug); letter-spacing: var(--ls-normal); }

/* ==========================================================================
   Text-level elements
   ========================================================================== */

p {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  overflow-wrap: break-word;
}

a {
  font-family: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

strong, b { font-weight: var(--fw-semibold); }

small, .small { font-size: var(--fs-small); }

mark {
  padding: 0.1em 0.25em;
  border-radius: 0.2em;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

sub, sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub { bottom: -0.25em; }
sup { top: -0.5em; }

blockquote {
  font-size: var(--fs-md);
  font-style: italic;
  line-height: var(--lh-relaxed);
}

address {
  font-style: normal;
  line-height: var(--lh-normal);
}

figcaption,
caption {
  font-size: var(--fs-caption);
  color: var(--color-muted);
  line-height: var(--lh-normal);
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol, dl {
  font-size: inherit;
}

li {
  line-height: var(--lh-normal);
}

dt { font-weight: var(--fw-semibold); }

/* ==========================================================================
   Code
   ========================================================================== */

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  line-height: var(--lh-normal);
  overflow-x: auto;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

th {
  font-weight: var(--fw-semibold);
}

/* ==========================================================================
   Forms & buttons — always inherit the site font
   ========================================================================== */

button, input, select, optgroup, textarea,
.btn, .form-control, .form-select, .form-label, .form-check-label {
  font-family: var(--font-body);
}

button, .btn {
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
}

input, select, textarea, .form-control, .form-select {
  font-size: var(--fs-sm);
}

label, .form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

legend {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

::placeholder {
  font-family: var(--font-body);
  opacity: 0.7;
}

/* Bootstrap dropdowns / nav use their own size; keep them on the scale */
.dropdown-menu,
.dropdown-item {
  font-family: var(--font-body);
}

/* ==========================================================================
   Typography utility classes
   ========================================================================== */

/* Sizes */
.text-2xs { font-size: var(--fs-2xs) !important; }
.text-xs  { font-size: var(--fs-xs) !important; }
.text-sm  { font-size: var(--fs-sm) !important; }
.text-base{ font-size: var(--fs-base) !important; }
.text-md  { font-size: var(--fs-md) !important; }
.text-lg  { font-size: var(--fs-lg) !important; }
.text-xl  { font-size: var(--fs-xl) !important; }
.text-2xl { font-size: var(--fs-2xl) !important; }
.text-3xl { font-size: var(--fs-3xl) !important; }
.text-4xl { font-size: var(--fs-4xl) !important; }
.text-5xl { font-size: var(--fs-5xl) !important; }

/* Lead paragraph (Bootstrap .lead made fluid) */
.lead {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
}

/* Line heights */
.leading-tight   { line-height: var(--lh-tight) !important; }
.leading-snug    { line-height: var(--lh-snug) !important; }
.leading-normal  { line-height: var(--lh-normal) !important; }
.leading-relaxed { line-height: var(--lh-relaxed) !important; }

/* Letter spacing */
.tracking-tight  { letter-spacing: var(--ls-tight) !important; }
.tracking-normal { letter-spacing: var(--ls-normal) !important; }
.tracking-wide   { letter-spacing: var(--ls-wide) !important; }
.tracking-wider  { letter-spacing: var(--ls-wider) !important; }

/* Eyebrow / overline label */
.text-eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* Balanced headings, nicer paragraph wrapping (progressive enhancement) */
h1, h2, h3, .text-balance { text-wrap: balance; }
p, .text-pretty { text-wrap: pretty; }

/* ==========================================================================
   Laptop scaling: render 1024-1439px screens like the browser at 75-90% zoom
   --------------------------------------------------------------------------
   Many page sections were designed for wide screens and squeeze or break on
   common laptops at 100% zoom (e.g. 1536px screens with 125% Windows scaling
   give a 1229px-wide page). Scaling the page here gives those sections the
   width they were designed for, exactly as browser zoom 80/90% does.
   Phones/tablets (< 1024px) keep their own responsive layout; wide screens
   (>= 1440px) are unchanged. Scripts that position things from
   getBoundingClientRect must divide by the zoom (see js/hero-pi-fx.js).
   Pages with their own standalone layout opt out with <html class="no-laptop-zoom">
   (Save Now Pay Later + its case studies), so they render at 100% like production.
   ========================================================================== */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.9; }
}
@media (min-width: 1100px) and (max-width: 1279.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.8; }
}
@media (min-width: 1024px) and (max-width: 1099.98px) {
  html:not(.no-laptop-zoom) { zoom: 0.75; }
}

/* No sideways scrolling: elements that slide in from the left/right (partner pages,
   carousels) start outside the screen and used to widen the page on phones until
   they animated in. <body> is the page's scroll box here, so clip only the x axis. */
body { overflow-x: hidden; }

/* ==========================================================================
   Satoshi lock: one font for the whole site
   Older stylesheets (css/main.css, css/blog/vendor.min.css, css/style.css, page CSS)
   still set Gotham, Montserrat, Open Sans, Plus Jakarta Sans, Unbounded, and even an
   icon font on every "carousel-*" class. This forces Satoshi on every element.
   Icon fonts are left alone: Font Awesome, themify, Flaticon, energia, icomoon.
   Icons drawn with ::before / ::after keep their own font (pseudo-elements are not
   matched here). Code blocks keep the monospace font.
   ========================================================================== */
body,
body *:not(code):not(pre):not(kbd):not(samp):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fat):not([class*="fa-"]):not([class^="ti-"]):not([class*=" ti-"]):not([class*="flaticon"]):not([class*="energia-"]):not([class^="icon-"]):not([class*=" icon-"]) {
  font-family: var(--font-body) !important;
}
