html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#b47-header {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(0);
  will-change: transform;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

#b47-header.is-hidden {
  transform: translateY(calc(-100% - 0.5rem));
}

#b47-header.is-scrolled {
  background: rgba(17, 17, 17, 0.92);
  box-shadow: 0 1px 0 rgba(102, 113, 126, 0.35);
}

#b47-header .header-logo {
  width: 120px;
  height: auto;
  display: block;
}

.hero-section {
  background-color: #111111;
  background-image: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)), url("../images/hero-background.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-fold {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-demo-button {
  width: auto;
}

.hero-proof {
  margin-top: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #ec671b;
  border: 1px solid #ec671b;
  color: #fafafa;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.cta-button:hover {
  background-color: #d65b17;
  border-color: #d65b17;
}

.section-dark {
  background-color: #111111;
  color: #fafafa;
}

.section-dark p {
  color: #8f9aa8;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fafafa;
}

.section-divider {
  border-top: 1px solid #66717e;
}

.section-divider-strong {
  border-bottom-color: #66717e;
}

.cal-embed-frame {
  border-color: #66717e;
}

.supported-brands-carousel {
  position: relative;
  overflow: hidden;
}

.supported-brands-carousel::before,
.supported-brands-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 1;
  pointer-events: none;
}

.supported-brands-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #171717 0%, rgba(23, 23, 23, 0) 100%);
}

.supported-brands-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #171717 0%, rgba(23, 23, 23, 0) 100%);
}

.supported-brands-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  animation: supported-brands-scroll 30s linear infinite;
}

.supported-brands-carousel:hover .supported-brands-track {
  animation-play-state: paused;
}

.supported-brands-list {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 5.9375rem;
  min-height: 3.59375rem;
  padding: 0.625rem;
  flex-shrink: 0;
  border-radius: 0.875rem;
  border: 1px solid #d8dde3;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.brand-logo-card--dark {
  border-color: #66717e;
  background: #111111;
  box-shadow: none;
}

.brand-logo-image {
  width: auto;
  height: auto;
  min-height: 1.25rem;
  max-height: 1.75rem;
  max-width: 5.5rem;
  object-fit: contain;
}

.brand-logo-image--framed {
  min-height: 1.5625rem;
  max-height: 1.875rem;
  border-radius: 0.375rem;
}

.brand-logo-text {
  display: inline-block;
  max-width: 100%;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes supported-brands-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.cookie-modal-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.cookie-modal {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  background: transparent;
}

.cookie-modal::backdrop {
  background: transparent;
}

.cookie-modal-card {
  position: relative;
}

.cookie-accordion {
  gap: 1rem;
}

.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #d1d5db;
  transition: background-color 0.2s ease;
}

.cookie-switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 9999px;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.cookie-switch input:checked + .cookie-switch-slider {
  background: #ec671b;
}

.cookie-switch input:checked + .cookie-switch-slider::before {
  transform: translateX(20px);
}

#cookie-accept-all,
#cookie-modal-accept {
  background: #ec671b !important;
  border-color: #ec671b !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#cookie-accept-all:hover,
#cookie-modal-accept:hover {
  background: #d65b17 !important;
  border-color: #d65b17 !important;
}

#cookie-banner button:disabled,
#cookie-modal button:disabled {
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  opacity: 1 !important;
  text-shadow: none !important;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .feature-layout-right {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  }

  .feature-layout-left {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  }

  .feature-copy {
    max-width: 22rem;
  }

  .feature-copy-right {
    margin-left: auto;
  }

  .feature-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  #b47-header .cta-button {
    min-width: 8.75rem;
  }

  .hero-section {
    min-height: auto;
    background-image: linear-gradient(rgba(0, 0, 0, 0.61), rgba(0, 0, 0, 0.61)), url("../images/hero-background-mobile.jpeg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .hero-fold {
    justify-content: flex-end;
    gap: 1.5rem;
    padding-top: 6.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-actions {
    margin-top: 0;
    padding-top: 0;
  }

  .hero-demo-button {
    width: 100%;
  }

  .hero-proof {
    margin-top: 0;
  }

  .feature-layout-left > :first-child {
    order: 2;
  }

  .feature-layout-left > :last-child {
    order: 1;
  }

  .supported-brands-carousel::before,
  .supported-brands-carousel::after {
    width: 1.5rem;
  }

  .supported-brands-track,
  .supported-brands-list {
    gap: 0.75rem;
  }

  .brand-logo-card {
    min-width: 4.6875rem;
    min-height: 2.875rem;
    padding: 0.5rem;
  }

  .brand-logo-image {
    min-height: 1.1rem;
    max-height: 1.5rem;
    max-width: 4.8125rem;
  }

  .brand-logo-image--framed {
    min-height: 1.375rem;
    max-height: 1.625rem;
  }

  .brand-logo-text {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .supported-brands-track {
    animation: none;
  }
}

@media only screen and (max-width: 767px) and (orientation: landscape) {
  .main-content,
  header,
  footer,
  .cookie-banner {
    display: none;
  }

  body {
    background: #000;
  }

  .rotate-notice {
    display: flex !important;
  }
}

/* --- Interactive Accordion and B2B Visual Enhancements --- */

details {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

details[open] {
  border-color: #ec671b;
  box-shadow: 0 4px 20px rgba(236, 103, 27, 0.08);
}

details summary {
  position: relative;
  padding-right: 2.5rem;
  transition: color 0.25s ease;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 300;
  color: #8f9aa8;
  transition: transform 0.3s ease, color 0.3s ease;
}

details[open] summary::after {
  content: "−";
  color: #ec671b;
  transform: translateY(-50%) rotate(180deg);
}

details p {
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle Glow and Header Accent transitions */
header a.cta-button, .hero-actions a.cta-button {
  position: relative;
  overflow: hidden;
}

header a.cta-button::after, .hero-actions a.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s ease;
  opacity: 0;
}

header a.cta-button:hover::after, .hero-actions a.cta-button:hover::after {
  animation: shine 1.2s ease infinite;
}

@keyframes shine {
  0% {
    left: -50%;
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  30% {
    left: 125%;
    opacity: 0;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

/* Smooth anchor target padding offset for sticky headers */
:target {
  scroll-margin-top: 6rem;
}
