:root {
  --bg: #ffffff;
  --band: #f3f5f4;
  --ink: #1a2b2f;
  --ink-soft: #55666a;
  --line: #dde3e0;
  --accent: #0f7b5f;
  --accent-dark: #0b5f49;
  --accent-tint: #e5f3ee;
  --danger: #b42318;
  --focus: #0b6bcb;
  --radius: 14px;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 3.4vw, 2rem);
  --step-3: clamp(2.1rem, 6vw, 3.4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.narrow-form { max-width: 560px; }

.skip { position: absolute; inset-inline-start: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 30; }
.skip:focus { top: 12px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; max-width: 13ch; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 500; margin-bottom: 0.3em; }
p { margin: 0 0 1em; max-width: 62ch; }

/* Header: logo + small anchors only */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 16px; }
.wordmark { font-weight: 700; font-size: 1.3rem; text-decoration: none; color: var(--accent); letter-spacing: -0.02em; }
nav { display: flex; gap: 18px; }
nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; text-align: center; background: var(--accent); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; padding: 13px 22px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.btn:hover { background: var(--accent-dark); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-lg { font-size: 1.125rem; padding: 16px 26px; }
.btn-block { width: 100%; font-size: 1.125rem; padding: 15px 20px; }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--accent-tint); }

/* Sections */
section { padding: 64px 0; }
.band { background: var(--band); }

/* Hero (mobile first: copy, then form) */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--accent-tint), var(--bg) 70%); }
.hero-grid { display: grid; gap: 32px; align-items: start; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
}

/* Form card */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(26, 43, 47, 0.07); scroll-margin-top: 80px; }
.form-title { font-size: var(--step-1); margin-bottom: 16px; }
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 48px;
}
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.form-status { margin: 0; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: var(--danger); }
.form-note { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Problem / solution, fit / included */
.two-col { display: grid; gap: 40px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.points { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.points li { position: relative; padding-inline-start: 28px; }
.points li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); }
.points.checks li::before {
  width: 18px; height: 18px; top: 0.3em; inset-inline-start: 0; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.stress { font-weight: 700; border-inline-start: 4px solid var(--accent); padding-inline-start: 14px; }

/* How it works: a real 3-step sequence */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px;
}
.steps p { color: var(--ink-soft); }

/* Pilot */
.pilot { background: var(--accent); color: #fff; }
.pilot p { color: #e3f2ec; font-size: var(--step-1); margin-bottom: 0; }
.pilot-row { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .pilot-row { grid-template-columns: 1fr auto; gap: 48px; } }

/* FAQ */
#faq details { border-bottom: 1px solid var(--line); }
#faq summary { cursor: pointer; font-weight: 500; font-size: var(--step-1); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
#faq details[open] summary::after { content: "–"; }
#faq details p { color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 26px 0 90px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.95rem; }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Privacy page */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: var(--step-2); max-width: none; }
.doc h2 { font-size: var(--step-1); margin-top: 1.6em; }

/* Chat widget (answers = FAQ) */
.chat-toggle {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 20; background: var(--ink); color: #fff;
  border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 500; cursor: pointer;
  box-shadow: 0 6px 20px rgba(26, 43, 47, 0.25);
}
.chat-panel {
  position: fixed; inset-inline-start: 16px; bottom: 72px; z-index: 20; width: min(360px, calc(100% - 32px));
  max-height: min(540px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(26, 43, 47, 0.2); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); color: #fff; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.chat-log { padding: 14px 16px; overflow-y: auto; display: grid; gap: 10px; flex: 1; }
.msg { padding: 9px 12px; border-radius: 12px; font-size: 0.95rem; max-width: 92%; }
.msg.bot { background: var(--band); }
.msg.user { background: var(--accent-tint); justify-self: end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: inherit; font-size: 0.875rem; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.chips button:hover { border-color: var(--accent); }
.chips button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips button.primary:hover { background: var(--accent-dark); }
.msg.note { font-size: 0.85rem; color: var(--ink-soft); background: none; padding: 0 2px; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.chat-input input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.chat-send { font: inherit; font-weight: 700; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 0 14px; cursor: pointer; }
.chat-send:hover { background: var(--accent-dark); }
.hp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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