/* Self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt).
   Served from this site so visitors make no requests to Google. */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/heebo-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070d1a;
  --bg-alt: #0b1324;
  --card: #101a30;
  --card-hover: #14213d;
  --line: #1f2c47;
  --line-strong: #2c3d61;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --accent: #22c7f2;
  --accent-strong: #5bd8f8;
  --accent-ink: #04202b;
  --blue: #2f7df6;
  --danger: #fca5a5;
  /* Fill behind white text (buttons, step numbers): both ends keep white text above 4.5:1 */
  --fill-from: #0a7aa0;
  --fill-to: #2563eb;
  /* Form field borders: at least 3:1 against the card and page backgrounds */
  --field-border: #5a6c91;
  /* WhatsApp green for the floating shortcut; white keeps at least 3:1 on both ends */
  --wa-from: #16a06a;
  --wa-to: #128c7e;
  --radius: 14px;
  --radius-sm: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* Anchors and keyboard focus land below the sticky nav, never hidden under it */
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Heebo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Accessibility helpers ---------- */

/* Text for screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* "Skip to main content": off screen until it gets keyboard focus */
.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

/* Arrows drawn for Hebrew (←) point the other way in English */
.arr {
  display: inline-block;
}

[dir="ltr"] .arr {
  transform: scaleX(-1);
}

.req {
  color: var(--danger);
  font-weight: 700;
}

.icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--fill-from), var(--fill-to));
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(34, 199, 242, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(34, 199, 242, 0.38);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: none;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
  box-shadow: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */

nav.topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 13, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topnav-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.topnav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topnav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-contact-item {
  display: none;
}

.topnav-links a {
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.topnav-links a:hover,
.topnav-links a:focus-visible {
  color: var(--accent-strong);
}

.lang-toggle {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 8px 11px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  text-align: center;
  background: linear-gradient(135deg, #0b1324 0%, #142a66 50%, #0b1324 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(34, 199, 242, 0.2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.hero .wrap {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(34, 199, 242, 0.4);
  border-radius: 999px;
  background: rgba(34, 199, 242, 0.1);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 199, 242, 0.2);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  margin: 22px auto 18px;
  max-width: 20ch;
}

h1 span {
  display: block;
}

.grad {
  background: linear-gradient(90deg, var(--accent-strong), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--accent-strong);
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.lede {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 40px auto;
}

.hero-stat {
  padding: 20px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.hero-stat .num {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-strong);
}

.hero-stat .label {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Sections ---------- */

.sec {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.sec.alt {
  background: var(--bg-alt);
}

.sec-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  font-weight: 700;
}

.sec-head .lead {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.sec-cta {
  margin-top: 40px;
  text-align: center;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: rgba(34, 199, 242, 0.5);
  background: var(--card-hover);
  transform: translateY(-3px);
}

.card h3,
.card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* "why" cards: a big label on top, like a stat */
.fact .figure {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(34, 199, 242, 0.12);
  color: var(--accent-strong);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.chips li {
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.78rem;
}

a.ask {
  margin-top: 18px;
  align-self: flex-start;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a.ask:hover,
a.ask:focus-visible {
  border-bottom-color: var(--accent-strong);
}

/* ---------- Process steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step .step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fill-from), var(--fill-to));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.step p+p {
  margin-top: 10px;
}

/* Topics covered in the session */

.topics {
  margin-top: 64px;
}

.topics h3 {
  margin-bottom: 32px;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

/* Desktop: all five in one row; narrower widths wrap with the last row centered */
.topic-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-list li {
  display: flex;
  flex: 0 0 20%;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  text-align: center;
}

.topic-list li + li {
  border-inline-start: 1px solid var(--line);
}

.topic-list .icon-box {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  border-radius: var(--radius-sm);
}

.topic-list .icon-box svg {
  width: 19px;
  height: 19px;
}

.topic-list p {
  color: var(--muted);
  font-size: 0.93rem;
}

.topic-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.sec-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.portrait {
  position: relative;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 20px 50px rgba(34, 199, 242, 0.15);
}

.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 17px;
}

.about-text h2 {
  margin-bottom: 6px;
}

.role {
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 18px;
}

.about-text .lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-bottom: 14px;
  max-width: 64ch;
}

.about-links {
  margin-top: 4px;
}

.about-links svg {
  width: 18px;
  height: 18px;
}

/* Certifications & teaching */
.creds {
  margin-top: 30px;
}

.creds-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.creds-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: rgba(34, 199, 242, 0.5);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* ---------- Contact ---------- */

/* The closing section: carries the hero's gradient so the page ends on the same note */
.contact {
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(34, 199, 242, 0.16), transparent 70%),
    linear-gradient(135deg, #0b1324 0%, #142a66 50%, #0b1324 100%);
}

.contact .sec-head h2 {
  max-width: 22ch;
  margin: 0 auto;
}

/* Desktop: WhatsApp and "what happens next" beside the form.
   Mobile: WhatsApp, then the form, then "what happens next". */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "wa form"
    "next form";
  grid-template-rows: auto 1fr;
  gap: 24px 32px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: start;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-card-head .icon-box {
  flex-shrink: 0;
  margin: 0;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-wa {
  grid-area: wa;
  border-color: rgba(34, 199, 242, 0.4);
}

.contact-wa p,
.form-intro {
  color: var(--text-soft);
}

.contact-next {
  grid-area: next;
  padding: 4px 8px;
}

.contact-next h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.next-steps {
  counter-reset: next;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.next-steps li {
  counter-increment: next;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.next-steps li::before {
  content: counter(next);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(34, 199, 242, 0.08);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.next-steps strong {
  color: var(--text);
  font-weight: 600;
}

.contact-form {
  grid-area: form;
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
}

.field-error:empty {
  display: none;
}

/* After sending: only the thank-you panel stays */
.contact-form.sent> :not(.form-success) {
  display: none;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 8px;
  text-align: center;
}

.form-success:focus {
  outline: none;
}

.form-success .icon-box {
  width: 60px;
  height: 60px;
  margin: 0 0 4px;
  border-radius: 50%;
}

.form-success .icon-box svg {
  width: 28px;
  height: 28px;
}

.form-success p {
  color: var(--text-soft);
  max-width: 36ch;
}

.form-success .btn {
  margin-top: 8px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row .label {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 12px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 96px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  /* Transparent, not none: high-contrast modes drop the shadow but draw this outline */
  outline: 2px solid transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 199, 242, 0.45);
}

.contact-form [aria-invalid="true"] {
  border-color: var(--danger);
}

.contact-form .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  inset-inline-start: -9999px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-strong);
  min-height: 1.5em;
}

.form-status.error {
  color: var(--danger);
}

/* ---------- Floating WhatsApp shortcut ---------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-from), var(--wa-to));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, visibility 0.2s;
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.35), 0 0 0 1px #25d366;
}

.wa-float:focus-visible {
  outline-color: #25d366;
}

/* Out of sight (and out of the tab order) while the contact section or footer is on screen */
.wa-float.is-away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

/* A label beside the button on hover or keyboard focus */
.wa-float::after {
  content: attr(aria-label);
  position: absolute;
  top: 50%;
  inset-inline-end: calc(100% + 12px);
  transform: translateY(-50%);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.wa-float:focus-visible::after {
  opacity: 1;
}

@media (hover: hover) {
  .wa-float:hover::after {
    opacity: 1;
  }
}

/* ---------- Check dialogs (WhatsApp, sending the form) ---------- */

.check-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 30px 24px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.check-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.check-dialog::backdrop {
  background: rgba(3, 7, 15, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.check-dialog .icon-box {
  margin: 0;
}

.check-dialog h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.dialog-text {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.dialog-status {
  display: block;
  min-height: 1.5em;
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.dialog-status.success {
  color: var(--accent-strong);
  font-weight: 600;
}

.dialog-status.error {
  color: var(--danger);
}

.check-dialog a.ask {
  align-self: center;
  margin-top: 4px;
}

.check-dialog .btn {
  min-width: 160px;
}

/* Cloudflare's box runs out of the layout ("offstage") and is brought in only when the
   visitor must tick it. Not display:none, so the invisible check keeps running. */
.check-dialog .turnstile.offstage {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(34, 199, 242, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dialog-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  padding: 4px 8px;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--text);
}

/* ---------- Accessibility statement page ---------- */

/* Bilingual content: show only the block that matches the page language */
html[lang="en"] [data-lang="he"],
html[lang="he"] [data-lang="en"] {
  display: none;
}

.statement article {
  max-width: 760px;
  margin: 0 auto;
}

.statement h1 {
  margin: 0 0 8px;
  max-width: none;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.statement .updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.statement h2 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
}

.statement p,
.statement li,
.statement dd {
  color: var(--text-soft);
}

.statement p + p {
  margin-top: 12px;
}

.statement ul {
  margin: 0;
  padding-inline-start: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.statement strong {
  color: var(--text);
}

.statement a:not(.btn) {
  color: var(--accent-strong);
}

.contact-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 16px 0;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-dl dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-dl dd {
  margin: 0;
}

.statement + footer .footer-bottom {
  border-top: 0;
  padding-top: 0;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--accent-strong);
}

/* ---------- Footer ---------- */

footer {
  padding: 52px 0 28px;
  background: #050a14;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-grid .brand {
  color: var(--text);
  margin-bottom: 10px;
}

.footer-grid h3 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a:not(.brand) {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-grid a:not(.brand):hover,
.footer-grid a:not(.brand):focus-visible {
  color: var(--accent-strong);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

/* In em (1040px at the default text size), so a larger browser text size switches to the
   menu button instead of pushing the nav off screen. Keep in sync with the menu script. */
@media (max-width: 65em) {
  .nav-toggle {
    display: flex;
  }

  .topnav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
  }

  .topnav-links.open {
    display: flex;
  }

  .topnav-links li+li {
    border-top: 1px solid var(--line);
  }

  .topnav-links a {
    display: block;
    padding: 15px 24px;
    font-size: 1rem;
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .topic-list li {
    flex-basis: 33.333%;
  }

  .topic-list li + li {
    border-inline-start: 0;
  }

  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portrait {
    width: 220px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "wa"
      "form"
      "next";
    grid-template-rows: none;
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .topnav-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .topnav-actions {
    gap: 10px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 32px auto;
  }

  .sec {
    padding: 60px 0;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .topics {
    margin-top: 48px;
  }

  .topic-list {
    row-gap: 24px;
  }

  .topic-list li {
    flex-basis: 100%;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    text-align: start;
  }

  .cta-row .btn {
    width: 100%;
  }

  .contact-card {
    padding: 24px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .wa-float {
    bottom: 16px;
    inset-inline-end: 16px;
    width: 52px;
    height: 52px;
  }

  .wa-float svg {
    width: 28px;
    height: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-grid>div:first-child {
    grid-column: 1 / -1;
  }

  .contact-dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-dl dd + dt {
    margin-top: 10px;
  }
}

@media (max-width: 360px) {
  .topnav .btn-sm {
    display: none;
  }

  /* The contact button moves into the menu */
  .nav-contact-item {
    display: block;
  }
}

/* Windows high-contrast mode: the menu bars are painted backgrounds, which it would hide */
@media (forced-colors: active) {
  .nav-toggle span {
    forced-color-adjust: none;
    background: ButtonText;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .wa-float,
  .wa-float::after {
    transition: none;
  }

  .btn:hover,
  .card:hover,
  .wa-float:hover,
  .wa-float:focus-visible,
  .wa-float.is-away {
    transform: none;
  }

  .spinner {
    animation-duration: 2.4s;
  }
}
