/* ─── Kuvitukset ──────────────────────────────────────────────────────────
   Sivujen kuvat ovat HTML:ää eivätkä bittikarttoja: ne näyttävät tuotteen
   sellaisena kuin se on, skaalautuvat terävinä ja painavat muutaman kilotavun.
   Kaikki kuvitukset ovat aria-hidden, sisältö kerrotaan aina tekstissä.

   Liike on hidasta ja pientä: yksi asia kerrallaan vaihtaa tilaa, mikään ei
   pomppaa eikä liu'u ruudun poikki. prefers-reduced-motion pysäyttää kaiken
   (components.css). */

.m { font-family: var(--s-font); letter-spacing: 0; color: var(--s-ink); user-select: none; pointer-events: none; }
.m * { box-sizing: border-box; }
.m-mono { font-family: var(--s-mono); }

/* Yhteinen ikkunapinta: valkoinen, ohut reuna, pehmeä varjo. */
.m-pane {
  border: 1px solid var(--s-rule);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 12, 20, 0.05), 0 10px 30px rgba(12, 12, 20, 0.08);
}

.m-line { display: block; height: 7px; border-radius: 4px; background: #e6e6ea; }
.m-line--ink { background: #1c1c22; }
.m-line--mid { background: #cfcfd5; }

/* ── Kuvituspinta ─────────────────────────────────────────────────────────
   Tuotekuva omalla pisteverkkopinnallaan, jotta valkoinen näkymä ei sulaudu
   valkoiseen sivuun. */
.n-panel,
.v-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--s-rule);
  border-radius: var(--s-radius-xl);
  background-color: var(--s-surface);
  background-image: radial-gradient(circle, rgba(12, 12, 20, 0.08) 1px, transparent 1.2px);
  background-size: 16px 16px;
}

/* ── Palvelukorttien pienet kuvat ───────────────────────────────────────── */

/* Verkkosivu: selainikkuna, jossa hero ja nappi. */
.v-browser { width: 74%; overflow: hidden; }
.v-browser__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--s-rule); }
.v-browser__dot { width: 6px; height: 6px; border-radius: 50%; background: #dcdce0; }
.v-browser__url { margin-left: 8px; padding: 2px 8px; border-radius: 5px; background: var(--s-surface); font-size: 9px; color: var(--s-ink-3); }
.v-browser__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; padding: 16px 14px 18px; }
.v-browser__copy { display: grid; gap: 7px; align-content: start; }
.v-browser__copy .m-line--ink { height: 9px; }
.v-browser__btn { width: 52px; height: 14px; margin-top: 5px; border-radius: 7px; background: var(--s-accent); }
.v-browser__img {
  border-radius: 7px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 166, 196, 0.55), transparent 55%),
    linear-gradient(160deg, #2a2a31, #0e0e11);
}

/* Näkyvyys: hakukenttä ja kaksi tulosta, oma ensimmäisenä. */
.v-search { display: grid; gap: 8px; width: 76%; }
.v-search__field { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 12px; }
.v-search__field svg { width: 13px; height: 13px; color: var(--s-ink-3); }
.v-caret { width: 1px; height: 13px; margin-left: -6px; background: var(--s-ink); animation: m-blink 1.1s steps(1) infinite; }
.v-search__hit { display: grid; grid-template-columns: 20px 1fr; gap: 4px 10px; align-items: center; padding: 10px 12px; }
.v-search__hit .m-line { grid-column: 2; }
.v-search__rank {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--s-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.v-search__hit--muted { opacity: 0.55; box-shadow: none; }
.v-search__hit--muted .v-search__rank { background: #e6e6ea; color: var(--s-ink-3); }
.v-search__url { grid-column: 2; font-size: 9px; color: var(--s-ink-3); }

/* Ajanvaraus: päivän vapaat ajat, valinta kiertää hitaasti. */
.v-slots { width: 72%; padding: 14px; }
.v-slots__head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 11px; font-weight: 600; }
.v-slots__head span:last-child { font-weight: 400; color: var(--s-ink-3); }
.v-slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.v-slot {
  display: grid;
  place-items: center;
  height: 26px;
  border: 1px solid var(--s-rule);
  border-radius: 7px;
  font-size: 10.5px;
  color: var(--s-ink-2);
}
.v-slot--off { border-style: dashed; color: #b9b9c0; text-decoration: line-through; }
.v-slot--pick { animation: m-pick 9s var(--s-ease) infinite; }
.v-slot--pick:nth-of-type(5) { animation-delay: 3s; }
.v-slot--pick:nth-of-type(8) { animation-delay: 6s; }

/* Visuaalinen ilme: kirjasinnäyte ja paletti. */
.v-brand { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; width: 74%; padding: 18px; }
.v-brand__type { font-size: 46px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.v-brand__meta { display: grid; gap: 10px; }
.v-brand__swatches { display: flex; gap: 6px; }
.v-brand__swatches span { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(12, 12, 20, 0.1); }
.v-brand__hex { font-size: 9px; color: var(--s-ink-3); }

/* Automaatio: viesti kulkee kolmen vaiheen läpi. */
.v-flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: 84%; }
.v-flow__node { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; padding: 10px; font-size: 10.5px; font-weight: 500; }
.v-flow__node i { width: 16px; height: 16px; border-radius: 5px; background: #ececf0; }
.v-flow__node:nth-child(2) i { background: linear-gradient(135deg, var(--s-pink-100), var(--s-pink-300)); }
.v-flow__node:nth-child(3) i { background: #1c1c22; }
.v-flow__node .m-line { width: 100%; height: 5px; }
.v-flow__track { position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, #cfcfd5 0 4px, transparent 4px 8px); }
.v-flow__pulse {
  position: absolute;
  top: -2.5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-accent);
  box-shadow: 0 0 0 4px var(--s-accent-soft);
  animation: m-travel 4.8s var(--s-ease) infinite;
}

/* Integraatiot: kolme järjestelmää, yksi keskus. */
.v-sync { position: relative; width: 78%; height: 70%; }
.v-sync__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 13px;
}
.v-sync__hub i { width: 18px; height: 18px; border-radius: 5px 5px 5px 1px; background: linear-gradient(135deg, var(--s-pink-200), var(--s-pink-400)); }
.v-sync__app { position: absolute; display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: 10.5px; font-weight: 500; }
.v-sync__app i { width: 8px; height: 8px; border-radius: 2px; background: #1c1c22; }
.v-sync__app:nth-of-type(1) { left: 0; top: 4%; }
.v-sync__app:nth-of-type(2) { right: 0; top: 4%; }
.v-sync__app:nth-of-type(3) { left: 50%; bottom: 0; transform: translateX(-50%); }
.v-sync svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-sync path { fill: none; stroke: #cfcfd5; stroke-width: 1; stroke-dasharray: 3 3; }
.v-sync path.is-live { stroke: var(--s-accent); stroke-dasharray: 3 60; animation: m-dash 3.2s linear infinite; }

/* ── Palvelukorttien lähikuvat (etusivu) ─────────────────────────────────
   Rajattu lähikuva oikeasta näkymästä, joka täyttää kortin kuva-alueen reunasta
   reunaan: ei erillistä paneelia pisteverkon päällä. Jokaisessa joku tekee jotain
   (osoitin painaa, valinta vaihtuu). Mitat ovat cqw-yksiköissä, joten lähikuva
   rajautuu samoin kaikilla kortin leveyksillä.

   Perustila on "tehty" (osoitin kohteessa, valinta päällä). Animaatio kuljettaa
   osoittimen paikalle ja takaisin; reduced-motion jättää perustilan näkyviin. */
.lk {
  --lk-d: 0s;
  --lk-fx: 9cqw;
  --lk-fy: 7cqw;
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  background: #fff;
  line-height: 1.3;
}
/* Perusfontti lapsille eikä juurelle: juuren oma cqw laskettaisiin näkymän leveydestä,
   koska säiliö on juuri itse. */
.lk > * { position: absolute; font-size: 3.2cqw; }
.lk--2 { --lk-d: -1.2s; }
.lk--3 { --lk-d: -2.4s; }
.lk--4 { --lk-d: -3.6s; }
.lk--5 { --lk-d: -4.8s; }
.lk--6 { --lk-d: -6s; }

/* Osoitin: kärki on elementin vasemmassa yläkulmassa, left/top = klikkauskohta. */
.lk-cursor {
  z-index: 3;
  width: 4.6cqw;
  filter: drop-shadow(0 1px 1.5px rgba(12, 12, 20, 0.3));
  transform-origin: 0 0;
  animation: lk-cursor 7s var(--s-ease) var(--lk-d) infinite;
}
.lk-cursor svg { display: block; width: 100%; height: auto; }
.lk-tap {
  z-index: 2;
  width: 9cqw;
  height: 9cqw;
  margin: -4.5cqw 0 0 -4.5cqw;
  border: 1px solid rgba(240, 70, 138, 0.4);
  border-radius: 50%;
  background: var(--s-accent-soft);
  opacity: 0;
  animation: lk-tap 7s var(--s-ease) var(--lk-d) infinite;
}
.lk-on { animation: lk-on 7s var(--s-ease) var(--lk-d) infinite; }
.lk-off { opacity: 0; animation: lk-off 7s var(--s-ease) var(--lk-d) infinite; }
.lk-press { animation: lk-press 7s var(--s-ease) var(--lk-d) infinite; }
.lk-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: m-blink 1.1s steps(1) infinite;
}

/* Verkkosivut: sivuston hero lähikuvana, osoitin painaa Varaa aika -nappia. */
.lk-web__bar {
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 1.3cqw;
  height: 9cqw;
  padding-left: 4cqw;
  border-bottom: 1px solid var(--s-rule);
  background: var(--s-surface);
}
.lk-web__bar i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #dcdce0; }
.lk-web__url {
  width: 58cqw;
  margin-left: 2cqw;
  padding: 0.9cqw 2.6cqw;
  border-radius: 99px;
  background: #fff;
  font-size: 2.6cqw;
  color: var(--s-ink-3);
}
.lk-web__h {
  left: 6cqw;
  top: 16cqw;
  width: 56cqw;
  font-size: 6.6cqw;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.lk-web__p { left: 6cqw; top: 33.5cqw; width: 50cqw; font-size: 2.9cqw; color: var(--s-ink-3); }
.lk-web__btn {
  left: 6cqw;
  top: 42.5cqw;
  padding: 2.1cqw 4.4cqw;
  border-radius: 99px;
  background: var(--s-accent);
  color: #fff;
  font-size: 3cqw;
  font-weight: 600;
}
.lk-web__img {
  left: 64cqw;
  top: 16cqw;
  right: -4cqw;
  bottom: -6cqw;
  border-radius: 2.4cqw 0 0 0;
  background:
    radial-gradient(circle at 62% 34%, rgba(255, 166, 196, 0.6), transparent 55%),
    linear-gradient(160deg, #2a2a31, #0e0e11);
}
.lk-web .lk-cursor, .lk-web .lk-tap { left: 21cqw; top: 47.5cqw; }

/* Nettiajanvaraus: vapaat ajat lähikuvana, asiakas valitsee ajan. */
.lk-book__day { left: 6cqw; top: 6cqw; font-size: 4.6cqw; font-weight: 650; letter-spacing: -0.02em; }
.lk-book__svc { left: 6cqw; top: 12.6cqw; font-size: 2.8cqw; color: var(--s-ink-3); }
.lk-book__days { left: 60cqw; top: 5cqw; display: flex; gap: 1.6cqw; }
.lk-book__days span {
  display: grid;
  place-items: center;
  width: 10cqw;
  height: 11cqw;
  border: 1px solid var(--s-rule);
  border-radius: 2cqw;
  font-size: 2.5cqw;
  line-height: 1.2;
  text-align: center;
  color: var(--s-ink-3);
}
.lk-book__days b { display: block; font-size: 3.4cqw; color: var(--s-ink); }
.lk-book__days .is-active { border-color: var(--s-ink); background: var(--s-ink); color: rgba(255, 255, 255, 0.7); }
.lk-book__days .is-active b { color: #fff; }
.lk-book__grid {
  left: 6cqw;
  top: 22cqw;
  display: grid;
  grid-template-columns: repeat(4, 25cqw);
  grid-auto-rows: 10.5cqw;
  gap: 2.6cqw;
}
.lk-slot {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--s-rule-strong);
  border-radius: 2cqw;
  font-size: 3.2cqw;
  color: var(--s-ink-2);
}
.lk-slot--off { border-style: dashed; border-color: var(--s-rule-strong); color: #b9b9c0; text-decoration: line-through; }
.lk-slot .lk-on {
  position: absolute;
  inset: -1px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--s-ink);
  color: #fff;
}
.lk-book .lk-cursor, .lk-book .lk-tap { left: 48cqw; top: 41cqw; }

/* Näkyvyys: hakutulossivu lähikuvana, oma sivu ensimmäisenä ja osoitin sen päällä. */
.lk-serp__field {
  left: -3cqw;
  top: 5cqw;
  display: flex;
  align-items: center;
  gap: 2cqw;
  width: 84cqw;
  height: 10cqw;
  padding-left: 8cqw;
  border: 1px solid var(--s-rule-strong);
  border-radius: 99px;
  font-size: 3.4cqw;
}
.lk-serp__field svg { width: 3.4cqw; height: 3.4cqw; color: var(--s-ink-3); }
.lk-serp__tabs {
  inset: 18.5cqw 0 auto 0;
  display: flex;
  gap: 5cqw;
  height: 5.5cqw;
  padding-left: 6cqw;
  border-bottom: 1px solid var(--s-rule);
  font-size: 2.6cqw;
  color: var(--s-ink-3);
}
.lk-serp__tabs .is-active { color: var(--s-ink); box-shadow: inset 0 -2px 0 var(--s-ink); }
.lk-serp__site { left: 6cqw; top: 28cqw; display: flex; align-items: center; gap: 2cqw; font-size: 2.7cqw; }
.lk-serp__site i {
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s-pink-100), var(--s-pink-300));
}
.lk-serp__site small { display: block; font-size: 2.4cqw; color: var(--s-ink-3); }
.lk-serp__title {
  left: 6cqw;
  top: 36cqw;
  font-size: 4.4cqw;
  white-space: nowrap;
  color: #2340c5;
}
.lk-serp__title .lk-on {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2cqw;
  height: 1px;
  background: currentColor;
}
.lk-serp__desc { left: 6cqw; top: 43cqw; width: 90cqw; font-size: 2.8cqw; line-height: 1.45; color: var(--s-ink-2); }
.lk-serp__next { left: 6cqw; top: 56cqw; font-size: 2.7cqw; opacity: 0.45; }
.lk-serp .lk-cursor, .lk-serp .lk-tap { left: 38cqw; top: 39.5cqw; }

/* Visuaalinen ilme: ohjeiston lähikuva, väri valitaan paletista. */
.lk-brand { background: #efe6cf; }
.lk-brand__aa {
  left: -2cqw;
  top: 6cqw;
  font-size: 46cqw;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.06em;
}
.lk-brand__aa .lk-on { position: absolute; inset: 0; color: #8c7a4c; }
.lk-brand__label { left: 64cqw; top: 6cqw; font-size: 2.5cqw; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(11, 11, 14, 0.55); }
.lk-brand__list { left: 64cqw; top: 12cqw; display: grid; gap: 3cqw; }
.lk-swatch { display: flex; align-items: center; gap: 2.6cqw; font-size: 2.6cqw; }
.lk-swatch i {
  position: relative;
  width: 9cqw;
  height: 9cqw;
  border-radius: 2cqw;
  box-shadow: inset 0 0 0 1px rgba(12, 12, 20, 0.12);
}
.lk-swatch .lk-on {
  position: absolute;
  inset: -1.2cqw;
  border: 2px solid var(--s-ink);
  border-radius: 2.8cqw;
}
.lk-brand .lk-cursor, .lk-brand .lk-tap { left: 69cqw; top: 29cqw; }

/* Tekoälyautomaatio: saapunut viesti luokiteltuna ja vastausluonnos valmiina. */
.lk-mail__from { left: 6cqw; top: 6cqw; display: flex; align-items: center; gap: 2.6cqw; }
.lk-mail__from i {
  display: grid;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: #ececf0;
  font-size: 2.6cqw;
  font-style: normal;
  font-weight: 600;
}
.lk-mail__from b { font-size: 3.4cqw; }
.lk-mail__time { right: 6cqw; top: 8cqw; font-size: 2.6cqw; color: var(--s-ink-3); }
.lk-mail__msg { left: 15.6cqw; top: 13.5cqw; width: 78cqw; color: var(--s-ink-2); }
.lk-mail__tags { left: 15.6cqw; top: 20.5cqw; display: flex; gap: 1.6cqw; }
.lk-mail__tags span {
  padding: 0.8cqw 2.2cqw;
  border-radius: 99px;
  background: #f1f1f3;
  font-size: 2.5cqw;
  color: var(--s-ink-2);
}
.lk-mail__tags .is-ai { background: var(--s-accent-soft); color: #b3125a; }
.lk-mail__rule { inset: 29.5cqw 0 auto 0; height: 1px; background: var(--s-rule); }
.lk-mail__label { left: 6cqw; top: 33.5cqw; font-size: 2.5cqw; font-weight: 600; color: #b3125a; }
.lk-mail__draft { left: 6cqw; top: 38.5cqw; width: 88cqw; }
.lk-mail__draft span { white-space: nowrap; }
.lk-mail__send {
  left: 6cqw;
  top: 50cqw;
  /* Leveys "Lähetetty ✓" -tilan mukaan, jotta kumpikin teksti mahtuu samaan nappiin. */
  width: 23cqw;
  padding: 1.8cqw 0;
  text-align: center;
  border-radius: 99px;
  background: var(--s-ink);
  color: #fff;
  font-size: 2.9cqw;
  font-weight: 600;
}
.lk-mail__send .lk-on {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: #1f7a4a;
}
.lk-mail .lk-cursor, .lk-mail .lk-tap { left: 15cqw; top: 54.5cqw; }

/* Integraatiot: asetusnäkymän lähikuva, kolmas järjestelmä kytketään päälle. */
.lk-int__title { left: 6cqw; top: 6cqw; font-size: 4.4cqw; font-weight: 650; letter-spacing: -0.02em; }
.lk-int__sub { left: 6cqw; top: 12cqw; font-size: 2.6cqw; color: var(--s-ink-3); }
.lk-int__rows { inset: 19cqw 0 auto 0; }
.lk-int__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3cqw;
  height: 13.5cqw;
  padding-left: 6cqw;
  border-top: 1px solid var(--s-rule);
}
.lk-int__row > i { width: 7cqw; height: 7cqw; border-radius: 1.8cqw; background: var(--s-ink); }
.lk-int__row:nth-child(2) > i { background: #c9b98f; }
.lk-int__row:nth-child(3) > i { background: linear-gradient(135deg, var(--s-pink-100), var(--s-pink-300)); }
.lk-int__row:nth-child(4) > i { background: #d6d6dc; }
.lk-int__row b { display: block; font-size: 3.3cqw; }
.lk-int__state { position: relative; display: block; font-size: 2.5cqw; color: var(--s-ink-3); }
.lk-int__state .lk-off { position: absolute; left: 0; top: 0; }
.lk-int__state em { font-style: normal; color: #1f7a4a; }
.lk-toggle {
  position: absolute;
  right: 6cqw;
  top: 3.55cqw;
  width: 11cqw;
  height: 6.4cqw;
  border-radius: 99px;
  background: #dedee3;
}
.lk-toggle::after,
.lk-toggle .lk-on::after {
  content: "";
  position: absolute;
  top: 0.7cqw;
  left: 0.7cqw;
  width: 5cqw;
  height: 5cqw;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 12, 20, 0.2);
}
.lk-toggle .lk-on { position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: var(--s-ink); }
.lk-toggle .lk-on::after { left: 5.3cqw; }
.lk-toggle.is-on { background: var(--s-ink); }
.lk-toggle.is-on::after { left: 5.3cqw; }
.lk-int { --lk-fx: -9cqw; }
.lk-int .lk-cursor, .lk-int .lk-tap { left: 88cqw; top: 53.5cqw; }

@keyframes lk-cursor {
  0%, 6% { opacity: 0; transform: translate(var(--lk-fx), var(--lk-fy)); }
  14% { opacity: 1; }
  28%, 30% { transform: none; }
  33% { transform: scale(0.86); }
  37%, 78% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translate(var(--lk-fx), var(--lk-fy)); }
}
@keyframes lk-tap {
  0%, 31% { opacity: 0; transform: scale(0.3); }
  34% { opacity: 1; }
  52%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes lk-on {
  0%, 33% { opacity: 0; }
  37%, 86% { opacity: 1; }
  92%, 100% { opacity: 0; }
}
@keyframes lk-off {
  0%, 33% { opacity: 1; }
  37%, 86% { opacity: 0; }
  92%, 100% { opacity: 1; }
}
@keyframes lk-press {
  0%, 31%, 46%, 100% { filter: none; }
  34%, 40% { filter: brightness(0.82); }
}

/* ── Hallintanäkymä ───────────────────────────────────────────────────────
   Päivän aikataulu kolmelle tekijälle. Mitat ovat kiinteitä pikseleitä, ja
   koko näkymä skaalataan kehyksen leveyteen --m-scale-muuttujalla, jolloin
   tekstit ja palkit pysyvät keskenään oikeassa suhteessa joka leveydellä. */
.m-app {
  --m-row: 54px;
  display: grid;
  grid-template-columns: 208px 1fr;
  width: 1120px;
  height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 120px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}

.m-app__side { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--s-rule); background: #fbfbfc; }
.m-app__org { display: flex; align-items: center; gap: 10px; margin: 0 4px 18px; font-weight: 600; }
.m-app__avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #3b3b44, #111114); color: #fff; font-size: 12px; }
.m-app__nav { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--s-ink-2); }
.m-app__nav svg { width: 16px; height: 16px; color: var(--s-ink-3); }
.m-app__nav.is-active { background: #efeff2; color: var(--s-ink); font-weight: 500; }
.m-app__nav.is-active svg { color: var(--s-ink); }
.m-app__badge { margin-left: auto; padding: 1px 7px; border-radius: 999px; background: var(--s-accent-soft); color: #c4125c; font-size: 11px; font-weight: 500; }

.m-app__main { display: flex; flex-direction: column; min-width: 0; }
.m-app__top { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 24px; border-bottom: 1px solid var(--s-rule); }
.m-app__crumbs { display: flex; gap: 8px; color: var(--s-ink-3); }
.m-app__crumbs b { color: var(--s-ink); font-weight: 500; }
.m-app__search { display: flex; align-items: center; gap: 8px; width: 220px; height: 32px; padding: 0 10px; border: 1px solid var(--s-rule); border-radius: 8px; color: #9a9aa2; font-size: 12px; }
.m-app__kbd { margin-left: auto; padding: 0 5px; border: 1px solid var(--s-rule); border-radius: 4px; font-size: 10px; }

.m-app__head { display: flex; align-items: flex-end; justify-content: space-between; padding: 22px 24px 16px; }
.m-app__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.m-app__sub { margin-top: 4px; color: var(--s-ink-3); }
.m-app__tabs { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #f1f1f4; }
.m-app__tabs span { padding: 5px 12px; border-radius: 7px; color: var(--s-ink-3); }
.m-app__tabs .is-active { background: #fff; color: var(--s-ink); box-shadow: 0 1px 2px rgba(12, 12, 20, 0.08); font-weight: 500; }

.m-cal { position: relative; flex: 1; display: grid; grid-template-columns: 56px repeat(3, 1fr); margin: 0 24px; border-top: 1px solid var(--s-rule); }
.m-cal__times { display: grid; grid-auto-rows: var(--m-row); padding-top: 38px; color: #a0a0a8; font-size: 11px; }
.m-cal__times span { transform: translateY(-7px); }
.m-cal__col { position: relative; border-left: 1px solid var(--s-rule); background-image: linear-gradient(var(--s-rule) 1px, transparent 1px); background-size: 100% var(--m-row); background-position: 0 38px; }
.m-cal__who { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; font-weight: 500; background: #fff; }
.m-cal__who i { width: 20px; height: 20px; border-radius: 50%; background: #e3e3e8; }
.m-cal__who small { margin-left: auto; color: var(--s-ink-3); font-size: 11px; font-weight: 400; }

.m-ev {
  position: absolute;
  left: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 9px;
  overflow: hidden;
  border-left: 2px solid #2a2a31;
  border-radius: 4px 7px 7px 4px;
  background: #f3f3f6;
  font-size: 12px;
}
.m-ev b { font-weight: 500; white-space: nowrap; }
.m-ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ev--short { flex-direction: row; align-items: center; gap: 8px; padding-block: 0; }
.m-ev span { color: var(--s-ink-3); font-size: 11px; }
.m-ev--break { border-left-color: #cfcfd5; background: repeating-linear-gradient(135deg, #f7f7f9 0 5px, #fff 5px 10px); color: var(--s-ink-3); }
.m-ev--new { border-left-color: var(--s-accent); background: #fff0f6; animation: m-arrive 8s var(--s-ease) infinite; }

.m-now { position: absolute; left: 56px; right: 0; height: 0; border-top: 1px solid var(--s-accent); }
.m-now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--s-accent); }

.m-toast {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 12px;
  align-items: center;
  width: 280px;
  padding: 12px 14px;
  border: 1px solid var(--s-rule);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--s-shadow-float);
  animation: m-toast 8s var(--s-ease) infinite;
}
.m-toast i { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--s-accent-soft); }
.m-toast i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--s-accent); }
.m-toast b { font-weight: 500; }
.m-toast span { color: var(--s-ink-3); font-size: 12px; }

/* Kehys, joka skaalaa kiinteän kokoisen näkymän leveyteensä. */
.m-scale { position: relative; width: 100%; aspect-ratio: var(--m-ratio, 1120 / 640); }
.m-scale > .m-fit { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--m-k, 1)); }

/* ── Varausnäkymä asiakkaan silmin ───────────────────────────────────────── */
.m-book { width: 420px; padding: 22px; border-radius: 18px; font-size: 13px; }
.m-book__biz { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--s-rule); }
.m-book__logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #3b3b44, #111114); }
.m-book__biz b { display: block; font-size: 14px; font-weight: 600; }
.m-book__biz span { color: var(--s-ink-3); font-size: 12px; }
.m-book__label { margin: 18px 0 8px; color: var(--s-ink-3); font-size: 11px; font-weight: 500; }
.m-book__svc { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--s-ink); border-radius: 10px; }
.m-book__svc b { font-weight: 500; }
.m-book__svc span { color: var(--s-ink-3); }
.m-book__who { display: flex; gap: 6px; }
.m-book__who span { padding: 6px 12px; border: 1px solid var(--s-rule); border-radius: 999px; color: var(--s-ink-2); }
.m-book__who .is-on { border-color: var(--s-ink); color: var(--s-ink); font-weight: 500; }
.m-book__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.m-book__day { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border: 1px solid var(--s-rule); border-radius: 10px; color: var(--s-ink-3); font-size: 11px; }
.m-book__day b { color: var(--s-ink); font-size: 15px; font-weight: 500; }
.m-book__day.is-on { border-color: var(--s-ink); background: var(--s-ink); color: #a8a8b0; }
.m-book__day.is-on b { color: #fff; }
.m-book__times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.m-book__times .v-slot { height: 34px; font-size: 12px; }
.m-book__cta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 0 16px; height: 44px; border-radius: 999px; background: var(--s-ink); color: #fff; font-weight: 500; }

/* ── Hakutulos ──────────────────────────────────────────────────────────── */
.m-serp { width: 480px; padding: 20px; border-radius: 16px; font-size: 13px; }
.m-serp__field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--s-rule-strong); border-radius: 999px; font-size: 14px; }
.m-serp__field svg { width: 16px; height: 16px; color: var(--s-ink-3); }
.m-serp__tabs { display: flex; gap: 18px; margin: 14px 4px 8px; color: var(--s-ink-3); font-size: 12px; }
.m-serp__tabs span:first-child { color: var(--s-ink); font-weight: 500; }
.m-serp__hit { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; }
.m-serp__hit.is-you { border: 1px solid var(--s-rule); background: #fff; box-shadow: var(--s-shadow-card); }
.m-serp__src { display: flex; align-items: center; gap: 8px; color: var(--s-ink-3); font-size: 11.5px; }
.m-serp__fav { width: 18px; height: 18px; border-radius: 5px; background: #e6e6ea; }
.is-you .m-serp__fav { background: linear-gradient(135deg, #3b3b44, #111114); }
.m-serp__title { color: var(--s-ink); font-size: 15px; font-weight: 500; }
.m-serp__desc { color: var(--s-ink-3); font-size: 12.5px; line-height: 1.5; }
.m-serp__meta { display: flex; gap: 6px; margin-top: 6px; }
.m-serp__meta span { padding: 3px 9px; border-radius: 999px; background: var(--s-surface); color: var(--s-ink-2); font-size: 11px; }
.m-serp__meta span:first-child { background: var(--s-accent-soft); color: #b0104f; }
.m-serp__hit.is-dim { opacity: 0.5; }
.m-serp__hit.is-dim .m-line { margin-top: 4px; }

/* ── Sisällönmuokkaus ───────────────────────────────────────────────────── */
.m-cms { display: grid; grid-template-columns: 360px 1fr; width: 1120px; height: 560px; overflow: hidden; border-radius: 16px; font-size: 13px; }
.m-cms__edit { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-right: 1px solid var(--s-rule); background: #fbfbfc; }
.m-cms__head { display: flex; align-items: center; justify-content: space-between; }
.m-cms__head b { font-size: 15px; font-weight: 600; }
.m-cms__state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #eef8f1; color: #1d7a3e; font-size: 11px; }
.m-cms__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m-cms__field { display: grid; gap: 6px; }
.m-cms__field label { color: var(--s-ink-3); font-size: 11.5px; font-weight: 500; }
.m-cms__input { display: flex; align-items: center; height: 38px; padding: 0 12px; border: 1px solid var(--s-rule-strong); border-radius: 8px; background: #fff; }
.m-cms__input.is-focus { border-color: var(--s-ink); box-shadow: 0 0 0 3px rgba(12, 12, 20, 0.07); }
.m-cms__input .v-caret { margin-left: 1px; }
.m-cms__rows { display: grid; gap: 6px; }
.m-cms__row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 6px; align-items: center; }
.m-cms__row span:first-child { color: var(--s-ink-2); }
.m-cms__row .m-cms__input { height: 32px; font-size: 12px; }
.m-cms__btn { margin-top: auto; display: grid; place-items: center; height: 40px; border-radius: 999px; background: var(--s-ink); color: #fff; font-weight: 500; }

.m-cms__view { position: relative; overflow: hidden; background: #0e0e11; color: #f4f4f5; }
.m-cms__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #7c7c85; font-size: 11.5px; }
.m-cms__bar i { width: 7px; height: 7px; border-radius: 50%; background: #2c2c33; }
.m-cms__bar span { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.m-cms__site { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 56px 48px; }
.m-cms__kicker { color: #c9b98f; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.m-cms__h { margin-top: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 44px; line-height: 1.05; color: #efe6cf; }
.m-cms__p { margin-top: 16px; color: #a8a8b0; line-height: 1.6; }
.m-cms__cta { display: inline-grid; place-items: center; margin-top: 22px; height: 38px; padding: 0 18px; background: #efe6cf; color: #111; font-weight: 500; }
.m-cms__hours { align-self: start; padding: 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; }
.m-cms__hours b { display: block; margin-bottom: 12px; font-weight: 500; }
.m-cms__hours div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #a8a8b0; }
.m-cms__hours .is-new { color: #fff; animation: m-flash 6s var(--s-ease) infinite; }

/* ── Selainkehys kuvakaappaukselle ─────────────────────────────────────── */
.m-frame { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: #0e0e11; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35); }
.m-frame__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.m-frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c2c33; }
.m-frame__url { margin-left: 12px; padding: 3px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: #8c8c95; font-family: var(--s-mono); font-size: 11px; }
.m-frame img { display: block; width: 100%; height: auto; }

/* ── Liikkeet ───────────────────────────────────────────────────────────── */
@keyframes m-blink { 50% { opacity: 0; } }

@keyframes m-pick {
  0%, 30%, 100% { border-color: var(--s-rule); background: #fff; color: var(--s-ink-2); }
  4%, 26% { border-color: var(--s-ink); background: var(--s-ink); color: #fff; }
}

@keyframes m-travel {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  45%, 55% { left: calc(50% - 3px); }
  90% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

@keyframes m-dash { to { stroke-dashoffset: -63; } }

@keyframes m-arrive {
  0%, 12% { opacity: 0; }
  20%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes m-toast {
  0%, 16% { opacity: 0; transform: translateY(6px); }
  22%, 70% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: translateY(6px); }
}

@keyframes m-flash {
  0%, 20% { background: transparent; }
  30% { background: rgba(240, 70, 138, 0.14); }
  60%, 100% { background: transparent; }
}

/* Puhelimessa koko hallintanäkymä kutistuisi lukukelvottomaksi. Näytetään sen
   vasen osa luettavassa koossa, ja näkymä jatkuu ruudun oikean reunan yli. */
@media (max-width: 700px) {
  .m-bleed {
    margin-right: calc(-1 * var(--s-gutter));
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }

  .m-bleed > .m-scale { width: 190%; }
}

/* ── Palvelukorttien lähikuvat ────────────────────────────────────────────
   Mitat kortin leveydestä (cqw), joten rajaus pysyy samana joka koossa. Näkymät
   alkavat kortin sisältä ja jatkuvat sen oikean ja alareunan yli. */
.s-card__media { container-type: inline-size; }
.s-card__media > .m { font-size: 4cqw; }

.v-search { transform: scale(1.18); }

.c-web, .c-slots, .c-brand, .c-ai, .c-sync { position: absolute; inset: 0; }

/* Verkkosivu: sivun yläkulma läheltä, kursori napin päällä. */
.c-web__page {
  position: absolute;
  left: 9cqw;
  top: 9cqw;
  width: 110cqw;
  height: 80cqw;
  border: 1px solid var(--s-rule);
  border-radius: 3cqw;
  background: #fff;
  box-shadow: var(--s-shadow-card);
}
.c-web__bar { display: flex; align-items: center; gap: 1.4cqw; height: 7cqw; padding: 0 3cqw; border-bottom: 1px solid var(--s-rule); }
.c-web__bar span { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #dcdce0; }
.c-web__bar b { margin-left: 2cqw; padding: .4cqw 2cqw; border-radius: 1.2cqw; background: var(--s-surface); color: var(--s-ink-3); font-size: 2.6cqw; font-weight: 400; }
.c-web__nav { display: flex; align-items: center; gap: 4cqw; padding: 4cqw 6cqw 0; color: var(--s-ink-3); font-size: 2.8cqw; font-style: normal; }
.c-web__nav i { width: 5cqw; height: 5cqw; margin-right: 6cqw; border-radius: 1.4cqw 1.4cqw 1.4cqw .4cqw; background: #1c1c22; }
.c-web__nav em { font-style: normal; }
.c-web__h { padding: 5cqw 6cqw 0; font-size: 8.6cqw; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.c-web__p { width: 50cqw; height: 1.8cqw; margin: 3cqw 6cqw 0; border-radius: 1cqw; background: #e6e6ea; box-shadow: 0 3.2cqw 0 #ededf0; }
.c-web__cta { display: inline-block; margin: 6.4cqw 6cqw 0; padding: 2.4cqw 4.6cqw; border-radius: 99px; background: var(--s-accent); color: #fff; font-size: 3.2cqw; font-weight: 500; animation: c-press 4.8s var(--s-ease) infinite; }
.c-cursor { position: absolute; left: 30cqw; top: 51cqw; width: 6cqw; height: 6cqw; animation: c-point 4.8s var(--s-ease) infinite; }

/* Ajanvaraus: ajat isoina, ruudukko jatkuu reunan yli. */
.c-slots__head { position: absolute; left: 9cqw; top: 9cqw; font-size: 4.2cqw; font-weight: 600; }
.c-slots__grid { position: absolute; left: 9cqw; top: 19cqw; display: grid; grid-template-columns: repeat(3, 34cqw); gap: 2.6cqw; }
.c-slots .v-slot { height: 13cqw; border-radius: 3cqw; background: #fff; font-size: 4.4cqw; font-variant-numeric: tabular-nums; }

/* Visuaalinen ilme: kirjasinnäyte rajattuna ja värit päällekkäin. */
.c-brand__type { position: absolute; left: 6cqw; bottom: -12cqw; font-size: 52cqw; font-weight: 600; line-height: 1; letter-spacing: -0.06em; color: var(--s-ink); }
.c-brand__sw { position: absolute; right: -6cqw; top: 9cqw; display: flex; flex-direction: column; gap: 2.6cqw; }
.c-brand__sw span { display: flex; align-items: flex-end; width: 44cqw; height: 13cqw; padding: 0 0 1.8cqw 3cqw; border-radius: 3cqw; box-shadow: inset 0 0 0 1px rgba(12, 12, 20, 0.08); }
.c-brand__sw span:first-child b { color: rgba(255, 255, 255, 0.7); }
.c-brand__sw b { color: rgba(12, 12, 20, 0.55); font-size: 2.6cqw; font-weight: 400; }

/* Tekoäly: tullut viesti ja luonnos vastaukseksi, kursori kirjoittaa. */
.c-ai__in { position: absolute; left: 9cqw; top: 10cqw; max-width: 62cqw; padding: 3cqw 4cqw; border-radius: 4cqw 4cqw 4cqw 1cqw; background: #ececf0; font-size: 3.6cqw; line-height: 1.4; }
.c-ai__out { position: absolute; left: 22cqw; top: 31cqw; width: 90cqw; padding: 4cqw 5cqw 6cqw; border: 1px solid var(--s-rule); border-radius: 4cqw; background: #fff; box-shadow: var(--s-shadow-card); }
.c-ai__out p { margin-top: 2.6cqw; font-size: 4cqw; line-height: 1.45; max-width: 70cqw; }
.c-ai__out .v-caret { display: inline-block; height: 4.2cqw; margin: 0 0 -0.8cqw 0.6cqw; }
.c-ai__tag { display: inline-flex; align-items: center; gap: 1.4cqw; padding: .8cqw 2.4cqw; border-radius: 99px; background: var(--s-accent-soft); color: #b0104f; font-size: 2.8cqw; font-weight: 500; }
.c-ai__tag i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--s-accent); animation: c-pulse 1.6s ease-in-out infinite; }

/* Integraatiot: kuitti siirtyy kassasta laskutukseen. */
.c-sync__card { position: absolute; left: 9cqw; top: 9cqw; width: 100cqw; padding: 4cqw 5cqw; border: 1px solid var(--s-rule); border-radius: 4cqw; background: #fff; box-shadow: var(--s-shadow-card); font-size: 3.8cqw; }
.c-sync__head { display: flex; align-items: center; gap: 2.4cqw; margin-bottom: 3cqw; }
.c-sync__app { padding: 1cqw 2.6cqw; border-radius: 1.6cqw; background: var(--s-surface); font-size: 3cqw; font-weight: 500; }
.c-sync__app--to { background: #1c1c22; color: #fff; }
.c-sync__icon { width: 4.4cqw; height: 4.4cqw; color: var(--s-accent); animation: c-spin 3.2s linear infinite; }
.c-sync__row { display: flex; justify-content: space-between; max-width: 82cqw; padding: 2cqw 0; border-top: 1px solid var(--s-rule); color: var(--s-ink-2); }
.c-sync__row b { color: var(--s-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.c-sync__row--sum span, .c-sync__row--sum b { color: var(--s-ink); font-weight: 600; }
.c-sync__ok { display: inline-flex; align-items: center; gap: 1.4cqw; margin-top: 3cqw; padding: 1cqw 2.6cqw; border-radius: 99px; background: #eef8f1; color: #1d7a3e; font-size: 2.8cqw; }
.c-sync__ok::before { content: ""; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: currentColor; }

@keyframes c-point {
  0%, 20% { transform: translate(8cqw, 6cqw); }
  42%, 100% { transform: none; }
}
@keyframes c-press {
  0%, 44% { filter: none; }
  48% { filter: brightness(0.85); }
  54%, 100% { filter: none; }
}
@keyframes c-pulse { 50% { opacity: 0.35; } }
@keyframes c-spin { to { transform: rotate(360deg); } }
