/* ==========================================================================
   HF-Memo – teeman tyylit
   Rakenne: fontit → muuttujat → perusta → painikkeet → ylätunniste → osiot
            → lomakkeet → UKK → alasivut → alatunniste → evästeet → animaatiot
   ========================================================================== */

/* ---------- Fontit (omalla palvelimella, ei Googlen palveluita) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Muuttujat ---------- */
:root {
	--hfm-bg: #060a13;
	--hfm-bg-2: #0a1020;
	--hfm-bg-3: #04070e;
	--hfm-surface: #0e1628;
	--hfm-surface-2: #131d35;
	--hfm-line: rgba(160, 175, 220, .14);
	--hfm-line-strong: rgba(160, 175, 220, .26);
	--hfm-text: #eef2ff;
	--hfm-muted: #a9b3cb;
	--hfm-subtle: #7f8aa6;
	--hfm-accent: #4c63f5;
	--hfm-accent-2: #6d4df2;
	--hfm-accent-hi: #9db0ff;
	--hfm-accent-ink: #3449d6;
	--hfm-grad: linear-gradient(135deg, #4c63f5 0%, #6d4df2 100%);
	--hfm-grad-text: linear-gradient(100deg, #9db0ff 0%, #c3b4ff 55%, #9db0ff 100%);
	--hfm-paper: #f5f6fa;
	--hfm-white: #ffffff;
	--hfm-ink: #0b1222;
	--hfm-ink-muted: #4a5470;
	--hfm-ink-line: rgba(11, 18, 34, .1);
	--hfm-danger: #ff8597;
	--hfm-danger-ink: #c0293f;
	--hfm-ok: #4ade80;

	--hfm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--hfm-font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--hfm-radius-sm: 12px;
	--hfm-radius: 20px;
	--hfm-radius-lg: 28px;
	--hfm-ease: cubic-bezier(.2, .7, .2, 1);
	--hfm-shadow-card: 0 1px 2px rgba(11, 18, 34, .04), 0 10px 30px -12px rgba(11, 18, 34, .14);
	--hfm-shadow-card-hover: 0 2px 4px rgba(11, 18, 34, .05), 0 24px 48px -16px rgba(11, 18, 34, .22);
	--hfm-shadow-deep: 0 40px 80px -32px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .07);

	--hfm-gutter: clamp(20px, 5vw, 40px);
	--hfm-max: 1200px;
	--hfm-header-h: 72px;
	--hfm-section-y: clamp(80px, 10.5vw, 144px);
	--i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-check-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-check-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-check-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--i-message: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3C/svg%3E");
	--i-mic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cpath d='M12 19v3'/%3E%3C/svg%3E");
	--i-call: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");
	--i-replay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M10 9.5v5l4-2.5Z'/%3E%3C/svg%3E");
	--i-auto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8Z'/%3E%3C/svg%3E");
	--i-layers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 10 5-10 5L2 7l10-5Z'/%3E%3Cpath d='M2 17l10 5 10-5'/%3E%3Cpath d='M2 12l10 5 10-5'/%3E%3C/svg%3E");
	--i-language: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 6 6'/%3E%3Cpath d='M4 14l6-6 2-3'/%3E%3Cpath d='M2 5h12'/%3E%3Cpath d='M7 2h1'/%3E%3Cpath d='M22 22l-5-10-5 10'/%3E%3Cpath d='M14 18h6'/%3E%3C/svg%3E");
	--i-battery: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h12a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2Z'/%3E%3Cpath d='M22 11v2'/%3E%3Cpath d='M6 10.5v3'/%3E%3Cpath d='M9.5 10.5v3'/%3E%3Cpath d='M13 10.5v3'/%3E%3C/svg%3E");
	--i-bluetooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 7 10 10-5 5V2l5 5L7 17'/%3E%3C/svg%3E");
	--i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20Z'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
	--i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Cpath d='M12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}
@media (max-width: 767px) {
	:root { --hfm-header-h: 64px; }
}

/* ---------- Perusta ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--hfm-bg);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body {
	margin: 0;
	background: var(--hfm-bg);
	color: var(--hfm-text);
	font-family: var(--hfm-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
html.hfm-menu-open,
html.hfm-menu-open body { overflow: hidden; }
.hfm-main { overflow-x: clip; }

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 {
	font-family: var(--hfm-font-display);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.025em;
	text-wrap: balance;
}
p, li { text-wrap: pretty; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(76, 99, 245, .4); color: #fff; }
[id] { scroll-margin-top: calc(var(--hfm-header-h) + 12px); }
[hidden]:not([hidden="until-found"]) { display: none !important; }

:focus { outline: none; }
:focus-visible {
	outline: 2px solid var(--hfm-accent-hi);
	outline-offset: 3px;
	border-radius: 6px;
}
.is-light :focus-visible,
.is-light-alt :focus-visible,
.hfm-form-card.is-on-light :focus-visible { outline-color: var(--hfm-accent); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.hfm-skip {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: 999px;
	background: #fff;
	color: var(--hfm-ink);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform .2s var(--hfm-ease);
}
.hfm-skip:focus { transform: none; }

.hfm-container {
	width: min(100% - 2 * var(--hfm-gutter), var(--hfm-max));
	margin-inline: auto;
}
.hfm-container-narrow { width: min(100% - 2 * var(--hfm-gutter), 820px); }

/* WordPressin lohkojen oletuksia siistimmiksi */
.wp-block-image { margin: 0; }
.wp-block-image img { max-width: 100%; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button { margin: 0; }

/* ---------- Painikkeet ---------- */
.hfm-btn,
.wp-block-button .wp-block-button__link {
	--btn-h: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--btn-h);
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	color: var(--hfm-text);
	font-family: var(--hfm-font);
	font-size: .96875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.005em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .25s var(--hfm-ease), box-shadow .25s var(--hfm-ease), background-color .25s, border-color .25s, color .25s, filter .25s;
	-webkit-tap-highlight-color: transparent;
}
.hfm-btn:active,
.wp-block-button__link:active { transform: translateY(1px) scale(.99); }

.hfm-btn--primary,
.wp-block-button.is-style-primary .wp-block-button__link,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link {
	background: var(--hfm-grad);
	color: #fff;
	box-shadow: 0 12px 32px -12px rgba(76, 99, 245, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.hfm-btn--primary:hover,
.wp-block-button.is-style-primary .wp-block-button__link:hover,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover {
	transform: translateY(-2px);
	filter: brightness(1.08) saturate(1.05);
	box-shadow: 0 18px 40px -12px rgba(76, 99, 245, 1), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.wp-block-button.is-style-primary .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--i-arrow) center / contain no-repeat;
	mask: var(--i-arrow) center / contain no-repeat;
	transition: transform .25s var(--hfm-ease);
}
.wp-block-button.is-style-primary .wp-block-button__link:hover::after { transform: translateX(3px); }

.hfm-btn--ghost,
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: rgba(255, 255, 255, .05);
	border-color: rgba(255, 255, 255, .18);
	color: var(--hfm-text);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.hfm-btn--ghost:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .3);
}
.is-light .wp-block-button.is-style-ghost .wp-block-button__link,
.is-light-alt .wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	border-color: rgba(11, 18, 34, .2);
	color: var(--hfm-ink);
}

.hfm-btn--dark,
.wp-block-button.is-style-dark .wp-block-button__link {
	background: var(--hfm-ink);
	color: #fff;
	box-shadow: 0 12px 28px -14px rgba(11, 18, 34, .8);
}
.hfm-btn--dark:hover,
.wp-block-button.is-style-dark .wp-block-button__link:hover {
	background: #1a2440;
	transform: translateY(-2px);
}
.wp-block-button.is-style-dark .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--i-arrow) center / contain no-repeat;
	mask: var(--i-arrow) center / contain no-repeat;
	transition: transform .25s var(--hfm-ease);
}
.wp-block-button.is-style-dark .wp-block-button__link:hover::after { transform: translateX(3px); }

.wp-block-button.is-style-dark-outline .wp-block-button__link {
	background: transparent;
	border-color: rgba(11, 18, 34, .22);
	color: var(--hfm-ink);
}
.wp-block-button.is-style-dark-outline .wp-block-button__link:hover {
	border-color: var(--hfm-ink);
	background: rgba(11, 18, 34, .04);
	transform: translateY(-2px);
}
.is-dark .wp-block-button.is-style-dark-outline .wp-block-button__link { border-color: rgba(255, 255, 255, .22); color: var(--hfm-text); }
.hfm-btn--secondary {
	background: #eef1fb;
	color: var(--hfm-ink);
}
.hfm-btn--secondary:hover { background: #fff; }

.hfm-btn--sm { --btn-h: 40px; padding: 0 18px; font-size: .90625rem; }
.hfm-btn--lg { --btn-h: 56px; padding: 0 30px; font-size: 1.03125rem; }
.hfm-btn--block { width: 100%; }
.hfm-btn svg { flex: none; transition: transform .25s var(--hfm-ease); }
.hfm-btn:hover svg { transform: translateX(3px); }

.hfm-linkbtn {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

/* ---------- Ylätunniste ---------- */
.hfm-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
}
.admin-bar .hfm-header { top: var(--wp-admin--admin-bar--height, 32px); }
.hfm-header__bar {
	position: relative;
	height: var(--hfm-header-h);
}
/* Lasitausta pseudoelementissä: backdrop-filter ei saa olla valikon (position: fixed) esivanhemmassa. */
.hfm-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-bottom: 1px solid transparent;
	transition: background-color .35s, border-color .35s;
}
.hfm-header.is-scrolled .hfm-header__bar::before,
.hfm-layout-sub .hfm-header__bar::before,
html.hfm-menu-open .hfm-header__bar::before {
	background: rgba(6, 10, 19, .9);
	border-bottom-color: var(--hfm-line);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	backdrop-filter: saturate(1.6) blur(18px);
}
html.hfm-menu-open .hfm-header__bar::before { background: var(--hfm-bg); }
.hfm-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 100%;
	width: min(100% - 2 * var(--hfm-gutter), 1280px);
	margin-inline: auto;
}

.hfm-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	color: var(--hfm-text);
	text-decoration: none;
	border-radius: 10px;
}
.hfm-mark { flex: none; filter: drop-shadow(0 4px 14px rgba(76, 99, 245, .45)); }
.hfm-logo__text {
	font-family: var(--hfm-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -.03em;
}
.hfm-logo__text span { color: var(--hfm-accent-hi); }
.hfm-logo__img { display: block; width: auto; height: 26px; }

.hfm-nav { margin-inline: auto; }
.hfm-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	list-style: none;
}
.hfm-menu a {
	position: relative;
	display: block;
	white-space: nowrap;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--hfm-muted);
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s, background-color .2s;
}
.hfm-menu a:hover { color: var(--hfm-text); background: rgba(255, 255, 255, .05); }
.hfm-menu a[aria-current],
.hfm-menu a.is-active { color: var(--hfm-text); }
.hfm-menu a[aria-current]::after,
.hfm-menu a.is-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--hfm-accent-hi);
	box-shadow: 0 0 10px var(--hfm-accent-hi);
}
.hfm-nav__extra { display: none; }

.hfm-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

/* Kielivalitsin */
.hfm-lang ul {
	display: flex;
	gap: 2px;
	padding: 3px;
	margin: 0;
	list-style: none;
	border: 1px solid var(--hfm-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .03);
}
.hfm-lang a {
	display: block;
	min-width: 38px;
	padding: 7px 10px;
	border-radius: 999px;
	color: var(--hfm-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-align: center;
	text-decoration: none;
	transition: color .2s, background-color .2s;
}
.hfm-lang a:hover { color: var(--hfm-text); }
.hfm-lang__full { display: none; }
.hfm-lang a.is-current {
	background: rgba(255, 255, 255, .12);
	color: var(--hfm-text);
}

/* Valikkopainike */
.hfm-burger {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--hfm-line-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, .04);
}
.hfm-burger__lines { position: absolute; inset: 0; }
.hfm-burger__lines i {
	position: absolute;
	left: 13px;
	right: 13px;
	height: 2px;
	border-radius: 2px;
	background: var(--hfm-text);
	transition: transform .35s var(--hfm-ease), top .35s var(--hfm-ease);
}
.hfm-burger__lines i:first-child { top: 17px; }
.hfm-burger__lines i:last-child { top: 25px; }
.hfm-burger[aria-expanded="true"] .hfm-burger__lines i:first-child { top: 21px; transform: rotate(45deg); }
.hfm-burger[aria-expanded="true"] .hfm-burger__lines i:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1179px) {
	.hfm-burger { display: block; }
	.hfm-header__actions .hfm-lang--bar { display: none; }
	.hfm-header__actions { margin-left: auto; }
	.hfm-nav {
		position: fixed;
		inset: var(--hfm-header-h) 0 0;
		z-index: 99;
		display: flex;
		flex-direction: column;
		gap: 32px;
		margin: 0;
		padding: 24px var(--hfm-gutter) calc(32px + env(safe-area-inset-bottom));
		overflow-y: auto;
		background:
			radial-gradient(80% 50% at 100% 0%, rgba(76, 99, 245, .18), transparent 70%),
			var(--hfm-bg);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-12px);
		transition: opacity .3s var(--hfm-ease), transform .3s var(--hfm-ease), visibility 0s linear .3s;
	}
	.admin-bar .hfm-nav { top: calc(var(--hfm-header-h) + var(--wp-admin--admin-bar--height, 46px)); }
	html.hfm-menu-open .hfm-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .3s var(--hfm-ease), transform .3s var(--hfm-ease);
	}
	.hfm-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.hfm-menu li { border-bottom: 1px solid var(--hfm-line); }
	.hfm-menu a {
		padding: 18px 4px;
		border-radius: 0;
		color: var(--hfm-text);
		font-family: var(--hfm-font-display);
		font-size: 1.5rem;
		font-weight: 700;
		letter-spacing: -.02em;
	}
	.hfm-menu a:hover { background: none; color: var(--hfm-accent-hi); }
	.hfm-menu a[aria-current]::after,
	.hfm-menu a.is-active::after { left: auto; right: 4px; top: 50%; bottom: auto; margin: -2px 0 0; }
	.hfm-nav__extra {
		display: grid;
		gap: 20px;
		margin-top: auto;
	}
	.hfm-lang--panel ul { justify-content: space-between; padding: 4px; }
	.hfm-lang--panel li { flex: 1; }
	.hfm-lang--panel a { padding: 12px 10px; font-size: .9375rem; letter-spacing: 0; }
	.hfm-lang--panel .hfm-lang__short { display: none; }
	.hfm-lang--panel .hfm-lang__full { display: inline; }
}
@media (max-width: 479px) {
	.hfm-header__inner { gap: 10px; }
	.hfm-logo { gap: 8px; }
	.hfm-logo .hfm-mark { width: 26px; height: 26px; }
	.hfm-logo__text { font-size: 1.125rem; }
	.hfm-logo__img { height: 22px; }
	.hfm-header__actions { gap: 8px; }
	.hfm-header__cta { --btn-h: 38px; padding: 0 14px; font-size: .84375rem; }
	.hfm-burger { width: 42px; height: 42px; }
	.hfm-burger__lines i { left: 12px; right: 12px; }
	.hfm-burger__lines i:first-child { top: 16px; }
	.hfm-burger__lines i:last-child { top: 24px; }
	.hfm-burger[aria-expanded="true"] .hfm-burger__lines i { top: 20px !important; }
}
@media (max-width: 359px) {
	.hfm-header__cta { display: none; }
}
.hfm-nowrap { white-space: nowrap; }

/* ---------- Ilmoitus (esim. listalta poistuminen) ---------- */
.hfm-toast {
	position: fixed;
	top: calc(var(--hfm-header-h) + 16px);
	left: 50%;
	z-index: 120;
	width: min(100% - 32px, 520px);
	transform: translateX(-50%);
	animation: hfm-drop .5s var(--hfm-ease) both;
}
.hfm-toast__inner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 18px 18px 20px;
	border: 1px solid var(--hfm-line-strong);
	border-radius: var(--hfm-radius);
	background: rgba(14, 22, 40, .94);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: var(--hfm-shadow-deep);
	font-size: .9375rem;
	color: var(--hfm-muted);
}
.hfm-toast__title { color: var(--hfm-text); font-weight: 700; }
.hfm-toast__icon {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hfm-grad);
	-webkit-mask: none;
	position: relative;
}
.hfm-toast__icon::after {
	content: "";
	position: absolute;
	inset: 6px;
	background: #fff;
	-webkit-mask: var(--i-check) center / contain no-repeat;
	mask: var(--i-check) center / contain no-repeat;
}
.hfm-toast__form { margin-top: 14px; }
.hfm-toast__icon--info::after { -webkit-mask-image: var(--i-alert); mask-image: var(--i-alert); }
.hfm-toast__close {
	margin-left: auto;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--hfm-muted);
	font-size: 1.5rem;
	line-height: 1;
}

/* ---------- Osioiden yhteiset tyylit ---------- */
.hfm-section {
	position: relative;
	padding-block: var(--hfm-section-y);
}
.is-dark { background: var(--hfm-bg); color: var(--hfm-text); }
.is-light { background: var(--hfm-paper); color: var(--hfm-ink); }
.is-light-alt { background: var(--hfm-white); color: var(--hfm-ink); }

.hfm-head { max-width: 760px; margin-bottom: clamp(44px, 5.5vw, 72px); }
.hfm-head.is-center { margin-inline: auto; text-align: center; }
.hfm-head > * + * { margin-top: 18px; }

.hfm-eyebrow {
	display: inline-block;
	color: var(--hfm-accent-hi);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
}
.hfm-eyebrow:not(.hfm-badge)::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	margin: -3px 10px 0 0;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	opacity: .8;
}
.is-light .hfm-eyebrow,
.is-light-alt .hfm-eyebrow { color: var(--hfm-accent-ink); }

.hfm-badge {
	padding: 7px 14px 7px 12px;
	border: 1px solid rgba(157, 176, 255, .28);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(76, 99, 245, .16), rgba(76, 99, 245, .06));
	color: #cdd6ff;
	font-size: .75rem;
	letter-spacing: .12em;
}
.hfm-badge::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	margin: -2px 9px 0 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7f95ff;
	box-shadow: 0 0 0 0 rgba(127, 149, 255, .7);
	animation: hfm-pulse 2.4s 3;
}

.hfm-title {
	font-size: clamp(2.05rem, 1.25rem + 2.7vw, 3.5rem);
	line-height: 1.06;
	letter-spacing: -.035em;
}
.hfm-title em,
.hfm-hero-title em {
	font-style: normal;
	background: var(--hfm-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.is-light .hfm-title em,
.is-light-alt .hfm-title em {
	background-image: linear-gradient(100deg, #3449d6, #6d4df2);
}
.hfm-lead {
	max-width: 40em;
	color: var(--hfm-muted);
	font-size: clamp(1.0625rem, 1rem + .3vw, 1.21875rem);
	line-height: 1.62;
}
.is-light .hfm-lead,
.is-light-alt .hfm-lead { color: var(--hfm-ink-muted); }
.hfm-head.is-center .hfm-lead { margin-inline: auto; }

.hfm-actions { margin-top: 36px; }

@media (max-width: 599px) {
	.hfm-title, .hfm-hero-title, .hfm-page-title { -webkit-hyphens: auto; hyphens: auto; }
}

/* ---------- Pääosio (hero) ---------- */
.hfm-hero {
	display: flex;
	align-items: center;
	min-height: min(100svh, 940px);
	padding-top: calc(var(--hfm-header-h) + clamp(32px, 6vw, 72px));
	padding-bottom: clamp(56px, 7vw, 104px);
	background:
		radial-gradient(55% 60% at 78% 40%, rgba(76, 99, 245, .22), transparent 70%),
		radial-gradient(40% 45% at 8% 100%, rgba(109, 77, 242, .14), transparent 70%),
		var(--hfm-bg);
	isolation: isolate;
}
.hfm-hero::before {
	/* hienovarainen ruudukko */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 60% 40%, #000 0%, transparent 75%);
	pointer-events: none;
}
.hfm-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--hfm-line-strong), transparent);
}
.hfm-hero > .hfm-container { position: relative; }
.hfm-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}
.hfm-hero-copy > * + * { margin-top: 24px; }
.hfm-hero-copy > .hfm-badge + h1 { margin-top: 28px; }
.hfm-hero-title {
	/* Jokainen lause mahtuu omalle rivilleen kaikilla leveyksillä. */
	font-size: clamp(1.875rem, 8.4vw, 2.5rem);
	line-height: 1.05;
	letter-spacing: -.04em;
}
@media (min-width: 600px) { .hfm-hero-title { font-size: clamp(2.75rem, 6vw, 3.5rem); } }
@media (min-width: 1024px) { .hfm-hero-title { font-size: clamp(2.75rem, .4rem + 3.55vw, 3.75rem); } }
.hfm-hero .hfm-lead { max-width: 34em; font-size: clamp(1.0625rem, .98rem + .45vw, 1.28125rem); }
.hfm-hero .hfm-actions { margin-top: 36px; }

.hfm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 40px !important;
	padding: 0;
	list-style: none;
	color: var(--hfm-muted);
	font-size: .875rem;
	font-weight: 500;
}
.hfm-chips li {
	position: relative;
	padding-left: 26px;
}
.hfm-chips li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -9px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(157, 176, 255, .14) var(--i-check-sm) center / 12px no-repeat;
}

.hfm-hero-media {
	position: relative;
	margin: 0;
	isolation: isolate;
}
.hfm-hero-media::before {
	/* Hehku kuvan takana: kevyt säteittäinen liukuväri (ei raskasta blur-suodinta). */
	content: "";
	position: absolute;
	inset: -18% -16% -20% -10%;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(92, 84, 245, .5), rgba(76, 99, 245, .18) 55%, transparent 100%);
	pointer-events: none;
}
.hfm-hero-media picture,
.hfm-hero-media > img { display: block; }
.hfm-hero-media img {
	width: 100%;
	height: auto;
	aspect-ratio: 1280 / 1148;
	object-fit: cover;
	border-radius: var(--hfm-radius-lg);
	box-shadow: var(--hfm-shadow-deep);
}
.hfm-hero-media picture { position: relative; border-radius: var(--hfm-radius-lg); }
.hfm-hero-media picture::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(6, 10, 19, 0) 55%, rgba(6, 10, 19, .45) 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
	pointer-events: none;
}

/* Kelluvat ilmoituskortit */
.hfm-float {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px 11px 11px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 18px;
	background: rgba(12, 19, 36, .74);
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7);
	color: var(--hfm-text);
	font-size: .8125rem;
	line-height: 1.35;
	white-space: nowrap;
}
.hfm-float--msg { top: 7%; left: -7%; }
.hfm-float--note { bottom: 8%; right: -5%; }
.hfm-float__body { display: grid; }
.hfm-float__body b { font-weight: 650; }
.hfm-float__body span { color: var(--hfm-muted); }
.hfm-float__icon {
	position: relative;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--hfm-grad);
	box-shadow: 0 6px 16px -6px rgba(76, 99, 245, .9);
}
.hfm-float__icon::after {
	content: "";
	position: absolute;
	inset: 9px;
	background: #fff;
	-webkit-mask: var(--i-message) center / contain no-repeat;
	mask: var(--i-message) center / contain no-repeat;
}
.hfm-float__icon--rec { background: linear-gradient(135deg, #f43f5e, #e11d48); box-shadow: 0 6px 16px -6px rgba(244, 63, 94, .9); }
.hfm-float__icon--rec::after { -webkit-mask-image: var(--i-mic); mask-image: var(--i-mic); }
.hfm-wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; margin-left: 4px; }
.hfm-wave i {
	--h: .45;
	width: 3px;
	height: 100%;
	border-radius: 3px;
	background: var(--hfm-accent-hi);
	transform-origin: center;
	transform: scaleY(var(--h));
	animation: hfm-wave 1.1s ease-in-out 4;
}
.hfm-wave i:nth-child(odd) { --h: .3; }
.hfm-wave i:nth-child(3n) { --h: .75; }
.hfm-wave i:nth-child(4) { --h: .9; }
.hfm-wave i:nth-child(2) { animation-delay: -.9s; }
.hfm-wave i:nth-child(3) { animation-delay: -.3s; }
.hfm-wave i:nth-child(4) { animation-delay: -.7s; }
.hfm-wave i:nth-child(5) { animation-delay: -.1s; }
.hfm-wave i:nth-child(6) { animation-delay: -.5s; }
.hfm-wave i:nth-child(7) { animation-delay: -.8s; }
.hfm-wave i:nth-child(8) { animation-delay: -.2s; }
.hfm-wave i:nth-child(9) { animation-delay: -.6s; }
.hfm-float__check {
	flex: none;
	width: 22px;
	height: 22px;
	margin-left: 4px;
	border-radius: 50%;
	background: rgba(74, 222, 128, .16) var(--i-check-ok) center / 13px no-repeat;
}

@media (max-width: 1023px) {
	.hfm-hero { min-height: 0; }
	.hfm-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.hfm-hero-grid .hfm-hero-media { max-width: 600px; width: 100%; margin-inline: auto; }
	.hfm-float--msg { left: 4%; }
	.hfm-float--note { right: 4%; }
}
@media (max-width: 479px) {
	.hfm-float { font-size: .75rem; padding: 8px 12px 8px 8px; gap: 9px; border-radius: 14px; }
	.hfm-float__icon { width: 30px; height: 30px; border-radius: 10px; }
	.hfm-float__icon::after { inset: 7px; }
	.hfm-float--msg { top: 5%; left: 3%; }
	.hfm-float--note { bottom: 5%; right: 3%; }
	.hfm-wave { height: 16px; }
	.hfm-actions .wp-block-button { flex: 1 1 100%; }
	.hfm-actions .wp-block-button__link { width: 100%; }
}

/* ---------- Kuvittele-osio ---------- */
.hfm-scenario {
	background:
		radial-gradient(50% 60% at 100% 50%, rgba(76, 99, 245, .12), transparent 70%),
		var(--hfm-bg-2);
}
.hfm-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 7vw, 112px);
	align-items: center;
}
.hfm-split-copy > * + * { margin-top: 20px; }
.hfm-split-copy > .hfm-eyebrow + * { margin-top: 18px; }
.hfm-quote { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3.1rem); }

.hfm-points {
	display: grid;
	gap: 22px;
	margin-top: 40px !important;
	counter-reset: hfm-point;
}
.hfm-point {
	position: relative;
	padding-left: 64px;
	min-height: 46px;
}
.hfm-point::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 46px;
	height: 46px;
	border: 1px solid var(--hfm-line-strong);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
}
.hfm-point::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 12px;
	width: 22px;
	height: 22px;
	background: var(--hfm-accent-hi);
	-webkit-mask: var(--i-call) center / contain no-repeat;
	mask: var(--i-call) center / contain no-repeat;
}
.hfm-point:nth-child(2)::after { -webkit-mask-image: var(--i-mic); mask-image: var(--i-mic); }
.hfm-point:nth-child(3)::after { -webkit-mask-image: var(--i-message); mask-image: var(--i-message); }
.hfm-point h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.hfm-point p { margin-top: 6px; color: var(--hfm-muted); font-size: 1rem; line-height: 1.55; }

.hfm-photo {
	position: relative;
	margin: 0;
	border-radius: var(--hfm-radius-lg);
	box-shadow: var(--hfm-shadow-deep);
	overflow: hidden;
}
.hfm-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hfm-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
	background: linear-gradient(200deg, rgba(76, 99, 245, .18), transparent 40%);
	pointer-events: none;
}

@media (max-width: 899px) {
	.hfm-split { grid-template-columns: minmax(0, 1fr); }
	.hfm-split .hfm-photo { max-width: 520px; width: 100%; margin-inline: auto; }
}

/* ---------- Näin se toimii ---------- */
.hfm-how {
	background:
		radial-gradient(42% 50% at 30% 52%, rgba(76, 99, 245, .2), transparent 72%),
		var(--hfm-bg);
}
.hfm-remote {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.hfm-remote__figure { margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.hfm-remote__svg { display: block; width: 100%; height: auto; overflow: visible; }
.hfm-remote__halo { fill: rgba(91, 124, 250, .045); stroke: rgba(157, 176, 255, .1); }
.hfm-remote__power { color: rgba(205, 214, 255, .55); }
.hfm-remote__brand {
	fill: #d5dcff;
	font-family: var(--hfm-font-display);
	font-size: 19px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: -.02em;
}
.hfm-remote__ring path,
.hfm-remote__ring circle {
	fill: rgba(255, 255, 255, .035);
	stroke: rgba(190, 202, 240, .26);
	stroke-width: 1.5;
	transition: fill .45s var(--hfm-ease), stroke .45s var(--hfm-ease), filter .45s;
	cursor: pointer;
}
.hfm-remote__icons g[data-zone-icon] { color: var(--hfm-accent-hi); transition: color .45s; }
.hfm-remote[data-active="rec"] .hfm-remote__ring [data-zone="rec"],
.hfm-remote[data-active="vol"] .hfm-remote__ring [data-zone="vol"],
.hfm-remote[data-active="play"] .hfm-remote__ring [data-zone="play"],
.hfm-remote[data-active="navi"] .hfm-remote__ring [data-zone="navi"] {
	fill: rgba(76, 99, 245, .72);
	stroke: #a9b8ff;
	filter: drop-shadow(0 0 14px rgba(110, 134, 255, .85));
}
.hfm-remote[data-active="rec"] [data-zone-icon="rec"],
.hfm-remote[data-active="vol"] [data-zone-icon="vol"],
.hfm-remote[data-active="play"] [data-zone-icon="play"],
.hfm-remote[data-active="navi"] [data-zone-icon="navi"] { color: #fff; }

.hfm-remote__list {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}
.hfm-remote__item {
	cursor: pointer;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	padding: 18px 20px;
	border: 1px solid transparent;
	border-radius: var(--hfm-radius);
	transition: background-color .4s, border-color .4s, transform .4s var(--hfm-ease);
}
.hfm-remote__item.is-active {
	border-color: var(--hfm-line-strong);
	background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
}
.hfm-remote__key {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--hfm-line-strong);
	border-radius: 14px;
	color: var(--hfm-accent-hi);
	transition: background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.hfm-remote__item.is-active .hfm-remote__key {
	border-color: transparent;
	background: var(--hfm-grad);
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(76, 99, 245, .9);
}
.hfm-remote__text { display: grid; gap: 4px; }
.hfm-remote__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hfm-remote__name strong {
	color: var(--hfm-accent-hi);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
}
.hfm-remote__name span {
	font-family: var(--hfm-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -.015em;
}
.hfm-remote__desc { color: var(--hfm-muted); font-size: .96875rem; line-height: 1.55; }

.hfm-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 32px);
	margin-top: clamp(64px, 8vw, 104px);
	counter-reset: hfm-step;
}
.hfm-step {
	position: relative;
	padding: 28px 28px 30px;
	border: 1px solid var(--hfm-line);
	border-radius: var(--hfm-radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
	counter-increment: hfm-step;
}
.hfm-step::before {
	content: "0" counter(hfm-step);
	display: block;
	margin-bottom: 18px;
	font-family: var(--hfm-font-display);
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
	background: var(--hfm-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hfm-step h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.hfm-step p { margin-top: 8px; color: var(--hfm-muted); font-size: 1rem; line-height: 1.55; }

@media (max-width: 899px) {
	.hfm-remote { grid-template-columns: minmax(0, 1fr); }
	.hfm-remote__figure { max-width: 340px; }
	.hfm-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Ominaisuudet ---------- */
.hfm-grid { display: grid; gap: 20px; }
.hfm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .hfm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
	.hfm-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.hfm-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px 20px 22px; }
	.hfm-card::before { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 13px; }
	.hfm-card::after { top: 30px; left: 31px; width: 22px; height: 22px; }
	.hfm-card h3 { font-size: 1.0625rem; align-self: center; }
	.hfm-card p { margin-top: 4px; font-size: .96875rem; line-height: 1.55; }
	.hfm-card:hover { transform: none; }
}

.hfm-card {
	position: relative;
	padding: 32px 30px 32px;
	border: 1px solid rgba(11, 18, 34, .06);
	border-radius: var(--hfm-radius);
	background: var(--hfm-white);
	box-shadow: var(--hfm-shadow-card);
	transition: transform .4s var(--hfm-ease), box-shadow .4s var(--hfm-ease);
}
.hfm-card:hover { transform: translateY(-4px); box-shadow: var(--hfm-shadow-card-hover); }
.hfm-card::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 24px;
	border-radius: 15px;
	background: linear-gradient(135deg, #eef1ff, #e6e3ff);
	box-shadow: inset 0 0 0 1px rgba(76, 99, 245, .12);
}
.hfm-card::after {
	content: "";
	position: absolute;
	top: 46px;
	left: 44px;
	width: 24px;
	height: 24px;
	background: var(--hfm-accent-ink);
	-webkit-mask: var(--i-mic) center / contain no-repeat;
	mask: var(--i-mic) center / contain no-repeat;
}
.hfm-ico-call::after { -webkit-mask-image: var(--i-call); mask-image: var(--i-call); }
.hfm-ico-mic::after { -webkit-mask-image: var(--i-mic); mask-image: var(--i-mic); }
.hfm-ico-message::after { -webkit-mask-image: var(--i-message); mask-image: var(--i-message); }
.hfm-ico-replay::after { -webkit-mask-image: var(--i-replay); mask-image: var(--i-replay); }
.hfm-ico-auto::after { -webkit-mask-image: var(--i-auto); mask-image: var(--i-auto); }
.hfm-ico-layers::after { -webkit-mask-image: var(--i-layers); mask-image: var(--i-layers); }
.hfm-ico-language::after { -webkit-mask-image: var(--i-language); mask-image: var(--i-language); }
.hfm-ico-battery::after { -webkit-mask-image: var(--i-battery); mask-image: var(--i-battery); }
.hfm-ico-bluetooth::after { -webkit-mask-image: var(--i-bluetooth); mask-image: var(--i-bluetooth); }
.hfm-card h3 { font-size: 1.1875rem; letter-spacing: -.02em; color: var(--hfm-ink); }
.hfm-card p { margin-top: 10px; color: var(--hfm-ink-muted); font-size: 1rem; line-height: 1.6; }

/* ---------- Video ---------- */
.hfm-video-section {
	background:
		radial-gradient(60% 50% at 50% 100%, rgba(76, 99, 245, .18), transparent 70%),
		var(--hfm-bg-2);
}
.hfm-video-wrap { max-width: 1040px; margin-inline: auto; }
.hfm-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--hfm-radius-lg);
	background: #000;
	box-shadow: var(--hfm-shadow-deep), 0 0 120px -40px rgba(76, 99, 245, .6);
}
.hfm-video__btn {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #000;
	color: #fff;
}
.hfm-video__btn {
	overflow: hidden;
	background:
		radial-gradient(60% 80% at 70% 40%, rgba(76, 99, 245, .45), transparent 70%),
		radial-gradient(50% 70% at 10% 100%, rgba(109, 77, 242, .35), transparent 70%),
		linear-gradient(160deg, #0d1530, #070b16 70%);
}
.hfm-video__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000, transparent 80%);
	mask-image: radial-gradient(70% 70% at 60% 45%, #000, transparent 80%);
}
.hfm-video__art {
	/* Kaukosäätimen ääriviiva; toistopainike osuu keskipainikkeen kohdalle. */
	position: absolute;
	top: 50%;
	left: 50%;
	height: 132%;
	aspect-ratio: 400 / 420;
	transform: translate(-50%, -50.5%) rotate(-10deg);
	transition: transform 1.2s var(--hfm-ease);
}
.hfm-video__remote { display: block; width: 100%; height: 100%; overflow: visible; }
.hfm-video__remote .b { fill: rgba(255, 255, 255, .025); stroke: rgba(190, 202, 240, .22); stroke-width: 1.5; }
.hfm-video__remote .r path { fill: rgba(255, 255, 255, .03); stroke: rgba(190, 202, 240, .2); stroke-width: 1.2; }
.hfm-video__remote .c { fill: rgba(76, 99, 245, .35); stroke: rgba(157, 176, 255, .55); stroke-width: 1.5; }
.hfm-video__btn:hover .hfm-video__art { transform: translate(-50%, -50.5%) rotate(-6deg) scale(1.02); }
.hfm-video__brand {
	position: absolute;
	left: clamp(20px, 5%, 48px);
	bottom: clamp(18px, 7%, 44px);
	max-width: 50%;
	color: var(--hfm-text);
	font-family: var(--hfm-font-display);
	font-size: clamp(1.125rem, .8rem + 1.6vw, 2.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
	text-align: left;
}
.hfm-video__yt {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	top: clamp(14px, 5%, 28px);
	left: clamp(20px, 5%, 48px);
	padding: 5px 11px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	color: var(--hfm-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .04em;
}
.hfm-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: clamp(72px, 9vw, 96px);
	height: clamp(72px, 9vw, 96px);
	border-radius: 50%;
	background: #fff;
	color: var(--hfm-accent);
	box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
	transform: translate(-50%, -50%);
	transition: transform .35s var(--hfm-ease);
}
.hfm-video__play::before {
	content: "";
	position: absolute;
	inset: -14px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	animation: hfm-ring 2.4s var(--hfm-ease) 2 both;
}
.hfm-video__play svg { width: 38%; height: 38%; margin-left: 6%; }
.hfm-video__btn:hover .hfm-video__play { transform: translate(-50%, -50%) scale(1.07); }
.hfm-video iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.hfm-video.is-playing .hfm-video__yt { display: none; }
.hfm-video__note {
	margin-top: 16px;
	color: var(--hfm-subtle);
	font-size: .8125rem;
	text-align: center;
}

/* ---------- Ilmoittautuminen ---------- */
.hfm-notify {
	background:
		radial-gradient(45% 60% at 85% 40%, rgba(109, 77, 242, .22), transparent 70%),
		radial-gradient(40% 50% at 10% 20%, rgba(76, 99, 245, .16), transparent 70%),
		var(--hfm-bg);
	border-top: 1px solid var(--hfm-line);
}
.hfm-split-form { align-items: start; }
.hfm-split-form .hfm-split-copy { padding-top: 12px; }
.hfm-checklist {
	display: grid;
	gap: 14px;
	margin-top: 32px !important;
	padding: 0;
	list-style: none;
}
.hfm-checklist li {
	position: relative;
	padding-left: 40px;
	color: var(--hfm-text);
	font-size: 1rem;
	line-height: 1.5;
}
.hfm-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	box-shadow: 0 6px 14px -6px rgba(76, 99, 245, .9);
	background-image: var(--i-check-w), var(--hfm-grad);
	background-position: center, center;
	background-size: 14px, cover;
	background-repeat: no-repeat;
}
.is-light .hfm-checklist li,
.is-light-alt .hfm-checklist li { color: var(--hfm-ink); }

.hfm-form-card {
	--f-bg: rgba(6, 10, 19, .55);
	--f-border: rgba(190, 202, 240, .2);
	--f-border-hover: rgba(190, 202, 240, .36);
	--f-text: var(--hfm-text);
	--f-muted: var(--hfm-muted);
	--f-label: var(--hfm-text);
	--f-error: var(--hfm-danger);
	position: relative;
	padding: clamp(24px, 3.6vw, 44px);
	border: 1px solid var(--hfm-line-strong);
	border-radius: var(--hfm-radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hfm-form-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(160deg, rgba(157, 176, 255, .55), transparent 40%, transparent 70%, rgba(109, 77, 242, .45));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}
.hfm-form-card.is-on-light,
.is-light .hfm-form-card:not(.is-dark-card) {
	--f-bg: #fff;
	--f-border: rgba(11, 18, 34, .16);
	--f-border-hover: rgba(11, 18, 34, .3);
	--f-text: var(--hfm-ink);
	--f-muted: var(--hfm-ink-muted);
	--f-label: var(--hfm-ink);
	--f-error: var(--hfm-danger-ink);
	background: var(--hfm-white);
	border-color: rgba(11, 18, 34, .08);
	box-shadow: var(--hfm-shadow-card-hover);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.hfm-form-card.is-on-light::before,
.is-light .hfm-form-card::before { display: none; }

/* ---------- Lomakkeet ---------- */
.hfm-form { color: var(--f-text); }
.hfm-form__row--2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}
@media (max-width: 559px) { .hfm-form__row--2 { grid-template-columns: minmax(0, 1fr); } }
.hfm-field { display: grid; gap: 8px; margin-bottom: 20px; align-content: start; }
.hfm-field label {
	color: var(--f-label);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.4;
}
.hfm-field__opt { color: var(--f-muted); font-weight: 400; }
.hfm-field__req { color: var(--hfm-accent-hi); }
.is-on-light .hfm-field__req { color: var(--hfm-accent); }
.hfm-field input[type="text"],
.hfm-field input[type="email"],
.hfm-field select,
.hfm-field textarea {
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid var(--f-border);
	border-radius: var(--hfm-radius-sm);
	background: var(--f-bg);
	color: var(--f-text);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.hfm-field textarea { min-height: 150px; padding: 14px 16px; resize: vertical; }
.hfm-field input:hover,
.hfm-field select:hover,
.hfm-field textarea:hover { border-color: var(--f-border-hover); }
.hfm-field input:focus,
.hfm-field select:focus,
.hfm-field textarea:focus {
	border-color: var(--hfm-accent);
	box-shadow: 0 0 0 4px rgba(76, 99, 245, .28);
	outline: none;
}
.hfm-select { position: relative; }
.hfm-select select { padding-right: 44px; cursor: pointer; }
.hfm-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	background: var(--f-muted);
	-webkit-mask: var(--i-chevron) center / contain no-repeat;
	mask: var(--i-chevron) center / contain no-repeat;
	pointer-events: none;
}
.hfm-select option { background: #0e1628; color: #eef2ff; }
.is-on-light .hfm-select option { background: #fff; color: var(--hfm-ink); }

.hfm-field--check {
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 12px 14px;
	align-items: start;
	margin-top: 4px;
}
.hfm-field--check input[type="checkbox"] {
	position: relative;
	width: 24px;
	height: 24px;
	margin: 0;
	border: 1.5px solid var(--f-border-hover);
	border-radius: 7px;
	background: var(--f-bg);
	cursor: pointer;
	transition: background-color .2s, border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
.hfm-field--check input[type="checkbox"]:checked {
	border-color: transparent;
	background: var(--hfm-grad);
}
.hfm-field--check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	inset: 4px;
	background: #fff;
	-webkit-mask: var(--i-check) center / contain no-repeat;
	mask: var(--i-check) center / contain no-repeat;
}
.hfm-field--check input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 4px rgba(76, 99, 245, .35); outline: none; }
.hfm-field--check label { color: var(--f-muted); font-size: .90625rem; font-weight: 400; line-height: 1.55; cursor: pointer; }
.hfm-field--check label a { color: var(--f-text); }
.hfm-field--check .hfm-field__error { grid-column: 2; }

.hfm-field__error {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--f-error);
	font-size: .84375rem;
	font-weight: 500;
}
.hfm-field__error::before {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: var(--i-alert) center / contain no-repeat;
	mask: var(--i-alert) center / contain no-repeat;
}
.hfm-field.has-error input,
.hfm-field.has-error textarea,
.hfm-field.has-error select { border-color: var(--f-error); }
.hfm-field.has-error input[type="checkbox"] { border-color: var(--f-error); }

.hfm-form__privacy { color: var(--f-muted); font-size: .84375rem; line-height: 1.5; }
.hfm-form__privacy a { color: var(--f-text); }
.hfm-form__actions { margin-top: 24px; }
.hfm-form__actions .hfm-btn { width: 100%; }
.hfm-form.is-sending button[type="submit"] { pointer-events: none; opacity: .75; }
.hfm-form.is-sending button[type="submit"] svg { animation: hfm-nudge .8s ease-in-out infinite; }
.hfm-form__live:empty { display: none; }
.hfm-form__live { margin-top: 14px; color: var(--f-error); font-size: .875rem; }
.hfm-form__alert {
	margin-bottom: 20px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 133, 151, .4);
	border-radius: var(--hfm-radius-sm);
	background: rgba(255, 133, 151, .08);
	color: var(--f-error);
	font-size: .9375rem;
}
.hfm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hfm-form__done {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 28px 8px;
	text-align: center;
	color: var(--f-muted);
	outline: none;
}
.hfm-form__done.is-in { animation: hfm-pop .6s var(--hfm-ease) both; }
.hfm-form-wrap > .hfm-form__done[role="status"]::before {
	content: "";
	display: block;
	background-image: var(--i-check-w), var(--hfm-grad) !important;
	background-size: 30px, cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}
.hfm-form__done-icon,
.hfm-form-wrap > .hfm-form__done[role="status"]::before {
	position: relative;
	width: 72px;
	height: 72px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--hfm-grad);
	box-shadow: 0 16px 40px -12px rgba(76, 99, 245, .95), 0 0 0 10px rgba(76, 99, 245, .12);
}
.hfm-form__done-icon::after {
	content: "";
	position: absolute;
	inset: 22px;
	background: #fff;
	-webkit-mask: var(--i-check) center / contain no-repeat;
	mask: var(--i-check) center / contain no-repeat;
}
.hfm-form__done-title {
	color: var(--f-text);
	font-family: var(--hfm-font-display);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.02em;
}
.hfm-form__done p:last-child { max-width: 30em; font-size: 1rem; }

/* ---------- UKK ---------- */
.hfm-faq-section .hfm-head { margin-bottom: clamp(32px, 4vw, 48px); }
.hfm-faq { border-top: 1px solid var(--hfm-ink-line); }
.hfm-faq > h3 { padding: 22px 0 10px; font-size: 1.125rem; }
.hfm-faq > p { padding-bottom: 22px; color: var(--hfm-ink-muted); border-bottom: 1px solid var(--hfm-ink-line); }
.hfm-faq__item { border-bottom: 1px solid var(--hfm-ink-line); }
.hfm-faq__q { margin: 0; font-size: inherit; }
.hfm-faq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 24px 0;
	border: 0;
	background: none;
	color: var(--hfm-ink);
	font-family: var(--hfm-font-display);
	font-size: clamp(1.0625rem, 1rem + .3vw, 1.21875rem);
	font-weight: 700;
	letter-spacing: -.015em;
	line-height: 1.35;
	text-align: left;
	transition: color .2s;
}
.hfm-faq__btn:hover { color: var(--hfm-accent-ink); }
.hfm-faq__icon {
	position: relative;
	flex: none;
	width: 36px;
	height: 36px;
	border: 1px solid var(--hfm-ink-line);
	border-radius: 50%;
	background: var(--hfm-white);
	transition: background-color .3s, border-color .3s, transform .4s var(--hfm-ease);
}
.hfm-faq__icon::before,
.hfm-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	border-radius: 2px;
	background: var(--hfm-ink);
	transition: transform .4s var(--hfm-ease), background-color .3s;
}
.hfm-faq__icon::after { transform: rotate(90deg); }
.hfm-faq__btn[aria-expanded="true"] .hfm-faq__icon { background: var(--hfm-ink); border-color: var(--hfm-ink); transform: rotate(180deg); }
.hfm-faq__btn[aria-expanded="true"] .hfm-faq__icon::before,
.hfm-faq__btn[aria-expanded="true"] .hfm-faq__icon::after { background: #fff; }
.hfm-faq__btn[aria-expanded="true"] .hfm-faq__icon::after { transform: rotate(0); }
.hfm-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .45s var(--hfm-ease), visibility 0s linear .45s;
	visibility: hidden;
}
.hfm-faq__panel.is-open {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows .45s var(--hfm-ease);
}
.hfm-faq__inner { overflow: hidden; }
.hfm-faq__inner > * {
	max-width: 44em;
	padding-bottom: 26px;
	color: var(--hfm-ink-muted);
	font-size: 1.03125rem;
	line-height: 1.7;
}
.hfm-faq__inner a { color: var(--hfm-accent-ink); font-weight: 600; }

/* ---------- Yritys ---------- */
.hfm-company { text-align: center; }
.hfm-company-copy { max-width: 760px; margin-inline: auto; }
.hfm-company-copy > * + * { margin-top: 20px; }
.hfm-company-copy .hfm-lead { margin-inline: auto; }
.hfm-company .hfm-actions { justify-content: center; margin-top: 36px; }
@media (max-width: 479px) { .hfm-company .hfm-actions .wp-block-button { flex: 1 1 100%; } .hfm-company .hfm-actions .wp-block-button__link { width: 100%; } }
.hfm-company::before {
	content: "";
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 32px;
	border-radius: 20px;
	background: linear-gradient(135deg, #eef1ff, #e6e3ff);
	box-shadow: inset 0 0 0 1px rgba(76, 99, 245, .12);
}
.hfm-company::after {
	content: "";
	position: absolute;
	top: calc(var(--hfm-section-y) + 18px);
	left: 50%;
	width: 28px;
	height: 28px;
	margin-left: -14px;
	background: var(--hfm-accent-ink);
	-webkit-mask: var(--i-pin) center / contain no-repeat;
	mask: var(--i-pin) center / contain no-repeat;
}

/* ---------- Alasivut ---------- */
.hfm-page-hero {
	position: relative;
	padding: calc(var(--hfm-header-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 7vw, 88px);
	background:
		radial-gradient(50% 80% at 85% 0%, rgba(76, 99, 245, .22), transparent 70%),
		radial-gradient(40% 60% at 0% 100%, rgba(109, 77, 242, .12), transparent 70%),
		var(--hfm-bg);
	isolation: isolate;
	overflow: hidden;
}
.hfm-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(60% 90% at 80% 0%, #000, transparent 75%);
	mask-image: radial-gradient(60% 90% at 80% 0%, #000, transparent 75%);
}
.hfm-crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	color: var(--hfm-subtle);
	font-size: .875rem;
	font-weight: 500;
}
.hfm-crumb a { color: var(--hfm-accent-hi); text-decoration: none; }
.hfm-crumb a:hover { text-decoration: underline; }
.hfm-page-title {
	font-size: clamp(2.4rem, 1.4rem + 3.3vw, 4.25rem);
	line-height: 1.03;
	letter-spacing: -.04em;
}
.hfm-page-hero .hfm-lead { margin-top: 20px; }

.hfm-page-body { padding-block: clamp(64px, 8vw, 112px); }

.hfm-story-block {
	position: relative;
	padding-left: clamp(0px, 4vw, 48px);
}
.hfm-story-block + .hfm-story-block { margin-top: clamp(48px, 6vw, 72px); }
.hfm-story-block::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: -40px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--hfm-accent), rgba(109, 77, 242, .1));
}
.hfm-story-block:last-child::before { bottom: 0; }
.hfm-story-block h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); letter-spacing: -.03em; }
.hfm-story-block p { margin-top: 14px; color: var(--hfm-ink-muted); font-size: 1.125rem; line-height: 1.75; }
.hfm-story-block .hfm-actions { margin-top: 28px; }
@media (max-width: 599px) {
	.hfm-story-block { padding-left: 22px; }
}

/* Tarina: johdanto, vuosimerkit ja kuvat */
.hfm-story-lead {
	margin-bottom: clamp(56px, 7vw, 88px);
	padding: clamp(24px, 4vw, 40px);
	border-radius: var(--hfm-radius);
	background: var(--hfm-white);
	box-shadow: var(--hfm-shadow-card);
}
.hfm-story-lead .hfm-story-intro {
	color: var(--hfm-ink);
	font-size: clamp(1.15rem, 1.05rem + .45vw, 1.375rem);
	line-height: 1.6;
}
.hfm-story-lead .hfm-story-sign {
	margin-top: 18px;
	color: var(--hfm-ink-muted);
	font-size: .9375rem;
	font-weight: 600;
}
.hfm-story-block .hfm-story-year {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #eaedfb;
	color: var(--hfm-accent-ink);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.6;
}
.hfm-story-figs {
	display: grid;
	grid-template-columns: minmax(0, 300px);
	gap: 20px;
	margin-top: 28px;
}
.hfm-story-figs.is-pair { grid-template-columns: repeat(2, minmax(0, 260px)); }
.hfm-story-figs .wp-block-image { margin: 0; }
.hfm-story-figs img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--hfm-radius-sm);
	background: var(--hfm-white);
	box-shadow: var(--hfm-shadow-card);
}
.hfm-story-figs figcaption {
	margin-top: 10px;
	color: var(--hfm-ink-muted);
	font-size: .875rem;
	line-height: 1.5;
	text-align: left;
}
@media (max-width: 479px) {
	.hfm-story-figs.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.hfm-story-figs figcaption { font-size: .8125rem; }
}

.hfm-page-body .hfm-split-copy h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -.03em; }
.hfm-page-body .hfm-split-copy > p { color: var(--hfm-ink-muted); font-size: 1.0625rem; }
.hfm-note { padding: 16px 18px; border-radius: var(--hfm-radius-sm); background: #eaedfb; color: var(--hfm-ink) !important; font-size: .96875rem !important; }
.hfm-note a { color: var(--hfm-accent-ink); font-weight: 600; }

.hfm-contact-card {
	margin-top: 28px !important;
	padding: 8px 24px;
	border: 1px solid var(--hfm-ink-line);
	border-radius: var(--hfm-radius);
	background: var(--hfm-white);
	box-shadow: var(--hfm-shadow-card);
}
.hfm-contact-card dl > div {
	display: grid;
	grid-template-columns: 9.5em minmax(0, 1fr);
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--hfm-ink-line);
}
.hfm-contact-card dl > div:last-child { border-bottom: 0; }
.hfm-contact-card dt { color: var(--hfm-ink-muted); font-size: .875rem; font-weight: 500; padding-top: 2px; }
.hfm-contact-card dd { color: var(--hfm-ink); font-weight: 600; }
.hfm-contact-card a { color: var(--hfm-accent-ink); text-decoration: none; }
.hfm-contact-card a:hover { text-decoration: underline; }
@media (max-width: 479px) {
	.hfm-contact-card dl > div { grid-template-columns: 1fr; gap: 2px; }
}

.hfm-legal { color: var(--hfm-ink-muted); font-size: 1.03125rem; line-height: 1.75; }
.hfm-legal > * + * { margin-top: 14px; }
.hfm-legal h2 {
	margin-top: 48px;
	color: var(--hfm-ink);
	font-size: 1.375rem;
	letter-spacing: -.02em;
}
.hfm-legal a { color: var(--hfm-accent-ink); }
.hfm-updated {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #e9ecf8;
	color: var(--hfm-ink) !important;
	font-size: .8125rem !important;
	font-weight: 600;
}
.hfm-updated + h2 { margin-top: 32px; }
.hfm-legal-list { padding-left: 0; list-style: none; }
.hfm-legal-list li { position: relative; padding-left: 24px; }
.hfm-legal-list li + li { margin-top: 10px; }
.hfm-legal-list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .72em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hfm-accent);
}
.hfm-legal strong { color: var(--hfm-ink); }

.hfm-prose { color: var(--hfm-ink-muted); font-size: 1.0625rem; line-height: 1.75; }
.hfm-prose > * + * { margin-top: 1.1em; }
.hfm-prose h2, .hfm-prose h3 { color: var(--hfm-ink); margin-top: 1.8em; }
.hfm-prose a { color: var(--hfm-accent-ink); }
.hfm-postlist { padding: 0; list-style: none; }

/* 404 */
.hfm-404 { min-height: 80vh; display: flex; align-items: center; padding-top: calc(var(--hfm-header-h) + 48px); text-align: center; }
.hfm-404 .hfm-lead { margin: 20px auto 0; }
.hfm-404 .hfm-actions { display: flex; justify-content: center; }
.hfm-404__code {
	font-family: var(--hfm-font-display);
	font-size: clamp(5rem, 3rem + 10vw, 10rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.06em;
	background: var(--hfm-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 8px;
}

/* ---------- Alatunniste ---------- */
.hfm-footer {
	position: relative;
	padding: clamp(64px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom));
	background: var(--hfm-bg-3);
	border-top: 1px solid var(--hfm-line);
	color: var(--hfm-muted);
	font-size: .9375rem;
}
.hfm-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.hfm-footer__brand > * + * { margin-top: 18px; }
.hfm-footer__brand p { max-width: 22em; line-height: 1.6; }
.hfm-footer__brand .hfm-btn { margin-top: 24px; }
.hfm-footer__title {
	margin-bottom: 16px;
	color: var(--hfm-text);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.hfm-footer__col ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.hfm-footer__col a,
.hfm-footer__col .hfm-linkbtn {
	color: var(--hfm-muted);
	text-decoration: none;
	transition: color .2s;
}
.hfm-footer__col a:hover,
.hfm-footer__col .hfm-linkbtn:hover { color: var(--hfm-text); }
.hfm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-top: clamp(48px, 6vw, 72px);
	padding-top: 28px;
	border-top: 1px solid var(--hfm-line);
	font-size: .84375rem;
	color: var(--hfm-subtle);
}
.hfm-footer__safety { display: inline-flex; align-items: center; gap: 8px; }
.hfm-footer__safety svg { flex: none; color: var(--hfm-accent-hi); }
@media (max-width: 899px) {
	.hfm-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hfm-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
	.hfm-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hfm-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Evästebanneri ---------- */
.hfm-consent {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 200;
	width: min(100% - 40px, 460px);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .35s var(--hfm-ease), transform .35s var(--hfm-ease);
}
.hfm-consent.is-visible { opacity: 1; transform: none; }
.hfm-consent__inner {
	padding: 24px;
	border: 1px solid var(--hfm-line-strong);
	border-radius: var(--hfm-radius);
	background: rgba(12, 19, 36, .96);
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	backdrop-filter: blur(20px) saturate(1.4);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
	color: var(--hfm-muted);
	font-size: .90625rem;
	line-height: 1.55;
}
.hfm-consent__title {
	margin-bottom: 8px;
	color: var(--hfm-text);
	font-family: var(--hfm-font-display);
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: -.01em;
}
.hfm-consent__text a { color: var(--hfm-text); }
.hfm-consent__prefs {
	display: grid;
	gap: 0;
	margin-top: 16px;
	border-top: 1px solid var(--hfm-line);
}
.hfm-consent__pref {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--hfm-line);
	cursor: pointer;
}
.hfm-consent__pref p { font-size: .84375rem; }
.hfm-consent__pref-title { color: var(--hfm-text); font-weight: 600; font-size: .90625rem !important; }
.hfm-consent__always { flex: none; color: var(--hfm-accent-hi); font-size: .78125rem; font-weight: 600; }
.hfm-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 18px;
}
.hfm-consent__actions [data-hfm-consent="settings"],
.hfm-consent__actions [data-hfm-consent="save"] { grid-column: 1 / -1; }
.hfm-consent__actions .hfm-btn { width: 100%; }
.hfm-switch { position: relative; flex: none; width: 46px; height: 28px; }
.hfm-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.hfm-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	transition: background-color .25s;
}
.hfm-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
	transition: transform .25s var(--hfm-ease);
}
.hfm-switch input:checked + .hfm-switch__track { background: var(--hfm-accent); }
.hfm-switch input:checked + .hfm-switch__track::after { transform: translateX(18px); }
.hfm-switch input:focus-visible + .hfm-switch__track { outline: 2px solid var(--hfm-accent-hi); outline-offset: 2px; }
@media (max-width: 559px) {
	.hfm-consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
	.hfm-consent__inner { padding: 20px; }
}

/* ---------- Animaatiot ---------- */
.hfm-js .hfm-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .9s var(--hfm-ease), transform .9s var(--hfm-ease);
	transition-delay: var(--d, 0s);
}
.hfm-js .hfm-reveal.is-in { opacity: 1; transform: none; }

.hfm-js .hfm-hero-copy > * { animation: hfm-rise .9s var(--hfm-ease) both; }
.hfm-js .hfm-hero-copy > :nth-child(2) { animation-delay: .06s; }
.hfm-js .hfm-hero-copy > :nth-child(3) { animation-delay: .14s; }
.hfm-js .hfm-hero-copy > :nth-child(4) { animation-delay: .22s; }
.hfm-js .hfm-hero-copy > :nth-child(5) { animation-delay: .3s; }

.hfm-js .hfm-float--msg { animation: hfm-pop .8s var(--hfm-ease) both .7s, hfm-float 3.4s ease-in-out 1.5s 1; }
.hfm-js .hfm-float--note { animation: hfm-pop .8s var(--hfm-ease) both 1s, hfm-float 3.4s ease-in-out 1.8s 1; }

@keyframes hfm-rise { from { opacity: .001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hfm-pop { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hfm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hfm-wave { 0%, 100% { transform: scaleY(var(--h)); } 50% { transform: scaleY(1); } }
@keyframes hfm-pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 149, 255, .7); } 70% { box-shadow: 0 0 0 9px rgba(127, 149, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 149, 255, 0); } }
@keyframes hfm-ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes hfm-drop { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes hfm-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: .001ms !important;
		transition-delay: 0s !important;
	}
	.hfm-js .hfm-reveal { opacity: 1; transform: none; }
}

/* ---------- Tulostus ---------- */
@media print {
	.hfm-header, .hfm-consent, .hfm-footer__bottom .hfm-lang, .hfm-video, .hfm-form-card, .hfm-float { display: none !important; }
	body, .is-dark, .is-light, .is-light-alt { background: #fff !important; color: #000 !important; }
	.hfm-section { padding-block: 24px; }
	.hfm-lead, .hfm-muted, p { color: #222 !important; }
	.hfm-title em, .hfm-hero-title em { color: #000; background: none; }
}
