.csc-home {
  --csc-ink: #003a66;
  --csc-pale: #e6f4fe;
  --csc-blue: #c3e5ff;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc((100% - 100vw) / 2);
  color: var(--csc-ink);
  overflow: clip;
  line-height: 1.48;
}
.csc-home h1,.csc-home h2,.csc-home h3 { color: var(--csc-ink); font-weight: 800; line-height: 1.1; }
.csc-home h2 { font-size: clamp(25px,3vw,44px); }
.csc-home img { max-width: 100%; }
.csc-wrap { margin-inline: auto; width: min(100% - 40px, 1260px); padding-block: clamp(32px, 6vw, 80px); }
.csc-hero { position: relative; height: min(76svh, 720px); background: var(--csc-pale); display: grid; align-items: center; }
.csc-hero picture { position: absolute; inset: 0; }
.csc-hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.csc-sale { position: relative; padding: 30px clamp(20px, 4vw, 70px); width: max-content; max-width: 100%; }
.csc-sale h1 { font-size: clamp(34px, 5vw, 76px); margin: 0 0 12px; letter-spacing: -.03em; }
.csc-sale p { font-size: clamp(17px, 2vw, 25px); margin-bottom: 15px; }
.csc-home .csc-btn { display: inline-block; color: #fff; background: var(--csc-ink); font-weight: 800; border-radius: 40px; padding: .8em 1.6em; }
.csc-home .csc-btn:hover,.csc-home .csc-btn:focus-visible { color: #fff; background: #125481; }
.csc-products { padding-bottom: 46px; }
.csc-home .csc-ticker { background: var(--csc-blue); padding: 12px 20px; text-align: center; font-size: clamp(16px, 2vw, 23px); }
.csc-stat,.csc-guarantee,.csc-press,.csc-compare { text-align: center; }
.csc-stat { padding-bottom: 10px; }
.csc-faq { max-width: 800px; }
.csc-faq details { border-block-end: 1px solid #a9cde4; padding-block: 16px; }
.csc-faq summary { cursor: pointer; font-weight: 700; font-size: 20px; }
.csc-faq summary img { width: 35px; height: 35px; object-fit: contain; margin-inline: 10px; }
.csc-faq p { margin: 10px 0 0 28px; }
.csc-guarantee { padding: 48px 20px; background: var(--csc-pale); }
.csc-guarantee img { width: 65px; margin-bottom: 16px; }
.csc-guarantee a,.csc-study a { color: var(--csc-ink); text-decoration: underline; font-weight: 700; }
.csc-demos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; text-align: center; }
.csc-demos img { width: 100%; border-radius: 10px; margin-bottom: 16px; }
.csc-compare { background: var(--csc-pale); }
.csc-comparison { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.csc-comparison article { background: #fff; border-radius: 12px; padding: 14px 12px 20px; }
.csc-comparison img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.csc-press { background: var(--csc-blue); }
.csc-logos { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 25px; align-items: center; }
.csc-logos img { width: 100%; height: 48px; object-fit: contain; }
.csc-study { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--csc-pale); }
.csc-study picture img { width: 100%; display: block; }
.csc-study > div { padding: clamp(24px,5vw,70px); }
@media(max-width:767px) {
  .csc-wrap { width: calc(100% - 32px); }
  .csc-hero { display: flex; flex-direction: column; height: auto; text-align: center; }
  .csc-hero picture { position: static; width: 100%; height: min(90vw,47svh); }
  .csc-sale { padding: 20px 16px 23px; }
  .csc-sale h1 { font-size: clamp(28px, 8vw, 44px); }
  .csc-comparison { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .csc-logos { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .csc-study { grid-template-columns: 1fr; }
  .csc-demos h2 { font-size: 20px; }
}

/* The homepage uses the full width inside the retained WoodMart page template. */
.main-page-wrapper:has(.csc-home) .container:has(.csc-home) {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}
.main-page-wrapper:has(.csc-home) .wd-content-area:has(.csc-home) {
  margin-block-start: 0;
}
.csc-home {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.csc-home .csc-products .product-image-link { background: #f2f9fd; border-radius: 10px; }
.csc-home .csc-products .wd-carousel-container { --wd-arrow-offset-h: -12px; }
.csc-home .csc-products .wd-nav-arrows {
  opacity: 1;
  visibility: visible;
}
@media(min-width:768px) {
  .csc-home .csc-sale h1 { font-size: clamp(32px,4.25vw,64px); }
}

.csc-faq details {
  background: var(--csc-pale);
  border: 1px solid #6b9ebb;
  border-radius: 7px;
  margin-block: 10px;
  padding: 12px 15px;
}
.csc-faq details summary { list-style: none; }
.csc-faq details summary::after { content: '+'; float: right; }
.csc-faq details[open] summary::after { content: '−'; }
.csc-gallery { position: relative; margin-top: 23px; }
.csc-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px)/3);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.csc-gallery-track > article { scroll-snap-align: start; min-width: 0; }
.csc-results-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.csc-results-pair figure { display: block; position: relative; margin: 0; }
.csc-results-pair img {
  aspect-ratio: 3/4;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  width: 100%;
  height: auto;
}
.csc-results-pair figcaption {
  position: absolute;
  inset: 7px 5px auto;
  padding: 3px 2px;
  background: var(--csc-blue);
  color: var(--csc-ink);
  border-radius: 25px;
  font-size: clamp(9px, 1.2vw, 15px);
}
.csc-gallery-controls { display: flex; justify-content: center; gap: 8px; margin-block-start: 12px; }
.csc-gallery-controls button {
  color: white;
  background: var(--csc-ink);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  min-height: 35px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.csc-review-section { text-align: center; }
.csc-reviews article { border: 1px solid #b9ceda; padding: 18px; text-align: left; background: #fff; }
.csc-reviews .csc-stars { color: #7e550a; margin-bottom: 12px; }
.csc-reviews blockquote { margin: 0 0 12px; padding: 0; border: 0; font: inherit; }
.csc-review-source { font-size: 13px; margin-top: 12px; }
@media(max-width:767px) {
  .csc-gallery-track { grid-auto-columns: 91%; }
  .csc-demos { grid-template-columns: 1fr; }
  .csc-demos article { display: flex; flex-direction: column-reverse; }
}

/* Keep the native WoodMart controls inside the active carousel hit area. */
.csc-home .csc-products .wd-nav-arrows.wd-pos-sep {
  --wd-arrow-offset-h: -37px;
  --wd-arrow-size: 33px;
  --wd-arrow-icon-size: 16px;
  --wd-arrow-bg: #fff;
  --wd-arrow-radius: 50%;
  --wd-arrow-shadow: 0 1px 5px rgba(0,58,102,.24);
}
.csc-home .csc-products .wd-nav-arrows.wd-pos-sep .wd-btn-arrow {
  transform: none;
  pointer-events: auto;
  opacity: 1;
}

body.home.page-id-13 main#main-content.wd-content-layout:has(#post-13 .csc-home) {
  padding-block-start: 0;
}
.csc-home .csc-main .csc-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  height: 36px;
  padding: 0 12px;
  overflow: hidden;
  background: #bfe4fb;
  font-size: 16px;
  white-space: nowrap;
}
.csc-home .csc-ticker span { flex: none; }
@media (min-width: 768px) {
  .csc-home .csc-hero { height: min(calc(80svh - 36px), 664px); }
}
@media (max-width: 767px) {
  .csc-home .csc-main .csc-ticker { font-size: 14px; }
}

.csc-home .csc-comparison article {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.csc-home .csc-comparison .csc-btn {
  margin-block-start: auto;
  max-width: 100%;
  text-align: center;
}
@media (max-width: 767px) {
  .csc-home .csc-comparison article { padding: 12px 8px; }
  .csc-home .csc-comparison .csc-btn {
    align-self: stretch;
    display: grid;
    place-items: center;
    min-height: 52px;
    padding: 7px 8px;
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.25;
  }
}
@media (any-pointer: fine) {
  .csc-home #csc-results { cursor: grab; }
  .csc-home #csc-results img { -webkit-user-drag: none; }
  .csc-home #csc-results.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
}
