/* =========================================================================
   MILO launch page (index.html with <html data-page="launch">), after the
   client's Figma file "MILO-43", page "Landing":
     desktop (900 px and up)  = frame "Desktop · 01 Pagina" (1440 × 900)
     phones (under 900 px)    = frame "Mobil · 02 Pagina"   (390 × 844)
   plus the states drawn next to them: wrong address ("05 Eroare"), ticked
   consent ("04 E-mail completat"), signed up ("Înscris") and the privacy
   policy ("Politica"). The two layouts differ: on desktop the promo video
   is blurred behind the page and sharp in a portrait frame on the right; on
   phones it is the full-screen background and the text sits at the bottom.
   The video loops on its own, muted, with no play button.
   Fonts: fonts/landing.css (Urbanist; Zalando Sans Expanded for the button).
   ========================================================================= */
.launch {
  /* the design's colours (Figma variables primary/...) */
  --lp-black: #1A0000;          /* 43-black: page background */
  --lp-stone: #D9D3C8;          /* stone-gray: the big title */
  --lp-air: #E9EBE4;            /* air-gray: text, button label */
  --lp-red: #C10016;            /* longevity-red: button, ticked box, check badge */
  --lp-red-hover: #A30013;
  --lp-line: rgba(233, 235, 228, .55);   /* field underline, empty checkbox */
  --lp-placeholder: rgba(233, 235, 228, .6);
  --lp-note: rgba(233, 235, 228, .75);   /* consent text */
  --lp-error: #FF8A8A;
  --lp-f: 'Urbanist', system-ui, sans-serif;
  --lp-f-btn: 'Zalando Sans Expanded', 'Urbanist', system-ui, sans-serif;
  /* tokens of the membership waves (shared/waves.css, off for now: data-memberships="off") */
  --ln-acc: var(--lp-red);
  --ln-acc-hover: var(--lp-red-hover);
  --ln-blur: 5px;
  --ln-saturate: 1.05;
  --ln-glass: rgba(26, 0, 0, .5);
  --ln-glass-line: rgba(233, 235, 228, .24);
  --ln-field: rgba(26, 0, 0, .35);
  --fg: var(--lp-air);
  --fg2: var(--lp-note);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--lp-black);
  color: var(--lp-air);
  font-family: var(--lp-f);
  font-weight: 400;
}
html[data-page="launch"] body { background: var(--lp-black, #1A0000); }
.launch :focus-visible { outline: 2px solid var(--lp-air); outline-offset: 3px; }

/* ------------------------------ background: the video and its shade ------------------------------ */
.lp-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--lp-black); }
.lp-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--lp-black); }
/* desktop: the frame is 125 % of the screen, centred, blurred 14 px at 55 % */
.lp-bg .lp-video { position: absolute; left: -12.5%; top: -12.5%; width: 125%; height: 125%; filter: blur(14px); opacity: .55; }
.lp-shade { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--lp-black) 0%, rgba(26, 0, 0, .85) 45%, rgba(26, 0, 0, .5) 100%); }

/* ------------------------------ header: the logo ------------------------------ */
.lp-hdr { flex: 0 0 auto; height: 88px; display: flex; align-items: center; padding: 0 48px; border-bottom: 1px solid rgba(217, 211, 200, .2); }
.lp-logo { display: block; line-height: 0; }
.lp-logo img { display: block; }

/* ------------------------------ the page: copy on the left, video frame on the right ------------------------------ */
.lp-main { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 760px) auto; justify-content: space-between; align-items: center; column-gap: 48px; padding: 55px 48px; }
.lp-copy { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
/* 106.5 px in the 760 px column of the 1440 × 900 frame; shrinks with the column and with the screen height */
.lp-title { margin: 0 0 56px; font-weight: 600; font-size: clamp(40px, min(14cqi, 11.83vh), 106.5px); line-height: .95; letter-spacing: -.035em; color: var(--lp-stone); white-space: pre-line; }

/* the video frame: portrait 9:16, as tall as the page minus 55 px above and below */
.lp-film { position: relative; margin: 0; height: max(420px, calc(100svh - 88px - 110px)); aspect-ratio: 9 / 16; overflow: hidden; background: var(--lp-black); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.lp-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 0, 0, 0) 55%, rgba(26, 0, 0, .7) 100%); }

/* ------------------------------ the form ------------------------------ */
.lp-notify { align-self: stretch; }
.lp-form { width: min(640px, 100%); }
.lp-fields { display: flex; flex-direction: column; gap: 14px; }
.lp-entry { display: flex; align-items: flex-end; gap: 24px; }
.lp-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 12px 0;
  font: 400 18px/21px var(--lp-f);
  color: var(--lp-air);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--lp-line);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s var(--ease);
}
.lp-input::placeholder { color: var(--lp-placeholder); opacity: 1; }
.lp-input:hover, .lp-input:focus { border-bottom-color: var(--lp-air); }
.lp-input:focus-visible { outline: none; box-shadow: 0 1px 0 var(--lp-air); }
.lp-input[aria-invalid="true"] { border-bottom-color: var(--lp-error); }
/* the autofill of the browser keeps the dark page */
.lp-input:-webkit-autofill { -webkit-text-fill-color: var(--lp-air); -webkit-box-shadow: 0 0 0 40px var(--lp-black) inset; caret-color: var(--lp-air); }
.lp-btn { flex: 0 0 auto; margin: 0; padding: 20px 28px; font: 700 12px/1 var(--lp-f-btn); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--lp-air); background: var(--lp-red); border: 0; border-radius: 0; cursor: pointer; transition: background-color .3s var(--ease); }
.lp-btn:hover { background: var(--lp-red-hover); }
.lp-btn[disabled] { opacity: .6; cursor: progress; }
/* the message under the button: the wrong address in light red, "sending" in the text colour */
.lp-status { margin: 0; font-size: 12px; line-height: 15px; color: var(--lp-note); }
.lp-status:empty { display: none; }
.lp-status.is-error { color: var(--lp-error); }
/* the consent: the real checkbox is hidden, the drawn box stands in for it */
.lp-consent { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-top: 4px; font-size: 13px; line-height: 1.4; color: var(--lp-note); cursor: pointer; }
.lp-consent input { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; margin: 0; opacity: 0; cursor: pointer; }
.lp-box { position: relative; flex: 0 0 auto; width: 18px; height: 18px; box-shadow: inset 0 0 0 1px var(--lp-line); }
.lp-box img { position: absolute; inset: 0; display: none; }
.lp-consent input:checked + .lp-box { box-shadow: none; }
.lp-consent input:checked + .lp-box img { display: block; }
.lp-consent input:focus-visible + .lp-box { outline: 2px solid var(--lp-air); outline-offset: 3px; }
.lp-consent input[aria-invalid="true"] + .lp-box { box-shadow: inset 0 0 0 1px var(--lp-error); }
.lp-consent-t { flex: 1 1 auto; min-width: 0; }
.lp-pp-link { display: inline; margin: 0; padding: 0; font: inherit; font-weight: 600; color: var(--lp-air); background: none; border: 0; text-decoration: underline; text-underline-position: from-font; cursor: pointer; }
.lp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ------------------------------ signed up: the check badge and the thank-you ------------------------------ */
.lp-done { display: none; flex-direction: column; align-items: flex-start; gap: 16px; }
.lp-done:focus { outline: none; }
.ln-done .lp-fields { display: none; }
.ln-done .lp-done { display: flex; }
.lp-check { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--lp-red); }
.lp-check img { display: none; }
/* after sending, a step still to take: the red envelope on an off-white circle;
   after confirming, the step taken: the off-white check mark on the red circle */
.is-sent .lp-icon-sent, .is-confirmed .lp-icon-done { display: block; }
.is-sent .lp-check { background: var(--lp-air); }
/* after sending: the line about the confirmation e-mail; after confirming (?confirmare=1): the two lines of the design */
.lp-sent-t, .lp-done-t { display: none; margin: 0; color: var(--lp-air); }
.is-sent .lp-sent-t, .is-confirmed .lp-done-t { display: block; }
.lp-sent-t { max-width: 30ch; font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.lp-done-t { font-weight: 600; font-size: 39.6px; line-height: 1; letter-spacing: -.02em; }

/* ------------------------------ phones: "Mobil · 02 Pagina" ------------------------------ */
@media (max-width: 899px) {
  .lp-bg .lp-video { left: 0; top: 0; width: 100%; height: 100%; filter: none; opacity: 1; }
  .lp-shade { background: linear-gradient(180deg, rgba(26, 0, 0, .55) 0%, rgba(26, 0, 0, .05) 26%, rgba(26, 0, 0, .35) 48%, rgba(26, 0, 0, .92) 72%, var(--lp-black) 100%); }
  .lp-hdr { height: auto; padding: max(17.6px, env(safe-area-inset-top)) 20px 0; border-bottom: 0; }
  .lp-logo img { width: 150px; height: auto; }
  /* the text at the bottom of the screen, over the video */
  .lp-main { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 20px max(18px, env(safe-area-inset-bottom)); }
  .lp-film { display: none; }
  .lp-copy { width: 100%; max-width: 600px; }
  .lp-title { margin-bottom: 28px; font-size: clamp(34px, 11.54vw, 72px); line-height: .955; }
  .lp-form { width: 100%; }
  .lp-fields { gap: 10px; }
  .lp-entry { flex-direction: column; align-items: stretch; gap: 10px; }
  .lp-btn { width: 100%; }
  .lp-consent { font-size: 11.5px; }
  .lp-sent-t { font-size: 20px; }
  .lp-done-t { font-size: 37px; }
  .lp-done-t > span { display: block; }
}

/* ------------------------------ privacy policy pop-up ("Desktop · 04 Politica", "Mobil · 07 Politica") ------------------------------ */
.pp { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; font-family: var(--lp-f, 'Urbanist', sans-serif); }
.pp[hidden] { display: none; }
.pp-scrim { position: absolute; inset: 0; background: rgba(10, 0, 0, .94); opacity: 0; transition: opacity .8s var(--ease); }
.pp.is-open .pp-scrim { opacity: 1; }
.pp-panel {
  position: relative;
  width: min(640px, 100%);
  height: calc(100svh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--lp-black, #1A0000);
  color: var(--lp-air, #E9EBE4);
  border: 1px solid rgba(233, 235, 228, .18);
  clip-path: inset(0);
  transition: clip-path .9s var(--ease-io);
}
.pp-close { position: absolute; top: 14px; right: calc(24px + var(--pp-sbw, 0px)); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--lp-line, rgba(233, 235, 228, .55)); border-radius: 50%; background: var(--lp-black, #1A0000); cursor: pointer; transition: border-color .3s var(--ease); }
.pp-close:hover { border-color: var(--lp-air, #E9EBE4); }
.pp-close img { display: block; }
.pp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 72px 24px 40px; scrollbar-width: thin; scrollbar-color: rgba(233, 235, 228, .3) transparent; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease) .3s, transform .9s var(--ease) .3s; }
.pp.is-open .pp-body { opacity: 1; transform: none; }
.pp-kicker { display: none; }
.pp-title { margin: 0; padding-right: 56px; font-family: inherit; font-weight: 600; font-size: clamp(28px, 7.4vw, 32px); line-height: 1.1; letter-spacing: -.01em; color: var(--lp-stone, #D9D3C8); }
.pp-updated { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: rgba(233, 235, 228, .5); }
.pp-intro { margin: 24px 0 0; font-size: 15px; line-height: 1.5; color: var(--lp-note, rgba(233, 235, 228, .75)); }
.pp-intro + .pp-intro { margin-top: 10px; }
.pp-sec { margin-top: 28px; }
.pp-sec h3 { margin: 0 0 8px; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--lp-air, #E9EBE4); }
.pp-sec p, .pp-sec li { margin: 0; font-size: 15px; line-height: 1.5; color: var(--lp-note, rgba(233, 235, 228, .75)); }
.pp-sec p + p, .pp-sec p + ul, .pp-sec ul + p { margin-top: 10px; }
.pp-sec ul { margin: 0; padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 4px; }
.pp-sec a { color: var(--lp-air, #E9EBE4); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pp :focus-visible { outline: 2px solid var(--lp-air, #E9EBE4); outline-offset: 3px; }
html.pp-open, html.pp-open body { overflow: hidden; }

/* =========================================================================
   Membership waves (data-memberships="on"): the boxes and the purchase form
   of shared/waves.js. Off for now and not part of the Figma design; kept
   from the previous launch page so the switch still works.
   ========================================================================= */
.launch .ln-box { container-type: inline-size; width: 100%; max-width: 800px; margin-bottom: 32px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--ln-glass-line); background: var(--ln-glass); -webkit-backdrop-filter: blur(var(--ln-blur)) saturate(var(--ln-saturate)); backdrop-filter: blur(var(--ln-blur)) saturate(var(--ln-saturate)); display: flex; flex-direction: column; gap: 32px; }
.ln-t { font-size: clamp(22px, 4.8cqi, 32px); line-height: 1.08; text-wrap: balance; }
@container (max-width: 470px) { .ln-t { font-size: 24px; line-height: 1.05; } }
.ln-form { display: flex; flex-direction: column; gap: 0; }
.ln-fields { display: flex; flex-direction: column; }
.ln-label { font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.ln-entry { display: flex; gap: 12px; margin-bottom: 28px; }
.ln-input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--fg); background: var(--ln-field); border: 1px solid var(--fg2); border-radius: 0; -webkit-appearance: none; appearance: none; transition: border-color .3s var(--ease); }
.ln-input::placeholder { color: var(--fg2); opacity: 1; }
.ln-input:hover, .ln-input:focus-visible { border-color: var(--fg); }
.ln-input[aria-invalid="true"] { border-color: var(--ln-acc); box-shadow: inset 0 0 0 1px var(--ln-acc); }
.ln-btn { flex: 0 0 auto; min-height: 52px; background: var(--ln-acc); border-color: var(--ln-acc); color: var(--lp-air); }
.ln-btn:hover { background: var(--ln-acc-hover); border-color: var(--ln-acc-hover); color: var(--lp-air); }
.ln-btn[disabled] { opacity: .6; cursor: progress; }
.ln-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--fg2); cursor: pointer; }
.ln-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ln-acc); cursor: pointer; }
.ln-consent input[aria-invalid="true"] { outline: 2px solid var(--ln-acc); outline-offset: 3px; }
.ln-pp-link { font: inherit; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ln-status { font-size: 15px; font-weight: 600; line-height: 1.5; }
.ln-status:not(:empty) { margin-top: 20px; }
.ln-done .ln-status:not(:empty) { margin-top: 0; }
.ln-status.is-error::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--ln-acc); vertical-align: 2px; }
.ln-done .ln-fields { display: none; }
@media (max-width: 560px) { .ln-entry { flex-direction: column; margin-bottom: 24px; } .ln-btn { width: 100%; } }
