:root {
  --blue: #1d5cff;
  --blue-dark: #1448d6;
  --ink: #111111;
  --field: #f1f3f6;
  --field-border: #c6ccd6;
  --muted: #6b7280;
  --error: #d92d20;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #111;
  color: var(--ink);
  font-family: "Rubik", "Arial Hebrew", Arial, sans-serif;
  line-height: 1.4;
}

/* the same collage, blurred, behind the mobile layout on in-between screens (tablets) */
body::before {
  content: "";
  position: fixed;
  inset: -20px;
  z-index: -1;
  background: url("assets/desktop.jpg") center / cover no-repeat;
  filter: blur(8px) brightness(.55);
}

/* ============ MOBILE (default) ============ */

.stage {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  background: var(--ink);
  container-type: inline-size;
  overflow: hidden;
}

/* top: 758x900 slice; children are placed by % on the image */
.top {
  position: relative;
  aspect-ratio: 758 / 900;
  background: url("assets/m-top.jpg") 0 0 / 100% 100% no-repeat;
}
.top > * { position: absolute; margin: 0; }

.logo { left: 3%; top: 2.2%; width: 19%; height: auto; }

.headline { position: static; margin: 0; font-size: inherit; }
.h-black, .h-blue {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.h-black { left: 15.8%; top: 27.2%; width: 69.9%; height: 16.7%; font-size: 15cqw; padding-top: 1%; transform: rotate(2deg); }
.h-blue  { left: 4.6%;  top: 42.4%; width: 91%;   height: 16.7%; font-size: 17cqw; padding-top: 1%; }

.subtitle {
  left: 6%; top: 60.2%; width: 90%; height: 10%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 6.5cqw;
  line-height: 1;
  white-space: nowrap;
}
.mark {
  font-size: 1.12em;
  background: linear-gradient(transparent 84%, var(--blue) 84% 97%, transparent 97%);
}

.intro {
  left: 13%; top: 71%; width: 74%; height: 22.5%;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 3.65cqw;
  line-height: 1.26;
}
.intro p { margin: 0; text-wrap: balance; }
.intro strong { font-weight: 900; }
.intro-cta { font-weight: 900; }
.intro .blue { color: #c4d4ff; }
.intro-d { display: none; }
.intro .underline { background: linear-gradient(transparent 84%, var(--blue) 84% 98%, transparent 98%); }

/* panel: 758x270 slice, stretched to fit the fields */
.signup { position: relative; }
.panel {
  position: relative;
  min-height: calc(100cqw * 270 / 758);
  padding: 1cqw 8cqw 0;
  background: url("assets/m-mid.jpg") 0 0 / 100% 100% no-repeat;
}

.field { margin-bottom: 3cqw; }
.field label {
  display: block;
  font-weight: 700;
  font-size: max(15px, 4.2cqw);
  margin-bottom: 1.2cqw;
}
.req { color: var(--blue); }

.input-wrap { position: relative; }
.input-wrap .icon {
  position: absolute;
  right: 3.2cqw;
  top: 50%;
  width: max(18px, 5cqw);
  height: max(18px, 5cqw);
  transform: translateY(-50%);
  fill: #4b5563;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  height: max(44px, 11.5cqw);
  padding: 0 max(40px, 11cqw) 0 3cqw;
  font: inherit;
  font-size: max(16px, 4.3cqw); /* 16px+ keeps iOS from zooming on focus */
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 2.4cqw;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap input::placeholder { color: var(--muted); }
.input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 92, 255, .2);
  background: #fff;
}
.input-wrap input[aria-invalid="true"] { border-color: var(--error); }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 2.4cqw;
  align-items: center;
  font-size: max(12px, 3.25cqw);
  color: #333;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.f-area + .hp + .consent { margin-top: 9.6cqw; } /* equal space above and below the checkboxes */
.consent + .consent { margin-top: 2.2cqw; }
.consent a { color: var(--blue); font-weight: 700; }
.consent.invalid { color: var(--error); }

.form-error {
  margin: 2cqw 0 0;
  color: var(--error);
  font-weight: 700;
  font-size: max(14px, 3.7cqw);
}

.success { text-align: center; padding: 6cqw 0; font-size: 5cqw; }
.success:focus { outline: none; }
.success p { margin: 0; }
.success-title { font-weight: 900; font-size: 10cqw; color: var(--blue); line-height: 1.1; }

/* bottom: 758x285 slice with the blue brush button and the stamp */
.bottom {
  position: relative;
  aspect-ratio: 758 / 285;
  margin-top: -1px;
  background: url("assets/m-bot.jpg") 0 0 / 100% 100% no-repeat;
}

.submit {
  position: absolute;
  left: 7.9%; top: 26.3%; width: 85%; height: 38.6%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4cqw;
  padding: 0;
  border: 0;
  background: transparent; /* the blue brush shape is in the image */
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: 9.5cqw;
  line-height: 1;
  cursor: pointer;
  transition: transform .1s, filter .15s;
}
.submit .arrow { position: relative; flex: none; width: 13cqw; height: 9cqw; }
.submit .arrow img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7.6cqw;
  transform: translate(-50%, -50%) rotate(-125deg);
}
.submit:hover { filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }
.submit:active { transform: scale(.98); }
.submit:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
.submit[disabled] { cursor: default; }

.stamp {
  position: absolute;
  left: 78.5%; top: 62%; width: 21%; height: 34%;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: "Amatic SC", "Rubik", sans-serif;
  font-weight: 700;
  font-size: 5.2cqw;
  line-height: .88;
  text-align: center;
  transform: rotate(-12deg);
}

/* ============ DESKTOP: 16:9 collage fills the screen ============ */

@media (min-width: 1000px) and (min-aspect-ratio: 8/5) {
  html:has(body.landing), body.landing { height: 100%; overflow-x: hidden; }
  body.landing::before { display: none; }

  .stage {
    position: absolute;
    left: 50%;
    top: 0;
    width: max(100vw, 177.78vh);
    height: max(56.25vw, 100vh);
    max-width: none;
    margin: 0;
    transform: translateX(-50%);
    background: url("assets/desktop.jpg") 0 0 / 100% 100% no-repeat;
    container-type: size;
  }

  .top, .signup, .bottom {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    background: none;
    pointer-events: none;
  }
  .top > *, .panel, .submit { pointer-events: auto; }

  .logo { left: 34%; top: 2.2%; width: 11.5%; }

  /* black box is tilted in the artwork */
  .h-black { left: 56.2%; top: 26.3%; width: 34.1%; height: 18%; font-size: 8cqw; transform: rotate(7.5deg); }
  .h-blue  { left: 51.4%; top: 44.1%; width: 41%;   height: 14.9%; font-size: 7.5cqw; }
  .subtitle { left: 54.4%; top: 57.6%; width: 36.8%; height: 9.6%; font-size: 2.8cqw; }

  /* desktop: the intro lives inside the white panel (.intro-d), centered with the form */
  .intro { display: none; }

  .panel {
    position: absolute;
    left: 9%; top: 19%; width: 35%; height: 45.5%; /* white paper area above the button */
    min-height: 0;
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .intro-d {
    display: block;
    margin-bottom: 1.5cqw;
    text-align: center;
    font-weight: 500;
    font-size: max(12.5px, 1.02cqw);
    line-height: 1.45;
  }
  .intro-d p { margin: 0; }
  .intro-d strong, .intro-d .intro-cta { font-weight: 900; }
  .intro-d .intro-cta { margin-top: .35cqw; }
  .intro-d .blue { color: var(--blue); }
  .intro-d .underline { background: linear-gradient(transparent 84%, var(--blue) 84% 98%, transparent 98%); }

  .fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.3cqw; }
  .f-area, .consent, .form-error { grid-column: 1 / -1; }
  .field { margin-bottom: .75cqw; }
  .field label { font-size: max(13px, 1cqw); margin-bottom: .3cqw; }
  .input-wrap .icon { right: .8cqw; width: max(15px, 1.15cqw); height: max(15px, 1.15cqw); }
  .input-wrap input {
    height: max(34px, 2.5cqw);
    padding: 0 max(32px, 2.6cqw) 0 .9cqw;
    font-size: max(15px, 1.05cqw);
    border-radius: .6cqw;
  }
  .f-area { margin-bottom: 1.2cqw; } /* breathing room before the checkboxes */
  .f-area + .hp + .consent { margin-top: 0; }
  .consent { gap: .7cqw; font-size: max(12.5px, .92cqw); }
  .consent + .consent { margin-top: .45cqw; }
  .form-error { margin-top: .6cqw; font-size: max(13px, 1cqw); }
  .success { padding: 3cqw 0; font-size: 1.6cqw; }
  .success-title { font-size: 3.4cqw; }

  .submit { left: 10.8%; top: 65.6%; width: 32%; height: 11%; font-size: 3.1cqw; gap: 1.4cqw; }
  .submit .arrow { width: 3.8cqw; height: 3cqw; }
  .submit .arrow img { width: 2.3cqw; }
  .stamp { display: none; }
}

/* cookie notice: slim full-width strip, as quiet as possible */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 7px 16px calc(7px + env(safe-area-inset-bottom));
  background: #fff;
  color: var(--ink);
  border-top: 1px solid #e3e3e3;
  font-size: 13px;
  line-height: 1.4;
}
.cookie p { margin: 0; }
.cookie a { color: var(--ink); text-decoration: underline; }
.cookie-ok {
  flex: none;
  padding: 5px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookie-ok:hover { background: var(--blue-dark); }
.cookie-ok:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 600px) {
  .cookie { justify-content: space-between; gap: 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* privacy policy & terms page: plain document */
body.legal-body { background: #fff; }
body.legal-body::before { display: none; }
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.legal {
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}
.legal h1 { margin: 0 0 4px; font-weight: 700; font-size: 26px; line-height: 1.3; }
.legal-updated { margin: 0 0 20px !important; color: #666; font-size: 14px; }
.legal h2 {
  margin: 34px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  font-weight: 700;
  font-size: 20px;
}
.legal h3 { margin: 22px 0 4px; font-weight: 700; font-size: 17px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-right: 22px; }
.legal li { margin-bottom: 4px; }
.legal a { color: inherit; }
.legal-back { margin-top: 28px !important; font-size: 15px; }

@media (max-width: 600px) {
  .legal { font-size: 15px; }
  .legal h1 { font-size: 22px; }
  .legal h2 { font-size: 18px; }
}
