/* ==========================================================================
   tenoBIT – etusivu
   Mobile first. Kaikki värit, fontit ja välit design tokeneina.
   ========================================================================== */

/* ---------- Fontit ---------- */
@font-face {
  font-family: "Nunito Sans";
  src: url("../assets/fonts/nunito-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokenit ---------- */
:root {
  /* Värit */
  --bg: #FFFFFF;
  --surface: #F5F7F8;         /* vaalea porras osioille ja kehyksille */
  --ink: #2D2727;             /* leipäteksti, lämmin lähes-musta */
  --primary: #345C72;         /* brändin petrolinsininen: otsikot, tummat osiot */
  --primary-deep: #23404F;
  --accent: #F46530;          /* oranssi korostus: painikkeet, yksityiskohdat */
  --accent-text: #B8461C;     /* oranssi pienelle tekstille valkoisella (5.3:1) */
  --card: #FFFFFF;
  --dark: #345C72;            /* tummat osiot: valkoinen teksti 7.2:1 */
  --dark-2: #3E6A82;
  --dark-3: #4B7891;
  --muted: #5E5757;           /* toissijainen teksti valkoisella (6.6:1) */
  --muted-dark: #DCE6EA;      /* toissijainen teksti petrolilla (5.6:1) */
  --line: rgba(45, 39, 39, 0.16);
  --line-dark: rgba(255, 255, 255, 0.2);

  /* Typografia */
  --font: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(2.25rem, 1.45rem + 3.4vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem);
  --fs-h3-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;
  --lh-tight: 1.05;
  --lh-head: 1.15;
  --lh-body: 1.65;
  --track-display: -0.02em;
  --track-head: -0.015em;

  /* Välit */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --max: 1240px;
  --section: clamp(4rem, 2.6rem + 5vw, 7.5rem);
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.25rem;
  --space-l: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  --space-xl: clamp(2.5rem, 1.9rem + 2.4vw, 4.25rem);

  /* Muodot */
  --radius-s: 16px;
  --radius-m: 20px;
  --radius-panel: clamp(20px, 3vw, 48px);
  --radius-pill: 999px;
  --header-h: 72px;

  /* Liike */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 900ms;

  /* z-index */
  --z-header: 100;
  --z-menu: 90;
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h1, h2 { color: var(--primary); }
[data-theme="dark"] h1, [data-theme="dark"] h2 { color: inherit; }
p { text-wrap: pretty; }
address { font-style: normal; }
::selection { background: var(--primary); color: #FFFFFF; }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}
[data-theme="dark"] :focus-visible, .site-header.is-dark :focus-visible { outline-color: #FFFFFF; }

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

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  border-radius: var(--radius-pill);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

main:focus { outline: none; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }

.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  letter-spacing: var(--track-head);
  max-width: 20ch;
}

.section-head {
  display: grid;
  gap: var(--space-m);
  margin-bottom: var(--space-xl);
}
.section-head__text {
  color: var(--muted);
  font-size: var(--fs-lead);
  max-width: 34ch;
}
[data-theme="dark"] .section-head__text { color: var(--muted-dark); }

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: var(--space-l);
  }
  .section-head--split .section-head__text { justify-self: end; }
}

.accent-dot { color: var(--accent); }

.text-link {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) ease;
}
.text-link:hover { color: var(--primary); }

/* ---------- Painikkeet ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 50px;
  padding: 0 1.5rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  touch-action: manipulation;
  transition:
    background-color var(--dur) ease,
    color var(--dur) ease,
    border-color var(--dur) ease,
    transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn__icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur) var(--ease-out);
}
.btn--sm { min-height: 44px; padding: 0 1.25rem; font-size: 0.8125rem; }
.btn--lg { min-height: 54px; padding: 0 1.75rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--primary);
  --btn-bd: var(--primary);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: var(--primary); --btn-fg: #FFFFFF; --btn-bd: var(--primary); }
  .btn:hover .btn__icon { transform: translate(2px, 2px); }
  [data-theme="dark"] .btn:hover,
  .site-header.is-dark .btn:hover { --btn-bg: #FFFFFF; --btn-fg: var(--primary); --btn-bd: #FFFFFF; }
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  min-height: 44px;
  align-items: center;
}
.logo__teno { font-weight: 500; }
.logo__bit { font-weight: 900; color: var(--primary); }
.site-header.is-dark .logo__bit, [data-theme="dark"] .logo__bit { color: inherit; }
.logo__dot {
  width: 0.28em; height: 0.28em;
  margin-left: 0.08em;
  align-self: flex-end;
  margin-bottom: 0.62em;
  background: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  color: var(--ink);
  transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  height: var(--header-h);
}
.site-header.is-scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line); /* taste-skill-ignore: sticky-header */
}
.site-header.is-dark {
  background: var(--dark);
  color: var(--bg);
  box-shadow: 0 1px 0 var(--line-dark); /* taste-skill-ignore: sticky-header */
}

.nav { display: none; margin-left: auto; }
.nav__list { display: flex; gap: 0.25rem; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.875rem; right: 0.875rem; bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.site-header__cta { display: none; margin-left: auto; }

.menu-toggle {
  position: relative;
  width: 48px; height: 48px;
  margin-left: auto;
  margin-right: -10px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  touch-action: manipulation;
}
.menu-toggle__bars { position: relative; width: 24px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
  .menu-toggle { margin-left: 0; }
}
@media (min-width: 1024px) {
  .nav { display: block; }
  .site-header__cta { margin-left: var(--space-s); }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* Mobiilivalikko */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-l);
  min-height: 100%;
  padding-top: var(--space-l);
  padding-bottom: calc(var(--space-l) + env(safe-area-inset-bottom));
}
.mobile-menu__nav ul { display: grid; }
.mobile-menu__nav li a {
  display: flex;
  align-items: center;
  min-height: 64px;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: var(--track-head);
}
.mobile-menu.is-open li { animation: menu-item 420ms var(--ease-out) both; }
.mobile-menu.is-open li:nth-child(2) { animation-delay: 40ms; }
.mobile-menu.is-open li:nth-child(3) { animation-delay: 80ms; }
.mobile-menu.is-open li:nth-child(4) { animation-delay: 120ms; }
.mobile-menu.is-open li:nth-child(5) { animation-delay: 160ms; }
@keyframes menu-item { from { opacity: 0; transform: translateY(12px); } }

.site-header.is-menu-open { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line); } /* taste-skill-ignore: avoin valikko */
body.menu-open { overflow: hidden; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + 4px);
  padding-bottom: var(--space-xl);
}
.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  margin-inline: clamp(8px, 1.2vw, 20px);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-l) clamp(1.25rem, 0.6rem + 3vw, 3rem) var(--space-l);
}
.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin-bottom: var(--space-m);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero__kicker span[aria-hidden] { color: var(--accent); }
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: var(--track-display);
  font-weight: 800;
}
.hero__title .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line__inner { display: inline-block; }
.hero__lead {
  max-width: 34ch;
  margin-top: var(--space-m);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-l);
}

/* Desktop: kuva täyttää alueen, teksti vasemmalla neutraalin häivytyksen päällä */
@media (min-width: 900px) {
  .hero__panel {
    display: block;
    min-height: clamp(520px, calc(100svh - var(--header-h) - 48px), 760px);
  }
  .hero__media { position: absolute; inset: 0; z-index: -1; }
  .hero__media img { height: 100%; aspect-ratio: auto; }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.86) 30%, rgba(255, 255, 255, 0.35) 52%, rgba(255, 255, 255, 0) 64%); /* taste-skill-ignore: neutraali scrim kuvan päällä */
  }
  .hero__content {
    min-height: inherit;
    justify-content: center;
    max-width: min(46%, 620px);
    padding: var(--space-xl) clamp(2rem, 1rem + 3vw, 4.5rem);
  }
}

@media (max-width: 479px) {
  .hero__kicker { letter-spacing: 0.06em; gap: 0.25rem 0.4rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* Hero-sisääntulo: pelkkä CSS, ei riipu JavaScriptistä */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-hero-line] { animation: line-up 1000ms var(--ease-out) both; }
  .hero .line:nth-child(2) [data-hero-line] { animation-delay: 90ms; }
  .hero [data-hero-item] { animation: fade-up 800ms var(--ease-out) both; animation-delay: 260ms; }
  .hero .hero__kicker[data-hero-item] { animation-delay: 0ms; }
  .hero .hero__actions[data-hero-item] { animation-delay: 360ms; }
  .hero__media img { animation: settle 1400ms var(--ease-out) both; }
}
@keyframes settle { from { transform: scale(1.06); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Luottamuspalkki ---------- */
.trust {
  display: grid;
  gap: var(--space-m);
  padding-top: var(--space-l);
}
.trust__title {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--muted);
}
.trust__track {
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); /* taste-skill-ignore */
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); /* taste-skill-ignore */
}
.trust__rail {
  display: flex;
  width: max-content;
  animation: trust-scroll 32s linear infinite;
}
.trust__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}
.trust__item { flex: none; }
.trust__item img {
  width: auto;
  height: calc(var(--h) * 0.8);
}
@keyframes trust-scroll { to { transform: translateX(-50%); } }

/* Vähennetty liike ja desktop: staattinen, rivittyvä logorivi */
@media (prefers-reduced-motion: reduce) {
  .trust__track { margin-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .trust__rail { animation: none; width: auto; }
  .trust__list { flex-wrap: wrap; justify-content: center; gap: var(--space-m) 2rem; padding-right: 0; }
  .trust__list--clone { display: none; }
}
@media (min-width: 900px) {
  .trust { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-l); }
  .trust__title { max-width: 9ch; }
  .trust__track { margin-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .trust__rail { animation: none; width: auto; display: block; }
  .trust__list { flex-wrap: wrap; justify-content: space-between; gap: var(--space-m) clamp(1.5rem, 0.5rem + 2vw, 3rem); padding-right: 0; }
  .trust__list--clone { display: none; }
  .trust__item img { height: calc(var(--h) * 0.85); }
}

/* ==========================================================================
   ONGELMA + HAKUTULOSANIMAATIO
   ========================================================================== */
.problem__head { display: grid; gap: var(--space-m); margin-bottom: var(--space-xl); }
.problem__title { max-width: 22ch; }
.problem__lead { max-width: 58ch; font-size: var(--fs-lead); color: var(--muted); }
.problem__grid { display: grid; gap: var(--space-xl); align-items: center; }
.pains { display: grid; border-top: 1px solid var(--line); }
.pain {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-s);
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.pain__icon { width: 28px; height: 28px; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pain p { font-weight: 600; }

.rank__panel {
  position: relative;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(255, 255, 255, 0.09), transparent 60%), /* taste-skill-ignore */
    var(--primary-deep);
  overflow: hidden;
  color: #FFFFFF;
}
.rank__stage { position: relative; padding: clamp(3.5rem, 2.5rem + 4vw, 4.75rem) clamp(1rem, 0.4rem + 3vw, 3.5rem); }
.rank__browser {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
  padding: 0 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.rank__bar-top { display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.rank__bar-top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.rank__search {
  flex: 1; margin-left: 0.6rem; padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem; color: var(--muted-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank__label { display: flex; align-items: center; gap: 0.45rem; padding: 0.8rem 0.9rem 0.6rem; font-size: 0.75rem; color: var(--muted-dark); }
.rank__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.rank__list { --row: 54px; --gap: 8px; position: relative; display: grid; gap: var(--gap); padding-inline: 0.75rem; transition: opacity 400ms ease; }
.rank__row {
  display: flex; align-items: center; gap: 0.75rem;
  height: var(--row); padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 800ms var(--ease-in-out), background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}
.rank__num { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); font-size: 0.75rem; font-weight: 800; }
.rank__body { display: grid; gap: 5px; flex: 1; min-width: 0; }
.rank__name { font-size: 0.8125rem; font-weight: 700; line-height: 1.1; color: var(--muted-dark); }
.rank__bar { display: block; height: 4px; width: 78%; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.rank__bar--short { width: 52%; }
.rank__row--you { position: relative; z-index: 1; }
.rank__row--you .rank__name { color: #FFFFFF; }
.rank__row--you .rank__num { background: var(--accent); color: var(--ink); }
.rank__row--you .rank__bar { background: rgba(244, 101, 48, 0.55); }
.rank__up { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rank__row--you.is-top {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(244, 101, 48, 0.8);
  box-shadow: 0 0 0 4px rgba(244, 101, 48, 0.16), 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}
/* JS:n kanssa rivit sijoitetaan päällekkäin ja liikutetaan transformilla */
.rank__panel.is-live .rank__list { display: block; height: calc(var(--row) * 4 + var(--gap) * 3); }
.rank__panel.is-live .rank__row { position: absolute; left: 0.75rem; right: 0.75rem; top: 0; }
.rank__list.is-resetting .rank__row { transition: none; }
.rank__list.is-fading { opacity: 0; transition: opacity 300ms ease; }

.rank__chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-pill);
  background: rgba(35, 64, 79, 0.85);
  font-size: 0.75rem; font-weight: 600;
}
.rank__chip--top { top: clamp(0.9rem, 0.6rem + 1.2vw, 1.5rem); left: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); }
.rank__chip--bottom { bottom: clamp(0.9rem, 0.6rem + 1.2vw, 1.5rem); left: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); }
.rank__speed {
  position: absolute; z-index: 2;
  right: clamp(0.75rem, 0.4rem + 1.5vw, 1.75rem); bottom: clamp(0.75rem, 0.4rem + 1.5vw, 1.5rem);
  display: grid; place-items: center; width: 76px; height: 76px;
}
.rank__speed svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.rank__speed circle { fill: rgba(35, 64, 79, 0.9); stroke-width: 6; }
.rank__ring-bg { stroke: rgba(255, 255, 255, 0.12); }
.rank__ring { fill: none !important; stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 21; transition: stroke-dashoffset 1200ms var(--ease-out); }
.rank__panel.is-live .rank__ring { stroke-dashoffset: 213.6; }
.rank__panel.is-live.is-climbed .rank__ring { stroke-dashoffset: 21; }
.rank__speed span { position: relative; font-size: 0.625rem; font-weight: 800; line-height: 1.15; text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.rank__traffic { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.rank__dot {
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(244, 101, 48, 0.35);
  opacity: 0; overflow: hidden;
}
.rank__dot svg { width: 100%; height: 100%; fill: var(--primary-deep); }

@media (min-width: 900px) {
  .problem__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); }
  .rank__list { --row: 58px; }
}
@media (max-width: 479px) {
  .rank__speed { width: 64px; height: 64px; }
  .rank__speed span { font-size: 0.5625rem; }
}

/* ==========================================================================
   3. PALVELUT: kolme korttia vierekkäin
   ========================================================================== */
.cards { display: grid; gap: var(--space-m); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-m);
  background: var(--surface);
  overflow: hidden;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-m) var(--space-m) var(--space-l); }
.card__title { font-size: var(--fs-h3); line-height: var(--lh-head); color: var(--primary); }
.card__desc { margin-top: 0.6rem; }
.card__tags { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--muted); }
.card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding-top: var(--space-s);
  font-weight: 700;
  color: var(--accent-text);
  transition: color var(--dur-fast) ease;
}
.card__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card__link:hover { color: var(--primary); }
  .card__link:hover svg { transform: translate(2px, -2px); }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   REFERENSSIT: liukuva läppäririvi
   ========================================================================== */
.refs { overflow: hidden; }
.refs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}
.refs__text { margin-top: var(--space-m); }
.refs__toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--primary);
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.refs__toggle:active { transform: scale(0.97); }
.refs__toggle[hidden] { display: none; }
.refs__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.refs__toggle .refs__icon--play,
.refs__toggle[aria-pressed="true"] .refs__icon--pause { display: none; }
.refs__toggle[aria-pressed="true"] .refs__icon--play { display: block; }
@media (hover: hover) and (pointer: fine) {
  .refs__toggle:hover { border-color: var(--primary); }
}

.refs__track { --ref-h: clamp(190px, 14rem + 10vw, 380px); }
.refs__rail {
  display: flex;
  width: max-content;
  animation: refs-scroll 80s linear infinite;
}
.refs__list {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
  padding-right: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
}
.ref { flex: none; }
.ref img {
  width: auto;
  height: var(--ref-h);
  animation: refs-float 7s ease-in-out infinite;
}
.ref:nth-child(even) img { animation-delay: -3.5s; }
.ref:nth-child(3n) img { animation-duration: 8.5s; }
.ref__name { margin-top: 0.75rem; padding-left: 8%; font-weight: 800; color: var(--primary); }
.ref__name a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 32px;
  text-decoration: underline;
  text-decoration-color: rgba(52, 92, 114, 0.35);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
}
.ref__ext { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ref__name a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
  .ref__name a:hover .ref__ext { transform: translate(2px, -2px); }
}
.ref__meta { padding-left: 8%; font-size: var(--fs-small); color: var(--muted); }

/* Pysäytys: painike, hiiri tai näppäimistön fokus */
.refs__track.is-paused .refs__rail,
.refs__track.is-paused .ref img { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .refs__track:hover .refs__rail,
  .refs__track:hover .ref img { animation-play-state: paused; }
}

@keyframes refs-scroll { to { transform: translateX(-50%); } }
@keyframes refs-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-12px) rotate(0.6deg); }
}

/* Vähennetty liike: ei automaattista liikettä, rivi vieritetään itse */
@media (prefers-reduced-motion: reduce) {
  .refs__rail { animation: none; width: auto; }
  .ref img { animation: none; }
  .refs__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); }
  .ref { scroll-snap-align: start; }
  .refs__list--clone { display: none; }
  .refs__toggle { display: none; }
}

.btn--dark { --btn-bg: var(--ink); --btn-fg: #FFFFFF; --btn-bd: var(--ink); }

/* ==========================================================================
   7. UKK
   ========================================================================== */

.faq__grid { display: grid; gap: var(--space-l); }
.faq__head .section-head__text { margin-top: var(--space-m); }
.faq__head .h2 { max-width: 20ch; }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }

  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.accordion { border-top: 1px solid var(--line); } /* taste-skill-ignore: accordionin rivijako */
.acc { border-bottom: 1px solid var(--line); } /* taste-skill-ignore */
.acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: 60px;
  padding-block: 1.125rem;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q h3 {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.35;
  transition: color var(--dur-fast) ease;
}
.acc__icon {
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: background-color var(--dur) ease, border-color var(--dur) ease, transform 300ms var(--ease-out);
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease-out);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc__icon { background: var(--accent); border-color: var(--accent); }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__a { padding-bottom: 1.75rem; padding-right: 3.5rem; }
.acc__a p { max-width: 62ch; color: var(--ink); }
.acc__q:focus-visible { outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .acc__q:hover .acc__icon { border-color: var(--primary); }
  .acc__q:hover h3 { color: var(--accent-text); }
}
@media (max-width: 599px) { .acc__a { padding-right: 0; } }

/* Pehmeä avautuminen selaimissa, jotka tukevat sitä (progressiivinen parannus) */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .accordion { interpolate-size: allow-keywords; }
    .acc::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete;
    }
    .acc[open]::details-content { block-size: auto; }
  }
}

/* ==========================================================================
   8. CTA: oranssi tarjouspaneeli ja lupauskortti
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--section);
  background: var(--accent);
  color: var(--ink);
}
.cta__deco {
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 50%;
  width: min(70vw, 620px);
  transform: translateY(-50%);
  fill: rgba(45, 39, 39, 0.07);
}
.cta__deco .pattern__cells > * { transform-box: fill-box; transform-origin: center; }
.cta__inner { display: grid; gap: var(--space-xl); align-items: center; }
.cta .cta__title {
  font-size: clamp(2.125rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: var(--track-display);
  color: var(--ink);
  max-width: 15ch;
}
.cta__text {
  margin-block: var(--space-m) var(--space-l);
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: var(--ink);
}
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }
.cta__phone {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--fs-small);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}
.cta__phone strong { margin-left: 0.3em; }

@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { --btn-bg: var(--primary-deep); --btn-fg: #FFFFFF; --btn-bd: var(--primary-deep); }
}
.cta :focus-visible { outline-color: var(--ink); }

.promise {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-m);
  background: var(--primary-deep);
  color: #FFFFFF;
  box-shadow: 0 30px 60px -30px rgba(35, 64, 79, 0.6);
}
.promise__list { display: grid; }
.promise__list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.85rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 600;
  line-height: 1.45;
}
.promise__list li:first-child { padding-top: 0; }
.promise__check {
  width: 20px; height: 20px; margin-top: 0.05em;
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.promise__person { display: flex; align-items: center; gap: 0.85rem; padding-top: 1.25rem; }
.promise__person img {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; object-position: 50% 8%;
  background: var(--primary);
}
.promise__person p { display: grid; line-height: 1.3; }
.promise__person span { font-size: var(--fs-small); color: var(--muted-dark); }

@media (min-width: 900px) {
  .cta__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 7rem); }
}

/* ==========================================================================
   9. YHTEYDENOTTO
   ========================================================================== */
.contact__grid { display: grid; gap: var(--space-xl); align-items: start; }
.contact__lead { margin-top: var(--space-m); max-width: 36ch; font-size: var(--fs-lead); color: var(--muted); }

.person {
  display: grid;
  grid-template-columns: clamp(112px, 30vw, 160px) minmax(0, 1fr);
  gap: var(--space-m);
  align-items: end;
  margin-top: var(--space-l);
}
.person__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  background: var(--primary);
  overflow: hidden;
  isolation: isolate;
}
.person__photo::before {
  content: "";
  position: absolute;
  right: -30%; bottom: -22%;
  width: 95%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  z-index: -1;
}
.person__photo img { position: absolute; inset: 8% 0 0; width: 100%; height: 92%; object-fit: cover; object-position: 50% 0; }
.person__name { font-size: var(--fs-h3); font-weight: 800; color: var(--primary); line-height: var(--lh-head); }
.person__org { color: var(--muted); font-size: var(--fs-small); }
.person__links { display: grid; gap: 0.25rem; margin-top: var(--space-s); }
.person__links a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px;
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}
.person__text { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 700; }
.person__links svg {
  flex: none; width: 18px; height: 18px;
  fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
  .person__links a:hover { color: var(--accent-text); }
}

/* Lomake */
.form {
  display: grid;
  gap: var(--space-m);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.form__row { display: grid; gap: var(--space-m); }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: var(--fs-small); color: var(--ink); }
.field__req { color: var(--accent-text); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(45, 39, 39, 0.4); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 92, 114, 0.25);
}
.field__error { display: none; font-size: var(--fs-small); font-weight: 600; color: #B42318; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B42318; }
.field.is-invalid .field__error { display: block; }

.choices { border: 0; padding: 0; }
.choices legend { padding: 0; margin-bottom: 0.4rem; }
.choices__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.choice input:checked + span { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.choice input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.choice:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .choice:hover input:not(:checked) + span { border-color: var(--primary); }
}

.form__foot { display: grid; gap: var(--space-s); align-items: center; margin-top: 0.25rem; }
.form__note { font-size: var(--fs-small); color: var(--muted); max-width: 40ch; }
.form__foot .btn { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form__status { font-weight: 700; }
.form__status:empty { display: none; }
.form__status.is-success { color: #1F6B45; }
.form__status.is-error { color: #B42318; }

@media (min-width: 600px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .form__foot { grid-template-columns: minmax(0, 1fr) auto; }
  .form__foot .btn { width: auto; }
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl) clamp(2.5rem, 1rem + 4vw, 6rem); }
  .contact__info { position: sticky; top: calc(var(--header-h) + 2rem); }
  .person { grid-template-columns: 1fr; max-width: 340px; }
  .person__photo { aspect-ratio: 4 / 4.4; }
}

/* ==========================================================================
   PALVELUSIVUT
   ========================================================================== */
.phero { padding-top: calc(var(--header-h) + var(--space-l)); padding-bottom: var(--space-xl); }
.phero__grid { display: grid; gap: var(--space-l); align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: var(--fs-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--accent); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 0.2em; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--ink); }
.phero__title {
  margin-top: var(--space-s);
  font-size: clamp(2rem, 1.45rem + 2vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: var(--track-display);
  max-width: 20ch;
}
.phero__lead { margin-top: var(--space-m); max-width: 46ch; font-size: var(--fs-lead); color: var(--muted); }
.phero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-l); }
.phero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-panel); }

.pintro__grid { display: grid; gap: var(--space-m); }
.pintro .h2 { max-width: 16ch; }
.pintro__text { display: grid; gap: var(--space-s); max-width: 62ch; }
.pintro__text p:first-child { font-size: var(--fs-lead); }

.features { background: var(--surface); }
.features__list { display: grid; gap: var(--space-l) var(--space-m); }
.feature { padding-top: var(--space-s); border-top: 3px solid var(--accent); }
.feature__title { font-size: var(--fs-h3); line-height: var(--lh-head); color: var(--primary); }
.feature p { margin-top: 0.5rem; color: var(--muted); }

.psteps__list { display: grid; gap: var(--space-l); counter-reset: none; }
.pstep { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-s); }
.pstep__num {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #FFFFFF;
  font-weight: 800;
}
.pstep__title { font-size: var(--fs-h3); color: var(--primary); line-height: 44px; }
.pstep p { color: var(--muted); }

.pricing {
  background: var(--ink);
  color: #FFFFFF;
}
.pricing .section-head__text { color: rgba(255, 255, 255, 0.72); }
.pricing__more { display: inline-flex; align-items: center; min-height: 44px; color: #FFFFFF; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.plans { display: grid; gap: var(--space-m); align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.03);
}
.plan__badge {
  position: absolute; top: 0; left: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  transform: translateY(-50%);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: var(--accent); color: var(--ink);
  font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.plan__name { font-size: var(--fs-h3); line-height: 1.2; color: #FFFFFF; }
.plan__goal {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(244, 101, 48, 0.12);
  font-size: var(--fs-small); font-weight: 700; line-height: 1.35;
  color: #FFFFFF;
}
.plan__goal-icon { width: 18px; height: 18px; margin-top: 0.05em; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.plan__desc { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.68); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3em; line-height: 1; margin-block: var(--space-m) var(--space-l); }
.plan__from { font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); font-weight: 300; line-height: 1; color: #FFFFFF; }
.plan__amount {
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  white-space: nowrap;
}
.plan__unit { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.68); }
.plan__extra { margin: calc(var(--space-l) * -1 + 0.6rem) 0 var(--space-l); font-size: var(--fs-small); color: rgba(255, 255, 255, 0.68); }
.plan .btn { margin-bottom: var(--space-l); }
.plan .btn--ghost { --btn-fg: #FFFFFF; --btn-bd: rgba(255, 255, 255, 0.35); }
.plan__list { display: grid; gap: 0.8rem; }
.plan__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0.75rem; color: rgba(255, 255, 255, 0.86); }
.plan__list .plan__all { font-weight: 800; color: #FFFFFF; }
.check { width: 20px; height: 20px; margin-top: 0.15em; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan--popular { border-color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.plan--popular .plan__amount, .plan--popular .plan__from { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .plan .btn--ghost:hover { --btn-bg: #FFFFFF; --btn-fg: var(--ink); --btn-bd: #FFFFFF; }
}
.pricing__note { margin-top: var(--space-l); max-width: 70ch; font-size: var(--fs-small); color: rgba(255, 255, 255, 0.68); }

@media (min-width: 600px) {
  .features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .phero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
  .pintro__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: var(--space-xl); align-items: start; }
  .psteps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-m); }
  .pstep { grid-template-columns: 1fr; row-gap: var(--space-s); }
  .pstep__num { grid-row: auto; }
  .pstep__title { line-height: var(--lh-head); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .features__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: clamp(8px, 1.2vw, 20px);
  padding-block: var(--space-xl) var(--space-m);
  background: var(--surface);
  font-size: var(--fs-small);
}
.footer__grid { display: grid; gap: var(--space-l) var(--space-m); grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; max-width: 40ch; }
.footer__brand p { margin-top: var(--space-s); color: var(--muted); }
.footer__h {
  margin-bottom: var(--space-s);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--fs-label);
  color: var(--primary);
}
.footer__col ul { display: grid; gap: 0.25rem; }
.footer__col a {
  display: inline-flex; align-items: center;
  min-height: 36px;
  transition: color var(--dur-fast) ease;
}
.footer__col li { min-height: 36px; display: flex; align-items: center; }
.placeholder { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover, .footer__bottom a:hover { color: var(--accent-text); }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem var(--space-l);
  margin-top: var(--space-xl);
  color: var(--muted);
}
.footer__bottom a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; transition: color var(--dur-fast) ease; }
.footer__top { margin-left: auto; }
.footer__top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 600px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--space-l); }
  .footer__brand { grid-column: auto; }
}

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