/* ============================================
   Demo Site Styles — demo_site.css
   Real Results — Demo Section
   ============================================ */

/* -----------------------------------------------
   Font & Color Variables
   (Matching master site for header/footer consistency)
----------------------------------------------- */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

:root {
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #111111;
  --accent-color: #e03a3c;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

:root {
  --nav-color: #212529;
  --nav-hover-color: #e03a3c;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #e03a3c;
}

/* Color Presets */
.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #1b1b1b;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #353535;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/* -----------------------------------------------
   General
----------------------------------------------- */
body {
  color: var(--default-color);
  font-family: var(--default-font);
  background: linear-gradient(135deg, #f5f0ea 0%, #fdfcfa 100%);
  background-attachment: fixed;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none !important;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

main {
  flex: 1;
}


/* -----------------------------------------------
   Header (matching master site)
----------------------------------------------- */
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  border-bottom: 1px solid #111111;
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 32px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .logo span {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
}

/* Auth link (Login / Logout) next to logo */
.header .auth-link {
  color: var(--nav-color);
  font-family: var(--nav-font);
  font-size: 18px;
  font-weight: 700;
  margin-left: 24px;
  padding: 4px 0 0 0;
  transition: 0.3s;
}

.header .auth-link:hover {
  color: var(--nav-hover-color);
}

/* CTA Button */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 4px;
  transition: 0.3s;
  font-family: var(--nav-font);
  font-weight: 500;
  white-space: nowrap;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.scrolled .header {
  background-color: var(--background-color);
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .btn-getstarted,
  .header .btn-getstarted:focus {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}


/* -----------------------------------------------
   Navigation — Desktop
----------------------------------------------- */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px 4px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  /* Dropdown */
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}


/* -----------------------------------------------
   Navigation — Mobile
----------------------------------------------- */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}


/* -----------------------------------------------
   Footer (matching master site)
----------------------------------------------- */
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding-bottom: 50px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}


/* -----------------------------------------------
   Scroll Top Button
----------------------------------------------- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}


/* -----------------------------------------------
   Demo Hero Section
----------------------------------------------- */
.demo-hero {
  position: relative;
  width: 100%;
  min-height: 950px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding-top: 24px;
  margin-top: calc(-2rem + 20px);
  margin-bottom: 10px;
}

.demo-hero .hero-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 1500px;
  height: auto;
  opacity: 0.55;
  pointer-events: none;
}

.demo-hero .hero-content {
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 60px;
  width: 100%;
}

.demo-hero .hero-content-inner {
  margin-left: 9%;
  max-width: 1140px;
}

/* Transition divider rectangle */
    .section-divider {
      width: 100%;
      height: 48px;
      background-color: #edeae5;
    }

    /* Next section */
    .next-section {
      padding: 60px 0;
    }

    .next-section h2 {
      font-family: var(--heading-font);
      font-size: 30px;
      font-weight: 700;
      color: var(--heading-color);
      margin-bottom: 20px;
    }

    .next-section p {
      font-size: 16px;
      line-height: 1.75;
      color: var(--default-color);
      max-width: 800px;
    }

/* -----------------------------------------------
   Next Section — Eyebrow kicker & accordion label
----------------------------------------------- */
.next-section .section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9a9488;
  margin-bottom: 14px;
}

.next-section .section-eyebrow .section-eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--accent-color);
}

.next-section .accordion-label {
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9a9488;
  margin: 36px 0 16px;
  max-width: none;
}

/* -----------------------------------------------
   Next Section — Accordion (FAQ-style)
----------------------------------------------- */
.next-section .faq-container {
  max-width: 800px;
  margin-top: 24px;
}

.next-section .faq-container .faq-item {
  position: relative;
  padding: 4px 16px;
  margin-bottom: 10px;
  border: 1px solid #d9d4cc;
  border-radius: 6px;
  background-color: #faf7f3;
  overflow: hidden;
  cursor: pointer;
}

.next-section .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.next-section .faq-container .faq-item h3 {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.4;
  margin: 0 36px 0 0;
  color: #111111;
  transition: color 0.25s;
  display: flex;
  align-items: center;
}

.next-section .faq-container .faq-item:hover h3 {
  color: #e03a3c;
}

.next-section .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out, opacity 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.next-section .faq-container .faq-item .faq-content-inner {
  overflow: hidden;
  min-height: 0;
}

.next-section .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  font-size: 15px;
  color: #444444;
  line-height: 1.7;
}

.next-section .faq-container .faq-item .faq-content p + p {
  margin-top: 8px;
}

.next-section .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 6px;
  right: 16px;
  font-size: 16px;
  line-height: 0;
  color: #888;
  transition: transform 0.3s, color 0.25s;
}

.next-section .faq-container .faq-item:hover .faq-toggle {
  color: #e03a3c;
}

.next-section .faq-container .faq-active {
  background-color: #fff3e4;
  border-color: #e8d4b8;
}

.next-section .faq-container .faq-active h3,
.next-section .faq-container .faq-active:hover h3 {
  color: #111111;
}

.next-section .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.next-section .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: #e03a3c;
}


/* -----------------------------------------------
   Invoice Promo Card
   (image with an offset overlay card, linking to /invoices)
----------------------------------------------- */
.invoice-promo-section {
  padding: 60px 0 90px;
}

.invoice-promo-container {
  width: 75%;
  max-width: 1400px;
  margin-left: 6%;
  margin-right: auto;
}

.invoice-promo {
  position: relative;
}

.invoice-promo-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  overflow: hidden;
  background-color: #111111;
}

.invoice-promo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.invoice-promo:hover .invoice-promo-image {
  transform: scale(1.06);
}

/* Play button + caption, centered over the promo image */
.invoice-promo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.invoice-promo-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 77px;
  height: 77px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  font-size: 31px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.invoice-promo-play:hover .invoice-promo-play-icon,
.invoice-promo-play:focus-visible .invoice-promo-play-icon {
  background-color: var(--accent-color, #0057ff);
  transform: scale(1.08);
}

.invoice-promo-play:focus-visible {
  outline: none;
}

.invoice-promo-play:focus-visible .invoice-promo-play-icon {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.invoice-promo-play-caption {
  font-family: var(--nav-font);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #1b1b1b;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
}

.promo_overlay_highlight {
  color: var(--contrast-color);
}
/* ----------------------------------------------------------------
   Video modal (lazy-injected via public/js/video-modal.js)
   ---------------------------------------------------------------- */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.video-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.28s ease;
}

.video-modal-overlay.is-open .video-modal-dialog {
  transform: scale(1) translateY(0);
}

.video-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 10;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.22s ease;
  backdrop-filter: blur(4px);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.video-modal-close:focus-visible {
  outline: 3px solid #7eb3ff;
  outline-offset: 2px;
}

.video-modal-player {
  width: 100%;
}

.video-modal-player iframe,
.video-modal-player video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

@media (prefers-reduced-motion: reduce) {
  .video-modal-overlay,
  .video-modal-dialog,
  .invoice-promo-play-icon {
    transition: none !important;
  }
}

.invoice-promo-card {
  z-index: 2;
  background-color: #1b1b1b;
  padding: clamp(16px, 2.6vw, 36px) clamp(20px, 3.2vw, 42px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  color: inherit;
}

.invoice-promo-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nav-font);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #cfcfcf;
  margin-bottom: clamp(8px, 1.4vw, 18px);
}

.invoice-promo-eyebrow .eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background-color: var(--accent-color);
}

.invoice-promo-title {
  font-family: var(--heading-font);
  font-size: clamp(17px, 1.7vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-top: auto;
  margin-bottom: clamp(8px, 1.4vw, 18px);
}

.invoice-promo-text {
  font-size: clamp(13.3px, 0.95vw, 15px);
  line-height: 1.6;
  color: #cfcfcf;
  margin: 0;
}

/* Desktop: card overlaps the image, offset to the right past its edge.
   top/bottom are percentages of the image height (not a fixed px gap),
   so the margin stays a constant proportion — matching the reference
   examples — instead of swallowing more of a shorter image as it scales. */
@media (min-width: 1150px) {
  .invoice-promo-card {
    position: absolute;
    top: 12%;
    bottom: 12%;
    right: -8%;
    width: 42%;
    max-width: 480px;
    justify-content: center;
  }

  /* Base rule uses margin-top: auto to push title+text to the bottom of
     the card; on desktop we want them vertically centered instead, so
     cancel it out (matching the tablet breakpoint's behavior). */
  .invoice-promo-title {
    margin-top: 0;
  }

  /* Take the eyebrow out of the flex flow so it stays pinned to the card's
     top-left (aligned with the card padding) while title+text center
     independently in the remaining space. */
  .invoice-promo-eyebrow {
    position: absolute;
    top: clamp(16px, 2.6vw, 36px);
    left: clamp(20px, 3.2vw, 42px);
    margin-bottom: 0;
  }
}

/* Tablet: card grows relatively larger against the narrower image */
@media (min-width: 768px) and (max-width: 1149.98px) {
  .invoice-promo-image-wrapper {
    aspect-ratio: 4 / 3;
  }

  .invoice-promo-card {
    position: absolute;
    top: 12%;
    bottom: 12%;
    right: -10%;
    width: 62%;
    justify-content: center;
  }

  /* Base rule uses margin-top: auto to push title+text to the bottom of
     the card; at this breakpoint we want the content vertically centered
     instead, so cancel it out. */
  .invoice-promo-title {
    margin-top: 0;
  }

  /* Take the eyebrow out of the flex flow so it stays pinned to the
     card's top edge while title+text center independently in the
     remaining flex children above. */
  .invoice-promo-eyebrow {
    position: absolute;
    top: 14px;
    left: 14px;
    margin-bottom: 0;
  }

  /* Card's left edge sits at ~48% of the image width here, so shift the
     play button into the clear left portion to avoid overlapping it. */
  .invoice-promo-play {
    left: 24%;
  }
}

/* Mobile: stack vertically, card sits below the full-width image */
@media (max-width: 767.98px) {
  .invoice-promo-container {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .invoice-promo-image-wrapper {
    aspect-ratio: 4 / 3;
  }

  .invoice-promo-card {
    position: static;
    width: 100%;
    padding: 28px 26px;
  }

  .invoice-promo-title {
    font-size: 22px;
  }
}

/* -----------------------------------------------
   Invoice Promo Card - Left variant (mirrored)
   Reuses all base .invoice-promo-* rules above;
   these overrides just flip the offset side.
----------------------------------------------- */
.invoice-promo-container--left {
  margin-left: auto;
  margin-right: 6%;
}

@media (min-width: 1150px) {
  .invoice-promo-card--left {
    right: auto;
    left: -8%;
  }
}

@media (min-width: 768px) and (max-width: 1149.98px) {
  .invoice-promo-card--left {
    right: auto;
    left: -10%;
  }

  .invoice-promo-play--left {
    left: auto;
    right: 24%;
  }
}

/* Mobile: card is in the DOM before the image (keeps tab order matching
   the desktop left-to-right visual layout), but stacked layout should
   still show image on top / card below, matching the original component. */
@media (max-width: 767.98px) {
  .invoice-promo--left {
    display: flex;
    flex-direction: column;
  }

  .invoice-promo--left .invoice-promo-image-wrapper {
    order: 1;
  }

  .invoice-promo--left .invoice-promo-card--left {
    order: 2;
  }
}


@media (max-width: 1199px) {
  .demo-hero .hero-content-inner {
    margin-left: auto;
    margin-right: auto;
  }
}

.demo-hero .content-box {
  background-color: rgba(255, 255, 255, 0.93);
  /*padding: 36px 44px;*/
  /*max-width: 100%; */
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.demo-hero .content-box.title-box {
  margin-top: var(--content-top, 115px);
  margin-bottom: 28px;
  width: max-content;
  max-width: 100%;
  border-left: none;

  padding: 2em 4em;
}

.demo-hero .content-box h1 {
  font-family: var(--heading-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
  line-height: 1.3;
}

.demo-hero .content-box p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--default-color);
  margin: 0;
}

/* Hero responsive (tablet/small-laptop bridge) */
@media (max-width: 1764px) {
  .demo-hero {
    /* 53.26vw = 85vw × 0.6266 = natural image height at 85% viewport width.
       Adding 10px gives the exact section height needed for a 10px gap. */
    min-height: calc(53.26vw + 10px);
  }
}

/* Hero responsive */
@media (max-width: 991px) {
  .demo-hero {
    /* 62.66vw = 100vw × 0.6266 = natural image height at 100% viewport width.
       Adding 10px gives section height = image height + 10px gap. */
    --content-top: 20px;
    min-height: calc(62.66vw + 10px);
    padding: 20px 0;
  }

  .demo-hero .hero-image {
    width: 100%;
    height: auto;
    opacity: 0.3;
  }

  .demo-hero .hero-content {
    padding-bottom: 20px;
  }

  .demo-hero .content-box {
    max-width: 100%;
    padding: 28px 32px;
  }

  .demo-hero .content-box h1 {
    font-size: 28px;
  }
}

@media (max-width: 775px) {
  .demo-hero .content-box.title-box {
    width: max-content;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;

    
  }

  .demo-hero .content-box.title-box h1 {
    text-align: center;
  }
}

@media (max-width: 575px) {
  .demo-hero .content-box {
    padding: 24px;
  }

  .demo-hero .content-box h1 {
    font-size: 24px;
  }

  .demo-hero .content-box p {
    font-size: 15px;
  }
}


/* -----------------------------------------------
   Existing page support
   (login, dashboard, invoice pages)
----------------------------------------------- */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.login-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  border: 1px solid #eee;
}

.login-card h2 {
  margin-bottom: 0.5rem;
  color: #000;
}

.form-instruction {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #000;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
  background-color: #000;
  color: #fff;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-secondary {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
}

.btn-secondary:hover {
  background-color: #000;
  color: #fff;
}

.dashboard-wrapper {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.welcome-title {
  font-size: 2rem;
  color: #000;
  margin-bottom: 2rem;
}

.selection-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.selection-card h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.automation-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-link {
  display: block;
  text-decoration: none;
  color: #000;
  background-color: #f9f9f9;
  padding: 1.25rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.option-link h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.option-link:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-link:active {
  transform: translateY(0);
  box-shadow: none;
}

/* -----------------------------------------------
   Error Page (404 / general error)
   Isolated "err-" prefixed classes — does not touch
   any existing layout element.
----------------------------------------------- */
.err-wrapper {
  display: flex;
  justify-content: center;
  padding: 2.5em 20px 4em;
}

.err-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1300 / 1920;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
}

.err-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.err-message-box {
  position: absolute;
  top: 1.5em;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 1.5em 1.25em;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.err-title {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 0.4em;
  line-height: 1.2;
}

.err-subtitle {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 500;
  color: #555555;
  margin: 0 0 0.6em;
  line-height: 1.4;
}

.err-detail {
  font-family: var(--default-font);
  font-size: 0.85rem;
  font-weight: 400;
  color: #888888;
  margin: 0;
  word-break: break-word;
}

/* Tablet */
@media (max-width: 767px) {
  .err-card {
    max-width: 380px;
  }

  .err-title {
    font-size: 2.1rem;
  }

  .err-subtitle {
    font-size: 1rem;
  }
}

/* Phone */
@media (max-width: 575px) {
  .err-wrapper {
    padding: 1.8em 16px 3em;
  }

  .err-card {
    max-width: 300px;
  }

  .err-message-box {
    top: 1.2em;
    padding: 1.1em 1em;
  }

  .err-title {
    font-size: 1.8rem;
  }

  .err-subtitle {
    font-size: 0.9rem;
  }

  .err-detail {
    font-size: 0.8rem;
  }
}




/* -----------------------------------------------
   Invoice Demo 1 — Page Layout
----------------------------------------------- */

/* Hero banner image, full width, cropped height */
.invdemo-hero {
  width: 100%;
  overflow: hidden;
  max-height: var(--invdemo-hero-height, 240px);
}

.invdemo-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center calc(50% - 195px);
}

/* Content card — overlaps the hero image */
.invdemo-content {
  position: relative;
  z-index: 2;
  max-width: 910px;
  margin: -20px auto 80px;
  padding: 52px 60px 60px;
  background-color: #ece7df;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
}

.invdemo-content h1 {
  font-family: var(--heading-font);
  font-size: 34px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 12px;
  line-height: 1.3;
}

.invdemo-content .invdemo-intro {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 500;
  color: #555;
  margin-bottom: 36px;
  line-height: 1.5;
}

.invdemo-content h2 {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 36px 0 16px;
}

.invdemo-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--default-color);
  margin-bottom: 14px;
}

.invdemo-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.invdemo-content ul li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--default-color);
}

.invdemo-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 2px;
  background-color: var(--accent-color);
}

/* CTA section inside the card */
.invdemo-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.invdemo-cta h2 {
  margin-top: 0;
}

/* "Try it" big button */
.invdemo-start-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--nav-font);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 48px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  text-align: center;
}

.invdemo-start-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

/* Login card embedded in the invoice demo page */
.invdemo-content .login-card {
  max-width: 100%;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.invdemo-content .signup-hint {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
}

.invdemo-content .signup-hint a {
  font-weight: 600;
}

/* "Why do you want it?" section */
.invdemo-why {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================================
   Responsive breakpoints — dialed in per screen-width band.
   Every card overlap stays negative, so the crème card always
   meets the hero (no gradient gap) and the hero→title space
   equals the card's top padding at all widths.
   ============================================================ */
@media (max-width: 2600px) {
  .invdemo-hero {
    max-height: var(--invdemo-hero-height, 390px);
  }

  .invdemo-hero img {
    object-position: center calc(50% - 375px);
  }

  .invdemo-content {
    max-width: 910px;
    margin-top: -85px;
  }
}


/* 1316–1675px */
@media (max-width: 1675px) {
  .invdemo-hero {
    max-height: var(--invdemo-hero-height, 390px);
  }

  .invdemo-hero img {
    object-position: center calc(50% - 310px);
  }

  .invdemo-content {
    max-width: 910px;
    margin-top: -85px;
  }
}

/* 992–1315px */
@media (max-width: 1315px) {
  .invdemo-hero {
    max-height: var(--invdemo-hero-height, 380px);
  }

  .invdemo-hero img {
    object-position: center calc(50% - 180px);
  }

  .invdemo-content {
    max-width: 910px;
    margin-top: -70px;
  }
}

/* 768–991px — Tablet */
@media (max-width: 991px) {
  .invdemo-hero {
    max-height: var(--invdemo-hero-height, 440px);
  }

  .invdemo-hero img {
    object-position: center calc(50% - 150px);
  }

  .invdemo-content {
    max-width: 92%;
    margin-top: -120px;
    padding: 40px 40px 48px;
  }

  .invdemo-content h1 {
    font-size: 30px;
  }
}

/* 576–767px — Large phone / small tablet */
@media (max-width: 767px) {
  .invdemo-hero {
    max-height: var(--invdemo-hero-height, 480px);
  }

  .invdemo-hero img {
    object-position: center calc(50% - 125px);
  }

  .invdemo-content {
    max-width: 95%;
    margin-top: -170px;
    padding: 36px 32px 44px;
  }

  .invdemo-content h1 {
    font-size: 26px;
  }

  .invdemo-content .invdemo-intro {
    font-size: 17px;
  }

  .invdemo-content h2 {
    font-size: 21px;
  }
}

/* ≤575px — Phone */
@media (max-width: 575px) {
  .invdemo-hero {
    max-height: var(--invdemo-hero-height, 340px);
  }

  .invdemo-hero img {
    object-position: center calc(50% - 45px);
  }

  .invdemo-content {
    max-width: 90%;
    margin: -80px auto 50px;
    padding: 32px 24px 40px;
  }

  .invdemo-content h1 {
    font-size: 24px;
  }

  .invdemo-content .invdemo-intro {
    font-size: 16px;
  }

  .invdemo-content h2 {
    font-size: 20px;
  }

  .invdemo-content ul li {
    font-size: 15px;
    padding-left: 20px;
  }

  .invdemo-start-btn {
    width: 100%;
    padding: 14px 24px;
  }
}

/* ============================================================
   doinvoices — upload card (no hero; always 20 px below header)
   ============================================================ */
.doinvoices-content {
  max-width: 910px;
  margin: 20px auto 80px;
  padding: 52px 60px 60px;
  background-color: #ece7df;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
}

.doinvoices-content h1 {
  font-family: var(--heading-font);
  font-size: 34px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 12px;
  line-height: 1.3;
}

.doinvoices-content .invdemo-intro {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 500;
  color: #555;
  margin-bottom: 36px;
  line-height: 1.5;
}

.doinvoices-content h2 {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 36px 0 16px;
}

.doinvoices-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--default-color);
  margin-bottom: 14px;
}

.doinvoices-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.doinvoices-content ul li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--default-color);
}

.doinvoices-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 2px;
  background-color: var(--accent-color);
}

.doinvoices-content .form-actions {
  justify-content: center;
}

.doinvoices-content .form-actions .btn {
  flex: none;
  width: 50%;
  padding-top: 0.825rem;
  padding-bottom: 0.825rem;
}

@media (max-width: 991px) {
  .doinvoices-content {
    max-width: 92%;
    padding: 40px 40px 48px;
  }
  .doinvoices-content h1 { font-size: 30px; }
}

@media (max-width: 767px) {
  .doinvoices-content {
    max-width: 95%;
    padding: 36px 32px 44px;
  }
  .doinvoices-content h1 { font-size: 26px; }
  .doinvoices-content .invdemo-intro { font-size: 17px; }
  .doinvoices-content h2 { font-size: 21px; }
}

@media (max-width: 575px) {
  .doinvoices-content {
    max-width: 90%;
    margin: 20px auto 50px;
    padding: 32px 24px 40px;
  }
  .doinvoices-content h1 { font-size: 24px; }
  .doinvoices-content .invdemo-intro { font-size: 16px; }
  .doinvoices-content h2 { font-size: 20px; }
}

/* ============================================================
   Flash message — styled to match the page card aesthetic
   ============================================================ */
.flash-message {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ece7df;
  color: var(--heading-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 6px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
  padding: 14px 32px 14px 20px;
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 9999;
  animation: flash-slide 4s ease forwards;
}

@keyframes flash-slide {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  12%  { opacity: 1; transform: translateX(-50%) translateY(0);     }
  75%  { opacity: 1;                                                 }
  100% { opacity: 0;                                                 }
}

/* ============================================================
   doinvoices form fields — scoped replacement for .form-group
   Input width capped at 55% on screens >= 991px
   ============================================================ */
.doinvoices-form-group {
  margin-bottom: 1.5rem;
}

.doinvoices-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.doinvoices-form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.doinvoices-form-group input:focus {
  outline: none;
  border-color: #000;
}

@media (min-width: 767px) {
  .doinvoices-form-group input {
    width: 55%;
  }
}

/* ============================================================
   invoicehandled — confirmation card
   ============================================================ */
.invoicehandled-content {
  max-width: 910px;
  margin: 20px auto 80px;
  padding: 52px 60px 60px;
  background-color: #ece7df;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);
}

.invoicehandled-content h1 {
  font-family: var(--heading-font);
  font-size: 34px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 12px;
  line-height: 1.3;
}

.invoicehandled-intro {
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 500;
  color: #555;
  margin-bottom: 36px;
  line-height: 1.5;
}

.invoicehandled-content h2 {
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 36px 0 16px;
}

.invoicehandled-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--default-color);
  margin-bottom: 14px;
}

.invoicehandled-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.invoicehandled-content ul li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--default-color);
}

.invoicehandled-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 2px;
  background-color: var(--accent-color);
}

/* Action buttons */
.invoicehandled-actions {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.invoicehandled-actions-center {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.invoicehandled-actions-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.invoicehandled-btn {
  display: inline-block;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  white-space: nowrap;
}

.invoicehandled-btn--red {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.invoicehandled-btn--red:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

.invoicehandled-btn--black {
  background-color: var(--heading-color);
  color: var(--contrast-color);
}

.invoicehandled-btn--black:hover {
  background-color: #333;
  color: var(--contrast-color);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .invoicehandled-content {
    max-width: 92%;
    padding: 40px 40px 48px;
  }
  .invoicehandled-content h1 { font-size: 30px; }
}

@media (max-width: 767px) {
  .invoicehandled-content {
    max-width: 95%;
    padding: 36px 32px 44px;
  }
  .invoicehandled-content h1 { font-size: 26px; }
  .invoicehandled-intro { font-size: 17px; }
  .invoicehandled-content h2 { font-size: 21px; }
  .invoicehandled-actions-center { margin-bottom: 20px; }
  .invoicehandled-actions-left { align-items: center; }
}

@media (max-width: 575px) {
  .invoicehandled-content {
    max-width: 90%;
    margin: 20px auto 50px;
    padding: 32px 24px 40px;
  }
  .invoicehandled-content h1 { font-size: 24px; }
  .invoicehandled-intro { font-size: 16px; }
  .invoicehandled-content h2 { font-size: 20px; }
}
