/*
 * styles.css — Flowmentum. Mobile-first, light-only, logical properties
 * throughout so Hebrew RTL needs no mirrored rules.
 *
 * Palette is sampled from logo option 1: navy wordmark #121F31, mark gradient
 * #2458B7 → #235FC5 → #3694CA.
 *
 * Contrast: every text colour here is verified against its background at 4.5:1
 * or better (7:1 for body copy on white). NOTE the cyan #3694CA is 3.36:1 on
 * white — it is used for gradients, rules and large decorative type ONLY. Never
 * set it as a body-text colour, and never put white text on it.
 *
 * Theme: LIGHT ONLY, by decision. The logo lives on a near-white ground and a
 * one-theme site is one theme to keep accessible. `color-scheme: light` is set so
 * form controls, scrollbars and the caret follow. High contrast is available to
 * everyone through the accessibility panel instead of being a system guess.
 */

:root {
  color-scheme: light;

  --ink: #101d2e;
  --navy: #122f4b;
  --navy-deep: #0b1c2e;
  --blue: #1b62c8;
  --blue-deep: #123e86;
  --blue-mid: #2458b7;
  --cyan: #3694ca;          /* decorative only — see header note */
  --muted: #51637f;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --bg-deep: #0e2138;
  --line: #d8e3f0;
  --line-soft: #e8eff7;
  --focus: #0b57d0;
  --grad: linear-gradient(115deg, var(--blue-deep) 0%, var(--blue) 55%, var(--cyan) 100%);
  --grad-btn: linear-gradient(115deg, var(--blue) 0%, var(--blue-deep) 100%);

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --r1: 6px; --r2: 10px; --r3: 16px; --r4: 22px;
  --shadow: 0 1px 2px rgba(16, 29, 46, .06), 0 8px 24px rgba(16, 29, 46, .07);
  --shadow-lg: 0 2px 6px rgba(16, 29, 46, .08), 0 22px 48px rgba(16, 29, 46, .13);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Hebrew", sans-serif;
  --font-read: Verdana, Tahoma, "DejaVu Sans", sans-serif;
  --maxw: 1180px;
}

/* Accessibility panel: font scale is a data attribute so it survives on every
 * element that uses rem, including inputs. */
html[data-fontscale="1"] { font-size: 112.5%; }
html[data-fontscale="2"] { font-size: 125%; }
html[data-fontscale="3"] { font-size: 140%; }
html[data-fontscale="-1"] { font-size: 93.75%; }

* { box-sizing: border-box; }
/* `hidden` must win over the layout rules below. An element with an explicit
 * `display: flex` IGNORES the hidden attribute, which shipped the chat panel and
 * the consent dialog open on first paint. Keep this rule first. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
body.a11y-readable { font-family: var(--font-read); letter-spacing: .01em; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 var(--s3); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 var(--s4); }
a { color: var(--blue-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; height: auto; }
ul, ol { padding-inline-start: 1.2em; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: var(--s4); top: -3rem; z-index: 100;
  background: var(--navy); color: #fff; padding: var(--s2) var(--s4);
  border-radius: 0 0 var(--r1) var(--r1); text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 0; color: #fff; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s4); }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--blue-mid);
  text-decoration: underline; cursor: pointer;
}

/* ── buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: var(--s3) var(--s5);
  border: 1px solid transparent; border-radius: var(--r2);
  background: var(--grad-btn); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { background: #fff; color: var(--blue-deep); border-color: var(--line); }
.btn.ghost:hover { color: var(--blue-deep); border-color: var(--blue); background: var(--bg-alt); }
.btn.big { min-height: 52px; padding-inline: var(--s6); font-size: 1.05rem; }
.btn.small { min-height: 38px; padding: var(--s2) var(--s4); font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ── header ───────────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; gap: var(--s4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; margin-inline-end: auto; }
.brand-mark { width: 36px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); font-size: 1.02rem;
}
.brand-tag {
  font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--blue-mid);
  margin-block-start: 2px;
}
.navtoggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: var(--r1); cursor: pointer;
}
.navtoggle .bars, .navtoggle .bars::before, .navtoggle .bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
}
.navtoggle .bars { position: relative; }
.navtoggle .bars::before, .navtoggle .bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.navtoggle .bars::before { top: -6px; }
.navtoggle .bars::after { top: 6px; }
.nav { display: none; }
.nav[data-open] {
  display: block; position: absolute; inset-inline: 0; top: 100%;
  background: #fff; border-block-end: 1px solid var(--line); box-shadow: var(--shadow);
  padding: var(--s4);
}
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.nav a { display: block; padding: var(--s3) var(--s2); color: var(--navy); text-decoration: none; font-weight: 500; border-radius: var(--r1); }
.nav a:hover { background: var(--bg-alt); color: var(--blue-deep); }
.navactions { display: flex; align-items: center; gap: var(--s3); margin-block-start: var(--s3); }
.lang {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 var(--s3);
  border: 1px solid var(--line); border-radius: var(--r1);
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.lang:hover { border-color: var(--blue); color: var(--blue-deep); }

@media (min-width: 900px) {
  .navtoggle { display: none; }
  .nav { display: flex !important; align-items: center; gap: var(--s5); position: static; box-shadow: none; border: 0; padding: 0; background: none; }
  .nav ul { display: flex; gap: var(--s2); }
  .navactions { margin-block-start: 0; }
}

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: var(--s7) 0; background: linear-gradient(180deg, #fbfdff 0%, #eef5fc 100%); }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -18%; top: -30%;
  width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(54, 148, 202, .22), rgba(27, 98, 200, .05) 60%, transparent 70%);
  pointer-events: none;
}
.herogrid { position: relative; display: grid; gap: var(--s5); align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700;
  color: var(--blue-deep); margin-block-end: var(--s3);
}
.herotext h1 { margin-block-end: var(--s4); }
.lead { font-size: 1.09rem; color: #2c3d55; max-width: 62ch; }
.herobtns { display: flex; flex-wrap: wrap; gap: var(--s3); margin-block: var(--s5) var(--s3); }
.heroart { display: none; }
.strip {
  list-style: none; margin: var(--s6) auto 0; padding: var(--s4) var(--s4);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  border-block-start: 1px solid var(--line);
  font-size: .9rem; color: var(--muted); font-weight: 500;
}
.strip li { display: flex; align-items: center; gap: var(--s2); }
.strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }

@media (min-width: 900px) {
  .hero { padding-block-start: var(--s8); }
  .herogrid { grid-template-columns: 1.25fr .75fr; gap: var(--s7); }
  .heroart { display: block; justify-self: center; }
  .heroart img { width: min(320px, 100%); filter: drop-shadow(0 24px 42px rgba(18, 47, 75, .18)); }
}

/* ── bands & sections ─────────────────────────────────────────────────────── */
.band { padding-block: var(--s7); }
.band.alt { background: var(--bg-alt); }
.sectionlead { color: var(--muted); max-width: 68ch; margin-block-end: var(--s6); font-size: 1.03rem; }
@media (min-width: 900px) { .band { padding-block: var(--s8); } }

/* ── cards ────────────────────────────────────────────────────────────────── */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r3);
  padding: var(--s5); box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-block-end: var(--s2); }
.card p { margin: 0; color: var(--muted); }
.cardicon {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; background: var(--grad); color: #fff; margin-block-end: var(--s4);
}
.ic { width: 24px; height: 24px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ── steps ────────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); counter-reset: step; }
.step { padding-inline-start: var(--s6); position: relative; }
.step::before {
  content: ""; position: absolute; inset-inline-start: 12px; top: 2.4rem; bottom: -1.6rem;
  width: 2px; background: linear-gradient(var(--cyan), transparent);
}
.step:last-child::before { display: none; }
.stepn {
  position: absolute; inset-inline-start: 0; top: 0;
  font-weight: 700; font-size: .8rem; color: var(--blue-deep);
  background: #fff; border: 2px solid var(--cyan); border-radius: 50%;
  width: 26px; height: 26px; display: grid; place-items: center;
}
.step p { color: var(--muted); margin: 0; }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
  .step { padding-inline-start: 0; padding-block-start: var(--s6); }
  .step::before { inset-inline: 26px 0; top: 12px; bottom: auto; height: 2px; width: auto; background: linear-gradient(90deg, var(--cyan), transparent); }
}

/* ── why / stats ──────────────────────────────────────────────────────────── */
.whygrid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.whygrid li { padding-inline-start: var(--s5); border-inline-start: 3px solid var(--cyan); }
.whygrid p { color: var(--muted); margin: 0; }
@media (min-width: 700px) { .whygrid { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s7); } }

.aboutgrid { display: grid; gap: var(--s6); }
.stats { display: grid; gap: var(--s4); margin: 0; grid-template-columns: repeat(2, 1fr); }
.stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s4); }
.stats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stats dd { margin: var(--s1) 0 0; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
@media (min-width: 900px) { .aboutgrid { grid-template-columns: 1.4fr .6fr; gap: var(--s7); } }

/* ── faq ──────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: var(--s3); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s4) var(--s5); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: var(--s3) 0 0; color: var(--muted); }

/* ── contact form ─────────────────────────────────────────────────────────── */
.contactgrid { display: grid; gap: var(--s6); }
.contactlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.contactlist .k { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cform { background: #fff; border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5); box-shadow: var(--shadow); }
.field { margin-block-end: var(--s4); }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-block-end: var(--s2); color: var(--navy); }
.field .req { color: #b3261e; }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 46px; padding: var(--s3);
  border: 1px solid var(--line); border-radius: var(--r1);
  font: inherit; font-size: 1rem;   /* never below 16px: iOS zooms on focus */
  background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e; }
.field.check label { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink); }
.field.check input { width: 20px; height: 20px; margin-block-start: 2px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formmsg { margin: var(--s4) 0 0; font-weight: 500; }
.formmsg[data-kind="ok"] { color: #146c2e; }
.formmsg[data-kind="err"] { color: #b3261e; }
@media (min-width: 900px) { .contactgrid { grid-template-columns: .85fr 1.15fr; gap: var(--s7); } }

/* ── docs (legal pages) ───────────────────────────────────────────────────── */
.doc h1 { margin-block-end: var(--s4); }
.doc h2 { font-size: 1.3rem; margin-block: var(--s6) var(--s3); }
.doc li { margin-block-end: var(--s2); }
.tablewrap { overflow-x: auto; margin-block-end: var(--s5); border: 1px solid var(--line); border-radius: var(--r2); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
th, td { text-align: start; padding: var(--s3); border-block-end: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--bg-alt); color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
tbody th { font-weight: 600; color: var(--navy); }

/* ── members ──────────────────────────────────────────────────────────────── */
.loginform { background: #fff; border: 1px solid var(--line); border-radius: var(--r3); padding: var(--s5); box-shadow: var(--shadow); max-width: 460px; }
.memberhead { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: flex-start; justify-content: space-between; margin-block-end: var(--s5); }
.notice { background: var(--bg-alt); border: 1px solid var(--line); border-inline-start: 4px solid var(--cyan); border-radius: var(--r1); padding: var(--s4); margin-block-end: var(--s5); }

/* ── footer ───────────────────────────────────────────────────────────────── */
footer.site { background: var(--bg-deep); color: #d7e3f2; padding-block: var(--s7) var(--s5); margin-block-start: var(--s7); }
.footgrid { display: grid; gap: var(--s6); }
footer.site h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-block-end: var(--s3); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
footer.site a, footer.site .linklike { color: #cfe0f4; text-decoration: none; }
footer.site a:hover, footer.site .linklike:hover { color: #fff; text-decoration: underline; }
footer.site .muted { color: #9fb4cd; }
.footname { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: var(--s3) 0 var(--s2); }
.footbottom { display: grid; gap: var(--s2); border-block-start: 1px solid rgba(255, 255, 255, .12); margin-block-start: var(--s6); padding-block-start: var(--s4); }
.footbottom p { margin: 0; font-size: .85rem; }
@media (min-width: 800px) {
  .footgrid { grid-template-columns: 1.6fr .8fr .9fr .9fr; gap: var(--s6); }
  .footbottom { grid-template-columns: auto 1fr; align-items: center; justify-content: space-between; }
  .footbottom p:last-child { text-align: end; }
}

/* ── cookie consent ───────────────────────────────────────────────────────── */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  padding: var(--s4); background: rgba(11, 28, 46, .35);
  display: flex; justify-content: center; align-items: flex-end;
}
.consentcard {
  background: #fff; border-radius: var(--r3); box-shadow: var(--shadow-lg);
  padding: var(--s5); max-width: 660px; width: 100%; max-height: 82vh; overflow-y: auto;
}
.consentcard h2 { font-size: 1.15rem; }
.consentcard p { font-size: .94rem; }
.consentbtns { display: flex; flex-wrap: wrap; gap: var(--s3); margin-block: var(--s4) var(--s3); }
.consentcats { display: grid; gap: var(--s4); margin-block: var(--s4); }
.cat { border: 1px solid var(--line); border-radius: var(--r1); padding: var(--s3) var(--s4); }
.cat label { display: flex; gap: var(--s3); align-items: center; font-weight: 600; color: var(--navy); }
.cat input { width: 20px; height: 20px; accent-color: var(--blue); }
.cat p { margin: var(--s2) 0 0; }

/* ── accessibility panel ──────────────────────────────────────────────────── */
.a11ywrap { position: fixed; inset-block-end: 1rem; inset-inline-start: 1rem; z-index: 60; }
.a11ytoggle {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); box-shadow: var(--shadow); cursor: pointer;
  display: grid; place-items: center;
}
.a11ytoggle svg { width: 26px; height: 26px; }
.a11ypanel {
  position: absolute; inset-block-end: 60px; inset-inline-start: 0; width: min(280px, calc(100vw - 2rem));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r2);
  box-shadow: var(--shadow-lg); padding: var(--s4);
}
.a11ypanel h2 { font-size: 1rem; }
.a11ypanel ul { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s2); }
.a11ybtn {
  width: 100%; text-align: start; min-height: 40px; padding: var(--s2) var(--s3);
  border: 1px solid var(--line); border-radius: var(--r1); background: #fff;
  font: inherit; color: var(--ink); cursor: pointer;
}
.a11ybtn:hover { background: var(--bg-alt); }
.a11ybtn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11yclose { width: 100%; min-height: 40px; border: 0; border-radius: var(--r1); background: var(--bg-alt); font: inherit; cursor: pointer; }

/* ── chat ─────────────────────────────────────────────────────────────────── */
.chatfab {
  position: fixed; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 55;
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 50px; padding: 0 var(--s5);
  border: 0; border-radius: 999px; background: var(--grad-btn); color: #fff;
  font: inherit; font-weight: 600; box-shadow: var(--shadow-lg); cursor: pointer;
}
.chatfab .ic { width: 20px; height: 20px; }
.chatpanel {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  background: #fff;
}
.chathead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
  padding: var(--s4); background: var(--grad); color: #fff;
}
.chathead h2 { color: #fff; font-size: 1.05rem; margin: 0; }
.chathead .muted { color: rgba(255, 255, 255, .85); }
.chatclose { background: rgba(255, 255, 255, .18); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.chatintro { padding: var(--s5) var(--s4); overflow-y: auto; }
.chatintro p { font-size: .95rem; }
.chatlog { flex: 1; overflow-y: auto; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); background: var(--bg-alt); }
.bubble { max-width: 86%; padding: var(--s3) var(--s4); border-radius: var(--r3); font-size: .96rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .who { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-block-end: 2px; }
.bubble.visitor { align-self: flex-end; background: var(--blue-deep); color: #fff; border-end-end-radius: var(--r1); }
.bubble.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: var(--r1); }
.bubble.operator { align-self: flex-start; background: #fff; border: 1px solid var(--cyan); border-inline-start: 4px solid var(--cyan); }
.bubble.system { align-self: center; background: transparent; color: var(--muted); font-size: .85rem; text-align: center; }
.chatform { display: flex; gap: var(--s2); padding: var(--s3); border-block-start: 1px solid var(--line); background: #fff; }
.chatform textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; }
.chatfoot { margin: 0; padding: 0 var(--s4) var(--s3); background: #fff; }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (min-width: 640px) {
  .chatpanel {
    inset: auto 1rem 1rem auto; width: 400px; height: min(620px, calc(100vh - 2rem));
    border-radius: var(--r3); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  }
  html[dir="rtl"] .chatpanel { inset: auto auto 1rem 1rem; }
}

/* ── accessibility panel effects ──────────────────────────────────────────── */
body.a11y-links :where(main, footer, header) a { text-decoration: underline; text-decoration-thickness: 2px; }
body.a11y-contrast {
  --muted: #26374f; --line: #6b7d97; --bg-alt: #ffffff;
  --blue-mid: #0b3f96; --blue: #0b3f96; --blue-deep: #06265c; --cyan: #06265c;
  --grad: linear-gradient(115deg, #06265c, #0b3f96);
  --grad-btn: linear-gradient(115deg, #0b3f96, #06265c);
}
body.a11y-contrast .card, body.a11y-contrast .cform, body.a11y-contrast .faq details { border-width: 2px; }
body.a11y-contrast .lead, body.a11y-contrast .sectionlead, body.a11y-contrast .card p, body.a11y-contrast .step p, body.a11y-contrast .whygrid p { color: #16263c; }
body.a11y-contrast footer.site { background: #05121f; color: #ffffff; }
body.a11y-contrast footer.site a, body.a11y-contrast footer.site .linklike, body.a11y-contrast footer.site .muted { color: #ffffff; }

/* Reduced motion: the OS setting, and the panel toggle, do the same thing. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body.a11y-motion, body.a11y-motion * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Print: legal pages get printed and filed. */
@media print {
  header.site, footer.site, .chatfab, .chatpanel, .a11ywrap, .consent, .heroart { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
  .wrap { max-width: none; }
}
