/* Theme: Likud blue. Change colors here only. */
:root {
  --blue: #215ca5;        /* Likud logo blue */
  --blue-dark: #174582;
  --navy: #0b1f3a;
  --ink: #0f1b2d;
  --muted: #5a6b82;
  --light: #eaf1fb;
  --white: #fff;
  --error: #b3261e;
  --ok: #1b7f3b;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: radial-gradient(120% 80% at 80% 0%, #163a6b 0%, var(--navy) 55%, #050d1a 100%) fixed;
  background-color: var(--navy);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #ffd24a; outline-offset: 2px; }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; max-width: 1200px; margin: 0 auto;
}
.logo { width: 120px; filter: brightness(0) invert(1); }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; font-size: 1.1rem;
  color: var(--white); background: var(--blue);
  padding: 14px 28px; border-radius: 999px; min-height: 48px;
  transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { font-size: .95rem; padding: 8px 18px; min-height: 40px; background: var(--white); color: var(--blue); }
.btn-sm:hover { background: var(--light); }

/* Hero: mobile first */
.hero {
  display: grid; gap: 0;
  grid-template-areas: "photo" "intro" "form";
  max-width: 1200px; margin: 0 auto; padding: 0 16px 32px;
}
.photo { grid-area: photo; margin: 0 -16px; }
.photo img {
  width: 100%; max-height: 62vh; object-fit: cover; object-position: top;
  /* Cut-out photo (transparent). Fade the bottom only: the photo crops the arms. */
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
          mask-image: linear-gradient(#000 75%, transparent);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}
.intro { grid-area: intro; margin-top: -90px; position: relative; text-align: center; }
.eyebrow { margin: 0; font-weight: 600; letter-spacing: .04em; color: #b9d0f0; }
h1 { margin: 0; font-size: clamp(3rem, 13vw, 6.5rem); line-height: 1; font-weight: 900; }
h1 span { color: #5d9ae6; }
.lead { margin: 10px 0 24px; font-size: 1.2rem; color: #dbe6f5; }
.lead:has(+ .fine) { margin-block-end: 6px; }
.fine { margin: 0 0 24px; font-size: .8rem; color: #b9c7da; }

/* Form card */
.card {
  grid-area: form;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 22px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  width: 100%; max-width: 460px; margin: 0 auto;
}
.card h2 { margin: 0 0 14px; color: var(--blue); font-size: 1.5rem; }
.field { margin-bottom: 6px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #c3cfdf; border-radius: 10px; background: #fbfdff; color: var(--ink);
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(33,92,165,.25); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.err { min-height: 1.2em; margin: 2px 0 0; font-size: .85rem; color: var(--error); }

.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue); }

#turnstile { margin: 14px 0 6px; min-height: 0; }
.card .btn { width: 100%; margin-top: 8px; }
.status { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; text-align: center; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--error); }
.notice { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
.notice a { color: var(--blue); }

.done { text-align: center; padding: 24px 0; }
.done h2 { font-size: 1.8rem; }

/* Footer */
.foot { text-align: center; padding: 24px 16px 32px; font-size: .85rem; color: #b9c7da; }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Desktop */
@media (min-width: 900px) {
  .top { padding: 22px 24px; }
  .logo { width: 150px; }
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "intro photo" "form photo";
    align-items: start; column-gap: 40px; padding: 8px 24px 48px;
  }
  .photo { margin: 0; align-self: start; position: sticky; top: 16px; }
  .photo img { max-height: 88vh; }
  .intro { margin-top: 24px; text-align: start; }
  .card { margin: 0; }
}

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

/* Legal pages (privacy, terms, accessibility) */
.doc { padding: 24px 16px; }
.legal { max-width: 760px; }
.legal h1 { color: var(--blue); margin-top: 0; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.2; font-weight: 800; }
.legal h2 { font-size: 1.15rem; margin: 20px 0 4px; color: var(--ink); }
.legal a { color: var(--blue); }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 4px; }
.legal .meta { color: var(--muted); font-size: .9rem; margin-top: 0; }
.legal .summary { background: var(--light); border-radius: 10px; padding: 4px 16px 8px; }
.legal ul.plain { list-style: none; padding: 0; }
.legal .back { margin-top: 28px; }
/* Draft placeholders. Remove all before go-live (docs/LEGAL.md). */
mark.todo { background: #fff3b0; color: #000; padding: 0 2px; border-radius: 3px; }
