/* ==========================================================================
   CraftLeap – sivuston tyylit
   Brändivärit: magenta #e50057, violetti #312783, tumma #343d41, harmaa #dadada
   (sävyt 50 % ja 20 % brändiohjeen mukaan)
   ========================================================================== */

:root {
  --magenta: #e50057;
  --magenta-50: #f280ab;
  --magenta-20: #f9ccdd;
  --magenta-dark: #c4004a;
  --purple: #312783;
  --purple-50: #9893c1;
  --purple-20: #d6d4e6;
  --dark: #343d41;
  --dark-50: #9a9ea0;
  --dark-20: #d7d8d9;
  --grey: #dadada;
  --grey-50: #ededed;
  --grey-20: #f8f8f8;
  --white: #ffffff;

  --text: var(--dark);
  --text-muted: #5d6569;
  --bg: var(--white);
  --surface: var(--grey-20);
  --surface-2: var(--grey-50);
  --border: var(--grey);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(52, 61, 65, .06), 0 8px 24px rgba(52, 61, 65, .08);
  --container: 1200px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: .18em; }
a:hover { color: var(--magenta); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--dark); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

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

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.4em;
  font: 700 .95rem/1.2 var(--font);
  border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 6px 18px rgba(229, 0, 87, .28); }
.btn-primary:hover { background: var(--magenta-dark); color: #fff; }
.btn-secondary { background: var(--purple); color: #fff; }
.btn-secondary:hover { background: #241c66; color: #fff; }
.btn-outline { background: transparent; color: var(--magenta); border-color: var(--magenta); }
.btn-outline:hover { background: var(--magenta); color: #fff; }
.btn-light { background: #fff; color: var(--magenta); }
.btn-light:hover { background: var(--magenta-20); color: var(--magenta-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--magenta); color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand img { width: 168px; height: auto; filter: brightness(0) invert(1); }
@media (min-width: 720px) { .brand img { width: 196px; } }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: .55em .85em; border-radius: 8px;
  color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 600; font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.site-nav a[aria-current="page"] { color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.site-nav .nav-login { border: 2px solid rgba(255, 255, 255, .7); margin-left: 8px; color: #fff; }
.site-nav .nav-login:hover { background: #fff; color: var(--magenta); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 100;
    background: var(--magenta); padding: 16px;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a { font-size: 1.15rem; padding: .85em 1em; }
  .site-nav a[aria-current="page"] { box-shadow: none; background: rgba(255, 255, 255, .16); border-radius: 8px; }
  .site-nav .nav-login { margin: 12px 0 0; text-align: center; }
}

/* ---------- Kelluvat yhteydenottopainikkeet ---------- */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.float-cta .btn { min-width: 232px; min-height: 42px; padding: .55em 1.2em; box-shadow: 0 8px 22px rgba(229, 0, 87, .32); }
@media (max-width: 720px) {
  .float-cta {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); box-shadow: 0 -4px 18px rgba(0, 0, 0, .08);
  }
  .float-cta .btn { min-width: 0; flex: 1; font-size: .85rem; padding: .6em .6em; box-shadow: none; }
  body { padding-bottom: 72px; }
}

/* ---------- Hero ---------- */
.hero { padding: 24px 0 40px; }
.hero-panel {
  position: relative;
  background: var(--grey-50);
  border-radius: 22px;
  padding: 28px 20px 22px;
  overflow: hidden;
}
@media (min-width: 900px) { .hero-panel { padding: 36px 40px 28px; } }

.hero-title { text-align: center; font-weight: 600; font-size: clamp(1.55rem, 1.1rem + 2vw, 2.6rem); margin-bottom: .6em; }
.hero-word { color: var(--magenta); display: inline-block; transition: opacity .3s, transform .3s; }
.hero-word.is-swapping { opacity: 0; transform: translateY(8px); }

.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: slide-in .5s ease both; }
@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.module-label { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.module-label strong { color: var(--magenta); letter-spacing: .08em; }

.scene-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
  .scene-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .scene-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 899px) { .scene-grid.cols-3 > :last-child { grid-column: 1 / -1; } }

.scene-card { margin: 0; text-align: center; display: flex; flex-direction: column; }
.scene-card h3 { font-size: clamp(1rem, .9rem + .5vw, 1.35rem); font-weight: 600; margin: 0 0 4px; order: 0; }
.scene-wrap { position: relative; order: 1; }
.scene { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.scene-tag {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  max-width: 94%; padding: 3px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--dark);
  font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06); pointer-events: none;
  transition: opacity .25s;
}
.scene-tag:empty { opacity: 0; }
.scene-tag.is-flash { animation: tag-flash .35s ease; }
@keyframes tag-flash { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translateX(-50%); } }
.scene-card figcaption { order: 2; font-size: .85rem; color: var(--text-muted); line-height: 1.45; margin-top: 6px; }
@media (max-width: 599px) { .scene-card figcaption { display: none; } }

/* Kun WebGL ei ole käytössä: näytetään kevyt varakuvio */
.no-webgl .scene { background: radial-gradient(circle at 50% 55%, var(--magenta-20) 0 32%, transparent 33%); }

/* 3D-kangas: yksi kiinteä canvas, johon kaikki näkymät piirretään */
.gl-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Tuoterekisteri-näkymän HTML-lista */
.scene-list {
  position: absolute; left: 4%; top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; text-align: left;
  font-size: clamp(.72rem, .6rem + .4vw, .95rem); color: var(--purple); line-height: 1.9;
}
.scene-list li { transition: font-weight .2s, transform .2s, color .2s; transform-origin: left center; }
.scene-list li.is-active { font-weight: 700; transform: scale(1.12); color: var(--magenta); }

.slide-note { text-align: center; font-size: .9rem; color: var(--text-muted); margin: 14px 0 0; }
.hero-sub { text-align: center; font-size: clamp(1.1rem, 1rem + .6vw, 1.55rem); font-weight: 500; margin: 22px 0 10px; }
.hero-devices { display: flex; justify-content: center; }
.hero-devices img { width: min(320px, 70%); }

.hero-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 18px; }
.module-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.module-tab {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: .5em 1.05em .5em .75em;
  border: 2px solid var(--magenta); border-radius: 10px;
  background: #fff; color: var(--dark);
  font: 700 .9rem/1 var(--font); letter-spacing: .06em; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.module-tab svg { width: 24px; height: 24px; flex: none; color: var(--magenta); }
.module-tab:hover { background: var(--magenta-20); }
.module-tab[aria-selected="true"] { background: var(--magenta); color: #fff; }
.module-tab[aria-selected="true"] svg { color: #fff; }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255, 255, 255, .7); transform-origin: left; transform: scaleX(0); }
.module-tab[aria-selected="true"] .tab-progress { animation: tab-fill var(--slide-ms, 11000ms) linear forwards; }
.hero.is-paused .tab-progress, .hero.no-autoplay .tab-progress { animation-play-state: paused !important; }
.hero.no-autoplay .tab-progress { display: none; }
@keyframes tab-fill { to { transform: scaleX(1); } }
.hero-pause {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--dark-50);
  background: #fff; color: var(--dark); cursor: pointer;
}
.hero-pause svg { width: 16px; height: 16px; }

/* ---------- Osiot ---------- */
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; margin-bottom: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }

/* Moduulikortit */
.module-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .module-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .module-cards { grid-template-columns: repeat(4, 1fr); } }
.module-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--magenta-50); color: var(--text); }
.module-card .module-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.module-card .module-icon svg { width: 28px; height: 28px; }
.module-card h3 { margin-bottom: 2px; letter-spacing: .06em; }
.module-card .module-sub { font-weight: 600; color: var(--text-muted); font-size: .92rem; margin-bottom: 10px; }
.module-card p { font-size: .95rem; margin-bottom: 16px; }
.module-card .more { margin-top: auto; font-weight: 700; color: var(--magenta); font-size: .92rem; }
.tone-stock .module-icon { background: var(--magenta-20); color: var(--magenta); }
.tone-ops .module-icon { background: var(--dark-20); color: var(--dark); }
.tone-tasks .module-icon { background: var(--purple-20); color: var(--purple); }
.tone-control .module-icon { background: var(--grey-50); color: var(--magenta); border: 2px solid var(--magenta-20); }

/* Asiakastarinat */
.story-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .story-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.story-card {
  display: flex; flex-direction: column;
  background: var(--grey-50); border-radius: var(--radius); overflow: hidden;
}
.story-media {
  position: relative; aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple) 0%, #4a3aa6 100%);
  color: #fff;
}
.story-media.tone-mag { background: linear-gradient(135deg, var(--magenta) 0%, #ff3d84 100%); }
.story-media.tone-dark { background: linear-gradient(135deg, var(--dark) 0%, #56636a 100%); }
.story-media .story-initials { font-size: 2.4rem; font-weight: 700; letter-spacing: .04em; opacity: .95; }
.story-media .story-logo { background: #fff; padding: 12px 18px; border-radius: 10px; max-width: 70%; }
.story-media .video-badge {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: .78rem; font-weight: 600;
}
/* Asiakastarinavideo (YouTube). Ilman tunnusta näytetään paikkamerkki. */
.video { overflow: hidden; }
.video > img:not(.story-logo), .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .story-logo, .video .story-initials { transition: opacity .2s; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 0;
  background: var(--magenta); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s, background-color .2s;
}
.video-play svg { width: 30px; height: 30px; margin-left: 3px; }
.video:not(.has-video) .video-play { opacity: .9; width: 54px; height: 54px; top: auto; bottom: 14px; left: auto; right: 14px; transform: none; }
.video:not(.has-video) .video-play svg { width: 24px; height: 24px; }
.video.has-video .video-play { cursor: pointer; }
.video.has-video .video-play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--magenta-dark); }
.video-label {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff;
  font-size: .78rem; font-weight: 600;
}
.story-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.story-body h3 { font-size: 1.12rem; }
.story-body p { font-size: .96rem; }
.story-body .more { margin-top: auto; font-weight: 700; color: var(--magenta); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--magenta); border: 1px solid var(--magenta-50); }

/* Käyttöönoton vaiheet */
.steps { display: grid; gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 28px 24px 24px; border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 50%; background: var(--magenta); color: #fff; font-weight: 700; font-size: 1.25rem;
}
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; font-size: .96rem; color: var(--text-muted); }

.highlight-band {
  display: grid; gap: 20px; align-items: center;
  margin-top: 32px; padding: 26px 28px; border-radius: var(--radius);
  background: var(--purple); color: #fff;
}
@media (min-width: 820px) { .highlight-band { grid-template-columns: 1fr auto; } }
.highlight-band h3 { color: #fff; margin-bottom: 4px; font-size: 1.35rem; }
.highlight-band p { margin: 0; color: var(--purple-20); }
.price-big { font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
.price-big small { font-size: 1rem; font-weight: 600; color: var(--purple-20); }

/* Ominaisuuslistat */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Sivujen yläosa (alasivut) ---------- */
.page-hero { background: var(--grey-50); padding: 56px 0 48px; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lead { max-width: 720px; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dark-50); }
.breadcrumbs a { color: var(--text-muted); }

/* Palvelut: moduulinavigaatio */
.module-nav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.module-nav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.module-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: .45em .95em; border-radius: 8px; border: 2px solid var(--magenta);
  text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .06em; color: var(--dark);
}
.module-nav a svg { width: 20px; height: 20px; color: var(--magenta); }
.module-nav a:hover, .module-nav a.is-current { background: var(--magenta); color: #fff; }
.module-nav a:hover svg, .module-nav a.is-current svg { color: #fff; }

.module-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.module-section:nth-of-type(even) { background: var(--surface); }
.module-section .module-head { display: grid; gap: 24px; margin-bottom: 32px; }
@media (min-width: 960px) { .module-section .module-head { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.module-section .scene-panel { background: var(--grey-50); border-radius: 20px; padding: 24px; }
.module-section:nth-of-type(even) .scene-panel { background: #fff; }

/* Referenssit */
.ref-list { display: grid; gap: 26px; }
.ref-card { display: grid; gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .ref-card { grid-template-columns: 340px 1fr; } }
.ref-card .story-media { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .ref-card .story-media { margin: 24px 0 24px 24px; border-radius: 12px; align-self: start; } }
.ref-link { font-weight: 700; color: var(--magenta); text-decoration: none; }
.ref-body { padding: 28px; }
.ref-body h2 { font-size: 1.5rem; margin-bottom: 4px; }
.ref-meta { color: var(--text-muted); font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.ref-cols { display: grid; gap: 18px; }
@media (min-width: 760px) { .ref-cols { grid-template-columns: 1fr 1fr; } }
.ref-cols h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--magenta); margin-bottom: 6px; }
.ref-cols p { font-size: .96rem; }

/* Yritys: aikajana */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--magenta-20); }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--magenta); }
.timeline .year { font-weight: 700; color: var(--magenta); display: block; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.quote { border-left: 4px solid var(--magenta); margin: 1.6em 0; padding: .4em 0 .4em 1.2em; font-size: 1.2rem; font-weight: 600; color: var(--purple); }

/* Yhteystiedot */
.contact-card { display: flex; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.contact-card img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; }
.contact-card h3 { margin-bottom: 2px; }
.contact-card p { margin: 0; }
.contact-lines { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.contact-lines a { font-weight: 600; text-decoration: none; }

.form { display: grid; gap: 16px; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .75em .9em; border: 2px solid var(--grey); border-radius: 10px; background: #fff;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--purple); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: .15em; accent-color: var(--magenta); }
.form-note { font-size: .85rem; color: var(--text-muted); margin: 0; }
.form-status { font-weight: 600; margin: 0; }
.form-status.is-ok { color: #1c7c4a; }
.form-status.is-error { color: #b0003f; }
.form button[disabled] { opacity: .65; cursor: progress; }

/* CTA-osio */
.cta-band { background: var(--magenta); color: #fff; border-radius: 22px; padding: 36px 28px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: auto 1fr auto; padding: 40px 48px; } }
.cta-band img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, .6); }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.cta-band p { margin: 0; color: #ffe3ee; }
.cta-band a:not(.btn) { color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-20); padding: 56px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer img { width: 180px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--magenta-50); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; color: var(--dark-50); }

/* Liike pois, jos käyttäjä niin toivoo */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
