/* Kare Work — A4-flyer */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@page { size: A4 portrait; margin: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #c8d8d8;
  color: #0c1e21;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px;
  font-size: 10.5pt;
  line-height: 1.5;
}

@media print {
  body { background: #fff; gap: 0; padding: 0; }
}

/* ── A4-sivu ── */
.a4 {
  width: 210mm;
  height: 297mm;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 0 4px 32px rgba(12, 30, 33, 0.12);
}

@media print {
  .a4 {
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }
  .a4:last-child {
    page-break-after: avoid;
    break-after: avoid;
  }
}

/* Tulostuksessa: älä katkaise keskeisiä lohkoja */
@media print {
  .wk-strip,
  .wk-cards3,
  .wk-two-col,
  .wk-flow,
  .wk-features,
  .wk-why-box,
  .wk-footer,
  .wk-card,
  .wk-feat,
  .wk-flow-step {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ── Typografia ── */
.wk-label {
  font-size: 8.5pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2d4548;
  font-weight: 600;
}

.wk-block-label {
  font-size: 8.5pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d4548;
  font-weight: 600;
  margin-bottom: 5px;
}

.wk-block-label i {
  color: #008f88;
  font-size: 11pt;
  margin-right: 3px;
  vertical-align: -1px;
}

.wk-block h2 {
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 9px;
  color: #0c1e21;
}

.wk-subtitle {
  font-size: 11pt;
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 8px;
  color: #0c1e21;
}

/* ── Sivu 1: hero ── */
.wk-hero {
  background: #d8e5e5;
  padding: 11mm 16mm 9mm;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.wk-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(0, 143, 136, 0.1);
  pointer-events: none;
}

.wk-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  position: relative;
  z-index: 1;
}

.wk-hero-top img { height: 36px; display: block; }

.wk-wordmark {
  font-size: 20pt;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wk-wordmark span { color: #008f88; }

.wk-hero .wk-label {
  margin-bottom: 7px;
  position: relative;
  z-index: 1;
}

.wk-hero h1 {
  font-size: 21pt;
  font-weight: 700;
  line-height: 1.14;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.wk-hero h1 em {
  font-style: normal;
  color: #008f88;
}

.wk-lead {
  font-size: 10pt;
  line-height: 1.58;
  color: #2d4548;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  max-width: 98%;
}

.wk-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.wk-badge {
  font-size: 8.5pt;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 143, 136, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0c1e21;
}

.wk-badge i { font-size: 10pt; color: #008f88; }

/* ── Hyötynauha ── */
.wk-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid #d8e0e0;
  flex-shrink: 0;
}

.wk-strip-item {
  padding: 24px 13px 24px;
  border-right: 1px solid #d8e0e0;
}

.wk-strip-item:last-child { border-right: none; }

.wk-strip-num {
  font-size: 16pt;
  font-weight: 700;
  color: #008f88;
  line-height: 1;
  margin-bottom: 5px;
}

.wk-strip-title {
  font-size: 9.5pt;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0c1e21;
  line-height: 1.25;
}

.wk-strip-desc {
  font-size: 8.5pt;
  line-height: 1.5;
  color: #3a4f52;
}

/* ── Kuvakaappaus ── */
.wk-shot-wrap {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: #ecf8f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wk-shot-wrap--page2 {
  flex: 1 1 0;
  min-height: 0;
}

.wk-shot-wrap--compact {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: transparent;
}

.wk-browser {
  flex: 1 1 0;
  min-height: 0;
  max-height: 80%;
  width: 86%;
  max-width: 100%;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(12, 30, 33, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
}


.wk-shot-wrap--compact .wk-browser {
  flex: 1 1 0;
}

@media print {
  .wk-browser { box-shadow: none; }
}

.wk-browser-bar {
  padding: 4px 9px;
  background: #eef2f2;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.wk-browser-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.wk-browser-bar .dot:nth-child(1) { background: #ff5f57; }
.wk-browser-bar .dot:nth-child(2) { background: #febc2e; }
.wk-browser-bar .dot:nth-child(3) { background: #28c840; }

.wk-browser-url {
  font-size: 7.5pt;
  padding: 2px 8px;
  background: #fff;
  border-radius: 4px;
  color: #666;
  margin-left: 4px;
  flex: 1;
  text-align: center;
}

.wk-browser-shot {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.wk-browser img,
.wk-browser-shot img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  object-fit: contain;
  object-position: top center;
}

.wk-shot-cap {
  font-size: 8pt;
  color: #4a5c5f;
  text-align: center;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 143, 136, 0.15);
  flex-shrink: 0;
  width: 88%;
  max-width: 100%;
}

.wk-shot-wrap--page2 .wk-shot-cap {
  width: 94%;
}

.wk-shot-wrap--compact .wk-shot-cap {
  width: 100%;
  margin-top: 5px;
}

/* ── Sivuotsikko ── */
.wk-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16mm;
  border-bottom: 1px solid #e0e6e6;
  flex-shrink: 0;
}

.wk-page-head img { height: 22px; }

.wk-page-head span {
  font-size: 9pt;
  color: #4a5c5f;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Sisältölohko ── */
.wk-block {
  padding: 9mm 16mm 8mm;
  flex-shrink: 0;
}

.wk-block--gap {
  padding-top: 6mm;
  padding-bottom: 5mm;
}

.wk-block--features {
  padding: 6mm 16mm 4mm;
  flex-shrink: 0;
}

/* ── Kohderyhmäkortit ── */
.wk-cards3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 9px;
}

.wk-card {
  border-radius: 9px;
  padding: 13px 12px 12px;
  border: 1px solid #dce4e4;
  background: #fff;
  border-top: 3px solid #008f88;
}

.wk-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #ecf8f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 15pt;
  color: #008f88;
}

.wk-card h3 {
  font-size: 10pt;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.25;
  color: #0c1e21;
}

.wk-card p {
  font-size: 8.5pt;
  line-height: 1.48;
  color: #3a4f52;
}

.wk-card ul {
  list-style: none;
  margin-top: 7px;
}

.wk-card li {
  font-size: 8.5pt;
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: #2d4548;
  line-height: 1.4;
}

.wk-card li i {
  font-size: 9pt;
  color: #008f88;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Ongelma + työnkulku ── */
.wk-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wk-problems {
  background: #f7f9f9;
  border: 1px solid #dce4e4;
  border-radius: 9px;
  padding: 11px 13px;
}

.wk-problems h4 {
  font-size: 9pt;
  font-weight: 700;
  margin-bottom: 7px;
  color: #0c1e21;
}

.wk-problems ul { list-style: none; }

.wk-problems li {
  font-size: 8.5pt;
  line-height: 1.48;
  padding-left: 13px;
  position: relative;
  color: #3a4f52;
  margin-bottom: 2px;
}

.wk-problems li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #7a8a8c;
  font-weight: 700;
  font-size: 9pt;
}

/* ── Työnkulku ── */
.wk-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.wk-flow-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  position: relative;
}

.wk-flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 30px;
  bottom: -2px;
  width: 2px;
  background: rgba(0, 143, 136, 0.25);
}

.wk-flow-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #008f88;
  color: #fff;
  font-size: 10pt;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.wk-flow-body h4 {
  font-size: 9.5pt;
  font-weight: 700;
  margin-bottom: 2px;
  color: #0c1e21;
  line-height: 1.25;
}

.wk-flow-body p {
  font-size: 8.5pt;
  line-height: 1.45;
  color: #3a4f52;
}

/* ── Ominaisuudet ── */
.wk-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wk-feat {
  border: 1px solid #dce4e4;
  border-radius: 9px;
  padding: 11px 12px 10px;
  background: #fff;
}

.wk-feat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.wk-feat-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #ecf8f7;
  color: #008f88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13pt;
  flex-shrink: 0;
}

.wk-feat h4 {
  font-size: 9.5pt;
  font-weight: 700;
  color: #008f88;
  line-height: 1.2;
}

.wk-feat ul { list-style: none; }

.wk-feat li {
  font-size: 8.5pt;
  line-height: 1.52;
  color: #3a4f52;
  padding-left: 11px;
  position: relative;
}

.wk-feat li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #008f88;
}

/* ── Miksi Kare + kuva allekkain ── */
.wk-split {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16mm 3mm;
}

.wk-why-box {
  background: #ecf8f7;
  border: 1px solid rgba(0, 143, 136, 0.22);
  border-left: 4px solid #008f88;
  border-radius: 9px;
  padding: 9px 13px;
  flex-shrink: 0;
}

.wk-why-box .wk-subtitle {
  margin-bottom: 8px;
}

.wk-why-box ul {
  list-style: none;
}

.wk-why-box li {
  font-size: 9pt;
  line-height: 1.52;
  padding-left: 15px;
  position: relative;
  color: #2d4548;
  margin-bottom: 3px;
}

.wk-why-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #008f88;
  font-weight: 700;
  font-size: 9pt;
}

/* ── Footer ── */
.wk-footer {
  background: linear-gradient(135deg, #d8e5e5 0%, #ecf8f7 100%);
  border-top: 1px solid rgba(0, 143, 136, 0.25);
  padding: 14px 16mm 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  margin-top: auto;
}

.wk-footer h3 {
  font-size: 11.5pt;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.28;
  color: #0c1e21;
}

.wk-footer-main p {
  font-size: 9pt;
  color: #3a4f52;
  line-height: 1.48;
  max-width: 420px;
}

.wk-footer-contact {
  margin-top: 6px !important;
  font-size: 9.5pt !important;
}

.wk-footer a {
  color: #007a74;
  text-decoration: none;
  font-weight: 700;
}

.wk-footer-right {
  text-align: right;
  flex-shrink: 0;
  padding-top: 2px;
}

.wk-footer-url {
  display: block;
  font-size: 10pt;
  font-weight: 700;
  color: #008f88;
  line-height: 1.4;
}

.wk-footer-copy {
  font-size: 8pt;
  color: #5a6a6c;
  margin-top: 3px;
  display: block;
}

/* ── Kansi (lehtisen tyylinen) ── */
.a4.wk-cover {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 16%, rgba(38, 161, 155, 0.16), transparent 36%),
    radial-gradient(circle at 10% 84%, rgba(25, 133, 128, 0.12), transparent 34%),
    linear-gradient(155deg, #0b3a3c 0%, #082f31 48%, #061f21 100%);
}

.wk-cover__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.wk-cover__grid {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 7mm 7mm;
  -webkit-mask-image: linear-gradient(135deg, transparent 0%, #000 24%, #000 72%, transparent 100%);
  mask-image: linear-gradient(135deg, transparent 0%, #000 24%, #000 72%, transparent 100%);
}

.wk-cover__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(18mm);
  pointer-events: none;
}

.wk-cover__glow--top {
  width: 110mm;
  height: 110mm;
  top: -40mm;
  right: -18mm;
  background: rgba(24, 148, 142, 0.14);
}

.wk-cover__glow--bottom {
  width: 130mm;
  height: 130mm;
  left: -52mm;
  bottom: -58mm;
  background: rgba(18, 118, 113, 0.12);
}

.wk-cover__flow {
  position: absolute;
  width: 165mm;
  height: 242mm;
  right: -22mm;
  top: 8mm;
  color: rgba(102, 199, 193, 0.24);
  transform: rotate(1.5deg);
}

.wk-cover__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 14mm 16mm 12mm 18mm;
}

.wk-cover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4.5mm;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.wk-cover__logo {
  display: block;
  width: 54mm;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.wk-cover__header-mark {
  font-size: 7pt;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
  max-width: 52mm;
}

.wk-cover__main {
  width: 118mm;
  margin-top: 9mm;
  flex-shrink: 0;
}

.wk-cover__eyebrow {
  margin: 0 0 4.5mm;
  font-size: 7.8pt;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.wk-cover h1 {
  margin: 0;
  max-width: 118mm;
  font-size: 34pt;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.048em;
  color: #ffffff;
}

.wk-cover h1 span {
  display: block;
  margin-top: 2.5mm;
  color: #3baa9e;
}

.wk-cover__lead {
  width: 102mm;
  max-width: 102mm;
  margin: 4.5mm 0 0;
  font-size: 10.5pt;
  line-height: 1.42;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.90);
}

.wk-cover__showcase {
  width: 92%;
  margin: 5mm 0 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
}

.wk-cover__showcase-img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 3mm;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.wk-cover__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4mm;
  flex-shrink: 0;
}

.wk-cover__footer-copy {
  display: flex;
  flex-direction: column;
  gap: 1mm;
}

.wk-cover__footer-copy strong,
.wk-cover__footer-copy span {
  display: block;
  font-size: 9pt;
  line-height: 1.28;
}

.wk-cover__footer-copy strong {
  color: rgba(255, 255, 255, 0.95);
}

.wk-cover__footer-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.wk-cover__footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8mm;
}

.wk-cover__footer-links span {
  font-size: 9pt;
  line-height: 1.22;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
}

@media print {
  .wk-cover,
  .wk-cover__showcase {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
