/* Reset + base element styling */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

/* Several components (.pricing-card, etc.) set their own `display`, which —
   at equal CSS specificity — wins the cascade over the UA stylesheet's
   `[hidden]{display:none}` and silently keeps "hidden" elements visible.
   This restores `hidden` as an absolute, component-proof kill switch;
   toggle visibility with the `hidden` property/attribute, never `display`. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--background);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--primary-blue);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 16px;
	color: var(--text);
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 2.6vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.5rem); }

p { margin: 0 0 16px; color: var(--muted-text); }

ul, ol { padding-left: 1.25em; color: var(--muted-text); }

button { font-family: inherit; cursor: pointer; }

input, textarea, select {
	font-family: inherit;
	font-size: 1rem;
	color: var(--text);
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 12px 14px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 12px;
	background: var(--dark-blue);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	z-index: 10000;
	transition: top var(--transition-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
