/* ==========================================================================
   Axcess Nordic — tokens and base
   Token names mirror the Figma variables (text/primary → --text-primary).
   Breakpoints: mobile < 768 · tablet 768–1023 · desktop ≥ 1024 (Figma: 390 · 768 · 1024 · 1280 · 1440)
   ========================================================================== */

:root {
	/* Brand palette (Foundations / Colour) */
	--c-navy: #002348;
	--c-navy-deep: #001a36;
	--c-dark-blue: #163e64;
	--c-dark-blue-light: #2e4b69;
	--c-logo-blue: #407aaf;
	--c-light-blue: #a7d2ff;
	--c-pale-blue: #dceaf7;
	--c-pale-blue-faint: #eff6fb;
	--c-cta-blue: #409eff;
	--c-cta-blue-light: #57aaff;
	--c-cta-blue-deep: #3b94f0;
	--c-cta-blue-edge: #2c77c4;
	--c-orange: #f2af22;
	--c-orange-deep: #856013;
	--c-orange-tint: #fdf4e0;
	--c-sand: #f1eae4;
	--c-teal: #1e6f73;
	--c-teal-grey: #e8f1f1;
	--c-white: #ffffff;
	--c-neutral-050: #fafbfb;
	--c-neutral-075: #f5f6f8;
	--c-neutral-100: #f2f2f2;
	--c-neutral-200: #e6e9ed;
	--c-neutral-300: #d6dce2;
	--c-neutral-400: #b8c1cc;
	--c-neutral-450: #9eabb9;
	--c-neutral-500: #8c9cad;
	--c-neutral-600: #6b7f95;
	--c-neutral-700: #526983;
	--c-neutral-800: #334f6d;

	/* Semantic — Light theme */
	--surface-page: var(--c-white);
	--surface-sunken: var(--c-neutral-100);
	--surface-accent: var(--c-pale-blue);
	--surface-raised: var(--c-neutral-075);
	--surface-inverse: var(--c-white);
	--text-primary: var(--c-navy);
	--text-secondary: var(--c-neutral-700);
	--text-link: var(--c-dark-blue);
	--text-accent: var(--c-logo-blue);
	--text-on-cta: var(--c-navy);
	--border-subtle: var(--c-neutral-200);
	--border-default: var(--c-neutral-300);
	--border-strong: var(--c-neutral-600);
	--border-focus: var(--c-navy);
	--action-cta: var(--c-cta-blue);
	--action-cta-hover: var(--c-cta-blue-light);
	--action-cta-pressed: var(--c-cta-blue-deep);
	--action-cta-edge: var(--c-cta-blue-edge);
	--action-solid: var(--c-navy);
	--action-solid-contrast: var(--c-white);
	--action-tertiary-hover: var(--c-pale-blue-faint);
	--accent-rule: var(--c-logo-blue);
	--marker: var(--c-logo-blue);

	/* Type scale — Desktop mode */
	--font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Schibsted Grotesk", Inter, system-ui, sans-serif;
	--type-display-xl-size: 76px;  --type-display-xl-line: 80px;
	--type-display-l-size: 60px;   --type-display-l-line: 66px;
	--type-h1-size: 48px;          --type-h1-line: 54px;
	--type-h2-size: 38px;          --type-h2-line: 44px;
	--type-h3-size: 30px;          --type-h3-line: 38px;
	--type-h4-size: 24px;          --type-h4-line: 32px;
	--type-h5-size: 20px;          --type-h5-line: 28px;
	--type-quote-l-size: 28px;     --type-quote-l-line: 40px;
	--type-body-lead-size: 20px;   --type-body-lead-line: 32px;
	--type-body-l-size: 18px;      --type-body-l-line: 30px;
	--type-body-m-size: 16px;      --type-body-m-line: 26px;
	--type-body-s-size: 14px;      --type-body-s-line: 22px;
	--type-body-xs-size: 13px;     --type-body-xs-line: 20px;
	--type-eyebrow-size: 13px;     --type-eyebrow-line: 16px;
	--type-meta-size: 13px;        --type-meta-line: 18px;
	--type-nav-size: 16px;         --type-nav-line: 24px;
	--type-button-l-size: 17px;    --type-button-l-line: 24px;
	--type-button-m-size: 16px;    --type-button-m-line: 24px;
	--type-button-s-size: 14px;    --type-button-s-line: 20px;
	--type-field-size: 14px;       --type-field-line: 20px;

	/* Spacing, radii, sizing */
	--space-2: 2px; --space-4: 4px; --space-6: 6px; --space-8: 8px; --space-10: 10px; --space-12: 12px;
	--space-16: 16px; --space-20: 20px; --space-24: 24px; --space-32: 32px; --space-40: 40px;
	--space-48: 48px; --space-56: 56px; --space-64: 64px;
	--radius-4: 4px; --radius-8: 8px; --radius-12: 12px; --radius-16: 16px; --radius-24: 24px; --radius-pill: 999px;
	--control-s: 36px; --control-m: 44px; --control-l: 52px; --touch-min: 44px;

	/* Layout */
	--page-margin: 80px;
	--container-max: 1280px;
	--grid-gutter: 24px;
	--section-y: 120px;
	--section-y-tight: 80px;
	--section-y-loose: 160px;
	--block-gap: 48px;
	--measure-max: 720px;
	--header-h: 80px;
	--header-h-scrolled: 64px;

	/* Elevation — cards never carry a shadow */
	--shadow-overlay: 0 2px 6px rgba(0, 35, 72, 0.08), 0 16px 40px -8px rgba(0, 35, 72, 0.18);
	--shadow-header: 0 8px 24px rgba(0, 35, 72, 0.08);

	--ease: cubic-bezier(0.2, 0, 0, 1);
	--dur-fast: 120ms;
	--dur: 200ms;
}

@media (max-width: 1023px) {
	:root {
		--page-margin: 40px;
	}
}

/* Type scale — Mobile mode */
@media (max-width: 767px) {
	:root {
		--type-display-xl-size: 44px;  --type-display-xl-line: 48px;
		--type-display-l-size: 38px;   --type-display-l-line: 42px;
		--type-h1-size: 34px;          --type-h1-line: 40px;
		--type-h2-size: 28px;          --type-h2-line: 34px;
		--type-h3-size: 24px;          --type-h3-line: 30px;
		--type-h4-size: 20px;          --type-h4-line: 28px;
		--type-h5-size: 18px;          --type-h5-line: 26px;
		--type-quote-l-size: 22px;     --type-quote-l-line: 32px;
		--type-body-lead-size: 18px;   --type-body-lead-line: 28px;
		--type-body-l-size: 17px;      --type-body-l-line: 28px;

		--page-margin: 20px;
		--grid-gutter: 16px;
		--section-y: 64px;
		--section-y-tight: 48px;
		--section-y-loose: 88px;
		--block-gap: 32px;
		--header-h: 64px;
		--header-h-scrolled: 56px;
	}
}

/* Dark theme mode: navy surface, everything inside flips with it. */
.is-dark {
	--surface-page: var(--c-navy);
	--surface-raised: var(--c-dark-blue);
	--surface-inverse: var(--c-navy);
	--text-primary: var(--c-white);
	--text-secondary: var(--c-neutral-450);
	--text-link: var(--c-light-blue);
	--text-accent: var(--c-light-blue);
	--border-subtle: var(--c-dark-blue-light);
	--border-default: var(--c-dark-blue-light);
	--border-strong: var(--c-neutral-600);
	--border-focus: var(--c-white);
	--action-cta-edge: var(--c-cta-blue-light);
	--action-solid: var(--c-white);
	--action-solid-contrast: var(--c-navy);
	--action-tertiary-hover: var(--c-dark-blue);
	--accent-rule: var(--c-orange);
	color: var(--text-primary);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h-scrolled) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--surface-page);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: var(--type-body-m-size);
	line-height: var(--type-body-m-line);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
	margin: 0;
}

:where(ul[role="list"], ol[role="list"]) {
	list-style: none;
	padding: 0;
}

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

img {
	height: auto;
}

a {
	color: inherit;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--border-focus);
	outline-offset: 2px;
}

.screen-reader-text,
.axn-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--c-white);
	color: var(--c-navy);
	border-radius: var(--radius-8);
	box-shadow: var(--shadow-overlay);
}

.axn-icon {
	flex: none;
}

/* ---------- Text styles (Figma text styles → utility classes) ---------- */
.t-display-xl, .t-display-l, .t-h1, .t-h2, .t-h3, .t-h4, .t-h5, .t-quote-l,
.axn-h2 {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--text-primary);
}

.t-display-xl { font-size: var(--type-display-xl-size); line-height: var(--type-display-xl-line); letter-spacing: -0.025em; }
.t-display-l  { font-size: var(--type-display-l-size);  line-height: var(--type-display-l-line);  letter-spacing: -0.02em; }
.t-h1         { font-size: var(--type-h1-size);         line-height: var(--type-h1-line);         letter-spacing: -0.0175em; }
.t-h2, .axn-h2 { font-size: var(--type-h2-size);        line-height: var(--type-h2-line);         letter-spacing: -0.015em; }
.t-h3         { font-size: var(--type-h3-size);         line-height: var(--type-h3-line);         letter-spacing: -0.0125em; }
.t-h4         { font-size: var(--type-h4-size);         line-height: var(--type-h4-line);         letter-spacing: -0.01em; }
.t-h5         { font-size: var(--type-h5-size);         line-height: var(--type-h5-line);         letter-spacing: -0.005em; }
.t-quote-l    { font-size: var(--type-quote-l-size);    line-height: var(--type-quote-l-line);    letter-spacing: -0.01em; font-weight: 500; }

.t-lead, .axn-lead { font-size: var(--type-body-lead-size); line-height: var(--type-body-lead-line); letter-spacing: -0.005em; }
.t-body-l     { font-size: var(--type-body-l-size);  line-height: var(--type-body-l-line);  letter-spacing: -0.0025em; }
.t-body-m     { font-size: var(--type-body-m-size);  line-height: var(--type-body-m-line); }
.t-body-m-strong { font-size: var(--type-body-m-size); line-height: var(--type-body-m-line); font-weight: 600; }
.t-body-s     { font-size: var(--type-body-s-size);  line-height: var(--type-body-s-line); }
.t-body-xs    { font-size: var(--type-body-xs-size); line-height: var(--type-body-xs-line); }
.t-meta       { font-size: var(--type-meta-size);    line-height: var(--type-meta-line); font-weight: 500; letter-spacing: 0.02em; }
.t-eyebrow    { font-size: var(--type-eyebrow-size); line-height: var(--type-eyebrow-line); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

.t-secondary, .axn-lead { color: var(--text-secondary); }
.t-primary { color: var(--text-primary); }
.t-accent  { color: var(--text-accent); }
