/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --blue: #0038b8;          /* Israeli royal blue */
  --blue-hover: #0a46d1;
  --form-blue: #2350d6;     /* registration panel */
  --navy: #0a2463;
  --midnight: #071b3b;
  --abyss: #050f24;
  --sky: #a9c8ff;           /* light accent on dark */
  --sky-btn: #9fcbff;
  --sky-text: #c4dbff;       /* statement lines on the flag */
  --rule: rgb(143 182 255 / 0.85); /* lines framing the statement */
  --red-band: #d32f2f;
  --white: #fff;
  --paper: #f5f8fc;
  --ink: #0d1b33;
  --slate: #4f5f7a;
  --mist: #c6d3ea;
  --field: #f0f3fa;
  --field-line: #8db8f5;
  --red: #c62828;
  --error: #b3261e;
  --error-on-blue: #ffe0e0;
  --wa: #25d366;

  /* Karantina is a narrow display face — sizes are set larger than usual. */
  --font: "Karantina", "Heebo", "Arial Hebrew", system-ui, Arial, sans-serif;
  --font-alt: "Secular One", "Heebo", "Arial Hebrew", system-ui, Arial, sans-serif; /* lower section */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 16px;
  --focus: var(--sky);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
  background: var(--midnight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.container {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  z-index: 100;
  inset-inline-start: 16px;
  top: -80px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.noscript { padding: 16px; text-align: center; background: var(--white); color: var(--ink); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--lg { --btn-h: 60px; padding: 0 34px; font-size: 30px; }
.btn__icon { width: 20px; height: 20px; flex: none; transition: transform 0.25s var(--ease); }

.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: #eaf2ff; }
.btn--light:hover .btn__icon { transform: translateX(-3px); }

.btn--outline {
  background: rgb(255 255 255 / 0.04);
  border-color: rgb(255 255 255 / 0.6);
  color: var(--white);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { background: rgb(255 255 255 / 0.12); border-color: var(--white); }

.btn:active { transform: translateY(1px); }

/* Donation link while its URL is not configured yet */
.btn[aria-disabled="true"] { opacity: 0.62; cursor: not-allowed; transform: none; }
.btn[aria-disabled="true"]:hover { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.6); }
.btn__soon {
  padding: 3px 9px 1px;
  background: rgb(255 255 255 / 0.18);
  font-size: 18px;
  font-weight: 400;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  padding-top: max(14px, env(safe-area-inset-top));
}
.site-header__inner { display: flex; justify-content: flex-start; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}
.brand__logo {
  width: 54px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.45));
}
.brand__text { display: flex; flex-direction: column; line-height: 0.92; text-shadow: 0 2px 12px rgb(0 0 0 / 0.4); }
.brand__name { font-size: 38px; font-weight: 700; }
.brand__tagline { font-size: 20px; font-weight: 400; color: var(--mist); }
@media (min-width: 768px) {
  .site-header { padding-top: 26px; }
  .brand { gap: 14px; }
  .brand__logo { width: 74px; }
  .brand__name { font-size: 50px; }
  .brand__tagline { font-size: 25px; }
}
@media (min-width: 1280px) { .brand__logo { width: 82px; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  --hero-h: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }

/* Colour grade: turns the white field royal blue and the stripes deep navy,
   so the flag stays recognisable but reads as a calm backdrop. */
.hero__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1c48c8 0%, #0d3aa8 55%, #0a2b84 100%);
  mix-blend-mode: multiply;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--midnight) 0%, rgb(7 27 59 / 0.85) 12%, rgb(7 27 59 / 0) 42%),
    linear-gradient(to bottom, rgb(5 15 36 / 0.55) 0%, rgb(5 15 36 / 0) 22%),
    linear-gradient(to right, rgb(7 27 59 / 0.6) 0%, rgb(7 27 59 / 0) 22%),
    radial-gradient(120% 90% at 50% 40%, rgb(7 27 59 / 0) 40%, rgb(7 27 59 / 0.55) 100%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "portrait" "statement" "actions";
  justify-items: center;
  padding-top: calc(max(14px, env(safe-area-inset-top)) + 86px);
  padding-bottom: 44px;
  text-align: center;
}

/* Title */
.hero__title {
  grid-area: title;
  position: relative;
  z-index: 2;
  font-size: clamp(56px, 16vw, 78px);
  font-weight: 700;
  line-height: 0.88;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgb(2 10 30 / 0.45);
}
.hero__title > span { display: block; }
.hero__title-accent { color: var(--sky); }

/* Portrait */
.hero__portrait {
  grid-area: portrait;
  position: relative;
  z-index: 0;
  margin: 8px calc(var(--gutter) * -1) -86px;
  width: calc(100% + var(--gutter) * 2);
  max-width: 560px;
  pointer-events: none;
}
.hero__portrait img {
  position: relative;
  width: 100%;
  height: auto;
  filter: saturate(0.97) contrast(1.03);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 34%);
  mask-image: linear-gradient(to top, transparent 0%, #000 34%);
}
.hero__glow {
  position: absolute;
  top: -4%;
  left: 18%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(150 185 255 / 0.42), rgb(90 130 240 / 0.14) 55%, transparent 100%);
}

/* Statement — light type straight on the flag; the last line sits on a red band */
.statement {
  grid-area: statement;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
  width: 100%;
  max-width: 560px;
  margin-top: 18px;
  padding: 18px 0 20px;
  /* Framed between two light-blue rules, separating it from the headline */
  border-block: 3px solid var(--rule);
  color: var(--sky-text);
  font-size: clamp(29px, 8.2vw, 37px);
  font-weight: 700;
  line-height: 1.04;
  text-shadow: 0 2px 18px rgb(2 10 30 / 0.6), 0 1px 3px rgb(2 10 30 / 0.55);
}
/* Soft dark scrim behind the text where it overlaps the portrait (mobile/tablet) */
.statement::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -36px calc(var(--gutter) * -1) -20px;
  background: linear-gradient(to bottom, rgb(7 27 59 / 0) 0%, rgb(7 27 59 / 0.72) 30%, rgb(7 27 59 / 0.72) 80%, rgb(7 27 59 / 0) 100%);
  pointer-events: none;
}
.statement__line { display: block; text-wrap: balance; }
.statement__line--lead { color: var(--white); font-size: 1.14em; }
.statement__line--red { margin-top: 0.28em; }
.statement__line--red > span {
  display: inline-block;
  padding: 0.1em 0.3em 0.02em;
  background: var(--red-band);
  color: var(--white);
  font-size: 1.04em;
  text-shadow: 0 1px 2px rgb(80 0 0 / 0.35);
  box-shadow: 0 12px 30px -8px rgb(214 40 40 / 0.65), 0 0 46px rgb(235 50 50 / 0.35);
  animation: red-pulse 3.6s ease-in-out infinite;
}
/* Very slow, gentle pulse — the band dims slightly and its glow softens, never disappears */
@keyframes red-pulse {
  0%, 100% { background-color: var(--red-band); box-shadow: 0 12px 30px -8px rgb(214 40 40 / 0.65), 0 0 46px rgb(235 50 50 / 0.38); }
  50% { background-color: #b92626; box-shadow: 0 12px 30px -10px rgb(214 40 40 / 0.4), 0 0 30px rgb(235 50 50 / 0.16); }
}

/* Actions */
.hero__actions {
  grid-area: actions;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin-top: 22px;
}
.hero__actions .btn--lg { padding: 0 22px; }

/* Video pause / play */
.video-toggle {
  position: absolute;
  z-index: 21;
  top: max(14px, env(safe-area-inset-top));
  inset-inline-end: var(--gutter);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  background: rgb(5 15 36 / 0.35);
  color: var(--white);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, border-color 0.2s;
}
.video-toggle:hover { background: rgb(5 15 36 / 0.6); border-color: var(--white); }
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle__play { display: none; }
.video-toggle[aria-pressed="true"] .video-toggle__play { display: block; }
.video-toggle[aria-pressed="true"] .video-toggle__pause { display: none; }

/* Tablet: stacked, roomier */
@media (min-width: 600px) and (max-width: 979px) {
  .hero__grid { padding-top: 150px; padding-bottom: 64px; }
  .hero__title { font-size: clamp(80px, 12vw, 100px); }
  .hero__portrait { width: 86%; margin-inline: auto; margin-bottom: -110px; }
  .hero__portrait img {
    -webkit-mask-image:
      linear-gradient(to top, transparent 0%, #000 34%),
      linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to top, transparent 0%, #000 34%),
      linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
  .statement { max-width: 620px; margin-top: 24px; padding: 22px 0 24px; font-size: clamp(40px, 5.8vw, 50px); }
  .hero__actions { max-width: 620px; grid-template-columns: auto auto; justify-content: center; gap: 14px; }
}

/* Desktop: portrait beside the copy, its gaze leading into the headline */
@media (min-width: 980px) {
  .hero { --hero-h: clamp(660px, 100svh, 1000px); }
  .hero__shade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgb(7 27 59 / 0.62) 0%, rgb(7 27 59 / 0.45) 32%, rgb(7 27 59 / 0) 58%);
  }
  .hero__grid {
    height: var(--hero-h);
    grid-template-columns: minmax(0, 610px) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1.1fr;
    grid-template-areas: "." "title" "statement" "actions" ".";
    justify-items: start;
    align-items: start;
    padding-top: 120px;
    padding-bottom: 0;
    text-align: start;
  }
  .hero__title { font-size: clamp(84px, 7.4vw, 124px); line-height: 0.86; }
  .hero__title > span { white-space: nowrap; }

  .hero__portrait {
    position: absolute;
    bottom: 0;
    inset-inline-end: -48px;
    width: auto;
    max-width: none;
    height: calc(var(--hero-h) * 0.9);
    aspect-ratio: 1240 / 1268;
    margin: 0;
  }
  .hero__portrait img {
    width: 100%;
    height: 100%;
    -webkit-mask-image:
      linear-gradient(to top, transparent 0%, #000 24%),
      linear-gradient(to right, transparent 0%, #000 10%, #000 78%, transparent 99%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to top, transparent 0%, #000 24%),
      linear-gradient(to right, transparent 0%, #000 10%, #000 78%, transparent 99%);
    mask-composite: intersect;
  }
  .hero__glow { top: -2%; left: 20%; width: 66%; }

  .statement {
    align-items: flex-start;
    justify-self: start;
    width: 100%;
    max-width: 540px;
    margin-top: 34px;
    padding: 24px 0 26px;
    font-size: clamp(40px, 3.3vw, 54px);
  }
  .statement::before { display: none; }
  .statement__line { white-space: nowrap; }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    width: auto;
    margin-top: 30px;
  }
  .hero__actions .btn--lg { padding: 0 34px; }

  .video-toggle { top: auto; bottom: 28px; inset-inline-end: 28px; }
}

@media (min-width: 980px) and (max-width: 1199px) {
  .hero__grid { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); }
  .hero__portrait { inset-inline-end: -90px; height: calc(var(--hero-h) * 0.84); }
}

@media (min-width: 1600px) { .hero__portrait { inset-inline-end: 0; } }

/* Entrance — CSS only, so content is never hidden if scripts fail */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
/* Portrait starts partly visible so it still counts as the LCP paint. */
@keyframes portrait-in {
  from { opacity: 0.3; transform: scale(1.025); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: rise 0.9s var(--ease) both; }
.hero__title.reveal { animation-delay: 0.05s; }
.statement.reveal { animation-delay: 0.2s; }
.hero__actions.reveal { animation-delay: 0.34s; }
.reveal--portrait { animation: portrait-in 1.3s var(--ease) both; transform-origin: 50% 100%; }

/* ==========================================================================
   Registration section — set in Secular One (single weight, never faux-bold)
   ========================================================================== */
.register,
.site-footer {
  font-family: var(--font-alt);
  font-weight: 400;
  font-synthesis: none;
}
.register *, .site-footer * { font-weight: 400 !important; }

.register {
  position: relative;
  padding: 44px 0 72px;
  background:
    radial-gradient(55% 60% at 80% 55%, rgb(0 56 184 / 0.22), transparent 70%),
    var(--midnight);
}
.register__grid { display: grid; gap: 34px; align-items: center; }

.register__intro { text-align: center; }
.flag-rule { display: inline-grid; gap: 6px; width: 64px; margin-bottom: 20px; }
.flag-rule span { height: 4px; background: #3f74ff; }

.register__lead {
  font-size: clamp(26px, 7.2vw, 34px);
  line-height: 1.2;
  text-wrap: balance;
}
.register__text {
  max-width: 32ch;
  margin: 14px auto 0;
  color: var(--mist);
  font-size: clamp(18px, 4.8vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}
.register__donate { display: none; margin-top: 26px; }
.register .btn { font-size: 20px; }
.register .btn__soon { font-size: 13px; padding: 2px 8px; }

@media (min-width: 980px) {
  .register { padding: 96px 0 120px; }
  .register__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 72px; }
  .register__intro { text-align: start; }
  .register__lead { font-size: clamp(30px, 2.5vw, 38px); }
  .register__text { margin-inline: 0; font-size: 21px; }
  .register__donate { display: block; }
}
@media (min-width: 1280px) {
  .register__lead { font-size: 33px; }
  .register__lead span { display: block; }   /* break after "במדינת ישראל," */
}

/* ==========================================================================
   Registration panel (blue, square, clean)
   ========================================================================== */
.card {
  --focus: var(--white);
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  padding: 30px 20px 28px;
  background: var(--form-blue);
  color: var(--white);
  box-shadow: 0 40px 80px -36px rgb(0 0 0 / 0.8);
}
@media (min-width: 600px) { .card { padding: 44px 44px 40px; } }

.card__stage { animation: stage-in 0.5s var(--ease) both; }
.card__stage[hidden] { display: none; }
@keyframes stage-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.card.is-leaving .card__stage { opacity: 0; transform: translateY(-6px); transition: opacity 0.22s, transform 0.22s; }

.card__title {
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(34px, 9.4vw, 46px);
  line-height: 1.05;
}
.card__title:focus { outline: none; }

.form__row { display: grid; gap: 0 22px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { position: relative; margin-bottom: 18px; }
.field__label {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font-size: 17px;
  line-height: 1.2;
}
.field__input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--field-line);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font-size: 19px;
  box-shadow: 0 6px 14px -8px rgb(0 10 50 / 0.55);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.field__input::placeholder { color: #6b7894; opacity: 1; }
.field__input:hover { border-color: #b9d4fb; }
.field__input:focus {
  outline: none;
  border-color: var(--white);
  background: var(--white);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9), 0 6px 14px -8px rgb(0 10 50 / 0.55);
}
.field__input--ltr { text-align: right; letter-spacing: 0.02em; }
.field__input--ltr::placeholder { text-align: right; }
/* Belt and braces: hide any engine-drawn autofill / list affordances on the city field */
.combo__input::-webkit-calendar-picker-indicator,
.combo__input::-webkit-contacts-auto-fill-button,
.combo__input::-webkit-credentials-auto-fill-button { display: none !important; visibility: hidden; pointer-events: none; }

.field.is-invalid .field__input { border: 2px solid #ff8f8f; background: #fff6f6; }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px #ffb3b3; }

.field__error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--error-on-blue);
  font-size: 15px;
  line-height: 1.3;
}
.field__error:empty { display: none; }
.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff6b6b;
  color: var(--white);
  font-size: 12px;
  line-height: 1;
}

/* City combobox */
.combo__control { position: relative; }
.combo__input { padding-inline-end: 52px; }
.combo__toggle {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.combo__toggle:hover { color: var(--blue); }
.combo__toggle svg { width: 22px; height: 22px; transition: transform 0.2s; }
.combo.is-open .combo__toggle svg { transform: rotate(180deg); }

.combo__list,
.combo__empty {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  inset-inline: 0;
  margin: 0;
  border: 1px solid var(--field-line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 22px 44px -16px rgb(3 10 40 / 0.6);
}
.combo__list {
  max-height: min(320px, 42vh);
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}
.combo__list[hidden], .combo__empty[hidden] { display: none; }
.combo__option {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 14px;
  font-size: 18px;
  line-height: 1.25;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.combo__option mark { background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.combo__option:hover { background: #f1f5fc; }
.combo__option.is-active { background: #e3ecfd; color: var(--blue); box-shadow: inset -3px 0 0 var(--blue); }
.combo__more { padding: 10px 14px 6px; color: var(--slate); font-size: 14px; }
.combo__empty { padding: 14px 16px; color: var(--slate); font-size: 16px; }

/* Honeypot */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Checkbox */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 20px;
  color: #e3ebff;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.check input {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.check__box {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--field-line);
  background: var(--white);
}
.check__box::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 6px;
  height: 12px;
  border: solid var(--form-blue);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s var(--ease);
}
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--white); outline-offset: 2px; }

.form__error {
  margin-bottom: 16px;
  padding: 11px 14px;
  background: var(--white);
  color: var(--error);
  font-size: 16px;
  line-height: 1.35;
}
.form__error:empty { display: none; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
}
.form__privacy {
  flex: 1 1 240px;
  color: #d9e4ff;
  font-size: 14px;
  line-height: 1.5;
}
.form__privacy a { color: var(--white); text-underline-offset: 3px; }

/* Submit — compact, square, with a hard offset shadow */
.register .btn--submit {
  --btn-h: 54px;
  order: 2;
  flex: none;
  min-width: 160px;
  padding: 0 28px;
  background: var(--sky-btn);
  color: var(--navy);
  font-size: 22px;
  box-shadow: 5px 5px 0 var(--navy);
}
.btn--submit:hover { background: var(--white); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--navy); }
.btn--submit:hover .btn__icon { transform: translateX(-4px); }
.btn--submit:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--navy); }
.btn--submit:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.btn--submit .btn__icon { width: 20px; height: 20px; }
.btn--submit .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgb(10 36 99 / 0.25);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn--submit.is-loading { cursor: progress; background: #c9e1ff; transform: none; box-shadow: 3px 3px 0 var(--navy); }
.btn--submit.is-loading .spinner { display: block; }
.btn--submit.is-loading .btn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Success
   ========================================================================== */
.success { text-align: center; }
.success__mark { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--white); }
.success__mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s var(--ease) 0.1s forwards; }
.success__mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.45s var(--ease) 0.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.success__title { margin-bottom: 8px; }
.success__sub { color: #dfe8ff; font-size: 17px; line-height: 1.45; text-wrap: balance; }

.wa-list { display: grid; gap: 14px; margin: 24px 0 18px; }
.wa-btn {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 14px;
  align-items: center;
  column-gap: 14px;
  min-height: 76px;
  padding: 12px 18px 12px 22px;
  background: var(--white);
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
  text-align: start;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--navy);
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-btn::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
}
.wa-btn[href]:hover { background: #eaf2ff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--navy); }
.wa-btn__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
}
.wa-btn__icon svg { width: 26px; height: 26px; }
.wa-btn__text { grid-column: 2; }
.wa-btn__soon { display: none; grid-column: 2; margin-top: 2px; font-size: 14px; }

.wa-btn[aria-disabled="true"] {
  background: rgb(255 255 255 / 0.14);
  color: #e3ebff;
  box-shadow: none;
  cursor: not-allowed;
}
.wa-btn[aria-disabled="true"]::after { display: none; }
.wa-btn[aria-disabled="true"] .wa-btn__icon { background: rgb(255 255 255 / 0.25); }
.wa-btn[aria-disabled="true"] .wa-btn__soon { display: block; }

.success__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  background: rgb(5 15 36 / 0.22);
  color: #e3ebff;
  font-size: 14.5px;
  line-height: 1.45;
  text-align: start;
}
.success__note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--white); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: var(--abyss);
  color: #93a5c4;
  font-size: 15px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.site-footer__copy:empty { display: none; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__nav a { color: var(--mist); text-underline-offset: 3px; }
.site-footer__nav a:hover { color: var(--white); }

/* ==========================================================================
   Content pages (privacy policy, accessibility statement)
   ========================================================================== */
.doc-header { padding: 22px 0; background: var(--midnight); border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.doc-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-header .brand__logo { width: 56px; filter: none; }
.doc-header a.back { color: var(--mist); font-size: 24px; text-underline-offset: 3px; }
.doc { --focus: var(--blue); background: var(--paper); color: var(--ink); padding: 44px 0 80px; }
.doc article { max-width: 760px; }
.doc h1 { font-size: clamp(52px, 10vw, 70px); font-weight: 700; color: var(--navy); line-height: 0.95; margin-bottom: 8px; }
.doc h2 { font-size: 34px; font-weight: 700; color: var(--navy); margin: 30px 0 6px; line-height: 1; }
.doc p, .doc li { font-size: 25px; line-height: 1.25; }
.doc ul { padding-inline-start: 24px; }
.doc a { color: var(--blue); }
.doc .meta { color: var(--slate); font-size: 21px; }
.doc .todo { background: #fff3c4; padding: 0 4px; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__video { display: none; }
  .btn--submit .spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}

@media (forced-colors: active) {
  .statement__line--red > span { border: 2px solid CanvasText; }
  .btn, .wa-btn, .field__input { border: 1px solid CanvasText; }
}
