/* ============================================================
   JOBINA — Design System (shared by index / chat / privacy)
   ============================================================
   Everything themeable lives in :root as CSS variables. Brand
   colors are the four JOBINA colors only; the rest are neutral
   text tones and tints derived from them.
   ============================================================ */

:root {
  /* Brand palette (2026 redesign) — one action color (blue); the logo's
     purple is the secondary; pink / yellow / green for small accents only */
  --brand-blue: #4263EB;     /* actions: primary buttons, links, focus */
  --brand-blue-hover: #3451D1;
  --brand-blue-soft: #EEF2FF;
  --brand-purple: #7965E8;   /* secondary — accents, selection, the logo's world */
  --brand-pink: #F05AA6;     /* highlights */
  --brand-yellow: #FFD166;   /* small highlights */
  --brand-green: #36B37E;    /* success */
  --brand-navy: #20243A;     /* main text, headings */
  --brand-lavender: #EFEDFD; /* soft purple areas: bot bubbles, chips */
  --brand-ice: #F7F8FC;      /* secondary background */
  --white: #FFFFFF;

  /* Semantic tokens */
  --color-bg: var(--brand-ice);
  --color-surface: var(--white);
  --color-soft: var(--brand-lavender);
  --color-text: var(--brand-navy);
  --color-text-soft: #4B5263;          /* 7.6:1 on white */
  --color-text-faint: #6B7280;         /* 4.8:1 on white */
  --color-primary: var(--brand-blue);
  --color-primary-hover: var(--brand-blue-hover);
  --color-success: #1F8A5C;            /* text-safe green (4.7:1); --brand-green for fills */
  --color-border: #E7E9F0;
  --color-border-strong: #D5D9E8;
  --color-error: #C0262D;

  --color-bot-bubble: var(--white);
  --color-bot-bubble-text: var(--brand-navy);
  --color-user-bubble: var(--brand-blue);
  --color-user-bubble-text: var(--white);

  /* Elevation — soft, never heavy */
  --shadow-soft: 0 1px 2px rgba(32, 36, 58, 0.05), 0 8px 24px rgba(32, 36, 58, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(32, 36, 58, 0.05), 0 14px 32px rgba(32, 36, 58, 0.09);
  --shadow-pop: 0 20px 48px rgba(32, 36, 58, 0.16);
  --shadow-button: none;
  --focus-ring: 0 0 0 3px rgba(66, 99, 235, 0.28);

  /* Radius */
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Type scale (Heebo) */
  --fs-hero: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);      /* 30 → 48px */
  --fs-h2: clamp(1.6rem, 1.25rem + 1.3vw, 2rem);       /* 26 → 32px */
  --fs-h3: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);       /* 18 → 21px */
  --fs-body: 1rem;
  --fs-lead: 1.1rem;
  --fs-small: 0.9rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  /* Typography */
  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Heebo', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.18s var(--ease);
  --transition-slow: 0.45s var(--ease);

  /* Layout */
  --content-max: 600px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ------------------------------------------------------------
   Reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p, dl, dd {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   SHARED BUTTONS
   ============================================================ */

.cta-button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-primary);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-button);
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.cta-button:hover,
.primary-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.cta-button:active,
.primary-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.primary-btn {
  padding: 12px 26px;
  font-size: 0.95rem;
  background: linear-gradient(120deg, var(--brand-purple) 0%, #6D28D9 70%, #5B21B6 100%);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.primary-btn:hover:not(:disabled) {
  background: linear-gradient(120deg, var(--brand-purple) 0%, #6D28D9 70%, #5B21B6 100%);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.36);
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.primary-btn--block {
  width: 100%;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.secondary-btn:hover:not(:disabled) {
  border-color: var(--color-border-strong);
  background: var(--color-soft);
}

.secondary-btn--sm {
  padding: 9px 16px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Inline text action (e.g. "רוצה לדייק?", "החלפה" / "הסרה") */
.text-btn {
  padding: 2px 0;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.text-btn:hover:not(:disabled) {
  text-decoration-color: currentColor;
}

.text-btn--danger {
  color: var(--color-error);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  color: var(--color-text-faint);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.link-btn:hover:not(:disabled) {
  color: var(--color-text);
}

.link-btn svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   SHARED BACKGROUND — drifting brand blobs + dot grid
   (used by the chat page)
   ============================================================ */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.bg-blob--purple {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), rgba(124, 58, 237, 0) 70%);
  animation: blob-drift-a 18s ease-in-out infinite;
}

.bg-blob--lavender {
  width: 520px;
  height: 520px;
  top: 40px;
  right: -200px;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.8), rgba(237, 233, 254, 0) 70%);
  animation: blob-drift-b 22s ease-in-out infinite;
}

.bg-blob--fuchsia {
  width: 300px;
  height: 300px;
  top: 360px;
  left: 20%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.28), rgba(217, 70, 239, 0) 70%);
  animation: blob-drift-a 26s ease-in-out infinite reverse;
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 37, 84, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
}

@keyframes blob-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes blob-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(0.94); }
}

/* ============================================================
   LANDING PAGE — editorial layout
   Full-width bands that alternate: light → dark → purple →
   white → light → purple footer. Big bold headlines (Heebo, the
   site's only font) with one accent phrase in a light purple, and "3D
   glass" illustrations (inline SVG, gradients in .svg-defs).
   Entrance: .is-loaded on .page-landing (script.js).
   Scroll reveal: .reveal → .is-visible (script.js).
   ============================================================ */

.landing-body {
  --font-display: var(--font-heading); /* one font for the whole site (Heebo) */
  --band-light: #F7F8FC;      /* secondary background */
  --band-dark: #20243A;       /* deep ink (text / footer) */
  --band-purple: var(--brand-purple);
  background: var(--band-light);
  overflow-x: hidden;
}

html:has(.landing-body) {
  scroll-behavior: smooth;
}

.page-landing {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --- Bands --- */
.band {
  width: 100%;
  padding: 64px 20px;
}

.band-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.band--light { background: var(--band-light); color: var(--brand-navy); }
.band--white { background: var(--white); color: var(--brand-navy); }
.band--dark { background: var(--band-dark); color: var(--white); }
.band--purple { background: var(--band-purple); color: var(--white); }

.band-title,
.hero-title,
.final-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.band-title {
  font-size: 2.4rem;
  margin-bottom: 36px;
}

.band-title--center {
  text-align: center;
}

.title-accent {
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--brand-purple);
}

.band--dark .title-accent { color: #C4B5FD; }
.band--purple .title-accent { color: var(--brand-lavender); }

/* --- Header: logo (right) · עלינו · מדיניות פרטיות · התחברות --- */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(12px + var(--safe-top)) 20px 12px;
  background: var(--band-light);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.landing-header.is-scrolled {
  background: rgba(238, 238, 243, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(23, 37, 84, 0.08);
}

.landing-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-navy);
}

.landing-brand img {
  width: 40px;
  height: auto;
}

.landing-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.landing-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.landing-brand-tag {
  font-size: 0.72rem;
  color: var(--color-text-soft);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: var(--brand-navy);
  border: 1.5px solid rgba(17, 24, 39, 0.18);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.landing-nav {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
}

.landing-header.is-open .landing-nav {
  display: flex;
}

.nav-link {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--band-light);
}

.nav-login {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--band-dark);
  color: var(--band-dark);
  font-weight: 600;
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-login:hover {
  background: var(--band-dark);
  color: var(--white);
}

/* --- Buttons: plain, solid charcoal (primary) or outlined ---
   Deliberately simple: a calm rectangle with soft corners, no
   icon, glow or lift — like a regular, well-made site button. */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--band-dark);
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid var(--band-dark);
  box-shadow: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.cta-button:hover {
  background: #2B3446;
  border-color: #2B3446;
  transform: none;
}

.cta-button:active {
  transform: none;
  background: #000;
}

.cta-button:focus-visible {
  outline: 2px solid var(--brand-purple);
  outline-offset: 3px;
}

.cta-button--outline {
  background: transparent;
  color: var(--band-dark);
}

.cta-button--outline:hover {
  background: var(--band-dark);
  border-color: var(--band-dark);
  color: var(--white);
}

/* --- Hero --- */
.hero {
  padding-top: 28px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
  animation: pill-pulse 2.4s ease-in-out infinite;
}

@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(124, 58, 237, 0.06); }
}

.hero-title {
  font-size: 2.6rem;
  color: var(--band-dark);
}

.hero-title .title-accent {
  display: block;
}

.hero-subtitle {
  max-width: 480px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #374151;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.hero-trust {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand-navy);
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--brand-purple);
}

/* --- "3D glass" illustrations ---
   Each shape is drawn twice: a dark copy offset down-left (the
   depth) and a gradient copy on top, plus a soft shadow below. */
.glass-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.glass-back,
.glass-front,
.glass-shine {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass-back {
  stroke: #3B1A8F;
  stroke-width: 20;
}

.glass-front {
  stroke: url(#glassStroke);
  stroke-width: 20;
}

.glass-shine {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 4;
}

.glass-back-fill {
  fill: #3B1A8F;
}

.glass-front-fill {
  fill: url(#glassFill);
}

.glass-mark {
  fill: none;
  stroke: var(--white);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass-mark--thin {
  stroke: #3B1A8F;
  stroke-width: 9;
}

.glass-shadow {
  width: 70%;
  height: 26px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(17, 24, 39, 0.22), rgba(17, 24, 39, 0));
  animation: glass-shadow 6s ease-in-out infinite;
}

.glass-art .glass-svg {
  animation: glass-float 6s ease-in-out infinite;
}

@keyframes glass-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes glass-shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.86); opacity: 0.7; }
}

.hero-visual {
  max-width: 300px;
  width: 78%;
  margin: 0 auto;
}

/* --- How it works (dark band) --- */
.how-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  border: 1.5px solid rgba(196, 181, 253, 0.6);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.step p {
  font-size: 1rem;
  line-height: 1.6;
  color: #C7CBD6;
}

/* Product preview, shown as floating glass cards on the dark band */
.how-visual {
  position: relative;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.preview-caption {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #C4B5FD;
}

.preview-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.22), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(196, 181, 253, 0.25);
  animation: glass-float 7s ease-in-out infinite;
}

.preview-card {
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--brand-navy);
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.preview-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-purple);
}

.preview-headline {
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 700;
}

.preview-sub {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.preview-chips span {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-lavender);
  font-size: 0.75rem;
  font-weight: 600;
}

.preview-match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.preview-match-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.preview-level {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--brand-purple), #6D28D9);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.preview-facts {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.preview-facts i {
  font-style: normal;
  color: var(--color-border-strong);
  margin: 0 3px;
}

.preview-why {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-lavender);
  font-size: 0.8rem;
}

.preview-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.preview-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-btn--primary {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: var(--white);
}

.preview-float {
  position: absolute;
  bottom: -14px;
  inset-inline-end: -10px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--brand-navy);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* --- Why JOBINA (purple band): cards fading to lavender --- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 22px 30px;
  border-radius: 28px;
  text-align: center;
  color: var(--brand-navy);
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 38%, #E9E3FF 72%, #C9B8FF 100%);
  box-shadow: 0 20px 40px rgba(46, 16, 101, 0.25);
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--band-dark);
}

.feature-art {
  width: 116px;
}

.feature p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #374151;
}

/* --- About (white band) --- */
.about-grid {
  display: grid;
  gap: 22px;
}

.about-grid p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
}

.about-grid .about-highlight {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-purple);
}

/* --- Final CTA (light band) --- */
.final-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.final-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.final-title {
  font-size: 2.6rem;
  color: var(--band-dark);
}

.final-visual {
  max-width: 260px;
  width: 70%;
  margin: 0 auto;
}

/* --- Footer (purple band) --- */
.site-footer {
  padding: 40px 20px calc(40px + var(--safe-bottom));
  background: var(--band-purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo-badge {
  display: inline-flex;
  padding: 14px 22px;
  border-radius: 22px;
  background: var(--white);
}

.footer-logo {
  width: 150px;
  height: auto;
}

.footer-privacy-link {
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 4px;
}

/* --- Entrance animation (script.js adds .is-loaded) --- */
.hero-pill,
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-trust,
.hero-visual {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.page-landing.is-loaded .hero-pill,
.page-landing.is-loaded .hero-title,
.page-landing.is-loaded .hero-subtitle,
.page-landing.is-loaded .hero-actions,
.page-landing.is-loaded .hero-trust,
.page-landing.is-loaded .hero-visual {
  opacity: 1;
  transform: translateY(0);
}

.page-landing.is-loaded .hero-pill { transition-delay: 0.05s; }
.page-landing.is-loaded .hero-title { transition-delay: 0.12s; }
.page-landing.is-loaded .hero-subtitle { transition-delay: 0.2s; }
.page-landing.is-loaded .hero-actions { transition-delay: 0.28s; }
.page-landing.is-loaded .hero-trust { transition-delay: 0.36s; }
.page-landing.is-loaded .hero-visual { transition-delay: 0.3s; }

/* --- Scroll reveal (script.js adds .is-visible) --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Tablet / desktop --- */
@media (min-width: 720px) {
  .band {
    padding: 88px 32px;
  }

  .band-title {
    font-size: 3.4rem;
    margin-bottom: 48px;
  }

  .nav-toggle {
    display: none;
  }

  .landing-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .nav-login {
    margin-inline-start: 8px;
  }

  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 96px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
  }

  .hero-title {
    font-size: 4.2rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-visual {
    max-width: 420px;
    width: 100%;
  }

  .how-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .how-visual {
    order: 2; /* RTL: steps on the right, preview on the left */
  }

  .final-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .final-title {
    font-size: 3.6rem;
  }

  .final-visual {
    max-width: 340px;
    width: 100%;
  }
}

/* Calm motion for people who asked for it */
@media (prefers-reduced-motion: reduce) {
  .bg-blob,
  .glass-art .glass-svg,
  .glass-shadow,
  .preview-frame,
  .hero-pill-dot {
    animation: none !important;
  }
}

/* ============================================================
   CHAT PAGE
   ============================================================ */

.chat-page {
  overflow: hidden; /* the document must not scroll behind the chat */
  isolation: isolate;
}

/* Same soft moving brand background as the landing page (fixed behind
   the chat). Reuses .bg-blob / .bg-dots from the landing section. */
.chat-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.chat-bg .bg-dots {
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 60%);
}

.page-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: var(--content-max);
  margin: 0 auto;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) 16px 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-soft);
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.back-link:hover {
  background: var(--color-soft);
  color: var(--color-text);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.chat-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}

.chat-logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.chat-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.chat-status {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--color-text-faint);
  transition: color var(--transition-fast);
}

.header-spacer {
  width: 36px;
  flex-shrink: 0;
}

/* Progress meter along the header's bottom edge */
.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: rgba(237, 233, 254, 0.8);
  overflow: hidden;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  margin-inline-start: 0; /* grows from the right in RTL — the reading direction */
  background: linear-gradient(270deg, var(--brand-purple), #A855F7 60%, #D946EF);
  border-start-end-radius: 4px;
  border-end-end-radius: 4px;
  transition: width 0.5s var(--ease);
}

/* soft glow at the growing edge */
.progress-fill::after {
  content: '';
  position: absolute;
  inset-inline-end: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #D946EF;
  filter: blur(4px);
  opacity: 0.8;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overscroll-behavior-y: contain;
  overflow-y: auto;
  padding: 20px 16px calc(28px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.message-row {
  flex-shrink: 0;
  display: flex;
  animation: message-in 0.35s var(--ease);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.message-row.removing {
  opacity: 0;
  transform: translateY(-4px);
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message-row.from-bot {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.message-row.from-user {
  justify-content: flex-end;
}

/* JOBINA avatar beside bot messages — shown on the first message of
   each run of bot messages, kept as a spacer on the rest. */
.bot-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-avatar img {
  width: 20px;
  height: 20px;
}

.message-row.from-bot + .message-row.from-bot .bot-avatar {
  visibility: hidden;
}

.bubble {
  max-width: 82%;
  padding: 11px 16px;
  font-size: 0.96rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.message-row.from-bot .bubble {
  max-width: calc(88% - 38px);
  background: linear-gradient(160deg, var(--white), #F7F5FF);
  color: var(--color-bot-bubble-text);
  border: 1px solid rgba(212, 204, 247, 0.75);
  box-shadow: 0 4px 14px rgba(23, 37, 84, 0.05);
  border-radius: var(--radius-md);
  border-start-start-radius: 6px;
}

.message-row.from-user .bubble {
  background: linear-gradient(120deg, var(--brand-purple), #6D28D9);
  color: var(--color-user-bubble-text);
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-md);
  border-start-end-radius: 6px;
}

.bubble-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.typing-row .bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), #D946EF);
  opacity: 0.5;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* --- Interactive rows: answer panel / summary / contact --- */
.panel-row {
  display: block;
  margin-top: 2px;
}

.panel {
  width: 100%;
}

/* Answer options line up under the bot bubble text (past the avatar) */
.answer-row .panel {
  padding-inline-start: 38px;
}

.summary-card,
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.panel-note {
  margin-top: -8px;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.panel-nav {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

.answer-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  position: relative;
  padding: 10px 17px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong);
  background: var(--white);
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 2px 8px rgba(23, 37, 84, 0.04);
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.option-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.14);
}

.option-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.option-btn.is-selected {
  background: linear-gradient(120deg, var(--brand-purple), #6D28D9);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}

.option-btn.is-selected:hover:not(:disabled) {
  background: linear-gradient(120deg, var(--brand-purple), #6D28D9);
  border-color: transparent;
}

/* Chip-style (multi-select) options get a ✓ when selected */
.options-group:not(.options-group--list) .option-btn.is-selected::before {
  content: '✓';
  margin-inline-end: 6px;
  font-weight: 800;
}

.option-btn:disabled {
  cursor: default;
}

/* Options with a short description, shown as full-width rows
   (Excel level, experience level, search status, work hours). */
.options-group--list {
  flex-direction: column;
  flex-wrap: nowrap;
  max-width: 460px;
}

.options-group--list .option-btn {
  text-align: right;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  padding-inline-end: 48px; /* room for the selection circle */
}

/* Selection circle on the row's left (RTL end); fills with ✓ when chosen */
.options-group--list .option-btn::after {
  content: '';
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 2px solid var(--color-border-strong);
  background: var(--white) center / 12px 12px no-repeat;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.options-group--list .option-btn:hover:not(:disabled)::after {
  border-color: var(--color-primary);
}

.options-group--list .option-btn.is-selected::after {
  border-color: var(--white);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12.5L9.5 18L20 6.5' stroke='%237C3AED' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.option-btn--rich {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.option-label {
  font-weight: 600;
}

.option-desc {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-soft);
  line-height: 1.4;
}

.option-btn.is-selected .option-desc {
  color: rgba(255, 255, 255, 0.85);
}

.answer-divider {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-soft);
}

/* --- Cities as removable tags --- */
.city-input-row {
  display: flex;
  gap: 8px;
  max-width: 460px;
}

.city-input-row .field-input {
  flex: 1;
  min-width: 0;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-block: 5px;
  padding-inline-start: 14px;
  padding-inline-end: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-soft);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  animation: message-in 0.25s var(--ease);
}

.city-tag-remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.city-tag-remove:hover {
  background: var(--color-primary);
  color: var(--white);
}

.origin-field {
  max-width: 320px;
}

/* --- Opening discretion note (inline, not a pop-up) --- */
.discretion-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(130deg, rgba(124, 58, 237, 0.55), rgba(217, 70, 239, 0.35), rgba(23, 37, 84, 0.35)) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.12);
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* soft lavender glow in the card's corner */
.discretion-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.55), rgba(237, 233, 254, 0) 70%);
  pointer-events: none;
}

.discretion-card > * {
  position: relative; /* above the corner glow */
}

.discretion-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
}

.discretion-body {
  font-size: 0.95rem;
  color: var(--color-text);
}

.discretion-note {
  font-size: 0.88rem;
  color: var(--color-text-soft);
}

.discretion-card .primary-btn {
  margin-top: 8px;
}

.discretion-meta {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

/* --- CV upload (contact step) --- */
.cv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cv-upload-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--color-border-strong);
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.cv-upload-btn:hover:not(:disabled) {
  background: var(--color-soft);
  border-color: var(--color-primary);
}

.cv-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-soft);
}

.cv-file-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-file-icon svg {
  width: 20px;
  height: 20px;
}

.cv-file-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.cv-file-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-file-status {
  font-size: 0.78rem;
  color: #127544;
}

.cv-file-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cv-note {
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

.other-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.answer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* --- Form fields --- */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-soft);
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 1rem; /* ≥16px avoids iOS zoom on focus */
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.field-input:disabled {
  opacity: 0.6;
}

.field-input::placeholder {
  color: #9AA0BA;
}

.field-input[dir="ltr"] {
  text-align: left;
}

.other-block > .field-input {
  max-width: 360px;
}

.field-input-wrap {
  position: relative;
}

.field-input-wrap .field-input {
  padding-left: 34px;
}

.field-suffix {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-faint);
  font-size: 0.95rem;
  pointer-events: none;
}

.field-pair {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.field-error {
  min-height: 0;
  font-size: 0.8rem;
  color: var(--color-error);
}

.field-error:empty {
  display: none;
}

/* --- Summary --- */
.summary-list {
  display: flex;
  flex-direction: column;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--color-border);
}

.summary-item:first-child {
  border-top: none;
  padding-top: 0;
}

.summary-text {
  min-width: 0;
}

.summary-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-faint);
}

.summary-value {
  font-size: 0.95rem;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.summary-edit {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-soft);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.summary-edit:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--white);
}

/* --- Profile card ("הפרופיל שלך ב-JOBINA") --- */
.profile-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* thin brand gradient along the top edge */
.profile-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-navy));
}

.profile-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}

.profile-headline {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.profile-subline {
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-soft);
}

.profile-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: var(--color-soft);
  text-align: right;
  font: inherit;
  color: inherit;
}

.profile-tile--wide,
.profile-tile--full {
  grid-column: 1 / -1;
}

.profile-tile-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-soft);
}

.profile-tile-value {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.profile-tile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.profile-chip {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 0.85rem;
  font-weight: 600;
  unicode-bidi: isolate;
}

.profile-tile-edit {
  position: absolute;
  top: 9px;
  inset-inline-end: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

button.profile-tile {
  cursor: pointer;
  transition: box-shadow var(--transition-fast), background var(--transition-fast);
}

button.profile-tile:hover:not(:disabled),
button.profile-tile:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
  outline: none;
}

button.profile-tile:hover .profile-tile-edit,
button.profile-tile:focus-visible .profile-tile-edit {
  opacity: 1;
}

/* Touch screens have no hover — always show the hint there */
@media (hover: none) {
  .profile-tile-edit {
    opacity: 0.85;
  }
}

.profile-more summary {
  cursor: pointer;
  width: fit-content;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.profile-more .summary-list {
  margin-top: 10px;
}

.profile-footnote {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.profile-confirm,
.profile-home {
  margin-top: 12px;
}

@media (min-width: 768px) {
  .profile-card {
    padding: 24px 24px 18px;
  }

  .profile-headline {
    font-size: 1.35rem;
  }

  .profile-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-tile--wide {
    grid-column: span 2;
  }

  .profile-tile--full {
    grid-column: 1 / -1;
  }
}

/* --- Matching jobs (under the profile on the final screen) --- */
.matches {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matches-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.matches-note,
.matches-empty {
  margin-top: -4px;
  font-size: 0.84rem;
  color: var(--color-text-soft);
}

.matches-empty {
  margin-top: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  text-align: center;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: message-in 0.35s var(--ease);
}

.match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.match-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

/* Match level badge (stage 5) */
.match-level {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.match-level--high {
  background: linear-gradient(120deg, var(--brand-purple), #6D28D9);
  color: var(--white);
}

.match-level--medium {
  background: var(--color-soft);
  color: var(--color-primary);
}

.match-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Discreet choice (stage 6) */
.match-actions {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-buttons {
  display: flex;
  gap: 8px;
}

.match-buttons .primary-btn,
.match-buttons .secondary-btn {
  flex: 1 1 0;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.match-privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.match-response {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.match-response-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
}

.match-card.is-interested {
  border-color: var(--color-primary);
}

.match-card.is-interested .match-response-text {
  color: var(--color-primary);
  font-weight: 600;
}

.match-card.is-dismissed {
  background: var(--color-bg);
  box-shadow: none;
}

.match-card.is-dismissed .match-title,
.match-card.is-dismissed .match-company,
.match-card.is-dismissed .match-response-text {
  color: var(--color-text-faint);
}

.match-card.is-dismissed .match-level {
  display: none;
}

.match-company {
  margin-top: -8px;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.match-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.match-fact {
  unicode-bidi: isolate;
}

.match-fact + .match-fact::before {
  content: '|';
  margin: 0 8px;
  color: var(--color-border-strong);
  font-weight: 400;
}

.match-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-system {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-soft);
  unicode-bidi: isolate;
}

.match-system.is-known {
  border-color: transparent;
  background: var(--color-soft);
  color: var(--color-text);
}

.match-why {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-soft);
  border-inline-start: 3px solid var(--color-primary);
}

.match-why-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary);
}

.match-why-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* --- Dev only: "⚡ מילוי מהיר" (see chat.js DEV block) --- */
.dev-fill {
  position: fixed;
  z-index: 40;
  left: 12px;
  bottom: calc(12px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.dev-fill-toggle,
.dev-fill-item {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.dev-fill-toggle {
  background: var(--brand-navy);
  color: var(--white);
  opacity: 0.85;
}

.dev-fill-toggle:hover {
  opacity: 1;
}

.dev-fill-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-fill-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  text-align: right;
}

.dev-fill-item:hover {
  border-color: var(--color-primary);
}

/* --- Consent checkbox ------------------------------------------
   A real, visible <input type="checkbox"> styled with
   appearance:none. It is never hidden or absolutely positioned, so
   focusing it (e.g. via its <label>) can't scroll the page. */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.consent-checkbox {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 7px;
  background: var(--color-surface) center / 14px 14px no-repeat;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.consent-checkbox:hover {
  border-color: var(--color-primary);
}

.consent-checkbox:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12.5L9.5 18L20 6.5' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.consent-checkbox:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.consent-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.consent-text label {
  cursor: pointer;
}

.consent-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-link:hover {
  color: var(--color-primary-hover);
}

.field-error--form {
  text-align: center;
}

.panel--plain {
  padding-top: 4px;
}

@media (min-width: 768px) {
  /* Desktop: the chat floats as a glass card over the brand background */
  .page-chat {
    max-width: 640px;
    height: 92vh;
    margin-top: 4vh;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(23, 37, 84, 0.14), 0 2px 8px rgba(23, 37, 84, 0.05);
    overflow: hidden;
    border: 1px solid rgba(212, 204, 247, 0.9);
  }

  .chat-messages {
    padding: 24px 24px 32px;
  }

  .summary-card,
  .contact-card {
    padding: 22px 22px 14px;
  }
}

/* ============================================================
   PRIVACY POLICY PAGE
   ============================================================ */

.page-legal {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) 16px 12px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.legal-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.legal-header-title img {
  width: 26px;
  height: 26px;
}

.legal-content {
  flex: 1;
  padding: 24px 20px calc(40px + var(--safe-bottom));
}

.legal-body {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-body h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 4px;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--color-text-faint);
  margin-bottom: 20px;
}

.legal-body h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 26px 0 6px;
}

.legal-body p + p {
  margin-top: 10px;
}

.legal-body ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}

.legal-body li + li {
  margin-top: 4px;
}

.legal-body strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-highlight {
  margin: 16px 0 4px;
  padding: 14px 16px;
  background: var(--color-soft);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .page-legal {
    min-height: 92vh;
    margin-top: 4vh;
    margin-bottom: 4vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid var(--color-border);
  }

  body:has(.page-legal) {
    background: var(--color-bg);
  }

  .legal-content {
    padding: 32px 40px 48px;
  }
}

/* =================================================================
   CHAT — final screen: profile summary + "עוד רגע ושולחים"
   ================================================================= */
.answer-textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.final-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Profile card: name as the title, every answer as one short row */
.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.profile-rows {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.profile-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
}

.profile-row:first-child {
  border-top: none;
}

.profile-row-label {
  font-size: 0.82rem;
  color: var(--color-text-faint);
}

.profile-row-value {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.profile-row-value .profile-chip {
  background: var(--color-soft);
  font-size: 0.82rem;
}

.profile-row-edit {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  background: transparent;
  transition: background var(--transition-fast);
}

.profile-row-edit:hover:not(:disabled),
.profile-row-edit:focus-visible {
  background: var(--color-soft);
}

/* "עוד רגע ושולחים" — CV, contact, consent, send */
.finish-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.finish-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.finish-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finish-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.finish-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.send-btn {
  margin-top: 2px;
}

.send-note {
  margin-top: -6px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

@media (min-width: 560px) {
  .finish-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-row {
    grid-template-columns: 120px minmax(0, 1fr) auto;
  }
}

/* =================================================================
   SITE THEME — the calm, flat look of the home page, applied to the
   chat and the privacy page (and the shared buttons).
   Soft gray background, white surfaces with thin borders, charcoal
   buttons with 10px corners, solid purple for progress / accents.
   No gradients, glows, blur or lifting on hover.
   ================================================================= */
:root {
  --ink: #20243A;              /* strong text (buttons are blue — see REDESIGN) */
  --ink-hover: #2E3350;
  --line: #E7E9F0;             /* thin borders */
  --page-gray: #F7F8FC;        /* secondary background */
  --btn-radius: 12px;
  --shadow-button: none;
}

/* --- Shared buttons --- */
.primary-btn,
.cta-button {
  border-radius: var(--btn-radius);
  box-shadow: none;
}

.primary-btn {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}

.primary-btn:hover:not(:disabled) {
  background: var(--ink-hover);
  box-shadow: none;
  transform: none;
}

.primary-btn:active:not(:disabled) {
  transform: none;
  background: #000;
}

.primary-btn:disabled {
  opacity: 0.35;
}

.secondary-btn {
  border-radius: var(--btn-radius);
  border-color: #D1D5DB;
}

.secondary-btn:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--white);
}

/* --- Chat page --- */
.chat-page {
  background: var(--page-gray);
}

.chat-bg {
  display: none;
}

.page-chat {
  background: #F7F7FA;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-inline: 1px solid var(--line);
}

.chat-header {
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--line);
}

.chat-logo {
  color: var(--ink);
}

.progress-track {
  background: var(--line);
}

.progress-fill {
  background: var(--brand-purple);
}

.progress-fill::after {
  display: none;
}

.bot-avatar {
  border-color: var(--line);
  box-shadow: none;
}

.message-row.from-bot .bubble {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 14px;
  border-start-start-radius: 4px;
}

.message-row.from-user .bubble {
  background: var(--brand-purple);
  box-shadow: none;
  border-radius: 14px;
  border-start-end-radius: 4px;
}

.typing-dot {
  background: #9CA3AF;
}

/* Answer options */
.option-btn {
  border-radius: var(--btn-radius);
  border: 1.5px solid #D1D5DB;
  box-shadow: none;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--white);
  transform: none;
  box-shadow: none;
}

.option-btn:active:not(:disabled) {
  transform: none;
}

.option-btn.is-selected,
.option-btn.is-selected:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.options-group--list .option-btn {
  border-radius: 12px;
}

/* Cards: white, thin border, no glow */
.discretion-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
}

.discretion-card::before {
  display: none;
}

.discretion-title,
.panel-title,
.finish-title,
.profile-headline,
.matches-title {
  color: var(--ink);
  font-weight: 800;
}

.summary-card,
.contact-card,
.profile-card,
.finish-card,
.match-card {
  border: 1px solid var(--line);
  box-shadow: none;
}

.profile-card::before {
  display: none;
}

.profile-row-value .profile-chip,
.profile-chip {
  background: var(--page-gray);
}

.match-level--high {
  background: var(--brand-purple);
}

.field-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

/* --- Privacy page --- */
body:has(.page-legal) {
  background: var(--page-gray);
}

.page-legal {
  border: 1px solid var(--line);
}

.legal-header {
  border-bottom-color: var(--line);
}

.legal-body h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-body h2 {
  font-weight: 800;
  color: var(--ink);
}

.legal-highlight {
  background: var(--page-gray);
  border-inline-start: 3px solid var(--brand-purple);
  border-radius: 8px;
}

@media (min-width: 768px) {
  .page-legal {
    box-shadow: none;
  }
}

/* =================================================================
   PERSONAL AREA (portal.html) — same calm theme: gray page, white
   cards with thin borders, charcoal buttons.
   ================================================================= */
.portal-page {
  min-height: 100%;
  background: var(--page-gray);
}

.portal-header .legal-header-title {
  flex: 1;
  justify-content: center;
}

.portal-logout {
  width: 36px;
  flex-shrink: 0;
  color: var(--color-text-soft);
  font-weight: 500;
  white-space: nowrap;
}

.portal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px calc(40px + var(--safe-bottom, 0px));
}

.portal-loading {
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-faint);
}

.portal-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-narrow {
  max-width: 420px;
  margin: 8px auto 0;
  padding: 26px 22px;
  gap: 14px;
}

.portal-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.portal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.portal-text {
  color: var(--color-text-soft);
  line-height: 1.6;
}

.portal-hello {
  padding: 4px 2px 6px;
}

.portal-small,
.portal-empty {
  font-size: 0.86rem;
  color: var(--color-text-faint);
  line-height: 1.6;
}

.portal-notice {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-lavender);
  color: var(--brand-navy);
  font-size: 0.9rem;
  line-height: 1.5;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

/* Search status — one choice, saved on click */
.portal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-chip {
  padding: 9px 14px;
  border: 1px solid #D1D5DB;
  border-radius: var(--btn-radius);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.portal-chip:hover:not(:disabled) {
  border-color: var(--ink);
}

.portal-chip[aria-pressed="true"] {
  border-color: var(--brand-purple);
  background: var(--brand-lavender);
  font-weight: 600;
}

.portal-saved {
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--color-text-faint);
}

/* My jobs */
.portal-jobs {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.portal-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.portal-job:first-child {
  border-top: none;
  padding-top: 0;
}

.portal-job-main {
  min-width: 0;
}

.portal-job-title {
  font-weight: 600;
  color: var(--ink);
}

.portal-job-meta {
  font-size: 0.84rem;
  color: var(--color-text-faint);
}

.portal-status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.portal-status--wait   { background: #F1F2F6; color: #4B5268; }
.portal-status--active { background: var(--brand-lavender); color: #5B21B6; }
.portal-status--good   { background: #DCFCE7; color: #166534; }
.portal-status--closed { background: #F3F4F6; color: #6B7280; }

/* Suggested jobs — the chat's match card, flat */
.portal-matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-match {
  box-shadow: none;
  border-color: var(--line);
  border-radius: 12px;
  animation: none;
}

.portal-why {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}

/* My details */
.portal-details {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 0.92rem;
}

.portal-details dt {
  color: var(--color-text-faint);
}

.portal-details dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.portal-details dd[dir="ltr"] {
  text-align: right;
}

.portal-edit {
  align-self: flex-start;
  text-decoration: none;
}

/* Chat: optional password at the end of the questionnaire */
.account-block .field-hint {
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

/* Personal area: the questionnaire's profile card, edited in place */
.portal-details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.profile-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-editor .answer-row .panel {
  padding-inline-start: 0;
}

.profile-editor .editor-row .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-question {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.editor-hint {
  margin-top: -6px;
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

/* =================================================================
   HOME PAGE — logged-in candidate: their jobs, above the hero
   ================================================================= */
.home-personal {
  padding-top: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.home-personal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.home-personal-title {
  margin-bottom: 0;
  font-size: 2rem;
}

.home-personal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.home-panel {
  background: var(--page-gray);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.home-panel--mine .portal-jobs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 14px;
}

.home-panel--mine .portal-job:first-child {
  padding-top: 12px;
}

.home-matches {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.home-match {
  box-shadow: none;
  border-color: var(--line);
  border-radius: 12px;
  animation: none;
}

.home-more {
  align-self: flex-start;
}

@media (min-width: 900px) {
  .home-personal-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  }

  .home-matches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Logged-in candidate: only their jobs (+ header and footer) */
.is-candidate .band:not(.home-personal),
.is-candidate .nav-link--about,
.is-candidate .nav-link--jobs { /* the open jobs are the home page itself */
  display: none;
}

.is-candidate .home-personal {
  min-height: calc(100vh - 220px);
  border-bottom: none;
}

/* =================================================================
   JOBS PAGE (jobs.html) — public list + quick application dialog
   ================================================================= */
.jobs-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px calc(48px + var(--safe-bottom, 0px));
}

.jobs-intro {
  margin-bottom: 18px;
}

.jobs-portal-link {
  width: auto;
  flex-shrink: 0;
  color: var(--color-text-soft);
  font-weight: 500;
  white-space: nowrap;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 80px;
}

.job-card .match-title {
  font-size: 1.12rem;
}

.job-more {
  align-self: flex-start;
}

.job-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line);
}

.job-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.job-section-text {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  white-space: pre-line;
}

.job-actions {
  display: flex;
  margin-top: 4px;
}

.job-actions .primary-btn,
.job-actions .secondary-btn {
  padding: 11px 22px;
}

/* --- The dialog --- */
.apply-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--color-text);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.apply-dialog[open] {
  display: flex;
}

.apply-dialog::backdrop {
  background: rgba(17, 24, 39, 0.45);
}

.apply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 10px;
}

.apply-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-purple);
}

.apply-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.apply-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--color-text-soft);
}

.apply-close:hover {
  background: var(--page-gray);
}

.apply-close svg {
  width: 20px;
  height: 20px;
}

.apply-steps {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--line);
}

.apply-step {
  flex: 1;
  font-size: 0.78rem;
  color: var(--color-text-faint);
  padding-top: 8px;
  border-top: 3px solid var(--line);
}

.apply-step.is-done {
  border-top-color: var(--brand-lavender);
}

.apply-step.is-current {
  border-top-color: var(--brand-purple);
  color: var(--ink);
  font-weight: 700;
}

.apply-body {
  overflow-y: auto;
  padding: 18px 20px 20px;
}

.apply-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.apply-lead {
  color: var(--color-text-soft);
  line-height: 1.6;
}

.apply-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.apply-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 16px;
  border: 1.5px dashed #C9C2EE;
  border-radius: 14px;
  background: #FBFAFF;
  cursor: pointer;
  text-align: center;
}

.apply-drop:hover,
.apply-file-input:focus-visible + .apply-drop {
  border-color: var(--brand-purple);
  background: var(--brand-lavender);
}

.apply-drop-icon {
  font-size: 1.5rem;
}

.apply-drop-title {
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.apply-drop-note,
.apply-status {
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

.apply-status:empty {
  display: none;
}

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.apply-field textarea.field-input {
  resize: vertical;
  line-height: 1.55;
}

.apply-from-cv {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7C5A00;
}

.apply-from-cv::before {
  content: '● ';
  color: #E2A300;
}

.apply-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apply-chip {
  padding: 7px 13px;
  font-size: 0.86rem;
}

.apply-fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apply-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #D1D5DB;
  border-radius: var(--btn-radius);
  cursor: pointer;
  font-size: 0.92rem;
}

.apply-radio:has(input:checked) {
  border-color: var(--brand-purple);
  background: var(--brand-lavender);
  font-weight: 600;
}

.apply-radio input {
  accent-color: var(--brand-purple);
}

.apply-summary {
  background: var(--page-gray);
  border-radius: 12px;
  padding: 14px;
}

.apply-privacy {
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.apply-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.apply-nav .primary-btn,
.apply-nav .secondary-btn {
  padding: 11px 22px;
}

.apply-nav .primary-btn:only-child {
  margin-inline-start: auto;
}

.apply-done {
  text-align: center;
  align-items: center;
}

.apply-done-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DCFCE7;
  color: #166534;
  font-size: 1.6rem;
  font-weight: 700;
}

@media (min-width: 560px) {
  .apply-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .apply-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
  }
}

/* CV lines mix Hebrew and English — each line takes its own direction */
.apply-field textarea.field-input,
.apply-field input[type="text"].field-input {
  unicode-bidi: plaintext;
}

.apply-dialog [hidden] {
  display: none !important;
}

/* =================================================================
   Job details behind an arrow (jobs-ui.js → buildJobDetails)
   ================================================================= */
.job-details[hidden] {
  display: none;
}

.job-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 2px;
  margin: 0;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  color: var(--color-primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
}

.job-toggle:hover .job-toggle-label {
  text-decoration: underline;
}

.job-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.job-toggle-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.job-toggle[aria-expanded="true"] .job-toggle-arrow {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .job-toggle-arrow { transition: none; }
}

.job-toggle + .job-details {
  border-top: none;
  padding-top: 0;
}




.match-card .job-toggle {
  margin-top: 2px;
}

/* a percent on every job — the low ones stay quiet */
.match-level--low {
  background: #EEF0F5;
  color: var(--color-text-soft);
}

/* Home page of a logged-in user: all open jobs */
.home-personal .jobs-list {
  max-width: 820px;
}

.home-personal #jobsCount {
  margin-bottom: 14px;
}

.jobs-notice {
  max-width: 820px;
  margin-bottom: 16px;
}

.jobs-notice[hidden] {
  display: none;
}

/* Match percent colors: grey (<50) → orange (50–61) → yellow (62–74) → green (75+, "התאמה גבוהה") */
.match-level.match-tone--grey   { background: #EEF0F5; color: #4B5563; }
.match-level.match-tone--orange { background: #FFEDD5; color: #9A3412; }
.match-level.match-tone--yellow { background: #FEF3C7; color: #854D0E; }
.match-level.match-tone--green  { background: #DCFCE7; color: #166534; }

/* =================================================================
   Job details panel — fact tiles + requirement lists
   ================================================================= */
.job-card .job-details,
.match-card .job-details {
  gap: 14px;
  padding: 4px 0 6px;
  border-top: none;
  animation: job-details-in 0.22s var(--ease);
}

@keyframes job-details-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .job-card .job-details,
  .match-card .job-details { animation: none; }
}

/* the facts: 2 tiles a row on a phone, 3 on a wide screen */
.job-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

@media (min-width: 640px) {
  .job-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.job-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--brand-ice);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-width: 0;
}

.job-fact--wide {
  grid-column: 1 / -1;
}

.job-fact-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-lavender);
  color: var(--brand-purple);
}

.job-fact-icon svg {
  width: 18px;
  height: 18px;
}

.job-fact-text {
  min-width: 0;
}

.job-fact dt {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--color-text-faint);
  line-height: 1.3;
}

.job-fact dd {
  margin: 2px 0 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.job-fact--wide dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.job-fact-chip {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--color-border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-navy);
}

/* the texts */
.job-details .job-section {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--color-border);
}

.job-details .job-section--requirements {
  border-inline-start: 3px solid var(--brand-purple);
}

.job-details .job-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 0 0 8px;
}

.job-details .job-section-text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.job-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.job-section-list li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* a round marker per item: ✓ requirements, + advantages, ★ benefits */
.job-section-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.job-section--requirements li::before { content: '✓'; background: var(--brand-lavender); color: var(--brand-purple); }
.job-section--advantages li::before   { content: '+'; background: #DCFCE7; color: #166534; font-size: 0.85rem; }
.job-section--benefits li::before     { content: '★'; background: #FEF3C7; color: #854D0E; }

/* a wide tile holding a single value (role): one line, not chips */
.job-fact--wide dd:not(:has(.job-fact-chip)) {
  display: block;
  margin-top: 2px;
}

/* =================================================================
   Questionnaire — systems with a level (chat.js → systemLevels)
   ================================================================= */
/* systems not picked flow as chips; a picked one opens to a full row with its levels */
.system-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.system-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.system-row.is-open {
  flex-basis: 100%;
  padding: 8px;
  background: var(--brand-ice);
  border-color: var(--color-border);
}

.system-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-inline-start: 6px;
}

.system-levels[hidden] {
  display: none;
}

.option-btn.system-level {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: none;
}

.profile-row-value--empty {
  color: var(--color-text-faint);
  font-weight: 500;
}

/* the questionnaire's CV step: nothing goes to employers */
.cv-privacy {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

/* =================================================================
   REDESIGN 2026 — a calm, colorful SaaS look
   -----------------------------------------------------------------
   One action color (blue) for primary buttons; the logo purple as
   the secondary; pink / yellow / green only for small highlights.
   White surfaces on a light gray-blue page, soft shadows, 12px corners.
   Everything below uses the tokens in :root (top of this file) and
   only restyles existing elements — no behavior changes.
   ================================================================= */

/* ---------- Typography ---------- */
body {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
}

.band-title,
.hero-title,
.final-title {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--brand-navy);
}

.band-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-6);
}

.title-accent {
  font-weight: 700;
  color: var(--brand-blue);
}

::selection {
  background: rgba(66, 99, 235, 0.18);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

/* ---------- Buttons: primary (blue) · secondary (outlined) · text ---------- */
.cta-button,
.primary-btn,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--brand-blue);
  border-radius: var(--btn-radius);
  background: var(--brand-blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(32, 36, 58, 0.08);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), transform 0.12s var(--ease);
}

.cta-button:hover,
.primary-btn:hover:not(:disabled),
.nav-cta:hover {
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  box-shadow: 0 6px 16px rgba(66, 99, 235, 0.25);
  transform: none;
}

.cta-button:active,
.primary-btn:active:not(:disabled),
.nav-cta:active {
  transform: scale(0.98);
  background: var(--brand-blue-hover);
}

.cta-button:focus-visible,
.primary-btn:focus-visible,
.nav-cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.primary-btn:disabled {
  background: #C9D2F7;
  border-color: #C9D2F7;
  color: var(--white);
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
}

.cta-button--outline,
.secondary-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--btn-radius);
  background: var(--white);
  color: var(--brand-navy);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
}

.cta-button--outline:hover,
.secondary-btn:hover:not(:disabled) {
  background: var(--brand-ice);
  border-color: var(--brand-blue);
  color: var(--brand-navy);
  box-shadow: none;
}

.secondary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secondary-btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.text-btn {
  color: var(--brand-blue);
  font-weight: 600;
}

.text-btn--danger {
  color: var(--color-error);
}

/* ---------- Header: logo (right) · links (middle) · actions (left) ---------- */
.landing-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  padding: calc(10px + var(--safe-top)) 20px 10px;
}

.landing-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: none;
}

.landing-header-inner {
  max-width: 1200px;
  min-height: 52px;
}

.landing-brand-name {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--brand-navy);
}

.landing-brand-tag {
  font-size: 0.78rem;
  color: var(--color-text-faint);
}

.nav-toggle {
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--btn-radius);
  color: var(--brand-navy);
  background: var(--white);
}

/* mobile: a card that drops down under the bar */
.landing-nav {
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  transform-origin: top center;
}

.landing-header.is-open .landing-nav {
  animation: menu-in 0.18s var(--ease);
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.nav-links,
.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-actions {
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--brand-navy);
  font-size: 0.98rem;
  font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-link:hover {
  background: var(--brand-ice);
  color: var(--brand-blue);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--btn-radius);
  color: var(--brand-navy);
  background: var(--white);
  font-weight: 600;
}

.nav-login:hover {
  background: var(--brand-ice);
  border-color: var(--brand-blue);
  color: var(--brand-navy);
}

.nav-cta {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* logged in: the home page is the open jobs list */
.is-candidate .nav-cta,
.is-candidate .nav-link--how {
  display: none;
}

@media (min-width: 900px) {
  .landing-nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    animation: none;
  }

  .landing-header.is-open .landing-nav {
    animation: none;
  }

  .nav-links {
    flex-direction: row;
    justify-content: center;
    flex: 1;
    gap: 4px;
  }

  .nav-actions {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
    border-top: none;
  }

  .nav-login {
    margin-inline-start: 0;
  }

  .nav-toggle {
    display: none;
  }
}

@media (min-width: 720px) and (max-width: 899px) {
  /* tablet: still the menu button (the full bar needs about 900px) */
  .nav-toggle { display: inline-flex; }
  .landing-nav {
    position: absolute;
    display: none;
    flex-direction: column;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-pop);
  }
  .landing-header.is-open .landing-nav { display: flex; }
}

/* ---------- Hero ---------- */
.landing-body {
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 320px at 92% 8%, rgba(121, 101, 232, 0.14), transparent 70%),
    radial-gradient(460px 300px at 8% 92%, rgba(66, 99, 235, 0.12), transparent 70%),
    radial-gradient(300px 220px at 30% 10%, rgba(240, 90, 166, 0.08), transparent 70%),
    var(--brand-ice);
  padding-top: 40px;
  padding-bottom: 72px;
}

.hero-copy {
  gap: 20px;
}

.hero-pill {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  background: var(--white);
  color: var(--brand-navy);
  font-size: 0.88rem;
  box-shadow: 0 1px 2px rgba(32, 36, 58, 0.05);
}

.hero-pill-dot {
  background: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(54, 179, 126, 0.18);
  animation: none;
}

.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.15;
}

.hero-title .title-accent {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 520px;
  font-size: var(--fs-lead);
  color: var(--color-text-soft);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  font-size: var(--fs-small);
  color: var(--color-text-faint);
}

.hero-trust li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--brand-navy);
}

.hero-trust li:nth-child(1) svg { color: var(--brand-blue); }
.hero-trust li:nth-child(2) svg { color: var(--brand-pink); }
.hero-trust li:nth-child(3) svg { color: var(--brand-purple); }

/* the product preview (an illustration) */
.hero-preview {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 8px auto 0;
}

.hero-preview .preview-caption {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--color-border);
  color: var(--color-text-faint);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-preview .preview-frame {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  animation: none;
}

.hero-preview .preview-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(32, 36, 58, 0.04), 0 8px 20px rgba(32, 36, 58, 0.07);
}

.hero-preview .preview-eyebrow { color: var(--brand-purple); }
.hero-preview .preview-chips span { background: var(--brand-ice); border: 1px solid var(--color-border); }

.hero-preview .preview-level {
  background: #DCFCE7;
  color: #166534;
}

.hero-preview .preview-why {
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
}

.hero-preview .preview-btn {
  border-radius: 10px;
}

.hero-preview .preview-btn--primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.hero-preview .preview-float {
  background: var(--brand-yellow);
  color: var(--brand-navy);
  box-shadow: 0 8px 20px rgba(32, 36, 58, 0.14);
}

@media (min-width: 900px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 96px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
  .hero-title {
    font-size: var(--fs-hero);
  }
  .hero-preview {
    margin: 0;
  }
}

/* ---------- Bands ---------- */
.band {
  padding: 64px 20px;
}

@media (min-width: 720px) {
  .band {
    padding: 88px 32px;
  }
  .band-title {
    font-size: var(--fs-h2);
    margin-bottom: 40px;
  }
}

/* "how it works": three step cards */
.band--how .how-grid {
  display: block;
}

.band--how .steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band--how .step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--brand-navy);
}

.band--how .step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--brand-blue);
  box-shadow: none;
}

.band--how .step:nth-child(2) .step-num { background: var(--brand-purple); }
.band--how .step:nth-child(3) .step-num { background: #D63F8C; } /* pink, darkened for white text */

.band--how .step h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--brand-navy);
}

.band--how .step p {
  margin-top: 4px;
  color: var(--color-text-soft);
  font-size: 1rem;
}

@media (min-width: 720px) {
  .band--how .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* "why JOBINA": white cards on the light band */
.band--why .feature {
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--brand-navy);
}

.band--why .feature h3 {
  font-size: var(--fs-h3);
  color: var(--brand-navy);
}

.band--why .feature p {
  color: var(--color-text-soft);
}

.band--why .feature-art {
  width: 96px;
}

/* about */
.about-grid p {
  color: var(--color-text-soft);
}

.about-grid .about-highlight {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-purple);
}

/* final call to action */
.final-title {
  font-size: var(--fs-h2);
}

/* footer: calm, on the light background */
.site-footer {
  background: var(--brand-ice);
  border-top: 1px solid var(--color-border);
}

.footer-logo-badge {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.footer-privacy-link {
  color: var(--color-text-soft);
}

.footer-privacy-link:hover {
  color: var(--brand-blue);
}

/* ---------- Cards that react (hover only where there is a pointer) ---------- */
@media (hover: hover) {
  .job-card,
  .match-card,
  .band--how .step,
  .band--why .feature {
    transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  }
  .job-card:hover,
  .match-card:hover,
  .band--how .step:hover,
  .band--why .feature:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-border-strong);
  }
}

/* ---------- Loading skeletons (job lists) ---------- */
.job-skeleton {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--white);
}

.job-skeleton span {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #EEF0F6 0%, #F7F8FC 40%, #EEF0F6 80%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.3s linear infinite;
}

.job-skeleton span:nth-child(1) { width: 55%; height: 16px; }
.job-skeleton span:nth-child(2) { width: 35%; }
.job-skeleton span:nth-child(3) { width: 75%; }

@keyframes skeleton-shine {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* ---------- Page transitions (supporting browsers; never block navigation) ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.18s;
  animation-timing-function: ease-out;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
  .job-skeleton span {
    animation: none;
  }
}

/* =================================================================
   REDESIGN 2026 — part 2: cards, forms, chips, the questionnaire,
   dialogs and the inner pages (jobs / personal area / privacy / auth)
   ================================================================= */

/* ---------- Surfaces: one card style everywhere ---------- */
.job-card,
.match-card,
.portal-card,
.profile-card,
.finish-card,
.summary-card,
.contact-card,
.discretion-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.job-card {
  padding: 20px 20px 18px;
  gap: 12px;
}

.job-card .match-title,
.match-card .match-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--brand-navy);
}

.match-company {
  color: var(--color-text-faint);
  font-size: 0.92rem;
}

/* facts as small tags (no separators that wrap to the start of a line) */
.match-facts {
  gap: 6px;
  font-size: 0.86rem;
}

.match-fact {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-ice);
  border: 1px solid var(--color-border);
  color: var(--brand-navy);
  font-weight: 600;
}

.match-fact + .match-fact::before {
  content: none;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms ---------- */
.field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.field-input {
  min-height: 48px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--btn-radius);
  background: var(--white);
  color: var(--brand-navy);
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

textarea.field-input {
  min-height: 96px;
}

.field-input::placeholder {
  color: #9AA0AE;
}

.field-input:hover:not(:focus):not(:disabled) {
  border-color: #BFC5D9;
}

.field-input:focus,
.field-input:focus-visible {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--focus-ring);
}

.field-error {
  color: var(--color-error);
  font-size: 0.88rem;
  font-weight: 500;
}

.field-hint {
  color: var(--color-text-faint);
}

/* ---------- Answer chips / options ---------- */
.option-btn {
  min-height: 44px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--btn-radius);
  background: var(--white);
  color: var(--brand-navy);
  font-weight: 600;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease);
}

.option-btn:hover:not(:disabled) {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.option-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.option-btn.is-selected,
.option-btn.is-selected:hover:not(:disabled) {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--white);
}

.options-group--list .option-btn.is-selected .option-desc {
  color: rgba(255, 255, 255, 0.85);
}

.option-btn.system-level {
  min-height: 36px;
}

/* ---------- The questionnaire ---------- */
.chat-page,
.page-chat {
  background: var(--brand-ice);
}

.chat-header {
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
}

.chat-logo {
  color: var(--brand-navy);
}

.progress-track {
  background: var(--color-border);
}

.progress-fill {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  transition: width 0.35s var(--ease);
}

.message-row.from-bot .bubble {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  border-start-start-radius: 4px;
  color: var(--brand-navy);
  box-shadow: 0 1px 2px rgba(32, 36, 58, 0.04);
}

.message-row.from-user .bubble {
  background: var(--brand-purple);
  border-radius: 16px;
  border-start-end-radius: 4px;
}

/* each new line in the chat slides in gently */
.message-row {
  animation: row-in 0.22s var(--ease) both;
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.discretion-title,
.panel-title,
.finish-title,
.profile-headline,
.matches-title {
  color: var(--brand-navy);
  font-weight: 700;
}

.profile-row-edit {
  color: var(--brand-blue);
}

.profile-chip,
.profile-row-value .profile-chip {
  background: var(--brand-ice);
  border: 1px solid var(--color-border);
}

/* ---------- Notices ---------- */
.portal-notice {
  border: 1px solid #D5DEFB;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-soft);
  color: var(--brand-navy);
}

/* ---------- Inner-page headers (jobs / personal area / privacy / auth) ---------- */
.legal-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
}

.legal-header-title {
  color: var(--brand-navy);
  font-weight: 700;
}

.back-link {
  border-radius: var(--btn-radius);
  color: var(--brand-navy);
}

.back-link:hover {
  background: var(--brand-ice);
}

body:has(.page-legal),
.portal-page {
  background: var(--brand-ice);
}

.portal-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 700;
  color: var(--brand-navy);
}

.portal-text {
  color: var(--color-text-soft);
}

.portal-chip {
  border-radius: var(--btn-radius);
}

.portal-chip[aria-pressed="true"] {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--white);
}

/* ---------- Dialogs: soft open, accessible close ---------- */
.apply-dialog {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}

.apply-dialog[open] {
  animation: dialog-in 0.2s var(--ease);
}

.apply-dialog::backdrop {
  background: rgba(32, 36, 58, 0.45);
}

.apply-dialog[open]::backdrop {
  animation: backdrop-in 0.2s ease-out;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.apply-close {
  border-radius: var(--btn-radius);
}

.apply-close:hover {
  background: var(--brand-ice);
}

/* steps of the application: done in light blue, the current one in blue */
.apply-step.is-done {
  border-top-color: #A9B8F5;
}

.apply-step.is-current {
  border-top-color: var(--brand-blue);
  color: var(--brand-navy);
}

/* ---------- Motion off when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  .message-row,
  .apply-dialog[open],
  .apply-dialog[open]::backdrop,
  .landing-header.is-open .landing-nav {
    animation: none;
  }
}

/* logged-in home: the jobs start right under the header */
.band.home-personal {
  padding-top: 28px;
}

@media (min-width: 720px) {
  .band.home-personal {
    padding-top: 40px;
  }
}

/* =================================================================
   REDESIGN 2026 — part 3: color in the job lists
   A color per role family (stripe + tag), tinted fact tags, a soft
   colored page header and colored icons in the details panel.
   ================================================================= */
.job-card,
.match-card {
  --role: var(--color-border-strong);
  --role-soft: var(--brand-ice);
  --role-ink: var(--brand-navy);
  position: relative;
  overflow: hidden;
}

[data-role-group="blue"]   { --role: var(--brand-blue);   --role-soft: #EEF2FF; --role-ink: #2F4BC4; }
[data-role-group="purple"] { --role: var(--brand-purple); --role-soft: #F1EEFD; --role-ink: #5B47C9; }
[data-role-group="pink"]   { --role: var(--brand-pink);   --role-soft: #FDEEF6; --role-ink: #B22A72; }
[data-role-group="yellow"] { --role: #F2B531;             --role-soft: #FFF6DE; --role-ink: #8A5A00; }

/* the stripe on the card's start edge (right, in RTL) */
.job-card::before,
.match-card[data-role-group]::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--role);
}

.job-role-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--role-soft);
  color: var(--role-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.job-role-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--role);
}

/* fact tags, one tint each */
.match-fact--place  { background: #EEF2FF; border-color: #D9E1FD; color: #2F4BC4; }
.match-fact--salary { background: #E8F7F0; border-color: #C9EBDB; color: #1B7A51; }
.match-fact--scope  { background: #F1EEFD; border-color: #E0DAFA; color: #5B47C9; }
.match-fact--hours  { background: #FFF6DE; border-color: #FBE8B5; color: #8A5A00; }
.match-fact--mode   { background: #FDEEF6; border-color: #F8D6E8; color: #B22A72; }

/* the jobs page header: a soft colored strip */
.jobs-intro {
  margin: 0 0 20px;
  padding: 22px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(260px 160px at 95% 0%, rgba(121, 101, 232, 0.18), transparent 70%),
    radial-gradient(240px 160px at 0% 100%, rgba(66, 99, 235, 0.16), transparent 70%),
    radial-gradient(200px 120px at 40% 0%, rgba(240, 90, 166, 0.10), transparent 70%),
    var(--white);
}

.jobs-intro .portal-title {
  margin-bottom: 4px;
}

/* details panel: each fact icon in its own tint */
.job-fact:nth-child(5n+1) .job-fact-icon { background: #EEF2FF; color: var(--brand-blue); }
.job-fact:nth-child(5n+2) .job-fact-icon { background: #FDEEF6; color: #D63F8C; }
.job-fact:nth-child(5n+3) .job-fact-icon { background: #F1EEFD; color: var(--brand-purple); }
.job-fact:nth-child(5n+4) .job-fact-icon { background: #E8F7F0; color: #1F8A5C; }
.job-fact:nth-child(5n+5) .job-fact-icon { background: #FFF6DE; color: #B07800; }

.job-toggle {
  color: var(--brand-blue);
}

.home-personal .jobs-intro {
  max-width: 820px;
}

.home-personal .jobs-intro .home-personal-head {
  margin-bottom: 6px;
}

.home-personal .jobs-intro #jobsCount {
  margin-bottom: 0;
}

/* =================================================================
   Start without a password — the CV-only path (cv.html), the
   "saved on this device" line, the account offer after saving,
   and the personal-area start screens.
   ================================================================= */
.save-status {
  margin: 0;
  padding: 4px 16px;
  font-size: 0.78rem;
  color: #1B7A51;
  background: #F1FBF6;
  border-bottom: 1px solid #D7F0E3;
  text-align: center;
}

.save-status.is-error {
  color: #9A3412;
  background: #FFF7ED;
  border-bottom-color: #FED7AA;
}

.discretion-alt {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.account-offer {
  margin-top: 18px;
  padding: 18px 16px;
  border: 1px solid #E0DAFA;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #F7F5FF, #FFFFFF);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.account-offer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.account-offer-text,
.account-offer-email {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

.account-offer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-main {
  max-width: 680px;
}

.cv-card .apply-steps {
  margin: 14px 0 6px;
}

.cv-alt {
  margin-top: 14px;
  text-align: center;
}

.cv-next {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--brand-ice, #F7F8FC);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-next-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.portal-start-ways {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-start-ways .portal-small {
  margin: 0 0 8px;
}

.portal-notice--partial {
  border-color: #FBE8B5;
  background: #FFF6DE;
  color: #6B4A00;
}

/* =================================================================
   JOB CARDS 2026-10 — a grid of cards (3 / 2 / 1 per row): a colored
   top half (role tint), place · job type · when, 3 lines of text,
   "פרטים נוספים" + "הגשת מועמדות". Details open in a window.
   ================================================================= */
.jobs-main {
  max-width: 1200px;
}

.home-personal .jobs-list {
  max-width: none;
}

.jobs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 720px) {
  .jobs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .jobs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.jobs-list > .primary-btn {
  justify-self: start;
}

.jobs-list .job-card {
  --plum: #5E1745;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(32, 36, 58, 0.10);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jobs-list .job-card::before {
  display: none;
}

.jobs-list .job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(32, 36, 58, 0.14);
}

/* the colored half */
.job-card-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 150px;
  padding: 22px 20px 20px;
  /* always pink, whatever the role (the role shows on its tag) */
  background:
    radial-gradient(220px 140px at 100% 0%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #FCE4EF, #FEF2F7);
}

.job-card-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(32, 36, 58, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--plum);
}

.job-card-logo svg {
  width: 28px;
  height: 28px;
}

.job-card-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.job-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--plum);
}

.job-card-company {
  margin: 0;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.job-card-heading .job-role-tag {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.75);
}

.job-card-match {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  font-size: 0.78rem;
}

.job-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 4px;
}

.job-card-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--brand-navy);
}

.job-card-meta-icon {
  display: inline-flex;
  color: var(--brand-navy);
}

.job-card-meta-icon svg {
  width: 18px;
  height: 18px;
}

/* up to 3 short lines; the rest is in "פרטים נוספים" */
.job-card-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--brand-navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 20px 20px;
}

.job-card-more,
.job-card-apply {
  min-height: 50px;
  padding: 0 12px;
  white-space: nowrap;
  border-radius: var(--radius-pill, 999px);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.job-card-more {
  background: #F7F6F3;
  border: 1px solid #E7E4DE;
  color: var(--brand-navy);
}

.job-card-more:hover {
  background: #EFEDE8;
}

.job-card-apply {
  background: #23306B;
  border: 0;
  color: #FFFFFF;
}

.job-card-apply:hover {
  background: #1A2454;
}

.job-card-apply svg {
  width: 18px;
  height: 18px;
}

.job-card-apply.is-done,
.job-card-apply:disabled {
  background: #E8F7F0;
  color: #1B7A51;
  cursor: default;
}

.job-card-more:focus-visible,
.job-card-apply:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

/* the jobs page header: title + "העלאת קורות חיים" */
.jobs-intro--bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.jobs-cv-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill, 999px);
  background: linear-gradient(90deg, #FF9F68, #F0609E);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(240, 96, 158, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jobs-cv-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(240, 96, 158, 0.34);
}

.jobs-cv-cta svg {
  width: 20px;
  height: 20px;
}

/* "פרטים נוספים" window */
.job-details-dialog .job-details-head {
  background: linear-gradient(180deg, #FCE4EF, #FFFFFF);
}

.job-details-dialog .apply-title {
  color: #5E1745;
}

.job-details-body .job-details {
  border-top: 0;
  padding-top: 4px;
}

.job-details-foot {
  padding: 12px 18px calc(16px + var(--safe-bottom, 0px));
  border-top: 1px solid var(--color-border);
  background: var(--white);
}

.job-details-foot .job-card-apply {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .jobs-list .job-card,
  .jobs-list .job-card:hover,
  .jobs-cv-cta:hover {
    transition: none;
    transform: none;
  }
}

/* job cards: one blue for every role tag; round icon chips */
.jobs-list .job-card .job-role-tag {
  --role: var(--brand-blue);
  background: rgba(255, 255, 255, 0.75);
  color: #2F4BC4;
}

.job-card-meta-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #EEF2FF;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.job-card-meta-icon svg {
  width: 15px;
  height: 15px;
}

.job-card-top {
  min-height: 130px;
}


/* =================================================================
   "פרטים נוספים" — a full screen (not a pop-up), three colors only:
   navy text, one blue accent, light grey / white surfaces.
   ================================================================= */
body.job-screen-open {
  overflow: hidden;
}

.job-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #F6F7FB;
  animation: job-screen-in 0.22s ease;
}

.job-screen[hidden] {
  display: none;
}

@keyframes job-screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.job-screen-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  background: #FFFFFF;
  border-bottom: 1px solid #E7E9F0;
}

.job-screen-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  background: none;
  border: 0;
  color: var(--brand-blue);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.job-screen-back svg {
  width: 20px;
  height: 20px;
}

.job-screen-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px calc(40px + var(--safe-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job-screen-company {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #5B6178;
}

.job-screen-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--brand-navy);
  outline: none;
}

.job-screen .job-details {
  border-top: 0;
  padding: 0;
  gap: 16px;
}

/* one palette: every icon, chip, marker and edge in the same blue / grey */
.job-screen .job-fact {
  background: #FFFFFF;
  border-color: #E7E9F0;
}

.job-screen .job-fact .job-fact-icon,
.job-screen .job-fact:nth-child(n) .job-fact-icon {
  background: #EEF1FD;
  color: var(--brand-blue);
}

.job-screen .job-fact dt {
  color: #5B6178;
}

.job-screen .job-fact dd,
.job-screen .job-fact-chip {
  color: var(--brand-navy);
}

.job-screen .job-fact-chip {
  background: #FFFFFF;
  border-color: #D9DDEA;
}

.job-screen .job-section,
.job-screen .job-details .job-section--requirements {
  background: #FFFFFF;
  border: 1px solid #E7E9F0;
  border-inline-start: 1px solid #E7E9F0;
}

.job-screen .job-section-title {
  color: var(--brand-navy);
}

.job-screen .job-section-text,
.job-screen .job-section-list li {
  color: #3A3F55;
}

.job-screen .job-section-list li::before,
.job-screen .job-section--requirements li::before,
.job-screen .job-section--advantages li::before,
.job-screen .job-section--benefits li::before {
  background: #EEF1FD;
  color: var(--brand-blue);
}

.job-screen-foot {
  position: sticky;
  bottom: 0;
  padding: 12px 0 calc(4px + var(--safe-bottom, 0px));
  background: linear-gradient(180deg, rgba(246, 247, 251, 0), #F6F7FB 30%);
}

.job-screen-foot .job-card-apply {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .job-screen { animation: none; }
}

/* =================================================================
   FOOTER 2026-10 — a dark band at the end of the home page: the
   logo (in the site's font), link columns, popular searches.
   ================================================================= */
.site-footer.site-footer--full {
  display: block;
  padding: 48px 16px calc(28px + var(--safe-bottom, 0px));
  background: #1F2235;
  border-top: 0;
  color: #C9CCDA;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-brand-link img {
  width: 48px;
  height: auto;
  padding: 6px;
  border-radius: 14px;
  background: #FFFFFF;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

/* the logo is text in the site's font (Heebo) — not an image */
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}

.footer-brand-tag {
  font-size: 0.85rem;
  color: #A9AEC4;
}

.footer-about {
  max-width: 420px;
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #A9AEC4;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-col-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-col ul,
.footer-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a,
.footer-bottom a {
  color: #C9CCDA;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tag-list a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #3A3F58;
  border-radius: var(--radius-pill, 999px);
  color: #C9CCDA;
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-tag-list a:hover {
  border-color: #8C93B8;
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #343852;
  font-size: 0.85rem;
  color: #8C91A8;
}

.site-footer--full a:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.1fr 2fr;
    column-gap: 56px;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-tags,
  .footer-bottom {
    grid-column: 1 / -1;
  }
}

.footer-about--by {
  margin-top: 4px;
}

/* the account card is optional: ✕ / "לא עכשיו" close it */
.account-offer {
  position: relative;
}

.account-offer[hidden] {
  display: none;
}

.account-offer-title {
  padding-inline-end: 36px;
}

.account-offer-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-offer-close:hover {
  background: rgba(32, 36, 58, 0.06);
}

.account-offer-close svg {
  width: 18px;
  height: 18px;
}

.account-offer-skip {
  align-self: center;
}

/* =================================================================
   Jobs: search + filters (above the cards)
   ================================================================= */
.jobs-filters {
  position: relative;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 20px);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(32, 36, 58, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jobs-search {
  display: flex;
  gap: 8px;
}

.jobs-search-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-border-strong, #D9DDEA);
  border-radius: var(--radius-pill, 999px);
  background: #F7F8FC;
  font: inherit;
  font-size: 1rem;
  color: var(--brand-navy);
}

.jobs-search-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(66, 99, 235, 0.15);
}

.jobs-search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  background: #23306B;
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.jobs-search-btn:hover {
  background: #1A2454;
}

.jobs-search-btn svg {
  width: 18px;
  height: 18px;
}

.jobs-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.jobs-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.jobs-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.jobs-filter-select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border-strong, #D9DDEA);
  border-radius: 12px;
  background: #FFFFFF;
  font: inherit;
  font-size: 0.95rem;
  color: var(--brand-navy);
}

.jobs-filter-select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(66, 99, 235, 0.15);
}

.jobs-filter-clear {
  justify-self: start;
  min-height: 44px;
}

.jobs-filter-clear[hidden] {
  display: none;
}



@media (max-width: 420px) {
  .jobs-search-btn span {
    display: none;
  }
  .jobs-search-btn {
    padding: 0 14px;
  }
}

.jobs-empty {
  grid-column: 1 / -1;
  padding: 32px 16px;
  border: 1px dashed var(--color-border-strong, #D9DDEA);
  border-radius: var(--radius-lg, 20px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.jobs-empty-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
}

/* the filters: a drop-down panel under the "סינון" button */
.jobs-filter-toggle {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-border-strong, #D9DDEA);
  border-radius: var(--radius-pill, 999px);
  background: #FFFFFF;
  color: var(--brand-navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.jobs-filter-toggle:hover,
.jobs-filter-toggle.is-open {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.jobs-filter-toggle svg {
  width: 18px;
  height: 18px;
}

.jobs-filter-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #FFFFFF;
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}

.jobs-filter-badge[hidden] {
  display: none;
}

.jobs-filter-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% - 8px);
  inset-inline-end: 16px;
  width: min(360px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(32, 36, 58, 0.16);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: jobs-filter-in 0.16s ease;
}

.jobs-filter-panel[hidden] {
  display: none;
}

@keyframes jobs-filter-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.jobs-filter-done {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius-pill, 999px);
  background: #23306B;
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.jobs-filter-done:hover {
  background: #1A2454;
}

@media (max-width: 420px) {
  .jobs-filter-toggle span:not(.jobs-filter-badge) {
    display: none;
  }
  .jobs-filter-toggle {
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jobs-filter-panel { animation: none; }
}
