/* ============ Fontit (omalta palvelimelta) ============ */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/bricolage.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ Perusasetukset ============ */
:root {
  --bg: #f7f8fb;
  --bg-tint: #eef1f8;
  --card: #ffffff;
  --ink: #14121f;
  --ink-2: #1e1b2e;
  --muted: #6b6878;
  --border: rgba(20, 18, 31, 0.09);
  --violet: #5b3cff;
  --blue: #3b82f6;
  --sky: #38bdf8;
  --ice: #dce4ff;
  --grad: linear-gradient(110deg, var(--violet) 0%, #4a63ff 50%, var(--blue) 100%);
  --radius: 24px;
  --shadow: 0 1px 2px rgba(20, 18, 31, 0.04), 0 12px 32px -12px rgba(20, 18, 31, 0.14);
  --shadow-lg: 0 30px 70px -25px rgba(40, 20, 120, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ice); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 700; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 40px); }
.muted { color: var(--muted); }

.highlight {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s linear infinite alternate;
}
.highlight--light {
  background-image: linear-gradient(110deg, #ffffff, var(--ice), #93b8ff);
  background-size: 200% auto;
}
@keyframes gradientShift { to { background-position: 100% center; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 14px 0 0 -1px var(--blue), 26px 0 0 -2px var(--blue);
  margin-right: 26px;
}
.eyebrow--light { color: var(--ice); }
.eyebrow--light::before { box-shadow: 14px 0 0 -1px rgba(255, 255, 255, 0.75), 26px 0 0 -2px rgba(255, 255, 255, 0.5); }

/* ============ Logo ============ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.logo__dot { color: var(--blue); }
.logo__mark {
  margin-right: 10px;
  position: relative;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--ink);
}
.logo__mark i {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ice);
  animation: nodePulse 3s ease-in-out infinite;
}
.logo__mark i:nth-child(1) { top: 5px; left: 5px; }
.logo__mark i:nth-child(2) { top: 5px; right: 5px; background: var(--blue); animation-delay: 0.4s; }
.logo__mark i:nth-child(3) { bottom: 5px; left: 10.5px; background: #a996ff; animation-delay: 0.8s; }
@keyframes nodePulse { 50% { transform: scale(0.6); } }

/* ============ Latausruutu ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-content: center;
  gap: 22px;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease);
}
.loader__logo { font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; letter-spacing: -0.05em; }
.loader__logo span { color: var(--ice); display: inline-block; animation: bounce 0.6s ease-in-out infinite alternate; }
.loader__bar { width: 180px; height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 9px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); animation: load 0.8s var(--ease) forwards; }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader.is-gone { display: none; }
@keyframes load { to { width: 100%; } }
@keyframes bounce { to { transform: translateY(-10px); } }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 60;
}

/* ============ Navigaatio ============ */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  translate: -50% 0;
  width: min(1200px, 100% - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(1.6);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 16px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.nav__links a:hover { color: var(--ink); background: rgba(20, 18, 31, 0.05); }
.nav__links a.is-active { color: var(--ink); background: var(--ice); }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.nav__burger span {
  position: absolute; left: 11px;
  width: 22px; height: 2px; background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), background 0.3s;
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span { background: #fff; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  gap: 8px;
  clip-path: circle(0% at calc(100% - 48px) 44px);
  transition: clip-path 0.7s var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 48px) 44px); }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s var(--ease), color 0.3s;
}
.mobile-menu a:hover { color: var(--ice); }
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.35s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.4s; }
.nav:has(.nav__burger[aria-expanded="true"]) .logo { color: #fff; }
.nav:has(.nav__burger[aria-expanded="true"]) { background: transparent; box-shadow: none; border-color: transparent; }

/* ============ Napit ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, color 0.4s;
  will-change: transform;
}
.btn--small { padding: 11px 22px; font-size: 0.9rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::after,
.btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ice);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn--dark:hover, .btn--ghost:hover { color: var(--ink); }
.btn--dark:hover::after, .btn--ghost:hover::after { transform: none; }

.btn--primary {
  background: var(--grad);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 14px 36px -12px rgba(91, 60, 255, 0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-position 0.6s;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}
.btn--primary:hover { background-position: 100% center; box-shadow: 0 18px 44px -12px rgba(59, 130, 246, 0.6); }
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary svg { transition: transform 0.3s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1.5px solid var(--ink); background: transparent; }
.btn--block { width: 100%; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 110px;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 18, 31, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 18, 31, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { to { background-position: 64px 64px; } }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.blob--1 { width: 480px; height: 480px; background: #c9bcff; top: -140px; left: -120px; opacity: 0.8; }
.blob--2 { width: 420px; height: 420px; background: #bfd6ff; bottom: -160px; right: 8%; animation-delay: -6s; opacity: 0.8; }
.blob--3 { width: 340px; height: 340px; background: #e3e8ff; top: 25%; right: -80px; animation-delay: -12s; opacity: 0.9; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.92); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__visual { min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 500;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.badge__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ice);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero__title { font-size: clamp(2.9rem, 6vw, 5.8rem); margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .word {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease);
}
.hero__title .highlight { position: relative; }
.is-ready .hero__title .word { transform: none; }
.is-ready .hero__title .line:nth-child(1) .word { transition-delay: 0.05s; }
.is-ready .hero__title .line:nth-child(2) .word:nth-child(1) { transition-delay: 0.15s; }
.is-ready .hero__title .line:nth-child(2) .word:nth-child(2) { transition-delay: 0.22s; }
.is-ready .hero__title .line:nth-child(3) .word { transition-delay: 0.3s; }

.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.92rem; font-weight: 500; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points li::before {
  content: "✓";
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.65rem;
  background: var(--ice);
}

.reveal-hero { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-ready .reveal-hero { opacity: 1; transform: none; }
.hero__lead.reveal-hero { opacity: 1; }
.is-ready .hero__lead { transition-delay: 0.2s; }
.is-ready .hero__cta { transition-delay: 0.55s; }
.is-ready .hero__points { transition-delay: 0.65s; }

/* Selainmockup */
.hero__visual {
  position: relative;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 1.2s var(--ease) 0.4s, transform 1.2s var(--ease) 0.4s;
}
.is-ready .hero__visual { opacity: 1; transform: none; }

.browser {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-12deg) rotateX(6deg);
  transition: transform 0.4s var(--ease);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #faf9f6;
}
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__url {
  margin-left: 14px; flex: 1;
  display: flex; align-items: center;
  font-size: 0.8rem; color: var(--muted);
  background: rgba(20, 18, 31, 0.05);
  padding: 0 12px; border-radius: 8px;
  /* Kiinteä korkeus: kirjoitusanimaation tyhjä/täysi teksti ei saa muuttaa korkeutta (muuten sivu nykii) */
  height: 28px; line-height: 28px;
  white-space: nowrap; overflow: hidden;
  min-width: 0;
}
.browser__url::before { content: "🔒"; font-size: 0.7rem; margin-right: 6px; line-height: 1; }
.caret { display: inline-block; width: 1.5px; height: 14px; background: var(--violet); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.browser__body { padding: 22px; display: grid; gap: 12px; }

.sk {
  border-radius: 8px;
  background: #efedf5;
  position: relative;
  overflow: hidden;
  transform-origin: left;
  transform: scaleX(0);
  animation: build 0.8s var(--ease) forwards;
}
.sk::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.4s infinite;
}
.sk--nav { height: 14px; width: 100%; animation-delay: 1.4s; }
.sk--title { height: 36px; width: 80%; background: var(--grad); animation-delay: 1.6s; }
.sk--text { height: 10px; width: 95%; animation-delay: 1.8s; }
.sk--text.short { width: 60%; animation-delay: 1.9s; }
.sk--btn { height: 34px; width: 130px; border-radius: 999px; background: var(--ink); animation-delay: 2.05s; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.sk--card { height: 90px; animation-delay: 2.2s; }
.sk--card:nth-child(1) { background: #e8e1ff; }
.sk--card:nth-child(2) { background: #dce9ff; animation-delay: 2.3s; }
.sk--card:nth-child(3) { background: #eef1f8; animation-delay: 2.4s; }
@keyframes build { to { transform: scaleX(1); } }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  opacity: 0;
  animation: popIn 0.8s var(--ease) forwards, bob 5s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 1rem; letter-spacing: -0.02em; }
.float-card small { color: var(--muted); }
.float-card__icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: #ece7ff;
  font-size: 1.05rem;
}
.float-card--1 { top: 10%; left: -50px; animation-delay: 2.6s, 3.4s; }
.float-card--2 { bottom: 16%; right: -36px; animation-delay: 2.8s, 3.6s; }
.float-card--2 .float-card__icon { background: #e0ebff; }
.float-card--3 { bottom: -24px; left: 10%; animation-delay: 3s, 3.8s; background: var(--ink); color: #fff; border-color: transparent; }
.float-card--3 small { color: rgba(255, 255, 255, 0.6); }
.float-card--3 .float-card__icon { background: var(--ice); color: var(--ink); font-weight: 700; }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { translate: 0 -12px; } }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px;
  border: 2px solid rgba(20, 18, 31, 0.25);
  border-radius: 20px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--ink);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ============ Marquee ============ */
.marquee {
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink);
  transform: skewY(-1.5deg);
  margin: 10px 0;
  position: relative;
  z-index: 3;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}
.marquee__track .star { color: var(--ice); display: inline-block; animation: spin 6s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 17px)); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Osiot ============ */
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow { color: var(--ice); }
.section__head { margin-bottom: 64px; max-width: 720px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .eyebrow::before { display: none; }
.section__head--row {
  max-width: none;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
}
.section__head--row .muted { max-width: 360px; font-size: 1.05rem; }

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Palvelut ============ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.3s var(--ease), opacity 1s var(--ease), box-shadow 0.4s;
}
.service:hover { box-shadow: var(--shadow-lg); }
.service__glow {
  position: absolute;
  width: 320px; height: 320px;
  left: var(--mx, 50%); top: var(--my, 50%);
  translate: -50% -50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service:hover .service__glow { opacity: 1; }
.service__icon {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--tone);
  margin-bottom: 26px;
  transition: transform 0.5s var(--ease), border-radius 0.5s var(--ease);
}
.service:hover .service__icon { transform: rotate(-10deg) scale(1.1); border-radius: 50%; }
.service__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service h3, .service p { position: relative; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 0.95rem; }
.service__num {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  color: rgba(20, 18, 31, 0.25);
}

/* ============ Bento ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}
.tile {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), opacity 1s var(--ease), box-shadow 0.4s;
}
.tile:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-lg); }
.tile h3 { font-size: 1.6rem; margin-bottom: 10px; }
.tile p { color: var(--muted); }
.tile__kicker {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 18, 31, 0.06);
  margin-bottom: 18px;
}
.tile--big { grid-row: span 2; background: linear-gradient(160deg, #ece7ff, #fff 60%); }
.tile--big h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.tile__orb {
  position: absolute;
  width: 240px; height: 240px;
  right: -80px; top: -80px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--blue), var(--ice), var(--violet));
  filter: blur(40px);
  opacity: 0.35;
  animation: spin 12s linear infinite;
}
.tile--big > *:not(.tile__orb) { position: relative; }
.tile--ice { background: var(--ice); border-color: transparent; }
.tile--ice p { color: rgba(20, 18, 31, 0.7); }
.tile--ice .tile__kicker { background: rgba(20, 18, 31, 0.1); }
.tile--dark { background: var(--ink); color: #fff; border-color: transparent; grid-column: span 2; }
.tile--dark p { color: rgba(255, 255, 255, 0.65); }
.tile--dark .tile__kicker { background: rgba(255, 255, 255, 0.12); }
.tile--blue { background: var(--grad); color: #fff; border-color: transparent; grid-column: 1 / -1; }
.tile--blue p { color: rgba(255, 255, 255, 0.85); }
.tile--blue .tile__kicker { background: rgba(255, 255, 255, 0.2); }

.chat { margin-top: auto; padding-top: 30px; display: grid; gap: 10px; }
.chat__msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.chat__msg--in { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; justify-self: start; }
.chat__msg--out { background: var(--violet); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }
.chat__typing {
  justify-self: start;
  display: flex; gap: 4px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.5s;
}
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.tile.is-visible .chat__msg--in { opacity: 1; transform: none; transition-delay: 0.5s; }
.tile.is-visible .chat__msg--out { opacity: 1; transform: none; transition-delay: 1.4s; }
.tile.is-visible .chat__typing { opacity: 1; transition-delay: 2.3s; }

.speed { margin-top: auto; height: 10px; border-radius: 99px; background: rgba(20, 18, 31, 0.07); overflow: hidden; }
.speed__bar { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--ice)); transition: width 1.6s var(--ease) 0.4s; }
.tile.is-visible .speed__bar { width: 96%; }

/* ============ Lupaukset ============ */
.stats { padding: 80px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat strong, .stat span {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.stat span { color: var(--violet); }
.stat:nth-child(2) span { color: var(--blue); }
.stat:nth-child(3) span { color: var(--violet); }
.stat:nth-child(4) span { color: var(--sky); }
.stat p { color: var(--muted); font-size: 0.95rem; }

/* ============ Esimerkit ============ */
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.example {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 28px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 1s var(--ease);
}
.example:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.example:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.example__screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-tint);
  border: 1px solid var(--border);
}
.example__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.example__bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3e5ec; }
.example__bar span {
  margin-left: 10px;
  font-size: 0.75rem; color: var(--muted);
  background: var(--bg);
  padding: 3px 10px; border-radius: 6px;
}
.example__viewport { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.example__viewport iframe {
  position: absolute; top: 0; left: 0;
  width: 1280px; height: 800px;
  border: 0;
  pointer-events: none;
  transform-origin: 0 0;
  transform: scale(var(--s, 0.4));
}
.example__open {
  white-space: nowrap;
  position: absolute; left: 50%; bottom: 20px;
  translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 14px 30px -10px rgba(20, 18, 31, 0.5);
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.example:hover .example__open { opacity: 1; transform: none; }
.example__info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 12px 10px; }
.example__tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--violet);
  background: #ece9ff;
  padding: 4px 10px; border-radius: 99px;
  margin-bottom: 10px;
}
.example__info h3 { font-size: 1.6rem; margin-bottom: 6px; }
.example__info p { color: var(--muted); font-size: 0.95rem; }
.example__arrow {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-size: 1.2rem;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease), border-color 0.4s;
}
.example:hover .example__arrow { background: var(--violet); border-color: var(--violet); color: #fff; transform: rotate(45deg); }

/* ============ Katselin ============ */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #e9ecf3;
  clip-path: inset(var(--t, 0) var(--r, 0) var(--b, 0) var(--l, 0) round var(--rad, 0px));
  transition: clip-path 0.7s var(--ease);
}
.viewer[hidden] { display: none; }
.viewer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.viewer__title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.viewer__title strong { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: -0.02em; }
.viewer__url { font-size: 0.8rem; color: var(--muted); }
.viewer__devices {
  display: flex; gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-tint);
}
.viewer__devices button {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--muted);
  transition: background 0.3s, color 0.3s;
}
.viewer__devices button.is-active { background: var(--ink); color: #fff; }
.viewer__devices svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.viewer__actions { display: flex; align-items: center; gap: 10px; }
.viewer__newtab { font-size: 0.85rem; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: background 0.3s, color 0.3s; }
.viewer__newtab:hover { background: var(--bg-tint); color: var(--ink); }
.viewer__close {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 1rem;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.viewer__close:hover { transform: rotate(90deg); background: var(--violet); }
.viewer__stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 18px; }
.viewer__frame {
  width: 100%; height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(20, 18, 31, 0.45);
  transition: width 0.6s var(--ease), height 0.6s var(--ease), border-radius 0.6s var(--ease);
}
.viewer__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer[data-device="tablet"] .viewer__frame { width: min(820px, 100%); border-radius: 26px; border: 10px solid var(--ink); }
.viewer[data-device="mobile"] .viewer__frame { width: min(390px, 100%); height: min(820px, 100%); border-radius: 40px; border: 10px solid var(--ink); }
.viewer__cta {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 18px;
  background: var(--ink); color: #fff;
  font-size: 0.92rem;
}
.viewer__cta .btn--small { padding: 9px 18px; }
body.viewer-open { overflow: hidden; }

/* ============ Prosessi ============ */
.timeline { position: relative; display: grid; gap: 26px; padding-left: 70px; max-width: 760px; }
.timeline__line {
  position: absolute; left: 25px; top: 10px; bottom: 10px;
  width: 2px; background: rgba(255, 255, 255, 0.12);
}
.timeline__line span {
  position: absolute; inset: 0;
  background: linear-gradient(var(--ice), var(--sky));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.step { position: relative; }
.step__dot {
  position: absolute; left: -70px; top: 18px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800;
  background: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: background 0.6s, border-color 0.6s, box-shadow 0.6s, color 0.6s;
}
.step.is-visible .step__dot {
  background: var(--ice);
  color: var(--ink);
  border-color: var(--ice);
  box-shadow: 0 0 30px rgba(220, 228, 255, 0.35);
  transition-delay: 0.3s;
}
.step__body {
  padding: 26px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.4s, transform 0.4s var(--ease);
}
.step:hover .step__body { background: rgba(255, 255, 255, 0.09); transform: translateX(6px); }
.step__body h3 { margin-bottom: 8px; }
.step__body p { color: rgba(255, 255, 255, 0.65); }

/* ============ Hinnat ============ */
.pricing__lead a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.pricing__lead { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 22px auto 0; }
.pricing__step {
  display: flex; align-items: center; gap: 16px;
  margin: 0 auto 30px;
  max-width: 1200px;
}
.pricing__step > span {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 800;
}
.pricing__step h3 { font-size: 1.5rem; }
.pricing__step p { color: var(--muted); font-size: 0.92rem; }
.pricing + .pricing__step { margin-top: 80px; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: center; }
.price {
  position: relative;
  padding: 38px 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.4s, opacity 1s var(--ease);
}
.price:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price h3 { font-size: 1.6rem; margin-bottom: 6px; }
.price--featured {
  padding: 50px 32px;
  background: var(--ink);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 40px 80px -30px rgba(91, 60, 255, 0.6);
}
.price--featured .muted, .price--featured .price__unit small { color: rgba(255, 255, 255, 0.6); }
.price--featured li::before { background: var(--ice); color: var(--ink); }
.price--featured .price__old { color: rgba(255, 255, 255, 0.4); }
.price__badge {
  position: absolute; top: -14px; left: 50%; translate: -50% 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--ink);
  font-size: 0.8rem; font-weight: 700;
  animation: wiggle 4s ease-in-out infinite;
}
@keyframes wiggle { 0%, 90%, 100% { rotate: 0deg; } 93% { rotate: -5deg; } 96% { rotate: 5deg; } }
.price__amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 26px 0; }
.price__old { font-size: 1.1rem; color: var(--muted); margin-right: 4px; }
.price__old:empty { display: none; }
.price__from { color: var(--muted); font-size: 0.95rem; }
.price__value {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: inline-block;
  line-height: 1;
}
.price__value--text { font-size: 2.2rem; letter-spacing: -0.03em; }
.price__note { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.price__value.is-flip { animation: flip 0.5s var(--ease); }
@keyframes flip { 0% { opacity: 0; transform: translateY(-20px); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
.price__unit { font-size: 1.3rem; font-weight: 600; }
.price__unit small { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.price li { display: flex; gap: 10px; font-size: 0.95rem; }
.price li::before {
  content: "✓";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem;
  background: #ece7ff;
  color: var(--violet);
}
.price--featured .btn--primary { box-shadow: none; }
.price__monthly {
  margin: -14px 0 24px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--violet);
}
.price--featured .price__monthly { color: #b9c8ff; }
.price__amount { margin-bottom: 8px; }
.price__then { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.price__then small { display: block; font-family: var(--font-body, inherit); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--violet); margin-top: 2px; }
.price--featured .price__then small { color: #b9c8ff; }
.price__year { font-size: 0.88rem; color: var(--muted); margin: 10px 0 26px; padding-top: 12px; border-top: 1px dashed var(--border); }
.price__year b { color: var(--ink); }
.price--featured .price__year { color: rgba(255, 255, 255, 0.7); border-top-color: rgba(255, 255, 255, 0.2); }
.price--featured .price__year b { color: #fff; }

/* Mitä maksat ja milloin */
.paysteps { max-width: 860px; margin: 64px auto 0; }
.paysteps__title { font-size: 1.5rem; margin-bottom: 18px; text-align: center; }
.paysteps ol { list-style: none; display: grid; gap: 12px; }
.paysteps li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: baseline; padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.paysteps li > b { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--violet); white-space: nowrap; }
.paysteps li > span { font-size: 0.95rem; color: var(--muted); }
.paysteps li strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
/* Mitä ylläpito tarkoittaa */
.carebox { max-width: 860px; margin: 22px auto 0; padding: 30px 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.carebox__head h3 { font-size: 1.5rem; margin-bottom: 8px; }
.carebox__head p { color: var(--muted); font-size: 0.98rem; max-width: 680px; }
.carebox__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin-top: 24px; }
.carebox__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.carebox__list li > span { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); font-size: 1.1rem; }
.carebox__list strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 2px; }
@media (max-width: 640px) {
  .carebox { padding: 22px 18px; }
  .carebox__list { grid-template-columns: 1fr; }
}
.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; margin: 22px auto 0; }
.extra { padding: 20px 22px; border-radius: var(--radius); background: var(--bg-tint); }
.extra h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.extra p { font-size: 0.92rem; color: var(--muted); }
.extra strong { color: var(--ink); }
.pricing__exit { margin-inline: auto; }
.pricing__exit a, .pricing__note a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.tile--blue a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .paysteps li { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .extras { grid-template-columns: 1fr; }
}

.pricing__exit {
  display: flex; gap: 18px; align-items: flex-start;
  max-width: 860px;
  margin-top: 22px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--ice);
}
.pricing__exit-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #fff;
  font-size: 1.3rem;
}
.pricing__exit h4 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.pricing__exit p { color: #3f3c52; font-size: 0.95rem; }

/* Tilausmallin valintakortit */
.models { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; max-width: 860px; margin-bottom: 56px; align-items: stretch; }
.model { position: relative; padding: 34px 32px; border-radius: var(--radius); display: flex; flex-direction: column; }
.model h4 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.model__sub { font-size: 0.98rem; margin-bottom: 22px; }
.model ul { list-style: none; display: grid; gap: 14px; }
.model li { display: flex; gap: 10px; font-size: 0.95rem; line-height: 1.5; }
.model li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 0.7rem;
}
.model--main {
  background: linear-gradient(150deg, #5b3cff 0%, #4a63ff 55%, #3b82f6 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.model--main .model__sub { color: #fff; font-weight: 600; }
.model--main li::before { background: rgba(255, 255, 255, 0.22); color: #fff; }
.model__badge {
  position: absolute; top: -13px; left: 28px;
  padding: 5px 14px; border-radius: 999px;
  background: #fff; color: var(--violet);
  font-size: 0.78rem; font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(20, 18, 31, 0.35);
}
.model--flex { background: #fff; border: 1px solid var(--border); color: var(--ink); }
.model--flex .model__sub { color: var(--muted); }
.model--flex li::before { background: var(--bg-tint); color: var(--muted); }
@media (max-width: 760px) {
  .models { grid-template-columns: 1fr; gap: 28px; margin-bottom: 44px; }
  .model--main { transform: none; }
}

/* Hosting & ylläpito */
.care { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 860px; }
.plan {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.4s, opacity 1s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan h4 { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.plan--plus { background: linear-gradient(160deg, #ece9ff, #fff 65%); border-color: rgba(91, 60, 255, 0.25); }
.plan__badge {
  position: absolute; top: -13px; right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--violet); color: #fff;
  font-size: 0.75rem; font-weight: 600;
}
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 22px; }
.plan__price b { font-family: var(--font-head); font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan__price span { font-weight: 600; font-size: 1.1rem; }
.plan__price small { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 0.95rem; }
.plan li::before {
  content: "✓";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem;
  background: #ece7ff;
  color: var(--violet);
}
.pricing__note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 34px; line-height: 1.8; }

/* ============ UKK ============ */
.faq { display: grid; gap: 14px; }
.faq__item {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s, opacity 1s var(--ease), transform 1s var(--ease);
}
.faq__item:hover { box-shadow: var(--shadow); }
.faq__item[open] { border-color: var(--ink); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative; flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-tint);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.faq__item[open] .faq__icon { background: var(--ice); transform: rotate(180deg); }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.4s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 26px 24px; color: var(--muted); }

/* ============ CTA / lomake ============ */
.cta__box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  padding: clamp(32px, 6vw, 70px);
  border-radius: 36px;
  background: var(--violet);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(91, 60, 255, 0.7);
}
.cta__shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta__shape--1 { width: 420px; height: 420px; background: var(--blue); filter: blur(70px); opacity: 0.6; bottom: -220px; left: -120px; animation: float 14s ease-in-out infinite; }
.cta__shape--2 { width: 300px; height: 300px; background: var(--sky); filter: blur(70px); opacity: 0.5; top: -140px; right: 20%; animation: float 16s ease-in-out infinite reverse; }
.cta__text, .form { position: relative; }
.cta__text h2 { margin-bottom: 20px; }
.cta__lead { color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; }
.cta__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cta__list li {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.9rem; font-weight: 500;
}
.countdown { margin-top: 34px; display: grid; gap: 12px; }
.countdown__label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.countdown__units { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown__units span {
  min-width: 64px;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  display: grid;
}
.countdown__units b {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown__units b.tick { animation: tick 0.4s var(--ease); }
@keyframes tick { from { transform: translateY(-6px); opacity: 0.4; } }
.countdown__units small { font-size: 0.72rem; color: rgba(255, 255, 255, 0.7); }

.form {
  display: grid; gap: 14px;
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(20, 18, 31, 0.4);
}
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 24px 18px 10px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  outline: none;
  resize: vertical;
  appearance: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field label {
  position: absolute;
  left: 18px; top: 17px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 60, 255, 0.12);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label { transform: translateY(-10px) scale(0.78); color: var(--violet); }
.field.is-error input, .field.is-error select { border-color: #e5484d; animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Oma pudotusvalikko lomakkeessa */
.dd__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd.dd-open { z-index: 30; }
.dd__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 56px;
  padding: 24px 14px 10px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.dd__btn:hover { border-color: rgba(91, 60, 255, 0.4); }
.dd__btn:focus-visible, .dd.dd-open .dd__btn { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(91, 60, 255, 0.12); }
.dd { display: flex; flex-direction: column; }
.dd__btn { flex: 1; }
.dd__text { flex: 1; min-width: 0; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.dd__arrow { flex: none; color: var(--muted); transition: transform 0.35s var(--ease), color 0.3s; }
.dd.dd-open .dd__arrow { transform: rotate(180deg); color: var(--violet); }
.dd.dd-filled label, .dd.dd-open label, .dd:focus-within label { transform: translateY(-10px) scale(0.78); color: var(--violet); }
.dd.is-error .dd__btn { border-color: #e5484d; animation: shake 0.4s; }
.dd__list {
  position: absolute; left: 0; top: calc(100% + 8px);
  width: max-content; min-width: 100%; max-width: min(360px, calc(100vw - 48px));
  margin: 0; padding: 6px; list-style: none;
  max-height: 340px; overflow: auto;
  background: #fff;
  border: 1.5px solid rgba(91, 60, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(20, 18, 31, 0.28), 0 4px 12px rgba(20, 18, 31, 0.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px) scale(0.97); transform-origin: top center;
  transition: opacity 0.22s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s;
}
.form__row .field:last-child .dd__list { left: auto; right: 0; }
.dd.dd-open .dd__list { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.dd__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  font-size: 0.95rem; cursor: pointer;
  opacity: 0; transform: translateY(-4px);
  transition: background 0.15s, color 0.15s, opacity 0.25s var(--ease), transform 0.3s var(--ease);
}
.dd.dd-open .dd__list li { opacity: 1; transform: none; }
.dd.dd-open .dd__list li:nth-child(2) { transition-delay: 0.02s; }
.dd.dd-open .dd__list li:nth-child(3) { transition-delay: 0.04s; }
.dd.dd-open .dd__list li:nth-child(4) { transition-delay: 0.06s; }
.dd.dd-open .dd__list li:nth-child(n+5) { transition-delay: 0.08s; }
.dd__list li > span { display: grid; gap: 2px; min-width: 0; }
.dd__list li small { font-size: 0.78rem; font-weight: 400; color: var(--muted); line-height: 1.35; }
.dd__list li svg { flex: none; opacity: 0; color: var(--violet); transform: scale(0.6); transition: opacity 0.2s, transform 0.25s var(--ease); }
.dd__list li:hover, .dd__list li.is-active { background: var(--bg-tint); }
.dd__list li[aria-selected="true"] { color: var(--violet); font-weight: 600; }
.dd__list li[aria-selected="true"] svg { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .dd__list, .dd__list li, .dd__arrow { transition: none; }
}

.form__choice { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--bg-tint); }
.form__choice label { flex: 1; position: relative; cursor: pointer; }
.form__choice input { position: absolute; opacity: 0; pointer-events: none; }
.form__choice span {
  display: block;
  padding: 9px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.form__choice input:checked + span { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.form__choice input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.form__row--gap { margin-bottom: 8px; }
.form__check { display: flex; align-items: center; gap: 8px; margin: 0 0 14px 4px; font-size: 0.88rem; color: var(--muted); cursor: pointer; width: fit-content; }
.form__check input { width: 17px; height: 17px; accent-color: var(--violet); cursor: pointer; margin: 0; }
.form__check:hover { color: var(--ink); }
#bid:disabled { opacity: 0.45; cursor: not-allowed; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form__row > .field, .form .field { min-width: 0; }
.style-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.style-pick[hidden] { display: none; }
.collapse {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.4s var(--ease), margin 0.55s var(--ease);
}
.collapse__in { min-height: 0; min-width: 0; overflow: hidden; }
.collapse:not(.is-collapsed):not(.is-anim) > .collapse__in { overflow: visible; }
.collapse.is-collapsed { grid-template-rows: 0fr; opacity: 0; margin-bottom: -14px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .collapse { transition: none; } }
.form__hint { font-size: 0.82rem; color: var(--muted); margin: -4px 0 0; }
.style-pick legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.style-pick legend small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.style-pick__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.style-card {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 6px 10px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.style-card:hover { transform: translateY(-3px); border-color: rgba(91, 60, 255, 0.4); }
.style-card input { position: absolute; opacity: 0; pointer-events: none; }
.style-card__img {
  display: grid; place-items: center;
  aspect-ratio: 3 / 2;
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 6px;
  background: var(--bg-tint);
}
.style-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.style-card:hover .style-card__img img { transform: scale(1.08); }
.style-card__name { font-weight: 600; font-size: 0.82rem; line-height: 1.25; padding: 0 4px; }
.style-card__desc { font-size: 0.72rem; color: var(--muted); line-height: 1.3; padding: 0 4px; }
.style-card__preview {
  align-self: flex-start;
  margin: 6px 4px 0;
  font-size: 0.72rem; font-weight: 600;
  color: var(--violet);
  padding: 0;
}
.style-card__preview:hover { text-decoration: underline; }
/* Valittu kortti */
.style-card:has(input:checked) { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(91, 60, 255, 0.12); }
.style-card::after {
  content: "✓";
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700;
  background: var(--violet); color: #fff;
  box-shadow: 0 4px 10px -2px rgba(91, 60, 255, 0.6);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.style-card:has(input:checked)::after { transform: scale(1); }
.style-card:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
/* Yllätä minut */
.style-card--surprise .style-card__img {
  background: linear-gradient(120deg, #5b3cff, #4a63ff, #3b82f6, #a996ff, #5b3cff);
  background-size: 300% 300%;
  animation: surpriseBg 6s ease-in-out infinite;
}
.style-card__spark { font-size: 1.8rem; animation: spark 2.4s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)); }
@keyframes surpriseBg { 50% { background-position: 100% 50%; } }
@keyframes spark { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(12deg) scale(1.18); } }

.upload { display: grid; gap: 10px; }
.upload__drop {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px dashed rgba(91, 60, 255, 0.35);
  background: #f6f4ff;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.upload__drop:hover, .upload__drop.is-over { border-color: var(--violet); background: #eeeaff; }
.upload__drop.is-over { transform: scale(1.015); }
.upload__icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
  transition: transform 0.4s var(--ease);
}
.upload__drop:hover .upload__icon, .upload__drop.is-over .upload__icon { transform: translateY(-3px); }
.upload__text strong { display: block; font-size: 0.95rem; }
.upload__text small { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.upload__list { list-style: none; display: grid; gap: 6px; }
.upload__list:empty { display: none; }
.upload__list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  animation: fileIn 0.4s var(--ease);
}
.upload__list .upload__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.upload__list .upload__size { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.upload__list button { width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 0.85rem; transition: background 0.3s, color 0.3s; }
.upload__list button:hover { background: #ffe4e4; color: #c7343a; }
.upload__list .is-done .upload__size { color: #1f7a45; }
.upload__error { color: #c7343a; font-size: 0.82rem; }
.upload__progress { height: 8px; border-radius: 99px; background: var(--bg-tint); overflow: hidden; }
.upload__bar {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: var(--grad);
  background-size: 200% 100%;
  animation: barMove 1.2s linear infinite;
  transition: width 0.3s var(--ease);
}
@keyframes barMove { to { background-position: -200% 0; } }
@keyframes fileIn { from { opacity: 0; transform: translateY(-6px); } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.form__privacy { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: -6px; }
.btn:disabled { cursor: progress; }
.form__note { min-height: 1.5em; text-align: center; font-size: 0.9rem; color: #2a9d4b; }
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-success { background: var(--ice); color: var(--ink); }

/* ============ Footer ============ */
.footer { padding: 0 0 40px; overflow: hidden; }
.footer__big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 19vw, 17rem);
  letter-spacing: -0.07em;
  line-height: 0.85;
  text-align: center;
  padding: 60px 0 30px;
  background: linear-gradient(180deg, var(--ink) 30%, rgba(20, 18, 31, 0.05));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}


/* ============ Alasivut (oppaat ja palvelusivut) ============ */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 80px;
}
.lp-hero .container { position: relative; z-index: 2; max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--violet); }
.lp-hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); margin-bottom: 22px; }
.lp-hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin-bottom: 32px; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero .blob--1 { width: 420px; height: 420px; }
.lp-hero .blob--2 { width: 340px; height: 340px; bottom: -200px; }

.prose { max-width: 760px; margin-inline: auto; padding: 20px 0 40px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-top: 64px; }
.prose h3 { font-size: 1.3rem; margin-top: 34px; }
.prose p, .prose li { font-size: 1.07rem; color: #2f2c40; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem;
  background: #ece7ff; color: var(--violet);
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 44px; counter-increment: n; }
.prose ol li::before {
  content: counter(n);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 0.9rem;
  background: var(--ink); color: #fff;
}
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--ice);
}
.callout__icon { flex: none; font-size: 1.4rem; line-height: 1.3; }
.callout p { margin: 0; color: #2f2c40; }

.lp-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 520px; }
.lp-table th, .lp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.lp-table th { font-family: var(--font-head); font-size: 0.95rem; background: #f3f4f9; }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table .is-us td { background: #f1efff; font-weight: 600; }

.lp-cta {
  position: relative;
  overflow: hidden;
  margin: 70px auto 20px;
  max-width: 860px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.lp-cta::before {
  content: "";
  position: absolute; width: 380px; height: 380px; top: -200px; right: -120px;
  border-radius: 50%; background: var(--violet); filter: blur(80px); opacity: 0.6;
}
.lp-cta > * { position: relative; }
.lp-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.lp-cta p { color: rgba(255, 255, 255, 0.75); max-width: 520px; margin: 0 auto 26px; }
.lp-cta .lp-hero__cta { justify-content: center; }
.lp-cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.lp-cta .btn--ghost:hover { color: var(--ink); }

.related { max-width: 860px; margin: 40px auto 0; }
.related h2 { font-size: 1.5rem; margin-bottom: 18px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related__card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.related__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related__card strong { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: -0.02em; }
.related__card span { font-size: 0.88rem; color: var(--muted); }
.related__card--all { background: var(--ink); color: #fff; border-color: transparent; }
.related__card--all span { color: rgba(255, 255, 255, 0.7); }

.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq .faq { margin-top: 22px; }

@media (max-width: 820px) {
  .lp-hero { padding: 120px 0 56px; }
  .related__grid { grid-template-columns: 1fr; }
}

/* ============ 404-sivu ============ */
.nf {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 130px 20px 80px;
  text-align: center;
}
.nf__inner { position: relative; z-index: 2; max-width: 640px; }
.nf__code {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(6px, 2vw, 18px);
  margin-bottom: 30px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(6rem, 26vw, 12rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.nf__digit { display: inline-block; animation: nfBob 4s ease-in-out infinite; }
.nf__digit:last-child { animation-delay: -2s; }
.nf__zero {
  position: relative;
  width: 0.72em; height: 0.92em;
  display: inline-block;
}
.nf__ring {
  position: absolute; inset: 0.08em 0.02em;
  border-radius: 50%;
  border: 0.13em solid var(--ink);
}
.nf__node {
  position: absolute;
  top: 50%; left: 50%;
  width: 0.16em; height: 0.16em;
  margin: -0.08em 0 0 -0.08em;
  border-radius: 50%;
  animation: nfOrbit 6s linear infinite;
}
.nf__node--1 { background: var(--violet); }
.nf__node--2 { background: var(--blue); animation-delay: -2s; }
.nf__node--3 { background: #a996ff; animation-delay: -4s; }
.nf h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.nf__lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
.nf__cta { justify-content: center; }
.nf__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 40px;
  font-size: 0.92rem;
}
.nf__links p { width: 100%; color: var(--muted); margin-bottom: 4px; }
.nf__links a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.nf__links a:hover { transform: translateY(-2px); border-color: var(--violet); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px 40px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.footer__brand p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 280px; }
.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer__col a, .footer__col span { display: block; padding: 5px 0; font-size: 0.93rem; color: var(--ink); }
.footer__col a { position: relative; width: fit-content; transition: color 0.3s; }
.footer__col a::after {
  content: ""; position: absolute; left: 0; bottom: 3px;
  width: 100%; height: 1.5px; background: var(--violet);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.footer__col a:hover { color: var(--violet); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__col a[aria-current="page"] { color: var(--violet); font-weight: 600; }
.footer__col span { color: var(--muted); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
}
.footer__fi { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.footer__flag { width: 22px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px var(--border); }
.footer--slim { padding-top: 0; }
.footer--slim .footer__grid { border-top: 0; }

@keyframes nfBob { 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes nfOrbit {
  from { transform: rotate(0deg) translateX(0.36em) rotate(0deg) scaleY(1.25); }
  to { transform: rotate(360deg) translateX(0.36em) rotate(-360deg) scaleY(1.25); }
}

/* ============ Responsiivisuus ============ */
@media (max-width: 1320px) {
  .float-card--1 { left: -16px; }
  .float-card--2 { right: -12px; }
}
@media (max-width: 1024px) {
  .examples { grid-template-columns: repeat(2, 1fr); }
  .float-card--1 { left: -8px; }
  .float-card--2 { right: -8px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 80px; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pricing__step { max-width: 460px; }
  .care { max-width: 460px; margin-inline: auto; }
  .pricing__exit { max-width: 460px; margin-inline: auto; }
  .cta__box { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--big { grid-row: span 1; grid-column: span 2; }
}

@media (max-width: 820px) {
  .nav__links, .nav .btn--small { display: none; }
  .nav__burger { display: block; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .examples { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .viewer__devices span, .viewer__newtab { display: none; }
  .viewer__cta span { display: none; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .services, .bento, .care { grid-template-columns: 1fr; }
  .footer__grid { gap: 28px 20px; padding-top: 34px; }
  .footer__col a, .footer__col span { font-size: 0.9rem; }
  .tile--big, .tile--blue, .tile--dark { grid-column: auto; }
  .float-card--1 { top: -20px; }
  .float-card { padding: 9px 13px 9px 9px; }
  .float-card small { display: none; }
  .timeline { padding-left: 56px; }
  .timeline__line { left: 19px; }
  .step__dot { left: -56px; width: 40px; height: 40px; }
  .form { padding: 20px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .style-pick__grid { gap: 8px; grid-template-columns: repeat(2, 1fr); }
  .style-card { padding: 5px 5px 8px; }
  .style-card::after { top: 8px; right: 8px; width: 20px; height: 20px; }
  /* Yhteydenotto puhelimella: vähemmän sisennystä, jotta sisältö ei kutistu keskelle */
  .cta .container { width: calc(100% - 24px); }
  .cta__box { padding: 30px 18px 18px; border-radius: 28px; gap: 30px; }
  .cta__text h2 { font-size: 2.2rem; }
  .countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .countdown__units span { min-width: 0; }
  .pricing__exit { flex-direction: column; gap: 12px; padding: 22px; }
  .form__choice span { font-size: 0.78rem; padding: 9px 4px; }
}

/* Kosketusnäytöt: ei hover-riippuvaisia asioita */
@media (hover: none) {
  .example__open { opacity: 1; transform: none; }
  .example:hover, .tile:hover, .price:hover, .plan:hover { transform: none; }
}

/* Puhelin: kevyemmät efektit ja litteä mockup */
@media (max-width: 820px) {
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero__grid { animation: none; }
  .blob { animation: none; filter: blur(60px); }
  .blob--1 { width: 300px; height: 300px; }
  .blob--2 { width: 260px; height: 260px; }
  .blob--3 { width: 220px; height: 220px; }
  .browser { transform: none; }
  .hero__visual { perspective: none; }
  .viewer__devices { display: none; }
  .viewer__bar { padding: 10px 14px; }
  .viewer__stage { padding: 0; }
  .viewer__frame { border-radius: 0; box-shadow: none; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .example__viewport { aspect-ratio: 4 / 5; }
  .example { padding: 10px; border-radius: 24px; }
  .hero__inner { gap: 56px; }
  .section__head { margin-bottom: 44px; }
}

/* Pienet puhelimet: otsikon pisin sana mahtuu ruudulle */
@media (max-width: 420px) {
  .hero__title { font-size: 11.4vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Sopimusehtojen latauslinkki footerissa */
.footer__col a.footer__download {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(20, 18, 31, 0.18);
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.footer__col a.footer__download::after { display: none; }
.footer__col a.footer__download:hover { background: var(--bg-tint); border-color: var(--violet); }

/* Tekstin sisäiset linkit PageSpeed-oppaaseen */
.ps-link { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ps-link:hover { color: #5b3cff; text-decoration-style: solid; }
