/* ============================================================
   ש"ל שילה — landing-page kit (19.10.2026)
   What every page of the site gets from its layout, for the self-contained
   HTML landing pages in public/<slug>/ that never pass through it:
   the accessibility menu + its display modes (same as app/a11y.css, same
   saved preferences), the privacy-consent row and the legal footer links.
   Loaded by /lp/shilo-lp.js. Colours are the site's own tokens.
   ============================================================ */

/* ---------- skip link ---------- */
.lp-skip {
  position: fixed; top: 12px; right: 12px; z-index: 200;
  padding: 10px 18px; border-radius: 999px; background: #1b0e22; color: #fff;
  font: 700 14px/1.3 "Heebo", system-ui, sans-serif; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s;
}
.lp-skip:focus, .lp-skip:focus-visible { transform: none; outline: 3px solid #fff; box-shadow: 0 0 0 6px #c30071; }

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

/* ---------- privacy consent (inside the lead form) ---------- */
.lp-consent { display: flex; align-items: flex-start; gap: 0.6rem; text-align: start; }
.lp-consent input {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--red, #e8156a); cursor: pointer;
}
.lp-consent label { font-size: 0.78rem; line-height: 1.55; color: rgba(238, 242, 255, 0.82); cursor: pointer; }
.lp-consent a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.lp-consent .lp-req { color: var(--orange, #ff5aa0); }

/* ---------- legal links under the page footer ---------- */
.lp-legal { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.8; }
.lp-legal a { color: inherit !important; font-weight: 600 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.lp-legal span[aria-hidden] { margin: 0 0.45rem; opacity: 0.6; }

/* ---------- the accessibility menu ---------- */
.lp-a11y-trigger {
  position: fixed; z-index: 58; left: 0; top: 34%;
  width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 0 14px 14px 0; cursor: pointer;
  background: #c30071; color: #fff;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.6);
  transition: width 0.2s, background-color 0.2s;
}
.lp-a11y-trigger:hover { width: 52px; background: #a3005f; }
.lp-a11y-trigger[data-active]::after {
  content: ""; position: absolute; top: 7px; right: 7px;
  width: 9px; height: 9px; border-radius: 50%; background: #ffb01f; box-shadow: 0 0 0 2px #c30071;
}
.lp-a11y-trigger:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #260b3a; }
@media (max-width: 640px) {
  .lp-a11y-trigger, .lp-a11y-trigger:hover { width: 30px; height: 44px; border-radius: 0 12px 12px 0; }
  .lp-a11y-trigger svg { width: 20px; height: 20px; }
  .lp-a11y-trigger[data-active]::after { top: 4px; right: 3px; width: 7px; height: 7px; }
}
@media print { .lp-a11y-trigger, .lp-a11y-layer { display: none !important; } }

.lp-a11y-layer { position: fixed; inset: 0; z-index: 120; }
.lp-a11y-scrim { position: absolute; inset: 0; background: rgba(7, 4, 14, 0.5); }
.lp-a11y-panel {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: #1b0e22; border-radius: 22px; padding: 18px 18px 16px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  font-family: "Heebo", "Cairo", system-ui, sans-serif; text-align: start;
  /* the menu itself never zooms / re-spaces with the modes it controls */
  zoom: 1 !important; letter-spacing: normal !important; word-spacing: normal !important; line-height: 1.4 !important;
}
.lp-a11y-panel:focus { outline: none; }
@media (max-width: 560px) {
  .lp-a11y-panel { left: 8px; right: 8px; top: auto; bottom: 8px; transform: none; width: auto; }
}
.lp-a11y-panel * { box-sizing: border-box; letter-spacing: normal !important; word-spacing: normal !important; }
.lp-a11y-panel button { font: inherit; cursor: pointer; }
.lp-a11y-panel :focus-visible { outline: 3px solid #4f1970; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.lp-a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lp-a11y-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: #1b0e22; }
.lp-a11y-x {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: transparent; color: #3a2740;
}
.lp-a11y-x:hover { background: #f6f4f2; }

.lp-a11y-text { border: 1px solid #e8e0e5; border-radius: 16px; padding: 10px 12px 12px; margin: 0 0 10px; }
.lp-a11y-text legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: #3a2740; }
.lp-a11y-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-a11y-steps button {
  min-width: 64px; height: 44px; border: 0; border-radius: 12px; background: #f6f4f2; color: #1b0e22;
  font-size: 17px; font-weight: 800;
}
.lp-a11y-steps button:hover:not(:disabled) { background: #fdf0f8; color: #4f1970; }
.lp-a11y-steps button:disabled { opacity: 0.45; cursor: not-allowed; }
.lp-a11y-steps output { font-size: 16px; font-weight: 800; color: #4f1970; }

.lp-a11y-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-a11y-grid button {
  width: 100%; min-height: 84px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 12px; border-radius: 14px; border: 1.5px solid #e8e0e5; background: #fff; color: #1b0e22;
  text-align: start; transition: border-color 0.15s, background-color 0.15s;
}
.lp-a11y-grid button:hover { border-color: #f28cc3; }
.lp-a11y-grid button svg { color: #4f1970; margin-bottom: 2px; }
.lp-a11y-grid button[aria-pressed="true"] { background: #3a1055; border-color: #3a1055; color: #fff; }
.lp-a11y-grid button[aria-pressed="true"] svg { color: #ffb01f; }
.lp-a11y-grid button[aria-pressed="true"] .lp-a11y-hint { color: rgba(255, 255, 255, 0.85); }
.lp-a11y-label { font-size: 14px; font-weight: 800; }
.lp-a11y-hint { font-size: 12px; color: #6f6072; line-height: 1.35; }

.lp-a11y-foot { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; }
.lp-a11y-foot a { color: #4f1970; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lp-a11y-reset {
  margin-inline-end: auto; padding: 9px 16px; border: 0; border-radius: 999px; background: #1b0e22; color: #fff; font-weight: 700;
}
.lp-a11y-reset:disabled { background: #e8e0e5; color: #3a2740; cursor: not-allowed; }

/* ---------- display modes — classes on <html>, same names as the site ---------- */

/* text size — zooms the content (the pages mix px and rem, so rem scaling can't do it).
   The sticky form column itself stays one screen tall; its card zooms and scrolls inside it. */
html.a11y-text-1 .content-col, html.a11y-text-1 .form-card, html.a11y-text-1 .page-footer { zoom: 1.15; }
html.a11y-text-2 .content-col, html.a11y-text-2 .form-card, html.a11y-text-2 .page-footer { zoom: 1.3; }
html.a11y-text-3 .content-col, html.a11y-text-3 .form-card, html.a11y-text-3 .page-footer { zoom: 1.5; }

/* high contrast — the pages are dark: full-white secondary text, solid borders, a darker scrim */
html.a11y-contrast {
  --muted: #fff; --faint: #fff;
  --line: rgba(255, 255, 255, 0.55); --line-strong: rgba(255, 255, 255, 0.8);
}
html.a11y-contrast .hero::before { background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.8) 55%, rgba(0, 0, 0, 0.55) 100%) !important; }
html.a11y-contrast .lp-consent label { color: #fff; }
html.a11y-contrast input::placeholder { color: rgba(255, 255, 255, 0.78) !important; opacity: 1; }
html.a11y-contrast main a:not(.btn-primary):not(:has(img)) { text-decoration: underline; text-underline-offset: 3px; }
html.a11y-contrast :focus-visible { outline: 3px solid #ffd400 !important; box-shadow: 0 0 0 6px #000 !important; }

/* greyscale — on <html> so fixed elements keep the viewport as containing block */
html.a11y-mono { filter: grayscale(1); }

/* highlighted links */
html.a11y-links a:not(:has(img)):not(.lp-skip) {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px;
  background: #fff3a0 !important; color: #1b0e22 !important; border-radius: 3px; -webkit-text-fill-color: #1b0e22;
}
html.a11y-links a:not(:has(img)):not(.lp-skip) * { color: #1b0e22 !important; }
html.a11y-links a:has(img) { outline: 3px solid #d4a800; outline-offset: 2px; }

/* readable font — no display face, no condensed headlines */
html.a11y-font body,
html.a11y-font body *:not(svg):not(svg *) {
  font-family: Arial, "Heebo", Helvetica, sans-serif !important;
  letter-spacing: normal !important;
}
html.a11y-font .hl-strong,
html.a11y-font .section-title,
html.a11y-font .form-title { font-weight: 700 !important; line-height: 1.15 !important; }
html.a11y-font .lp-a11y-panel, html.a11y-font .lp-a11y-panel * { font-family: "Heebo", "Cairo", system-ui, sans-serif !important; }

/* text spacing — WCAG 1.4.12 values */
html.a11y-spacing body *:not(svg):not(svg *):not(.lp-a11y-panel):not(.lp-a11y-panel *) {
  line-height: 1.6 !important;
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}
html.a11y-spacing p { margin-bottom: 1em; }

/* stop motion — WCAG 2.2.2 (shilo-lp.js also pauses the videos) */
html.a11y-still *,
html.a11y-still *::before,
html.a11y-still *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-still .embers,
html.a11y-still .portrait::after { display: none !important; }

/* big cursor */
html.a11y-cursor,
html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l33 19-14 3-7 14z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.a11y-cursor a, html.a11y-cursor button, html.a11y-cursor label, html.a11y-cursor summary {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l33 19-14 3-7 14z' fill='%23ec008c' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer !important;
}

/* Windows high-contrast / forced colors */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; box-shadow: none; }
  .lp-a11y-grid button[aria-pressed="true"] { border: 3px solid Highlight; }
  .lp-a11y-trigger { border: 2px solid ButtonText; }
}

/* the success message takes focus after sending — no ring around the whole block */
#form-success:focus { outline: none; }
