:root {
  --woh-light-grey: #f4f3f0;
  --woh-yellow: #fedd06;
  --woh-black: #0c0c0a;
  --woh-text-main: #11110e;
  --woh-text-muted: #6b6a65;
  --woh-white: #ffffff;
}

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

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--woh-text-main);
  background: #000;
}

.woh-root {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.woh-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.woh-background::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.18) 28%,
    rgba(0, 0, 0, 0.06) 50%,
    rgba(0, 0, 0, 0) 80%
  );
}

.woh-background-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

.woh-background-layer--current {
  opacity: 1;
}

.woh-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0;
}

.woh-main {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: end;
  gap: 32px;
}

.woh-card {
  position: relative;
  background-color: var(--woh-light-grey);
  border-radius: 8px;
  box-shadow: none;
  max-width: 375px;
}

.woh-card-body {
  /* Match Sender form’s internal 40px horizontal padding so text aligns with form */
  padding: 0;
}

.woh-card-text {
  padding: 32px 40px 0;
}

.woh-heading {
  margin: 0 0 16px;
  font-weight: 300;
  font-size: 28px;
  line-height: 40px;
}

.woh-copy {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--woh-text-muted);
}

.woh-form-shell {
  padding: 40px;
  margin-top: 0;
}

.sender-form-field {
  width: 100%;
}

/* Unify form padding: no horizontal padding on all viewports (wrapper is in our DOM) */
.sender-form-field .box-padding,
.sender-subs-embed-form-b2kX9M .box-padding {
  padding-left: 0;
  padding-right: 0;
}

.woh-privacy {
  margin: 12px 0 4px;
  font-size: 12px;
  color: var(--woh-text-muted);
}

.woh-form-fallback {
  margin: 0;
  font-size: 11px;
  color: var(--woh-text-muted);
}

.woh-form-fallback a {
  color: var(--woh-black);
  text-decoration: underline;
}

.woh-card-accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background-color: var(--woh-yellow);
  border-radius: 0 0 8px 8px;
}

.woh-logo-area {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: 0;
  margin-right: -5px;
}

.woh-logo {
  max-height: 220px;
  width: auto;
}

.woh-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  display: flex;
  justify-content: center;
}

.woh-coordinates {
  display: flex;
  gap: 16px;
  margin: 0;
  font-size: 12px;
  color: var(--woh-white);
  letter-spacing: 0.04em;
}

.woh-coordinates span {
  display: inline-block;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease;
}

.woh-coordinates.woh-coordinates--hidden span:first-child {
  opacity: 0;
  transform: translateX(0);
}

.woh-coordinates.woh-coordinates--hidden span:last-child {
  opacity: 0;
  transform: translateX(0);
}

@keyframes woh-coords-in-lat {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes woh-coords-in-lon {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.woh-coordinates.woh-coordinates--entering span:first-child {
  animation: woh-coords-in-lat 0.4s ease forwards;
}

.woh-coordinates.woh-coordinates--entering span:last-child {
  animation: woh-coords-in-lon 0.4s ease forwards;
}

@media (max-width: 900px) {
  /* Mobile drawer accent: align with flat bottom edge, no corner radius */
  .woh-card-accent {
    border-radius: 0;
  }

  .woh-content {
    /* Let the drawer touch the left/right edges; no extra bottom padding
       so max scroll stops at the yellow line. */
    padding: 0;
  }

  .woh-main {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 24px;
    min-height: 120vh;
    /* On mobile, only ~170px of the card should be visible above the fold.
       Place the card so its top starts at (viewport height - 170px). */
    padding-top: calc(100vh - 170px);
    /* No extra bottom padding so scrolling ends when the card bottom
       (yellow line) reaches the viewport bottom. */
    padding-bottom: 0;
  }

  .woh-card {
    width: 100%;
    max-width: none;
    position: relative;
    z-index: 2; /* Scrolls over logo and coordinates */
    /* Mobile drawer-style block: 30px top radius, flat bottom, full-width */
    border-radius: 30px 30px 0 0;
  }

  .woh-form-shell {
    padding: 0;
  }

  .woh-logo-area {
    /* Center the vertical logo in the middle of the viewport */
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    /* Position logo 65px from the top on mobile */
    top: 65px;
    left: 0;
    right: 0;
    margin-right: 0;
    z-index: 1;
    pointer-events: none; /* keep form fully interactive */
  }

  .woh-logo {
    max-height: 140px;
  }

  .woh-footer {
    position: fixed;
    left: 0;
    right: 0;
    /* Place coordinates 8px above the visible top of the card.
       Card shows 170px above the fold, so its top is 170px from bottom. */
    bottom: 178px;
    margin-top: 0;
    z-index: 1;
    pointer-events: none;
    justify-content: center;
  }

  .woh-footer .woh-coordinates {
    width: 100%;
    padding: 0 30px; /* match 30px radius breakpoint */
    justify-content: space-between; /* left and right coords to the radius stops */
  }
}

