/* ─── Verkkosivupalvelun sommitelmat ──────────────────────────────────────
   Verkkosivu- ja hakukoneoptimointisivujen yhteinen näyttö, toimituksellinen
   hyötyosio sekä sivukohtaiset kuvitukset. */

.v-hero { padding-bottom: 0; }
.v-hero .s-display { max-width: 28ch; }

.v-panel .m-scale { max-width: 480px; }

/* Generated optical layers sit behind the screen; only their inner edges show.
   The artwork supplies the color and depth, with a short fade into the floor. */
.v-stage { padding-bottom: clamp(40px, 5vw, 72px); --stage-top: clamp(64px, 7vw, 108px); overflow: hidden; background: var(--s-black); color: var(--s-on-black); }
.v-stage__visual { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--stage-top); background: linear-gradient(180deg, #fff 56%, #f8f5f5 66%, #5c5459 78%, var(--s-black) 94%); }
.v-stage__visual::after { content: ""; position: absolute; z-index: 3; inset: auto 0 0; height: 26%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(9,9,11,.35) 40%, var(--s-black) 100%); }
.v-stage__inner { padding-inline: var(--s-gutter); }
.v-stage__frame { position: relative; margin: 0; width: min(90%, 1760px); }
.v-stage__light { position: absolute; z-index: 0; max-width: none; width: clamp(420px, 42vw, 760px); height: 120%; top: -6%; object-fit: fill; pointer-events: none; user-select: none; }
.v-stage__light--left { right: calc(100% - 3px); }
.v-stage--website .v-stage__light--left { top: -24%; }
.v-stage__light--right { left: calc(100% - 3px); top: 6%; height: 108%; }
/* A faint contact shadow joins each veil to the screen without tinting its white top. */
.v-stage__frame::before, .v-stage__frame::after { content: ""; position: absolute; z-index: 1; top: 25%; bottom: 0; width: clamp(32px, 6vw, 88px); pointer-events: none; mask-image: linear-gradient(180deg, transparent, #000 35%); }
.v-stage__frame::before { right: 100%; background: linear-gradient(90deg, transparent, rgba(9,9,11,.05)); }
.v-stage__frame::after { left: 100%; background: linear-gradient(90deg, rgba(9,9,11,.05), transparent); }
/* Keep the screen above the background fade, so the two fades do not stack on its numbers. */
.v-screen { position: relative; z-index: 4; border: 0; border-radius: 10px 10px 0 0; background: var(--s-black); overflow: hidden; }
.v-screen::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 82%, rgba(9,9,11,.08) 92%, rgba(9,9,11,.35) 97%, var(--s-black) 100%); }
.v-screen--map { padding: clamp(6px, .65vw, 10px); background: var(--s-black); }
.v-screen:not(.v-screen--map) { aspect-ratio: 2.22; }
.v-screen > img { width: 100%; height: auto; display: block; }
.v-stage__copy { position: relative; z-index: 2; padding-top: clamp(12px, 2vw, 28px); max-width: 680px; }
.v-stage__copy p { color: #a8a8b0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; }
.v-stage--website .v-stage__copy { width: min(90%, 1760px); max-width: none; padding-top: clamp(56px, 5vw, 80px); }
.v-stage--website .v-stage__copy p { max-width: none; padding-left: 24px; line-height: 1.5; }
.v-text-link { display: inline-flex; align-items: center; gap: 16px; padding-block: 10px; color: var(--s-ink); font-size: 15px; border-bottom: 1px solid #c8c4ca; line-height: 1.5; }
.v-text-link span { transition: transform 200ms ease; }
.v-text-link:hover span { transform: translate(2px, -2px); }
.v-text-link:focus-visible, .v-identity__choices button:focus-visible, .v-map-options button:focus-visible { outline: 2px solid #c02e6b; outline-offset: 5px; }

.v-seo-benefits { padding-top: 0; }
.v-seo-benefits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(40px, 7vw, 110px); margin-top: 36px; }
.v-seo-benefits__list li { list-style: none; }
.v-seo-benefits__list .s-icontile { margin-bottom: 20px; }
.v-seo-benefits__list h3 { font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; }
.v-seo-benefits__list p { max-width: 48ch; margin-top: 12px; color: var(--s-ink-2); font-size: 16px; line-height: 1.65; }
@media (max-width: 700px) { .v-seo-benefits__list { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; } }

/* Search intent: a compact funnel gives the purchasing stage visual emphasis. */
.v-search-intent { padding: calc(clamp(64px, 8vw, 120px) + var(--s-section-extra)) var(--s-gutter); background: #f5f3f3; color: var(--s-ink); }
.v-search-intent__layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; max-width: 1600px; margin-inline: auto; }
.v-search-intent h2 { font-size: clamp(34px, 3.5vw, 56px); font-weight: 500; line-height: 1.1; letter-spacing: -.05em; margin-bottom: 32px; }
.v-search-intent h2 span { color: #87707e; }
.v-search-intent__copy > p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: #5c555e; max-width: 47ch; }
.v-search-intent__copy > p + p { margin-top: 20px; }
.v-search-intent__copy > .v-search-intent__focus { margin-top: 30px; font-size: 16px; color: #766774; }
.v-search-intent__focus strong { color: #302630; font-weight: 500; }
.v-intent-funnel { width: 100%; max-width: 560px; justify-self: end; text-align: center; }
.v-intent-funnel__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 156px; padding: 22px 16%; }
.v-intent-funnel__stage > span { font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.02em; }
.v-intent-funnel__stage p { max-width: 28ch; margin-top: 12px; font-size: 14px; line-height: 1.55; }
.v-intent-funnel__stage--discover { background: #e7e2e5; color: #625862; clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%); }
.v-intent-funnel__stage--compare { margin-top: 6px; padding-inline: 20%; background: #d8ccd3; color: #5b4655; clip-path: polygon(7.3% 0, 92.7% 0, 85.7% 100%, 14.3% 100%); }
.v-intent-funnel__stage--choose { margin-top: 6px; padding-inline: 24%; background: #171217; color: #f9f2f6; clip-path: polygon(14.6% 0, 85.4% 0, 78.4% 100%, 21.6% 100%); }
.v-intent-funnel__stage--choose p { color: #e6bfd1; }
.v-intent-funnel figcaption { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; font-size: 13px; color: #6b5262; }
.v-intent-funnel figcaption > span { width: 6px; height: 6px; border-radius: 50%; background: #ae7290; }
@media (max-width: 900px) {
  .v-search-intent__layout { grid-template-columns: 1fr; gap: 44px; }
  .v-search-intent__copy > p { max-width: 60ch; }
  .v-intent-funnel { justify-self: center; max-width: 500px; }
}
@media (max-width: 500px) {
  .v-search-intent h2 { font-size: 34px; }
  .v-intent-funnel__stage { min-height: 166px; padding-block: 22px; }
  .v-intent-funnel__stage p { font-size: 13px; }
  .v-intent-funnel figcaption { font-size: 12px; }
}

/* Editorial benefit story on the visibility service page. */
.v-trust { padding: calc(clamp(64px, 7.5vw, 110px) + var(--s-section-extra)) var(--s-gutter); background: #f6f6f7; color: #111214; }
.v-trust__layout { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 2.5fr); gap: 48px clamp(64px, 7.5vw, 144px); max-width: 1600px; margin-inline: auto; }
.v-trust__intro { grid-column: 2; }

.v-trust__intro h2 { margin-bottom: 30px; }
.v-editorial { max-width: 54ch; font-size: clamp(18px, 1.52vw, 23px); line-height: 1.5; letter-spacing: -.018em; color: #36353b; }
.v-trust__details { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.v-trust__details article { padding-top: 22px; border-top: 1px solid #dcd9df; }

.v-trust__details h3 { margin-block: 18px 12px; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; font-weight: 500; }
.v-trust__details p { color: #69666e; font-size: 15px; line-height: 1.65; }
.v-identity { grid-column: 1; grid-row: 1 / 3; align-self: center; min-width: 0; }
.v-identity__art { --brand-paper: #ebe1e6; --brand-ink: #53404c; padding: 24px; aspect-ratio: 1 / 1.12; display: flex; flex-direction: column; background: var(--brand-paper); color: var(--brand-ink); border-radius: 12px 12px 0 0; transition: background-color 450ms ease, color 450ms ease; }
.v-identity__art[data-tone="sage"] { --brand-paper: #dce4da; --brand-ink: #384b3d; }
.v-identity__art[data-tone="ink"] { --brand-paper: #dedfe5; --brand-ink: #303341; }

.v-identity__monogram { font-family: Georgia, serif; font-size: clamp(68px, 7vw, 112px); letter-spacing: -.09em; line-height: 1.3; margin-block: auto; }
.v-identity__monogram > span { font-size: .4em; margin-left: 7px; }
.v-identity__rule { height: 1px; background: currentColor; opacity: .3; margin-bottom: 12px; }
.v-identity__signature { font-family: Georgia, serif; font-size: 16px; }
.v-identity__swatches { display: flex; gap: 5px; margin-top: 20px; }
.v-identity__swatches i { width: 20px; height: 20px; background: var(--brand-ink); border-radius: 50%; transition: background-color 450ms; }
.v-identity__swatches i:nth-child(2) { opacity: .4; }.v-identity__swatches i:nth-child(3) { opacity: .15; }
.v-identity__caption { padding: 22px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 18px 35px -26px #29233545; }
.v-identity__caption strong { font-size: 16px; font-weight: 500; line-height: 1.4; display: block; }
.v-identity__caption p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: #746e77; }
.v-identity__choices { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.v-identity__choices button { font-size: 11px; color: #6f6872; min-height: 44px; border-bottom: 2px solid transparent; transition: border-color 200ms, color 200ms; }
.v-identity__choices button[aria-pressed="true"] { border-color: #c994ad; color: #242126; }

/* Local visibility illustration: original schematic, not a map-provider embed. */
.v-map-layout { display: grid; grid-template-columns: 30% minmax(0, 1fr); aspect-ratio: 1.78; min-height: 0; background: var(--s-black); border-radius: 8px; overflow: hidden; }
.v-map-info { position: relative; z-index: 1; padding: clamp(24px, 3vw, 44px); background: var(--s-black); display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid #ffffff0e; }

.v-map-info h3 { margin-top: 0; font-size: clamp(23px, 2.7vw, 38px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.v-map-info > p { margin-top: 18px; color: #a6a8ab; font-size: 13px; line-height: 1.6; }
.v-map-options { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 24px; }
.v-map-options button { padding: 9px 12px; min-height: 40px; border: 1px solid #424046; border-radius: 7px; color: #c5c0ca; font-size: 11px; transition: color 200ms, background 200ms; }
.v-map-options button[aria-pressed="true"] { background: #e9d8e3; border-color: #e9d8e3; color: #30252e; }
.v-map-info__key { margin-top: auto; font-size: 11px; line-height: 1.6; color: var(--s-on-black-2); }
.v-map-info__key span { display: block; color: #ded9e1; font-size: 22px; margin-bottom: 7px; }
.v-map { position: relative; overflow: hidden; min-height: 0; }
.v-map__drawing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-map__pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(25px, 3.2vw, 44px); height: clamp(25px, 3.2vw, 44px); font-family: var(--s-mono); font-size: 12px; border-radius: 50%; color: #ded9e1; background: #27242c; border: 1px solid #71647566; box-shadow: 0 3px 12px #0004; }
.v-map__pin.is-center { background: #e9d8e3; color: #30252e; border: 5px solid #e9d8e333; box-shadow: 0 0 0 8px #e9d8e317; }
.v-map__place { position: absolute; top: 57%; left: 49%; transform: translateX(-50%); font-size: 9px; letter-spacing: .1em; padding: 4px 8px; border-radius: 4px; background: var(--s-black); color: #eee8ec; }
.v-research { display: grid; }
.v-research li { display: flex; gap: 28px; padding-block: 28px; border-top: 1px solid #dedbe1; }
.v-research li > span { color: #a67b91; font: 12px var(--s-mono); padding-top: 5px; }
.v-research h3 { font-size: 22px; letter-spacing: -.025em; font-weight: 500; margin-bottom: 8px; }
.v-research p { color: #6c6870; font-size: 16px; line-height: 1.6; max-width: 40ch; }
.v-intent { grid-column: 1; grid-row: 1 / 3; align-self: center; border-block: 1px solid #ddd8df; padding-block: 26px; }

.v-intent p { font-family: Georgia, serif; font-size: 21px; padding-block: 20px; border-bottom: 1px solid #e5e1e7; color: #4f414e; }
.v-intent__end { display: block; margin-top: 24px; font-size: 11px; color: #766575; }
.v-deliverables { padding: clamp(24px, 4vw, 52px); background: #f6f6f7; border-radius: 16px; }
.v-deliverables h3 { font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; margin-bottom: 20px; }
.v-deliverables p { padding-block: 16px; border-bottom: 1px solid #e3dfe5; font-size: 15px; color: #55505b; }
.v-deliverables small { display: block; margin-top: 24px; line-height: 1.6; color: #706b76; }
@media (max-width: 1100px) { .v-stage__frame, .v-stage--website .v-stage__copy { width: 100%; } .v-trust__layout { gap: 40px 48px; grid-template-columns: 230px minmax(0, 1fr); } .v-trust__details { grid-template-columns: 1fr; gap: 24px; } .v-trust__details h3 { margin-top: 12px; } .v-identity, .v-intent { align-self: start; margin-top: 80px; } .v-map-layout { grid-template-columns: 32% minmax(0, 1fr); } }
@media (max-width: 760px) {
  .v-stage { display: none; }
  .v-hero .s-actions > .s-btn--secondary { display: none; }
}

@media (max-width: 700px) {
  .v-trust__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .v-trust__intro, .v-trust__details { grid-column: 1; }
  .v-trust__intro h2 { font-size: clamp(32px, 8vw, 48px); }
  .v-identity, .v-intent { grid-column: 1; grid-row: 2; margin-top: 0; }
  .v-identity { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
  .v-identity__art { aspect-ratio: auto; min-height: 180px; padding: 18px; border-radius: 10px 0 0 10px; }
  .v-identity__monogram { font-size: 62px; }

  .v-identity__signature { font-size: 12px; }.v-identity__swatches { margin-top: 12px; }.v-identity__swatches i { width: 14px; height: 14px; }
  .v-identity__caption { padding: 20px; display: flex; flex-direction: column; justify-content: center; border-radius: 0 10px 10px 0; }
  .v-identity__choices { grid-column: 1 / -1; justify-content: center; gap: 26px; margin-top: 8px; }
  .v-trust__details { gap: 26px; }.v-trust__details h3 { font-size: 23px; }
  .v-intent p { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .v-text-link span, .v-identity__art, .v-identity__swatches i, .v-identity__choices button, .v-map-options button { transition: none; } }

/* ─── Verkkosivut-palvelusivu (w-) ────────────────────────────────────────
   Vaalea, nettiajanvaraussivun kanssa yhtenäinen sommittelu. Rakenne syntyy
   pinnoista ja tyhjästä tilasta; ei ylätunnisteita eikä viivaerottimia. */
.w-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--s-section-y) var(--s-gutter);
  background: var(--s-paper);
}
.w-hero__copy { position: relative; z-index: 2; width: min(62%, 780px); }
.w-hero__copy > .s-lead { width: 560px; max-width: 88vw; }
/* Haalea tekninen reittikaavio tekstin takana: haku, tekoäly ja suositus
   johtavat sivuille, sivuilta varaukseen ja yhteydenottoon. Suorat viivat ja
   pienet kulmat; maski häivyttää reunat. */
.w-hero__art {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 1%;
  width: min(46%, 690px);
  transform: translateY(-50%);
  opacity: .42;
  pointer-events: none;
  user-select: none;
  font-family: var(--s-mono);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.w-hero__art svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.w-hero__art svg :is(circle, text) { shape-rendering: auto; }

.w-center-head { max-width: 860px; margin: 0 auto var(--s-head-gap); text-align: center; }
.w-center-head .s-title { max-width: 24ch; margin-inline: auto; text-wrap: balance; }
.w-center-head .s-lead { max-width: 64ch; margin: 20px auto 0; text-wrap: pretty; }

.s-page.s-page :is(.w-route, .w-step) h3 { font-size: 22px; line-height: 28px; }
.s-page.s-page :is(.w-route, .w-step) p { margin-top: 12px; font-size: 16px; line-height: 24px; color: #4a4a4a; }

/* Peruste: väite ja kolme nousevaa askelmaa. Askelmat seuraavat asiakkaan
   matkaa löytämisestä ostamiseen ja kasvavat kohti tulosta; sivun ainoa
   kertakäyttöinen sommitelma. */
.w-case { padding-top: var(--s-section-y-tight); }
.w-case__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto minmax(184px, auto) auto;
  column-gap: 20px;
}
.w-case__head, .w-case__steps { display: contents; }
.w-case__head .s-title { grid-column: 1 / 3; grid-row: 1; margin-bottom: var(--s-stack-gap); text-wrap: balance; }
.w-case__head .s-lead { grid-column: 1; grid-row: 2; max-width: 36ch; padding-bottom: var(--s-7); text-wrap: pretty; }
.w-case__step {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--s-6);
  padding: clamp(28px, 2.6vw, 40px);
  border-radius: var(--s-radius-xl);
  background: #f6f6f7;
}
.w-case__step:nth-child(1) { grid-column: 1; grid-row: 3; min-height: 322px; }
.w-case__step:nth-child(2) { grid-column: 2; grid-row: 2 / 4; align-self: end; min-height: 414px; background: #ececef; }
.w-case__step--result { grid-column: 3; grid-row: 2 / 4; min-height: 506px; background: var(--s-black-2); }
/* Ikonilaatta seuraa kortin sävyä samassa suhteessa kuin ensimmäisessä
   kortissa: laatta on kauttaaltaan lievästi pintaa vaaleampi. */
.w-case__step:nth-child(2) .s-icontile { background: linear-gradient(180deg, #fcfcfd, #f2f2f4); }
.w-case__step--result .s-icontile { border-color: rgba(255, 255, 255, .1); background: linear-gradient(180deg, #34343b, #222227); box-shadow: none; }
.w-case__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.w-case__result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}
.w-case__nav { display: none; }
.w-case__result svg { width: 16px; height: 16px; color: var(--s-pink-200); }
.s-page.s-page .w-case__step h3 { font-size: 26px; line-height: 32px; text-wrap: balance; }
.s-page.s-page .w-case__step p { max-width: 40ch; margin-top: 12px; font-size: 16px; line-height: 24px; color: #4a4a4a; }
.s-page.s-page .w-case__step--result h3 { color: #fff; }
.s-page.s-page .w-case__step--result p { color: #b4b4bc; }

/* Asiakasreitit: sama sommitelma kuin toimialasivujen ajanvarausosiossa.
   Harmaa pinta, jonka valkoinen näkymä jatkuu oikeaan ja alareunaan. */
.w-routes__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  column-gap: clamp(40px, 6vw, 96px);
}
.w-routes__copy .s-title { max-width: 20ch; text-wrap: balance; }
.w-routes__visual {
  align-self: stretch;
  min-width: 0;
  min-height: 500px;
  display: flex;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 56px) 0 0 clamp(24px, 3.4vw, 56px);
  border-radius: var(--s-radius-xl);
  background: var(--s-surface);
}
.w-routes__screen {
  flex: 1;
  min-width: 0;
  padding: clamp(8px, 1.4vw, 20px);
  border-radius: var(--s-radius) 0 0 0;
  background: var(--s-paper);
  box-shadow: 0 8px 40px rgba(12, 12, 20, .07);
}
.w-routes__screen .m-scale { max-width: clamp(480px, 33vw, 640px); }

/* Reittikortit hakukoneoptimointisivulla. */
.w-routes__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: var(--s-head-gap); }
.w-route { padding: 14px 14px 28px; border-radius: 26px; background: #f6f6f7; }
.w-route__art { display: block; margin-bottom: 24px; overflow: hidden; border-radius: 16px; background: #eaeaed; font-family: var(--s-font); }
.w-route__art svg { display: block; width: 100%; height: auto; }
.w-route :is(h3, p) { padding-inline: 12px; }

/* Työkalut: yhteinen business-story-rakenne; kortin ensimmäinen kuvitus on
   sisällönmuokkaus. */
.w-story-edit .story-booking__site { padding-bottom: 14px; }
.w-story-edit__label { display: block; margin-top: 10px; color: #716b72; font-size: 8px; }
.w-story-edit__field { display: grid; gap: 5px; margin-top: 4px; padding: 7px 8px; border: 1px solid #eee9ed; border-radius: 5px; }
.w-story-edit__field--title { display: flex; align-items: center; gap: 2px; border-color: #d9a3b9; color: #343038; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.w-story-edit__field .v-caret { margin-left: 1px; }
.w-story-edit__field .m-line { height: 5px; }
.s-page.s-page .business-story__tools h4 .w-inline-link { font-weight: inherit; }
.w-inline-link { color: #323232; font-weight: 700; text-decoration: underline; text-decoration-color: #d9a3b9; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.w-inline-link:hover { text-decoration-color: #a34162; }
.w-inline-link:focus-visible { outline: 2px solid #c02e6b; outline-offset: 4px; }

/* Prosessi: numero omassa ympyrässään, ei kortteja. */
.w-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 56px); }
.w-step__number { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-5); border-radius: 50%; background: #f9eef3; color: #a34162; font-size: 20px; font-weight: 700; }

/* Hinnat: kaksi tiivistä korttia valkoisella. Laaja sivusto on tumma ja
   kevyempi vaalean harmaa; sävy erottaa vaihtoehdot ilman ikoneita tai
   sisäkkäisiä pintoja. Rivit jaetaan subgridillä, jolloin otsikot, listat ja
   napit asettuvat vierekkäin vertailtaviksi. */
.w-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; max-width: 920px; margin-inline: auto; }
.w-tier {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 24px;
  justify-items: start;
  padding: clamp(28px, 2.8vw, 40px);
  border-radius: var(--s-radius-xl);
  background: #f5f5f7;
}
.w-tier--dark { background: var(--s-black-2); }
/* Rakenne: kenelle (nimi + tilanne) → hinta → mitä saat → edut → toiminto.
   Nimi johtaa, hinta on oma rivinsä pienempänä, laajuus on kappale eikä
   lista, jolloin rastit jäävät vain eduille. Subgrid pitää rivit linjassa. */
.s-page.s-page .w-tier__head h3 { font-size: 26px; line-height: 32px; color: #323232; }
.s-page.s-page .w-tier__fit { margin-top: 8px; font-size: 16px; line-height: 24px; color: #707070; }
.s-page.s-page .w-tier__price { align-self: start; font-size: 24px; font-weight: 700; line-height: 30px; letter-spacing: -.01em; color: #323232; }
.s-page.s-page .w-tier__price span { margin-right: 2px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: #707070; }
.s-page.s-page .w-tier__scope { align-self: start; font-size: 16px; line-height: 24px; color: #323232; }
.w-tier .s-checks { align-content: start; gap: 10px; margin-top: 0; }
.w-tier .s-checks li { font-size: 16px; line-height: 24px; }
.w-tier > .s-btn { align-self: end; }
.s-page.s-page .w-tier--dark :is(.w-tier__head h3, .w-tier__price) { color: #fff; }
.s-page.s-page .w-tier--dark .w-tier__scope { color: #d4d4d8; }
.s-page.s-page .w-tier--dark :is(.w-tier__fit, .w-tier__price span) { color: #9a9aa2; }
.w-tier--dark .s-checks li { color: #d4d4d8; }
.w-tier--dark .s-checks li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.2 9.2 2.4 2.4 5-5' fill='none' stroke='%23ff7aae' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    rgba(255, 255, 255, .08);
}
.s-page.s-page .w-pricing__note {
  max-width: 72ch;
  margin: 28px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  color: #4a4a4a;
  text-wrap: pretty;
}

@media (max-width: 1100px) {
  .w-routes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); }
  .w-routes__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-6); }
}
@media (max-width: 1100px) {
  .w-hero__art { right: -7%; }
  .w-case__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 12px; }
  .w-case__grid > *, .w-case__head .s-title, .w-case__head .s-lead, .w-case__steps > .w-case__step { grid-column: 1; grid-row: auto; }
  .w-case__head .s-title { margin-bottom: calc(var(--s-stack-gap) - 12px); }
  .w-case__head .s-lead { max-width: 60ch; padding-bottom: var(--s-5); }
  .w-case__steps > .w-case__step { min-height: 0; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: var(--s-5); }
  .w-case__top { display: contents; }
  .w-case__text { flex: 1; min-width: 0; }
  .w-case__result { order: 3; }
  .s-page.s-page .w-case__step p { max-width: 60ch; }
}
@media (max-width: 800px) {
  .w-hero__copy { width: 100%; }
  .w-hero__copy > .s-lead { width: auto; max-width: 100%; }
  .w-hero__art {
    top: 12px;
    right: -150px;
    width: 540px;
    transform: none;
    opacity: .14;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 72%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 20%, #000 72%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 30%, #000 72%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 20%, #000 72%, transparent 100%);
  }
  .w-routes__layout { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
  .w-routes__visual { min-height: 0; border-radius: var(--s-radius-lg); }
  .w-tiers { grid-template-columns: minmax(0, 1fr); row-gap: 0; max-width: 560px; }
  .w-tier + .w-tier { margin-top: 12px; }
}
@media (max-width: 700px) {
  .w-hero .s-actions > .s-btn--secondary { display: none; }
}
@media (max-width: 560px) {
  .w-routes__grid, .w-steps { grid-template-columns: minmax(0, 1fr); }
  .w-routes__grid { gap: 16px; }
  .w-steps { gap: var(--s-6); }
  .w-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--s-4); }
  .w-step__number { grid-row: 1 / 3; margin: 0; }
  .w-step :is(h3, p) { grid-column: 2; }
  .w-step h3 { align-self: center; }
  .w-case__steps > .w-case__step { flex-direction: column; gap: var(--s-6); }
  .w-case__top { display: flex; width: 100%; }
  .w-case__result { order: 0; }
  .s-page.s-page .w-case__step h3 { font-size: 22px; line-height: 28px; }
}

/* Mobiilissa peruste-laatat ovat vaakakaruselli: seuraava kortti pilkistää
   reunasta, ja nuolinapit vierittävät kortin kerrallaan. Kosketus pyyhkäisee
   suoraan, joten napit ovat lisä eivätkä ainoa tapa liikkua. */
@media (max-width: 700px) {
  .w-case__grid { row-gap: 0; }
  .w-case__steps {
    display: flex;
    gap: 12px;
    /* Rata ulottuu ruudun reunoihin. Sivureunus on --s-gutter vw-yksikköinä,
       koska prosenttiarvo viittaisi ruudukkoon tai vierityskehykseen. */
    --w-bleed: 6vw;
    width: 100vw;
    margin-inline: calc(var(--w-bleed) * -1);
    padding: 4px var(--w-bleed) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--w-bleed);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .w-case__steps::-webkit-scrollbar { display: none; }
  .w-case__steps > .w-case__step {
    flex: 0 0 86%;
    min-height: 400px;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--s-6);
    scroll-snap-align: start;
  }
  .w-case__top { display: flex; width: 100%; }
  .w-case__result { order: 0; }
  .w-case__nav { display: flex; gap: 12px; margin-top: var(--s-5); }
  .w-case__arrow {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #4a4a4a;
    color: #fff;
    transition: background-color var(--s-dur) var(--s-ease), opacity var(--s-dur) var(--s-ease);
  }
  .w-case__arrow svg { width: 22px; height: 22px; }
  .w-case__arrow:hover { background: #323232; }
  .w-case__arrow:disabled { opacity: .3; cursor: default; }
}
@media (max-width: 600px) { .w-case__steps { --w-bleed: 24px; } }
@media (max-width: 380px) { .w-case__steps { --w-bleed: 16px; } }
@media (prefers-reduced-motion: reduce) { .w-case__arrow { transition: none; } }
