/* Fluence — organization landing page (/organizations, /en/organizations).
   Fluence palette (deep navy, signal cyan), editorial layout, logical properties only so the
   same rules serve RTL Hebrew and LTR English. System fonts (CSP: font-src 'self'). */
:root {
  --bg: #06111f;
  --bg-2: #0a1a2e;
  --panel: #0d2036;
  --line: #1d3550;
  --text: #eef3f8;
  --text-2: #b9c7d6;
  --muted: #8ea2b8;
  --accent: #38d6f2;
  --accent-ink: #04202a;
  --accent-soft: rgba(56, 214, 242, 0.12);
  --warm: #f2b97c;
  --light-bg: #f4f1ec;
  --light-text: #14202e;
  --light-text-2: #3d4b5c;
  --radius: 14px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }

/* Accessibility */
.skip-link { position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { inset-block-start: 12px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: rgba(6, 17, 31, 0.92); backdrop-filter: blur(8px); border-block-end: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #2b7bd6); box-shadow: 0 0 18px rgba(56, 214, 242, 0.35); }
.site-nav { display: flex; gap: 22px; margin-inline-start: 16px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.lang-switch:hover { border-color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #6ae3f7; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 18px; }
.cta-row.center { justify-content: center; margin-block-start: 48px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 40px; background: radial-gradient(ellipse at 70% -10%, rgba(56, 214, 242, 0.14), transparent 55%), var(--bg); }
.trajectory { display: block; width: 100%; height: 90px; opacity: 0.45; margin-block: 8px 0; pointer-events: none; }
.trajectory .band { fill: rgba(56, 214, 242, 0.08); }
.trajectory .base { stroke: rgba(160, 230, 170, 0.5); stroke-width: 1.5; fill: none; }
.trajectory .line { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s ease-out 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; display: grid; gap: 8px; }
.hero-copy { max-width: 820px; }
.eyebrow, .kicker { color: var(--accent); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; margin-block-end: 14px; }
.lead { font-size: 1.22rem; color: var(--text); }
.hero-body { color: var(--text-2); }
.trust-line { color: var(--muted); font-size: 0.92rem; border-block-start: 1px solid var(--line); padding-block-start: 14px; }
.synthetic-note { position: relative; color: var(--muted); font-size: 0.85rem; margin-block: 28px 0; }

/* Product screens */
.shot { margin: 0; min-width: 0; }
.shot-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0b0f17; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.shot figcaption { margin-block-start: 14px; display: grid; gap: 4px; }
.shot figcaption strong { color: var(--text); font-size: 1rem; }
.shot figcaption span { color: var(--text-2); font-size: 0.95rem; }
.shot-phone .shot-frame { max-width: 340px; border-radius: 34px; margin-inline: auto; }
.shot-phone figcaption { max-width: 340px; margin-inline: auto; }
.shot-wide { margin-block-start: 44px; }

/* Sections */
.section { padding-block: 88px; }
.section-tint { background: var(--bg-2); }
.section-light { background: var(--light-bg); color: var(--light-text); }
.section-light .kicker { color: #0b6f86; }
.section-light p { color: var(--light-text-2); }
.statement { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.problem-list { display: grid; gap: 14px; margin-block: 28px; }
.problem-list li { padding-inline-start: 22px; border-inline-start: 2px solid var(--accent); color: var(--text-2); }
.closing { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-block-start: 28px; }

.founder-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
.founder-body p { font-size: 1.08rem; }
.signature { margin-block-start: 24px; color: var(--light-text) !important; }

.steps { display: grid; gap: 72px; margin-block-start: 48px; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-block-end: 14px; }
.step-copy p { color: var(--text-2); }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-block-start: 36px; }
.value-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; color: var(--text); }

.offer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 36px; margin-block-start: 32px; align-items: start; }
.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.check-list li { position: relative; padding-inline-start: 30px; color: var(--text-2); }
.check-list li::before { content: "\2713"; position: absolute; inset-inline-start: 0; inset-block-start: 0; color: var(--accent); font-weight: 800; }
.price-card { background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius); padding: 28px; }
.price-label { color: var(--muted); font-size: 0.9rem; margin-block-end: 2px; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--text); margin: 0; line-height: 1.2; }
.price-note { color: var(--text-2); margin-block-end: 18px; }

.plain-list, .trust-list { display: grid; gap: 12px; margin-block: 24px; }
.plain-list li, .trust-list li { padding-inline-start: 22px; position: relative; color: var(--text-2); }
.plain-list li::before, .trust-list li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.note { background: var(--accent-soft); border-inline-start: 3px solid var(--accent); padding: 14px 18px; border-radius: 8px; color: var(--text); }

/* Form */
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-block-start: 32px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.lead-form label { font-weight: 650; color: var(--light-text); font-size: 0.95rem; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--light-text); background: #fff; border: 1.5px solid #b7c0cb; border-radius: 10px; padding: 11px 13px; min-height: 48px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: #0b6f86; }
.lead-form [aria-invalid="true"] { border-color: #b3261e; }
.hint { font-size: 0.86rem; color: var(--light-text-2); margin: 0; }
.err { color: #b3261e; font-size: 0.86rem; margin: 0; min-height: 0; }
.consent { font-size: 0.88rem; }
.form-status { font-weight: 650; color: var(--light-text) !important; min-height: 1.5em; }
.form-status.ok { color: #0d6b3a !important; }
.form-status.bad { color: #b3261e !important; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.section-light .btn-primary { background: #0b6f86; color: #fff; }
.section-light .btn-primary:hover { background: #095a6d; }

/* Footer */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 36px; color: var(--text-2); font-size: 0.92rem; }

/* Responsive */
@media (max-width: 960px) {
  .founder-grid, .step, .offer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-nav { display: none; }
  .section { padding-block: 64px; }
  .steps { gap: 56px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .lead-form { grid-template-columns: 1fr; }
  .header-actions .btn-sm { display: none; }
  .cta-row .btn { width: 100%; }
  /* wide clinician screens stay legible: they scroll sideways inside their frame, never the page */
  .shot:not(.shot-phone) .shot-frame { overflow-x: auto; }
  .shot:not(.shot-phone) .shot-frame img { min-width: 760px; max-width: none; }
  .hero { padding-block: 40px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trajectory .line { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
}
