/* Toimialasivut (/toimialat). Vain näillä sivuilla; generaattori tools/build_toimialat.py.
   Brändi: kuutra.css-muuttujat. Lisäksi: --t-paper = kuvitusten paperi, --t-moss = data. */
.kpage { --t-paper: #f7f1e3; --t-moss: #2f5d3a; --t-ink: var(--k-ink, #101613); }

/* ── Hero: teksti + kuvitus vierekkäin ── */
.kpage .t-hero { background: var(--k-green); padding: 28px 24px 72px; }
.kpage .t-hero-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.kpage .t-hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; margin: 14px 0 22px; }
.kpage .t-hero .t-lede { font-size: 19px; line-height: 1.6; color: var(--k-body); max-width: 34em; margin: 0 0 28px; }
.kpage .t-hero-art { margin: 0; background: var(--t-paper); border-radius: 28px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16, 22, 19, .06); }
.kpage .t-hero-art img { display: block; width: 100%; height: auto; }
.kpage .t-proof { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpage .t-proof li { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--k-body); }
.kpage .t-proof b { display: block; font-family: var(--k-font-display); font-weight: 400; font-size: 30px;
  line-height: 1.1; color: var(--t-ink); letter-spacing: .01em; }
.kpage .t-proof-src { grid-column: 1 / -1; font-size: 13px; color: var(--k-muted); }
.kpage .t-proof li:not(.t-proof-src) { font-size: 13.5px; }

/* ── Hakukenttä-aihe: oikea haku + kuukausimäärä ── */
.kpage .t-query { display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  background: #fff; border: 1.5px solid var(--k-line); border-radius: 999px;
  padding: 7px 14px 7px 12px; font-size: 15px; line-height: 1.3; color: var(--t-ink); }
.kpage .t-query svg { flex: none; width: 16px; height: 16px; color: var(--k-muted); }
.kpage .t-query q { font-weight: 600; quotes: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpage .t-query span { color: var(--t-moss); font-weight: 800; white-space: nowrap; }

/* ── Valmiit toimialasivut: isot kortit ── */
.kpage .t-section { padding: 88px 24px; }
.kpage .t-section-in { max-width: 1180px; margin: 0 auto; }
.kpage .t-section h2 { font-size: clamp(34px, 4vw, 52px); margin: 0 0 14px; }
.kpage .t-intro { max-width: 40em; margin: 0 0 40px; color: var(--k-body); }
.kpage .t-featured { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpage .t-feature { margin: 0; position: relative; display: grid; grid-template-rows: auto 1fr;
  background: #fff; border: 1.5px solid var(--k-line); border-radius: 24px; overflow: hidden;
  transition: border-color .2s; }
.kpage .t-feature:hover, .kpage .t-feature:focus-within { border-color: var(--t-ink); }
.kpage .t-feature-art { background: var(--t-paper); aspect-ratio: 16 / 9; overflow: hidden; }
.kpage .t-feature-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kpage .t-feature-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.kpage .t-feature h3 { margin: 0; font-size: 24px; }
.kpage .t-feature h3 a { color: inherit; text-decoration: none; }
.kpage .t-feature h3 a::after { content: ""; position: absolute; inset: 0; }  /* koko kortti klikattava */
.kpage .t-feature h3 a:focus-visible { outline: none; }
.kpage .t-feature:has(a:focus-visible) { outline: 3px solid var(--t-ink); outline-offset: 3px; }
.kpage .t-feature p { margin: 0; color: var(--k-body); }
.kpage .t-feature .t-go { margin-top: auto; font-weight: 800; color: var(--t-ink); }

/* ── Tulossa: kevyet rivit ryhmittäin ── */
.kpage .t-groups { display: grid; gap: 40px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
.kpage .t-group h3 { margin: 0 0 6px; font-size: 18px; }
.kpage .t-group > p { margin: 0 0 14px; font-size: 14.5px; color: var(--k-muted); }
.kpage .t-soon { list-style: none; padding: 0; margin: 0; }
.kpage .t-soon li { margin: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px;
  align-items: center; padding: 14px 0; border-top: 1px solid var(--k-line); }
.kpage .t-soon li:last-child { border-bottom: 1px solid var(--k-line); }
.kpage .t-soon img { width: 76px; height: 76px; border-radius: 16px; background: var(--t-paper); object-fit: cover; }
.kpage .t-soon strong { display: block; color: var(--t-ink); font-size: 16.5px; margin-bottom: 6px; }
.kpage .t-soon .t-query { font-size: 13.5px; padding: 4px 11px 4px 9px; gap: 7px; }
.kpage .t-soon .t-query svg { width: 13px; height: 13px; }
.kpage .t-ask { margin-top: 28px; font-size: 16px; }
.kpage .t-ask a { color: var(--t-ink); font-weight: 800; }

/* ── ROAS-käännekohta: kaavio ── */
.kpage .t-roas { background: var(--k-green-soft); }
.kpage .t-roas .t-section-in { display: grid; gap: 48px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center; }
.kpage .t-chart { margin: 0; background: #fff; border-radius: 24px; padding: 28px 28px 22px;
  border: 1.5px solid var(--k-line); }
.kpage .t-bars { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  align-items: end; height: 260px; padding-top: 10px; }
.kpage .t-bar { position: relative; background: var(--k-green); border-radius: 10px 10px 4px 4px;
  height: var(--h); min-height: 6px; }
.kpage .t-bar.t-over { background: var(--t-moss); }
.kpage .t-bar span { position: absolute; z-index: 3; background: #fff; padding: 0 4px; border-radius: 6px; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 800; color: var(--t-ink); white-space: nowrap; }
.kpage .t-budget { position: absolute; z-index: 2; left: -6px; right: -6px; bottom: var(--b); border-top: 2px dashed var(--t-ink); pointer-events: none; }
.kpage .t-budget em { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 12.5px;
  font-weight: 700; background: var(--k-yellow); padding: 2px 8px; border-radius: 999px; }
.kpage .t-months { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 10px;
  font-size: 13px; color: var(--k-muted); text-align: center; }
.kpage .t-chart figcaption { margin-top: 16px; font-size: 13px; color: var(--k-muted); }
.kpage .t-roas-big { font-family: var(--k-font-display); font-size: clamp(56px, 7vw, 96px); line-height: 1;
  color: var(--t-moss); margin: 8px 0 6px; }

/* ── Vaiheet ── */
.kpage .t-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: t-step; }
.kpage .t-steps li { margin: 0; counter-increment: t-step; padding-top: 18px; border-top: 3px solid var(--t-ink); }
.kpage .t-steps li::before { content: counter(t-step); display: block; font-family: var(--k-font-display);
  font-size: 44px; line-height: 1; color: var(--t-ink); margin-bottom: 12px; }
.kpage .t-steps h3 { margin: 0 0 8px; font-size: 20px; }
.kpage .t-steps p { margin: 0; color: var(--k-body); }

/* ── Loppu-CTA: tumma ── */
.kpage .t-final { background: var(--t-ink); color: #e9efe4; padding: 88px 24px; }
.kpage .t-final .t-section-in { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center; }
.kpage .t-final h2 { color: #fff; font-size: clamp(36px, 4.4vw, 58px); margin: 0 0 16px; }
.kpage .t-final p { margin: 0 0 26px; max-width: 34em; }
.kpage .t-final .kbtn-ghost { color: #fff; border-color: #fff; }
.kpage .t-final img { width: 100%; height: auto; border-radius: 24px; background: var(--t-paper); }

/* ── Toimialasivun hero ja avainluvut ── */
.kpage .t-keys { list-style: none; padding: 0; margin: -40px auto 0; max-width: 1180px; position: relative;
  display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 24px; }
.kpage .t-keys li { margin: 0; background: #fff; border: 1.5px solid var(--k-line); border-radius: 20px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.kpage .t-keys b { font-family: var(--k-font-display); font-weight: 400; font-size: 34px; line-height: 1.05;
  color: var(--t-ink); }
.kpage .t-keys li > span { font-size: 15px; color: var(--k-body); line-height: 1.45; }

@media (max-width: 960px) {
 .kpage .t-hero-in, .kpage .t-roas .t-section-in, .kpage .t-final .t-section-in { grid-template-columns: 1fr; }
 .kpage .t-hero { padding-bottom: 56px; }
 .kpage .t-featured, .kpage .t-groups, .kpage .t-steps, .kpage .t-keys { grid-template-columns: 1fr; }
 .kpage .t-section { padding: 64px 20px; }
 .kpage .t-keys { margin-top: -28px; padding: 0 20px; }
 .kpage .t-final img { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .t-feature { transition: none; } }

/* Pienet näytöt: tulokset kahteen sarakkeeseen, pitkät hakupillerit rivittyvät */
@media (max-width: 960px) {
  .kpage .t-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpage .t-proof b { font-size: 26px; }
}
.kpage .t-query { flex-wrap: wrap; row-gap: 2px; }
.kpage .t-soon li > div { min-width: 0; }
