/* Identity layer: loaded after theme.css so palette generation cannot wipe layout. */
body{font-family:var(--font)}
.footer-brand{min-width:0}
.footer-brand p{max-width:38em}
.detail-info .sub{color:var(--theme-muted);margin:0 0 16px}
.catalog-intro .section-title{margin-bottom:28px}

body.demo02{--font:Inter,"Segoe UI",Arial,sans-serif}
.d2-hero .d2-stats{width:100%}

/* Home banner: a slow horizontal image drift between carousel changes. */
body.demo02.is-home .d2-hero-slide.is-active img,
body.demo02.is-home .d2-hero-slide.d2-active img{
  width:106%;max-width:none;animation:d02-banner-drift 10s ease-in-out infinite alternate
}
@keyframes d02-banner-drift{
  from{transform:translate3d(-5%,0,0)}
  to{transform:translate3d(0,0,0)}
}
@media(prefers-reduced-motion:reduce){
  body.demo02.is-home .d2-hero-slide img{width:100%;animation:none}
}

/* About: connect the proof points to the introduction instead of a full-width strip. */
body.demo02.is-about .d2-page-intro{
  padding-bottom:86px;
  background:linear-gradient(180deg,#fff 68%,#fff8fb)
}
body.demo02.is-about .d2-stats{
  position:relative;z-index:2;
  width:min(1200px,calc(100% - 40px));margin:-64px auto 0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  counter-reset:about-stat;
  background:#fff;color:#172033;
  border:1px solid #e7e9ee;border-radius:18px;
  box-shadow:0 18px 50px #17203312;
  overflow:hidden
}
body.demo02.is-about .d2-stats div{
  min-width:0;padding:25px 28px 27px;text-align:left;
  border-right:1px solid #e7e9ee
}
body.demo02.is-about .d2-stats div:last-child{border-right:0}
body.demo02.is-about .d2-stats div:before{
  counter-increment:about-stat;content:"0" counter(about-stat);
  display:block;margin-bottom:12px;
  color:var(--theme-primary);font-size:12px;font-weight:800;letter-spacing:.14em
}
body.demo02.is-about .d2-stats strong{
  display:block;font-size:clamp(20px,2vw,27px);line-height:1.15;
  color:#172033;overflow-wrap:anywhere
}
body.demo02.is-about .d2-stats span{
  display:block;margin-top:6px;font-size:13px;line-height:1.45;
  color:#667085
}
body.demo02.is-about .d2-stats+.section{padding-top:55px}
.js body.demo02.is-about .d2-stats+.section{opacity:1;transform:none}
@media(max-width:900px){
  body.demo02.is-about .d2-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.demo02.is-about .d2-stats div:nth-child(2){border-right:0}
  body.demo02.is-about .d2-stats div:nth-child(-n+2){border-bottom:1px solid #e7e9ee}
}
@media(max-width:600px){
  body.demo02.is-about .d2-page-intro{padding-bottom:52px}
  body.demo02.is-about .d2-stats{width:calc(100% - 32px);margin-top:-28px;border-radius:15px}
  body.demo02.is-about .d2-stats div{padding:18px 16px 20px}
  body.demo02.is-about .d2-stats div:before{margin-bottom:9px;font-size:11px}
  body.demo02.is-about .d2-stats strong{font-size:clamp(16px,5vw,19px)}
  body.demo02.is-about .d2-stats span{font-size:12px;margin-top:5px}
  body.demo02.is-about .d2-stats+.section{padding-top:48px}
}

/* Additional home-page buyer support content. */
body.demo02.is-home .home-support{background:var(--theme-surface-soft)}
body.demo02.is-home .home-support-head{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px;align-items:end;margin-bottom:34px}
body.demo02.is-home .home-support-head h2{margin:8px 0 0;font-size:clamp(30px,3.5vw,48px);line-height:1.08}
body.demo02.is-home .home-support-head>p{margin:0;color:var(--theme-muted);font-size:17px;line-height:1.65}
body.demo02.is-home .home-support-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.demo02.is-home .home-support-grid article{padding:28px;border:1px solid var(--theme-line);background:var(--theme-surface)}
body.demo02.is-home .home-support-grid span{display:block;color:var(--theme-primary);font-weight:800;letter-spacing:.08em}
body.demo02.is-home .home-support-grid h3{margin:20px 0 10px;font-size:21px}
body.demo02.is-home .home-support-grid p{margin:0;color:var(--theme-muted);line-height:1.6}
body.demo02.is-home .home-support-foot{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-top:14px;padding:24px 28px;background:var(--theme-dark);color:#fff}
body.demo02.is-home .home-support-foot strong{font-size:20px}
body.demo02.is-home .home-support-foot p{margin:5px 0 0;color:#cbd5e1}
@media(max-width:800px){body.demo02.is-home .home-support-head{grid-template-columns:1fr;gap:12px}body.demo02.is-home .home-support-grid{grid-template-columns:1fr}body.demo02.is-home .home-support-foot{align-items:flex-start;flex-direction:column}}
/* Global heading guard: keep page titles from overwhelming layouts. */
body[class*="demo"] h1{font-size:clamp(30px,3.2vw,48px)!important;line-height:1.08!important;letter-spacing:-.025em;overflow-wrap:break-word;text-wrap:balance}
@media(max-width:600px){body[class*="demo"] h1{font-size:clamp(28px,9vw,38px)!important}}
