/* Foregon – site styles. Tokens first, then base, layout, components, pages. */

:root {
  /* Foregon brand: navy shield #1d232f, wordmark blue #0763ab, lock blue #1a7fc1 */
  --color-ink: #121822;
  --color-ink-raised: #1d232f;
  --color-ink-line: #2b3444;
  --color-paper: light-dark(#f4f7fb, #0e1218);
  --color-surface: light-dark(#ffffff, #161c25);
  --color-tint: light-dark(#e8eef6, #1b2330);
  --color-text: light-dark(#18212f, #e8ecf2);
  --color-muted: light-dark(#586273, #9ba5b4);
  --color-line: light-dark(#d8e0ea, #2a3240);
  --color-on-dark: #f3f1ec;
  --color-on-dark-muted: #a9b3c4;
  --color-accent: #0763ab;
  --color-accent-hover: #0a72c3;
  --color-accent-text: light-dark(#0763ab, #6db2ec);
  --color-accent-bright: #4aa8ec;
  --color-accent-soft: light-dark(rgb(7 99 171 / 0.1), rgb(109 178 236 / 0.14));
  --color-ok: #4fd1a1;
  --color-warn: #ffc24b;
  --color-alert: #ff6b6b;

  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --radius-small: 10px;
  --radius: 18px;
  --radius-large: 28px;
  --shadow-card: 0 1px 2px rgb(11 19 32 / 0.04), 0 8px 24px rgb(11 19 32 / 0.06);
  --shadow-lift: 0 2px 4px rgb(11 19 32 / 0.06), 0 18px 40px rgb(11 19 32 / 0.12);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(64px, 9vw, 120px);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 760; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 740; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.012em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

:focus-visible { outline: 3px solid var(--color-accent-bright); outline-offset: 3px; border-radius: 4px; }

main:focus { outline: none; }

/* Components set their own display value, so make the hidden attribute always win. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-small);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Anchored sections land below the sticky header. */
:target, [id] { scroll-margin-top: 96px; }

/* Cross-page transitions in supporting browsers: the header stays put, the highlight of the
   current menu item slides to the new page, the old page lifts away and the new one rises in.
   Only opacity and transform are animated, so the transitions stay light on the GPU. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .site-nav__list a[aria-current="page"] { view-transition-name: nav-current; }
  ::view-transition-group(site-header) { animation: none; }
  ::view-transition-group(nav-current) { animation-duration: .4s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  ::view-transition-old(root) { animation: page-out .2s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: page-in .5s cubic-bezier(.16, 1, .3, 1) .06s both; }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout ---------- */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

.section { padding-block: var(--section-space); }
.section--tinted { background: var(--color-tint); }
.section--dark { background: var(--color-ink); color: var(--color-on-dark); }
.section--dark .section-heading__intro, .section--dark p { color: var(--color-on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--color-on-dark); }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .split--wide-right { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

.card-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .card-grid--two, .card-grid--three, .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1020px) {
  .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(11 19 32 / 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  color: var(--color-on-dark);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo__image { display: block; height: 36px; width: auto; }
/* Header logo with the slogan: a little taller so the slogan stays readable. */
.logo__image--header { height: 48px; }
.logo--footer .logo__image { height: 75px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--color-on-dark-muted); text-decoration: none; font-weight: 550; font-size: 0.98rem;
  transition: color .15s, background-color .15s;
}
.site-nav__list a:hover { color: var(--color-on-dark); background: rgb(255 255 255 / 0.06); }
.site-nav__list a[aria-current="page"] { color: var(--color-on-dark); background: rgb(255 255 255 / 0.1); }
.site-nav__actions { display: flex; align-items: center; gap: 16px; }

.menu-toggle { display: none; }

@media (max-width: 959px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--color-ink-line); border-radius: 12px;
    background: transparent; color: var(--color-on-dark); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .2s, opacity .2s; position: relative;
  }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-is-open .menu-toggle__bars { background: transparent; }
  .menu-is-open .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-is-open .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 28px;
    background: var(--color-ink);
    border-bottom: 1px solid var(--color-ink-line);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .menu-is-open .site-nav { display: flex; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: 12px 14px; font-size: 1.1rem; border-radius: 12px; }
  .site-nav__actions { justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--color-ink-line); }
}

/* ---------- Buttons & links ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: progress; transform: none; }
.button--small { min-height: 40px; padding: 8px 18px; font-size: 0.95rem; }
.button--primary { background: var(--color-accent); color: #fff; }
.button--primary:hover { background: var(--color-accent-hover); }
.button--secondary { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.button--secondary:hover { background: var(--color-text); color: var(--color-paper); }
.button--ghost-light { background: transparent; color: var(--color-on-dark); border-color: rgb(255 255 255 / 0.28); }
.button--ghost-light:hover { border-color: var(--color-on-dark); }

.text-link { font-weight: 700; color: var(--color-accent-text); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.section--dark .text-link, .tier--highlighted .text-link, .card--invite .text-link, .contact-card .text-link, .score-meter .text-link, .email-result__header .text-link, .tool-card--dark .text-link { color: var(--color-accent-bright); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.eyebrow--light, .section--dark .eyebrow { color: var(--color-accent-bright); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 46rem; }

/* ---------- Section headings ---------- */

.section-heading { margin-bottom: clamp(32px, 4vw, 52px); max-width: 44rem; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--center .eyebrow { justify-content: center; }
.section-heading__intro { color: var(--color-muted); font-size: 1.1rem; }
.split > .section-heading { margin-bottom: 0; }

.section-more { margin-top: 32px; }

/* ---------- Home hero ---------- */

.home-hero {
  position: relative; overflow: hidden;
  background: var(--color-ink); color: var(--color-on-dark);
  padding-block: clamp(56px, 9vw, 120px) clamp(64px, 10vw, 128px);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.home-hero__glow {
  position: absolute; width: 640px; height: 640px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgb(26 127 193 / 0.32), transparent 65%);
  filter: blur(10px);
}
.home-hero__grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .home-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.home-hero h1 { margin-bottom: 24px; }
.home-hero h1 em { font-style: normal; color: var(--color-accent-bright); }
.home-hero .lead { color: var(--color-on-dark-muted); margin-bottom: 32px; }
.home-hero__note { margin-top: 18px; font-size: 0.92rem; color: var(--color-on-dark-muted); }

.status-card {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-large);
  padding: 22px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transform: rotate(1.2deg);
}
.status-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--color-on-dark-muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.status-card__dots { display: inline-flex; gap: 6px; }
.status-card__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-ink-line); }
.status-card__dots i:first-child { background: var(--color-accent-bright); }
.status-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.04);
}
.status-row__label { color: var(--color-on-dark); }
.status-row__value { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.status-row__value::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.status-row--ok .status-row__value { color: var(--color-ok); }
.status-row--warn .status-row__value { color: var(--color-warn); }
.status-row--alert .status-row__value { color: var(--color-alert); }
.status-card__footer { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; color: var(--color-on-dark); font-size: 0.86rem; min-height: 2.6em; }
.status-card { position: relative; margin: 0; }
.status-card__title { flex: 1; min-width: 0; }
.status-card__title [data-company] { transition: opacity .35s ease; }
.status-card__score { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; margin: -4px 0 16px; color: var(--color-on-dark-muted); font-size: 0.8rem; }
.status-card__score strong { color: #fff; font-size: 1.1rem; min-width: 3ch; font-variant-numeric: tabular-nums; }
.status-card__meter { height: 6px; border-radius: 99px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.status-card__meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--color-alert), var(--color-warn) 45%, var(--color-ok)); background-size: 300px 100%; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.status-row__value, .status-row { transition: color .4s ease, background-color .4s ease, opacity .35s ease; }
.status-row--checking .status-row__value { color: var(--color-on-dark-muted); }
.status-row--checking .status-row__value::before { box-shadow: none; animation: blink 0.9s ease-in-out infinite; }
.status-row.is-fixed { background: rgb(74 222 128 / 0.08); }
.status-row.is-fixed .status-row__value { animation: pop .45s cubic-bezier(.2, .7, .2, 1.4); }
.status-card.is-switching [data-company], .status-card.is-switching .status-card__list { opacity: 0.25; }
.status-card__list { transition: opacity .35s ease; }
.status-card__toggle {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.05);
  color: var(--color-on-dark-muted); cursor: pointer; padding: 0;
}
.status-card__toggle:hover, .status-card__toggle:focus-visible { color: #fff; border-color: rgb(255 255 255 / 0.35); }
.status-card__toggle svg { width: 12px; height: 12px; }
.status-card[data-live-status].is-live .status-card__header { padding-right: 36px; }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes pop { 0% { transform: scale(0.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent-bright); flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(26 127 193 / 0.6); }
  70% { box-shadow: 0 0 0 12px rgb(26 127 193 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(26 127 193 / 0); }
}
@media (max-width: 979px) { .status-card { transform: none; } }

/* ---------- Facts band ---------- */

/* A white card that floats over the bottom edge of the hero. */
.facts { position: relative; z-index: 2; margin-top: -56px; background: transparent; }
.facts__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0; border-radius: var(--radius-large); background: var(--color-surface);
  border: 1px solid var(--color-line); box-shadow: 0 24px 60px rgb(11 19 32 / 0.14); overflow: hidden;
}
@media (min-width: 900px) { .facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { display: grid; gap: 4px; padding: 22px 20px; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--color-line); }
@media (max-width: 899px) {
  .fact:nth-child(3)::before { display: none; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--color-line); }
}
.fact__value {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fact__label { margin: 0; color: var(--color-muted); font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.home-hero { padding-bottom: clamp(96px, 12vw, 150px); }

/* ---------- Myth ---------- */

.myth { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .myth { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.myth__quote { margin: 0; position: relative; padding: 36px 32px; background: var(--color-surface); border-radius: var(--radius-large); box-shadow: var(--shadow-card); }
.myth__quote::before { content: "”"; position: absolute; top: -28px; left: 24px; font-family: Georgia, serif; font-size: 7rem; line-height: 1; color: var(--color-accent); }
.myth__quote p { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 650; line-height: 1.35; letter-spacing: -0.015em; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 24px; padding: 0; }
.tag-list li { padding: 6px 14px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-line); font-size: 0.92rem; font-weight: 600; }
.tag-list--large li { padding: 10px 20px; font-size: 1rem; }

/* ---------- Cards ---------- */

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  background: var(--color-surface); border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.card:has(.card__link):hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 10px; }
/* Long compound words (Swedish, Finnish) hyphenate or break instead of widening the page. */
h1, h2, h3 { hyphens: auto; overflow-wrap: break-word; }
.card { min-width: 0; }
.card p { color: var(--color-muted); }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.card__more { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--color-accent-text); }
.card__meta { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 12px; }
.card__tag {
  align-self: flex-start; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px;
  background: var(--color-accent-soft); color: var(--color-accent-text);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.card__footer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.card__footer .card__more { padding-top: 0; }
.card__pitch { font-weight: 600; color: var(--color-text) !important; }

.card__icon {
  width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px;
  background: var(--color-ink) center / 24px no-repeat;
}
.card__icon--radar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ec' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 12l6-6'/%3E%3C/svg%3E"); }
.card__icon--clipboard { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4h6v3H9zM9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.card__icon--chat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.card__icon--training { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E"); }
.card__icon--person { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3Cpath d='M8.5 16c1-1.6 2.2-2.3 3.5-2.3s2.5.7 3.5 2.3'/%3E%3C/svg%3E"); }

.card--invite { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-dark); }
/* When the invite card would sit alone on the last row, it spans the row instead. */
@media (min-width: 700px) and (max-width: 1019px) {
  .card-grid--three > .card--invite:nth-child(2n + 1) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 8px 28px; }
  .card-grid--three > .card--invite:nth-child(2n + 1) > * { margin: 0; }
  .card-grid--three > .card--invite:nth-child(2n + 1) .button { align-self: center; }
}
@media (min-width: 1020px) {
  .card-grid--three > .card--invite:nth-child(3n + 1) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 8px 28px; }
  .card-grid--three > .card--invite:nth-child(3n + 1) > * { margin: 0; }
  .card-grid--three > .card--invite:nth-child(3n + 1) .button { align-self: center; }
}
.card__icon--ai { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M10 10h4v4h-4zM9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4'/%3E%3C/svg%3E"); }
.card--invite p { color: var(--color-on-dark-muted); }
.card--invite .button { margin-top: auto; align-self: flex-start; color: var(--color-on-dark); border-color: rgb(255 255 255 / 0.4); }
.card--invite .button:hover { background: var(--color-on-dark); color: var(--color-ink); }

.card--package-detail .check-list { margin-block: 4px 8px; }
.card--package-detail .text-link { margin-top: 16px; }

/* ---------- Price ---------- */

.price-tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.price-tag__value { font-family: var(--font-display); font-weight: 760; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--color-text); }
.price-tag__vat { font-size: 0.8rem; color: var(--color-muted); }

.price-box {
  position: sticky; top: 100px;
  padding: 28px; border-radius: var(--radius); background: var(--color-surface);
  border: 1px solid var(--color-line); box-shadow: var(--shadow-card);
}
.price-box__title { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 8px; }
.price-box .price-tag__value { font-size: 2rem; }
.price-box__note { color: var(--color-muted); font-size: 0.95rem; margin: 12px 0 20px; }

/* ---------- Lists ---------- */

.check-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%;
  background: rgb(79 209 161 / 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23138a5e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.check-list--light li { color: var(--color-on-dark); font-size: 1.1rem; }
.check-list--light li::before { background-color: rgb(79 209 161 / 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234fd1a1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E"); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--color-line); }
.steps__item:first-child { border-top: 0; padding-top: 0; }
.steps__number { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--color-accent-text); padding-top: 2px; }
.steps__item h3 { margin-bottom: 6px; }
.steps__item p { color: var(--color-muted); }

/* ---------- Pillars ---------- */

.pillar { padding: 28px 0 0; border-top: 2px solid var(--color-ink-line); }
.pillar__index { display: block; margin-bottom: 18px; font-family: var(--font-mono); color: var(--color-accent-bright); font-weight: 700; }
.pillar--on-light { border-top-color: var(--color-line); }
.pillar--on-light .pillar__index { color: var(--color-accent-text); }
.pillar--on-light p { color: var(--color-muted); }

/* ---------- Team ---------- */

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 64px; height: 64px; border-radius: 20px;
  font-family: var(--font-display); font-weight: 760; font-size: 1.3rem; letter-spacing: -0.02em;
}
.avatar--0 { background: var(--color-accent); color: #fff; }
.avatar--1 { background: var(--color-ink); color: var(--color-on-dark); }
.avatar--2 { background: var(--color-ok); color: var(--color-ink); }
.avatar--3 { background: var(--color-warn); color: var(--color-ink); }

.team-teaser { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .team-teaser { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.team-teaser .section-heading { margin-bottom: 24px; }
.team-teaser__people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.team-teaser__people li { display: flex; align-items: center; gap: 16px; padding: 14px; background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.team-teaser__people .avatar { width: 52px; height: 52px; border-radius: 16px; font-size: 1.1rem; }
.team-teaser__people strong { display: block; }
.team-teaser__people span span, .team-teaser__people li > span:last-child { color: var(--color-muted); font-size: 0.95rem; line-height: 1.4; }
.team-teaser__people strong { color: var(--color-text); font-size: 1.02rem; }

.team-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-large); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.person::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright)); }
.person__header { display: flex; align-items: center; gap: 18px; }
.person__header .avatar { width: 72px; height: 72px; border-radius: 22px; font-size: 1.4rem; }
.person h3 { margin-bottom: 2px; font-size: 1.35rem; }
.person__role { font-weight: 700; color: var(--color-accent-text); margin: 0; }
.person__skills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.person__skills li { padding: 4px 12px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent-text); font-size: 0.85rem; font-weight: 650; }
.person__bio p { color: var(--color-muted); }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0 0 20px; }
.quote p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 650; line-height: 1.35; letter-spacing: -0.015em; }
.quote figcaption { color: var(--color-muted); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq__item { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); }
.faq__item summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-tint); font-size: 1.3rem; font-weight: 500; transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--color-accent); color: #fff; }
.faq__answer { padding: 0 24px 22px; color: var(--color-muted); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative; overflow: hidden;
  background: var(--color-ink); color: var(--color-on-dark);
  padding-block: clamp(56px, 8vw, 104px);
}
.page-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgb(26 127 193 / 0.25), transparent 65%);
}
.page-hero__inner, .page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 20ch; }
.page-hero .lead { color: var(--color-on-dark-muted); }
.page-hero--article h1 { max-width: none; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero .button-row { margin-top: 28px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 0.92rem; color: var(--color-on-dark-muted); }
.breadcrumbs a { color: var(--color-on-dark-muted); }
.breadcrumbs a:hover { color: var(--color-on-dark); }

.not-found__code { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--color-accent-bright); margin-bottom: 16px; }

/* ---------- Prose ---------- */

.prose { font-size: 1.1rem; }
.prose p { color: var(--color-text); }
.prose--light p { color: var(--color-on-dark-muted); }
.prose--article h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 1.8em; }
.prose--article h3 { margin-top: 1.6em; }
.prose--article ul, .prose--article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose--article li { margin-bottom: 0.5em; }
.prose--article li::marker { color: var(--color-accent-text); font-weight: 700; }
.prose--article blockquote { margin: 1.5em 0; padding: 20px 24px; border-left: 4px solid var(--color-accent); background: var(--color-surface); border-radius: 0 var(--radius-small) var(--radius-small) 0; font-size: 1.15rem; font-weight: 600; }
.prose--article a { color: var(--color-accent-text); font-weight: 600; }

/* ---------- Promo / frameworks / banners ---------- */

.promo { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .promo { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } }
.promo h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.promo p { color: var(--color-muted); max-width: 46rem; }
.promo .price-tag { margin-top: 12px; }
.promo--bordered { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-large); background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-card); }
.promo__aside { display: grid; gap: 16px; justify-items: start; }
.promo__aside .price-tag__value { font-size: 1.9rem; }

.frameworks { display: grid; gap: 16px; }
@media (min-width: 860px) { .frameworks { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; } }
.frameworks__title { font-size: 1.5rem; margin: 0; }
.frameworks .tag-list { margin: 0; }

.check-banner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 22px 28px; border-radius: var(--radius-large);
  background: var(--color-ink); color: var(--color-on-dark); text-decoration: none;
  transition: transform .2s;
}
.check-banner:hover { transform: translateY(-2px); }
.check-banner__label { padding: 6px 14px; border-radius: 999px; background: var(--color-ok); color: var(--color-ink); font-weight: 800; }
.check-banner__text { color: var(--color-on-dark-muted); }
.check-banner__text strong { color: var(--color-on-dark); margin-right: 6px; }
.check-banner__arrow { font-size: 1.6rem; color: var(--color-accent-bright); }
@media (max-width: 600px) { .check-banner { grid-template-columns: minmax(0, 1fr); } .check-banner__label { justify-self: start; } .check-banner__arrow { display: none; } }

.fine-print { font-size: 0.9rem; color: var(--color-muted); }
.fine-print--center { text-align: center; margin-top: 28px; }
.outcome-note { margin-top: 8px; font-size: 1.1rem; }

/* ---------- Tiers ---------- */

.tier-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--radius-large);
  background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-card);
}
.tier h3 { font-size: 1.6rem; margin-bottom: 6px; }
.tier__audience { color: var(--color-muted); min-height: 3.2em; }
.tier .price-tag { margin: 8px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--color-line); }
.tier .price-tag__value { font-size: 2.1rem; }
.tier .check-list { margin-bottom: 28px; }
.tier .button { margin-top: auto; }
.tier--highlighted { background: var(--color-ink); color: var(--color-on-dark); border-color: var(--color-ink); box-shadow: var(--shadow-lift); }
.tier--highlighted .tier__audience, .tier--highlighted .price-tag__vat { color: var(--color-on-dark-muted); }
.tier--highlighted .price-tag__value { color: var(--color-on-dark); }
.tier--highlighted .price-tag { border-bottom-color: var(--color-ink-line); }
.tier--highlighted .check-list li::before { background-color: rgb(79 209 161 / 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234fd1a1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E"); }
.tier__badge { position: absolute; top: -14px; left: 28px; padding: 4px 14px; border-radius: 999px; background: var(--color-accent-bright); color: var(--color-ink); font-weight: 800; font-size: 0.82rem; }

/* ---------- Cyber check ---------- */

.cyber-check { display: grid; gap: 18px; }
.cyber-check__progress { position: sticky; top: 72px; z-index: 5; padding: 14px 0; background: var(--color-paper); }
.cyber-check__progress p { margin: 8px 0 0; font-size: 0.92rem; color: var(--color-muted); font-weight: 600; }
.progress-bar { height: 10px; border-radius: 999px; background: var(--color-tint); overflow: hidden; }
.progress-bar__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--color-accent); transition: width .3s ease; }
.progress-bar--score { height: 14px; background: rgb(255 255 255 / 0.12); }
.progress-bar__fill[data-level="good"] { background: var(--color-ok); }
.progress-bar__fill[data-level="fair"] { background: var(--color-warn); }
.progress-bar__fill[data-level="weak"] { background: var(--color-alert); }

.check-question { margin: 0; padding: 24px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); min-width: 0; }
.check-question--missing { border-color: var(--color-alert); box-shadow: 0 0 0 3px rgb(255 107 107 / 0.2); }
.check-question legend { display: contents; }
.check-question__number { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--color-accent-text); letter-spacing: 0.08em; }
.check-question__text { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.check-question__hint { margin: 8px 0 0; color: var(--color-muted); font-size: 0.95rem; }
.check-question__answers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.answer-option { position: relative; flex: 1 1 140px; }
.answer-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.answer-option span {
  display: block; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--color-line);
  text-align: center; font-weight: 700; transition: border-color .15s, background-color .15s;
}
.answer-option input:hover + span { border-color: var(--color-text); }
.answer-option input:focus-visible + span { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.answer-option--yes input:checked + span { border-color: #1f9e70; background: rgb(79 209 161 / 0.16); }
.answer-option--partly input:checked + span { border-color: #c48a12; background: rgb(255 194 75 / 0.2); }
.answer-option--no input:checked + span { border-color: #d24343; background: rgb(255 107 107 / 0.14); }

.form-error, .notice { padding: 14px 18px; border-radius: var(--radius-small); background: rgb(255 107 107 / 0.12); color: #9b1c1c; font-weight: 600; }

.check-result { display: grid; gap: 28px; }
.check-result:focus { outline: none; }
.score-meter { padding: 32px; border-radius: var(--radius-large); background: var(--color-ink); color: var(--color-on-dark); }
.score-meter__label { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-dark-muted); margin-bottom: 6px; }
.score-meter__value { font-family: var(--font-display); font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 16px; }
.score-meter__max { font-size: 1.6rem; color: var(--color-on-dark-muted); }

.result-level__badge { display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; }
.result-level--good .result-level__badge { background: rgb(79 209 161 / 0.2); color: #0f6b4a; }
.result-level--fair .result-level__badge { background: rgb(255 194 75 / 0.28); color: #7a5300; }
.result-level--weak .result-level__badge { background: rgb(255 107 107 / 0.18); color: #9b1c1c; }
.result-level h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.result-level__recommendations { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 700px) { .result-level__recommendations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-package { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.mini-package:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.mini-package span { color: var(--color-muted); font-size: 0.95rem; }
.mini-package .price-tag__value { font-size: 1.1rem; }

.tips { padding: 28px; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); }
.tips__list { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; }
.tips__list li::marker { color: var(--color-accent-text); }

/* ---------- Contact ---------- */

.contact-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; } }
.contact-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-large); background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-card); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--color-line);
  background: var(--color-paper); color: var(--color-text); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-text); box-shadow: 0 0 0 4px rgb(26 127 193 / 0.25); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status[data-kind="success"] { color: #0f6b4a; }
.form-status[data-kind="error"] { color: #9b1c1c; }
.form-status[data-kind="info"] { color: var(--color-muted); }

.contact-aside { display: grid; gap: 24px; }
.contact-card { padding: 28px; border-radius: var(--radius-large); background: var(--color-ink); color: var(--color-on-dark); }
.contact-card h2, .contact-next h2 { font-size: 1.3rem; }
.contact-card__email { font-size: 1.25rem; font-weight: 700; color: var(--color-accent-bright); text-decoration: none; }
.contact-card__email:hover { text-decoration: underline; }
.contact-card__response { color: var(--color-on-dark-muted); }
.contact-next .steps__item { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 0; }
.contact-next .steps__item h3 { font-size: 1.05rem; }
.contact-next .steps__item p { font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--color-ink); color: var(--color-on-dark); padding-block: clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 480px; height: 480px; left: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgb(26 127 193 / 0.28), transparent 65%); }
.cta-band__inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } }
.cta-band p { color: var(--color-on-dark-muted); max-width: 42rem; font-size: 1.1rem; }

/* ---------- Footer (compact) ---------- */

.site-footer { position: relative; background: #0d121a; color: var(--color-on-dark-muted); padding-top: 44px; font-size: 0.92rem; line-height: 1.5; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright), transparent); }
.site-footer__grid { display: grid; gap: 28px 24px; padding-bottom: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: minmax(0, 3.2fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 2.6fr); gap: 40px; }
  .site-footer__brand, .site-footer__contact { grid-column: auto; }
}
.site-footer .logo--footer .logo__image { height: 52px; }
.site-footer__brand p { margin: 12px 0 0; max-width: 22rem; }
.site-footer__title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-on-dark); margin: 4px 0 10px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer__links a { display: inline-block; padding: 4px 0; }
.site-footer a { color: var(--color-on-dark-muted); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--color-on-dark); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__contact p { margin: 0 0 4px; }
.site-footer__email, .site-footer__phone { font-size: 1.02rem; font-weight: 700; color: var(--color-on-dark) !important; }
.site-footer__muted { font-size: 0.85rem; }
.site-footer__contact .button { margin: 10px 12px 0 0; color: #fff; }
.site-footer__contact .button:hover { text-decoration: none; color: #fff; }
.site-footer__social { display: inline-block; margin-top: 12px; }
.site-footer__bottom { border-top: 1px solid var(--color-ink-line); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 14px; font-size: 0.82rem; }
.site-footer__bottom-inner p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer__legal a { display: inline-block; padding: 6px 0; }
.site-footer__no-tracking { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__no-tracking::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-ok); }
.language-pills { display: inline-flex; padding: 2px; border-radius: 999px; background: rgb(255 255 255 / 0.06); border: 1px solid var(--color-ink-line); }
.language-pills a { min-width: 40px; padding: 4px 10px; border-radius: 999px; text-align: center; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; }
.language-pills a[aria-current="true"] { background: var(--color-accent); color: #fff; }
.language-pills a:hover { text-decoration: none; }
@media (max-width: 640px) {
  .site-footer { padding-top: 36px; }
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Additions for editable content ---------- */

.section--compact { padding-block: clamp(28px, 4vw, 48px); }
.check-banner-list { display: grid; gap: 12px; }
.addon-list { display: grid; gap: 24px; }
.avatar--photo { object-fit: cover; padding: 0; background: var(--color-tint); }
.team-teaser__people .avatar--photo { width: 52px; height: 52px; border-radius: 16px; }

.preview-banner {
  position: sticky; top: 0; z-index: 60;
  padding: 8px var(--gutter); text-align: center; font-size: 0.9rem;
  background: var(--color-warn); color: var(--color-ink);
}
.preview-banner + .site-header { top: 37px; }

/* ---------- Small-company sections ---------- */

.section--compact-top { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(24px, 3vw, 40px); }
.home-hero__trust { margin: 10px 0 0; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-on-dark-muted); }
.fit-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .fit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fit-card { position: relative; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-card); }
.fit-card::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: var(--color-accent); }
.fit-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.fit-card p { color: var(--color-muted); margin: 0; }

.chooser { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .chooser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .chooser { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chooser__item {
  display: grid; gap: 8px; height: 100%; padding: 20px 22px; border-radius: var(--radius);
  background: var(--color-surface); border: 1px solid var(--color-line); text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.chooser__item:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.chooser__situation { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.chooser__advice { color: var(--color-accent-text); font-weight: 600; font-size: 0.95rem; }

/* Sticky in-page navigation (packages page). Sits under the sticky header; on narrow
   screens the links wrap onto a second row, so nothing ever scrolls sideways. */
.quick-nav {
  position: sticky; top: 72px; z-index: 40;
  background: color-mix(in srgb, var(--color-paper) 94%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.preview-banner ~ main .quick-nav { top: 109px; }
.quick-nav__list {
  list-style: none; margin: 0; padding: 10px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.quick-nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px;
  border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface);
  color: var(--color-text); font-weight: 600; font-size: 0.95rem; white-space: nowrap; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.quick-nav__link:hover, .quick-nav__link:focus-visible { border-color: var(--color-accent); color: var(--color-accent-text); }
.has-quick-nav [id] { scroll-margin-top: 140px; }
.has-quick-nav #main-content { scroll-margin-top: 0; }
@media (max-width: 599px) {
  .quick-nav__list { gap: 6px; padding: 8px 0; }
  .quick-nav__link { min-height: 36px; padding: 4px 12px; font-size: 0.9rem; }
  .has-quick-nav [id] { scroll-margin-top: 180px; }
}

.card__icon--cloud { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18h10a4 4 0 0 0 .5-8 6 6 0 0 0-11.5 1.5A3.5 3.5 0 0 0 7 18z'/%3E%3C/svg%3E"); }
.card__icon--lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234aa8ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3M12 15v2'/%3E%3C/svg%3E"); }

/* ---------- Mobile refinements ---------- */

@media (max-width: 600px) {
  .home-hero .button-row .button, .page-hero .button-row .button, .cta-band .button-row .button { flex: 1 1 100%; }
  .status-card { padding: 16px; font-size: 0.84rem; }
  .status-row { padding: 10px 12px; }
  .card, .tier, .person { padding: 22px 18px; }
  .promo--bordered { padding: 22px 18px; }
  .fact { padding: 18px 16px; }
  .myth__quote { padding: 28px 22px; }
  .contact-form { padding: 20px 16px; }
  .price-box { position: static; }
  .steps__item { grid-template-columns: 40px minmax(0, 1fr); }
  h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); }
}
@media (max-width: 380px) {
  .logo__image { height: 30px; }
  .logo__image--header { height: 40px; }
}

/* ---------- Email security test ---------- */

.email-check { display: grid; gap: 10px; padding: clamp(20px, 4vw, 32px); border-radius: var(--radius-large); background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-card); }
.email-check__row { display: flex; flex-wrap: wrap; gap: 10px; }
.email-check__row input {
  flex: 1 1 220px; min-width: 0; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--color-line);
  background: var(--color-paper); font: inherit; font-size: 1.1rem; color: var(--color-text);
}
.email-check__row input:focus { outline: none; border-color: var(--color-text); box-shadow: 0 0 0 4px rgb(26 127 193 / 0.25); }
.email-check__row .button { flex: 0 0 auto; }
@media (max-width: 480px) { .email-check__row .button { flex: 1 1 100%; } }
.email-result { display: grid; gap: 20px; }
.email-result:focus { outline: none; }
.email-result__header { padding: 28px; border-radius: var(--radius-large); background: var(--color-ink); color: var(--color-on-dark); }
.email-result__header p { color: var(--color-on-dark-muted); }
.email-result__domain strong { color: var(--color-on-dark); overflow-wrap: anywhere; }
.email-result__grade { display: inline-block; margin: 6px 0 10px; padding: 6px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--color-ink) !important; }
.email-result__grade[data-grade="good"] { background: var(--color-ok); }
.email-result__grade[data-grade="fair"] { background: var(--color-warn); }
.email-result__grade[data-grade="weak"] { background: var(--color-alert); }
.email-result__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.email-check-item { display: grid; gap: 6px; padding: 18px 20px 18px 52px; position: relative; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); }
.email-check-item::before { content: ""; position: absolute; left: 20px; top: 22px; width: 16px; height: 16px; border-radius: 50%; }
.email-check-item--ok::before { background: var(--color-ok); }
.email-check-item--warn::before { background: var(--color-warn); }
.email-check-item--alert::before { background: var(--color-alert); }
.email-check-item span { color: var(--color-muted); }
.email-check-item code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-muted); overflow-wrap: anywhere; background: var(--color-tint); padding: 6px 10px; border-radius: 8px; }
.email-result__cta { padding: 24px; border-radius: var(--radius-large); background: var(--color-tint); }
.email-result__cta h2 { font-size: 1.4rem; }

/* ---------- Free tools ---------- */

.tool-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 30px;
  border-radius: var(--radius-large); text-decoration: none; color: #fff; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.tool-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 0.18), transparent 65%); }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tool-card--dark { background: var(--color-ink); }
.tool-card--blue { background: linear-gradient(135deg, var(--color-accent), #0a4f8a); }
.tool-card h3 { font-size: 1.5rem; margin: 0; color: #fff; }
.tool-card p { color: rgb(255 255 255 / 0.82); margin: 0; }
.tool-card__badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--color-ok); color: var(--color-ink); font-weight: 800; font-size: 0.85rem; }
.tool-card__action { margin-top: auto; font-weight: 700; color: #fff; }
.tier-grid--licenses .tier__more { margin: -12px 0 16px; }

/* ---------- Test switcher ---------- */

.section--tight-top { padding-top: clamp(28px, 4vw, 48px); }
.tool-switcher { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 22px; background: var(--color-tint); width: fit-content; max-width: 100%; }
.tool-switcher a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--color-muted); text-decoration: none; }
.tool-switcher a[aria-current="page"] { background: var(--color-surface); color: var(--color-text); box-shadow: 0 1px 3px rgb(11 19 32 / 0.12); }
.tool-switcher a:hover { color: var(--color-text); }

/* ---------- Subtle motion (disabled when the visitor prefers reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .home-hero__text > * { animation: hero-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero__text > *:nth-child(2) { animation-delay: .08s; }
  .home-hero__text > *:nth-child(3) { animation-delay: .16s; }
  .home-hero__text > *:nth-child(n + 4) { animation-delay: .24s; }
  .status-card { animation: hero-rise .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .status-row { animation: row-in .5s cubic-bezier(.2, .7, .2, 1) both; }
  .status-row:nth-child(1) { animation-delay: .5s; }
  .status-row:nth-child(2) { animation-delay: .62s; }
  .status-row:nth-child(3) { animation-delay: .74s; }
  .status-row:nth-child(4) { animation-delay: .86s; }
  .status-row:nth-child(5) { animation-delay: .98s; }
  .home-hero__glow { animation: glow-drift 14s ease-in-out infinite alternate; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes row-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes glow-drift { to { transform: translate(-60px, 40px) scale(1.08); } }

/* Facts band, refined: icon tile + value + one short, evenly wrapped line. */
.fact { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 22px 24px; }
.fact__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgb(7 99 171 / 0.12), rgb(74 168 236 / 0.18)); color: var(--color-accent); transition: transform .25s ease; }
.fact__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fact__text { display: grid; gap: 2px; min-width: 0; }
.fact__value { font-size: clamp(1.45rem, 2.4vw, 1.85rem); white-space: nowrap; }
.fact__label { font-size: 0.9rem; text-wrap: balance; }
.fact:hover .fact__icon { transform: translateY(-2px) rotate(-4deg); }
@media (min-width: 900px) and (max-width: 1100px) { .fact { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
@media (max-width: 600px) {
  .facts__grid { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 16px 18px; }
  .fact + .fact::before { left: 18px; right: 18px; top: 0; bottom: auto; width: auto; height: 1px; }
  .fact:nth-child(n + 3) { border-top: 0; }
  .fact__icon { width: 40px; height: 40px; border-radius: 12px; }
}

/* Header language switcher: FI · SV · EN */
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.14); }
.language-switch a { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; line-height: 1.4; color: var(--color-on-dark-muted); text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.language-switch a:hover { color: #fff; }
.language-switch a:focus-visible { outline: 2px solid var(--color-accent-bright); outline-offset: 1px; }
.language-switch a[aria-current="true"] { background: rgb(255 255 255 / 0.12); color: #fff; }
/* When the language changes, the highlight slides to the new language. */
@media (prefers-reduced-motion: no-preference) {
  .language-switch a[aria-current="true"] { view-transition-name: language-current; }
  ::view-transition-group(language-current) { animation-duration: .35s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
}

/* Facts band: warmer and easier to read */
.facts__grid { border-color: rgb(216 224 234 / 0.8); box-shadow: 0 1px 2px rgb(11 19 32 / 0.04), 0 24px 56px -12px rgb(11 19 32 / 0.16); }
.fact { align-items: start; padding: 26px 26px; transition: background-color .25s ease; }
.fact:hover { background: linear-gradient(180deg, rgb(232 238 246 / 0.55), rgb(232 238 246 / 0)); }
.fact__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent-soft); }
.fact__icon svg { width: 22px; height: 22px; }
.fact__value { background: none; color: var(--color-text); -webkit-text-fill-color: currentColor; font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.fact__label { color: var(--color-muted); font-weight: 500; font-size: 0.95rem; line-height: 1.45; text-wrap: pretty; }
.fact:hover .fact__icon { transform: translateY(-2px); }
@media (max-width: 600px) { .fact { padding: 18px 20px; } }

/* ---- Skarppi: live demo moment ---- */
.demo-moment { display: grid; gap: 14px; min-width: 0; }
.demo-moment__scenario { border-radius: var(--radius); border: 1px solid var(--color-line); background: var(--color-surface); box-shadow: var(--shadow-card); overflow: hidden; }
.demo-moment__bar { padding: 10px 16px; background: var(--color-tint); border-bottom: 1px solid var(--color-line); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-muted); }
.demo-moment__from { padding: 12px 16px 0; font-size: 0.92rem; color: var(--color-muted); overflow-wrap: anywhere; }
.demo-moment__from strong { color: var(--color-text); }
.demo-moment__subject { padding: 4px 16px 0; font-weight: 700; }
.demo-moment__body { padding: 10px 16px 16px; white-space: pre-line; overflow-wrap: anywhere; }
.demo-moment__question { margin: 4px 0 0; font-size: 1.15rem; }
.demo-moment__choices { display: grid; gap: 10px; }
.demo-moment__choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font: inherit; font-weight: 550; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.demo-moment__choice:hover:not(:disabled) { border-color: var(--color-accent); background: var(--color-accent-soft); }
.demo-moment__choice:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.demo-moment__choice:disabled { cursor: default; }
.demo-moment__choice.is-right { border-color: #1e8a5a; background: #e4f5ec; }
.demo-moment__choice.is-wrong { border-color: #b93a32; background: #fbe9e7; }
.demo-moment__letter { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--color-accent-soft); color: var(--color-accent-text); font-weight: 800; }
.demo-moment__feedback { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); }
.demo-moment__feedback h3, .demo-moment__feedback p { margin: 0; }
.demo-moment__feedback--right { background: #e4f5ec; }
.demo-moment__feedback--wrong { background: #fdf2df; }
.demo-moment__label { font-weight: 700; }
.demo-moment__flags { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.demo-moment__takeaway { padding: 12px 14px; border-left: 4px solid var(--color-accent); background: color-mix(in srgb, var(--color-surface) 60%, transparent); border-radius: 0 12px 12px 0; }
.demo-moment__family { color: var(--color-muted); }
.demo-moment__feedback .button { justify-self: start; }
@media (prefers-reduced-motion: no-preference) {
  .demo-moment__feedback { animation: demo-rise .4s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes demo-rise { from { opacity: 0; transform: translateY(8px); } }
}

/* ---- Skarppi: price calculator ---- */
.price-calc { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 32px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow-card); }
.price-calc__title { grid-column: 1 / -1; margin: 0; font-size: 1.25rem; }
.price-calc__inputs { display: grid; gap: 16px; min-width: 0; }
.price-calc__field { display: grid; gap: 6px; font-weight: 600; }
.price-calc__field input { width: 160px; max-width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--color-line); border-radius: var(--radius-small); }
.price-calc__tiers { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.price-calc__tiers legend { font-weight: 600; margin-bottom: 6px; }
.price-calc__tier { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: var(--radius-small); cursor: pointer; }
.price-calc__tier:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-soft); }
.price-calc__tier span { font-weight: 600; }
.price-calc__tier small { color: var(--color-muted); white-space: nowrap; }
.price-calc__check { display: flex; gap: 10px; align-items: flex-start; }
.price-calc__check input { margin-top: 5px; }
.price-calc__result { display: block; align-self: center; padding: 24px; border-radius: var(--radius-small); background: var(--color-tint); }
.price-calc__big { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-calc__line { display: block; margin-top: 6px; font-variant-numeric: tabular-nums; }
.price-calc__muted { color: var(--color-muted); font-size: 0.92rem; }
.price-calc__vat { grid-column: 1 / -1; margin: 0; color: var(--color-muted); font-size: 0.9rem; }
@media (max-width: 760px) {
  .price-calc { grid-template-columns: minmax(0, 1fr); }
  .price-calc__tier { grid-template-columns: auto minmax(0, 1fr); }
  .price-calc__tier small { grid-column: 2; white-space: normal; }
}

/* Readable sizes and finger-sized tap targets on phones (UI audit 20.10.2026). Text is at least
   12.8 px, and links and controls on their own line are at least 40 px high. */
.site-footer__title { font-size: 0.8rem; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; flex: none; accent-color: var(--color-accent); }
.status-card__toggle { min-width: 40px; min-height: 40px; }
@media (max-width: 760px) {
  .site-footer li a { display: inline-block; padding: 9px 0; }
  .text-link { display: inline-flex; align-items: center; min-height: 40px; }
  .breadcrumbs a { display: inline-block; padding: 10px 2px; }
  .language-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; }
  .language-pills a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; }
}

/* Printing an article or a service page gives the text on white paper: no menus, forms or
   dark backgrounds, and outside links show their address. */
@media print {
  .site-header, .site-footer, .cta-band, .breadcrumbs, .skip-link, .status-card, .button-row, form { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { background: none !important; color: #000 !important; padding: 0 0 12pt !important; }
  .page-hero::after { display: none; }
  .page-hero h1, .page-hero .lead, .page-hero .eyebrow, .prose p { color: #000 !important; }
  .section { padding-block: 10pt !important; background: none !important; }
  .container { max-width: none; padding-inline: 0; }
  .card { box-shadow: none !important; border: 1px solid #bbb; break-inside: avoid; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; overflow-wrap: anywhere; }
  h2, h3 { break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  img, figure, table { break-inside: avoid; }
}

/* Theme: the device setting unless someone chose; data-theme is set by /assets/theme.js. Buttons
   keep the brand blue in both themes; text and links use the lighter --color-accent-text in dark. */
/* Light by default; dark only when the person picks it. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* The theme switch in the footer, next to the language pills. */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.14); }
.theme-switch[hidden] { display: none; }
.theme-switch button { min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px; background: none; color: var(--color-on-dark-muted); font: inherit; font-size: 0.8rem; font-weight: 650; cursor: pointer; }
.theme-switch button:hover { color: #fff; }
.theme-switch button[aria-pressed="true"] { background: rgb(255 255 255 / 0.12); color: #fff; }
.theme-switch button:focus-visible { outline: 2px solid var(--color-accent-bright); outline-offset: 1px; }
@media (max-width: 760px) { .theme-switch button { min-height: 40px; } }

/* Long articles: a short table of contents, and anchors that land below the sticky header. */
.article-toc { margin: 0 0 32px; padding: 18px 22px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); }
.article-toc__title { margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.article-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.article-toc a { color: var(--color-accent-text); text-decoration: none; font-weight: 600; }
.article-toc a:hover { text-decoration: underline; }
.prose--article h2[id] { scroll-margin-top: 96px; }
@media (max-width: 760px) {
  .article-toc li a { display: inline-block; padding: 6px 0; }
}
@media print {
  .article-toc { display: none; }
}

/* Topic chips above the article list. */
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.topic-filter[hidden] { display: none; }
.topic-filter__chip { min-height: 40px; padding: 6px 16px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: inherit; font-weight: 600; cursor: pointer; }
.topic-filter__chip:hover { border-color: var(--color-accent); }
.topic-filter__chip[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.topic-filter__chip:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* "Copy link" under an article's lead, on the dark article header. */
.copy-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; padding: 6px 16px; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; background: rgb(255 255 255 / 0.06); color: var(--color-on-dark); font: inherit; font-weight: 600; cursor: pointer; }
.copy-link:hover { background: rgb(255 255 255 / 0.12); }
.copy-link:focus-visible { outline: 3px solid var(--color-accent-bright); outline-offset: 2px; }
.copy-link[hidden] { display: none; }
@media print { .copy-link { display: none; } }

/* Reading progress on an article: a thin line along the top edge that fills as the reader scrolls.
   Drawn by the browser alone (scroll-driven animation); browsers without it simply show nothing. */
.reading-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .reading-progress {
    display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px;
    background: var(--color-accent-bright); transform-origin: 0 50%; transform: scaleX(0);
    animation: reading-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes reading-progress { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce), print { .reading-progress { display: none; } }

/* A link in an article that leads to another site is marked, so the reader knows before clicking. */
.prose a[rel~="noopener"]::after { content: " ↗" / ""; font-size: 0.85em; }

/* A package opened by its link (/paketit/#partnerPlus) is pointed out. */
.tier:target { outline: 3px solid var(--color-accent-bright); outline-offset: 6px; }
.topic-filter__count { font-weight: 500; opacity: 0.75; }
.article__back { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--color-line); }
@media print { .article__back { display: none; } }

/* ---- Modular pages (src/layout/page-blocks.mjs) ----------------------------------------------------
   A built-in part with a chosen width or spacing gets a wrapper; a free block is a section of its own.
   Widths and spacings are choices, so every block stays readable from a phone to a wide screen. */
.page-block--width-narrow .container { max-width: 820px; }
.page-block--width-normal .container { max-width: var(--container); }
.page-block--width-wide .container { max-width: 1400px; }
.page-block--width-full .container { max-width: none; }
.page-block--space-none > * { padding-block: 0 !important; }
.page-block--space-compact > * { padding-block: clamp(28px, 4vw, 48px) !important; }
.page-block--space-normal > * { padding-block: var(--section-space) !important; }
.page-block--space-roomy > * { padding-block: clamp(88px, 12vw, 160px) !important; }

.free-block { padding-block: var(--section-space); }
.free-block--space-none { padding-block: 0; }
.free-block--space-compact { padding-block: clamp(28px, 4vw, 48px); }
.free-block--space-roomy { padding-block: clamp(88px, 12vw, 160px); }
.free-block--spacer.free-block--space-none { height: 0; }
.free-block--spacer { padding-block: 0; height: var(--section-space); }
.free-block--spacer.free-block--space-compact { height: clamp(28px, 4vw, 48px); }
.free-block--spacer.free-block--space-roomy { height: clamp(88px, 12vw, 160px); }
.free-block--bg-plain { background: var(--color-paper); }
.free-block--bg-accent { background: linear-gradient(135deg, #0763ab, #0a4f8a); color: #fff; }
.free-block--bg-accent p, .free-block--bg-accent .section-heading__intro { color: rgb(255 255 255 / 0.88); }
.free-block--bg-accent .eyebrow { color: #fff; }
.free-block__container--narrow { max-width: 820px; }
.free-block__container--normal { max-width: var(--container); }
.free-block__container--wide { max-width: 1400px; }
.free-block__container--full { max-width: none; }
.free-block--align-center .free-block__container { text-align: center; }
.free-block--align-center .button-row { justify-content: center; }
.free-block--align-center .card, .free-block--align-center .faq, .free-block--align-center .steps { text-align: left; }
.free-block__body { margin-top: 20px; }
.free-block--align-center .free-block__body { margin-inline: auto; max-width: 70ch; text-align: left; }
.free-block .button-row { margin-top: 24px; }

/* Iso otsikko: the page-hero look, also as the first block of a custom page. */
.free-block--hero:not(.free-block--bg-tinted):not(.free-block--bg-plain) { background: var(--color-ink); color: var(--color-on-dark); }
.free-block--hero.free-block--bg-accent { background: linear-gradient(135deg, #0763ab, #0a4f8a); }
.free-hero { max-width: 860px; }
.free-block--align-center .free-hero { margin-inline: auto; }
.free-hero__title { margin: 0; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; }
.free-hero .lead { margin-top: 18px; }
.free-block--hero.free-block--bg-plain .eyebrow--light, .free-block--hero.free-block--bg-tinted .eyebrow--light { color: var(--color-accent-text); }

/* Kuva ja teksti. */
.free-split { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
.free-split__image, .free-figure__image { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
@media (min-width: 860px) {
  .free-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .free-split--small { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .free-split--large { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .free-split--image-end.free-split--small { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .free-split--image-end.free-split--large { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .free-split--image-end .free-split__media { order: 2; }
}
.free-figure { margin: 0; }
.free-figure figcaption { margin-top: 10px; color: var(--color-muted); font-size: 0.92rem; text-align: center; }

/* Luvut. */
.stat-band { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-top: 8px; }
@media (min-width: 860px) {
  .stat-band--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-band--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat-band__item { padding: 20px 4px; border-top: 2px solid var(--color-accent-text); }
.stat-band__value { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 750; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-band__label { margin: 6px 0 0; color: var(--color-muted); }
.section--dark .stat-band__item { border-top-color: var(--color-accent-bright); }

/* Toimintakehote. */
.free-cta { display: grid; gap: 24px; align-items: center; }
.free-cta h2, .free-cta h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.free-cta p { margin: 12px 0 0; }
.free-cta .button-row { margin-top: 0; }
.free-block--align-center .free-cta { justify-items: center; }
@media (min-width: 860px) { .free-block--align-start .free-cta { grid-template-columns: minmax(0, 1fr) auto; } }

/* Hallinta's preview: a block that is pointed at in the editor. */
[data-block-id].is-block-selected { outline: 3px solid #4aa8ec; outline-offset: -3px; }
[data-block-id].is-block-hovered:not(.is-block-selected) { outline: 2px dashed #4aa8ec; outline-offset: -2px; }

/* ---- Website chat (site-chat.js) ------------------------------------------------------------------
   A launcher in the corner; the panel takes its place while open (on a phone it fills the screen).
   One scroll area holds the privacy line, the messages and the options under them, so the
   conversation never shrinks to a slot. Focus rings are 2 px with at least 3:1 contrast (WCAG 2.4.7,
   1.4.11), targets are at least 44 px high, and the layout reflows at 320 px and 200 % zoom (1.4.10). */
.site-chat { --chat-focus: var(--color-accent-text); position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-sans); }
.site-chat [hidden] { display: none !important; }
.site-chat__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-chat button:focus-visible, .site-chat a:focus-visible, .site-chat input:focus-visible, .site-chat textarea:focus-visible, .site-chat__body:focus-visible { outline: 2px solid var(--chat-focus); outline-offset: 2px; }
.site-chat__launcher { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--color-accent); color: #fff; font: inherit; font-weight: 650; box-shadow: var(--shadow-lift); cursor: pointer; }
.site-chat__launcher:hover { background: var(--color-accent-hover); }
.site-chat__launcher:focus-visible { outline-color: var(--color-accent-bright); outline-offset: 3px; }
.site-chat.is-open .site-chat__launcher { display: none; }
.site-chat__unread { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--color-alert); color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 22px; text-align: center; }

.site-chat__panel { display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(680px, calc(100vh - 32px)); height: min(680px, calc(100dvh - 32px)); border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-paper); color: var(--color-text); box-shadow: var(--shadow-lift); overflow: hidden; }
.site-chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--color-line); background: var(--color-ink); color: var(--color-on-dark); }
.site-chat__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent); color: #fff; flex: none; }
.site-chat__heading { display: grid; gap: 2px; min-width: 0; flex: 1; }
.site-chat__title { margin: 0; color: inherit; font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.site-chat__subtitle { color: var(--color-on-dark-muted); font-size: 0.82rem; line-height: 1.4; }
/* A specialist online: a green dot before the line that says so (the words carry the meaning). */
.site-chat__panel.is-live .site-chat__subtitle::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #4ade80; vertical-align: 1px; }
.site-chat__minimise { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; flex: none; }
.site-chat__minimise:hover { background: rgb(255 255 255 / 0.1); }
.site-chat__head :focus-visible { outline-color: var(--color-accent-bright); }

.site-chat__body { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 16px; scrollbar-width: thin; scrollbar-color: var(--color-line) transparent; }
.site-chat__body:focus-visible { outline-offset: -2px; }
.site-chat__privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--color-line); color: var(--color-muted); font-size: 0.8rem; line-height: 1.45; }
.site-chat__privacy .site-chat__icon { width: 16px; height: 16px; margin-top: 1px; }
.site-chat__privacy a { color: var(--color-accent-text); font-weight: 650; }
.site-chat__log { display: flex; flex-direction: column; gap: 10px; }
.site-chat__message { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.94rem; line-height: 1.55; overflow-wrap: anywhere; }
.site-chat__message p { margin: 0; white-space: pre-line; }
.site-chat__message--bot, .site-chat__message--agent { align-self: flex-start; background: var(--color-surface); border: 1px solid var(--color-line); border-bottom-left-radius: 6px; }
.site-chat__message--agent { border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-line)); }
.site-chat__message--me { align-self: flex-end; background: var(--color-accent); color: #fff; border-bottom-right-radius: 6px; }
.site-chat__message--system { align-self: stretch; max-width: none; padding: 8px 12px; background: var(--color-accent-soft); color: var(--color-text); font-size: 0.86rem; border-radius: 12px; }
.site-chat__who { display: block; margin-bottom: 2px; color: var(--color-accent-text); font-size: 0.78rem; font-weight: 700; }
.site-chat__link { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; color: var(--color-accent-text); font-weight: 650; }
.site-chat__message--me .site-chat__link { color: #fff; }

.site-chat__extras { display: grid; gap: 8px; margin-top: 14px; }
.site-chat__extras:empty { display: none; }
.site-chat__label { margin: 6px 0 0; color: var(--color-muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em; }
.site-chat__questions { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); overflow: hidden; }
.site-chat__questions li + li { border-top: 1px solid var(--color-line); }
.site-chat__question { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 0; background: transparent; color: var(--color-text); font: inherit; font-size: 0.92rem; line-height: 1.4; text-align: left; cursor: pointer; }
.site-chat__question .site-chat__icon { width: 18px; height: 18px; color: var(--color-muted); }
.site-chat__question:hover { background: var(--color-accent-soft); color: var(--color-accent-text); }
.site-chat__question:hover .site-chat__icon { color: var(--color-accent-text); }
.site-chat__question:focus-visible { outline-offset: -2px; border-radius: 12px; }
.site-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.site-chat__chips:empty { display: none; }
.site-chat__chip { min-height: 44px; padding: 8px 16px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 0.9rem; font-weight: 600; text-align: left; cursor: pointer; }
.site-chat__chip:hover { border-color: var(--color-accent-text); color: var(--color-accent-text); }
.site-chat__chip--primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.site-chat__chip--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }

.site-chat__composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--color-line); background: var(--color-surface); }
.site-chat__input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 16px; border: 1px solid var(--color-line); border-radius: 999px; background: var(--color-paper); color: var(--color-text); font: inherit; font-size: 16px; }
.site-chat__input::placeholder { color: var(--color-muted); opacity: 1; }
.site-chat__input:focus-visible { border-color: transparent; outline-offset: -1px; }
.site-chat__send { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--color-accent); color: #fff; cursor: pointer; flex: none; }
.site-chat__send:hover { background: var(--color-accent-hover); }

.site-chat__form { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); }
.site-chat__form-title { margin: 0; font-size: 1rem; line-height: 1.35; }
.site-chat__field { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 650; }
.site-chat__field small { color: var(--color-muted); font-weight: 400; }
.site-chat__field input, .site-chat__field textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--color-muted); border-radius: var(--radius-small); background: var(--color-paper); color: var(--color-text); font: inherit; font-size: 16px; font-weight: 400; }
.site-chat__field textarea { resize: vertical; }
.site-chat__room { justify-self: end; margin-top: -6px; color: var(--color-muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.site-chat__room:empty { display: none; }
.site-chat__note { margin: 0; color: var(--color-muted); font-size: 0.84rem; line-height: 1.5; }
.site-chat__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; line-height: 1.5; cursor: pointer; }
.site-chat__consent input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--color-accent); }
.site-chat__consent a { color: var(--color-accent-text); font-weight: 650; }
.site-chat__status { margin: 0; color: var(--color-alert); font-size: 0.86rem; font-weight: 650; }
.site-chat__status:empty { display: none; }
.site-chat__row { display: flex; flex-wrap: wrap; gap: 8px; }
.site-chat__primary, .site-chat__ghost { min-height: 44px; padding: 8px 18px; border-radius: 12px; font: inherit; font-weight: 650; cursor: pointer; }
.site-chat__primary { border: 0; background: var(--color-accent); color: #fff; }
.site-chat__primary:hover { background: var(--color-accent-hover); }
.site-chat__primary[disabled] { opacity: 0.6; cursor: progress; }
.site-chat__ghost { border: 1px solid var(--color-line); background: transparent; color: var(--color-text); }
.site-chat__ghost:hover { border-color: var(--color-accent-text); color: var(--color-accent-text); }
.site-chat__trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
/* The chat button floats over the page end: the footer leaves room for it, so no link hides under it. */
.site-footer { padding-bottom: 76px; }
@media (max-width: 520px) {
  .site-chat { left: 0; right: 0; bottom: 0; align-items: stretch; }
  .site-chat__launcher { align-self: flex-end; margin: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) 0; }
  .site-chat__panel { width: 100%; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .site-chat__head { padding-top: max(12px, env(safe-area-inset-top)); }
  .site-chat__composer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
/* Short windows (a landscape phone, or 200 % zoom): the header keeps to one line. */
@media (max-height: 480px) { .site-chat__subtitle, .site-chat__avatar { display: none; } .site-chat__head { padding-block: 4px; } }
@media (max-width: 380px) { .site-chat__launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .site-chat__launcher { padding: 12px; } }
/* Motion: short and calm, never in the way. */
.site-chat__panel { transform-origin: bottom right; animation: site-chat-open 0.22s cubic-bezier(0.2, 0.8, 0.3, 1); }
.site-chat__message.is-new { animation: site-chat-in 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
.site-chat__extras > * { animation: site-chat-in 0.3s cubic-bezier(0.2, 0.8, 0.3, 1) 0.08s both; }
.site-chat__launcher { transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.site-chat__launcher:hover { transform: translateY(-1px); }
.site-chat__question, .site-chat__chip { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.site-chat__typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 0 16px; border: 1px solid var(--color-line); border-radius: 16px 16px 16px 6px; background: var(--color-surface); animation: site-chat-in 0.2s ease-out both; }
.site-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-muted); animation: site-chat-dot 1.1s ease-in-out infinite; }
.site-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.site-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes site-chat-open { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes site-chat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes site-chat-dot { 0%, 70%, 100% { opacity: 0.35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .site-chat__panel, .site-chat__message.is-new, .site-chat__extras > *, .site-chat__typing, .site-chat__typing span { animation: none; }
  .site-chat__launcher, .site-chat__question, .site-chat__chip { transition: none; }
  .site-chat__launcher:hover { transform: none; }
}
@media (forced-colors: active) { .site-chat__message, .site-chat__questions, .site-chat__form, .site-chat__typing { border: 1px solid CanvasText; } .site-chat__typing span { background: CanvasText; } }
@media print { .site-chat { display: none !important; } }
