/* Kare Digital — flyerit: virtaava sisältö, ei pakotettua sivumäärää */

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

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

@page { size: A4 portrait; margin: 12mm 14mm; }

body.flyer-body {
  background: #d0dede;
  padding: 24px 16px;
  color: #0c1e21;
  font-family: var(--tj-ff-body, 'DM Sans', sans-serif);
}

@media print {
  body.flyer-body { background: #fff; padding: 0; }
}

/* ── Pääasiakirja: yksi virtaava palsta ── */
body.flyer-body .flyer-doc {
  width: 210mm;
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 4px 32px rgba(12, 30, 33, 0.12);
}

@media print {
  body.flyer-body .flyer-doc { box-shadow: none; width: 100%; }
}

body.flyer-body .flyer-content {
  padding: 0 36px;
}

/* ── Hero ── */
body.flyer-body .flyer-hero {
  background: #d8e5e5;
  padding: 28px 36px 24px;
  position: relative;
  overflow: hidden;
}

body.flyer-body .flyer-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 163, 155, 0.09);
  pointer-events: none;
}

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

body.flyer-body .flyer-hero-top .flyer-brand-logo { height: 42px; display: block; }
body.flyer-body .flyer-hero-top .flyer-product-logo {
  height: 20px;
  max-width: 130px;
  object-fit: contain;
  object-position: right center;
}

body.flyer-body .flyer-hero .pulse-wordmark {
  font-size: 20px;
  font-weight: 700;
  color: #0c1e21;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
body.flyer-body .flyer-hero .pulse-wordmark span { color: #00a39b; }

body.flyer-body .flyer-hero .sub-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 6px;
  display: block;
  color: #364e52;
  position: relative;
  z-index: 1;
}
body.flyer-body .flyer-hero .sub-title i { font-size: 14px; color: #00a39b; }

body.flyer-body .flyer-hero .banner-title {
  font-size: 26px !important;
  line-height: 1.14 !important;
  margin-bottom: 8px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

body.flyer-body .flyer-hero .banner-desc {
  font-size: 12px;
  line-height: 1.58;
  color: #364e52;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

body.flyer-body .flyer-hero .hero-proof-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
  z-index: 1;
}

body.flyer-body .flyer-hero .proof-badge {
  font-size: 10px;
  padding: 4px 9px;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 163, 155, 0.25);
  color: #0c1e21;
  display: inline-flex;
  align-items: center;
}
body.flyer-body .flyer-hero .proof-badge i { font-size: 11px; color: #00a39b; }

/* ── Osiot ── */
body.flyer-body .flyer-section {
  padding: 20px 0 20px;
}

body.flyer-body .flyer-section + .flyer-section {
  padding-top: 14px;
}

body.flyer-body .flyer-section .sub-title {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 4px;
  display: block;
  color: #67787a;
}
body.flyer-body .flyer-section .sub-title i { font-size: 13px; color: #00a39b; }

body.flyer-body .flyer-section .sec-title {
  font-size: 17px !important;
  line-height: 1.22 !important;
  font-weight: 700;
  color: #0c1e21;
}

body.flyer-body .flyer-prose {
  font-size: 10.5px;
  line-height: 1.55;
  color: #4a5c5f;
  margin-top: 6px;
}

/* ── Kuvakaappaus ── */
body.flyer-body .flyer-shot {
  padding: 30px 36px;
  background: #ecf8f7;
}

body.flyer-body .flyer-shot .browser-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(12, 30, 33, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.flyer-body .flyer-shot .browser-bar {
  padding: 6px 10px;
  background: #eef2f2;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.flyer-body .flyer-shot .browser-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
body.flyer-body .flyer-shot .browser-bar .dot:nth-child(1) { background: #ff5f57; }
body.flyer-body .flyer-shot .browser-bar .dot:nth-child(2) { background: #febc2e; }
body.flyer-body .flyer-shot .browser-bar .dot:nth-child(3) { background: #28c840; }

body.flyer-body .flyer-shot .browser-url {
  font-size: 9.5px;
  padding: 2px 8px;
  background: #fff;
  border-radius: 4px;
  color: #888;
  margin-left: 4px;
  flex: 1;
  text-align: center;
}

body.flyer-body .flyer-shot .browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

body.flyer-body .flyer-shot-caption {
  margin-top: 6px;
  font-size: 9.5px;
  color: #67787a;
  text-align: center;
  line-height: 1.4;
}

/* ── Usecase-kortit ── */
body.flyer-body .flyer-usecases.usecase-grid,
body.flyer-body .flyer-usecases.usecase-grid--three,
body.flyer-body .flyer-usecases.usecase-grid--two {
  display: grid !important;
  gap: 8px !important;
  margin-top: 10px !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}

body.flyer-body .flyer-usecases.usecase-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
body.flyer-body .flyer-usecases.usecase-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.flyer-body .flyer-usecases .usecase-card {
  padding: 12px 11px 10px !important;
  min-height: 0 !important;
  border-radius: 10px !important;
  grid-column: auto !important;
  max-width: none !important;
}

body.flyer-body .flyer-usecases .usecase-icon {
  width: 30px;
  height: 30px;
  font-size: 15px;
  border-radius: 8px;
  margin-bottom: 7px;
}

body.flyer-body .flyer-usecases .usecase-card h3 {
  font-size: 11.5px;
  margin-bottom: 3px;
  line-height: 1.25;
}

body.flyer-body .flyer-usecases .usecase-card > p {
  font-size: 9.5px;
  line-height: 1.42;
}

body.flyer-body .flyer-usecases .usecase-bullets {
  margin-top: 6px;
  list-style: none;
}

body.flyer-body .flyer-usecases .usecase-bullets li {
  font-size: 9px;
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

body.flyer-body .flyer-usecases .usecase-bullets li i {
  font-size: 10px;
  color: #00a39b;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Ongelmat ── */
body.flyer-body .flyer-problems {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f9f9;
  border: 1px solid #e6e6e6;
  width: 100%;
}

body.flyer-body .flyer-problems h4 {
  font-size: 11px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0c1e21;
}

body.flyer-body .flyer-problems h4 i {
  font-size: 14px;
  color: #6b7280;
}

body.flyer-body .flyer-problem-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

body.flyer-body .flyer-problem-list li {
  font-size: 10px;
  line-height: 1.48;
  padding-left: 14px;
  position: relative;
  color: #4a5c5f;
}

body.flyer-body .flyer-problem-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

/* ── Vaiheet ── */
body.flyer-body .flyer-features.feature-grid-compact {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin-top: 10px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

body.flyer-body .flyer-features .feature-card-compact {
  padding: 9px 10px;
  border-radius: 9px;
  gap: 8px;
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e6e6e6;
}

body.flyer-body .flyer-features .feature-card-compact .feature-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecf8f7;
  color: #00a39b;
}

body.flyer-body .flyer-features .feature-card-compact h4 {
  font-size: 10.5px;
  margin-bottom: 2px;
  font-weight: 600;
}

body.flyer-body .flyer-features .feature-card-compact p {
  font-size: 10.5px;
  line-height: 1.4;
  color: #555;
}

/* ── Ominaisuudet & hyödyt ── */
body.flyer-body .flyer-feature-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

body.flyer-body .flyer-feature-group {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 9px;
}

body.flyer-body .flyer-feature-group h4 {
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 5px;
}

body.flyer-body .flyer-feature-group ul {
  list-style: none;
  display: grid;
  gap: 3px;
}

body.flyer-body .flyer-feature-group li {
  font-size: 9.5px;
  line-height: 1.42;
  color: #555;
  padding-left: 12px;
  position: relative;
}

body.flyer-body .flyer-feature-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #00a39b;
}

body.flyer-body .flyer-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

body.flyer-body .flyer-benefit-card {
  background: #ecf8f7;
  border: 1px solid rgba(0, 163, 155, 0.18);
  border-radius: 9px;
  padding: 10px 11px;
}

body.flyer-body .flyer-benefit-card h4 {
  font-size: 10.5px;
  font-weight: 600;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}

body.flyer-body .flyer-benefit-card h4 i { font-size: 13px; color: #00a39b; }
body.flyer-body .flyer-benefit-card p {
  font-size: 9.5px;
  line-height: 1.42;
  color: #555;
}

/* ── Miksi Kare + kuva rinnakkain ── */
body.flyer-body .flyer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}

body.flyer-body .flyer-split .flyer-shot {
  padding: 0;
  background: transparent;
}

/* Mobiilikuvakaappaus (pystysuuntainen) */
body.flyer-body .flyer-shot--mobile {
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.flyer-body .flyer-shot--mobile-inline {
  margin-top: 12px;
  padding: 0;
}

body.flyer-body .flyer-shot--mobile img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(12, 30, 33, 0.16);
}

body.flyer-body .flyer-split .flyer-shot--mobile {
  align-self: center;
  justify-content: center;
}

body.flyer-body .flyer-shot--mobile-inline .flyer-shot-caption {
  margin-top: 6px;
}

body.flyer-body .flyer-why-kare {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
}

body.flyer-body .flyer-why-kare .flyer-prose { margin-top: 0; margin-bottom: 8px; }

body.flyer-body .flyer-why-kare ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

body.flyer-body .flyer-why-kare li {
  font-size: 10px;
  line-height: 1.45;
  color: #444;
  padding-left: 16px;
  position: relative;
}

body.flyer-body .flyer-why-kare li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00a39b;
  font-weight: 700;
  font-size: 9px;
}

/* ── Käyttökohteet ── */
body.flyer-body .flyer-usecase-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

body.flyer-body .flyer-usecase-chip {
  font-size: 9.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecf8f7;
  border: 1px solid rgba(0, 163, 155, 0.2);
  color: #364e52;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.flyer-body .flyer-usecase-chip i { font-size: 10px; color: #00a39b; }

/* ── Hinnoittelu (kare-flow -tyyli, flyer-koko) ── */
body.flyer-body .flyer-pricing {
  padding-bottom: 12px;
}

body.flyer-body .flyer-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

body.flyer-body .flyer-pricing .price-card {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 12px 11px;
  background: #fff;
  position: relative;
}

body.flyer-body .flyer-pricing .price-card.featured {
  border: 2px solid #00a39b;
  box-shadow: 0 4px 16px rgba(0, 163, 155, 0.12);
}

body.flyer-body .flyer-pricing .price-name {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
  color: #0c1e21;
}

body.flyer-body .flyer-pricing .price-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #151515;
}

body.flyer-body .flyer-pricing .price-value span {
  font-size: 10px;
  color: #777;
  font-weight: 500;
}

body.flyer-body .flyer-pricing .price-value.text {
  font-size: 15px;
  margin-bottom: 6px;
}

body.flyer-body .flyer-pricing .price-tax {
  font-size: 8.5px;
  color: #777;
  margin-bottom: 6px;
}

body.flyer-body .flyer-pricing .price-description-list {
  padding-left: 14px;
  margin: 0;
  min-height: 0;
}

body.flyer-body .flyer-pricing .price-description-list li {
  font-size: 9px;
  line-height: 1.45;
  color: #555;
  margin-bottom: 3px;
}

body.flyer-body .flyer-pricing .price-description-list li::marker {
  color: #00a39b;
}

body.flyer-body .flyer-pricing .price-description-list li:last-child {
  margin-bottom: 0;
}

/* ── Footer ── */
body.flyer-body .flyer-footer {
  background: linear-gradient(135deg, #d8e5e5 0%, #ecf8f7 100%);
  border-top: 1px solid rgba(0, 163, 155, 0.2);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

body.flyer-body .flyer-footer h3 {
  font-size: 13px;
  margin-bottom: 3px;
  line-height: 1.25;
  font-weight: 700;
}

body.flyer-body .flyer-footer p {
  font-size: 10px;
  color: #555;
  line-height: 1.42;
  max-width: 320px;
}

body.flyer-body .flyer-footer-right { text-align: right; flex-shrink: 0; }

body.flyer-body .flyer-footer-url {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #00a39b;
}

body.flyer-body .flyer-footer-copy {
  font-size: 9px;
  color: #888;
  margin-top: 3px;
  display: block;
}

body.flyer-body .flyer-footer-contact {
  font-size: 9.5px;
  color: #555;
  margin-top: 3px;
}

body.flyer-body .flyer-footer-contact a {
  color: #00a39b;
  text-decoration: none;
  font-weight: 600;
}

/* ── Tulostus: älä katkaise kortteja, anna selaimen paginoida ── */
@media print {
  body.flyer-body .flyer-hero,
  body.flyer-body .flyer-shot,
  body.flyer-body .flyer-usecases,
  body.flyer-body .flyer-features,
  body.flyer-body .flyer-feature-groups,
  body.flyer-body .flyer-benefits,
  body.flyer-body .flyer-problems,
  body.flyer-body .flyer-why-kare,
  body.flyer-body .flyer-split,
  body.flyer-body .flyer-footer,
  body.flyer-body .usecase-card,
  body.flyer-body .feature-card-compact,
  body.flyer-body .flyer-feature-group,
  body.flyer-body .flyer-benefit-card,
  body.flyer-body .flyer-pricing-grid,
  body.flyer-body .flyer-pricing .price-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
