/* AIMORA public landing page + privacy policy. White and light purple, the colours of the logo.
   System fonts only (no external font request), mobile first. */
:root {
  --ink: #2E1B40;
  --ink-soft: #5B4470;
  --purple: #6F2FA0;
  --purple-btn: #7B3BB0;
  --purple-btn-hover: #682C99;
  --lilac-50: #FBF6FE;
  --lilac-100: #F5EAFD;
  --lilac-200: #EAD3F9;
  --lilac-300: #D9B0EE;
  --ok: #1F6B45;
  --err: #A12A3C;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 6.5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 4.5vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 640px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--lilac-200); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple); font-weight: 800; letter-spacing: .14em; font-size: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand { flex: none; }
/* Main navigation: one row on wide screens; on narrower ones a second row that scrolls sideways
   inside the header (the page itself never scrolls sideways). */
.top-row { flex-wrap: wrap; }
.nav { order: 3; flex: 1 0 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 14px 8px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--lilac-100); color: var(--purple); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-login { color: var(--purple); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border: 1.5px solid var(--lilac-300); border-radius: 999px; background: #fff; white-space: nowrap; }
.btn-login:hover { background: var(--lilac-100); }
.top-cta { white-space: nowrap; }
/* Phones: logo + "התחברות" in one row, the navigation in a compact second row (the call to action is
   in the hero and in "יצירת קשר"). Selector specific enough to win over .btn below. */
@media (max-width: 599px) {
  .top-actions .top-cta { display: none; }
  .top-row { min-height: 54px; gap: 6px 12px; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .nav { padding-bottom: 6px; }
  .nav a { font-size: 14px; padding: 5px 9px; }
}
@media (min-width: 960px) {
  .top-row { flex-wrap: nowrap; }
  .nav { order: 0; flex: 1 1 auto; justify-content: center; margin: 0; padding: 0; overflow: visible; }
}
section[id], #lead { scroll-margin-top: 104px; }
@media (min-width: 960px) { section[id], #lead { scroll-margin-top: 76px; } }
.contact-line { font-size: 16px; color: var(--ink-soft); }
.contact-line .contact-links a, .foot .contact-links a { font-weight: 700; }

/* Buttons */
.btn { display: inline-block; background: var(--purple-btn); color: #fff; text-decoration: none; font: inherit; font-weight: 700; font-size: 18px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; box-shadow: 0 10px 24px -12px rgb(111 47 160 / .7); transition: background .15s; }
.btn:hover { background: var(--purple-btn-hover); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-small { font-size: 15px; padding: 9px 16px; }
.btn-full { width: 100%; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--lilac-50), #fff 85%); padding: 36px 0 28px; }
.hero-grid { display: grid; gap: 26px; align-items: center; }
.eyebrow { color: var(--purple); font-weight: 700; margin-bottom: .4em; }
.accent { color: var(--purple); display: block; }
.lead { font-size: 19px; color: var(--ink-soft); }
.note { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }
.hero-art img { border-radius: 26px; box-shadow: 0 22px 50px -24px rgb(111 47 160 / .45); aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 860px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

/* Sections */
section { padding: 40px 0; }
.section-lead { color: var(--ink-soft); font-size: 18px; max-width: 760px; }
.offer { background: var(--lilac-100); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { background: #fff; border: 1px solid var(--lilac-200); border-radius: var(--radius); padding: 14px 16px 14px 16px; padding-inline-start: 46px; position: relative; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 16px; top: 13px; color: var(--purple); font-weight: 800; }
.cards { display: grid; gap: 14px; margin-top: 18px; }
.card { border: 1px solid var(--lilac-200); border-radius: var(--radius); padding: 20px; background: linear-gradient(160deg, #fff, var(--lilac-50)); }
.card p { margin: 0; color: var(--ink-soft); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } .checks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.step-list { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.step-list li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.step-list li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--lilac-200); color: var(--purple); font-weight: 800; display: grid; place-items: center; }
.step-list span { color: var(--ink-soft); }
@media (min-width: 860px) { .step-list { grid-template-columns: repeat(4, 1fr); } }

/* Form */
.lead-section { background: linear-gradient(180deg, #fff, var(--lilac-100)); }
.form-card { background: #fff; border: 1px solid var(--lilac-200); border-radius: 24px; padding: 24px 18px; box-shadow: 0 0 28px -6px rgb(215 151 249 / .45), 0 16px 36px -18px rgb(140 70 190 / .35); }
@media (min-width: 600px) { .form-card { padding: 32px; } }
form { display: grid; gap: 6px; }
form label { font-weight: 700; font-size: 16px; margin-top: 8px; }
.req { color: var(--err); }
input[type=text], input[type=tel], select { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--lilac-300); background: #fff; color: var(--ink); min-height: 50px; }
select { appearance: auto; }
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--err); }
.notice { font-size: 14px; color: var(--ink-soft); background: var(--lilac-50); border-radius: 12px; padding: 12px 14px; margin: 12px 0 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 15px !important; margin: 6px 0 14px !important; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--purple-btn); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.err { color: var(--err); background: #FCEFF1; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
#form-error { display: none; }
#form-error:target { display: block; }
.thanks { display: none; text-align: center; padding: 22px 10px; border-radius: 18px; background: #EEF8F2; color: var(--ok); }
.thanks h3 { color: var(--ok); font-size: 22px; }
.thanks:target, .thanks.show { display: block; }
.thanks:target ~ form, .thanks.show ~ form { display: none; }

/* FAQ */
details { border: 1px solid var(--lilac-200); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Footer */
.foot { border-top: 1px solid var(--lilac-200); padding: 22px 0 28px; font-size: 15px; color: var(--ink-soft); background: var(--lilac-50); }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot-note { font-size: 13px; margin-top: 10px; }

/* Privacy policy page */
.doc { padding: 32px 0 48px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); }
.doc h2 { font-size: 22px; margin-top: 1.6em; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--ink-soft); font-size: 15px; }
.doc .box { background: var(--lilac-50); border: 1px solid var(--lilac-200); border-radius: 14px; padding: 14px 16px; }
