/* ==========================================================================
   KOTELIFE home page (scoped: body.kl-home-page / .kl-home-*)
   Geometry and density follow the late old site (snippets 68/70, 29 Oct captures):
   outer wrap 1200px with 22px inner padding = 1156px visible content on 1440,
   5px horizontal padding on mobile, one left axis for all headings.
   Core "constrained" layout, blockGap and theme entry margins are neutralised
   once at the section level instead of per-element overrides.
   Main content is always visible: no reveal/opacity tricks, no timers.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Geometry and core layout neutralisation
   -------------------------------------------------------------------------- */
body.kl-home-page { --kl-wide: 1156px; --kl-pad: 22px; --kl-home-gap: 28px; --kl-home-radius: 24px; }
body.kl-home-page .kl-wide { padding-top: 24px; padding-bottom: 36px; }
body.kl-home-page .kl-entry-wide > * { width: min(var(--kl-wide), 100% - var(--kl-pad) * 2); margin-inline: auto; }
body.kl-home-page .kl-entry-wide > * + * { margin-top: var(--kl-home-gap); }
.kl-home-section, .kl-home-section *, .kl-home-section *::before, .kl-home-section *::after { box-sizing: border-box; }
.kl-home-page .kl-home-section .alignwide { width: 100%; max-width: 100% !important; margin-inline: 0 !important; }
.kl-home-page :is(.kl-home-h1,.kl-home-h2,.kl-home-cat-title,.kl-section-title,.kl-home-benefit-title) { margin-block-start: 0 !important; }
.kl-home-page .kl-section-head { width: 100%; min-height: 0; align-items: center; }
.kl-native-home-rail .ktlc-step-number { min-width: 2ch; font-variant-numeric: tabular-nums; }
/* Sections are flex/grid/plain blocks of their own; core constrained rules must not
   centre or cap their children. Applied to the section and to nested groups. */
.kl-home-section.is-layout-constrained > *, .kl-home-section .is-layout-constrained > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.kl-home-section.is-layout-constrained > * + *, .kl-home-section .is-layout-constrained > * + * { margin-block-start: 0 !important; }
.kl-home-section .wp-block-group, .kl-home-section .wp-block-columns, .kl-home-section .wp-block-column { margin: 0; }
.kl-home-section > * { margin-top: 0; margin-bottom: 0; }
@media (max-width: 600px) { body.kl-home-page { --kl-pad: 5px; --kl-home-gap: 14px; } body.kl-home-page .kl-wide { padding-top: 6px; padding-bottom: 12px; } }

/* --------------------------------------------------------------------------
   Shared text and buttons (left axis, compact, old-site button metrics)
   -------------------------------------------------------------------------- */
.kl-home-eyebrow { display: block; margin: 0 0 12px; font-size: 10px; font-weight: 750; letter-spacing: 1.6px; text-transform: uppercase; color: #7935d6; text-align: left; }
.kl-home-eyebrow-mint { color: #34705b; }
.kl-home-h1 { margin: 0; font-size: 43px; line-height: 1.08; letter-spacing: -1.7px; font-weight: 800; text-align: left; max-width: none; }
.kl-home-h2 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.8px; font-weight: 800; text-align: left; max-width: none; }
.kl-home-h2 em { font-style: normal; color: #7a35df; }
.kl-home-lead { margin: 12px 0 0; color: #625b6c; font-size: 14px; line-height: 1.5; max-width: 490px; text-align: left; }
.kl-home-section .wp-block-buttons { margin: 18px 0 0; justify-content: flex-start; }
.kl-home-section .wp-block-button { margin: 0; }
.kl-home-section .wp-block-button__link { border-radius: 13px !important; padding: 12px 17px !important; font-size: 13px !important; font-weight: 650 !important; line-height: 1.2; display: inline-flex; align-items: center; gap: 12px; border: 0; }
.kl-home-button .wp-block-button__link { background: #7b35df !important; color: #fff !important; box-shadow: none; }
.kl-home-button .wp-block-button__link:hover { background: #6a2bc5 !important; }
.kl-home-button .wp-block-button__link::after, .kl-home-text-link .wp-block-button__link::after { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
/* Text link styled core button (used by the calculator strip and production). */
.kl-home-text-link .wp-block-button__link { background: transparent !important; color: #7830d8 !important; padding: 0 !important; border-radius: 0 !important; font-size: 12px !important; font-weight: 650 !important; gap: 9px; box-shadow: none; }
.kl-home-text-link .wp-block-button__link:hover { color: #5a1fb3 !important; text-decoration: underline; }
.kl-home-text-link .wp-block-button__link::after { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   1. Hero: copy 30px 34px, H1 43px two lines, photo fills the right column
   -------------------------------------------------------------------------- */
.kl-home-hero.wp-block-media-text { grid-template-columns: 1.06fr 1fr !important; border-radius: 26px; overflow: hidden; background: #eee6f9; border: 1px solid #e0d2f0; min-height: 0; }
.kl-home-hero .wp-block-media-text__content { padding: 30px 34px !important; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.kl-home-hero .wp-block-media-text__media { position: relative; min-height: 290px; align-self: stretch; margin: 0; display: block; overflow: hidden; }
.kl-home-hero .wp-block-media-text__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; display: block; }
.kl-home-hero .kl-home-lead { margin-top: 15px; max-width: 380px; }
.kl-home-hero .wp-block-buttons { margin-top: 22px; }
.kl-home-hero-actions { display: flex; gap: 10px; }
@media (max-width: 900px) { .kl-home-h1 { font-size: 35px; } .kl-home-hero .wp-block-media-text__content { padding: 25px !important; } }
@media (max-width: 600px) {
  .kl-home-hero.wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 100% !important; border-radius: 17px; }
  .kl-home-hero.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media { grid-row: 1 !important; grid-column: 1 !important; min-height: 0; aspect-ratio: 1000 / 563; }
  .kl-home-hero.wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__content { grid-row: 2 !important; grid-column: 1 !important; padding: 12px !important; }
  .kl-home-h1 { font-size: 28px; letter-spacing: -1px; }
  .kl-home-hero .kl-home-eyebrow { font-size: 8px; letter-spacing: .8px; margin-bottom: 9px; }
  .kl-home-hero .kl-home-lead { font-size: 11px; margin: 8px 0 12px; max-width: 310px; }
  .kl-home-hero .wp-block-buttons { margin-top: 0; }
  .kl-home-hero .wp-block-button__link { font-size: 11px !important; padding: 10px 12px !important; gap: 6px; }
  .kl-home-button .wp-block-button__link::after { width: 16px; height: 16px; }
}

/* --------------------------------------------------------------------------
   2. 30% strip (mint): number, copy right next to it, tag on the right
   -------------------------------------------------------------------------- */
.kl-home-benefit { position: relative; display: flex; align-items: center; gap: 22px; padding: 16px 112px 16px 24px; min-height: 98px; border: 1px solid #aed4bf; border-radius: 21px; background: linear-gradient(120deg, #f0faf5, #e3f4eb, #cde7da); box-shadow: 0 3px 12px rgba(33, 105, 76, .05); overflow: visible; }
.kl-home-benefit > .kl-home-benefit-number { margin: 0; flex: 0 0 auto; font-size: 54px; line-height: 43px; font-weight: 900; letter-spacing: -2px; color: #064c46; white-space: nowrap; }
.kl-home-benefit > .kl-home-benefit-number sup { font-size: 35px; vertical-align: 0; line-height: 1; font-weight: 900; }
.kl-home-benefit-copy { flex: 1 1 auto; min-width: 0; }
.kl-home-benefit-title { margin: 0; font-size: 18px; color: #153d32; line-height: 1.2; text-align: left; }
.kl-home-benefit-note { margin: 5px 0 0; font-size: 12px; color: #536e60; text-align: left; }
.kl-home-tag.wp-block-image { position: absolute; right: 13px; top: -15px; width: 104px; height: 112px; margin: 0; pointer-events: none; filter: drop-shadow(0 7px 7px rgba(11, 91, 62, .07)); transform-origin: 50% 22%; }
.kl-home-tag img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0; }
@media (max-width: 600px) {
  .kl-home-benefit { gap: 17px; padding: 13px 68px 13px 12px; height: 90px; min-height: 90px; border-radius: 16px; }
  .kl-home-benefit > .kl-home-benefit-number { font-size: 48px; line-height: 48px; flex: 0 0 95px; width: 95px; letter-spacing: -2px; transform: scale(1.08); transform-origin: left center; }
  .kl-home-benefit > .kl-home-benefit-number sup { font-size: 30px; }
  .kl-home-benefit-title { font-size: 13px; }
  .kl-home-benefit-note { font-size: 10px; line-height: 1.3; }
  .kl-home-tag.wp-block-image { width: 90px; height: 101px; right: 8px; top: -14px; }
}

/* --------------------------------------------------------------------------
   3. Four photo categories (desktop 4 in a row, mobile 2x2 with 5px gap)
   -------------------------------------------------------------------------- */
.kl-home-categories .kl-home-h2 { margin-bottom: 15px; }
.kl-home-cat-grid.wp-block-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.kl-home-cat-grid.wp-block-columns > .wp-block-column { flex-basis: auto !important; width: auto; }
.kl-home-cat.wp-block-column { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e1ed; border-radius: 22px; overflow: hidden; transition: transform .18s ease-out, box-shadow .2s; }
.kl-home-cat.wp-block-column:hover, .kl-home-cat.wp-block-column:focus-within { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(72, 44, 104, .15); }
.kl-home-cat > .wp-block-image { margin: 0; aspect-ratio: 1.04; background: #eee8f5; overflow: hidden; position: relative; }
.kl-home-cat > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 0; transition: transform .35s; }
.kl-home-cat.wp-block-column:hover > .wp-block-image img { transform: scale(1.04); }
/* Photo not yet provided: same aspect box, neutral, no giant panel. */
.kl-home-cat.wp-block-column:not(:has(.wp-block-image))::before { content: ""; display: block; aspect-ratio: 1.04; background: linear-gradient(135deg, #f3eef9, #e8e0f3); }
.kl-home-cat-title { margin: 0; padding: 17px 52px 0 14px; font-size: 17px; line-height: 1.2; text-align: left; }
.kl-home-cat-title a { color: #292431; text-decoration: none; }
.kl-home-cat-title a::after { content: ""; position: absolute; inset: 0; }
.kl-home-cat-title a::before { content: ""; position: absolute; right: 14px; bottom: 20px; width: 31px; height: 31px; border-radius: 50%; background: #f0e8fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c32d7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat; }
.kl-home-cat-note { margin: 7px 0 0; padding: 0 52px 17px 14px; font-size: 11px; color: #625b6c; text-align: left; }
.kl-home-cat-sale > .wp-block-image::after, .kl-home-cat-sale.wp-block-column:not(:has(.wp-block-image))::after { content: "%"; position: absolute; top: 15px; right: 15px; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 15px; background: #e84c78; color: #fff; border: 1px solid rgba(255, 255, 255, .55); font-size: 30px; font-weight: 800; transform: rotate(9deg); }
@media (max-width: 1000px) { .kl-home-cat-title { font-size: 15px; padding-top: 14px; } .kl-home-cat-note { font-size: 10px; } }
@media (max-width: 600px) {
  .kl-home-cat-grid.wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .kl-home-cat.wp-block-column { border-radius: 17px; }
  .kl-home-cat > .wp-block-image, .kl-home-cat.wp-block-column:not(:has(.wp-block-image))::before { aspect-ratio: 1.13; }
  .kl-home-cat-title { padding: 9px 36px 0 8px; font-size: 14px; }
  .kl-home-cat-title a::before { width: 25px; height: 25px; right: 8px; bottom: 11px; background-size: 16px; }
  .kl-home-cat-note { padding: 0 36px 9px 8px; font-size: 10px; margin-top: 6px; }
  .kl-home-cat-sale > .wp-block-image::after, .kl-home-cat-sale.wp-block-column:not(:has(.wp-block-image))::after { width: 43px; height: 43px; font-size: 24px; border-radius: 12px; top: 10px; right: 10px; }
}

/* --------------------------------------------------------------------------
   4 and 6. Deals and popular rails (desktop white card, mobile edge to edge)
   -------------------------------------------------------------------------- */
.kl-home-deals, .kl-home-popular { background: #fff; border: 1px solid #e8e1ed; border-radius: 24px; padding: 17px; }
.kl-home-deals .kl-section-head { background: linear-gradient(120deg, #fff5f6 0%, #f9e7ed 52%, #eee7f7 100%); border: 1px solid #e8d3e0; border-radius: 16px; padding: 12px; margin: 0 0 12px; color: #633d58; }
.kl-home-deals .kl-section-title { color: #633d58; font-size: 23px; letter-spacing: -.6px; padding-left: 42px; position: relative; }
.kl-home-deals .kl-section-title::before { content: "%"; position: absolute; left: 0; top: 50%; width: 32px; height: 32px; transform: translateY(-50%) rotate(-10deg); border-radius: 10px; background: linear-gradient(135deg, #ff7b9d, #e84c78); color: #fff; font-size: 16px; font-weight: 800; display: grid; place-items: center; }
.kl-home-deals .kl-section-link { color: #836c80; }
.kl-home-popular .kl-home-eyebrow { margin-bottom: 6px; }
.kl-home-popular .kl-section-head { margin: 0 0 15px; }
.kl-home-popular .kl-section-title { font-size: 28px; letter-spacing: -.8px; }
.kl-home-page .kl-products { overflow: visible; }
.kl-home-page .kl-products-rail .kl-rail-catalog .ktlc-grid { grid-auto-columns: calc((100% - 12px * 4) / 5); gap: 12px; padding: 2px 0 8px; scroll-padding-inline: 0; touch-action: pan-x pan-y; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; cursor: grab; }
.kl-home-page .kl-products-rail .kl-rail-catalog .ktlc-grid.is-dragging { cursor: grabbing; }
.kl-home-page .kl-rail-catalog .ktlc-card { transition: transform .2s; }
.kl-home-page .kl-rail-catalog .ktlc-card:hover { transform: translateY(-2px); }
.kl-home-page .kl-rail-woo ul.products { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px * 4) / 5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; margin: 0; }
.kl-home-page .kl-rail-woo ul.products li.product { scroll-snap-align: start; }
@media (max-width: 900px) { .kl-home-page .kl-products-rail .kl-rail-catalog .ktlc-grid { grid-auto-columns: 170px !important; } .kl-home-page .kl-rail-woo ul.products { grid-auto-columns: 170px; } }
@media (max-width: 600px) {
  .kl-home-deals, .kl-home-popular { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .kl-home-deals .kl-section-head { padding: 10px 8px; margin: 0 0 8px; border-radius: 14px; }
  .kl-home-deals .kl-section-title { font-size: 21px; padding-left: 36px; }
  .kl-home-deals .kl-section-title::before { width: 27px; height: 27px; font-size: 14px; }
  .kl-home-popular .kl-section-head { margin-bottom: 8px; padding: 0 6px; }
  .kl-home-popular .kl-section-title { font-size: 23px; }
  .kl-home-popular .kl-home-eyebrow, .kl-home-popular .kl-section-link { display: none; }
  .kl-home-page .kl-products-rail .kl-rail-catalog .ktlc-grid { grid-auto-columns: calc((100vw - 15px) / 2.1) !important; gap: 5px; padding-inline: 5px; scroll-padding-inline: 5px; }
  .kl-home-page .kl-rail-woo ul.products { grid-auto-columns: calc((100vw - 15px) / 2.1); gap: 5px; padding-inline: 5px; }
}

/* --------------------------------------------------------------------------
   5. Production: neutral warm near-white card, copy left, cat right
   -------------------------------------------------------------------------- */
.kl-home-production { border-radius: 23px; border: 1px solid #ebe4ef; background: #fcfbf9; overflow: hidden; }
.kl-home-production-grid.wp-block-columns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; margin: 0; align-items: stretch; }
.kl-home-production-grid.wp-block-columns > .wp-block-column { flex-basis: auto !important; width: auto; }
.kl-home-production-copy.wp-block-column { padding: 25px 28px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.kl-home-production .kl-home-h2 { font-size: 30px; }
.kl-home-production .kl-home-lead { font-size: 13px; margin: 12px 0 0; }
.kl-home-points { list-style: none; counter-reset: kl-point; display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0 0; padding: 0; }
.kl-home-points li { counter-increment: kl-point; display: flex; align-items: center; gap: 7px; font-size: 11px; color: #453a50; max-width: 145px; line-height: 1.3; }
.kl-home-points li::before { content: counter(kl-point, decimal-leading-zero); flex: 0 0 auto; padding: 8px; border-radius: 9px; background: #e0d1fa; color: #7a35df; font-weight: 700; font-size: 15px; }
.kl-home-production .wp-block-buttons { margin-top: 19px; }
.kl-home-production-scene.wp-block-column { position: relative; min-height: 275px; overflow: hidden; }
.kl-home-production-scene > .wp-block-image { position: absolute; inset: 0; margin: 0; }
.kl-home-production-scene > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; border-radius: 0; }
.kl-home-production-scene.wp-block-column:not(:has(img)) { background: #f3eef9; }
@media (max-width: 900px) { .kl-home-production-copy.wp-block-column { padding: 22px; } .kl-home-points { gap: 7px; } .kl-home-points li { font-size: 10px; } }
@media (max-width: 600px) {
  .kl-home-production { border-radius: 17px; }
  .kl-home-production-grid.wp-block-columns { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .kl-home-production-copy.wp-block-column { padding: 14px 10px; }
  .kl-home-production-copy .kl-home-eyebrow { display: none; }
  .kl-home-production .kl-home-h2 { font-size: 20px; line-height: 1.17; letter-spacing: -.5px; }
  .kl-home-production .kl-home-lead { font-size: 12px; line-height: 1.45; margin: 9px 0 0; }
  .kl-home-points { display: none; }
  .kl-home-production .wp-block-buttons { margin-top: 12px; }
  .kl-home-production .wp-block-button__link { font-size: 11px !important; padding: 10px !important; gap: 5px; white-space: normal; }
  .kl-home-production-scene.wp-block-column { min-height: 210px; }
  .kl-home-production-scene > .wp-block-image img { object-position: 42% center; }
}

/* --------------------------------------------------------------------------
   7. Calculator strip (mint): text link + arrow, 3D calculator on the right
   -------------------------------------------------------------------------- */
.kl-home-calculator { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 35px; width: 100%; box-sizing: border-box; padding: 22px 24px; border-radius: 23px; border: 1px solid #b8d7c4; background: linear-gradient(120deg, #eef9f2, #deefe6); overflow: visible; }
.kl-home-calculator-copy { flex: 1; min-width: 0; }
.kl-home-calculator .kl-home-h2 { font-size: 29px; color: #292431; }
.kl-home-calculator .kl-home-lead { color: #4a6658; font-size: 13px; margin: 11px 0 18px; }
.kl-home-calculator .wp-block-buttons { margin: 0; }
.kl-home-calculator .kl-home-text-link .wp-block-button__link { color: #246348 !important; }
.kl-home-calculator .kl-home-text-link .wp-block-button__link:hover { color: #1b4d37 !important; }
.kl-home-calc-art.wp-block-image { flex: 0 0 135px; width: 135px; height: 135px; margin: 0; position: relative; pointer-events: none; transform-origin: 50% 50%; transform: scale(1.28); filter: drop-shadow(0 8px 8px rgba(50, 91, 64, .12)); }
.kl-home-calc-art img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0; }
@media (max-width: 600px) {
  .kl-home-calculator { padding: 14px 12px; gap: 10px; border-radius: 17px; }
  .kl-home-calculator .kl-home-eyebrow { display: none; }
  .kl-home-calculator .kl-home-h2 { font-size: 23px; line-height: 1.2; }
  .kl-home-calculator .kl-home-lead { font-size: 12px; line-height: 1.5; margin: 10px 0 14px; }
  .kl-home-calc-art.wp-block-image { flex-basis: 94px; width: 94px; height: 104px; top: 0; align-self: center; transform: scale(1); margin-right: 0; }
}

/* --------------------------------------------------------------------------
   8. Ideas rail (core gallery as snap rail; core lightbox on click)
   -------------------------------------------------------------------------- */
.kl-home-ideas { background: #fff; border: 1px solid #e8e1ed; border-radius: 24px; padding: 22px; overflow: hidden; }
.kl-home-ideas .kl-home-lead { font-size: 13px; margin-top: 7px; }
.kl-home-ideas-rail.wp-block-gallery { display: grid !important; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4); gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 15px 0 6px; margin: 0; cursor: grab; }
.kl-home-ideas-rail.wp-block-gallery::-webkit-scrollbar { display: none; }
.kl-home-ideas-rail.wp-block-gallery:empty { display: none !important; }
.kl-home-ideas-rail.wp-block-gallery > .wp-block-image { width: auto !important; margin: 0 !important; scroll-snap-align: start; border-radius: 17px; overflow: hidden; aspect-ratio: 3 / 4; background: #eee; position: relative; }
.kl-home-ideas-rail.wp-block-gallery > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.kl-home-ideas-rail.wp-block-gallery > .wp-block-image::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237935d6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E") center/17px no-repeat; pointer-events: none; }
.kl-home-ideas-rail.wp-block-gallery > .wp-block-image figcaption { display: none; }
@media (max-width: 900px) { .kl-home-ideas-rail.wp-block-gallery { grid-auto-columns: 230px; } }
@media (max-width: 600px) {
  .kl-home-ideas { background: transparent; border: 0; border-radius: 0; padding: 0; }
  .kl-home-ideas .kl-home-eyebrow { display: none; }
  .kl-home-ideas .kl-home-h2 { font-size: 22px; padding-inline: 8px; }
  .kl-home-ideas .kl-home-lead { font-size: 12px; line-height: 1.45; padding-inline: 8px; margin-top: 6px; }
  .kl-home-ideas-rail.wp-block-gallery { grid-auto-columns: 74%; gap: 10px !important; padding: 12px 3px 4px; }
}

/* --------------------------------------------------------------------------
   9. Marketplaces: lavender panel, cat left, heading + three white cards
   -------------------------------------------------------------------------- */
.kl-home-markets { border-radius: 24px; border: 1px solid #daccf0; background: #ebe3f8; padding: 30px; overflow: visible; }
.kl-home-markets-grid.wp-block-columns { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: 22px; margin: 0; align-items: center; }
.kl-home-markets-grid.wp-block-columns > .wp-block-column { flex-basis: auto !important; width: auto; }
.kl-home-markets-scene > .wp-block-image { margin: -55px -25px -40px -40px; }
.kl-home-markets-scene > .wp-block-image img { width: 100%; height: auto; display: block; border-radius: 0; }
.kl-home-markets .kl-home-h2 { font-size: 31px; letter-spacing: -1px; }
.kl-home-markets .kl-home-lead { font-size: 13px; color: #594d67; margin: 12px 0 20px; }
.kl-home-market-cards.wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; }
.kl-home-market-cards.wp-block-columns > .wp-block-column { flex-basis: auto !important; width: auto; }
.kl-home-market-card.wp-block-column { position: relative; background: #fff; border: 1px solid #e3d9f0; border-radius: 15px; padding: 15px 11px; display: flex; flex-direction: column; gap: 6px; transition: transform .18s, box-shadow .2s; }
.kl-home-market-card.wp-block-column:hover, .kl-home-market-card.wp-block-column:focus-within { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(72, 44, 104, .12); }
.kl-home-market-card > .wp-block-image { margin: 0; width: 30px; height: 30px; border-radius: 8px; overflow: hidden; }
.kl-home-market-card > .wp-block-image img { width: 30px; height: 30px; object-fit: cover; display: block; border-radius: 8px; }
.kl-home-market-name { margin: 0; font-size: 15px; font-weight: 700; text-align: left; padding-right: 32px; }
.kl-home-market-name a { color: #292431; text-decoration: none; }
.kl-home-market-name a::after { content: ""; position: absolute; inset: 0; }
.kl-home-market-name a::before { content: ""; position: absolute; right: 11px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237934e8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E") center/17px no-repeat; }
.kl-home-market-label { margin: 0; font-size: 10px; color: #7a6f85; text-align: left; }
.kl-home-markets-foot { margin: 18px 0 0; font-size: 11px; color: #594d67; text-align: left; }
.kl-home-markets-foot a { color: #7830d8; font-weight: 600; }
@media (max-width: 1000px) { .kl-home-markets { padding: 25px; } .kl-home-market-name { font-size: 12px; } .kl-home-market-card.wp-block-column { padding: 12px 8px; } .kl-home-market-label { display: none; } }
@media (max-width: 600px) {
  .kl-home-markets { padding: 20px 15px; border-radius: 23px; margin-top: 80px !important; }
  .kl-home-markets-grid.wp-block-columns { display: block; }
  .kl-home-markets-scene > .wp-block-image { width: 210px; margin: -100px auto 5px; }
  .kl-home-markets .kl-home-h2 { font-size: 26px; }
  .kl-home-markets .kl-home-lead { font-size: 12px; }
  .kl-home-market-cards.wp-block-columns { grid-template-columns: 1fr; }
  .kl-home-market-card.wp-block-column { padding: 13px; }
  .kl-home-market-name { font-size: 17px; }
  .kl-home-market-label { display: block; }
}

/* --------------------------------------------------------------------------
   Motion: only decorative, no layout shift, no hidden content.
   Old site rhythm: 4s cycle, animated in the first half, pause in the second.
   -------------------------------------------------------------------------- */
@keyframes kl-tag-wiggle { 0%, 50%, 100% { transform: rotate(0deg); } 8% { transform: rotate(-11deg); } 16% { transform: rotate(10deg); } 24% { transform: rotate(-8deg); } 32% { transform: rotate(6deg); } 40% { transform: rotate(-3deg); } }
@keyframes kl-calc-center { 0%, 50%, 100% { transform: rotate(0) scale(1.28); } 12% { transform: rotate(-4deg) scale(1.34); } 25% { transform: rotate(4deg) scale(1.38); } 38% { transform: rotate(-2deg) scale(1.33); } }
@keyframes kl-calc-center-m { 0%, 50%, 100% { transform: rotate(0) scale(1); } 12% { transform: rotate(-4deg) scale(1.05); } 25% { transform: rotate(4deg) scale(1.08); } 38% { transform: rotate(-2deg) scale(1.04); } }
@media (prefers-reduced-motion: no-preference) {
  .kl-home-tag.wp-block-image { animation: kl-tag-wiggle 3.8s ease-in-out .6s infinite; }
  .kl-home-calc-art.wp-block-image { animation: kl-calc-center 4s ease-in-out infinite; }
  .kl-home-tag.is-paused, .kl-home-calc-art.is-paused { animation-play-state: paused; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 600px) { .kl-home-calc-art.wp-block-image { animation-name: kl-calc-center-m; } }
@media (prefers-reduced-motion: reduce) {
  .kl-home-tag.wp-block-image, .kl-home-calc-art.wp-block-image { animation: none !important; }
  .kl-home-cat.wp-block-column, .kl-home-cat > .wp-block-image img, .kl-home-market-card.wp-block-column, .kl-rail-catalog .ktlc-card { transition: none !important; transform: none !important; }
}

/* Calculator and recovered project gallery share one compact section. */
.kl-home-help-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:20px;align-items:stretch}
.kl-home-help-grid>.kl-home-section{margin:0!important;max-width:none!important;min-width:0}
.kl-home-help-grid .kl-home-calculator{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:26px;overflow:hidden}
.kl-home-help-grid .kl-home-calculator-copy{width:100%;max-width:none}
.kl-home-help-grid .kl-home-h2{font-size:clamp(23px,2.2vw,30px);line-height:1.15}
.kl-home-help-grid .kl-home-lead{font-size:13px;line-height:1.5}
.kl-home-help-grid .kl-home-calc-art{position:static;width:110px;align-self:flex-end;margin:8px 0 0!important}
.kl-home-help-grid .kl-home-calc-art img{width:110px;height:110px;object-fit:contain}
.kl-home-help-grid .kl-home-ideas{padding:24px;overflow:hidden}
.kl-home-help-grid .kl-home-ideas-rail{grid-auto-columns:calc((100% - 12px)/2);padding-top:10px}
.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery>.wp-block-image{aspect-ratio:1/1;height:230px;background:#f8f5fa}
.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery>.wp-block-image img{object-fit:contain!important}
.kl-home-ideas-controls{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:11px;color:#82758e}
.kl-home-ideas-controls span{margin-right:auto}
.kl-home-ideas-controls button{width:32px;height:32px;border:1px solid #dfd3eb;border-radius:50%;background:white;color:#7e32d3;cursor:pointer}
@media(max-width:700px){.kl-home-help-grid{grid-template-columns:minmax(0,1fr);gap:14px}.kl-home-help-grid .kl-home-calculator{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:8px;padding:20px}.kl-home-help-grid .kl-home-calc-art,.kl-home-help-grid .kl-home-calc-art img{width:90px;height:90px}.kl-home-help-grid .kl-home-ideas{padding:18px;background:white;border:1px solid #e8def1;border-radius:24px}.kl-home-help-grid .kl-home-ideas-rail{grid-auto-columns:82%}.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery>.wp-block-image{height:260px}.kl-home-help-grid .kl-home-h2{padding:0;font-size:24px}.kl-home-help-grid .kl-home-lead{padding:0}}

.kl-home-help-grid>.kl-home-section{width:100%!important;max-width:100%!important;margin-inline:0!important;box-sizing:border-box}.kl-home-help-grid{min-width:0;box-sizing:border-box}

/* Compact, evenly spaced calculator and inspiration rail. */
@media(min-width:701px){
.kl-home-help-grid .kl-home-calculator{position:relative;justify-content:center;min-height:0;padding:28px 26px 125px}
.kl-home-help-grid .kl-home-calculator-copy{max-width:34ch}
.kl-home-help-grid .kl-home-calc-art.wp-block-image{position:absolute;right:28px;bottom:22px;margin:0!important}
.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery{grid-auto-columns:calc((100% - 24px)/3)}
}
.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery>.wp-block-image{width:100%!important;height:auto;aspect-ratio:4/5;min-width:0}
.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery>.wp-block-image img{width:100%;height:100%;object-fit:contain!important}
@media(max-width:700px){.kl-home-help-grid .kl-home-calculator{align-items:center}.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery{grid-auto-columns:70%}.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery>.wp-block-image{height:auto;aspect-ratio:4/5}}

/* Calculator: show the purpose and an obvious action, with real project examples. */
.kl-home-help-grid .kl-home-calculator{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:26px!important;overflow:hidden}
.kl-home-help-grid .kl-home-calculator-copy{width:100%;max-width:none!important;position:relative;z-index:1}
.kl-home-help-grid .kl-home-calculator .kl-home-eyebrow{display:block;margin:0 0 12px!important;padding-right:60px}
.kl-home-help-grid .kl-home-calculator h2{max-width:11ch;line-height:1.12;margin:0!important}
.kl-home-help-grid .kl-home-calculator .kl-home-lead{max-width:34ch;margin:10px 0 16px!important;font-size:13px;line-height:1.5}
.kl-home-help-grid .kl-home-calc-art.wp-block-image{position:absolute;right:22px;top:19px;bottom:auto;width:65px;height:65px;margin:0!important;transform:none;animation:none;pointer-events:none}
.kl-home-help-grid .kl-home-calc-art img{width:100%;height:100%}
.kl-home-help-grid .kl-calc-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0!important}
.kl-home-help-grid .kl-calc-examples>div{min-width:0;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 10px #245e4012;text-align:center}
.kl-home-help-grid .kl-calc-examples img{display:block;width:100%;height:auto;aspect-ratio:1.25;object-fit:cover}
.kl-home-help-grid .kl-calc-examples span{display:block;padding:5px 3px 8px;color:#375b4b;font-size:11px;font-weight:700;line-height:1.2}
.kl-home-help-grid .kl-calc-steps{margin:13px 0!important;color:#477262;font-size:11px;font-weight:700;line-height:1.4}
.kl-home-help-grid .kl-calc-steps span{padding:0 4px;color:#8ab4a0}
.kl-home-help-grid .kl-home-calculator .wp-block-buttons{margin:0!important}
.kl-home-help-grid .kl-home-calculator .kl-home-text-link .wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:0;border-radius:12px;padding:11px 17px;background:#7633df!important;color:#fff!important;font-size:13px;font-weight:700;text-decoration:none;box-shadow:0 5px 14px #7633df26}
.kl-home-help-grid .kl-home-calculator .kl-home-text-link .wp-block-button__link:hover{background:#6326c5!important}
.kl-home-help-grid .kl-home-calculator .kl-home-text-link .wp-block-button__link:after{content:'→';font-size:18px;line-height:1}
.kl-home-help-grid .kl-calc-note{margin:9px 0 0!important;color:#648476;font-size:10px;line-height:1.35}
@media(max-width:700px){.kl-home-help-grid .kl-home-calculator{display:flex;padding:20px!important}.kl-home-help-grid .kl-home-calculator h2{font-size:25px}.kl-home-help-grid .kl-home-calculator .kl-home-lead{font-size:13px}.kl-home-help-grid .kl-home-calc-art.wp-block-image{width:56px;height:56px;right:18px;top:18px}.kl-home-help-grid .kl-calc-examples img{aspect-ratio:1.45}}
/* Marketplace logos should remain readable on desktop and on a phone. */
.kl-home-market-card.wp-block-column{gap:9px;padding:18px 15px}
.kl-home-market-card>.wp-block-image.kl-home-market-logo,.kl-home-market-card>.wp-block-image.kl-home-market-logo img{width:52px;height:52px;border-radius:13px}
.kl-home-market-card .kl-home-market-name{padding-right:22px;line-height:1.25}
.kl-home-market-card .kl-home-market-name a:before{top:18px;right:14px}
@media(max-width:600px){.kl-home-market-card.wp-block-column{padding:14px;gap:8px}.kl-home-market-card>.wp-block-image.kl-home-market-logo,.kl-home-market-card>.wp-block-image.kl-home-market-logo img{width:46px;height:46px;border-radius:11px}}

/* Calculator action overrides the text-link reset above. */
.kl-home-help-grid .kl-home-calculator .kl-home-text-link .wp-block-button__link { box-sizing: border-box; padding: 12px 18px !important; border-radius: 12px !important; font-size: 13px !important; line-height: 1.4; text-decoration: none !important; }
.kl-home-help-grid .kl-home-calculator .kl-home-text-link .wp-block-button__link:hover { color: #fff !important; background: #6326c5 !important; }

/* Gallery photographs consistently fill their frames. */
.kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery > .wp-block-image img { width:100%; height:100%; object-fit:cover !important; }
@media (max-width:700px) {
  .kl-home-help-grid .kl-home-ideas { overflow:visible; }
  .kl-home-help-grid .kl-home-ideas-rail.wp-block-gallery { position:relative; left:50%; transform:translateX(-50%); width:100vw !important; max-width:none !important; margin:0 !important; padding-inline:0; box-sizing:border-box; }
}

/* Three compact marketplaces on mobile. */
@media(max-width:600px){
 .kl-home-markets .kl-home-market-cards.wp-block-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .kl-home-markets .kl-home-market-card.wp-block-column{min-width:0;padding:10px 6px;gap:7px;align-items:center;text-align:center}
 .kl-home-markets .kl-home-market-name{padding:0;font-size:clamp(9px,2.8vw,13px);text-align:center;overflow-wrap:anywhere}
 .kl-home-markets .kl-home-market-name a:before{display:none}
 .kl-home-markets .kl-home-market-label{display:none}
 .kl-home-markets .kl-home-market-card>.wp-block-image.kl-home-market-logo,.kl-home-markets .kl-home-market-card>.wp-block-image.kl-home-market-logo img{width:40px;height:40px}
}
