/**
 * Cup of Air — shared design tokens (typography + spacing)
 * Desktop-first. Load site-wide before page CSS.
 *
 * IMPORTANT: Helix/template sets html { font-size: 14px }.
 * Tokens use absolute px (not rem) so sizes don’t shrink under that root.
 *
 * Scale anchored on body (--coa-text-md: 18px):
 *   xs   14px  — badges / micro
 *   sm   16px  — captions, footnotes
 *   md   18px  — body
 *   lg   21px  — leads, subtitles
 *   xl   26px  — H3 / card titles (~1.44× body)
 *   2xl  32–42px — section / stage headings (~1.8–2.3×)
 *   3xl  36–48px — CTA / large section
 *   display 42–60px — hero (fluid + hard max)
 */

:root {
	--coa-text-xs: 14px;
	--coa-text-sm: 16px;
	--coa-text-md: 18px;
	--coa-text-lg: 21px;
	--coa-text-xl: 26px;
	--coa-text-2xl: clamp(32px, 3.4vw, 42px);
	--coa-text-3xl: clamp(36px, 3.8vw, 48px);
	--coa-text-display: clamp(42px, 4.4vw, 60px);

	--coa-lh-tight: 1.2;
	--coa-lh-snug: 1.35;
	--coa-lh-body: 1.65;
	--coa-lh-lead: 1.55;

	--coa-tracking-display: -0.03em;
	--coa-tracking-heading: -0.02em;

	--coa-space-stack: 1.05em;
	--coa-space-stack-sm: 0.8em;
	--coa-space-lead-y: 1.35em;
	--coa-space-section-y: clamp(3.5rem, 6vw, 5.5rem);
	--coa-space-card-gap: 1.5rem;

	/* ——— Brand surfaces (shared; pages may re-scope same values) ——— */
	--coa-navy: #013a58;
	--coa-accent: #0a787e;
	--coa-turquoise: #73c3c4;
	--coa-mist: #f4f8fb;
	--coa-sky: #e8f4fb;
	--coa-ink: #1a2b36;
	--coa-muted: #5a6f7c;
	--coa-border-soft: rgba(1, 58, 88, 0.08);
	--coa-border-mid: rgba(1, 58, 88, 0.12);

	/* Radii — keep page-specific --coa-card-radius where a larger card treatment is intentional */
	--coa-radius-sm: 10px;
	--coa-radius: 14px;
	--coa-radius-lg: 18px;

	/*
	 * Elevation — navy-tinted, soft, low-opacity.
	 * 0 flat | 1 subtle cards/chips | 2 raised/floating | 3 overlays
	 * Hover bump for interactive cards; CTA for filled primary actions only.
	 */
	--coa-shadow-none: none;
	--coa-shadow-sm: 0 4px 14px rgba(1, 58, 88, 0.08);   /* elevation 1 */
	--coa-shadow-md: 0 10px 28px rgba(1, 58, 88, 0.10);  /* elevation 2 */
	--coa-shadow-lg: 0 18px 40px rgba(1, 58, 88, 0.14);  /* elevation 3 */
	--coa-shadow-hover: 0 14px 30px rgba(1, 58, 88, 0.12);
	--coa-shadow-cta: 0 8px 20px rgba(1, 58, 88, 0.18);
	--coa-shadow-focus: 0 0 0 3px rgba(115, 195, 196, 0.28);
	--coa-shadow-ornament: 0 10px 18px rgba(1, 58, 88, 0.18);
	--coa-shadow-drawer: -12px 0 40px rgba(1, 58, 88, 0.18);
	--coa-shadow-sticky: 4px 0 10px -6px rgba(1, 58, 88, 0.28);
	/* Hard brand “lift” under select cards (apps / GWS) — not soft elevation */
	--coa-shadow-accent-bar: 0 7px 0 0 var(--coa-turquoise);
}

@media (max-width: 768px) {
	:root {
		--coa-text-xs: 13px;
		--coa-text-sm: 15px;
		--coa-text-md: 17px;
		--coa-text-lg: 19px;
		--coa-text-xl: 22px;
		--coa-text-2xl: clamp(26px, 5.8vw, 34px);
		--coa-text-3xl: clamp(28px, 6vw, 38px);
		--coa-text-display: clamp(32px, 7vw, 44px);
		--coa-space-section-y: clamp(2rem, 8vw, 3rem);
	}
}

/* Soft bounce for circular photo ornaments (FAQ / about / delivery / sustain).
 * translate3d keeps the motion on the compositor — avoids shadow/edge ghosting. */
@keyframes coa-ornament-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -8px, 0); }
}

.coa-about-badge,
.coa-delivery-badge,
.coa-sustain-circle {
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	will-change: transform;
	/* Soften blur so the moving disc doesn’t leave a shadow trail */
	box-shadow: var(--coa-shadow-ornament);
}

@media (prefers-reduced-motion: reduce) {
	.coa-about-badge,
	.coa-delivery-badge,
	.coa-sustain-circle {
		animation: none !important;
		will-change: auto;
	}
}
