/* ==========================================================================
   Stagify.ai — Homepage sections
   Before/after studio · Image+text info rows · Comparison · CTA
   Brand: navy #1e3a8a, blue #2563eb, glassmorphism over the video bg, Inter.
   ========================================================================== */

/* --- Shared scaffolding -------------------------------------------------- */
.home-section {
  width: 100%;
  max-width: 1140px;
  margin: 56px auto;
  padding: 0 48px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  /* keep anchored sections clear of the sticky header when jumped to */
  scroll-margin-top: 90px;
}
.home-section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}
.home-section__title {
  font-size: clamp(23px, 2.8vw, 33px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #1e3a8a;
  font-weight: 800;
  margin: 0 0 10px;
}
.home-section__sub {
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.55;
  color: #46557d;
  margin: 0 auto;
  max-width: 600px;
}

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Direction-aware exit: leave upward when scrolling down, downward when
   scrolling up. Higher specificity so it overrides the directional --left/right
   enter offsets. */
.reveal.exit-up {
  opacity: 0;
  transform: translateY(-52px) scale(0.965);
}
.reveal.exit-down {
  opacity: 0;
  transform: translateY(52px) scale(0.965);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.exit-up,
  .reveal.exit-down {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Reusable checklist (light check, no heavy circle) ------------------- */
.home-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.home-list li {
  position: relative;
  padding-left: 25px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #3a4a72;
}
.home-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* ==========================================================================
   1. Before / after studio
   ========================================================================== */
.studio-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: 24px;
  align-items: stretch;
}
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(30, 58, 138, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #b2c4f6;
  user-select: none;
  touch-action: pan-y;
  --pos: 52%;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-after {
  z-index: 1;
}
.ba-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  pointer-events: none;
}
.ba-tag--before {
  left: 12px;
}
.ba-tag--after {
  right: 12px;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-1px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(30, 58, 138, 0.25);
  z-index: 5;
  cursor: ew-resize;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4);
}
.ba-handle__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -1px;
  pointer-events: none;
}
.ba-handle:focus-visible {
  outline: none;
}
.ba-handle:focus-visible::after {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.5), 0 4px 14px rgba(30, 58, 138, 0.4);
}

/* side writeup panel */
.studio-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(30, 58, 138, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.studio-side__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 6px;
}
.studio-side__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 9px;
  line-height: 1.25;
}
.studio-side__body {
  margin: 0;
  color: #46557d;
  font-size: 14.5px;
  line-height: 1.55;
}

/* ==========================================================================
   1b. AI Designer demo (Stagify+ only) — Supademo embed instead of an image
   ========================================================================== */
.designer-shell {
  display: block;
  width: 100%;
}
.designer-demo {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: transparent;
}
.designer-demo__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.designer-demo.is-loaded .designer-demo__frame {
  opacity: 1;
}
.designer-demo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #cdd9f8, #b8c8f3);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(30, 58, 138, 0.18);
  transition: opacity 0.45s ease;
}
/* shimmer sweep so the placeholder reads as "loading", not a static block */
.designer-demo__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: designerShimmer 1.5s ease-in-out infinite;
}
.designer-demo.is-loaded .designer-demo__placeholder {
  opacity: 0;
  pointer-events: none;
}
@keyframes designerShimmer {
  0% { background-position: 150% center; }
  100% { background-position: -50% center; }
}
.designer-demo__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(30, 58, 138, 0.25);
  border-top-color: #1e3a8a;
  animation: designerSpin 0.8s linear infinite;
}
@keyframes designerSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .designer-demo__spinner,
  .designer-demo__placeholder::before {
    animation: none;
  }
}

/* ==========================================================================
   2. Image + text info rows
   ========================================================================== */
.info-rows {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.info-row--flip .info-row__media {
  order: 2;
}
.info-row__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #b2c4f6;
}
.info-row__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.info-row__media:hover img {
  transform: scale(1.04);
}
.info-row__media figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 28px);
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
}
.info-row__eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 9px;
}
.info-row__title {
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #1e3a8a;
  font-weight: 800;
  margin: 0 0 11px;
}
.info-row__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #3e4d73;
}

/* ==========================================================================
   3. Virtual vs traditional comparison
   ========================================================================== */
.cmp {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(30, 58, 138, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.cmp-row {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1.1fr;
  align-items: stretch;
}
.cmp-row + .cmp-row {
  border-top: 1px solid rgba(30, 58, 138, 0.1);
}
.cmp-cell {
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.45;
  color: #2b3658;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmp-cell--aspect {
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.32);
}
.cmp-cell--trad {
  color: #717b8c;
}
.cmp-cell--stagify {
  background: rgba(37, 99, 235, 0.07);
  border-left: 1px solid rgba(37, 99, 235, 0.14);
  color: #1e3a55;
  font-weight: 600;
}
.cmp-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  margin-top: 1px;
}
.cmp-mark--no {
  background: rgba(109, 28, 44, 0.1);
  color: #9b2c3c;
}
.cmp-mark--yes {
  background: #2563eb;
  color: #fff;
}
.cmp-head .cmp-cell {
  padding-top: 17px;
  padding-bottom: 17px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  text-transform: none;
  color: #46557d;
}
.cmp-head .cmp-cell--stagify {
  color: #2563eb;
}
.cmp-brandcell {
  gap: 8px;
}
.cmp-brandcell img {
  width: 20px;
  height: 20px;
}
.cmp-source {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 1140px;
  margin: 18px auto 0;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.cmp-source__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #2563eb;
}
.cmp-source p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #2b3658;
}
.cmp-source cite {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  color: #6477a6;
}
.cmp-source cite a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.cmp-source cite a:hover {
  color: #1d4ed8;
}

/* ==========================================================================
   4. Final CTA
   ========================================================================== */
.home-cta {
  max-width: 1080px;
  margin: 60px auto 64px;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.home-cta__panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 22px;
  padding: 46px 36px;
  color: #fff;
  background: radial-gradient(circle at 18% 20%, #3b82f6 0, transparent 45%),
    radial-gradient(circle at 82% 18%, #1d4ed8 0, transparent 45%),
    radial-gradient(circle at 50% 95%, #60a5fa 0, transparent 50%), #1e3a8a;
  box-shadow: 0 24px 60px rgba(30, 58, 138, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.home-cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.home-cta__title {
  position: relative;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: #fff;
}
.home-cta__sub {
  position: relative;
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin: 0 auto 24px;
}
.home-cta__panel .btn {
  position: relative;
  background: #fff;
  color: #1e3a8a;
  border: none;
  font-size: 16.5px;
  font-weight: 800;
  padding: 14px 30px;
  border-radius: 11px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home-cta__panel .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  background: #fff;
}
.home-cta__note {
  position: relative;
  margin: 15px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .home-section {
    margin: 44px auto;
    padding: 0 28px;
  }
  .studio-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .info-rows {
    gap: 36px;
  }
  .info-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .info-row--flip .info-row__media {
    order: 0;
  }
  .cmp-row {
    grid-template-columns: 1fr 1fr;
  }
  .cmp-cell--aspect {
    grid-column: 1 / -1;
    padding-bottom: 5px;
    background: rgba(255, 255, 255, 0.42);
  }
  .cmp-head .cmp-cell--aspect {
    display: none;
  }
}

@media (max-width: 600px) {
  .home-section {
    margin: 38px auto;
    padding: 0 18px;
  }
  .home-cta {
    margin: 44px auto 48px;
    padding: 0 18px;
  }
  .home-cta__panel {
    padding: 38px 20px;
    border-radius: 18px;
  }
  .cmp-cell {
    padding: 12px 14px;
    font-size: 13px;
  }
  .ba-handle::after {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   Scroll effects & studio enhancements
   ========================================================================== */

/* directional reveals */
.reveal--left {
  transform: translate(-34px, 0);
}
.reveal--right {
  transform: translate(34px, 0);
}
.reveal--up {
  transform: translateY(34px);
}

/* staggered checklist inside info-row text */
.info-row__text .home-list li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.info-row__text.is-visible .home-list li {
  opacity: 1;
  transform: none;
}
.info-row__text.is-visible .home-list li:nth-child(1) {
  transition-delay: 0.18s;
}
.info-row__text.is-visible .home-list li:nth-child(2) {
  transition-delay: 0.28s;
}
.info-row__text.is-visible .home-list li:nth-child(3) {
  transition-delay: 0.38s;
}

/* before/after crossfade between examples */
.ba-before,
.ba-after {
  transition: opacity 0.3s ease;
}
.ba.is-swapping .ba-before,
.ba.is-swapping .ba-after {
  opacity: 0;
}

/* gentle attention pulse on the drag handle */
@keyframes baHandlePulse {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4);
  }
  50% {
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.4),
      0 0 0 9px rgba(37, 99, 235, 0.12);
  }
}
.ba-handle::after {
  animation: baHandlePulse 2.6s ease-in-out infinite;
}
.ba.is-dragging .ba-handle::after {
  animation: none;
}

/* example switcher (segmented control) */
.studio-examples {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(30, 58, 138, 0.12);
  border-radius: 999px;
  align-self: flex-start;
}
.studio-ex {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #46557d;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.studio-ex:hover {
  color: #1e3a8a;
}
.studio-ex.is-active {
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #60a5fa 0, transparent 60%),
    radial-gradient(circle at 70% 70%, #1d4ed8 0, transparent 60%), #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

/* respect reduced motion for all of the above */
@media (prefers-reduced-motion: reduce) {
  .info-row__text .home-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ba-handle::after {
    animation: none;
  }
}

/* ==========================================================================
   Sponsors / "Officially recognized by" — quiet trust strip
   ========================================================================== */
.sponsors {
  margin-top: 200px; /* clears the hero carousel overflow */
  padding: 24px 0;
  min-height: 200px; /* reserves space so logos don't overlap the next section */
}
/* On mobile the hero carousel sits in normal flow (no downward overflow), so
   the large clearance above the sponsors becomes a huge empty gap — remove it.
   Use min-height:auto (not 0) so this flex item still grows to fit the logos
   instead of being shrunk by the column flexbox into the next section. */
@media (max-width: 768px) {
  .sponsors {
    margin-top: 0;
    min-height: auto;
  }
}
.sponsors-title {
  color: #5b6b94;
  font-weight: 700;
  opacity: 1;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 0 0 20px;
}
/* drop the heavy frosted slab — let the logos sit on the page, edges faded */
.sponsors-container {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 6px 0;
  overflow-x: clip;
  max-width: 100%;
}
.sponsor-logo {
  filter: grayscale(1) opacity(0.65);
}
.sponsor-item:hover .sponsor-logo {
  filter: grayscale(0) opacity(1);
}

/* ==========================================================================
   "Don't fall behind" — NAR industry stats
   ========================================================================== */
.nar-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(30, 58, 138, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 30px 32px;
}

.nar-usage__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #46557d;
}
.nar-bar {
  display: flex;
  height: 16px;
  margin: 14px 0 18px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(30, 58, 138, 0.18);
}
.nar-bar span {
  display: block;
  height: 100%;
}
.nar-seg--daily {
  background: #1e3a8a;
}
.nar-seg--weekly {
  background: #2563eb;
}
.nar-seg--monthly {
  background: #60a5fa;
}
.nar-seg--none {
  background: #cbd5e1;
}
.nar-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
}
.nar-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #3a4a72;
}
.nar-legend .swatch {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.nar-legend .pct {
  font-weight: 800;
  color: #1e3a8a;
  font-variant-numeric: tabular-nums;
}
.nar-usage__note {
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #2b3658;
}
.nar-usage__note strong {
  color: #2563eb;
  font-weight: 800;
}

.nar-stats {
  display: grid;
  gap: 16px;
}
.nar-stat {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 13px;
  padding: 18px 20px;
}
.nar-stat__num {
  display: block;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nar-stat__txt {
  font-size: 14px;
  line-height: 1.5;
  color: #41507a;
}

@media (max-width: 900px) {
  .nar-card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px;
  }
}
@media (max-width: 600px) {
  .nar-legend {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Instagram section
   ========================================================================== */
.ig-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 24px;
  justify-content: center;
}
.ig-cta {
  text-align: center;
  margin-top: 28px;
}
.ig-copy__sub {
  margin: 12px 0 26px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  color: #41507a;
  max-width: 460px;
}
.ig-follow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 50%, #3b82f6 0, transparent 50%),
    radial-gradient(circle at 80% 20%, #1d4ed8 0, transparent 50%),
    radial-gradient(circle at 40% 80%, #2563eb 0, transparent 50%),
    radial-gradient(circle at 0 100%, #1e40af 0, transparent 50%),
    radial-gradient(circle at 100% 0, #60a5fa 0, transparent 50%), #1e3a8a;
  box-shadow: 0 10px 26px rgba(30, 58, 138, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ig-follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30, 58, 138, 0.42);
}
.ig-follow svg {
  width: 19px;
  height: 19px;
}
/* Framed card that crops the Instagram embed to a tidier height */
.ig-embed {
  justify-self: center;
  width: 100%;
  max-width: 330px;
  height: 460px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(30, 58, 138, 0.26);
  border: 1px solid rgba(30, 58, 138, 0.08);
}
.ig-embed__frame {
  width: 100%;
  height: 620px;
  border: none;
  display: block;
}
@media (max-width: 720px) {
  .ig-embeds {
    grid-template-columns: minmax(0, 330px);
  }
  .ig-embed:not(:first-child) {
    display: none;
  }
}

/* ==========================================================================
   Stagify+ / Enterprise plans
   ========================================================================== */
.plus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.plus-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 28px 28px 26px;
  box-shadow: 0 14px 40px rgba(30, 58, 138, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.plus-card--pro {
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.08),
    rgba(255, 255, 255, 0.5) 40%
  );
}
.plus-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.plus-card__logo {
  width: 32px;
  height: 32px;
}
.plus-card__enticon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}
.plus-card__enticon svg {
  width: 24px;
  height: 24px;
}
.plus-card__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e3a8a;
}
.plus-card__badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}
.plus-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.plus-price__num {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plus-price__per {
  font-size: 14px;
  font-weight: 600;
  color: #6477a6;
}
.plus-card__desc {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #41507a;
}
.plus-card .home-list {
  margin-top: 16px;
  margin-bottom: 24px;
}
.plus-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 11px;
  color: #fff;
  background: radial-gradient(circle at 20% 50%, #3b82f6 0, transparent 50%),
    radial-gradient(circle at 80% 20%, #1d4ed8 0, transparent 50%),
    radial-gradient(circle at 40% 80%, #2563eb 0, transparent 50%),
    radial-gradient(circle at 0 100%, #1e40af 0, transparent 50%),
    radial-gradient(circle at 100% 0, #60a5fa 0, transparent 50%), #1e3a8a;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.plus-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.38);
}
.plus-cta--ghost {
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(30, 58, 138, 0.25);
  box-shadow: none;
}
.plus-cta--ghost:hover {
  border-color: #2563eb;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.16);
}
@media (max-width: 760px) {
  .plus-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Why choose us — Stagify vs others
   ========================================================================== */
.whyus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.whyus-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 14px 40px rgba(30, 58, 138, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.whyus-card--us {
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.08),
    rgba(255, 255, 255, 0.5) 40%
  );
}
.whyus-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(30, 58, 138, 0.12);
}
.whyus-card__head .brand-strong {
  color: #2563eb;
}
.whyus-card__head .brand-light {
  color: #2563eb;
  opacity: 0.8;
}
.whyus-card__head--them {
  color: #6d1c2c;
}
.whyus-card__logo {
  width: 26px;
  height: 26px;
}
.whyus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.whyus-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.45;
  color: #3a4a72;
}
.whyus-list li strong {
  color: #1e3a8a;
}
.whyus-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.whyus-list--yes li::before {
  content: "✓";
  background: #2563eb;
  color: #fff;
}
.whyus-list--no li {
  color: #717b8c;
}
.whyus-list--no li::before {
  content: "–";
  background: rgba(109, 28, 44, 0.1);
  color: #9b2c3c;
}
@media (max-width: 760px) {
  .whyus-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ accordion (homepage) + Tech Help page
   ========================================================================== */
.faq-accordion {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.faq-q {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-q[open] {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.faq-q > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 17px 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: #1e3a8a;
  transition: color 0.15s ease;
}
.faq-q > summary::-webkit-details-marker {
  display: none;
}
.faq-q > summary:hover,
.faq-q[open] > summary {
  color: #2563eb;
}
.faq-q__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-q__icon::before,
.faq-q__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-q__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-q[open] .faq-q__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0);
}
.faq-q > p {
  margin: 0 22px;
  padding: 14px 0 19px;
  border-top: 1px solid rgba(30, 58, 138, 0.1);
  font-size: 14.5px;
  line-height: 1.6;
  color: #41507a;
}
.faq-q[open] > p {
  animation: faqReveal 0.28s cubic-bezier(0.16, 0.84, 0.44, 1);
}
@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-q[open] > p {
    animation: none;
  }
}
.faq-q > p a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.faq-q > p a:hover {
  text-decoration: underline;
}

/* Contact CTA (below FAQ) */
.home-contact-cta .home-section__head {
  margin-bottom: 0;
}
.contact-cta-email {
  display: inline-block;
  margin-top: 14px;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.contact-cta-email:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Guides page */
.home-guides {
  padding-bottom: 56px;
  overflow: visible;
}
.home-guides [id] {
  scroll-margin-top: 96px;
}

.guides-ambient {
  pointer-events: none;
  position: absolute;
  inset: -80px 0 auto;
  height: 420px;
  z-index: 0;
  overflow: hidden;
}
.guides-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  animation: guidesOrbFloat 14s ease-in-out infinite;
}
.guides-ambient__orb--1 {
  width: 280px;
  height: 280px;
  top: -40px;
  left: -60px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
}
.guides-ambient__orb--2 {
  width: 220px;
  height: 220px;
  top: 20px;
  right: -40px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
  animation-delay: -4s;
}
.guides-ambient__orb--3 {
  width: 180px;
  height: 180px;
  top: 120px;
  left: 42%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.22) 0%, transparent 70%);
  animation-delay: -8s;
}
@keyframes guidesOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -12px) scale(1.06); }
  66% { transform: translate(-14px, 10px) scale(0.96); }
}


.guides-hero-title {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #1e40af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.guides-overview {
  max-width: 980px;
  margin: 0 auto 44px;
  position: relative;
  z-index: 1;
}
.guides-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guides-overview-card {
  --guide-accent: #2563eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.22s cubic-bezier(0.16, 0.84, 0.44, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.guides-overview-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: color-mix(in srgb, var(--guide-accent) 35%, white);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--guide-accent) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.guides-overview-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--guide-accent);
  background: color-mix(in srgb, var(--guide-accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--guide-accent) 22%, white);
  transition: transform 0.22s ease, background 0.22s ease;
}
.guides-overview-card:hover .guides-overview-card__icon {
  transform: scale(1.08) rotate(-3deg);
}
.guides-overview-card__icon svg {
  width: 20px;
  height: 20px;
}
.guides-overview-card__title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #1e3a8a;
  letter-spacing: -0.15px;
  padding-right: 18px;
}
.guides-overview-card__arrow {
  position: absolute;
  right: 14px;
  bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--guide-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.guides-overview-card:hover .guides-overview-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.guides-walkthrough,
.guides-troubleshooting {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.guides-walkthrough__panel {
  padding: 22px 22px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 44px rgba(30, 58, 138, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.guides-walkthrough__top {
  margin-bottom: 4px;
}

.guides-heading {
  max-width: none;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #1e3a8a;
}
.guides-troubleshooting .guides-heading {
  margin: 0 0 18px;
}
.guides-heading--spaced {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(30, 58, 138, 0.12);
}

.guide-demo-picker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 58, 138, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.guide-demo-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #41507a;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.guide-demo-picker__btn img {
  border-radius: 4px;
  transition: transform 0.18s ease;
}
.guide-demo-picker__btn:hover {
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}
.guide-demo-picker__btn--active {
  color: #1e3a8a;
  background: #fff;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.14);
}
.guide-demo-picker__btn--active img {
  transform: scale(1.06);
}
.guide-demo-desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #41507a;
  max-width: 640px;
  min-height: 1.6em;
  transition: opacity 0.2s ease;
}
.guide-demo-stage {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.guide-demo-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.guide-demo-panel.is-active {
  display: block;
  opacity: 1;
  transform: none;
}
.guide-demo-panel.is-entering {
  animation: guideDemoIn 0.36s cubic-bezier(0.16, 0.84, 0.44, 1);
}
@keyframes guideDemoIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.guide-demo-embed__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(80vh, 80svh);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(30, 58, 138, 0.18);
  border: 1px solid rgba(30, 58, 138, 0.08);
}
.guide-demo-embed__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.guide-demo-embed__inner.is-loaded iframe {
  opacity: 1;
}
/* skeleton shown while the Supademo embed loads (matches the homepage demo) */
.guide-demo-embed__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #cdd9f8, #b8c8f3);
  transition: opacity 0.45s ease;
}
.guide-demo-embed__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: designerShimmer 1.5s ease-in-out infinite;
}
.guide-demo-embed__spinner {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(30, 58, 138, 0.25);
  border-top-color: #1e3a8a;
  animation: designerSpin 0.8s linear infinite;
}
.guide-demo-embed__inner.is-loaded .guide-demo-embed__placeholder {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .guide-demo-embed__spinner,
  .guide-demo-embed__placeholder::before {
    animation: none;
  }
}

.guides-trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.guides-trouble-card {
  --guide-accent: #2563eb;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding: 18px 18px 8px;
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.guides-trouble-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--guide-accent) 28%, white);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--guide-accent) 14%, transparent);
}
.guides-trouble-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.guides-trouble-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--guide-accent);
  background: color-mix(in srgb, var(--guide-accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--guide-accent) 20%, white);
  transition: transform 0.2s ease;
}
.guides-trouble-card:hover .guides-trouble-card__icon {
  transform: scale(1.06);
}
.guides-trouble-card__icon svg {
  width: 19px;
  height: 19px;
}
.guides-trouble-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.2px;
}
.guides-trouble-card .faq-accordion {
  max-width: none;
}
.guides-trouble-card .faq-q {
  transition: background 0.16s ease;
}
.guides-trouble-card .faq-q:hover {
  background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
  .guides-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guides-trouble-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .guides-overview-grid {
    grid-template-columns: 1fr;
  }
  .guide-demo-picker {
    display: flex;
    width: 100%;
  }
  .guide-demo-picker__btn {
    flex: 1;
    justify-content: center;
  }
  .guides-walkthrough__panel {
    padding: 16px 14px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guides-ambient__orb {
    animation: none;
  }
  .guide-demo-panel.is-entering {
    animation: none;
  }
  .guides-overview-card:hover,
  .guides-trouble-card:hover {
    transform: none;
  }
}

.th-contact {
  max-width: 980px;
  margin: 36px auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.th-contact__card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.th-contact__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(30, 58, 138, 0.14);
}
.th-contact p {
  margin: 0;
  font-size: 15px;
  color: #41507a;
}
.th-contact a {
  display: inline;
  margin-left: 0;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}
.th-contact a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Mobile — prevent horizontal page scroll
   ========================================================================== */
@media (max-width: 768px) {
  main {
    overflow-x: clip;
    max-width: 100%;
  }

  .site-header,
  .site-header .nav {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header .nav-center {
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    padding: 0 6px !important;
    max-width: 100% !important;
  }

  .site-header .nav-link {
    white-space: normal !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
  }

  .hero,
  .hero-content,
  .hero-media,
  .sponsors,
  .sponsors-content {
    max-width: 100%;
    min-width: 0;
  }

  .home-section,
  .home-cta {
    min-width: 0;
    max-width: 100%;
  }

  .cmp,
  .cmp-row {
    min-width: 0;
  }

  .cmp-cell {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ig-embeds {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  /* Off-screen reveal offsets can widen the scroll width before visible */
  .reveal--left,
  .reveal--right {
    transform: translateY(20px);
  }

  .reveal--left.is-visible,
  .reveal--right.is-visible {
    transform: none;
  }
}
