/* Layout extensions to the shared dental landing. Header, hero, motion and native device sizes come from site.css and light.css. */
.cf-landing .cf-case-layout {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(35px,6vw,100px)}
.cf-landing .cf-case-layout .kf-h2 {margin:12px 0 18px}
.cf-landing .cf-case-layout .kf-lead {margin-bottom:24px}
.cf-landing .cf-case-estimate {margin-top:28px}
.cf-landing .cf-case-estimate > .kf-eyebrow {display:block;margin-bottom:10px}
.cf-landing .cf-case-estimate ul {list-style:none;margin:0;padding:0;border-top:1px solid var(--sp-border)}
.cf-landing .cf-case-estimate li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:baseline;padding:12px 0;border-bottom:1px solid var(--sp-border);font-size:15px;line-height:1.35}
.cf-landing .cf-case-estimate li > span {grid-column:1 / -1;color:var(--text-2)}
.cf-landing .cf-case-estimate li > b {grid-column:1;font-weight:600}
.cf-landing .cf-case-estimate li > strong {grid-column:2;grid-row:2;color:var(--sp-deep);font-variant-numeric:tabular-nums;text-align:right;max-width:14ch}
.cf-landing .sheet {margin:0;background:var(--sp-surface);border:1px solid var(--sp-border);border-radius:26px;overflow:hidden;box-shadow:0 22px 56px var(--sp-glow)}
.cf-landing .sheethead {padding:12px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--sp-light);color:var(--sp-deep);font-weight:600;font-size:13px}
.cf-landing .sheet .diagram {padding:10px 18px;background:var(--sp-bg)}
.cf-landing .sheet .diagram :is(svg, img) {display:block;width:100%;max-height:330px}
.cf-landing .sheet > figcaption {padding:16px 22px 20px;position:relative;background:var(--sp-surface)}
.cf-landing .sheet > figcaption strong {font-size:21px}
.cf-landing .sheet > figcaption p {color:var(--text-2);margin:6px 0 0;line-height:1.55}
.cf-landing .cf-record {margin:18px 0 25px;padding:12px 0 12px 22px;border-left:1px solid var(--sp-accent);font-size:clamp(16px,1.35vw,21px);line-height:1.6}
.cf-landing .cf-method {overflow:hidden}
.cf-landing .cf-trap {position:absolute;left:-9999px}
.cf-landing .kf-nav {margin-left:auto}
.cf-landing .kf-modal__title {padding-right:28px}
/* Specialty actions use the local, contrast-checked dark hue; dental remains untouched. */
html:is([data-cf-specialty="eko"],[data-cf-specialty="plastika"],[data-cf-specialty="ortho"],[data-cf-specialty="cosmetology"]) .cf-landing .kf-btn--primary,
html:is([data-cf-specialty="eko"],[data-cf-specialty="plastika"],[data-cf-specialty="ortho"],[data-cf-specialty="cosmetology"]) .cf-landing .kf-plan--featured .kf-btn--primary {background:var(--sp-action);border-color:var(--sp-action);color:#fff}
html:is([data-cf-specialty="eko"],[data-cf-specialty="plastika"],[data-cf-specialty="ortho"],[data-cf-specialty="cosmetology"]) .cf-landing :is(.kf-btn--ghost,.kf-btn--outline-dark) {color:var(--sp-action);border-color:var(--sp-action)}
html:is([data-cf-specialty="eko"],[data-cf-specialty="plastika"],[data-cf-specialty="ortho"],[data-cf-specialty="cosmetology"]) .cf-landing .kf-btn--primary:hover {box-shadow:0 10px 28px var(--sp-glow)}
@media(max-width:1080px){
  /* The runtime's front ribbon canvas otherwise sits above .kf-page on touch layouts. */
  .cf-landing > canvas[aria-hidden="true"] {z-index:0 !important}
}
@media(max-width:850px){
  .cf-landing .cf-case-layout {grid-template-columns:1fr}
}
@media(max-width:540px){
  html[data-cf-specialty] .cf-landing .kf-hero .kf-btn--ghost {background:#fff}
  .cf-landing .sheet > figcaption {padding:14px 16px}
  .cf-landing .sheethead {padding:10px 16px}
}

/* A single content-to-content gap, using the dental 120/72px spacing scale. */
.cf-landing { --cf-section-gap:120px; }
.cf-landing main > .kf-section { padding-block:calc(var(--cf-section-gap) / 2); }
.cf-landing #cf-launch .kf-launch-wrap { padding-top:0; }
@media(min-width:761px) {
 .cf-landing .cf-method { grid-template-columns:minmax(0,1fr); gap:14px; align-content:start; }
 .cf-landing .cf-method h3, .cf-landing .cf-method p { margin:0; }
 .cf-landing .cf-method img.kf-duo__ic { width:min(260px,100%); height:180px; object-fit:contain; justify-self:center; margin:0 0 10px; }
}
@media(min-width:1081px) {
 /* The decorative heart must not add a third, empty grid row below the panels. */
 .cf-landing #kf-show .kf-content { position:relative; grid-template-rows:auto 1fr; }
 .cf-landing #kf-show .kf-show__stage { grid-row:1 / span 2; }
 .cf-landing #kf-show .kf-tabs { align-self:start; }
 .cf-landing #kf-show .kf-heart { position:absolute; left:0; bottom:0; width:min(440px,38%); margin:0; }
 /* Long audience labels stay in the clear left side of the canonical ribbon. */
 .cf-landing #kf-hero .kf-eyebrow { display:block; max-width:34ch; text-wrap:balance; }
}
@media(max-width:760px) {
 .cf-landing { --cf-section-gap:72px; }
}

.cf-landing .sheet .diagram>h3{font-size:18px;margin:8px 0 4px}.cf-landing .sheet .diagram>p{font-size:13px;margin:0 0 12px;color:var(--text-2)}
