:root {
  --rollout-ink: #f3f0e7;
  --rollout-muted: rgba(243, 240, 231, 0.72);
  --rollout-line: rgba(243, 240, 231, 0.22);
  --rollout-fire: #c9a35d;
  --rollout-panel: rgba(15, 22, 18, 0.94);
}

html.rollout-gate-pending,
html.rollout-gate-active,
html.rollout-gate-pending body,
html.rollout-gate-active body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.rollout-gate-pending body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(7, 11, 9, 0.76);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.rollout-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 56px);
  color: var(--rollout-ink);
  background:
    linear-gradient(105deg, rgba(5, 9, 7, 0.88), rgba(5, 9, 7, 0.58)),
    rgba(5, 9, 7, 0.38);
  backdrop-filter: blur(7px) saturate(0.78);
  -webkit-backdrop-filter: blur(7px) saturate(0.78);
  font-family: Inter, Manrope, Arial, sans-serif;
  cursor: auto;
  animation: rollout-gate-in 620ms ease both;
}

.rollout-gate__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid var(--rollout-line);
  border-radius: 6px;
  background: var(--rollout-panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.rollout-gate__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(30px, 6vw, 68px);
  width: 74px;
  height: 2px;
  background: var(--rollout-fire);
}

.rollout-gate__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: clamp(34px, 7vh, 66px);
}

.rollout-gate__brand-copy {
  display: flex;
  align-items: center;
  gap: 13px;
}

.rollout-gate__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rollout-gate__brand span {
  display: grid;
  gap: 2px;
}

.rollout-gate__languages {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.rollout-gate__languages button {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: rgba(243, 240, 231, 0.48);
  background: transparent;
  font: 600 0.65rem/1 Inter, Manrope, Arial, sans-serif;
  cursor: pointer;
}

.rollout-gate__languages button[aria-pressed="true"],
.rollout-gate__languages button:hover,
.rollout-gate__languages button:focus-visible {
  color: var(--rollout-ink);
  border-bottom-color: var(--rollout-fire);
}

.rollout-gate__brand strong,
.rollout-gate__brand small {
  letter-spacing: 0;
}

.rollout-gate__brand strong {
  font-family: Poppins, Manrope, Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
}

.rollout-gate__brand small {
  color: var(--rollout-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rollout-gate__kicker {
  margin: 0 0 18px;
  color: var(--rollout-fire);
  font-size: clamp(0.71rem, 1.1vw, 0.82rem);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.rollout-gate h1 {
  max-width: 650px;
  margin: 0;
  color: var(--rollout-ink);
  font-family: Fraunces, Newsreader, Literata, Georgia, serif;
  font-size: clamp(2.25rem, 6.1vw, 4.65rem);
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.rollout-gate__intro {
  max-width: 610px;
  margin: clamp(24px, 4.5vh, 38px) 0 0;
  color: var(--rollout-ink);
  font-family: Fraunces, Newsreader, Literata, Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 300;
  line-height: 1.55;
}

.rollout-gate__context {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--rollout-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.rollout-gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(30px, 5.5vh, 48px);
}

.rollout-gate__primary,
.rollout-gate__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--rollout-ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.rollout-gate__primary {
  padding: 0 24px;
  border: 1px solid var(--rollout-ink);
  border-radius: 999px;
}

.rollout-gate__secondary {
  min-height: 42px;
  padding: 0 2px;
  border-bottom: 1px solid var(--rollout-line);
  color: var(--rollout-muted);
}

.rollout-gate__primary:hover,
.rollout-gate__primary:focus-visible {
  color: #121a15;
  background: var(--rollout-ink);
  transform: translateY(-2px);
}

.rollout-gate__secondary:hover,
.rollout-gate__secondary:focus-visible {
  color: var(--rollout-ink);
  border-color: var(--rollout-ink);
}

.rollout-gate a:focus-visible {
  outline: 2px solid var(--rollout-fire);
  outline-offset: 5px;
}

@keyframes rollout-gate-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 620px) {
  .rollout-gate {
    align-items: end;
    padding: 12px;
  }

  .rollout-gate__panel {
    max-height: calc(100dvh - 24px);
    padding: 28px 22px 24px;
  }

  .rollout-gate__panel::before {
    left: 22px;
  }

  .rollout-gate__brand {
    margin-bottom: 24px;
  }

  .rollout-gate__brand small {
    display: none;
  }

  .rollout-gate h1 {
    font-size: clamp(2.05rem, 10.8vw, 3rem);
    line-height: 1;
  }

  .rollout-gate__kicker {
    margin-bottom: 12px;
  }

  .rollout-gate__intro {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.42;
  }

  .rollout-gate__context {
    margin-top: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .rollout-gate__actions {
    margin-top: 22px;
  }

  .rollout-gate__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .rollout-gate__primary,
  .rollout-gate__secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rollout-gate {
    animation: none;
  }

  .rollout-gate__primary,
  .rollout-gate__secondary {
    transition: none;
  }
}
