/* ============================================================
   Arvokello — hubisivu.css
   Osion etusivu (esim. /ammattilaisille): hero tuotenäkymällä,
   kohderyhmäkortit, ominaisuusrivi, portaalinosto, kokemukset.
   Osion väri tulee mainin --tint / --tint-soft -muuttujista.
   ============================================================ */

/* ============ HERO ============ */
.ak-hub-hero {
  background: var(--tint-soft, var(--bg-2));
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-h) + 2.25rem) 1.5rem 3.5rem;
}
.ak-hub-hero .ak-crumbs { max-width: 1180px; margin: 0 auto 2rem; }
.ak-hub-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.25rem;
  align-items: center;
}
.ak-hub-hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.14;
  color: var(--navy);
  margin-bottom: 1.15rem;
}
.ak-hub-hero h1 em { font-style: normal; color: inherit; }
.ak-hub-lead {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 32rem;
}

.ak-hub-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.25rem 0;
  max-width: 34rem;
}
.ak-hub-points li { font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); }
.ak-hub-points svg {
  display: block;
  width: 26px; height: 26px;
  margin-bottom: 0.6rem;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.ak-hub-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.ak-hub-actions.keskella { justify-content: center; }
.ak-hub-head.tiivis { margin-bottom: 1.6rem; }
.ak-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-btn);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.ak-hub-btn.solid { background: var(--teal-ink); color: #fff; }
.ak-hub-btn.solid:hover { background: var(--teal-ink-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ak-hub-btn.ghost { border-color: var(--border); color: var(--navy); background: var(--bg); }
.ak-hub-btn.ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.ak-hub-btn:active { transform: translateY(0); }

.ak-hub-shot { min-width: 0; }
.ak-hub-shot figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-left: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ak-hub-shot figcaption svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (max-width: 940px) {
  .ak-hub-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .ak-hub-points { max-width: none; }
}
@media (max-width: 560px) {
  .ak-hub-points { grid-template-columns: 1fr; gap: 0.9rem; }
  .ak-hub-points li { display: flex; align-items: center; gap: 0.7rem; }
  .ak-hub-points svg { margin-bottom: 0; }
}


/* ============ TUOTENÄKYMÄ (koristeellinen mock) ============ */
.ak-mock {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.4;
}
.ak-mock-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.ak-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); opacity: 0.35; }
.ak-mock-dot + .ak-mock-dot { opacity: 0.18; }
.ak-mock-path { margin-left: 0.45rem; color: var(--text-muted); font-size: 0.7rem; }
.ak-mock-path b { color: var(--navy); font-weight: 500; }
.ak-mock-pill {
  margin-left: auto;
  width: 46px; height: 12px;
  border-radius: 50px;
  background: var(--tint-soft, var(--bg-2));
  border: 1px solid var(--border);
}

.ak-mock-body { display: grid; grid-template-columns: 34px minmax(0, 1fr); }
.ak-mock-rail {
  border-right: 1px solid var(--border);
  padding: 0.9rem 0.5rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.ak-mock-rail i { display: block; height: 6px; border-radius: 3px; background: var(--border); }
.ak-mock-rail i:nth-child(2) { background: var(--tint, var(--teal)); }
.ak-mock-main { padding: 1rem 1.1rem 1.1rem; min-width: 0; }
.ak-mock-h {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.ak-mock-panel {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
}
.ak-mock-wheel { width: 100%; height: auto; display: block; }

/* Teemapalkit: yksi sarja, pituus kertoo suuruuden */
.ak-mock-bars { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.ak-mock-bars > div { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) 2.2rem; align-items: center; gap: 0.5rem; }
.ak-mock-bars span { color: var(--text-muted); font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-mock-bars u { display: block; height: 7px; border-radius: 0 4px 4px 0; background: var(--tint, var(--teal)); }
.ak-mock-bars em { font-style: normal; color: var(--navy); font-size: 0.64rem; text-align: right; white-space: nowrap; }

.ak-mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.7rem; }
.ak-mock-stats div { border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.6rem; }
.ak-mock-stats span { display: block; color: var(--text-muted); font-size: 0.6rem; margin-bottom: 0.15rem; }
.ak-mock-stats b { color: var(--navy); font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.ak-mock-stats b small { font-size: 0.6rem; color: var(--text-muted); font-weight: 400; }

@media (max-width: 620px) {
  .ak-mock-panel { grid-template-columns: 1fr; gap: 0.75rem; padding: 0.75rem; }
  .ak-mock-panel > div:first-child { max-width: 104px; margin-inline: auto; }
  .ak-mock-bars > div { grid-template-columns: 5rem minmax(0, 1fr) 2.1rem; gap: 0.45rem; }
  .ak-mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ============ OSIOT ============ */
.ak-hub-sec { padding: 4rem 1.5rem; }
.ak-hub-sec.tinted { background: var(--bg-2); }
.ak-hub-inner { max-width: 1180px; margin: 0 auto; }
.ak-hub-head { text-align: center; max-width: 40rem; margin: 0 auto 2.75rem; }
.ak-hub-head h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--navy);
}
.ak-hub-head p { margin-top: 0.7rem; font-size: 0.93rem; line-height: 1.7; color: var(--text-muted); }
.ak-hub-head p a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.ak-hub-head p a:hover { color: var(--teal-dark); }


/* ============ KENELLE — kohderyhmäkortit ============ */
.ak-hub-audience {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem 2.5rem;
}
@media (max-width: 1000px) { .ak-hub-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .ak-hub-audience { grid-template-columns: 1fr; } }

/* Ei laatikoita eikä ikonilaattoja: palstat erottaa ohut viiva, ikoni
   riippuu otsikon vasemmalla puolella ja teksti asettuu otsikon linjaan. */
.ak-hub-card {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  column-gap: 0.7rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.ak-hub-card > * { grid-column: 2; }
.ak-hub-card-icon { grid-column: 1; grid-row: 1; display: flex; padding-top: 0.1rem; }
.ak-hub-card-icon svg {
  width: 21px; height: 21px;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ak-hub-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.55rem;
}
.ak-hub-card p { font-size: 0.845rem; line-height: 1.65; color: var(--text-muted); flex: 1; }
.ak-hub-card-more {
  justify-self: start;
  margin-top: 1rem;
  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-hub-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ak-hub-card:hover .ak-hub-card-more { gap: 0.6rem; color: var(--teal-dark); }


/* ============ MITÄ VOIT TEHDÄ — ominaisuusrivi ============ */
.ak-hub-caps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  text-align: center;
}
.ak-hub-caps > div { padding: 0 1rem; border-left: 1px solid var(--border); }
.ak-hub-caps > div:first-child { border-left: 0; }
.ak-hub-caps svg {
  width: 30px; height: 30px;
  margin: 0 auto 0.85rem;
  display: block;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.ak-hub-caps h3 { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 0.45rem; }
.ak-hub-caps p { font-size: 0.8rem; line-height: 1.6; color: var(--text-muted); }
/* Linkkiversio: pelkkä otsikko, joka vie sivulle jossa asia kuvataan */
.ak-hub-caps.linkit { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.ak-hub-caps.linkit h3 { margin-bottom: 0; }
.ak-hub-caps.linkit h3 a { color: inherit; text-decoration: none; }
.ak-hub-caps.linkit h3 a:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .ak-hub-caps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.25rem; }
  .ak-hub-caps > div:nth-child(3n+1) { border-left: 0; }
  .ak-hub-caps.linkit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ak-hub-caps.linkit > div:nth-child(3n+1) { border-left: 1px solid var(--border); }
  .ak-hub-caps.linkit > div:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 620px) {
  .ak-hub-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ak-hub-caps > div:nth-child(3n+1) { border-left: 1px solid var(--border); }
  .ak-hub-caps > div:nth-child(2n+1) { border-left: 0; }
}


/* ============ PORTAALINOSTO ============ */
.ak-hub-portal {
  background: var(--tint-soft, var(--bg-2));
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) 232px;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 1080px) {
  .ak-hub-portal { grid-template-columns: minmax(0, 1fr) 232px; }
  .ak-hub-portal .ak-hub-devices { grid-column: 1 / -1; max-width: 30rem; }
}
@media (max-width: 680px) {
  .ak-hub-portal { grid-template-columns: 1fr; padding: 1.6rem; }
}

.ak-hub-devices { position: relative; padding-right: 17%; }
.ak-hub-laptop {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 0.45rem;
}
.ak-hub-screen {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.ak-hub-screen-top {
  display: flex; align-items: center; gap: 4px;
  padding: 0.35rem 0.5rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.ak-hub-screen-top i { width: 5px; height: 5px; border-radius: 50%; background: var(--border); }
.ak-hub-screen-top i:last-child { width: 34%; height: 5px; border-radius: 3px; margin-left: 0.35rem; }
.ak-hub-screen-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); }
.ak-hub-screen-side {
  border-right: 1px solid var(--border);
  padding: 0.45rem 0.35rem;
  display: flex; flex-direction: column; gap: 0.32rem;
}
.ak-hub-screen-side i { display: block; height: 4px; border-radius: 2px; background: var(--border); }
.ak-hub-screen-side i:first-child { background: var(--tint, var(--teal)); }
.ak-hub-screen-main { padding: 0.55rem 0.65rem; display: flex; flex-direction: column; gap: 0.45rem; }
.ak-hub-screen-main > b { display: block; width: 38%; height: 5px; border-radius: 3px; background: var(--navy); opacity: 0.3; }
.ak-hub-screen-bars { display: flex; flex-direction: column; gap: 0.3rem; }
.ak-hub-screen-bars u { display: block; height: 5px; border-radius: 0 3px 3px 0; background: var(--tint, var(--teal)); }
.ak-hub-screen-tiles { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem; }
.ak-hub-screen-tiles i { display: block; height: 15px; border-radius: 4px; border: 1px solid var(--border); }
.ak-hub-base { height: 7px; margin: 0 26% 0 9%; border-radius: 0 0 9px 9px; background: var(--border); }
.ak-hub-phone { position: absolute; right: 0; bottom: -5%; width: 25%; min-width: 62px; }
.ak-hub-phone img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 28px rgba(44,63,82,0.24)); }

.ak-hub-portal h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.ak-hub-portal > div > p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }
.ak-hub-feats {
  list-style: none;
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
}
@media (max-width: 560px) { .ak-hub-feats { grid-template-columns: 1fr; } }
.ak-hub-feats li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.845rem; line-height: 1.5; color: var(--text-muted);
}
.ak-hub-feats svg {
  flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 0.15rem;
  stroke: var(--teal-dark); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.ak-hub-price {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.ak-hub-price-name { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.ak-hub-price-fig { margin: 0.6rem 0 0.9rem; color: var(--navy); font-size: 2rem; font-weight: 600; line-height: 1; }
.ak-hub-price-fig span { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }
.ak-hub-price h3 { font-size: 0.78rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.ak-hub-price ul { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.2rem; }
.ak-hub-price li { font-size: 0.78rem; color: var(--text-muted); padding-left: 0.85rem; position: relative; }
.ak-hub-price li::before {
  content: '';
  position: absolute; left: 0; top: 0.62em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--tint, var(--teal));
}
.ak-hub-price .ak-hub-btn { width: 100%; justify-content: center; padding: 0.72rem 1rem; font-size: 0.87rem; }
.ak-hub-price-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8rem; color: var(--navy); text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.ak-hub-price-link:hover { color: var(--teal-dark); gap: 0.6rem; }


/* ============ KOKEMUKSET ============ */
.ak-hub-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 900px) { .ak-hub-quotes { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; } }
.ak-hub-quote {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column;
}
.ak-hub-quote svg {
  width: 22px; height: 22px;
  fill: var(--tint, var(--teal));
  margin-bottom: 0.9rem;
}
.ak-hub-quote blockquote { font-size: 0.885rem; line-height: 1.7; color: var(--text-muted); flex: 1; }
.ak-hub-quote figcaption {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.2rem;
  font-size: 0.82rem; color: var(--navy);
}
.ak-hub-quote figcaption i {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint-soft, var(--bg-2));
  flex-shrink: 0;
}
.ak-hub-quote figcaption b { font-weight: 500; }
.ak-hub-quote figcaption span { display: block; color: var(--text-muted); font-size: 0.76rem; }

.ak-hub-more {
  display: block;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
}
.ak-hub-more:hover { color: var(--teal-dark); text-decoration: underline; }


/* ============ ALALAIDAN KEHOTUSPALKKI ============ */
.ak-hub-band-wrap { padding: 0 1.5rem 4.5rem; }
/* Sävytetyn osion tausta päättyy sen omaan alareunaan, joten palkki tarvitsee
   oman yläväljyytensä — valkoisen osion jälkeen sen alapadding riittää. */
.ak-hub-sec.tinted + .ak-hub-band-wrap { padding-top: 4rem; }
.ak-hub-band {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--tint-soft, var(--bg-2));
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
}
.ak-hub-band-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.ak-hub-band-icon svg { width: 22px; height: 22px; stroke: var(--tint, var(--teal-dark)); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ak-hub-band-text { flex: 1; min-width: 15rem; }
.ak-hub-band-text h2 { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.ak-hub-band-text p { font-size: 0.87rem; line-height: 1.6; color: var(--text-muted); }
.ak-hub-band .ak-hub-actions { flex-shrink: 0; }

@media (max-width: 560px) {
  .ak-hub-band { padding: 1.4rem 1.25rem; }
  .ak-hub-band .ak-hub-actions { flex-shrink: 1; min-width: 0; width: 100%; }
  .ak-hub-band .ak-hub-btn { flex: 1 1 auto; justify-content: center; }
}


/* ============================================================
   TUTKIMUSPROJEKTIT — osion etusivun omat lohkot
   ============================================================ */

/* Hero: valintalista ja hintahuomautus */
.ak-hub-checks { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 1.75rem 0 2rem; }
.ak-hub-checks li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; line-height: 1.55; color: var(--text-muted); }
.ak-hub-checks svg {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.16rem;
  stroke: var(--tint, var(--teal)); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ak-hub-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.15rem; font-size: 0.8rem; color: var(--text-muted); }
.ak-hub-note svg {
  flex-shrink: 0; width: 15px; height: 15px;
  stroke: var(--tint, var(--teal)); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Mock-näkymän tumma sivupalkki */
.ak-mock.rail-dark .ak-mock-body { grid-template-columns: 84px minmax(0, 1fr); }
.ak-mock-rail.dark {
  background: var(--navy);
  border-right: 0;
  padding: 0.7rem 0.55rem;
  gap: 0.5rem;
}
.ak-mock-rail.dark b {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.ak-mock-rail.dark span { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.55); }
.ak-mock-rail.dark span:first-of-type { color: #fff; }
.ak-mock-donut { width: 100%; height: auto; display: block; }

/* Miten se toimii: vaiheet + raporttinosto */
.ak-tp-how { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 2.25rem; align-items: center; }
/* Vaiheet aikajanana: osioväriin sävytetty viiva jatkuu palstasta toiseen,
   numero on osa otsikkoriviä. */
.ak-tp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.ak-tp-arrow, .ak-tp-step > svg { display: none; }
.ak-tp-step { padding-top: 1.1rem; border-top: 2px solid var(--tint, var(--teal)); }
.ak-tp-step-head { display: flex; align-items: baseline; gap: 0.45rem; margin-bottom: 0.45rem; }
.ak-tp-num { font-size: 0.93rem; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; }
.ak-tp-num::after { content: '.'; }
.ak-tp-step h3 { font-size: 0.93rem; font-weight: 600; color: var(--navy); }
.ak-tp-step p { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); }

.ak-tp-report { position: relative; }
.ak-tp-paper {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 0.85rem;
}
.ak-tp-paper > b { display: block; font-size: 0.68rem; font-weight: 500; color: var(--navy); margin-bottom: 0.6rem; }
.ak-tp-paper i { display: block; height: 4px; border-radius: 2px; background: var(--border); margin-bottom: 0.28rem; }
.ak-tp-paper i:nth-child(3) { width: 78%; }
.ak-tp-paper i:nth-child(4) { width: 62%; }
.ak-tp-cols { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-top: 0.75rem; }
.ak-tp-cols u { display: block; flex: 1; border-radius: 3px 3px 0 0; background: var(--tint, var(--teal)); }
.ak-tp-dl {
  position: absolute; right: -12px; bottom: -12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.ak-tp-dl svg { width: 15px; height: 15px; stroke: var(--navy); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 940px) {
  .ak-tp-how { grid-template-columns: 1fr; }
  .ak-tp-report { max-width: 232px; margin-inline: auto; }
}
@media (max-width: 780px) {
  .ak-tp-steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Miksi kustannustehokas */
.ak-tp-why {
  background: var(--bg-2);
  border-radius: 18px;
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.3fr);
  gap: 2.25rem;
  align-items: center;
}
.ak-tp-why h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 700; letter-spacing: 0; line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.ak-tp-why > div > p { font-size: 0.87rem; line-height: 1.7; color: var(--text-muted); }
.ak-tp-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; text-align: center; }
.ak-tp-why-grid svg {
  width: 28px; height: 28px; margin: 0 auto 0.75rem; display: block;
  stroke: var(--tint, var(--teal)); fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.ak-tp-why-grid h3 { font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 0.35rem; }
.ak-tp-why-grid p { font-size: 0.78rem; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 940px) { .ak-tp-why { grid-template-columns: 1fr; gap: 1.75rem; } }
@media (max-width: 620px) { .ak-tp-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; } }

/* Hinnoittelu */
.ak-tp-price {
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 1.85rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 248px;
  gap: 1.85rem;
  align-items: start;
}
@media (max-width: 1000px) { .ak-tp-price { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px)  { .ak-tp-price { grid-template-columns: 1fr; padding: 1.4rem; } }

.ak-tp-price h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: 0; color: var(--navy); }
.ak-tp-price-sub { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.3rem; }
.ak-tp-fig { margin: 1.1rem 0 0.35rem; color: var(--navy); font-size: 2.5rem; font-weight: 600; line-height: 1; }
.ak-tp-fig span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.ak-tp-price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.ak-tp-price .ak-hub-feats { grid-template-columns: 1fr; margin-top: 0; margin-bottom: 1.3rem; }

.ak-tp-price h3 { font-size: 0.8rem; font-weight: 600; color: var(--navy); margin-bottom: 0.7rem; }
.ak-tp-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.ak-tp-table th, .ak-tp-table td { text-align: left; padding: 0.5rem 0.2rem; border-bottom: 1px solid var(--border); }
.ak-tp-table th { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); }
.ak-tp-table td { color: var(--text-muted); }
.ak-tp-table td:last-child { text-align: right; color: var(--navy); white-space: nowrap; }
.ak-tp-table tr:last-child td { border-bottom: 0; }

.ak-tp-extra {
  background: var(--tint-soft, var(--bg-2));
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.ak-tp-extra-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.ak-tp-extra h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.ak-tp-extra p { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); }
.ak-tp-extra-fig { margin: 0.9rem 0 1rem; font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.ak-tp-extra .ak-hub-btn { width: 100%; justify-content: center; padding: 0.7rem 1rem; font-size: 0.85rem; white-space: nowrap; }

/* Usein kysyttyä */
.ak-tp-faq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; align-items: start; }
@media (max-width: 900px) { .ak-tp-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ak-tp-faq { grid-template-columns: 1fr; } }
.ak-tp-faq details { background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; }
.ak-tp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem; color: var(--navy);
  cursor: pointer; list-style: none;
}
.ak-tp-faq summary::-webkit-details-marker { display: none; }
.ak-tp-faq summary::after {
  content: ''; flex-shrink: 0;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.22s var(--ease);
}
.ak-tp-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ak-tp-faq details[open] summary { color: var(--teal-ink); }
.ak-tp-faq p { padding: 0 1rem 1rem; font-size: 0.82rem; line-height: 1.65; color: var(--text-muted); }
.ak-tp-faq a { color: var(--navy); }

/* Viiden kortin rivi — käyttötapausosion kohderyhmät */
.ak-hub-audience.viisi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ak-hub-audience.viisi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .ak-hub-audience.viisi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .ak-hub-audience.viisi { grid-template-columns: 1fr; } }

/* Kolmen kortin rivi — tietoa-osion sivut */
.ak-hub-audience.kolme { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ak-hub-audience.kolme { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ak-hub-audience.kolme { grid-template-columns: 1fr; } }

/* Keskitetty hero — sivut, joilla ei ole tuotenäkymää (esim. hinnoittelu) */
.ak-hub-hero.keskitetty .ak-hub-hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.ak-hub-hero.keskitetty .ak-hub-lead { max-width: 40rem; }
.ak-hub-hero.keskitetty .ak-hub-points { max-width: 46rem; }
.ak-hub-hero.keskitetty .ak-hub-points svg { margin-inline: auto; }
.ak-hub-hero.keskitetty .ak-hub-actions { justify-content: center; }
@media (max-width: 560px) {
  .ak-hub-hero.keskitetty .ak-hub-points li { justify-content: center; text-align: left; }
}

/* ============ KAKSI PÄÄHAARAA — omat arvot / yhdessä ============ */
.ak-hub-audience.kaksi { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 860px) { .ak-hub-audience.kaksi { grid-template-columns: 1fr; } }

/* Kortti, jonka sisällä on omat alasivunsa (ei siis itse linkki) */
.ak-hub-card h3 a { color: inherit; text-decoration: none; }
.ak-hub-card h3 a:hover { color: inherit; }
a.ak-hub-card-more { text-decoration: none; }
a.ak-hub-card-more:hover { gap: 0.6rem; color: var(--teal-dark); }

.ak-hub-subwrap {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--border);
}
.ak-hub-subpages {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 520px) { .ak-hub-subpages { grid-template-columns: 1fr; } }
/* Yksi sarake, kun kortteja on rinnakkain kolme tai enemmän (tienviittasivu). */
.ak-hub-subpages.yksi { grid-template-columns: 1fr; }
.ak-hub-subpages a {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 0.83rem; font-weight: 500; line-height: 1.35;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.ak-hub-subpages a:hover {
  border-color: var(--tint, var(--teal));
  background: var(--bg);
  transform: translateX(3px);
}
.ak-hub-subpages svg {
  width: 17px; height: 17px; flex: none;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ak-hub-card .ak-hub-subpages-label {
  margin: 0;
  flex: none;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted);
}


/* ============ SIVUTYYPIT ============ */
/* Sivun ilme tulee sen tyypistä (main.ak-sivu-*):
     tilanne  omat arvot, yhdessä, ryhmät: minttu otsikko, esimerkki vieressä
     tyo      ammattilaiset, organisaatiot, tutkimus: syvä sininen otsikko
     tuote    ammattilaisportaali: valkoinen otsikko, video päänäkymänä
   Sisältö on palstoissa, ja valkoiset ja sävytetyt osiot vuorottelevat.
   Tietoa-osion infosivut ja hinnoittelu ovat omia tyyppejään. */
.ak-sh {
  background: var(--mint-soft);
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4.5rem;
}
.ak-sh .ak-crumbs { max-width: 1180px; margin: 0 auto 2.25rem; }
.ak-sh-inner { max-width: 1180px; margin: 0 auto; }
.ak-sh-inner.kaksi {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
}
.ak-sh h1 {
  font-size: clamp(2.05rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 19em;
  margin-bottom: 1.15rem;
  overflow-wrap: break-word;
}
@media (max-width: 360px) { .ak-sh h1 { font-size: 1.75rem; } }
.ak-sh-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 38rem;
}
.ak-sh .ak-hub-actions { margin-top: 1.9rem; }

.ak-sivu-tyo .ak-sh { background: var(--syva); }
.ak-sivu-tyo .ak-sh h1 { color: #fff; }
.ak-sivu-tyo .ak-sh-lead { color: rgba(255,255,255,0.84); }
.ak-sivu-tyo .ak-sh .ak-crumbs a,
.ak-sivu-tyo .ak-sh .ak-crumbs span { color: rgba(255,255,255,0.72); }
.ak-sivu-tyo .ak-sh .ak-crumbs a:hover,
.ak-sivu-tyo .ak-sh .ak-crumbs span[aria-current] { color: #fff; }
.ak-sivu-tyo .ak-sh .ak-hub-btn.solid,
.ak-sivu-tyo .ak-loppu .ak-hub-btn.solid { background: var(--mint); color: var(--syva); }
.ak-sivu-tyo .ak-sh .ak-hub-btn.solid:hover,
.ak-sivu-tyo .ak-loppu .ak-hub-btn.solid:hover { background: #fff; }
.ak-sivu-tyo .ak-sh .ak-hub-btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.ak-sivu-tyo .ak-sh .ak-hub-btn.ghost:hover { border-color: #fff; }
/* Oletusrengas ei erotu tummasta pohjasta */
.ak-sivu-tyo .ak-sh :focus-visible,
.ak-sivu-tyo .ak-loppu :focus-visible { outline-color: var(--gold-soft); }

.ak-sivu-tuote .ak-sh { background: var(--bg); padding-bottom: 1rem; }

/* Palstat: otsikko ja lyhyt teksti rinnakkain */
.ak-palstat {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 3rem;
}
.ak-palstat.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ak-palstat li { padding-top: 1.1rem; border-top: 1px solid var(--border); min-width: 0; }
.ak-palstat h3 { font-size: 1.15rem; line-height: 1.3; color: var(--navy); margin-bottom: 0.4rem; }
.ak-palstat p { font-size: 0.95rem; line-height: 1.65; color: var(--text-muted); }

/* Sarakkeet: kokonaisia aiheita vierekkäin, kussakin oma pino */
.ak-sarakkeet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 3.5rem;
}
.ak-sarakkeet.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ak-sarake { min-width: 0; }
.ak-sarake-otsikko {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  line-height: 1.2;
  color: var(--navy);
}
.ak-sarake-otsikko svg {
  flex-shrink: 0;
  width: 26px; height: 26px;
  stroke: var(--tint, var(--teal-dark));
  fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ak-sarake-johdanto { margin-top: 0.7rem; font-size: 0.97rem; line-height: 1.7; color: var(--text-muted); }
.ak-pino { list-style: none; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: grid; gap: 1.15rem; }
.ak-pino h3 { font-size: 1.05rem; line-height: 1.3; color: var(--navy); margin-bottom: 0.2rem; }
.ak-pino p { font-size: 0.93rem; line-height: 1.65; color: var(--text-muted); }

/* Jako: teksti ja näkymä rinnakkain */
.ak-jako {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
  align-items: center;
}
.ak-jako .ak-hub-head { text-align: left; max-width: none; margin: 0 0 1.25rem; }
.ak-hub-sec .ak-jako .ak-hub-checks { margin: 0; }

.ak-lisa {
  max-width: 46rem;
  margin: 2.25rem auto 0;
  text-align: center;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.ak-lisa a, .ak-rivit a, .ak-palstat a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hyvä tietää: yksi lause ja linkki omien lohkojen sijaan */
.ak-rivit { max-width: calc(1180px + 3rem); margin: 2.5rem auto 0; padding: 0 1.5rem; text-align: center; }
.ak-rivit p { padding: 0.3rem 0; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }

/* Loppukehotus */
.ak-loppu {
  width: min(1180px, calc(100% - 3rem));
  margin: 3rem auto 4.5rem;
  padding: 2.5rem 3rem;
  border-radius: var(--radius);
  background: var(--mint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.ak-loppu h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.2; color: var(--navy); }
.ak-loppu p { margin-top: 0.35rem; font-size: 0.97rem; line-height: 1.6; color: var(--navy); }
.ak-sivu-tyo .ak-loppu { background: var(--syva); }
.ak-sivu-tyo .ak-loppu h2 { color: #fff; }
.ak-sivu-tyo .ak-loppu p { color: rgba(255,255,255,0.84); }

@media (max-width: 960px) {
  .ak-sarakkeet { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .ak-sarakkeet.n2 { grid-template-columns: minmax(0, 1fr); }
  .ak-palstat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .ak-sh-inner.kaksi, .ak-jako { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 560px) {
  .ak-palstat, .ak-palstat.n2 { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .ak-loppu { padding: 1.75rem 1.5rem; }
  .ak-loppu .ak-hub-btn { width: 100%; justify-content: center; }
}
