/*
 * eteria Waitlist
 * Launch landing CSS
 */


/* self-hosted so the page makes no third-party requests */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jost-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Garet';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/garet-book.otf') format('opentype');
}

:root {
  --eteria-wine: #550015;
  --eteria-blue: #B3CDE1;
  --eteria-ivory: #F6F2E9;
  --eteria-error: #FFB8C6;
  --eteria-radius-button: 12px;
  --font-body--family: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-heading--family: 'Playfair Display', Georgia, serif;
  --font-tagline--family: 'Garet', 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.eteria-launch {
  background: #1a0007;
  color: var(--eteria-ivory);
  font-family: var(--font-body--family);
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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


/* background video */

.eteria-stage {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a0007;
}

.eteria-stage__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keeps the centre of the video in view when a portrait screen crops the sides */
  object-position: 50% 50%;
}

.eteria-stage__shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(20, 0, 5, 0.45);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.is-popup-open .eteria-stage__shade {
  opacity: 1;
}


/* popup */

.eteria-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  /* bottom room for the privacy policy link */
  padding: 16px 16px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

/* takes touches while open so a popup taller than the screen (data protection basics open) can scroll */
.is-popup-open .eteria-overlay {
  pointer-events: auto;
}

.eteria-popup {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 52px 44px 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background: var(--eteria-wine);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.9s;
}

.is-popup-open .eteria-popup {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

.eteria-popup:focus {
  outline: none;
}

/* liquid glass (iOS 26 style): tinted, blurred and saturated backdrop with a lit edge.
   Browsers without backdrop-filter keep the solid wine background above. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .eteria-popup {
    /* dense enough that the glass stays the brand wine instead of turning pink over the video */
    background: linear-gradient(150deg, rgba(85, 0, 21, 0.8) 0%, rgba(85, 0, 21, 0.68) 100%);
    -webkit-backdrop-filter: blur(28px) saturate(115%);
    backdrop-filter: blur(28px) saturate(115%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1),
      inset 0 0 32px rgba(255, 255, 255, 0.06),
      0 24px 60px rgba(20, 0, 5, 0.35);
  }

  /* sheen across the top left; backdrop-filter makes the popup a stacking context,
     so z-index -1 keeps it above the glass and below the content */
  .eteria-popup::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 32%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
  }

  .eteria-popup .eteria-form__input {
    border-color: rgba(246, 242, 233, 0.9);
    background: rgba(246, 242, 233, 0.92);
  }
}

.eteria-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--eteria-ivory);
  font-size: 28px;
  font-weight: 300;
  line-height: 40px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.eteria-popup__close:hover,
.eteria-popup__close:focus-visible {
  opacity: 1;
}


.eteria-popup__logo {
  margin: 0 auto 30px;
  font-size: 0;
  line-height: 0;
}

.eteria-popup__logo img {
  display: inline-block;
  width: 230px;
  max-width: 70%;
  height: auto;
}


/* countdown */

.eteria-countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin: 0 0 30px;
  color: var(--eteria-ivory);
}

.eteria-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
}

.eteria-countdown__value {
  font-family: var(--font-heading--family);
  font-size: 3.75rem;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.eteria-countdown__label {
  margin-top: 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

.eteria-countdown__sep {
  font-family: var(--font-heading--family);
  font-size: 3rem;
  line-height: 1.1;
  opacity: 0.45;
}


/* tagline */

.eteria-popup__tagline {
  margin: 0 0 30px;
  color: var(--eteria-blue);
  font-family: var(--font-tagline--family);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  /* long translations wrap into two even lines instead of leaving one word alone */
  text-wrap: balance;
}


/* form */

.eteria-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.eteria-form__input {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 2px solid var(--eteria-ivory);
  border-radius: var(--eteria-radius-button);
  background: var(--eteria-ivory);
  color: var(--eteria-wine);
  font-family: var(--font-body--family);
  /* 16px minimum prevents iOS from zooming in on focus */
  font-size: 1rem;
  letter-spacing: 0.02em;
  -webkit-appearance: none;
  appearance: none;
}

.eteria-form__input::placeholder {
  color: rgba(85, 0, 21, 0.5);
  opacity: 1;
}

.eteria-form__input:focus {
  outline: 2px solid var(--eteria-blue);
  outline-offset: 2px;
}

.eteria-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 40px;
  border: 2px solid var(--eteria-ivory);
  border-radius: var(--eteria-radius-button);
  background: transparent;
  color: var(--eteria-ivory);
  font-family: var(--font-body--family);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}

.eteria-carousel__button:hover,
.eteria-carousel__button:focus-visible {
  background: var(--eteria-ivory);
  color: var(--eteria-wine);
}

.eteria-carousel__button:focus-visible {
  outline: 2px solid var(--eteria-blue);
  outline-offset: 2px;
}

.eteria-form__button {
  width: 100%;
}

.eteria-form__button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.eteria-form__message {
  margin: 2px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.eteria-form__message:empty {
  display: none;
}

.eteria-form__message.is-error {
  color: var(--eteria-error);
}

/* same look as the tagline */
.eteria-form__message.is-success {
  color: var(--eteria-blue);
  font-family: var(--font-tagline--family);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-wrap: balance;
}

.eteria-form.is-done .eteria-form__input,
.eteria-form.is-done .eteria-consent,
.eteria-form.is-done .eteria-form__button {
  display: none;
}


/* consent checkbox */

.eteria-consent {
  position: relative;
  display: flex;
  gap: 12px;
  margin: 4px 0 2px;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.eteria-consent__input {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
}

.eteria-consent__box {
  position: relative;
  flex: 0 0 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--eteria-ivory);
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.eteria-consent__input:checked + .eteria-consent__box {
  background: var(--eteria-ivory);
}

.eteria-consent__input:checked + .eteria-consent__box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid var(--eteria-wine);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.eteria-consent__input:focus-visible + .eteria-consent__box {
  outline: 2px solid var(--eteria-blue);
  outline-offset: 2px;
}

.eteria-consent.is-invalid .eteria-consent__box {
  border-color: var(--eteria-error);
}

.eteria-consent__text {
  opacity: 0.9;
}

.eteria-launch a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eteria-launch a:hover {
  color: var(--eteria-blue);
}


/* data protection basics (first layer) */

.eteria-basics {
  margin: 18px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: left;
}

.eteria-basics summary {
  display: block;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.75;
  cursor: pointer;
  list-style: none;
}

.eteria-basics summary::-webkit-details-marker {
  display: none;
}

.eteria-basics summary::after {
  content: ' +';
}

.eteria-basics[open] summary::after {
  content: ' –';
}

.eteria-basics summary:hover,
.eteria-basics summary:focus-visible {
  opacity: 1;
}

.eteria-basics dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(246, 242, 233, 0.2);
  border-radius: 10px;
}

.eteria-basics dt {
  font-weight: 500;
  color: var(--eteria-blue);
}

.eteria-basics dd {
  margin: 0;
  opacity: 0.9;
  overflow-wrap: anywhere;
}

.eteria-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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


/* launch line */

.eteria-popup__launch {
  margin: 22px 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
}

.eteria-popup__launch-sep {
  margin: 0 0.6em;
  color: var(--eteria-blue);
}


/* reopen button, shown after the popup is closed */

.eteria-reopen {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 11;
  background: rgba(85, 0, 21, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: background-color 0.35s ease, color 0.35s ease, opacity 0.5s ease, visibility 0s linear 0.5s;
}

.is-popup-closed .eteria-reopen {
  opacity: 1;
  visibility: visible;
  transition: background-color 0.35s ease, color 0.35s ease, opacity 0.5s ease, visibility 0s;
}


.eteria-legal-link {
  position: fixed;
  right: 0;
  bottom: 10px;
  left: 0;
  /* above the overlay, which leaves room for it at the bottom so the popup never ends under it */
  z-index: 11;
  width: max-content;
  margin: 0 auto;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.eteria-launch .eteria-legal-link {
  text-decoration: none;
}

.is-popup-closed .eteria-reopen {
  bottom: 44px;
}


/* privacy policy panel (second layer) */

.eteria-privacy {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 0, 5, 0.6);
}

.eteria-privacy[hidden] {
  display: none;
}

.eteria-privacy__panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 100%;
  overflow-y: auto;
  padding: 48px 44px 40px;
  border-radius: 16px;
  background: var(--eteria-wine);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  -webkit-overflow-scrolling: touch;
}

.eteria-privacy:focus {
  outline: none;
}

.eteria-policy {
  font-size: 0.9375rem;
  line-height: 1.65;
  text-align: left;
}

.eteria-policy h2 {
  margin: 0 0 4px;
  font-family: var(--font-heading--family);
  font-size: 2rem;
  font-weight: 400;
}

.eteria-policy__updated {
  margin: 0 0 24px;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.eteria-policy h3 {
  margin: 26px 0 8px;
  color: var(--eteria-blue);
  font-family: var(--font-body--family);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eteria-policy p,
.eteria-policy ul {
  margin: 0 0 10px;
}

.eteria-policy ul {
  padding-left: 1.2em;
}


/* standalone pages: confirm, unsubscribe, privacy policy */

body.eteria-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  height: auto;
  padding: 16px;
  background: var(--eteria-wine);
  overflow: auto;
}

.eteria-page__card {
  width: 100%;
  max-width: 520px;
  padding: 40px 0;
  text-align: center;
}

.eteria-page__card--wide {
  max-width: 680px;
}

.eteria-page__logo {
  display: inline-block;
  margin-bottom: 32px;
}

.eteria-page__logo img {
  display: block;
  width: 200px;
  height: auto;
}

.eteria-page__title {
  margin: 0 0 14px;
  font-family: var(--font-heading--family);
  font-size: 2rem;
  font-weight: 400;
}

.eteria-page__text {
  margin: 0 0 28px;
  opacity: 0.9;
}

.eteria-page__tagline {
  margin: 32px 0 0;
}


@media (max-width: 767px) {
  .eteria-popup {
    padding: 48px 22px 28px;
    border-radius: 26px;
  }

  .eteria-privacy__panel {
    padding: 44px 22px 28px;
  }

  .eteria-policy h2,
  .eteria-page__title {
    font-size: 1.6rem;
  }

  .eteria-basics dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .eteria-basics dd {
    margin-bottom: 8px;
  }

  .eteria-popup__logo {
    margin-bottom: 24px;
  }

  .eteria-popup__logo img {
    width: 190px;
  }

  .eteria-countdown {
    gap: 2px;
    margin-bottom: 24px;
  }

  .eteria-countdown__unit {
    min-width: 56px;
  }

  .eteria-countdown__value {
    font-size: 2.6rem;
  }

  .eteria-countdown__sep {
    font-size: 2rem;
  }

  .eteria-countdown__label {
    letter-spacing: 0.16em;
  }

  .eteria-popup__tagline {
    margin-bottom: 24px;
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
  }

  .eteria-carousel__button {
    padding: 16px 20px;
  }

  .eteria-popup__launch {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
  }

  .eteria-reopen {
    white-space: nowrap;
  }
}

@media (max-width: 359px) {
  .eteria-popup__launch {
    letter-spacing: 0.12em;
  }

  .eteria-popup__launch-sep {
    margin: 0 0.4em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eteria-popup,
  .is-popup-open .eteria-popup,
  .eteria-stage__shade {
    transition: none;
    transform: none;
  }
}
