/* ============================================================
   OA Buddy — style.css
   Design System: Tesla-inspired radical subtraction
   Reference: DESIGN.md in project root
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, Arial, sans-serif;
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  line-height: 1.43;
  color: #393C41; /* Graphite */
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Design Tokens --- */
:root {
  --brand-blue: #8BB5D0;    /* Logo, icons, accents only */
  --cta-blue: #4A7FB5;      /* All buttons and interactive elements */
  --cta-blue-hover: #2C6DB5;
  --white: #FFFFFF;
  --light-ash: #F4F4F4;
  --carbon-dark: #171A20;
  --graphite: #393C41;
  --pewter: #5C5E62;
  --silver-fog: #8E8E8E;
  --cloud-gray: #EEEEEE;
  --pale-silver: #D0D1D2;
  --frosted-glass: rgba(255, 255, 255, 0.75);

  --font: 'Inter', -apple-system, Arial, sans-serif;
  --transition: 0.33s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1383px;
  --nav-height: 56px;
}


/* ============================================================
   NAVIGATION — liquid glass pill
   ============================================================ */

.nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* Outer nav: just positions the pill at the top */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none; /* let clicks pass through the gap around the pill */
}

/* The pill itself */
.nav__inner {
  pointer-events: all;
  width: 100%;
  max-width: 660px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: rgba(23, 26, 32, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), border-color var(--transition);
}

/* Scrolled state handled below nav__cta */

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #a2c4e0;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav.scrolled .nav__brand-name {
  color: var(--carbon-dark);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__links a:hover {
  color: #FFFFFF;
}

.nav__cta {
  background: var(--brand-blue);
  color: #171A20;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 10px 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), color var(--transition);
  position: relative;
  overflow: hidden;
}

.nav__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  animation: btn-shine 9s ease-in-out infinite;
  pointer-events: none;
}

.nav__cta::after {
  content: '➜';
  font-size: 1em;
  line-height: 1;
  transition: transform var(--transition);
}

.nav__cta:hover::after {
  transform: translateX(3px);
}

.nav__cta:hover {
  background: #7aa8c8;
}

/* Scrolled state: white glass pill, original blue CTA */
.nav.scrolled .nav__inner {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav.scrolled .nav__links a {
  color: var(--carbon-dark);
}

.nav.scrolled .nav__links a:hover {
  color: var(--cta-blue);
}

.nav.scrolled .nav__cta {
  background: var(--cta-blue);
  color: #FFFFFF;
}

.nav.scrolled .nav__cta:hover {
  background: var(--cta-blue-hover);
}

/* Hamburger — mobile only */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  transition: background var(--transition);
}

/* Mobile menu overlay */
.nav__mobile {
  display: none;
  position: fixed;
  top: 80px; /* below the pill */
  left: 24px;
  right: 24px;
  background: rgba(23, 26, 32, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px 24px 24px;
  z-index: 99;
}

.nav__mobile.open {
  display: block;
}

.nav__mobile ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.nav__mobile a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.nav__mobile .nav__cta {
  display: flex;
  justify-content: center;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 28px;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

/* Shimmer beam */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  animation: btn-shine 9s ease-in-out infinite;
  pointer-events: none;
}

/* Arrow */
.btn::after {
  content: '➜';
  font-size: 1em;
  line-height: 1;
  transition: transform var(--transition);
}

.btn:hover::after {
  transform: translateX(3px);
}

@keyframes btn-shine {
  0%   { left: -100%; }
  22%  { left: 150%; }
  100% { left: 150%; }
}

.btn--primary {
  background: var(--cta-blue);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--cta-blue-hover);
}

.hero__form-btn:hover {
  background: #8bb5d0;
}

/* No arrow on pricing buttons */
.pricing__card .btn::after {
  content: none;
}

.btn--secondary {
  background: #FFFFFF;
  color: var(--graphite);
}

.btn--secondary:hover {
  background: var(--light-ash);
}


/* ============================================================
   HERO SECTION
   ============================================================ */

#hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--carbon-dark);
  padding-top: 170px;
}

/* Looping background video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.55;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 1100px);
  padding: 0 24px;
}

.hero__headline {
  font-size: 3.25rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.70);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero email form */
.hero__form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero__form-row {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  transition: border-color var(--transition);
}

.hero__form-row:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
}

.hero__form-input {
  flex: 1;
  height: 44px;
  padding: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  color: #FFFFFF;
  background: transparent;
  border: none;
  outline: none;
}

.hero__form-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.hero__form-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #171A20;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 0;
  min-width: unset;
  transition: background var(--transition);
}

.hero__form-btn:hover {
  background: #7aa8c8;
}

.hero__form-btn::before,
.hero__form-btn::after {
  display: none;
}


.hero__form-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.hero__form-disclaimer {
  margin-top: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Override ConvertKit alert/message text for dark hero background */
.hero__form .formkit-alert {
  color: #FFFFFF;
  font-size: 0.8125rem;
  margin-top: 10px;
  text-align: center;
  list-style: none;
}

.hero__form .formkit-alert-error {
  color: #ffb3b3;
}

.hero__pricing-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.hero__pricing-link:hover {
  color: #FFFFFF;
}

/* Mobile: taller input, compact button */
@media (max-width: 540px) {
  .hero__form-input {
    height: 56px;
  }

  .hero__form-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    font-size: 1.1rem;
  }
}


/* ============================================================
   STATS BAR
   ============================================================ */

#stats {
  background: var(--light-ash);
  padding: 56px 24px;
}

.stats__inner {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat {
  padding: 0 16px;
}

.stat + .stat {
  border-left: 1px solid var(--pale-silver);
}

.stat__number {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--carbon-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--pewter);
}


/* ============================================================
   SECTION SHARED
   ============================================================ */

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__heading {
  font-size: 2rem;
  font-weight: 500;
  color: var(--carbon-dark);
  line-height: 1.25;
}


/* ============================================================
   FEATURES SECTION
   ============================================================ */

#features {
  background: var(--light-ash);
  padding: 96px 24px;
}

#features .section__header {
  max-width: var(--max-width);
  margin: 0 auto 64px;
}

.features__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}

.feature__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: var(--brand-blue);
}

.feature__title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--carbon-dark);
  margin-bottom: 10px;
}

.feature__desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.65;
}


/* ============================================================
   VIDEO / DEMO SECTION — tabbed feature showcase
   ============================================================ */

#demo {
  background: linear-gradient(135deg, #171A20 0%, #2C5F8A 50%, #8BB5D0 100%);
  padding: 96px 24px;
}

#demo .section__header {
  max-width: 1100px;
  margin: 0 auto 56px;
}

#demo .section__heading {
  color: #FFFFFF;
}

/* 3D carousel */
.demo__carousel-outer {
  width: 100%;
  overflow: hidden;
  padding: 32px 0 48px;
  perspective: 1400px;
}

.demo__carousel {
  position: relative;
  height: 500px;
  width: 100%;
}

.demo__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 540px;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
  will-change: transform, opacity;
}

.demo__card--active {
  transform: translateX(-50%) translateZ(0px) rotateY(0deg);
  opacity: 1;
  z-index: 2;
  cursor: default;
}

.demo__card--left {
  transform: translateX(calc(-50% - 380px)) translateZ(-150px) rotateY(45deg);
  opacity: 0.65;
  z-index: 1;
}

.demo__card--right {
  transform: translateX(calc(-50% + 380px)) translateZ(-150px) rotateY(-45deg);
  opacity: 0.65;
  z-index: 1;
}

.demo__card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--carbon-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.demo__card-desc {
  font-size: 0.9375rem;
  color: var(--pewter);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* CTA below carousel */
.demo__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.btn--demo-cta {
  background: var(--brand-blue);
  color: #171A20;
  font-size: 1.125rem;
  padding: 18px 40px;
}

.btn--demo-cta:hover {
  background: #a3c8df;
}

/* Video element */
.demo__video {
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: block;
  cursor: pointer;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}

.demo__card--active .demo__video {
  cursor: zoom-in;
}

/* Video lightbox */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-lightbox.open {
  display: flex;
}

.video-lightbox__video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  display: block;
}

.video-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.video-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Placeholder card (until real videos are added) */
.demo__placeholder {
  aspect-ratio: 16 / 9;
  background: var(--pale-silver);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.demo__play {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo__play svg {
  width: 22px;
  height: 22px;
  color: #FFFFFF;
  margin-left: 3px;
}

.demo__caption {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0 24px;
}


/* ============================================================
   PRICING SECTION
   ============================================================ */

#pricing {
  background: #FFFFFF;
  padding: 96px 24px;
}

#pricing .section__header {
  max-width: 960px;
  margin: 0 auto 56px;
}

.pricing__grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch; /* equal height cards */
}

.pricing__card {
  background: var(--light-ash);
  border-radius: 4px;
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
}

/* Featured Lifetime card — gray matching other cards, blue top accent */
.pricing__card--featured {
  background: var(--light-ash);
  border-top: 3px solid var(--cta-blue);
  padding-top: 29px;
}

.pricing__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cta-blue);
  margin-bottom: 10px;
  min-height: 18px;
}

.pricing__tier {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--carbon-dark);
  margin-bottom: 6px;
}

.pricing__price {
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--carbon-dark);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing__price sup {
  font-size: 1rem;
  font-weight: 400;
  vertical-align: super;
}

.pricing__period {
  font-size: 0.8125rem;
  color: var(--pewter);
  margin-bottom: 28px;
  min-height: 20px;
}

.pricing__features {
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing__features li {
  font-size: 0.875rem;
  color: var(--graphite);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

/* Checkmark via inline SVG data URI — Brand Blue (#8BB5D0) */
.pricing__features li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%238BB5D0' d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.pricing__guarantee {
  text-align: center;
  margin-top: 44px;
  font-size: 0.8125rem;
  color: var(--pewter);
}


/* ============================================================
   FAQ SECTION
   ============================================================ */

#faq {
  background: var(--light-ash);
  padding: 56px 24px;
}

#faq .section__header {
  max-width: 720px;
  margin: 0 auto 48px;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--cloud-gray);
}

.faq__item:first-child {
  border-top: 1px solid var(--cloud-gray);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--carbon-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--cta-blue);
}

.faq__chevron {
  width: 16px;
  height: 16px;
  min-width: 16px;
  color: var(--pewter);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq__item.open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.33s ease;
}

.faq__answer-inner {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.65;
  padding-bottom: 20px;
}


/* ============================================================
   FINAL CTA SECTION
   ============================================================ */

#cta-final {
  background: linear-gradient(135deg, #171A20 0%, #2C5F8A 50%, #8BB5D0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.cta-final__inner {
  max-width: 600px;
}

.cta-final__headline {
  font-size: 2.5rem;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-final__sub {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.55;
  margin-bottom: 40px;
}


/* ============================================================
   FREE SIGNUP MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 26, 32, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 40px 36px 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pewter);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--carbon-dark);
}

.modal__close svg {
  width: 16px;
  height: 16px;
}

.modal__heading {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--carbon-dark);
  margin-bottom: 10px;
}

.modal__sub {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--carbon-dark);
  background: var(--light-ash);
  border: 1px solid var(--cloud-gray);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.modal__input::placeholder {
  color: var(--silver-fog);
}

.modal__input:focus {
  background: #FFFFFF;
  border-color: var(--cta-blue);
}

.modal__btn {
  width: 100%;
  height: 44px;
}

.modal__disclaimer {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--pewter);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--light-ash);
  padding: 40px 24px 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-bottom: 36px;
}

.footer__brand {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo-img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left;
  display: block;
}

.footer__logo {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--carbon-dark);
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--pewter);
  line-height: 1.5;
  max-width: 180px;
}

.footer__cols {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-heading {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--carbon-dark);
  margin: 0 0 4px;
}

.footer__col a {
  font-size: 0.8125rem;
  color: var(--pewter);
  transition: color var(--transition);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--cta-blue);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 0;
  border-top: 1px solid var(--cloud-gray);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--pewter);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .demo__carousel {
    height: 420px;
  }

  .demo__card {
    width: 400px;
  }

  .demo__card--left {
    transform: translateX(calc(-50% - 300px)) translateZ(-120px) rotateY(45deg);
  }

  .demo__card--right {
    transform: translateX(calc(-50% + 300px)) translateZ(-120px) rotateY(-45deg);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }

  .stats__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden;
  }

  /* Nav */
  .nav {
    padding: 0 16px;
  }

  .nav__inner {
    max-width: 100%;
    padding: 0 8px 0 16px;
    height: 64px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__cta {
    border-radius: 999px;
    padding: 10px 22px;
    min-height: 44px;
    font-size: 0.9375rem;
  }

  /* Hero */
  .hero__headline {
    font-size: 2rem;
    white-space: normal;
  }

  .hero__sub {
    font-size: 1rem;
  }

  .hero__content {
    padding: 0 20px;
    margin-top: -20px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Section headings */
  .section__heading {
    font-size: 1.5rem;
  }

  /* Stats */
  .stats__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .stat {
    padding: 0 8px;
  }

  .stat__number {
    font-size: 1.375rem;
  }

  .stat__label {
    font-size: 0.75rem;
  }

  .stat + .stat {
    border-left: 1px solid var(--cloud-gray);
    border-top: none;
    padding-top: 0;
  }

  /* Demo */
  #demo {
    padding: 48px 16px;
  }

  #demo .section__header {
    margin-bottom: 24px;
  }

  .demo__carousel {
    height: 380px;
  }

  .demo__card {
    width: 280px;
  }

  .demo__card--left {
    transform: translateX(calc(-50% - 230px)) translateZ(-100px) rotateY(45deg);
  }

  .demo__card--right {
    transform: translateX(calc(-50% + 230px)) translateZ(-100px) rotateY(-45deg);
  }

  .demo__tab {
    flex-shrink: 1;
    border-left: 4px solid transparent;
    border-bottom: none;
    border-radius: 0 4px 4px 0;
    padding: 14px 16px;
  }


  /* Features */
  .features__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Pricing */
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .pricing__card {
    padding: 28px 24px;
  }

  /* FAQ */
  #faq {
    padding: 48px 20px;
  }

  /* Final CTA */
  .cta-final__headline {
    font-size: 1.75rem;
  }

  .cta-final__sub {
    font-size: 0.9375rem;
  }

  /* Sections — tighter padding */
  #stats {
    padding: 32px 20px;
  }

  #features {
    padding: 48px 20px;
  }

  #features .section__header {
    margin-bottom: 32px;
  }

  #pricing {
    padding: 48px 20px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__brand {
    flex: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .footer__brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .footer__tagline {
    max-width: none;
  }

  .footer__cols {
    width: 100%;
    gap: 32px;
  }

  .footer__col {
    min-width: 0;
  }
}
