/* v3.6.70 — ACTUAL edge crossings: visual frames, badges, button emblems, case markers.
 * Keeps v3.6.68 geometry, pricing logic and palette. Mobile readability first.
 */

/* HERO: show a physical boundary and place the qualification medallion across it. */
body.home section.kos-brand-hero { overflow:visible!important; isolation:isolate!important; z-index:3!important; }
body.home section.kos-brand-hero .kos-shell,
body.home section.kos-brand-hero .kos-hero-unified,
body.home section.kos-brand-hero .kos-hero-stage,
body.home section.kos-brand-hero .kos-hero-visual { overflow:visible!important; }
body.home section.kos-brand-hero .kos-hero-visual {
  border:2px solid #d8a052!important;
  border-radius:24px!important;
  background:linear-gradient(155deg,rgba(255,254,249,.95),rgba(255,240,204,.76))!important;
  box-shadow:0 17px 25px rgba(123,65,17,.10)!important;
}
/* suppress historical decorative polygons; the framed image is the main object */
body.home section.kos-brand-hero .kos-hero-visual::before {content:none!important;display:none!important}
body.home section.kos-brand-hero .kos-hero-visual::after {
  content:''!important;display:block!important;position:absolute!important;
  z-index:0!important;right:-24px!important;top:-24px!important;
  width:86px!important;height:86px!important;border:2px solid rgba(229,139,38,.42)!important;
  background:transparent!important;clip-path:none!important;border-radius:50%!important;
  pointer-events:none!important;
}
body.home section.kos-brand-hero .kos-hero-visual > img {z-index:1!important;position:relative!important;filter:drop-shadow(0 12px 14px rgba(57,33,18,.18))!important}
body.home section.kos-brand-hero .kos-hero-visual .kp369-hero-seal {
  z-index:10!important;top:auto!important;bottom:-34px!important;left:-34px!important;right:auto!important;
  width:106px!important;height:106px!important;
  background:#ffd067!important;color:#553219!important;border:5px solid #fffaf0!important;
  box-shadow:0 0 0 2px #cc7829,0 12px 24px rgba(94,49,15,.18)!important;
  transform:rotate(-9deg)!important;animation:none!important;
}
body.home section.kos-brand-hero .kp369-hero-seal svg {width:40px!important;height:40px!important;stroke:#a84f1f!important}
body.home.kp369-motion section.kos-brand-hero .kp369-hero-seal{animation:kp370HeroMedal .76s cubic-bezier(.18,.86,.2,1.17) .2s both!important}
@keyframes kp370HeroMedal {from{opacity:.45;transform:translate(-9px,14px) rotate(-24deg) scale(.77)}to{opacity:1;transform:translate(0,0) rotate(-9deg) scale(1)}}

/* PRICE: the round icons physically sit astride each button's top edge, not inside it. */
body.home #service-finder.kgp-section {overflow:visible!important}
body.home #service-finder .kgp-step-goal,
body.home #service-finder .kgp-goals {overflow:visible!important}
body.home #service-finder .kgp-goals {
  padding-top:21px!important;
  margin-top:8px!important;
  position:relative!important;
}
body.home #service-finder .kgp-goals button.kgp-goal,
body.home #service-finder .kgp-goals button.kgp-goal+button.kgp-goal {
  position:relative!important;overflow:visible!important;
  padding-top:31px!important;
  box-shadow:0 4px 0 rgba(228,183,111,.24)!important;
}
body.home #service-finder.kgp-section .kgp-goals button.kgp-goal .kp659-goal-symbol,
body.home #service-finder.kgp-section .kgp-goals button.kgp-goal+button.kgp-goal .kp659-goal-symbol {
  position:absolute!important;z-index:8!important;
  left:50%!important;top:-19px!important;right:auto!important;bottom:auto!important;
  width:46px!important;height:46px!important;
  display:grid!important;place-items:center!important;
  margin:0!important;
  border:4px solid #fffaf3!important;
  border-radius:50%!important;
  background:#ffd576!important;color:#b45a25!important;
  box-shadow:0 0 0 1px #dba765,0 8px 16px rgba(135,75,24,.17)!important;
  transform:translateX(-50%)!important;
  transition:transform .28s cubic-bezier(.16,1.55,.29,1),box-shadow .25s!important;
}
body.home #service-finder.kgp-section .kgp-goals button.kgp-goal .kp659-goal-symbol svg {width:24px!important;height:24px!important;stroke:#af4e1c!important}
body.home #service-finder.kgp-section .kgp-goals button.kgp-goal:is(:hover,:focus-visible,[aria-pressed="true"]) .kp659-goal-symbol {
  transform:translateX(-50%) translateY(-5px) rotate(-8deg)!important;
  box-shadow:0 0 0 1px #cf752c,0 13px 20px rgba(135,75,24,.2)!important;
}

/* COUPON: a large gold roundel is exactly half outside the green banner's top border. */
body.home #web-coupon.kp68-benefit {position:relative!important;z-index:4!important;overflow:visible!important}
body.home #web-coupon .kp68-benefit-layout {position:relative!important;overflow:visible!important}
body.home #web-coupon .kp369-benefit-seal{
  top:-71px!important;right:32px!important;left:auto!important;
  width:116px!important;height:116px!important;
  border:7px solid #fffaf1!important;outline:2px solid #c08029!important;outline-offset:-12px!important;
  box-shadow:0 0 0 2px #d0a05e,0 14px 25px rgba(21,50,38,.22)!important;
  background:#ffcb61!important;color:#204f3a!important;
  transform:rotate(13deg)!important;
}
body.home #web-coupon .kp369-benefit-seal svg {width:42px!important;height:42px!important}
body.home #web-coupon .kp369-benefit-seal span {font-size:14px!important}
body.home.kp369-motion #web-coupon.kp369-inview .kp369-benefit-seal{animation:kp370CouponDrop .62s cubic-bezier(.2,.85,.24,1.13) both!important}
@keyframes kp370CouponDrop{from{opacity:.3;transform:translateY(-25px) rotate(24deg) scale(1.17)}to{opacity:1;transform:translateY(0) rotate(13deg) scale(1)}}

/* WORK LOG: only selected items use one round work-index crossing photo & card border. */
body.home section#cases.kos-cases-section {overflow:visible!important;isolation:isolate;position:relative}
body.home section#cases .kos-shell,
body.home section#cases .kos-cases-grid {overflow:visible!important}
body.home section#cases .kos-cases-grid > .kos-case{
  position:relative!important;overflow:visible!important;
}
body.home section#cases .kos-cases-grid > .kos-case .kos-case-visual{
  border-radius:8px 8px 0 0!important;
  overflow:hidden!important;
}
body.home section#cases .kos-cases-grid > .kos-case:first-child::before,
body.home section#cases .kos-cases-grid > .kos-case:nth-child(5)::before {
  position:absolute;z-index:7;left:-15px;top:-17px;
  display:grid;place-items:center;
  width:57px;height:57px;border-radius:50%;
  background:#e56c2e;color:white;border:4px solid #fffdf6;
  box-shadow:0 0 0 1px #e9b68c,0 7px 14px rgba(58,36,20,.17);
  font-weight:950;font-size:15px;letter-spacing:-.02em;
  pointer-events:none;
}
body.home section#cases .kos-cases-grid > .kos-case:first-child::before{content:'01'}
body.home section#cases .kos-cases-grid > .kos-case:nth-child(5)::before{content:'05';background:#284c3e}

@media(max-width:767px){
  body.home section.kos-brand-hero .kos-hero-visual{border-radius:16px!important;border-width:2px!important}
  body.home section.kos-brand-hero .kos-hero-visual::after {width:58px!important;height:58px!important;top:-18px!important;right:-12px!important}
  body.home section.kos-brand-hero .kos-hero-visual .kp369-hero-seal{
    top:auto!important;bottom:-24px!important;left:-22px!important;right:auto!important;
    width:75px!important;height:75px!important;border-width:4px!important;
    font-size:10px!important;
  }
  body.home section.kos-brand-hero .kp369-hero-seal svg{width:29px!important;height:29px!important}
  body.home #service-finder .kgp-goals{padding-top:22px!important;margin-top:8px!important}
  body.home #service-finder .kgp-goals button.kgp-goal,
  body.home #service-finder .kgp-goals button.kgp-goal+button.kgp-goal{padding-top:29px!important}
  body.home #service-finder.kgp-section .kgp-goals button.kgp-goal .kp659-goal-symbol,
  body.home #service-finder.kgp-section .kgp-goals button.kgp-goal+button.kgp-goal .kp659-goal-symbol{
    top:-19px!important;width:40px!important;height:40px!important;border-width:3px!important;
  }
  body.home #service-finder.kgp-section .kgp-goals button.kgp-goal .kp659-goal-symbol svg{width:21px!important;height:21px!important}
  body.home #web-coupon .kp369-benefit-seal{
    top:-52px!important;right:18px!important;width:92px!important;height:92px!important;border-width:5px!important;
  }
  body.home #web-coupon .kp369-benefit-seal svg{width:34px!important;height:34px!important}
  body.home #web-coupon .kp369-benefit-seal span{font-size:11px!important}
  body.home #web-coupon .kp68-benefit-layout{padding-top:35px!important}
  body.home section#cases .kos-cases-grid > .kos-case:first-child::before,
  body.home section#cases .kos-cases-grid > .kos-case:nth-child(5)::before{
    width:43px;height:43px;top:-13px;left:-10px;border-width:3px;font-size:12px;
  }
}
@media(max-width:359px){
  body.home section.kos-brand-hero .kos-hero-visual .kp369-hero-seal{left:-14px!important;width:68px!important;height:68px!important}
  body.home #web-coupon .kp369-benefit-seal{right:10px!important;width:82px!important;height:82px!important;top:-46px!important}
  body.home section#cases .kos-cases-grid > .kos-case:first-child::before{left:-7px}
}
@media(prefers-reduced-motion:reduce){
  body.home.kp369-motion section.kos-brand-hero .kp369-hero-seal,
  body.home.kp369-motion #web-coupon.kp369-inview .kp369-benefit-seal{animation:none!important}
}

/* Final overlap positioning: the qualification roundel stays clear of the mobile CTA. */
body.home section.kos-brand-hero{
  overflow-x:clip!important;
  overflow-y:visible!important;
}
body.home section.kos-brand-hero .kos-hero-visual .kp369-hero-seal{
  left:-35px!important;top:-31px!important;bottom:auto!important;
}
body.home section#cases .kos-cases-grid > .kos-case:first-child::before{
  left:-9px!important;
}
body.home section#cases .kos-cases-grid > .kos-case:nth-child(5)::before{
  left:auto!important;right:-9px!important;
}
@media(max-width:767px){
 body.home section.kos-brand-hero .kos-hero-visual .kp369-hero-seal{
   left:-24px!important;top:-25px!important;bottom:auto!important;
 }
}
@media(max-width:359px){
 body.home section.kos-brand-hero .kos-hero-visual .kp369-hero-seal{left:-15px!important;top:-20px!important}
}
