/* Keyword landing pages (keyword_landing.html): landlord software, rental
   property management software, tenant management software. */
body.public-design.pd-product-keyword-landing #main-content .kwl-cta,
body.public-design.pd-product-keyword-landing #main-content .kwl-trust { margin-top: 24px; }
body.public-design.pd-product-keyword-landing #main-content .kwl-link { margin-top: 8px; display: inline-flex; min-height: 44px; align-items: center; }
body.public-design.pd-product-keyword-landing #main-content .kwl-final { position: relative; z-index: 1; }
body.public-design.pd-product-keyword-landing #main-content .kwl-final-cta { justify-content: center; }

body.public-design.pd-product-keyword-landing #main-content :is(.cz-h2, .cz-h, .cz-grad, .fpg-final h2) { line-height: 1.5 !important; }
body.public-design.pd-product-keyword-landing #main-content :is(.cz-sub, .cz-p, .kwl-steps li, .kwl-related-list a, .fpg-final p:not(.fine)) {
  --ui-body: 1rem; font-size: var(--ui-body); line-height: 1.5 !important; overflow-wrap: anywhere;
}
body.public-design.pd-product-keyword-landing #main-content .cz-chip .pub-check { flex: 0 0 auto; }

body.public-design.pd-product-keyword-landing #main-content .fpg-btn:is(.pd-action, .pd-secondary) { border-radius: 999px; transition: background-color .4s, color .4s; }
body.public-design.pd-product-keyword-landing #main-content .fpg-btn.pd-action { background: var(--btn-primary-bg) !important; color: var(--btn-primary-fg) !important; border-color: var(--btn-primary-bg) !important; }
body.public-design.pd-product-keyword-landing #main-content .fpg-btn.pd-action:is(:hover, :focus-visible) { background: var(--btn-primary-hover) !important; color: var(--btn-primary-hover-fg) !important; border-color: var(--btn-primary-hover) !important; }
body.public-design.pd-product-keyword-landing #main-content .fpg-btn.pd-secondary { --interaction-bg: var(--brand-deep-purple); --interaction-hover-ink: var(--surface); background: var(--surface) !important; color: var(--brand-deep-purple) !important; border-color: var(--brand-deep-purple) !important; }
body.public-design.pd-product-keyword-landing #main-content .fpg-btn.pd-secondary:is(:hover, :focus-visible) { background: var(--brand-deep-purple) !important; color: var(--surface) !important; }

body.public-design.pd-product-keyword-landing #main-content .kwl-steps ol { list-style: decimal; padding-left: 1.5em; margin: 16px 0; max-width: 70ch; }
body.public-design.pd-product-keyword-landing #main-content .kwl-steps li + li { margin-top: 8px; }

body.public-design.pd-product-keyword-landing #main-content .kwl-faq details { margin: 12px 0; border: 2px solid var(--line); border-radius: 4px; background: var(--surface); max-width: 80ch; }
body.public-design.pd-product-keyword-landing #main-content .kwl-faq summary { min-height: 44px; padding: 12px; font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; }
body.public-design.pd-product-keyword-landing #main-content .kwl-faq details .cz-p { padding: 0 12px 12px; margin: 0; }

body.public-design.pd-product-keyword-landing #main-content .kwl-related-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
body.public-design.pd-product-keyword-landing #main-content .kwl-related-list a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
@media (max-width: 900px) { body.public-design.pd-product-keyword-landing #main-content .kwl-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.public-design.pd-product-keyword-landing #main-content .kwl-related-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  body.public-design.pd-product-keyword-landing #main-content .fpg-btn:is(.pd-action, .pd-secondary) { transition: none !important; }
}

/* /landlord-software: modern product cards over GPT photos (approved rebuild).
   Feature rows: the photo in a rounded frame with the card over its lower right corner, as in
   the home page tour. More in one Rentari account: four linked photo cards. */
body.public-design #main-content .lsx-card { position: relative; margin: 0 0 88px; padding: 0; min-width: 0; }
body.public-design #main-content .lsx-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
body.public-design #main-content .lsx-overlay { position: absolute; right: -20px; bottom: -72px; display: block; height: auto; max-height: 100%; object-fit: contain; }
body.public-design #main-content .lsx-wide .lsx-overlay { width: 84%; }
body.public-design #main-content .lsx-mid .lsx-overlay { width: 70%; }
body.public-design #main-content .lsx-tall .lsx-overlay { width: 52%; }
body.public-design #main-content .lsx-more { padding-block: 24px 56px; }
body.public-design #main-content .lsx-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.public-design #main-content .lsx-grid > li { margin: 0; padding: 0; }
body.public-design #main-content .lsx-grid > li::before { content: none !important; }
body.public-design #main-content .lsx-tile { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 2px solid var(--border, #e6e9f0); border-radius: 4px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 20px -6px rgba(15, 23, 42, .16); color: #042238; text-decoration: none; transition: border-color .2s ease; }
body.public-design #main-content .lsx-tile:is(:hover, :focus-visible) { border-color: #6B48E0; }
body.public-design #main-content .lsx-tile:is(:hover, :focus-visible) .lsx-tile-title { color: #6B48E0; }
body.public-design #main-content .lsx-tile-art { position: relative; display: block; height: 280px; overflow: hidden; }
body.public-design #main-content .lsx-tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.public-design #main-content .lsx-tile-card { position: absolute; right: 6%; bottom: 0; display: block; width: auto; height: auto; max-width: 78%; max-height: 82%; object-fit: contain; transform: translateY(6%); }
body.public-design #main-content .lsx-tile-copy { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; }
body.public-design #main-content .lsx-tile-title { font: 600 20px/28px Poppins, "Open Sans", sans-serif; transition: color .2s ease; }
body.public-design #main-content .lsx-tile-text { font: 400 18px/30.6px "Open Sans", Arial, sans-serif; color: #042238; }
body.public-design #main-content .lsx-tile-link { margin-top: auto; padding-top: 4px; font: 700 15px/20px "Open Sans", Arial, sans-serif; color: #006CB4; }

/* Story stage with a GPT photo behind each step's card (STORY_BACKDROPS), and the step emblem.
   The photo fills the left of the stage so the people stay in view; the card sits over the
   photo's right edge, where the people are looking and pointing, as in the home page tour. */
html body.public-design #main-content#main-content .mk-story-photo.has-photo { background: #EDE8FB; }
html body.public-design #main-content#main-content .mk-story-photo.has-photo::before { content: ""; position: absolute; inset: 0 24% 0 0; background: var(--story-photo) center / cover no-repeat; }
html body.public-design #main-content#main-content .mk-story-photo.has-photo > img { position: absolute; z-index: 1; right: 3%; bottom: 8%; width: 42%; height: auto; padding: 0; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(20, 8, 70, .3)); }
html body.public-design #main-content#main-content .mk-story-photo.has-photo > .mk-story-index { z-index: 2; }
html body.public-design #main-content#main-content .mk-story-caption img.mk-story-emblem { display: block; width: 64px; height: 64px; object-fit: contain; }

/* Landlord software story fixes: one-line label, Poppins caption title, readable caption text,
   no text under 12px, no thread line behind the story, and the title first on phones. */
html body.public-design #main-content#main-content #landlord-software .mk-story-label { max-width: none !important; white-space: nowrap; }
html body.public-design #main-content#main-content #landlord-software .mk-story-caption { gap: 16px; align-items: center; }
html body.public-design #main-content#main-content #landlord-software .mk-story-caption strong { display: block; margin: 0 0 4px; font: 600 20px/28px Poppins, "Open Sans", sans-serif !important; letter-spacing: normal; color: #042238; }
html body.public-design #main-content#main-content #landlord-software .mk-story-caption p { margin: 0; font: 400 16px/24px "Open Sans", Arial, sans-serif !important; color: #4F5F6E !important; max-width: none; }
html body.public-design #main-content#main-content #landlord-software .kwl-trust .t > span { font-size: 12px !important; line-height: 16px !important; }
html body.public-design #main-content#main-content #landlord-software .mk-story-tab > span:first-child { width: 28px; height: 28px; font-size: 12px !important; line-height: 28px; }
html body.public-design #main-content#main-content #landlord-software.cz-thread .cz-wrap::before { content: none; }
@media (max-width: 860px) {
  body.public-design #main-content .lsx-card { margin-bottom: 64px; }
  body.public-design #main-content .lsx-photo { border-radius: 14px; }
  body.public-design #main-content .lsx-overlay { right: -8px; bottom: -52px; }
  body.public-design #main-content .lsx-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.public-design #main-content .lsx-tile-art { height: 220px; }
  body.public-design #main-content .lsx-tile-copy { padding: 16px; }
  html body.public-design #main-content#main-content #landlord-software .mk-story-label { font-size: 12px !important; }
  html body.public-design #main-content#main-content #landlord-software .mk-story-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  html body.public-design #main-content#main-content #landlord-software .mk-story-caption strong { font-size: 18px !important; line-height: 26px !important; }
  html body.public-design #main-content#main-content .mk-story-caption img.mk-story-emblem { width: 48px; height: 48px; }
  html body.public-design #main-content#main-content .mk-story-photo.has-photo > img { width: 48%; right: 2%; bottom: 6%; }
  html body.public-design #main-content#main-content #landlord-software .mk-editorial-hero { display: flex; flex-direction: column; }
  html body.public-design #main-content#main-content #landlord-software .mk-editorial-hero > .cz-copy { order: 1; }
  html body.public-design #main-content#main-content #landlord-software .mk-editorial-hero > .mk-story { order: 2; }
}
