/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer (OTF)/Switzer-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  background-color: #000000;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px max(48px, calc((100% - 1280px) / 2)) 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.header__logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language switch */
.lang-switch {
  position: relative;
}

.lang-switch__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.lang-switch__flag {
  font-size: 20px;
  line-height: 1;
}

.lang-switch__chevron {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.lang-switch.is-open .lang-switch__chevron {
  transform: rotate(180deg);
}

/* Language dropdown menu */
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(18, 18, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-menu__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-menu__item.is-active {
  background: rgba(138, 43, 226, 0.18);
}

.lang-menu__flag {
  font-size: 20px;
  line-height: 1;
}

.lang-menu__name {
  flex: 1;
}

.lang-menu__check {
  flex-shrink: 0;
  color: #A35BF2;
  opacity: 0;
}

.lang-menu__item.is-active .lang-menu__check {
  opacity: 1;
}

/* Try for free button */
.btn-try {
  padding: 10px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(90deg, #8A2BE2 0%, #C724B1 100%) padding-box,
              linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.15)) border-box;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 48px 80px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: #FFFFFF;
}

.hero__eyebrow-icon {
  flex-shrink: 0;
  color: #FFFFFF;
}

.headline {
  margin: 0;
  font-family: 'Switzer', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  color: #FFFFFF;
}

.hero__headline {
  font-size: 56px;
  line-height: 1.05;
}

.hero__subheadline {
  margin: 24px auto 0;
  max-width: 720px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  opacity: 0.7;
}

.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.hero__badge img {
  height: 52px;
  width: auto;
  display: block;
}

.bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: calc(50% + 200px);
  left: 50%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(250px);
}

.hero__glow--1 {
  background-color: #7207EA;
  transform: translate(-180%, -50%);
}

.hero__glow--2 {
  background-color: #8D02F1;
  transform: translate(-50%, -50%);
}

.hero__glow--3 {
  background-color: #C301EE;
  transform: translate(80%, -50%);
}

/* Smaller accent glow behind the Features and FAQ headlines */
.section-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background-color: #2F6BFF;
  filter: blur(180px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

.hero__image {
  width: 552px;
  max-width: 50%;
  height: auto;
  display: block;
  margin: 64px auto 0;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   Problem
   ========================================================================== */
.problem {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px;
}

.problem__card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
}

.problem__image {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.3) translateX(10%);
  transform-origin: center;
}

.problem__content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 50%;
  padding: clamp(32px, 5%, 72px);
}

.problem__eyebrow {
  align-self: flex-start;
}

.problem__text {
  margin: 24px 0 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.5;
  color: #FFFFFF;
  opacity: 0.7;
}

.features {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 80px;
  text-align: center;
}

.features__headline {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}

.feature-card {
  height: 500px;
  padding: clamp(20px, 2vw, 32px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.feature-card__title {
  margin: 0;
  font-family: 'Switzer', sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: #FFFFFF;
}

.feature-card__text {
  margin: 16px 0 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  opacity: 0.7;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 80px;
  text-align: center;
}

.faq__eyebrow {
  margin-bottom: 24px;
}

.faq__headline {
  line-height: 1.2;
}

.faq__list {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.faq__item.is-open {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  border: none;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Switzer', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.faq__chevron {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.25s ease;
}

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

/* Collapsible answer — animate the grid row from 0fr to 1fr so the panel
   slides open without needing a fixed height. */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer > p {
  overflow: hidden;
  margin: 0;
  padding: 0 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #FFFFFF;
  opacity: 0.7;
}

.faq__item.is-open .faq__answer > p {
  padding-bottom: 24px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  z-index: 1;
  margin-top: 80px;
}

.cta__image {
  display: block;
  width: 100%;
  height: 700px;
  object-fit: cover;
  opacity: 0.75;
}

.cta__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__headline {
  width: 50vw;
  font-size: 56px;
  line-height: 1.05;
}

.cta__subheadline {
  margin: 24px auto 0;
  max-width: 560px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 160px 48px 48px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

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

.footer__socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.footer__social {
  display: inline-flex;
  color: #FFFFFF;
  transition: opacity 0.2s ease;
}

.footer__social:hover {
  opacity: 0.7;
}

.footer__social svg {
  display: block;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__heading {
  margin: 0 0 24px;
  font-family: 'Switzer', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: #FFFFFF;
}

.footer__link {
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #FFFFFF;
  opacity: 0.7;
  text-decoration: none;
}

.footer__link:last-child {
  margin-bottom: 0;
}

.footer__link:hover {
  opacity: 1;
}

.footer__badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__badge img {
  height: 52px;
  width: auto;
  display: block;
}

.footer__copyright {
  margin: 80px 0 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  opacity: 0.7;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero__headline,
  .cta__headline {
    font-size: clamp(36px, 6vw, 56px);
  }

  .hero__image {
    max-width: 70%;
  }

  .features__headline {
    width: 70%;
  }

  .feature-card {
    height: auto;
    min-height: 420px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Ignore hard line breaks in headlines so copy wraps naturally,
     replacing each <br> with a space so words stay separated. */
  .headline br,
  .feature-card__title br {
    content: " ";
  }

  /* Header — keep the logo and language switch on one row. The "Try for
     free" CTA is hidden on mobile to save horizontal space. */
  .header {
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  }

  .header__actions {
    gap: 8px;
  }

  .header__logo img {
    height: 24px;
  }

  .btn-try {
    display: none;
  }

  .lang-switch__toggle {
    padding: 8px 14px;
    font-size: 14px;
  }

  .lang-switch__flag {
    font-size: 16px;
  }

  /* Hero */
  .hero {
    padding: 120px 20px 60px;
  }

  .hero__headline {
    font-size: clamp(42px, 10vw, 52px);
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .problem .headline,
  .features__headline {
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.25;
  }

  .hero__subheadline {
    font-size: 15px;
  }

  .hero__badges {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
  }

  .hero__badge img {
    height: 56px;
  }

  /* Full-bleed hero image — break out of the hero's 20px side padding to span
     the full viewport width. */
  .hero__image {
    width: 100vw;
    max-width: none;
    margin: 48px calc(-50vw + 50%) 0;
  }

  /* Problem — full-bleed, zoomed image shifted right (as on desktop), with the
     copy overlaid on the dark left side. */
  .problem {
    padding: 48px 0;
  }

  .problem__card {
    border-radius: 0;
  }

  .problem__image {
    height: 480px;
    object-fit: cover;
    transform: none;
  }

  .problem__content {
    inset: 0;
    max-width: 100%;
    justify-content: flex-start;
    padding: 48px 24px;
    text-align: left;
  }

  /* Features */
  .features {
    padding: 24px 20px 60px;
  }

  .features__headline {
    width: 100%;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card__title {
    font-size: 26px;
  }

  /* FAQ */
  .faq {
    padding: 24px 20px 60px;
  }

  .faq__list {
    margin-top: 36px;
  }

  .faq__question {
    padding: 18px 20px;
    font-size: 16px;
  }

  .faq__answer > p {
    padding: 0 20px;
    font-size: 15px;
  }

  .faq__item.is-open .faq__answer > p {
    padding-bottom: 20px;
  }

  /* CTA */
  .cta {
    margin-top: 60px;
  }

  .cta__image {
    height: 560px;
  }

  .cta__content {
    width: 100%;
    padding: 0 24px;
  }

  .cta__headline {
    width: 100%;
    font-size: clamp(38px, 10vw, 52px);
    line-height: 1.15;
  }

  /* Footer */
  .footer {
    padding: 80px 20px 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
    text-align: center;
  }

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

  .footer__col {
    align-items: center;
  }

  .footer__badges {
    align-items: center;
  }

  .footer__copyright {
    margin: 56px 0 0;
    text-align: center;
  }

  .footer__badge img {
    height: 64px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}


/* QR download widget — fixed bottom-left, frosted glass like the language menu */
.qr-widget {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 150;
  width: 220px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  animation: qr-widget-in 0.5s ease both;
}

.qr-widget.is-dismissed {
  display: none;
}

@keyframes qr-widget-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.qr-widget__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.qr-widget__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.qr-widget__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 7px;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.qr-widget__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.qr-widget__code {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.qr-widget__code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-widget__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

/* Tuck the widget away on small screens so it never covers content */
@media (max-width: 768px) {
  .qr-widget {
    display: none;
  }
}

/* Download modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal[hidden] {
  display: none;
}

.modal.is-open {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(18, 18, 24, 0.92);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

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

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.modal__title {
  width: 85%;
  margin: 0;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.modal__text {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.modal__code {
  width: 200px;
  max-width: 70%;
  aspect-ratio: 1;
  margin: 24px 0;
  padding: 14px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.modal__code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.modal__text--or {
  margin-top: 0;
}

.modal__badges {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.modal__badges img {
  height: 44px;
}

/* ==========================================================================
   Legal / content pages (Terms, Privacy, Cookie Policy, Legal Notice…)
   ========================================================================== */
.legal {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 48px 80px;
}

.legal__headline {
  margin: 0;
}

.legal__lead {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
}

.legal__section {
  margin-top: 40px;
}

.legal__subhead {
  margin: 0 0 12px;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
}

.legal__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.legal__headline + .legal__text {
  margin-top: 28px;
}

.legal__text + .legal__text {
  margin-top: 16px;
}

.legal__text a {
  color: #A35BF2;
  text-decoration: none;
}

.legal__text a:hover {
  text-decoration: underline;
}

/* Legal document body rendered from assets/js/legal-data.js by renderLegal().
   The .legal__doc rules style the plain HTML in each section's body so the
   data file can stay free of per-element classes. */
.legal__note {
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
}

.legal__doc p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.legal__doc ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.legal__doc li {
  margin: 6px 0 0;
}

.legal__doc strong {
  color: #FFFFFF;
  font-weight: 600;
}

.legal__doc a {
  color: #A35BF2;
  text-decoration: none;
}

.legal__doc a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal {
    padding: 120px 24px 64px;
  }
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
/* "Cookie settings" reopen control in the footer, styled like a footer link. */
.footer__link--btn {
  margin-bottom: 16px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

/* Full-screen modal overlay: a dimmed backdrop the visitor cannot click or
   Escape past. They must accept, reject, or save a choice to dismiss it. */
.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 12, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cookie-consent[hidden] {
  display: none;
}

/* The QR widget shares the bottom-left corner; hide it while the banner is up. */
body.cc-banner-open .qr-widget {
  display: none;
}

/* Lock background scroll so the page can't be interacted with behind the modal. */
body.cc-banner-open {
  overflow: hidden;
}

.cookie-consent.is-open {
  opacity: 1;
}

.cookie-consent__dialog {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(18, 18, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.cookie-consent.is-open .cookie-consent__dialog {
  transform: translateY(0) scale(1);
}

/* In-modal language toggle: the consent overlay covers the header switcher,
   so visitors can still read the notice in their language before deciding. */
.cookie-consent__lang {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 14px;
}

.cookie-consent__lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cookie-consent__lang-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-consent__title {
  margin: 0;
  font-family: 'Switzer', sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: #FFFFFF;
}

.cookie-consent__text {
  margin: 12px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.cookie-consent__links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.cookie-consent__link {
  color: #A35BF2;
  text-decoration: none;
}

.cookie-consent__link:hover {
  text-decoration: underline;
}

.cookie-consent__dot {
  color: rgba(255, 255, 255, 0.3);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cookie-consent__btn {
  flex: 1 1 100%;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.cookie-consent__btn--primary {
  background: linear-gradient(90deg, #8A2BE2 0%, #C724B1 100%) padding-box,
              linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.15)) border-box;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cookie-consent__btn--primary:hover {
  opacity: 0.92;
}

.cookie-consent__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.cookie-consent__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cookie-consent__btn--ghost {
  order: 3;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-consent__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

/* Preference categories */
.cookie-consent__cat {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-consent__cat:first-of-type {
  padding-top: 20px;
}

.cookie-consent__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-consent__cat-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
}

.cookie-consent__cat-desc {
  margin: 8px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.cookie-consent__always {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #A35BF2;
}

/* Toggle switch */
.cookie-consent__switch {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 44px;
  height: 26px;
}

.cookie-consent__switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-consent__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.18s ease;
  pointer-events: none;
}

.cookie-consent__slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.18s ease;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
  background: linear-gradient(90deg, #8A2BE2 0%, #C724B1 100%);
}

.cookie-consent__switch input:checked + .cookie-consent__slider::before {
  transform: translateX(18px);
}

.cookie-consent__switch input:focus-visible + .cookie-consent__slider {
  outline: 2px solid #A35BF2;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding: 16px;
    align-items: flex-end;
  }

  .cookie-consent__dialog {
    padding: 22px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: opacity 0.01ms;
  }

  .cookie-consent__dialog {
    transition: none;
    transform: none;
  }
}
