/* Newsletter popup — not in the Figma file; built from the design system so it
   reads as part of the site.

   It sits OUTSIDE .fit/.page on purpose: .page carries a transform: scale(),
   and a transformed ancestor makes position:fixed resolve against that
   ancestor instead of the viewport. Outside it, the dialog is viewport-fixed
   and stays at 1:1 while the page scales down. */

.nl {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.55);
}

.nl[hidden] { display: none !important; }

.nl__panel {
  position: relative;
  width: 520px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  background: var(--off-white);
  box-shadow: inset 0 0 0 2px var(--obsidian);
}

.nl__tag {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--lime);
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--obsidian);
}

.nl__panel h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--obsidian);
}

.nl__panel > p,
.nl__done p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

/* Stacked, not a row: at 13px in a 276px box the end of a real address was
   cut off while it was being typed, and there was nowhere to put a label. */
.nl__form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }

.nl__label {
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--obsidian);
}

.nl__form input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 100px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--muted);
  font-family: var(--font-inter);
  font-size: 15px;
  line-height: 1.4;
  color: var(--obsidian);
}

.nl__form input::placeholder { color: var(--muted); }
.nl__form input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.nl__form .btn { justify-content: center; padding: 13px 22px; font-family: var(--font-inter); }

.nl__fine {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.nl__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--obsidian);
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1;
  color: var(--obsidian);
  cursor: pointer;
}

.nl__close:focus-visible,
.nl__form .btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* The dialog animates in from a visible resting state, so it is fully readable
   the moment it is unhidden even if the animation never runs. */
@media (prefers-reduced-motion: no-preference) {
  .nl__panel { animation: nl-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes nl-in {
    from { opacity: 0; translate: 0 12px; }
    to   { opacity: 1; translate: 0 0; }
  }
}

/* display:flex would beat the UA's [hidden]{display:none}, so the hidden
   state has to be restated for any element this file gives a display to. */
.nl__done { display: flex; flex-direction: column; gap: 16px; }
.nl__done[hidden] { display: none; }
.nl__done h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--obsidian); }
.nl__done p { margin: 0; }
