/*
 * P3 (session 2): metric-matched fallback for Poppins. Poppins can arrive after the first paint
 * (font-display: swap; from the site since 0.17.0); until then the browser draws Arial scaled to Poppins' width and line metrics,
 * so the hero text keeps its size when Poppins swaps in and nothing below it moves.
 * Values from Poppins and Arial font metrics (capsize): size-adjust 112.16%, ascent 93.62%,
 * descent 31.21%, line gap 8.92%.
 */
@font-face {
	font-family: "Poppins Fallback";
	src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
	font-weight: 100 500;
	font-style: normal;
	size-adjust: 112.16%;
	ascent-override: 93.62%;
	descent-override: 31.21%;
	line-gap-override: 8.92%;
}
@font-face {
	font-family: "Poppins Fallback";
	src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
	font-weight: 600 900;
	font-style: normal;
	size-adjust: 112.16%;
	ascent-override: 93.62%;
	descent-override: 31.21%;
	line-gap-override: 8.92%;
}

/*
 * Pepbox design tokens. Sizes are in px: the theme sets the root font size to 10px, so rem
 * units would shrink everything by 37.5%.
 * Values come from the live site's computed styles (docs/design-tokens.md),
 * with two accessibility additions: a darker orange for orange text (the brand orange is 2:1 on
 * white) and near-black text on orange buttons (white on orange is 2:1 and fails AA).
 */
:root {
	/* Colour */
	--pb-color-primary: #fca61e;
	--pb-color-primary-dark: #e08e0b;
	--pb-color-primary-text: #8f5400;      /* orange text on white or cream: 6.1:1 / 5.1:1 */
	--pb-color-on-primary: #0a0a0a;        /* text on orange: 10:1 */
	--pb-color-cream: #ffe7c1;
	--pb-color-cream-soft: rgba(255, 227, 182, 0.64);
	--pb-color-cream-tint: #fff7e9;
	--pb-color-text: #000;
	--pb-color-text-strong: #171717;
	--pb-color-text-muted: #5f6773;        /* 5.7:1 on white, 4.75:1 on cream */
	--pb-color-heading-alt: #3c4043;
	--pb-color-surface: #fff;
	--pb-color-surface-alt: #f4f4f4;
	--pb-color-border: #e7dfd2;
	--pb-color-border-strong: #767c86;     /* form borders: 4.2:1 */
	--pb-color-dark: #000;
	--pb-color-whatsapp: #25d366;          /* outline only */
	--pb-color-whatsapp-text: #1a7f3c;     /* 5.1:1 on white */
	--pb-color-focus: #0a0a0a;
	--pb-color-placeholder-bg: #fff3d6;
	--pb-color-placeholder-text: #7a4b00;
	--pb-color-ribbon-bg: #fff3d6;         /* staging review ribbon */
	--pb-color-ribbon-text: #5c3a00;       /* 8.9:1 on the ribbon */
	--pb-color-ribbon-border: #f3d48f;
	--pb-color-star: #b86e00;              /* rating star: 3.6:1 as a large glyph */
	--pb-color-line: #f0c27a;              /* timeline line */

	/* Type */
	--pb-font-body: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--pb-font-heading: var(--pb-font-body);
	--pb-font-script: "Charm", "Brush Script MT", cursive;
	--pb-fs-xs: 12px;
	--pb-fs-sm: 14px;
	--pb-fs-base: 16px;
	--pb-fs-lead: clamp(16px, 15.2px + 0.3vw, 18px);
	--pb-fs-h1: clamp(28px, 19.2px + 2.4vw, 40px);
	--pb-fs-h2: clamp(24px, 17.6px + 1.7vw, 36px);
	--pb-fs-h3: clamp(18px, 16.32px + 0.45vw, 22px);
	--pb-fs-eyebrow: clamp(20px, 17.6px + 0.6vw, 25px);
	--pb-lh-body: 1.7;
	--pb-lh-tight: 1.25;
	--pb-fw-regular: 400;
	--pb-fw-medium: 500;
	--pb-fw-semibold: 600;
	--pb-fw-bold: 700;

	/* Space (4, 8, 12, 16, 24, 32, 48, 64, 96) */
	--pb-space-1: 4px;
	--pb-space-2: 8px;
	--pb-space-3: 12px;
	--pb-space-4: 16px;
	--pb-space-5: 24px;
	--pb-space-6: 32px;
	--pb-space-7: 48px;
	--pb-space-8: 64px;
	--pb-space-9: 96px;
	--pb-section-y: clamp(40px, 25.6px + 3.6vw, 72px);
	--pb-section-y-tight: clamp(28px, 20.8px + 1.8vw, 44px);

	/* Layout */
	--pb-container: 1200px;
	--pb-container-narrow: 820px;
	--pb-container-wide: 1300px;
	--pb-gutter: clamp(16px, 9.6px + 1.6vw, 32px);
	--pb-sticky-top: 112px;                /* clears the 95px sticky site header on desktop */
	--pb-sticky-bar-h: 64px;

	/* Shape and depth */
	--pb-radius-btn: 4px;
	--pb-radius-card: 10px;
	--pb-radius-pill: 999px;
	--pb-shadow-card: 0 3px 5px rgba(0, 0, 0, 0.2);
	--pb-shadow-soft: 0 6px 24px rgba(23, 23, 23, 0.08);
	--pb-shadow-lift: 0 14px 40px rgba(23, 23, 23, 0.12);
	--pb-shadow-btn: 0 0 7px rgba(0, 0, 0, 0.5);

	/* Interaction */
	--pb-tap: 44px;
	--pb-btn-h: 48px;
	--pb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--pb-dur: 0.2s;
}
