/* =========================================================
   Business Research — AI Tech dark UI
   Open Sans (Hebrew + Latin) · JetBrains Mono
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Heebo:wght@300;400;500;600;700&family=Assistant:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* --- Background layers --- */
  --bg:          #0a0b0f;
  --bg-deep:     #070810;
  --bg-surface:  #13151b;
  --bg-elevated: #1a1d25;
  --bg-hover:    #22252f;

  /* --- Borders --- */
  --border:       rgba(255,255,255,0.08);
  --border-hi:    rgba(255,255,255,0.16);
  --border-focus: rgba(91,141,255,0.45);
  --border-faint: rgba(255,255,255,0.04);

  /* --- Text --- */
  --text:   #f4f5f8;
  --text-2: #a3a6b2;
  --text-3: #6b6e7a;
  --text-4: #464955;
  --text-dim: rgba(244,245,248,0.55);

  /* --- Accent (electric blue) --- */
  --accent:       #5b8dff;
  --accent-hi:    #7ba3ff;
  --accent-lo:    #3f6fd9;
  --accent-soft:  rgba(91,141,255,0.12);
  --accent-glow:  rgba(91,141,255,0.28);
  --accent-ring:  rgba(91,141,255,0.18);

  /* Secondary violet for subtle gradients */
  --violet:       #8b5cf6;
  --violet-glow:  rgba(139,92,246,0.16);

  /* Semantic */
  --success:      #34d399;
  --success-soft: rgba(52,211,153,0.12);
  --warn:         #fbbf24;
  --warn-soft:    rgba(251,191,36,0.12);
  --danger:       #ef4444;
  --danger-soft:  rgba(239,68,68,0.10);

  /* --- Typography (Hebrew-first stack) --- */
  --f-body: 'Open Sans Hebrew', 'Open Sans', 'Heebo', 'Assistant', 'Arial Hebrew', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* --- Scale --- */
  --s-micro:   11px;
  --s-small:   13px;
  --s-body:    15px;
  --s-lead:    17px;
  --s-h3:      19px;
  --s-h2:      28px;
  --s-h1:      44px;
  --s-display: 60px;

  --max-w: 680px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-chip: 999px;

  --ease: cubic-bezier(.4,.2,.15,1);
}

/* =========================================================
   RESET + BASE
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--s-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  font-feature-settings: "cv11";
  letter-spacing: -0.005em;
}

/* Layered background: two soft glows + faint dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px circle at 10% -10%, var(--accent-soft), transparent 50%),
    radial-gradient(600px circle at 90% 110%, var(--violet-glow), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--accent); color: #fff; }

img, svg { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--accent-hi); }

[x-cloak] { display: none !important; }

/* kill default focus outlines; we provide our own ring */
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =========================================================
   LAYOUT FRAME
   ========================================================= */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(10,11,15,0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
  border: none;
  padding: 0;
}
.wordmark:hover { color: var(--text); }
.wordmark:hover .wordmark__mark {
  box-shadow: 0 0 24px var(--accent), 0 0 12px var(--accent);
}
.wordmark__mark {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent), 0 0 8px var(--accent);
  transition: box-shadow .3s var(--ease);
  position: relative;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-3);
  font-weight: 400;
}

.top-bar__counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.top-bar__counter strong {
  color: var(--text);
  font-weight: 500;
  font-family: var(--f-mono);
  font-feature-settings: "tnum";
}

.container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 140px;
  width: 100%;
  flex: 1;
}
.container--wide { max-width: 820px; }

.hairline {
  display: block;
  height: 1px;
  background: var(--border);
  border: none;
  margin: 48px 0;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--f-body);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

h1 { font-size: var(--s-h1); }
h2 { font-size: var(--s-h2); }
h3 { font-size: var(--s-h3); }

p { margin: 0 0 16px; color: var(--text-2); }

.lead {
  font-size: var(--s-lead);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 58ch;
  font-weight: 400;
}

.muted {
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.55;
}

.caps {
  font-family: var(--f-mono);
  font-size: var(--s-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

/* Gradient text for hero titles */
.gradient-text {
  background: linear-gradient(180deg, #ffffff 0%, #9ca1b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Subtle accent highlight (for one special word) */
.accent-glow-text {
  color: var(--accent-hi);
  text-shadow: 0 0 24px var(--accent-glow);
}

/* =========================================================
   HERO (landing)
   ========================================================= */

.hero { padding-top: 48px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 16px;
  border: 1px solid var(--border-hi);
  background: var(--bg-surface);
  border-radius: var(--radius-chip);
  font-family: var(--f-body);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 28px;
}
.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 16px;
  border: 1px solid var(--border-hi);
  background: var(--bg-surface);
  border-radius: var(--radius-chip);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, var(--s-display));
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #ffffff 0%, #b3b6c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero__lead {
  font-size: var(--s-lead);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 40px;
}

.hero__form {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 480px;
}

.hero__note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
}

/* =========================================================
   QUESTIONNAIRE STAGE
   ========================================================= */

.stage-wrap {
  animation: stage-enter .5s var(--ease) both;
}
@keyframes stage-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stage-head {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

/* The old .stage-head__number chip → hidden (info is in the top-bar counter + eyebrow) */
.stage-head__number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  border-radius: var(--radius-chip);
  letter-spacing: 0.02em;
  font-weight: 500;
  font-feature-settings: "tnum";
  margin-bottom: 20px;
  order: -1;
}
.stage-head__number::before {
  content: 'שלב';
  font-family: var(--f-body);
  font-size: 12.5px;
  opacity: .75;
  font-weight: 500;
}
.stage-head__number::after {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.stage-head__body { display: contents; }

.stage-head__eyebrow {
  font-family: var(--f-body);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--text-3);
  margin-bottom: 10px;
  order: 2;
  font-weight: 500;
}

.stage-head__title {
  font-size: clamp(30px, 4vw, var(--s-h1));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 0%, #aeb2be 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
  order: 3;
}

/* =========================================================
   PROGRESS INDICATOR
   ========================================================= */

.progress {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 4px;
  margin-bottom: 56px;
}

.progress .step {
  height: 2px;
  background: var(--bg-elevated);
  border-radius: 1px;
  transition: background .5s var(--ease);
  position: relative;
  overflow: hidden;
}
.progress .step.done { background: var(--accent); }
.progress .step.active {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hi) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  height: 3px;
  margin-top: -0.5px;
  animation: progress-shimmer 2.2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}
@keyframes progress-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   FIELDS — boxed, dark surface, focus ring
   ========================================================= */

.field { margin: 0 0 22px; }

.field__label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.field__required {
  color: var(--accent);
  font-weight: 500;
  font-size: 12px;
}

.field__help {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
}

/* the control wrapper provides the visual box + focus ring */
.field__control {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__control:hover {
  border-color: var(--border-hi);
}
.field__control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--s-body);
  line-height: 1.5;
  border: none;
  border-radius: var(--radius-sm);
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--f-body);
}

.field select {
  padding-left: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23a3a6b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5L6 6.5L11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 11px 7px;
  cursor: pointer;
}
.field select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  color: var(--text-4);
  cursor: not-allowed;
  opacity: .6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-4);
  opacity: 1;
}

/* autofill fix for dark bg */
.field input:-webkit-autofill,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--bg-surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 5000s ease-in-out 0s;
}

/* =========================================================
   CHIP RADIOS / CHECKBOX-GROUPS
   ========================================================= */

.chip-group,
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition:
    background .2s var(--ease),
    color .2s var(--ease),
    border-color .2s var(--ease),
    box-shadow .2s var(--ease);
  line-height: 1.3;
  position: relative;
}
.option:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: var(--bg-elevated);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}

.option:has(input:checked) {
  background: var(--accent-soft);
  color: var(--accent-hi);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 0 20px var(--accent-ring);
}

/* =========================================================
   TOGGLE (pill switch)
   ========================================================= */

.option.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  margin: 6px 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  gap: 12px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.option.toggle:hover {
  border-color: var(--border-hi);
  background: var(--bg-elevated);
}
.option.toggle::after {
  content: '';
  width: 40px; height: 22px;
  background: var(--bg-hover);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-chip);
  position: relative;
  flex-shrink: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.option.toggle::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: var(--text-2);
  border-radius: 50%;
  transition: transform .28s var(--ease), background .28s var(--ease);
  z-index: 1;
  left: 21px;
}
.option.toggle:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hi);
  box-shadow: 0 0 20px var(--accent-ring);
}
.option.toggle:has(input:checked)::after {
  background: var(--accent);
  border-color: var(--accent);
}
.option.toggle:has(input:checked)::before {
  left: 40px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.4);
}

/* =========================================================
   RANGE DUAL (age slider)
   ========================================================= */

.range-field .field__label {
  justify-content: space-between;
}

.range-values {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--text);
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}
.range-values strong {
  color: var(--accent-hi);
  font-weight: 500;
}

.range-dual {
  position: relative;
  padding: 12px 0 4px;
  margin-top: 4px;
}
.range-dual input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  cursor: pointer;
}
.range-dual input[type=range]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--bg-elevated);
  border-radius: 1px;
}
.range-dual input[type=range]::-moz-range-track {
  height: 2px;
  background: var(--bg-elevated);
  border-radius: 1px;
}
.range-dual input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  margin-top: -8px;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 0 0 0 var(--accent-ring), 0 2px 6px rgba(0,0,0,.5);
}
.range-dual input[type=range]::-webkit-slider-thumb:hover,
.range-dual input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--accent-ring), 0 2px 6px rgba(0,0,0,.5);
}
.range-dual input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  cursor: pointer;
}

/* =========================================================
   REPEATER ROWS
   ========================================================= */

.repeater-row {
  position: relative;
  padding: 20px 20px 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin: 12px 0;
  border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
.repeater-row:hover { border-color: var(--border-hi); }

.repeater-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.repeater-row-head strong {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--text-3);
}

/* Section dividers (type: heading) */
.section-heading {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
  position: relative;
}
.section-heading::before {
  content: '';
  position: absolute;
  top: -1px; right: 0;
  width: 24px; height: 1px;
  background: var(--accent);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 11px 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition:
    background .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease),
    transform .12s var(--ease),
    box-shadow .2s var(--ease);
  border-radius: var(--radius-sm);
  line-height: 1.3;
  position: relative;
  text-transform: none;
}
.btn:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-ring);
}
.btn:active { transform: translateY(0); }
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn .arrow {
  font-family: var(--f-body);
  transition: transform .2s var(--ease);
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}
.btn:hover .arrow { transform: translateX(-3px); }

.btn.secondary {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hi);
}
.btn.secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-3);
  color: var(--text);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
  padding: 9px 14px;
}
.btn.ghost:hover {
  background: var(--bg-surface);
  color: var(--text);
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #f87171; border-color: #f87171; }

.btn.small {
  padding: 7px 12px;
  font-size: 12.5px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================
   STAGE NAV
   ========================================================= */

.stage-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.stage-nav .btn.secondary { min-width: 110px; }
.stage-nav .btn.primary,
.stage-nav .btn { min-width: auto; }

/* =========================================================
   BANNERS
   ========================================================= */

.banner {
  font-size: 13.5px;
  line-height: 1.55;
  padding: 12px 16px;
  border-right: 2px solid;
  background: transparent;
  margin: 14px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.banner.info  {
  border-color: var(--accent);
  color: var(--text-2);
  background: var(--accent-soft);
}
.banner.warn  {
  border-color: var(--warn);
  color: var(--text-2);
  background: var(--warn-soft);
}
.banner.error {
  border-color: var(--danger);
  color: #fca5a5;
  background: var(--danger-soft);
}

/* =========================================================
   SPINNER
   ========================================================= */

.spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .9s linear infinite;
  vertical-align: middle;
  margin-inline-start: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   PIPELINE / SUMMARY
   ========================================================= */

.stage-summary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-right: 2px solid var(--accent);
  padding: 24px 24px 20px;
  margin: 20px 0 28px;
  position: relative;
  border-radius: var(--radius);
}
.stage-summary::before {
  content: 'סיכום';
  position: absolute;
  top: -10px; right: 22px;
  background: var(--bg);
  padding: 2px 12px;
  font-family: var(--f-body);
  font-size: 11.5px;
  letter-spacing: 0;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
}
.stage-summary ul { list-style: none; padding: 0; margin: 0; }
.stage-summary li {
  padding: 10px 18px 10px 0;
  position: relative;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.stage-summary li:last-child { border-bottom: none; }
.stage-summary li::before {
  content: '';
  position: absolute;
  right: 0; top: 18px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.stages-list { list-style: none; padding: 0; margin: 16px 0 0; }
.stages-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-2);
}
.stages-list li:first-child { border-top: 1px solid var(--border); }
.stages-list li:last-child { border-bottom: 1px solid var(--border); }

.stages-list .status {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text-3);
  font-weight: 500;
}
.stages-list .status.done    { color: var(--success); }
.stages-list .status.running { color: var(--accent); }
.stages-list .status.pending { color: var(--text-4); }
.stages-list .status.error   { color: var(--danger); }

/* =========================================================
   CARD wrapper (kept for markup, now transparent)
   ========================================================= */

.card {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 32px;
  box-shadow: none;
}

/* =========================================================
   FOOTER MARK
   ========================================================= */

.foot-mark {
  text-align: center;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text-4);
  margin: 80px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 400;
}
.foot-mark::before,
.foot-mark::after {
  content: '';
  width: 24px; height: 1px;
  background: var(--border-hi);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 720px) {
  :root {
    --s-h1:      32px;
    --s-display: 40px;
  }

  .top-bar    { padding: 14px 20px; gap: 12px; }
  .container  { padding: 40px 20px 100px; }

  .stage-head { margin-bottom: 40px; padding-bottom: 24px; }

  .hero { padding-top: 24px; }
  .hero__title { font-size: 34px; }
  .hero__lead  { font-size: 16px; }
  .hero__form  { max-width: none; }

  .chip-group, .radio-group, .checkbox-group { gap: 6px; }
  .option { padding: 8px 12px; font-size: 13px; }

  .stage-nav { flex-direction: column-reverse; align-items: stretch; }
  .stage-nav .btn { width: 100%; justify-content: center; }

  .repeater-row { padding: 16px 16px 4px; }
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {
  body { background: white; color: black; }
  body::before, body::after { display: none; }
  .top-bar, .stage-nav, .btn { display: none; }
  .container { max-width: none; padding: 0; }
}
