/* ===== מוזכר — design tokens ===== */
:root {
  --ink: #0e2a2b;        /* deep petrol-black — text */
  --petrol: #10514d;     /* primary actions */
  --petrol-deep: #0b3b38;
  --porcelain: #f7f9f8;  /* page background, chat-UI white */
  --mist: #e2ebe9;       /* card borders, dividers */
  --marker: #ffd262;     /* amber highlighter — the signature */
  --marker-soft: #ffedb8;
  --white: #ffffff;
  --muted: #51706d;

  --font-display: 'Suez One', serif;
  --font-body: 'Heebo', sans-serif;

  --radius: 14px;
  --shadow: 0 2px 24px rgba(14, 42, 43, 0.08);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.65;
  font-size: 17px;
}

/* ===== typography ===== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
p { margin-bottom: 1em; }
a { color: var(--petrol); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 2px;
}

/* the signature: amber highlighter sweep */
.hl {
  background: linear-gradient(100deg, transparent 2%, var(--marker) 3%, var(--marker) 97%, transparent 98%);
  padding: 0 0.25em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--petrol);
  background: var(--mist);
  border-radius: 999px;
  padding: 0.25em 1em;
  margin-bottom: 1em;
}

/* ===== layout ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section.alt { background: var(--white); }

/* ===== header ===== */
header.site {
  background: var(--porcelain);
  border-bottom: 1px solid var(--mist);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.logo .hl { padding: 0 0.15em; }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
nav.main a:hover { color: var(--petrol); }

/* ===== buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8em 1.9em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--petrol); color: var(--white); }
.btn-primary:hover { background: var(--petrol-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-marker { background: var(--marker); color: var(--ink); }
.btn-marker:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--petrol); border: 2px solid var(--mist); }
.btn-ghost:hover { border-color: var(--petrol); }

/* ===== hero ===== */
.hero { padding: 84px 0 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .sub {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 1.2em 0 1.8em;
  max-width: 32em;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--muted); margin-top: 1em; }

/* ===== chat simulation — the signature element ===== */
.chat {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mist);
  font-size: 0.85rem; color: var(--muted);
}
.chat-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); }
.chat-body { padding: 22px 20px 26px; min-height: 300px; display: flex; flex-direction: column; gap: 16px; }
.bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.98rem;
  line-height: 1.6;
}
.bubble.user {
  align-self: flex-start;           /* RTL: user on the reading side */
  background: var(--petrol);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  align-self: flex-end;
  background: var(--porcelain);
  border: 1px solid var(--mist);
  border-bottom-left-radius: 4px;
}
.bubble.ai .hl { font-weight: 700; }
.caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--ink); vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chat-foot {
  margin: 0 20px 18px;
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.2em;
}
.stat span { color: var(--muted); font-size: 0.92rem; display: block; }
.stat .src { font-size: 0.78rem; color: var(--muted); margin-top: 0.6em; }

/* ===== definition block (citable) ===== */
.definition {
  background: var(--white);
  border-right: 5px solid var(--marker);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px;
  max-width: 46em;
}

/* ===== process ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 30px; }
.step {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--marker); color: var(--ink);
  font-family: var(--font-display); font-size: 1.1rem;
  margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ===== pricing ===== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 34px; }
.plan {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--petrol); position: relative; }
.plan.featured::before {
  content: 'הכי משתלם';
  position: absolute; top: -14px; inset-inline-start: 24px;
  background: var(--marker); color: var(--ink);
  font-size: 0.8rem; font-weight: 700;
  border-radius: 999px; padding: 3px 14px;
}
.plan .price { font-family: var(--font-display); font-size: 2rem; margin: 0.3em 0 0.1em; }
.plan .per { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.2em; }
.plan ul { list-style: none; margin: 0 0 1.6em; flex: 1; }
.plan ul li { padding: 0.4em 0; padding-inline-start: 1.6em; position: relative; font-size: 0.95rem; }
.plan ul li::before {
  content: '✓';
  position: absolute; inset-inline-start: 0;
  color: var(--petrol); font-weight: 700;
}

/* ===== form ===== */
.check-form {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  max-width: 560px;
}
.check-form label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 6px; }
.check-form input, .check-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--mist);
  border-radius: 10px;
  padding: 0.7em 1em;
  margin-bottom: 18px;
  background: var(--porcelain);
  color: var(--ink);
}
.check-form input:focus, .check-form select:focus { border-color: var(--petrol); outline: none; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* ===== FAQ ===== */
.faq details {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 4px 0;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 22px;
  list-style: none;
  position: relative;
}
.faq summary::after {
  content: '+';
  position: absolute; inset-inline-end: 22px;
  font-family: var(--font-display);
  color: var(--petrol);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 22px 18px; color: var(--muted); margin: 0; }

/* ===== article pages ===== */
.article { max-width: 46em; margin: 0 auto; padding: 56px 20px 80px; }
.article .meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 2em; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article table {
  width: 100%; border-collapse: collapse; margin: 1.4em 0;
  background: var(--white); font-size: 0.95rem;
}
.article th, .article td { border: 1px solid var(--mist); padding: 10px 14px; text-align: start; }
.article th { background: var(--mist); font-weight: 700; }
.article ul, .article ol { margin: 0 1.4em 1.4em; }
.article li { margin-bottom: 0.5em; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); padding-top: 26px; max-width: 46em; margin: 0 auto; padding-inline: 20px; }
.breadcrumbs a { color: var(--muted); }

/* ===== CTA band ===== */
.cta-band { background: var(--ink); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #b8cecb; max-width: 34em; margin: 0 auto 1.6em; }

/* ===== footer ===== */
footer.site {
  background: var(--white);
  border-top: 1px solid var(--mist);
  padding: 44px 0 34px;
  font-size: 0.9rem;
  color: var(--muted);
}
footer.site .cols { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 26px; }
footer.site h4 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.6em; }
footer.site a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
footer.site a:hover { color: var(--petrol); }

/* ===== floating WhatsApp ===== */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== responsive ===== */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  nav.main a.hide-m { display: none; }
  section { padding: 52px 0; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
