/* ============================================================
   Arvokello — tutustusivu.css
   Megavalikon "Tutustu"-sivujen yhteinen muoto: otsikko ilman heroa,
   käyttötapauskortit, kolmen vaiheen polku, "mitä saat selville"
   -paneeli, tietoturvarivi, kokemus ja kehotuspalkki.

   Ladataan hubisivu.css:n JÄLKEEN — napit (.ak-hub-btn), osiokehykset
   (.ak-hub-sec / .ak-hub-head) ja kehotuspalkki tulevat sieltä.
   Osion väri tulee mainin --tint / --tint-soft -muuttujista.
   ============================================================ */

/* ============ ASETTELU ============ */
/* Kolmannen tason sivulla ei ole heroa: otsikko ja lohkot ovat yhtenä
   palstana, jotta sivu erottuu osion etusivusta. */
.ak-tu-page { padding: calc(var(--nav-h) + 1.75rem) 1.5rem 5rem; }
.ak-tu-page > .ak-crumbs { max-width: 1180px; margin: 0 auto 2.5rem; }
.ak-tu-content { max-width: 1180px; margin: 0 auto; }


/* ============ OTSIKKOALUE ============ */
.ak-tu-head { padding-bottom: 0.5rem; }
.ak-tu-head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1rem;
  max-width: 42rem;
}
.ak-tu-head h1 em { font-style: normal; color: inherit; }
.ak-tu-lead {
  font-size: clamp(0.97rem, 1.5vw, 1.06rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 42rem;
}
.ak-tu-head .ak-hub-actions { margin-top: 1.75rem; }

/* "Katso video" -napin toistokolmio */
.ak-tu-play {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.ak-tu-play svg { width: 9px; height: 9px; fill: currentColor; stroke: none; display: block; margin-left: 1px; }

/* Lupausrivi napeista alaspäin */
.ak-tu-assur {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 1.4rem;
}
.ak-tu-assur li {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.ak-tu-assur svg {
  flex-shrink: 0; width: 14px; height: 14px;
  stroke: var(--tint, var(--teal)); fill: none;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}


/* ============ LOHKOT SISÄLTÖPALSTASSA ============ */
/* Lohkojen merkintä on sama kuin hub-sivuilla; täällä ne asettuvat
   palstaan ilman täysleveitä taustoja ja keskitettyjä otsikoita. */
.ak-tu-content .ak-hub-sec,
.ak-tu-content .ak-hub-sec.tinted {
  padding: 3.5rem 0 0;
  background: none;
}
.ak-tu-content .ak-hub-head { text-align: left; max-width: 42rem; margin: 0 0 1.75rem; }
.ak-tu-content .ak-hub-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.ak-tu-content .ak-hub-band-wrap,
.ak-tu-content .ak-hub-sec.tinted + .ak-hub-band-wrap { padding: 3.5rem 0 0; }
.ak-tu-inner { max-width: 1180px; margin: 0 auto; }

/* Kortit kolmessa sarakkeessa */
.ak-tu-content .ak-tu-cards:not(.viisi) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ak-tu-content .ak-tu-cards.viisi { --sarakkeet: 3; justify-content: flex-start; }

@media (max-width: 940px) { .ak-tu-page > .ak-crumbs { margin-bottom: 1.5rem; } }


/* ============ KÄYTTÖTAPAUKSET ============ */
/* Ei laatikoita eikä keskitettyjä ikoneita: kohteet ovat palstoissa
   ohuen viivan alla, ikoni riippuu otsikon vasemmalla puolella. */
.ak-tu-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.ak-tu-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 0.65rem;
  align-content: start;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.ak-tu-card > * { grid-column: 2; }
.ak-tu-card > svg {
  grid-column: 1; grid-row: 1;
  width: 20px; height: 20px;
  margin-top: 0.05rem;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ak-tu-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.ak-tu-card p { font-size: 0.86rem; line-height: 1.65; color: var(--text-muted); }

/* Linkkikortti — sivuilla, jotka kokoavat alleen useamman oman sivun */
a.ak-tu-card { text-decoration: none; }
a.ak-tu-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ak-tu-card-more {
  justify-self: start;
  margin-top: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.83rem; font-weight: 500; color: var(--navy);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
a.ak-tu-card:hover .ak-tu-card-more { gap: 0.6rem; color: var(--teal-dark); }

/* Viiden kortin rivi (esim. /kayttotapaukset/yhdessa). Flex eikä grid,
   jotta vajaa viimeinen rivi asettuu samaan palstajakoon. */
.ak-tu-cards.viisi { --sarakkeet: 3; display: flex; flex-wrap: wrap; gap: 2rem 2.5rem; }
.ak-tu-cards.viisi > .ak-tu-card {
  flex: 0 0 calc((100% - (var(--sarakkeet) - 1) * 2.5rem) / var(--sarakkeet));
}
@media (max-width: 900px) {
  .ak-tu-content .ak-tu-cards:not(.viisi), .ak-tu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ak-tu-content .ak-tu-cards.viisi, .ak-tu-cards.viisi { --sarakkeet: 2; }
}
@media (max-width: 560px) {
  .ak-tu-content .ak-tu-cards:not(.viisi), .ak-tu-cards { grid-template-columns: 1fr; gap: 1.5rem; }
  .ak-tu-content .ak-tu-cards.viisi, .ak-tu-cards.viisi { --sarakkeet: 1; gap: 1.5rem; }
}


/* ============ NÄIN SE TOIMII — kolmen vaiheen polku ============ */
/* Numeroitu luettelo aikajanana: osioväriin sävytetty viiva jatkuu
   palstasta toiseen, numero on osa otsikkoa. */
.ak-tu-steps {
  list-style: none;
  counter-reset: vaihe;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.ak-tu-step {
  counter-increment: vaihe;
  padding-top: 1.1rem;
  border-top: 2px solid var(--tint, var(--teal-dark));
}
.ak-tu-step h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.45rem; }
.ak-tu-step h3::before { content: counter(vaihe) '. '; font-variant-numeric: tabular-nums; }
.ak-tu-step p { font-size: 0.86rem; line-height: 1.65; color: var(--text-muted); max-width: 22rem; }

@media (max-width: 760px) {
  .ak-tu-steps { grid-template-columns: 1fr; gap: 1.5rem; }
}


/* ============ MITÄ SAAT SELVILLE — paneeli ============ */
.ak-tu-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
}
.ak-tu-panel h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy);
  margin-bottom: 1.3rem;
}
.ak-tu-panel .ak-hub-checks { margin: 0 0 1.75rem; }

/* Oikea puoli: neljä pientä näkymäruutua */
.ak-tu-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.ak-tu-tile {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 0.9rem 0.95rem;
  min-height: 118px;
  display: flex; flex-direction: column;
}
.ak-tu-tile > b {
  display: block;
  font-size: 0.66rem; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* pylväät */
.ak-tu-tile-cols { flex: 1; display: flex; align-items: flex-end; gap: 5px; }
.ak-tu-tile-cols u { display: block; flex: 1; border-radius: 3px 3px 0 0; background: var(--tint, var(--teal)); opacity: var(--o, 1); }

/* numeroitu lista */
.ak-tu-tile-list { list-style: none; counter-reset: t; display: flex; flex-direction: column; gap: 0.32rem; }
.ak-tu-tile-list li {
  counter-increment: t;
  font-size: 0.68rem; color: var(--text-muted);
  display: flex; gap: 0.4rem;
}
.ak-tu-tile-list li::before { content: counter(t) '.'; color: var(--navy); font-weight: 500; }

/* liukusäädin */
.ak-tu-tile-slider { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ak-tu-tile-rail { position: relative; height: 3px; border-radius: 2px; background: var(--border); }
.ak-tu-tile-rail i {
  position: absolute; top: 50%;
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--tint, var(--teal));
  box-shadow: 0 0 0 3px var(--bg);
}
.ak-tu-tile-ends { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.8rem; font-size: 0.6rem; color: var(--text-muted); }

/* tekstiluonnos */
.ak-tu-tile-lines { flex: 1; display: flex; flex-direction: column; gap: 0.34rem; }
.ak-tu-tile-lines i { display: block; height: 5px; border-radius: 3px; background: var(--border); }
.ak-tu-tile-lines i:nth-child(2) { width: 86%; }
.ak-tu-tile-lines i:nth-child(4) { width: 64%; }

@media (max-width: 940px) { .ak-tu-panel { grid-template-columns: 1fr; gap: 1.9rem; } }
@media (max-width: 520px) { .ak-tu-tiles { grid-template-columns: 1fr; } }


/* ============ NOSTO — yksi vahva lupaus ============ */
.ak-tu-nosto {
  background: var(--tint-soft, var(--bg-2));
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.ak-tu-nosto-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
}
.ak-tu-nosto-icon svg {
  width: 24px; height: 24px;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ak-tu-nosto-text { min-width: 0; }
.ak-tu-nosto h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.ak-tu-nosto > div > p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); max-width: 44rem; }

.ak-tu-nosto-lista {
  list-style: none;
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.75rem;
  max-width: 44rem;
}
.ak-tu-nosto-lista li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.85rem; line-height: 1.55; color: var(--navy);
}
.ak-tu-nosto-lista svg {
  flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 0.16rem;
  stroke: var(--tint, var(--teal)); fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

.ak-tu-nosto-huomio {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
  line-height: 1.6;
  color: var(--text-muted);
}
.ak-tu-nosto-huomio a,
.ak-tu-nosto-lista a,
.ak-tu-card p a,
.ak-hub-head p a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.ak-tu-nosto-huomio a:hover,
.ak-tu-nosto-lista a:hover,
.ak-tu-card p a:hover,
.ak-hub-head p a:hover { color: var(--teal-dark); }

@media (max-width: 700px) {
  .ak-tu-nosto { flex-direction: column; gap: 1.15rem; padding: 1.6rem 1.4rem; }
  .ak-tu-nosto-lista { grid-template-columns: 1fr; }
}


/* ============ TIETOTURVARIVI ============ */
.ak-tu-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.ak-tu-trust > div { display: flex; gap: 0.7rem; }
.ak-tu-trust-icon { flex-shrink: 0; display: flex; padding-top: 0.05rem; }
.ak-tu-trust-icon svg {
  width: 20px; height: 20px;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ak-tu-trust h3 { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.ak-tu-trust p { font-size: 0.8rem; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 860px) { .ak-tu-trust { grid-template-columns: 1fr; gap: 1.35rem; max-width: 34rem; margin-inline: auto; } }


/* ============ KOKEMUS ============ */
.ak-tu-testi {
  background: var(--tint-soft, var(--bg-2));
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}
.ak-tu-testi-text { padding: 2.5rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.ak-tu-testi-text > svg { width: 26px; height: 26px; fill: var(--tint, var(--teal)); opacity: 0.55; margin-bottom: 1rem; }

.ak-tu-slides { position: relative; }
.ak-tu-slide {
  margin: 0;
  transition: opacity 0.35s var(--ease);
}
.ak-tu-slide[hidden] { display: none; }
.ak-tu-slide blockquote {
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  line-height: 1.6;
  color: var(--navy);
  font-weight: 500;
}
.ak-tu-slide figcaption { margin-top: 1.15rem; font-size: 0.83rem; color: var(--text-muted); }

.ak-tu-dots { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.75rem; }
.ak-tu-dots button {
  width: 8px; height: 8px;
  padding: 0; border: 0; border-radius: 50%;
  background: var(--navy); opacity: 0.22;
  cursor: pointer;
  transition: width 0.25s var(--ease), opacity 0.25s var(--ease);
}
.ak-tu-dots button[aria-selected="true"] { width: 22px; border-radius: 4px; opacity: 1; background: var(--tint, var(--teal-dark)); }

/* Oikea puoli: kuvapaikka */
.ak-tu-testi-media { position: relative; min-height: 240px; background: var(--bg-2); }
.ak-tu-testi-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-tu-testi-media.tyhja {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  background: var(--bg);
  margin: 1rem 1rem 1rem 0;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
}
.ak-tu-testi-media.tyhja svg {
  width: 38px; height: 38px;
  stroke: var(--text-muted); fill: none; opacity: 0.4;
  stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.ak-tu-testi-media.tyhja span {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.7;
}
@media (max-width: 860px) {
  .ak-tu-testi { grid-template-columns: 1fr; }
  .ak-tu-testi-media { order: -1; min-height: 170px; }
  .ak-tu-testi-media.tyhja { margin: 1rem 1rem 0; }
  .ak-tu-testi-text { padding: 1.9rem 1.5rem; }
}


/* ============ KEHOTUSPALKKI ============ */
/* Runko tulee hubisivu.css:stä (.ak-hub-band); tässä vain napin alahuomio. */
.ak-tu-band-actions { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.ak-tu-band-actions small { font-size: 0.74rem; color: var(--text-muted); }
@media (max-width: 560px) { .ak-tu-band-actions { width: 100%; } .ak-tu-band-actions .ak-hub-btn { width: 100%; justify-content: center; } }


/* ============ VIDEO ============ */
/* Oma mp4, ei kolmansien osapuolten soitinta. Kuvasuhde on varattu
   etukäteen, jotta sivu ei hypi, kun esikatselukuva latautuu. */
.ak-tu-video { padding-bottom: 1rem; }
.ak-tu-video video {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--mint-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ak-tu-video video a { color: var(--teal-ink); }
.ak-vaiheet-video { margin: 2.5rem auto 0; max-width: 880px; }
.ak-vaiheet-video figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-muted); text-align: center; }


/* ============ SIVUTYYPIT: TUTUSTU-RUNKO ============ */
/* Otsikkoalue, palstat ja loppukehotus ovat hubisivu.css:ssä. Tässä
   lohkot täysleveiksi, jotta sävytetyt osiot voivat vuorotella. */
.ak-tu-page[class*="ak-sivu-"] { padding: 0; }
.ak-tu-page[class*="ak-sivu-"] .ak-tu-content { max-width: none; }
.ak-tu-page[class*="ak-sivu-"] .ak-hub-sec { padding: 4rem 1.5rem; }
.ak-tu-page[class*="ak-sivu-"] .ak-hub-sec.tinted { background: var(--bg-2); }
.ak-tu-page[class*="ak-sivu-"] .ak-hub-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.ak-tu-page[class*="ak-sivu-"] .ak-jako .ak-hub-head { text-align: left; max-width: none; margin: 0 0 1.25rem; }
.ak-tu-page[class*="ak-sivu-"] .ak-tu-nosto { background: var(--bg-2); }

/* Lista ilman näkymää keskelle kahteen palstaan */
.ak-hub-checks.palstoissa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 2.5rem; max-width: 52rem; margin: 0 auto; }
@media (max-width: 700px) { .ak-hub-checks.palstoissa { grid-template-columns: minmax(0, 1fr); } }

/* Video päänäkymänä */
.ak-sivu-tuote .ak-tu-video video { max-width: 960px; margin: 0 auto; }


/* ============ ESIMERKKI ============ */
/* Mitä vastaaja näkee ja mitä siitä jää käteen. Oikea sisältö, ei koriste. */
.ak-esim {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  color: var(--navy);
}
.ak-esim-kysymys { padding: 1.4rem 1.5rem; text-align: center; border-bottom: 1px solid var(--border); }
.ak-esim-kysymys p { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--navy); margin-bottom: 0.8rem; }
.ak-esim-valinta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.7rem; }
.ak-esim-valinta span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--navy);
}
.ak-esim-valinta span:first-child { border-color: var(--teal-ink); background: var(--mint-soft); }
.ak-esim-valinta em { font-style: normal; font-size: 0.82rem; color: var(--text-muted); }
.ak-esim-tulos { padding: 1.25rem 1.5rem 1.1rem; }
.ak-esim-otsikko { font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.7rem; }
.ak-esim ol { list-style: none; counter-reset: arvo; display: grid; gap: 0.5rem; }
.ak-esim li {
  counter-increment: arvo;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 13.5rem) minmax(4rem, 1fr);
  gap: 0.6rem;
  align-items: center;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--navy);
}
.ak-esim li::before { content: counter(arvo); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.ak-esim li::after {
  content: '';
  display: block;
  grid-column: 3;
  grid-row: 1;
  width: var(--w, 50%);
  height: 8px;
  border-radius: 4px;
  background: var(--c-ammatti);
}
.ak-esim li:first-child::after { background: var(--gold); }
.ak-esim-huomio {
  margin-top: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-2);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--navy);
}
.ak-esim-huomio b { font-weight: 600; }
.ak-esim figcaption { padding: 0 1.5rem 1rem; font-size: 0.76rem; color: var(--text-muted); }


/* ============ HINNASTO ============ */
.ak-hinnasto { width: 100%; border-collapse: collapse; }
.ak-hinnasto th, .ak-hinnasto td { padding: 0.85rem 0; border-bottom: 1px solid var(--border); text-align: left; }
.ak-hinnasto thead th { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.ak-hinnasto thead th:last-child, .ak-hinnasto td { text-align: right; }
.ak-hinnasto tbody th { font-size: 0.97rem; font-weight: 400; color: var(--navy); }
.ak-hinnasto td { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
