/* cs-landing (25 Oct 2026): case-study landing helpers.
   1) .cs-guide: mid-page guide block. The guide is open; this block links to the page and the PDF.
   2) .sb-stickycta: mobile-only sticky "Book a demo" bar (built by cs-sticky-cta.js). */

.cs-guide { padding: 24px 0 72px; }
.cs-guide-card {
  display: grid;
  grid-template-columns: 200px 1fr minmax(300px, 380px);
  gap: 32px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.cs-guide-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.cs-guide-copy .eyebrow { display: inline-block; margin-bottom: 10px; }
.cs-guide-copy h2 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.cs-guide-copy p { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.cs-guide-copy .cs-guide-note { color: var(--text-dim); font-size: 12px; margin: 0; }
.cs-guide-form {
  background: #fff; /* HubSpot form renders white natively, same framing as the guide pages */
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 240px;
}
.cs-guide-reveal { display: none; text-align: center; padding: 8px 0; }
.cs-guide-reveal h3 { font-size: 19px; margin: 0 0 8px; }
.cs-guide-reveal p { color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.cs-guide-reveal .btn { width: 100%; justify-content: center; }
.cs-guide-fallback { font-size: 13px; color: var(--text-dim); margin: 10px 0 0; }
.cs-guide-fallback a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 960px) {
  .cs-guide-card { grid-template-columns: 120px 1fr; gap: 20px; padding: 24px; }
  .cs-guide-form-wrap, .cs-guide-reveal { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .cs-guide { padding: 8px 0 48px; }
  .cs-guide-card { grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; }
  .cs-guide-copy h2 { font-size: 20px; }
  .cs-guide-copy p { font-size: 14px; }
  .cs-guide-form { padding: 4px; }
}

/* Sticky mobile CTA. Hidden by default; cs-sticky-cta.js adds .is-visible
   below 768px once the hero has scrolled away. */
.sb-stickycta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990; /* below the cookie banner (9999) */
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.sb-stickycta.is-visible { transform: translateY(0); }
.sb-stickycta-text { flex: 1 1 auto; margin: 0; font-size: 13px; line-height: 1.3; color: var(--text); }
.sb-stickycta-btn { flex: 0 0 auto; white-space: nowrap; }
.sb-stickycta-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 767px) {
  .sb-stickycta { display: flex; }
  /* While the bar is up, lift the cookie banner above it so its buttons stay clear. */
  body.sb-stickycta-on .sb-consent-banner { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  body.sb-stickycta-on { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 340px) { .sb-stickycta-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .sb-stickycta { transition: none; } }
