/* Marketing surfaces + hero + legal + cookie banner */

.mkt-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-mkt-bg);
  color: var(--color-mkt-ink);
  /* Content-link hover: brighter film red on dark (never purple). */
  --color-accent-hover: var(--color-accent-bright);
}

.mkt-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: var(--pattern-grain);
}

.mkt-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 16, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-mkt-border);
}

.mkt-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-gutter);
  height: var(--header-height);
}

.mkt-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-mkt-ink);
  flex-shrink: 0;
}

.mkt-brand:hover,
.mkt-brand:visited {
  color: var(--color-mkt-ink);
  text-decoration: none;
}

.mkt-brand__logo {
  display: block;
  height: 2.35rem;
  width: auto;
  max-height: 2.35rem;
  max-width: min(100%, 7.5rem);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  align-self: center;
}

.mkt-brand__text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}

.mkt-brand__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.mkt-brand__tag {
  font-size: 0.625rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-mkt-muted);
  font-weight: var(--weight-semibold);
}

.mkt-nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-mkt-ink);
  align-items: center;
  justify-content: center;
}

.mkt-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  min-width: 0;
}

.mkt-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mkt-nav__link {
  position: relative;
  display: inline-flex;
  padding: var(--space-2) var(--space-3);
  color: var(--color-mkt-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-soft);
}

.mkt-nav__link::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 0.2rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.mkt-nav__link:visited {
  color: var(--color-mkt-muted);
  text-decoration: none;
}

.mkt-nav__link:hover,
.mkt-nav__link.is-active {
  color: var(--color-mkt-ink);
  text-decoration: none;
}

.mkt-nav__link:hover::after,
.mkt-nav__link.is-active::after {
  transform: scaleX(1);
}

.mkt-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
  flex-shrink: 0;
}

/* In-nav CTAs are mobile-only — avoid duplicate Login/Register on desktop. */
.mkt-header__actions--mobile {
  display: none;
}

.mkt-main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.mkt-header .btn,
.mkt-header .btn:hover,
.mkt-header .btn:visited,
.mkt-hero__cta .btn,
.mkt-hero__cta .btn:hover,
.mkt-hero__cta .btn:visited,
.mkt-slider__cta .btn,
.mkt-slider__cta .btn:hover,
.mkt-slider__cta .btn:visited,
.cookie-consent__actions .btn,
.cookie-consent__actions .btn:hover,
.cookie-consent__actions .btn:visited {
  text-decoration: none;
}

/* Primary CTAs on dark marketing: white label on solid film red (never red-on-red).
   Shell remaps --color-accent-hover to a bright tint for text links — keep button
   hover as a darker solid fill so contrast stays high. */
.mkt-shell .btn--primary,
.mkt-shell .btn--primary:link,
.mkt-shell .btn--primary:visited,
.mkt-shell .btn--primary:hover,
.mkt-shell .btn--primary:focus,
.mkt-shell .btn--primary:active,
.mkt-shell .btn--primary:visited:hover,
.mkt-slider__cta .btn--primary,
.mkt-slider__cta .btn--primary:link,
.mkt-slider__cta .btn--primary:visited,
.mkt-slider__cta .btn--primary:hover,
.mkt-slider__cta .btn--primary:focus,
.mkt-slider__cta .btn--primary:active,
.mkt-slider__cta .btn--primary:visited:hover,
.mkt-hero__cta .btn--primary,
.mkt-hero__cta .btn--primary:link,
.mkt-hero__cta .btn--primary:visited,
.mkt-hero__cta .btn--primary:hover,
.mkt-hero__cta .btn--primary:focus,
.mkt-hero__cta .btn--primary:active,
.mkt-hero__cta .btn--primary:visited:hover {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: transparent;
  text-decoration: none;
}

.mkt-shell .btn--primary:hover,
.mkt-shell .btn--primary:focus,
.mkt-shell .btn--primary:visited:hover,
.mkt-slider__cta .btn--primary:hover,
.mkt-slider__cta .btn--primary:focus,
.mkt-slider__cta .btn--primary:visited:hover,
.mkt-hero__cta .btn--primary:hover,
.mkt-hero__cta .btn--primary:focus,
.mkt-hero__cta .btn--primary:visited:hover {
  background: color-mix(in srgb, var(--color-accent) 78%, #000);
  color: var(--color-accent-ink);
  text-decoration: none;
}

/* Ghost / secondary on dark hero surfaces stay readable */
.mkt-slider__cta .btn--ghost,
.mkt-slider__cta .btn--ghost:visited,
.mkt-hero__cta .btn--ghost,
.mkt-hero__cta .btn--ghost:visited {
  color: rgba(232, 237, 245, 0.92);
  border-color: rgba(232, 237, 245, 0.35);
  background: transparent;
}

.mkt-slider__cta .btn--ghost:hover,
.mkt-slider__cta .btn--ghost:visited:hover,
.mkt-hero__cta .btn--ghost:hover,
.mkt-hero__cta .btn--ghost:visited:hover {
  color: #fff;
  border-color: rgba(232, 237, 245, 0.55);
  background: rgba(232, 237, 245, 0.08);
}

.mkt-slider__cta .btn--secondary,
.mkt-slider__cta .btn--secondary:visited,
.mkt-hero__cta .btn--secondary,
.mkt-hero__cta .btn--secondary:visited {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}

.mkt-slider__cta .btn--secondary:hover,
.mkt-slider__cta .btn--secondary:visited:hover,
.mkt-hero__cta .btn--secondary:hover,
.mkt-hero__cta .btn--secondary:visited:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* Hero slider — Apple-style full-bleed horizontal sections */
.mkt-slider {
  position: relative;
  outline: none;
}

.mkt-slider:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.mkt-slider__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.mkt-slider__track::-webkit-scrollbar {
  display: none;
}

.mkt-slider__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: min(100svh, 52rem);
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.mkt-slider__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mkt-slider__media picture,
.mkt-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mkt-slider__img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

/* Distinct crops from the same master — subtle framing per offering */
.mkt-slider__slide--platform .mkt-slider__img { object-position: 48% 42%; }
.mkt-slider__slide--monetization .mkt-slider__img { object-position: 72% 50%; }
.mkt-slider__slide--festivals .mkt-slider__img { object-position: 28% 45%; }
.mkt-slider__slide--news .mkt-slider__img { object-position: 55% 58%; }
.mkt-slider__slide--store .mkt-slider__img { object-position: 40% 35%; }

/* Motion 1: gentle ken-burns on the active slide only */
.mkt-slider__slide.is-active .mkt-slider__img {
  animation: mkt-slider-ken 18s var(--ease-soft) infinite alternate;
}

@keyframes mkt-slider-ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.07); }
}

.mkt-slider__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 16, 24, 0.92) 0%, rgba(10, 16, 24, 0.72) 42%, rgba(10, 16, 24, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.85) 0%, transparent 45%);
}

.mkt-slider__slide--monetization .mkt-slider__veil {
  background:
    linear-gradient(105deg, rgba(10, 16, 24, 0.94) 0%, rgba(10, 16, 24, 0.7) 48%, color-mix(in srgb, var(--color-accent) 18%, transparent) 100%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.88) 0%, transparent 48%);
}

.mkt-slider__slide--festivals .mkt-slider__veil {
  background:
    linear-gradient(95deg, rgba(10, 16, 24, 0.93) 0%, rgba(18, 51, 92, 0.55) 55%, rgba(10, 16, 24, 0.3) 100%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.86) 0%, transparent 46%);
}

.mkt-slider__slide--news .mkt-slider__veil {
  background:
    linear-gradient(110deg, rgba(10, 16, 24, 0.94) 0%, rgba(10, 16, 24, 0.68) 50%, rgba(53, 97, 148, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.88) 0%, transparent 48%);
}

.mkt-slider__slide--store .mkt-slider__veil {
  background:
    linear-gradient(100deg, rgba(10, 16, 24, 0.93) 0%, rgba(10, 16, 24, 0.7) 45%, rgba(10, 16, 24, 0.32) 100%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.9) 0%, transparent 44%);
}

.mkt-slider__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--shell-gutter) clamp(4.5rem, 10vh, 6.5rem);
  /* Motion 2: content rises in when the slide is active */
  opacity: 0.55;
  transform: translateY(0.75rem);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.mkt-slider__slide.is-active .mkt-slider__content {
  opacity: 1;
  transform: translateY(0);
}

.mkt-slider__brand {
  display: block;
  height: clamp(3.5rem, 8vw, 5.5rem);
  width: auto;
  max-width: min(100%, 18rem);
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.mkt-slider__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-bright);
}

.mkt-slider__title {
  margin: 0 0 var(--space-4);
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: #fff;
}

.mkt-slider__lede {
  margin: 0 0 var(--space-8);
  max-width: 28rem;
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, var(--text-md));
  color: rgba(232, 237, 245, 0.78);
  line-height: var(--leading-normal);
}

.mkt-slider__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Discreet chrome — dots + prev/next */
.mkt-slider__chrome {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 3vh, 1.75rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 16, 24, 0.45);
  border: 1px solid rgba(232, 237, 245, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mkt-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mkt-slider__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(232, 237, 245, 0.35);
  cursor: pointer;
  /* Motion 3: active dot expands */
  transition:
    transform var(--duration-base) var(--ease-out),
    background-color var(--duration-fast) var(--ease-soft),
    width var(--duration-base) var(--ease-out);
}

.mkt-slider__dot.is-active {
  width: 1.35rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.mkt-slider__dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.mkt-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(232, 237, 245, 0.78);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-soft), background var(--duration-fast) var(--ease-soft);
}

.mkt-slider__arrow:hover {
  color: #fff;
  background: rgba(232, 237, 245, 0.08);
}

.mkt-slider__arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Legacy hero — one composition, brand-first, full-bleed */
.mkt-hero {
  position: relative;
  min-height: min(100vh, 52rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.mkt-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mkt-hero__media picture,
.mkt-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mkt-hero__media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: hero-ken 18s var(--ease-soft) infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.mkt-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 16, 24, 0.92) 0%, rgba(10, 16, 24, 0.72) 42%, rgba(10, 16, 24, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.85) 0%, transparent 45%);
}

.mkt-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--shell-gutter) clamp(3rem, 8vh, 5rem);
  animation: page-enter var(--duration-slow) var(--ease-out) both;
}

.mkt-hero__brand {
  display: block;
  height: clamp(3.5rem, 8vw, 5.5rem);
  width: auto;
  max-width: min(100%, 18rem);
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.mkt-hero__title {
  margin: 0 0 var(--space-4);
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: #fff;
}

.mkt-hero__lede {
  margin: 0 0 var(--space-8);
  max-width: 36rem;
  font-size: var(--text-md);
  color: rgba(232, 237, 245, 0.78);
  line-height: var(--leading-normal);
}

.mkt-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.mkt-section {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: var(--space-16) var(--shell-gutter);
}

.mkt-section__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-mkt-ink);
}

.mkt-section__lede {
  margin: 0 0 var(--space-8);
  max-width: 40rem;
  color: var(--color-mkt-muted);
  font-size: var(--text-sm);
}

.mkt-feature-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--color-mkt-border);
  border-bottom: 1px solid var(--color-mkt-border);
}

.mkt-feature-rail--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mkt-feature__link {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
}

.mkt-feature__link a {
  color: var(--color-accent);
}

.mkt-feature__link a:visited {
  color: var(--color-accent);
}

.mkt-toc {
  margin: var(--space-8) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-mkt-border);
  border-bottom: 1px solid var(--color-mkt-border);
}

.mkt-toc__heading {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-mkt-muted);
  font-weight: var(--weight-semibold);
}

.mkt-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.mkt-toc__list a {
  color: var(--color-mkt-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-soft);
}

.mkt-toc__list a:visited {
  color: var(--color-mkt-muted);
}

.mkt-toc__list a:hover {
  color: var(--color-mkt-ink);
  text-decoration: none;
}

.mkt-platform__section {
  scroll-margin-top: calc(var(--header-height, 4rem) + var(--space-4));
}

.mkt-breadcrumb {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
}

.mkt-breadcrumb a {
  color: var(--color-accent);
}

.mkt-breadcrumb a:visited {
  color: var(--color-accent);
}

.mkt-feature {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--color-mkt-border);
}

.mkt-feature:last-child {
  border-right: 0;
}

.mkt-feature__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
  color: var(--color-mkt-ink);
}

.mkt-feature__body {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-mkt-muted);
  line-height: var(--leading-normal);
}

.mkt-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid var(--color-mkt-border);
  padding: var(--space-10) var(--shell-gutter) var(--space-8);
  background: rgba(0, 0, 0, 0.25);
}

.mkt-footer__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-8);
}

.mkt-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mkt-footer__logo {
  display: block;
  height: 2rem;
  width: auto;
  max-height: 2rem;
  max-width: min(100%, 6.5rem);
  object-fit: contain;
  object-position: left center;
  /* Flex column defaults to stretch — that was elongating the PNG. */
  align-self: flex-start;
  flex-shrink: 0;
}

.mkt-footer__note {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
  max-width: 28rem;
  line-height: var(--leading-snug);
}

.mkt-footer__heading {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-mkt-muted);
  font-weight: var(--weight-semibold);
}

.mkt-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mkt-footer__list a {
  color: var(--color-mkt-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-soft);
}

.mkt-footer__list a:visited {
  color: var(--color-mkt-muted);
}

.mkt-footer__list a:hover {
  color: var(--color-mkt-ink);
  text-decoration: none;
}

.mkt-footer__bar {
  max-width: var(--shell-max);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-mkt-border);
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
}

/* Legal prose */
.legal-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: var(--space-12) var(--shell-gutter) var(--space-16);
  animation: page-enter var(--duration-slow) var(--ease-out) both;
}

.legal-page h1 {
  color: var(--color-mkt-ink);
  margin-bottom: var(--space-2);
}

.legal-page h2 {
  margin-top: var(--space-8);
  color: var(--color-mkt-ink);
  font-size: var(--text-lg);
}

.legal-page h3 {
  margin-top: var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  letter-spacing: 0;
  color: var(--color-mkt-ink);
}

.legal-page p,
.legal-page li {
  color: var(--color-mkt-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.legal-page a {
  color: var(--color-accent);
}

.legal-page a:visited {
  color: var(--color-accent);
}

.legal-banner {
  margin: var(--space-5) 0 var(--space-8);
  padding: var(--space-4);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent-tint);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
}

.legal-banner strong {
  color: var(--color-mkt-ink);
  font-weight: var(--weight-semibold);
}

.legal-banner a {
  color: var(--color-accent-bright);
}

.legal-banner a:visited {
  color: var(--color-accent-bright);
}

.legal-todo {
  margin: var(--space-3) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--color-warning-soft);
  border-radius: var(--radius-sm);
  background: var(--color-warning-soft);
  color: color-mix(in srgb, var(--color-warning) 55%, white);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
}

.legal-todo__label {
  display: block;
  margin-bottom: var(--space-1);
  color: color-mix(in srgb, var(--color-warning) 70%, white);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.legal-todo p {
  margin: 0;
}

.mkt-flash {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.mkt-flash--success {
  border: 1px solid color-mix(in srgb, var(--color-success) 45%, transparent);
  background: var(--color-success-soft);
  color: color-mix(in srgb, var(--color-success) 55%, white);
}

.mkt-flash--error {
  border: 1px solid var(--color-accent-border);
  background: var(--color-accent-soft-strong);
  color: var(--color-accent-tint);
}

.mkt-flash--warning,
.mkt-flash--info {
  border: 1px solid color-mix(in srgb, var(--color-warning) 45%, transparent);
  background: var(--color-warning-soft);
  color: color-mix(in srgb, var(--color-warning) 55%, white);
}

.mkt-contact-form {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-md);
  background: var(--color-mkt-surface);
}

.mkt-contact-form h2 {
  margin: 0 0 var(--space-2);
}

.mkt-contact-form__lede {
  margin: 0 0 var(--space-5);
  color: var(--color-mkt-muted);
  font-size: var(--text-sm);
}

.mkt-contact-form__fields {
  display: grid;
  gap: var(--space-4);
  max-width: 36rem;
}

.mkt-contact-form__fields label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-mkt-muted);
}

.mkt-contact-form__fields input,
.mkt-contact-form__fields select,
.mkt-contact-form__fields textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-sm);
  background: var(--color-mkt-bg, #0f1218);
  color: var(--color-mkt-ink);
  font: inherit;
}

.mkt-contact-form__fields input:focus,
.mkt-contact-form__fields select:focus,
.mkt-contact-form__fields textarea:focus {
  outline: 2px solid var(--color-accent-ring);
  outline-offset: 1px;
}

.mkt-contact-form__fields .form-error,
.mkt-contact-form__fields ul {
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-accent-tint);
  font-size: var(--text-xs);
}

.mkt-contact-form__fields button,
.mkt-contact-form__fields .btn {
  justify-self: start;
  margin-top: var(--space-2);
}

.legal-entity {
  margin: var(--space-4) 0;
  padding: var(--space-5);
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-md);
  background: var(--color-mkt-surface);
}

.legal-entity__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--color-mkt-ink);
}

.legal-entity__meta {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
}

.privacy-region-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-6) 0 var(--space-8);
}

.privacy-region-nav a {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-sm);
  color: var(--color-mkt-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.privacy-region-nav a:visited {
  color: var(--color-mkt-muted);
  text-decoration: none;
}

.privacy-region-nav a:hover,
.privacy-region-nav a.is-active {
  color: var(--color-mkt-ink);
  border-color: var(--color-accent-border);
  background: var(--color-accent-soft);
  text-decoration: none;
}

.privacy-picker {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.privacy-picker__card {
  display: block;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-md);
  background: var(--color-mkt-surface);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-soft);
}

.privacy-picker__card:hover,
.privacy-picker__card:visited,
.privacy-picker__card.is-suggested {
  border-color: var(--color-accent-border);
  text-decoration: none;
}

.privacy-picker__card strong {
  display: block;
  color: var(--color-mkt-ink);
  font-size: var(--text-md);
  margin-bottom: var(--space-1);
}

.privacy-picker__card span {
  color: var(--color-mkt-muted);
  font-size: var(--text-sm);
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  z-index: var(--z-cookie);
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: auto;
  max-width: min(28rem, calc(100vw - 1.5rem));
  /* Reserve space so first paint stays stable (CLS). */
  min-height: 9.5rem;
  width: min(28rem, calc(100vw - 1.5rem));
  padding: var(--space-5);
  background: rgba(18, 26, 36, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--color-mkt-ink);
  animation: locale-panel-in var(--duration-base) var(--ease-out);
  contain: layout;
  --color-accent-hover: var(--color-accent-bright);
}

/* Narrow: full-bleed bottom bar; locale slider lifts via locale-slider.css */
@media (max-width: 40rem) {
  .cookie-consent {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    width: auto;
    max-width: none;
  }
}

.cookie-consent--prefs-open {
  max-width: 32rem;
  max-height: min(85vh, 40rem);
  overflow: auto;
  min-height: 0;
}

.cookie-consent[hidden],
html.has-cookie-consent .cookie-consent {
  display: none !important;
  min-height: 0;
}

html.has-cookie-consent .cookie-consent.cookie-consent--prefs-open,
.cookie-consent.cookie-consent--prefs-open:not([hidden]) {
  display: block !important;
}

.cookie-consent__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

.cookie-consent__body {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
  line-height: var(--leading-snug);
}

.cookie-consent__body a,
.cookie-consent__vendors a {
  color: var(--color-accent);
}

.cookie-consent__body a:visited,
.cookie-consent__vendors a:visited {
  color: var(--color-accent);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cookie-consent__panel {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-mkt-border);
}

.cookie-consent__panel[hidden] {
  display: none !important;
}

.cookie-consent__panel-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.cookie-consent__panel-lede,
.cookie-consent__vendors {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
  line-height: var(--leading-snug);
}

.cookie-consent__cats {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cookie-consent__cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.cookie-consent__cat-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  cursor: pointer;
}

.cookie-consent__cat-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cookie-consent__cat-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-mkt-ink);
}

.cookie-consent__cat-desc {
  font-size: 0.7rem;
  color: var(--color-mkt-muted);
  line-height: 1.35;
}

.cookie-consent__always {
  flex-shrink: 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-mkt-muted);
  padding-top: 0.15rem;
}

.cookie-consent__switch {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--color-accent);
}

/* Cookie settings — under the locale slider (same left chrome column). */
.cookie-consent-reopen {
  position: fixed;
  z-index: calc(var(--z-locale) - 1);
  left: max(0.75rem, env(safe-area-inset-left));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  padding: 0.35rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--color-mkt-muted);
  background: rgba(18, 26, 36, 0.92);
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: none;
  max-width: calc(100vw - 1.5rem);
  white-space: nowrap;
}

html.has-cookie-consent .cookie-consent-reopen {
  display: inline-flex;
  align-items: center;
}

.mkt-footer__cookie-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-mkt-muted);
  cursor: pointer;
  text-align: start;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-soft);
}

.mkt-footer__cookie-btn:hover {
  color: var(--color-mkt-ink);
  text-decoration: none;
}

@media (min-width: 720px) {
  .mkt-brand__text {
    display: flex;
  }
}

@media (max-width: 899px) {
  .mkt-nav-toggle {
    display: inline-flex;
  }

  .mkt-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4) var(--shell-gutter) var(--space-6);
    background: var(--color-mkt-surface);
    border-bottom: 1px solid var(--color-mkt-border);
  }

  .mkt-nav.is-open {
    display: flex;
  }

  .mkt-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .mkt-header__actions {
    display: none;
  }

  .mkt-nav.is-open .mkt-header__actions--mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: var(--space-4) 0 0;
    margin-inline-start: 0;
  }

  .mkt-feature-rail,
  .mkt-feature-rail--4 {
    grid-template-columns: 1fr;
  }

  .mkt-feature {
    border-right: 0;
    border-bottom: 1px solid var(--color-mkt-border);
  }

  .mkt-feature:last-child {
    border-bottom: 0;
  }

  .mkt-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 900px) {
  .mkt-feature-rail--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mkt-feature-rail--4 .mkt-feature:nth-child(2n) {
    border-right: 0;
  }

  .mkt-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-hero__media img,
  .mkt-slider__slide.is-active .mkt-slider__img {
    animation: none;
  }

  .mkt-slider__track {
    scroll-behavior: auto;
  }

  .mkt-slider__content {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mkt-slider__dot {
    transition: none;
  }
}

/* Public B2C storefront shell */
.storefront__list {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  border-top: 1px solid var(--color-mkt-border);
}

.storefront__item {
  border-bottom: 1px solid var(--color-mkt-border);
}

.storefront__link {
  display: block;
  padding: var(--space-4) 0;
  text-decoration: none;
  color: inherit;
}

.storefront__link:hover,
.storefront__link:visited {
  text-decoration: none;
  color: inherit;
}

.storefront__link:hover .storefront__item-title {
  color: var(--color-accent-hover);
}

.storefront__item-title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-mkt-ink);
}

.storefront__item-meta,
.storefront__meta,
.storefront__player-note,
.storefront__provider-link {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
}

.storefront__back {
  margin-bottom: var(--space-4);
}

.storefront__player {
  margin: var(--space-8) 0;
}

.storefront__video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #0a0c10;
}

.storefront__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0a0c10;
}

.storefront__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.storefront__player-empty {
  padding: var(--space-8);
  border: 1px dashed var(--color-mkt-border);
  color: var(--color-mkt-muted);
  font-size: var(--text-sm);
}

.storefront__player-locked {
  padding: var(--space-8);
  border: 1px solid var(--color-mkt-border);
  background: color-mix(in srgb, var(--color-mkt-ink) 4%, transparent);
}

.storefront__player-locked-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  color: var(--color-mkt-ink);
}

.storefront__unlock {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
  margin-top: var(--space-6);
}

.storefront__unlock label {
  display: block;
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
}

.storefront__unlock input[type="email"] {
  flex: 1 1 14rem;
  min-width: 12rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-mkt-ink);
}

.storefront__age-gate {
  padding: var(--space-8);
  border: 1px solid var(--color-mkt-border);
  background: color-mix(in srgb, var(--color-mkt-ink) 4%, transparent);
}

.storefront__age-gate-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  color: var(--color-mkt-ink);
}

.storefront__age-gate-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.storefront__license {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-mkt-border);
}

.storefront__checkout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
  margin-top: var(--space-4);
}

.storefront__checkout label {
  display: block;
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
}

.storefront__checkout input[type="email"] {
  flex: 1 1 14rem;
  min-width: 12rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-mkt-ink);
}

.storefront__flash {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.storefront__flash--success {
  background: rgba(40, 120, 70, 0.12);
  border: 1px solid rgba(40, 120, 70, 0.35);
}

.storefront__flash--error {
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
}

.storefront__flash--info {
  background: rgba(80, 110, 160, 0.1);
  border: 1px solid rgba(80, 110, 160, 0.3);
}

.storefront__flash--warning {
  background: rgba(180, 120, 20, 0.1);
  border: 1px solid rgba(180, 120, 20, 0.35);
}

.storefront__manage {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-mkt-border);
}

.storefront__svod-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
  margin-top: var(--space-4);
}

.storefront__svod-form label {
  display: block;
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-mkt-muted);
}

.storefront__svod-form input[type="email"] {
  flex: 1 1 14rem;
  min-width: 12rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-mkt-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-mkt-ink);
}

/* RTL (ar) — mirror floating chrome + logo anchors */
html[dir="rtl"] .mkt-brand__logo,
html[dir="rtl"] .mkt-footer__logo,
html[dir="rtl"] .mkt-hero__brand,
html[dir="rtl"] .mkt-slider__brand {
  object-position: right center;
}

html[dir="rtl"] .mkt-nav__link::after {
  transform-origin: right;
}

html[dir="rtl"] .cookie-consent {
  right: auto;
  left: max(0.75rem, env(safe-area-inset-left));
}

html[dir="rtl"] .cookie-consent-reopen {
  left: auto;
  right: max(0.75rem, env(safe-area-inset-right));
}

@media (max-width: 40rem) {
  html[dir="rtl"] .cookie-consent {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
  }
}
