/*
 * אתר WIFIX — אותם צבעים כמו האפליקציה (packages/shared/src/theme.ts).
 * היום בברירת המחדל, הלילה לפי הגדרת המערכת של המבקר.
 */
:root {
  --primary: #1668e3;
  --primary-dark: #0f52b8;
  --primary-soft: #e8f1fe;
  --navy: #0b2e63;
  --bg: #f4f7fb;
  --hero-bg: #eaf2fd;
  --surface: #ffffff;
  --border: #e4eaf2;
  --text: #0f172a;
  --muted: #5b6b84;
  --inverse: #ffffff;
  --online: #15803d;
  --online-soft: #dcfce7;
  --star: #b45309;
  --band: #0b2e63;
  --band-text: #ffffff;
  --band-muted: #c9d6ec;
  --focus: #f59e0b;
  --danger: #b91c1c;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6fa8ff;
    --primary-dark: #a3c8ff;
    --primary-soft: #152a4d;
    --navy: #dce6f7;
    --bg: #0b1220;
    --hero-bg: #0f1a2e;
    --surface: #141f33;
    --border: #2a3953;
    --text: #e7edf7;
    --muted: #a3b1c6;
    --inverse: #0b1220;
    --online: #4ade80;
    --online-soft: #10301f;
    --star: #fcd34d;
    --band: #152a4d;
    --band-text: #e7edf7;
    --band-muted: #a3b1c6;
    --focus: #fbbf24;
    --danger: #fca5a5;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Heebo, 'Noto Sans Hebrew', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 24px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

p {
  margin: 0;
}

a {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- כותרת */

.top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 9px;
}

.nav {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  color: var(--primary-dark);
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
}

/* ---------------------------------------------------------------- פתיח */

.hero {
  background: var(--hero-bg);
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--inverse);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: transparent;
}

.btn-inverse {
  background: var(--band-text);
  color: var(--band);
  margin-top: 8px;
  justify-self: start;
}

.store-note {
  font-size: 14px;
  color: var(--muted);
}

/*
 * תמונת הפתיח, וכרטיס ההזמנה מונח על הפינה שלה. בלי תמונה
 * (`site/hero.webp` חסר) — הכרטיס לבד, במרכז.
 */
.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 50px -28px rgba(11, 46, 99, 0.55);
}

.hero-visual:has(.hero-photo) .job-card {
  position: absolute;
  bottom: -28px;
  inset-inline-end: -12px;
  max-width: 300px;
  padding: 16px;
  gap: 12px;
}

.hero-visual:has(.hero-photo) .job-facts dd .num {
  font-size: 20px;
}

@media (max-width: 860px) {
  .hero-visual:has(.hero-photo) .job-card {
    position: static;
    margin-top: -64px;
    max-width: 360px;
  }
}

/* כרטיס ההזמנה — אותו מבנה כמו מסך "נמצא בעל מקצוע" באפליקציה. */
.job-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 40px -24px rgba(11, 46, 99, 0.45);
  display: grid;
  gap: 18px;
  max-width: 400px;
  justify-self: center;
  width: 100%;
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.order-code {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--online);
  background: var(--online-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
}

.job-pro {
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
}

.pro-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.pro-meta {
  font-size: 14px;
  color: var(--muted);
}

.job-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.job-facts div {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 14px;
}

.job-facts dt {
  font-size: 13px;
  color: var(--muted);
}

.job-facts dd {
  margin: 2px 0 0;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.job-facts dd .num {
  font-size: 24px;
  white-space: nowrap;
}

.job-card figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------------- איך זה עובד */

.band {
  padding: 64px 0;
}

.section {
  padding-top: 64px;
  padding-bottom: 8px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--inverse);
  font-weight: 800;
  margin-bottom: 14px;
}

.steps p,
.why p {
  color: var(--muted);
}

/* ---------------------------------------------------------------- קטגוריות */

.cats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.cats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 500;
}

/* ---------------------------------------------------------------- למה */

.why {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin: 0;
  padding: 0;
}

@media (max-width: 680px) {
  .why {
    grid-template-columns: 1fr;
  }
}

.why li {
  border-inline-start: 3px solid var(--primary);
  padding-inline-start: 16px;
}

/* ---------------------------------------------------------------- בעלי מקצוע */

.pros {
  background: var(--band);
  color: var(--band-text);
  padding: 64px 0;
  margin-top: 64px;
}

.pros-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.pros-grid:has(.pros-photo) {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

@media (max-width: 860px) {
  .pros-grid:has(.pros-photo) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pros-photo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  justify-self: center;
}

.pros-grid > div {
  display: grid;
  gap: 18px;
}

.pros h2 {
  color: var(--band-text);
  margin-bottom: 0;
}

.pros p {
  color: var(--band-muted);
}

.eyebrow-inverse {
  color: var(--band-muted);
}

.pros-list {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 6px;
}

/* ---------------------------------------------------------------- שאלות */

.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  color: var(--text);
}

.faq details p {
  padding-bottom: 16px;
  color: var(--muted);
}

.contact p {
  color: var(--muted);
  max-width: 40em;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* ---------------------------------------------------------------- תחתית */

.foot {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------------- גיוס (/join) */

.top-cta {
  background: var(--primary);
  color: var(--inverse);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

.top-cta:hover {
  background: var(--primary-dark);
}

.join-hero {
  margin-top: 0;
}

.join-hero h1 {
  color: var(--band-text);
}

.lead-form {
  display: grid;
  gap: 20px;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  font-weight: 700;
  color: var(--text);
  padding: 0;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 500;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.check:has(input:checked) {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.fine {
  font-size: 14px;
  color: var(--muted);
}

.lead-form .btn {
  justify-self: start;
  cursor: pointer;
}

.lead-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.lead-status {
  margin-top: 16px;
  font-weight: 700;
  max-width: 640px;
}

.lead-status:empty {
  display: none;
}

.lead-status[data-kind='ok'] {
  color: var(--online);
  background: var(--online-soft);
  padding: 16px 18px;
  border-radius: 14px;
}

.lead-status[data-kind='error'] {
  color: var(--danger);
}

/* ---------------------------------------------------------------- סרטון */

.video-section {
  display: grid;
  justify-items: center;
  text-align: center;
}

.promo {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 30px 60px -36px rgba(11, 46, 99, 0.6);
}

.video-desc {
  margin-top: 16px;
  max-width: 34em;
  font-size: 15px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- צרו קשר */

.page-title {
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-lede {
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 28px;
}

.contact-btn {
  margin-top: 16px;
}
