@font-face {
  font-family: 'Lexend';
  src: url('/assets/Lexend-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #9e70ff;
  --accent-strong: #7c4dff;
  --accent-soft: #f4efff;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: #f7f7f7;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-tint: rgba(158, 112, 255, 0.08);
  --text-strong: #1f1936;
  --text: #2b2544;
  --text-muted: #5f6072;
  --border: rgba(31, 25, 54, 0.1);
  --shadow-soft: none;
  --shadow-raised: none;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 24px;
  --nav-height: 72px;
  --container-max: 1080px;
  --layout-max: 1120px;
  --layout-gutter: clamp(1.5rem, 6vw, 4rem);
  --pricing-control-height: 56px;
  --section-scroll-offset: calc(var(--nav-height) + 1.5rem);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f7f7f7;
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 8vw, 7.25rem);
}

main>section {
  scroll-margin-top: var(--section-scroll-offset);
}

main>section {
  background: var(--surface);
}

main>section:nth-of-type(even) {
  background: var(--surface-muted);
}

/* ----------------------------- Scroll reveal -------------------------- */
[data-animate] {
  --reveal-translate-x: 0px;
  --reveal-translate-y: 24px;
  --reveal-delay: 0s;
  opacity: 0;
  transform: translate3d(var(--reveal-translate-x), var(--reveal-translate-y), 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay);
  will-change: opacity, transform;
}

[data-animate][data-animate="fade-in"] {
  --reveal-translate-y: 12px;
}

[data-animate][data-animate="fade-down"] {
  --reveal-translate-y: -24px;
}

[data-animate][data-animate="fade-left"] {
  --reveal-translate-x: -24px;
  --reveal-translate-y: 0;
}

[data-animate][data-animate="fade-right"] {
  --reveal-translate-x: 24px;
  --reveal-translate-y: 0;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .faq-section .faq-answer__content {
    transform: none !important;
    transition: none !important;
  }

  .how-track {
    transition: none !important;
  }

  .belt-track {
    animation: none !important;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: transparent;
}

.content {
  width: 100%;
  max-width: calc(var(--layout-max) + 220px);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.8rem) var(--layout-gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  line-height: 1.1;
  font-weight: 500;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
}

h4 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: clamp(1.6rem, 3.4vw, 2.6rem);
}

h2::before {
  content: '';
  display: block;
  width: clamp(36px, 6vw, 52px);
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
}

p {
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  margin: 0 0 0.35rem;
}

p+p {
  margin-top: 0.8rem;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  align-items: flex-start;
  max-width: 72ch;
}

.section-heading h2 {
  margin: 0;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.6;
}

.body-copy {
  max-width: 70ch;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-strong);
  background: rgba(158, 112, 255, 0.12);
}

.eyebrow.success {
  color: #0f5132;
  background: #e7f6ec;
}

.solution-duo .eyebrow {
  align-self: flex-start;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  padding: 0.75rem 1rem;
  line-height: 1;
  font-size: 0.9rem;
  border-radius: 999px;
}

.section-contrast {
  background: transparent;
}

.section-muted {
  background: transparent;
}

.compliance-section {
  border-block: none;
}

.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-tint {
  background: linear-gradient(135deg, var(--glass-tint), rgba(255, 255, 255, 0.82));
}

.text-button {
  border: none;
  background: none;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.3rem 0.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-button:hover {
  text-decoration: underline;
}

/* ----------------------------- Navigation ----------------------------- */
nav#navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--layout-gutter);
  background: #ffffff;
}

.logo {
  width: 150px;
  height: 42px;
  background: url('/assets/UBIBOARD-LOGO-RGB_ICON-INV.webp') center/contain no-repeat;
  flex-shrink: 0;
}

nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  margin: 0;
  padding: 0;
}

nav .nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

nav .nav-links a:hover,
nav .nav-links a:focus-visible {
  color: var(--text-strong);
}

nav .nav-links a:hover::after,
nav .nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

button.login {
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-strong);
  transition: background 0.2s ease, color 0.2s ease;
}

button.login:hover {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 30, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9000;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ----------------------------- Hero ---------------------------------- */
.hero-section {
  background: #ffffff;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-shell {
  width: 100%;
  max-width: calc(var(--layout-max) + 220px);
  margin: 0 auto;
  padding: clamp(4.8rem, 9vw, 7.2rem) var(--layout-gutter) clamp(3.4rem, 7vw, 5.8rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: clamp(3.2rem, 6.5vw, 5.6rem);
  align-items: center;
}

.hero-copy {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.hero-section h1 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  margin: 0;
}

.hero-section p {
  font-size: clamp(1rem, 1.2vw, 1.06rem);
  color: var(--text-muted);
  max-width: 38rem;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-frame {
  width: min(100%, 780px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-frame img {
  width: 100%;
  height: auto;
  max-height: clamp(460px, 60vw, 720px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-actions .cta,
.hero-actions .login {
  min-height: 52px;
}

.hero-actions .cta {
  padding: 1rem 2.6rem;
}

.hero-actions .login {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 11, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  z-index: 12000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.demo-modal {
  position: relative;
  width: min(1100px, 96vw);
  background: transparent;
  padding-top: 50px;
  /* Space for close button */
}

.demo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(8, 7, 22, 0.28);
  background: #000;
}

.demo-close {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

button.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

button.cta:hover {
  background: var(--accent-strong);
  opacity: 0.95;
}

/* ----------------------------- Solution & journey ---------------------- */
.solution-combo .content {
  display: grid;
  gap: clamp(2.6rem, 5vw, 3.6rem);
}

.solution-duo {
  --duo-gap: clamp(2rem, 4vw, 3rem);
  --duo-padding: clamp(1.4rem, 3.2vw, 2rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: var(--duo-gap);
  row-gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(31, 25, 54, 0.12);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: 0 14px 36px -24px rgba(31, 25, 54, 0.22), 0 0 34px 10px rgba(158, 112, 255, 0.18);
  padding: var(--duo-padding);
}

.duo-pane {
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  align-items: flex-start;
  align-content: flex-start;
  background: transparent;
  border: none;
  box-shadow: none;
}

.duo-divider {
  position: absolute;
  top: var(--duo-padding);
  bottom: var(--duo-padding);
  left: calc((100% - var(--duo-gap)) / 3 + var(--duo-gap) / 2);
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(180deg, rgba(31, 25, 54, 0.08), rgba(31, 25, 54, 0.22), rgba(31, 25, 54, 0.08));
  border-radius: 999px;
  pointer-events: none;
}

.problem-card,
.solution-card {
  background: transparent;
  border: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  height: 100%;
}

.problem-card h3 {
  margin: 0 0 0.75rem;
}

.problem-card p {
  margin: 0;
}

.problem-card p+p {
  margin-top: 0.7rem;
}

.solution-card h3 {
  margin: 0 0 0.75rem;
}

.solution-card p {
  margin: 0;
}

.solution-card p+p {
  margin-top: 0.7rem;
}

.solution-card {
  background: transparent;
}

@media (max-width: 900px) {
  .solution-duo {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: clamp(1rem, 2vw, 1.4rem);
  }

  .duo-divider {
    display: none;
  }

  .duo-pane {
    padding: clamp(1rem, 3vw, 1.4rem);
  }
}

.solution-combo p,
.how-section p,
.features-grid p,
.compliance-section p,
.testimonials-section p {
  max-width: 68ch;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pill-list li {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 25, 54, 0.08);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.problem-card p,
.solution-card p,
.solution-tile p {
  max-width: 64ch;
}

.solution-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(1.6rem, 3vw, 2.2rem);
}

.solution-tile {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tile-header {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.tile-number {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.12rem;
  box-shadow: 0 10px 24px -20px rgba(124, 77, 255, 0.55);
  flex-shrink: 0;
}

.tile-copy p {
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.tile-figure {
  margin: 0;
  border-radius: var(--radius);
  border: 1px dashed rgba(31, 25, 54, 0.12);
  background: rgba(255, 255, 255, 0.78);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  overflow: hidden;
}

.tile-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------- How it works --------------------------- */
.how-section .content {
  display: grid;
  gap: clamp(2rem, 4.4vw, 3rem);
}

.carousel-actions {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0.4rem;
  justify-self: flex-start;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-strong);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.carousel-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.how-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: var(--glass);
  box-shadow: var(--shadow-raised);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.how-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.how-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.8rem, 4.2vw, 2.2rem);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  border: 1px solid rgba(158, 112, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.step-body h3 {
  margin: 0 0 0.35rem;
}

.step-body p {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.carousel-dots {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
  padding: clamp(0.9rem, 3vw, 1.2rem);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(31, 25, 54, 0.25);
  background: rgba(31, 25, 54, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.carousel-skip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.swipe-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ----------------------------- Feature list --------------------------- */
.features-grid .content {
  display: grid;
  gap: clamp(2rem, 4vw, 2.8rem);
}

.features-list .about-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  gap: 0.9rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: flex-start;
  text-align: left;
}

.features-list .about-card h3 {
  margin: 0;
}

.icon-placeholder {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ----------------------------- Compliance belt ------------------------ */
.compliance-section .content {
  display: grid;
  gap: clamp(1.6rem, 3.5vw, 2.2rem);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 3.2rem) clamp(2rem, 4vw, 3rem);
  /* Ensure breakout elements aren't clipped */
  overflow: visible;
}

.compliance-belt {
  --belt-duration: 20s;
  position: relative;
  overflow: hidden;
  /* Edge-to-edge breakout */
  width: 100vw;
  position: relative;
  left: 50%;
  right: auto;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  gap: 0;
  padding: 0;
}

.belt-track {
  display: flex;
  gap: clamp(2.8rem, 5vw, 4.4rem);
  align-items: center;
  padding: 1.1rem 2.8rem;
  min-width: max-content;
  animation: belt-scroll var(--belt-duration) linear infinite;
  will-change: transform;
  flex: 0 0 auto;
}

.belt-item {
  min-width: 170px;
  padding: 0.45rem 0.75rem;
  border-radius: 14px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.belt-item img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(20, 16, 40, 0.28));
}

@keyframes belt-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ----------------------------- Testimonials --------------------------- */
.testimonials-section .content {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.2rem);
}

.testimonial-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  overflow-x: auto;
  padding: 0.35rem;
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.4rem);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scroll-snap-align: start;
}

.testimonial-card p {
  margin: 0 0 0.35rem;
}

.testimonial-card p:last-child {
  margin-bottom: 0;
}

/* ----------------------------- Feature matrix ------------------------- */
.product-section .content {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.product-section .product-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.98rem;
  table-layout: fixed;
}

.product-section th,
.product-section td {
  padding: 1.05rem 1.6rem;
  text-align: left;
  vertical-align: middle;
  font-weight: 400;
  line-height: 1.45;
}

.product-section th {
  background: var(--accent-soft);
  font-weight: 500;
  color: var(--text-strong);
}

.product-section th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.product-section th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.product-section th:last-child,
.product-section td:last-child {
  width: 200px;
  text-align: center;
}

.product-section tbody tr {
  border-top: 1px solid var(--border);
}

.product-section tbody tr:first-child {
  border-top: none;
}

.product-section tbody tr:nth-child(even) {
  background: rgba(158, 112, 255, 0.05);
}

.product-section tbody tr:last-child {
  border-bottom: 1px solid var(--border);
}

.product-section tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg);
}

.product-section tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg);
}

.product-section .available {
  color: var(--accent-strong);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.product-section .small-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
}

.check-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* ----------------------------- Pricing -------------------------------- */
.pricing-section {
  background: var(--surface-muted);
}

.pricing-section .content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3vw, 2.2rem);
}

.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.2rem);
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.pricing-controls .pricing-form {
  flex: 1 1 320px;
}

.pricing-controls .billing-toggle {
  flex: 0 0 auto;
}

.pricing-form {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-form label {
  font-weight: 500;
  color: var(--text-strong);
  font-size: 1.05rem;
}

.custom-select {
  position: relative;
  z-index: 10;
}

.select-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--pricing-control-height);
  padding: 0 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 500;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.select-display:hover {
  border-color: var(--accent-strong);
}

.custom-select.open .select-display {
  border-color: var(--accent-strong);
}

.select-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  inset: calc(100% + 6px) 0 auto 0;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden auto;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  z-index: 1000;
}

.custom-select.open .select-options {
  max-height: 260px;
  opacity: 1;
  pointer-events: auto;
}

.select-option {
  padding: 0.85rem 1.15rem;
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.select-option:hover {
  background: var(--accent-soft);
}

.select-option.selected {
  background: rgba(158, 112, 255, 0.14);
  color: var(--accent-strong);
}

.billing-toggle {
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  min-width: 260px;
  min-height: var(--pricing-control-height);
}

.billing-toggle button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.45rem;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.98rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.billing-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.pricing-output-surface {
  position: relative;
  z-index: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  --surface-padding: clamp(1.8rem, 4vw, 2.6rem);
  padding: var(--surface-padding);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3rem);
}

.currency-switch {
  --switch-corner-radius: 0.85rem;
  position: absolute;
  top: clamp(0.7rem, 2vw, 1.2rem);
  left: clamp(0.7rem, 2vw, 1.2rem);
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(30, 32, 150, 0.06);
  overflow: hidden;
  z-index: 1;
}

.currency-option {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem;
  min-width: 46px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.currency-option:hover {
  background: rgba(158, 112, 255, 0.08);
}

.currency-option.active {
  background: var(--accent);
  color: #fff;
}

.currency-option:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(113, 92, 235, 0.4);
}

.pricing-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-column--left {
  align-items: center;
  text-align: center;
}

.pricing-column--right {
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: center;
}

.pricing-column--left .amount {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 500;
  color: var(--text-strong);
}

.frequency {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.frequency-term {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-strong);
}

#billed-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.pricing-divider {
  align-self: stretch;
  width: 2px;
  display: block;
  background: rgba(158, 112, 255, 0.45);
  border-radius: 999px;
  margin: clamp(0.6rem, 2vw, 1.4rem) 0;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.pricing-primary,
.contact-sales {
  display: inline-flex;
  padding: 0.85rem 2.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 1.02rem;
  border: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.pricing-primary:hover,
.contact-sales:hover {
  background: var(--accent-strong);
  opacity: 0.95;
}

.contact-sales {
  display: none;
}

@media (max-width: 720px) {
  .pricing-output-surface {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .currency-switch {
    position: static;
    order: -1;
    margin-bottom: 0.4rem;
  }

  .pricing-divider {
    width: 64px;
    height: 2px;
    align-self: center;
    margin: 0;
  }

  .pricing-column {
    width: 100%;
    align-items: center;
  }
}


/* ----------------------------- FAQ ------------------------------------ */
.faq-section .content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.faq-list {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.faq-section .faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.6s ease, transform 0.6s ease;
}

.faq-section .faq-item.active {
  border-color: rgba(113, 92, 235, 0.4);
  background: var(--surface-elevated);
}

.faq-section .faq-question {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.75rem, 2.5vw, 1rem);
  padding: clamp(1.1rem, 2.5vw, 1.4rem) clamp(1.2rem, 4vw, 1.75rem);
  padding-right: calc(clamp(1.2rem, 4vw, 1.75rem) + 2.4rem);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-strong);
  background: transparent;
  position: relative;
}

.faq-section .faq-question::after {
  content: '';
  position: absolute;
  top: 50%;
  right: clamp(1.2rem, 4vw, 1.75rem);
  width: 1.125rem;
  height: 1.125rem;
  background: url('/assets/chevron-down-solid.webp') center/contain no-repeat;
  transition: transform 0.35s ease;
  transform: translateY(-50%);
  pointer-events: none;
}

.faq-section .faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-section .faq-answer {
  height: 0;
  overflow: hidden;
  padding: 0 clamp(1.4rem, 4vw, 2rem);
  border-top: 1px solid transparent;
  transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-section .faq-answer__content {
  padding: clamp(1.2rem, 3vw, 1.5rem) 0 clamp(1rem, 3vw, 1.5rem);
  color: var(--text);
  font-size: 0.98rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-section .faq-answer.is-content-visible .faq-answer__content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.faq-section .faq-item.active .faq-answer {
  border-top-color: var(--border);
}

/* ----------------------------- Footer ---------------------------------- */
footer {
  background: var(--accent);
  color: #ffffff;
  margin-top: 0;
}

footer .footer-top {
  width: 100%;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 4rem) var(--layout-gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: flex-start;
  justify-content: space-between;
}

footer .logo {
  background-image: url('/assets/UBIBOARD-LOGO-RGB_APP_ICON.webp');
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  flex: 1;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  padding: 1.5rem var(--layout-gutter) 2.4rem;
  position: relative;
  width: 100%;
  margin: 0;
}

.footer-bottom::after {
  content: '';
  flex: 0 0 180px;
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 400;
  flex-wrap: wrap;
}

.footer-copy {
  flex: 1;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

#langSelect {
  min-width: 140px;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.55em auto;
  padding-right: 2rem;
}

#langSelect:focus,
#langSelect:focus-visible,
#langSelect:active {
  outline: none;
  box-shadow: none;
}


/* ----------------------------- About ---------------------------------- */
.about-page main {
  margin-top: clamp(5.2rem, 10vw, 6.8rem);
  padding-bottom: clamp(3rem, 6vw, 4.8rem);
}

.about-section .section-intro h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.1rem);
  font-weight: 500;
  color: var(--text-strong);
}

.about-hero {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 25, 54, 0.08);
  overflow: hidden;
}

.about-hero .hero-copy {
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.about-hero .hero-copy p {
  margin: 0;
  max-width: 36rem;
}

.about-hero .hero-frame {
  background: var(--surface-muted);
}

.about-section .content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 25, 54, 0.08);
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.8rem);
}

.about-page .about-section {
  padding-inline: clamp(1.2rem, 4vw, 2rem);
}

.about-section .section-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  max-width: 48rem;
}

.about-section .section-intro p {
  margin: 0;
  color: var(--text-muted);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.6rem, 4vw, 2.4rem);
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--surface-muted);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-radius: var(--radius);
  border: 1px solid rgba(31, 25, 54, 0.08);
}

.about-card h3 {
  margin: 0;
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.4rem, 3.5vw, 2.2rem);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric span {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--accent-strong);
}

.metric p {
  margin: 0;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.8rem, 4vw, 2.6rem);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-block h3 {
  margin: 0;
}

.contact-block p,
.contact-block address {
  margin: 0;
  color: var(--text-muted);
  font-style: normal;
}

.contact-block a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.details-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.details-list div {
  display: grid;
  gap: 0.35rem;
}

.details-list dt {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.details-list dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text-strong);
}

@media (max-width: 720px) {
  .about-page .contact-grid {
    justify-items: center;
  }

  .about-page .contact-block {
    width: min(520px, 100%);
  }
}

.about-cta .content {
  text-align: center;
  align-items: center;
}

.about-cta .content p {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--text-muted);
}

.about-cta .cta {
  align-self: center;
}
/* ----------------------------- Error page ------------------------------ */
.error-page main {
  margin-top: clamp(5.2rem, 10vw, 6.8rem);
  gap: clamp(3rem, 8vw, 4.6rem);
  padding-bottom: clamp(3rem, 8vw, 5.2rem);
}

.error-hero {
  width: 100%;
  padding-top: clamp(3.8rem, 9vw, 5.4rem);
}

.error-hero .content {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.2rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  padding: clamp(3rem, 7vw, 4.4rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 25, 54, 0.08);
  overflow: hidden;
}

.error-hero .content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(158, 112, 255, 0.12), transparent 48%);
  pointer-events: none;
}

.error-copy,
.error-figure {
  position: relative;
  z-index: 1;
}

.error-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.8vw, 1.8rem);
}

.error-label {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  background: rgba(158, 112, 255, 0.14);
  color: var(--accent-strong);
}

.error-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.error-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.06rem);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
  box-shadow: 0 12px 32px -18px rgba(61, 42, 115, 0.5);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 25, 54, 0.12);
  color: var(--text-strong);
}

.button-secondary:hover {
  border-color: rgba(31, 25, 54, 0.24);
  color: var(--text-strong);
}

.error-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  padding: clamp(2.4rem, 6vw, 3.2rem);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(158, 112, 255, 0.22);
  box-shadow: 0 24px 48px -30px rgba(61, 42, 115, 0.4);
  text-align: center;
}

.error-code {
  font-size: clamp(4.8rem, 14vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--accent-strong);
  margin: 0;
  line-height: 1;
}

.error-figure p {
  margin: 0;
  max-width: 22rem;
  color: var(--text-muted);
}

.error-destinations .content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 25, 54, 0.08);
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.4rem);
}

.error-subtext {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
}

.error-links {
  display: grid;
  gap: clamp(1rem, 3vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.error-link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.5rem, 3.2vw, 1.9rem);
  border-radius: var(--radius);
  border: 1px solid rgba(31, 25, 54, 0.08);
  background: rgba(244, 239, 255, 0.4);
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.error-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 25, 54, 0.18);
  background: rgba(244, 239, 255, 0.55);
  box-shadow: 0 18px 42px -36px rgba(31, 25, 54, 0.55);
}

.error-link-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-strong);
}

.error-link-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ----------------------------- Responsive ------------------------------ */
@media (min-width: 1040px) {
  .hero-section {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 1039px) {
  nav#navbar {
    gap: 24px;
  }

  nav .nav-links {
    gap: clamp(1.2rem, 3vw, 2.2rem);
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  /* Removed empty rulesets avoiding lint errors */

  .how-card {
    grid-template-columns: auto 1fr;
    align-items: flex-start;
  }

  .step-number {
    width: 52px;
    height: 52px;
  }

  .error-hero .content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .error-page .error-copy {
    align-items: center;
    text-align: center;
  }

  .error-page .error-actions {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 66px;
    --section-scroll-offset: calc(var(--nav-height) + 1.75rem);
  }

  nav#navbar {
    position: fixed;
    left: 0;
    right: 0;
    padding: 0 var(--layout-gutter);
  }

  main {
    margin-top: var(--nav-height);
    gap: clamp(2.2rem, 8vw, 3.4rem);
  }

  .about-page main {
    margin-top: var(--nav-height);
  }

  nav .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 1.8rem var(--layout-gutter) 2.6rem;
    gap: 1.35rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  nav .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-controls {
    gap: 12px;
  }

  button.login {
    padding: 0.75rem 1.4rem;
    font-size: 0.94rem;
  }

  .menu-toggle {
    display: flex;
  }

  .content,
  .hero-section {
    width: 100%;
  }

  .hero-frame {
    width: 100%;
  }

  .pricing-controls {
    align-items: stretch;
  }

  .product-section .product-table {
    display: block;
    overflow-x: auto;
  }

  .error-page main {
    margin-top: calc(var(--nav-height) + clamp(1.2rem, 6vw, 2rem));
  }

  .error-hero {
    padding-top: clamp(2.6rem, 9vw, 4.2rem);
  }

  .error-link-card {
    padding: clamp(1.35rem, 5vw, 1.7rem);
  }
}

@media (max-width: 900px) {
  :root {
    --layout-gutter: clamp(1rem, 5vw, 1.5rem);
    --radius-lg: 18px;
    --radius: 16px;
    --section-scroll-offset: calc(var(--nav-height) + 1.9rem);
  }

  main {
    gap: clamp(1.5rem, 7vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }

  nav#navbar {
    padding: 0 var(--layout-gutter);
  }

  nav .nav-links {
    padding: 1.5rem var(--layout-gutter) 2.2rem;
    gap: clamp(1rem, 4.5vw, 1.2rem);
  }

  .content {
    padding: clamp(1.5rem, 7vw, 2.1rem) var(--layout-gutter);
  }

  .hero-section {
    width: 100%;
    padding: clamp(2.4rem, 12vw, 3.6rem) var(--layout-gutter) clamp(2rem, 8vw, 2.6rem);
    gap: clamp(1.6rem, 9vw, 2.4rem);
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
    gap: clamp(1rem, 6vw, 1.6rem);
  }

  button.cta {
    align-self: flex-start;
  }

  .hero-section h1 {
    font-size: clamp(2.15rem, 8vw, 2.6rem);
  }

  .hero-section p {
    font-size: clamp(0.98rem, 4.4vw, 1.08rem);
  }

  .hero-media {
    width: 100%;
  }

  .hero-frame {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius);
  }

  .solution-tiles {
    grid-template-columns: 1fr;
  }

  .how-section .content {
    gap: clamp(1.4rem, 7vw, 2rem);
  }

  .how-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .carousel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .pricing-output-surface {
    padding: clamp(1.4rem, 8vw, 1.9rem);
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.1rem, 6vw, 1.6rem);
    border-radius: var(--radius);
  }

  .pricing-section .content {
    gap: clamp(1.6rem, 8vw, 2.2rem);
  }

  .pricing-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    row-gap: 0;
  }

  .pricing-controls .billing-toggle {
    width: 100%;
  }

  .custom-select {
    width: 100%;
  }

  .pricing-form {
    gap: 0;
  }

  .pricing-controls .pricing-form {
    flex: 0 0 auto;
  }

  .pricing-controls .billing-toggle {
    margin-top: 0.75rem;
  }

  .product-section .product-table {
    font-size: 0.9rem;
  }

  .product-section th,
  .product-section td {
    padding: 0.75rem 1rem;
  }

  .product-section th:last-child,
  .product-section td:last-child {
    width: auto;
  }

  .product-section .product-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .product-section .product-table,
  .product-section .product-table tbody,
  .product-section .product-table tr {
    display: block;
    width: 100%;
  }

  .product-section .product-table {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .product-section .product-table tbody {
    display: grid;
    gap: clamp(0.8rem, 6vw, 1.1rem);
  }

  .product-section .product-table tr {
    padding: 0;
    border: 1px solid rgba(31, 25, 54, 0.08);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 16px 36px -34px rgba(31, 25, 54, 0.55);
  }

  .product-section .product-table tr:nth-child(even) {
    background: var(--surface);
  }

  .product-section .product-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    border: none;
    border-top: 1px solid rgba(31, 25, 54, 0.05);
    padding: 0.85rem 1.1rem;
  }

  .product-section .product-table td:first-child {
    border-top: none;
  }

  .product-section .product-table td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .product-section .product-table td:last-child {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .product-section .product-table .available {
    gap: 0.45rem;
  }

  .pricing-column {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .pricing-output-surface .pricing-primary,
  .pricing-output-surface .contact-sales {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .pricing-divider {
    display: none;
  }

  .pricing-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .faq-list {
    gap: clamp(0.75rem, 4vw, 1rem);
  }

  .faq-section .faq-question {
    font-size: 0.96rem;
    gap: clamp(0.65rem, 4vw, 0.85rem);
    padding: clamp(0.95rem, 5vw, 1.2rem) clamp(1rem, 5vw, 1.35rem);
    padding-right: calc(clamp(1rem, 5vw, 1.35rem) + 2.2rem);
  }

  .faq-section .faq-question::after {
    right: clamp(1rem, 5vw, 1.35rem);
  }

  .faq-section .faq-answer {
    padding: 0 clamp(1rem, 5vw, 1.35rem);
  }

  .faq-section .faq-answer__content {
    padding: clamp(0.95rem, 5vw, 1.2rem) 0 clamp(0.85rem, 5vw, 1.15rem);
  }

  footer .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.8rem, 8vw, 2.4rem);
    padding: clamp(2.2rem, 9vw, 3rem) var(--layout-gutter);
  }

  footer {
    margin-top: 0;
  }

  .footer-nav {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    padding: clamp(1.2rem, 6vw, 1.8rem) var(--layout-gutter) clamp(1.8rem, 8vw, 2.2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 5vw, 1.5rem);
    position: static;
  }

  .footer-lang {
    width: 100%;
    align-self: flex-start;
  }

  .footer-bottom::after {
    display: none;
  }

  .footer-copy {
    text-align: center;
    padding: 0;
    font-size: 0.88rem;
    width: 100%;
    grid-column: auto;
  }
}

/* ----------------------------- Page Overrides ------------------------- */
body.about-page main>section,
body.error-page main>section,
body.legal-page main>section {
  background: transparent;
}

.legal-card {
  background: transparent;
  width: 100%;
}



/* Ensure cards don't touch edges on About/Error pages where .content receives the background */
.error-hero,
.error-destinations {
  padding-inline: var(--layout-gutter);
}

.about-page main,
.legal-page main {
  margin-top: calc(var(--nav-height) + clamp(1rem, 3vw, 2rem));
}

@media (max-width: 900px) {
  .about-page main {
    margin-top: calc(var(--nav-height) + clamp(0.5rem, 3vw, 1.5rem));
  }

  .error-page main {
    gap: clamp(1.8rem, 9vw, 2.6rem);
  }

  .error-hero .content {
    padding: clamp(2.1rem, 10vw, 3rem) var(--layout-gutter);
  }

  .error-page .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-page .button {
    width: 100%;
  }

  .error-figure {
    padding: clamp(1.8rem, 9vw, 2.4rem);
  }

  .error-code {
    font-size: clamp(3.9rem, 18vw, 5rem);
  }

  .error-links {
    grid-template-columns: 1fr;
  }

  .error-link-card {
    padding: clamp(1.2rem, 7vw, 1.6rem);
  }
}

@media (max-width: 720px) {
  .legal-page .legal-section .content {
    padding: clamp(1.2rem, 6vw, 1.6rem) clamp(0.9rem, 4vw, 1.2rem);
  }

  .legal-page .legal-card {
    padding: 0;
  }
}


@media (max-width: 900px) {

  /* Navigation */
  .menu-toggle {
    display: flex;
    z-index: 10001;
  }

  nav .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(300px, 85vw);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    gap: 24px;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
  }

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

  nav .nav-links a {
    font-size: 1.25rem;
    display: block;
    width: 100%;
    padding: 0.6rem 0;
    font-weight: 500;
    color: var(--text-strong);
    border-bottom: 1px solid rgba(31, 25, 54, 0.06);
  }

  nav .nav-links a:last-child {
    border-bottom: none;
  }

  nav .nav-links a::after {
    display: none;
  }

  /* Hero Section */
  .hero-shell {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
    gap: 2rem;
  }

  .hero-section p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  /* Reset order so text is first, then media */
  .hero-media {
    order: 2;
    margin-top: 1.5rem;
    margin-bottom: 0;
    width: 100%;
  }

  .hero-copy {
    order: 1;
  }

  /* Solution Section */
  .solution-tiles {
    grid-template-columns: 1fr;
  }

  .tile-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.8rem;
  }

  /* General Content */
  .content {
    padding: clamp(2rem, 4vw, 3rem) var(--layout-gutter);
  }

  .section-heading {
    text-align: center;
    align-items: center;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
  }

  .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  h2::before {
    margin-left: auto;
    margin-right: auto;
  }

  /* Feature List */
  .features-grid .content {
    grid-template-columns: 1fr;
  }

  .features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }

  .features-list .about-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem;
  }

  /* Stats/Belt */
  .belt-track {
    gap: 2rem;
  }

  /* Pricing */
  .pricing-output-surface {
    flex-direction: column;
    padding: 1.5rem;
  }

  .pricing-column {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .pricing-divider {
    width: 100%;
    height: 1px;
    margin: 1.5rem 0;
  }

  .currency-switch {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 1rem;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  :root {
    --layout-gutter: 1.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .logo {
    width: 120px;
  }

  .nav-controls {
    gap: 10px;
  }

  button.login {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-height: 42px;
  }
}
