:host(:not([data-theme="dark"])),
:root:not([data-theme="dark"]),
[data-theme="light"] {
  --pico-primary: var(--pico-color-zinc-950);
  --pico-secondary: var(--pico-color-zinc-600);
  --pico-primary-background: var(--pico-color-slate-350);
  --pico-secondary-background: var(--pico-color-slate-350);
  --pico-color: var(--pico-primary);
  --pico-font-family: "Montserrat", sans-serif;
  --pico-font-weight: 400;
  --pico-typography-spacing-vertical: 1.5rem;
  --pico-font-size: 1rem;
  --icon-color: var(--pico-color-zinc-100);
  --col-max-width: 750px;
}

/* Remove default margin */
body {
  margin: 0;
}

/* Skip-to-content link (visible only on focus for keyboard users) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 300;
  padding: 0.5rem 1rem;
  background: #004d32;
  color: white;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

html {
  scroll-behavior: smooth;
}

/* Visible focus outlines for keyboard navigation (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid #004d32;
  outline-offset: 2px;
}

header :focus-visible,
.cookie-banner :focus-visible {
  outline-color: white;
}

/* Ensure sections within main also respect max-width */
main section {
  max-width: var(--col-max-width);
  margin: auto;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--pico-color-zinc-150, #e8e8e8);
}

main section:last-child,
main section:has(+ #signup),
#signup {
  border-bottom: none;
}

main {
  margin: auto;
  border-top: 1px solid var(--pico-color-zinc-200);
}

section {
  justify-content: start;
  max-width: 95%;
  margin: auto;
  margin-bottom: 1rem;
}

hgroup h1,
hgroup h2,
hgroup p,
section h1,
section h3,
section p,
section ul {
  max-width: 100%;
}

section p,
section ul,
section ol {
  max-width: 90%;
}

h1,
h2,
h3,
h4 {
  --pico-font-family: "Roboto Flex", sans-serif;
  --pico-font-weight: 500;

  margin: auto;
  margin-bottom: 1rem;
  color: var(--pico-color-zinc-800);
}

header {
  background-color: #004d32;
  background-image:
    radial-gradient(at 20% 80%, rgb(40 160 120 / 60%) 0%, transparent 50%),
    radial-gradient(at 80% 20%, rgb(0 140 90 / 50%) 0%, transparent 50%),
    radial-gradient(at 60% 60%, rgb(0 100 80 / 40%) 0%, transparent 60%),
    radial-gradient(at 10% 20%, rgb(20 120 100 / 50%) 0%, transparent 50%);
  padding: 1rem;
}

.header-content {
  max-width: var(--col-max-width);
  margin: 0 auto;
}

.site-title {
  font-family: "Roboto Flex", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  color: white;
  margin: 0;
  text-decoration: none;
}

h3:not(:first-of-type) {
  margin-top: 2rem;
}

.detail {
  color: white;
  margin-top: -0.25rem;
  margin-bottom: 1rem;
}

section p {
  margin-left: 0.5rem;
}

section ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

section ul li {
  list-style: none;
  position: relative;
  margin-left: 0.25rem;
  padding-left: 1.5rem;
}

section ul li::before {
  content: "\e5cc";
  font-family: "Material Symbols Outlined";
  font-size: 1.25rem;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #004d32;
  position: absolute;
  left: 0;
  top: 0;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  font-size: 24px !important;
  text-align: center;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon_lg {
  font-size: 6rem !important;
  color: var(--icon-color);
}

.icon_md {
  font-size: 1.25rem !important;
  color: var(--icon-color);
}

/* ── Signup Card ── */
#signup {
  background: rgb(40 160 120 / 6%);
  border: 1px solid rgb(40 160 120 / 18%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgb(0 77 50 / 8%);
  margin-bottom: 2.5rem;
}

/* ── Signup Options Grid ── */
.signup-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* When only one signup option is rendered (e.g. free tier disabled, or A/B variant B), center it */
.signup-options:has(> :only-child) {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-inline: auto;
}

.signup-option {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pico-color-zinc-200);
  border-radius: 12px;
  padding: 1.5rem;
}

.signup-option h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
}

.signup-option h3 .material-symbols-outlined {
  color: #004d32;
}

.signup-instant {
  border-color: rgb(40 160 120 / 30%);
  background: rgb(40 160 120 / 4%);
}

.signup-btn {
  margin-top: auto;
  display: inline-block;
  background: #004d32;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s;
}

.signup-btn:hover {
  background: #003d28;
  color: white;
}

.signup-option small {
  display: block;
  margin-top: 0.5rem;
}

/* When signup partials are inside pricing cards, remove redundant card styling */
.pricing-card .signup-option {
  border: none;
  padding: 0;
  margin-top: 1rem;
  background: none;
}

/* ── Social Proof ── */
.social-proof {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #004d32;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.75rem 0 1rem;
  padding-left: 1.5rem;
}

.social-proof .material-symbols-outlined {
  font-size: 20px !important;
  color: #004d32;
}

/* ── Activity Feed ── */
.activity-feed {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

.activity-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pico-color-zinc-500);
  white-space: nowrap;
  flex-shrink: 0;
}

.activity-slider {
  position: relative;
  overflow: hidden;
  min-height: 4.5rem;
  flex: 1;
}

.activity-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid #004d32;
  border-radius: 8px;
  background: rgb(40 160 120 / 4%);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.8s ease,
    opacity 0.8s ease,
    visibility 0.8s;
}

.activity-slide.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.activity-slide.slide-out {
  transform: translateX(-100%);
  opacity: 0;
}

.activity-icon {
  font-size: 24px !important;
  color: #004d32;
  flex-shrink: 0;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.activity-message {
  color: var(--pico-color-zinc-800);
  font-size: 1rem;
  font-weight: 500;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--pico-color-zinc-500);
}

/* ── FAQ Accordions ── */
.faq-item {
  border-bottom: 1px solid var(--pico-color-zinc-200);
  margin-top: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--pico-secondary);
  padding: 1rem 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "\e5cf";
  font-family: "Material Symbols Outlined";
  font-size: 1.5rem;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: none;
  color: #004d32;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 1rem;
}

.faq-answer p {
  margin: 0;
}

/* Footer */
footer {
  max-width: var(--col-max-width);
  margin: auto;
  border-top: 1px solid var(--pico-color-zinc-200);
}

footer p:first-of-type {
  margin-top: 0.25rem;
}

footer p {
  text-align: center;
  color: var(--pico-secondary);
  font-size: 0.75rem;
  font-weight: 400;
}

/* ── Nav Bar ── */
.nav-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

/* ── Hamburger Button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  position: relative;
  z-index: 200;
}

.hamburger.active span {
  background: var(--pico-color-zinc-950);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Desktop Navigation ── */
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.8;
}

/* ── Nav Overlay (mobile) ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
}

.nav-overlay.active {
  display: block;
}

/* Responsive max-width breakpoints following industry best practices */
@media (min-width: 1920px) {
  /* Extra large screens: cap at 1280px for optimal readability */
  .container,
  hgroup,
  main section {
    max-width: 950px;
  }
}

@media (max-width: 1279px) and (min-width: 1024px) {
  /* Large screens: 950px */
  .container,
  hgroup,
  main section {
    max-width: 950px;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  /* Medium screens (tablets): 700px */
  .container,
  hgroup,
  main section {
    max-width: 700px;
  }
}

@media (max-width: 767px) {
  /* Small screens (mobile): Full width with padding */
  :root {
    --pico-font-size: 1rem;
  }

  .signup-options {
    grid-template-columns: 1fr;
  }

  .activity-feed {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .activity-slider {
    width: 100%;
  }

  .activity-slide {
    border-left: none;
  }

  .subtitle-break {
    display: block;
  }

  .container,
  hgroup,
  footer,
  main section,
  .header-content {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .icon_lg {
    font-size: 1.75rem !important;
  }

  h1,
  .site-title {
    font-size: 1.75rem;
  }

  h2,
  h3,
  h4,
  p,
  ul,
  div,
  hr {
    max-width: 100%;
  }

  header span.it {
    display: block;
    margin-bottom: 0.25rem;
    justify-content: start;
    text-align: left;
  }

  footer p {
    font-size: 0.75rem;
    text-align: start;
    justify-content: start;
  }

  .nav-bar {
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 65vw;
    height: 100dvh;
    background: white;
    border-left: 1px solid var(--pico-color-zinc-200);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgb(0 0 0 / 6%);
    z-index: 150;
  }

  nav.open {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    gap: 0.9rem;
    text-align: right;
  }

  nav a {
    color: var(--pico-color-zinc-950);
    font-size: 1.15rem;
    white-space: nowrap;
  }
}

/* ── Pricing Cards ── */
.pricing-card {
  border: 1px solid var(--pico-color-zinc-200);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-card.featured {
  border-color: rgb(40 160 120 / 30%);
  background: rgb(40 160 120 / 4%);
  box-shadow: 0 4px 24px rgb(0 77 50 / 8%);
}

/* ── Exam Centers Page ── */

/* Country accordion (replicates .faq-item pattern) */
.country-accordion {
  border-bottom: 1px solid var(--pico-color-zinc-200);
  margin-top: 0;
}

.country-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--pico-secondary);
  padding: 1rem 0;
}

.country-accordion summary::-webkit-details-marker {
  display: none;
}

.country-accordion summary::after {
  content: "\e5cf";
  font-family: "Material Symbols Outlined";
  font-size: 1.5rem;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: none;
  color: #004d32;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.country-accordion[open] summary::after {
  transform: rotate(180deg);
}

.country-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.center-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--pico-color-zinc-600);
  margin-right: auto;
  margin-left: 0.75rem;
}

/* Center cards grid (single column within 750px max-width) */
.centers-grid {
  padding: 0 0 1rem;
}

.center-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--pico-color-zinc-800);
}

.center-details {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 0 0.75rem;
}

.center-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding-left: 0 !important;
  font-size: 0.9rem;
  color: var(--pico-color-zinc-600);
}

.center-details li::before {
  content: none !important;
}

.center-details li .material-symbols-outlined {
  font-size: 18px !important;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
  color: #004d32;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.center-details a {
  color: var(--pico-color-zinc-700);
  text-decoration: underline;
  text-decoration-color: var(--pico-color-zinc-300);
  text-underline-offset: 2px;
}

.center-details a:hover {
  color: #004d32;
  text-decoration-color: #004d32;
}

/* Search input */
.center-search-section {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.center-search {
  position: relative;
  max-width: 100%;
}

.center-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px !important;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
  color: var(--pico-color-zinc-400);
  pointer-events: none;
}

.center-search input[type="search"] {
  padding-left: 2.5rem;
  padding-inline-start: 2.5rem;
  background-image: none;
  margin-bottom: 0;
}

.no-results {
  text-align: center;
  color: var(--pico-color-zinc-500);
  padding: 2rem 0;
  font-style: italic;
}

/* ── Timeline Callout ── */
.timeline-callout {
  border-left: 3px solid #004d32;
  background: rgb(40 160 120 / 4%);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.timeline-callout-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--pico-color-zinc-800);
  margin-bottom: 0.5rem;
}

.timeline-callout-header .material-symbols-outlined {
  color: #004d32;
}

.timeline-callout p {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--pico-color-zinc-600);
}

.timeline-callout p:last-child {
  margin-bottom: 0;
}

/* Homepage teaser */
.centers-teaser {
  border-left: 3px solid #004d32;
  border-bottom: none !important;
  padding-left: 1.25rem !important;
}

.centers-teaser h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
}

.centers-teaser h3 .material-symbols-outlined {
  color: #004d32;
}

/* Mid-page and bottom CTA */
.centers-cta {
  text-align: center;
  border-bottom: none !important;
}

.centers-cta .pricing-card {
  text-align: center;
}

/* Inline alert nudge inside each country accordion */
.center-alert-nudge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgb(40 160 120 / 6%);
  border: 1px solid rgb(40 160 120 / 15%);
  font-size: 0.9rem;
  color: var(--pico-color-zinc-700);
}

.center-alert-nudge .material-symbols-outlined {
  font-size: 20px !important;
  color: #004d32;
  flex-shrink: 0;
}

.nudge-btn {
  margin-left: auto;
  white-space: nowrap;
  color: #004d32;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}

.nudge-btn:hover {
  text-decoration: underline;
}

/* Region heading icon alignment */
.region-section > h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.region-section > h2 .material-symbols-outlined {
  color: #004d32;
}

/* Thank You Page Styles */
.success-container {
  padding: 1.5rem 0;
}

.success-icon {
  font-size: 5rem;
  margin-bottom: 2rem;
}

@media (prefers-reduced-motion: no-preference) {
  .success-icon {
    animation: bounce 1s ease-in-out;
  }

  @keyframes bounce {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-20px);
    }
  }
}

.next-steps {
  background-color: var(--pico-card-background-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  text-align: left;
}

/* ── Demo Video ── */
.demo-video-section {
  border-bottom: none !important;
  padding-bottom: 0.5rem !important;
}

.demo-video-card {
  background: rgb(40 160 120 / 6%);
  border: 1px solid rgb(40 160 120 / 18%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.demo-video-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.demo-video-label .material-symbols-outlined {
  color: #004d32;
}

.demo-video-layout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.demo-video-trigger {
  position: relative;
  display: block;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
  flex: 0 0 37.5%;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.demo-video-trigger:hover {
  box-shadow: 0 6px 24px rgb(0 0 0 / 20%);
}

.demo-video-trigger img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.demo-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgb(0 77 50 / 85%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.demo-video-trigger:hover .demo-play-btn {
  background: rgb(0 77 50 / 95%);
}

.demo-play-btn .material-symbols-outlined {
  color: white;
  font-size: 28px !important;
}

/* Cue descriptions beside the video thumbnail */
.demo-video-cues {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-cue {
  display: none;
}

@media (min-width: 768px) {
  .demo-cue {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid #004d32;
    border-radius: 0 8px 8px 0;
    color: var(--pico-color-zinc-700);
    font-size: 1.1rem;
    font-weight: 500;
  }

  .demo-cue .material-symbols-outlined {
    color: #004d32;
    font-size: 24px !important;
    flex-shrink: 0;
  }
}

/* ── Video Lightbox Modal ── */
#video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-modal[hidden] {
  display: none;
}

html:has(#video-modal:not([hidden])) {
  overflow: hidden;
  height: 100%;
}

html:has(#video-modal:not([hidden])) body {
  overflow: hidden;
  height: 100%;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 75%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-container {
  position: relative;
  max-height: 85vh;
  aspect-ratio: 540 / 1120;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
}

.video-container video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.video-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgb(0 0 0 / 40%);
  color: white;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-close:hover {
  background: rgb(0 0 0 / 60%);
}

/* Cue overlay text inside the modal (desktop only) */
.video-cues-overlay {
  display: none;
}

@media (min-width: 768px) {
  .video-cues-overlay {
    position: absolute;
    bottom: 4rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 5;
  }

  .video-cue {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    background: rgb(0 0 0 / 55%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }

  .video-cue.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* End-of-video CTA overlay */
.video-end-cta {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgb(0 20 12 / 88%);
  color: white;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}

.video-end-cta.active {
  opacity: 1;
  visibility: visible;
}

.video-end-cta h3 {
  color: white;
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
}

.video-end-cta ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.video-end-cta li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: white;
}

.video-end-cta li::before {
  content: none;
}

.video-end-cta .material-symbols-outlined {
  font-size: 26px !important;
  color: rgb(80 220 160);
  flex-shrink: 0;
}

.video-cta-btn {
  display: inline-block;
  background: #00a86b;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.video-cta-btn:hover {
  background: #009960;
  color: white;
}

@media (max-width: 767px) {
  .demo-video-label {
    justify-content: center;
  }

  .demo-video-layout {
    flex-direction: column;
    align-items: center;
  }

  .demo-video-trigger {
    flex: none;
    width: 75%;
  }

  .demo-video-card .timeline-callout {
    margin-top: 0.5rem;
    margin-bottom: 0;
  }

  .video-container {
    max-height: 90vh;
    border-radius: 0;
  }
}

/* ── Checkout Modal ── */
#checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#checkout-modal[hidden] {
  display: none;
}

html:has(#checkout-modal:not([hidden])) {
  overflow: hidden;
  height: 100%;
}

html:has(#checkout-modal:not([hidden])) body {
  overflow: hidden;
  height: 100%;
}

.checkout-overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.checkout-container {
  position: relative;
  width: min(90vw, 700px);
  height: 85vh;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 32px rgb(0 0 0 / 20%);
}

.checkout-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgb(0 0 0 / 8%);
  color: var(--pico-color-zinc-700);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.checkout-close:hover {
  background: rgb(0 0 0 / 15%);
}

.checkout-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-spinner .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--pico-color-zinc-200);
  border-top-color: #004d32;
  border-radius: 50%;
  animation: checkout-spin 0.8s linear infinite;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.checkout-iframe.loaded {
  opacity: 1;
}

@media (max-width: 767px) {
  .checkout-container {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 12px rgb(0 0 0 / 10%);
  z-index: 250;
  padding: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner {
    animation: cookie-slide-up 0.3s ease-out;
  }

  @keyframes cookie-slide-up {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }
}

.cookie-banner p {
  max-width: var(--col-max-width);
  margin: 0 auto 0.75rem;
  font-size: 0.875rem;
  color: var(--pico-color-zinc-700);
  text-align: center;
}

.cookie-banner-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  max-width: var(--col-max-width);
  margin: 0 auto;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.cookie-btn-accept {
  background: #004d32;
  color: white;
}

.cookie-btn-accept:hover {
  background: #003d28;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--pico-color-zinc-600);
}

.cookie-btn-decline:hover {
  color: var(--pico-color-zinc-800);
  background: var(--pico-color-zinc-100);
}

@media (max-width: 480px) {
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn {
    text-align: center;
  }
}

.next-steps ul {
  margin: 1rem 0;
}

.next-steps li {
  margin: 0.75rem 0;
}

/* ── Hero CTA ── */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
}

@media (max-width: 767px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

.hero-cta-primary {
  width: auto;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-cta-primary:focus-visible {
  outline: 2px solid #004d32;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .hero-cta-primary {
    width: 100%;
  }
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  color: #004d32;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.hero-cta-secondary::after {
  content: " \2193";
  margin-left: 0.25rem;
}

.hero-cta-secondary:hover,
.hero-cta-secondary:focus-visible {
  border-bottom-color: #004d32;
  color: #003d28;
}

.hero-cta-secondary:focus-visible {
  outline: 2px solid #004d32;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .hero-cta-secondary {
    justify-content: center;
    padding: 0.75rem 0.25rem;
  }
}
