/* ═══════════════════════════════════════════════════════════════════════════
   Autil Join Workspace — shared design system for /join/therapist/apply
   and /join/clinic.

   Scope: every class is prefixed `jw-` and every token `--jw-*`, so nothing
   here can leak into the admin dashboard, portals, or the rainbow-bloom
   landing page (which keeps its own `rb-` system).

   The accent color is plan-aware: pages set `--jw-accent` / `--jw-accent-grad`
   inline on .jw-page and everything below follows, including a smooth
   transition when the visitor switches plans.
   ═══════════════════════════════════════════════════════════════════════════ */

.jw-page {
  /* palette */
  --jw-bg:        #FBF9F6;
  --jw-surface:   #FFFFFF;
  --jw-soft:      #F7F4FB;
  --jw-ink:       #241A38;
  --jw-sub:       #655D7A;
  --jw-muted:     #6E6882; /* AA fix: #948CA8 was 3.19:1 on white, needs 4.5:1 for the small text it's used for everywhere (this darkens to ~5.3:1) */
  --jw-border:    #ECE7F4;
  --jw-border-2:  #DFD8EE;
  --jw-input-bg:  #FBFAFE;
  --jw-error:     #DC2626;
  --jw-error-bg:  #FEF2F2;
  --jw-error-bd:  #FECACA;
  --jw-ok:        #047857;
  --jw-ok-bg:     #ECFDF5;
  --jw-ok-bd:     #A7F3D0;

  /* brand */
  --jw-brand-grad: linear-gradient(135deg, #845EC2 0%, #FF6B9D 55%, #FF8C42 100%);

  /* plan-aware accent — overridden inline by the page */
  --jw-accent:      #845EC2;
  --jw-accent-grad: linear-gradient(135deg, #845EC2, #6D28D9);

  /* shape + depth */
  --jw-radius:     18px;
  --jw-radius-sm:  12px;
  --jw-shadow-sm:  0 2px 12px rgba(36, 26, 56, .06);
  --jw-shadow-md:  0 10px 36px rgba(36, 26, 56, .09);
  --jw-shadow-ambient: 0 2px 3px rgba(36,26,56,.04), 0 16px 40px -8px rgba(36,26,56,.12);
  --jw-inset-highlight: inset 0 1px 0 rgba(255,255,255,.6);
  --jw-glow:       0 10px 30px color-mix(in srgb, var(--jw-accent) 24%, transparent);
  --jw-ease-out-soft: cubic-bezier(.16,1,.3,1);

  /* type */
  --jw-display: 'Varela Round', 'Heebo', system-ui, sans-serif;

  min-height: 100vh;
  background: var(--jw-bg);
  color: var(--jw-ink);
  direction: rtl;
  text-align: right;
  overflow-x: clip;
}

.jw-display { font-family: var(--jw-display); }

/* Editorial statement — a large, asymmetric pull-quote/lead moment. Same
   role as .rb-statement on the homepage: used once per page, not centered,
   tighter leading than a regular heading. */
.jw-statement {
  font-family: var(--jw-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--jw-ink);
}

/* On-load entrance (no scroll/observer dependency — safe for above-the-fold
   content). Scroll-triggered reveal isn't used on jw-* pages (forms are
   short/functional; everything above-the-fold entrance-animates instead). */
@keyframes jw-entrance-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.jw-entrance { animation: jw-entrance-up .7s var(--jw-ease-out-soft) both; }
.jw-entrance-d1 { animation-delay: .1s; }
.jw-entrance-d2 { animation-delay: .2s; }
.jw-entrance-d3 { animation-delay: .3s; }

/* Cursor-tilt utility, same mechanism as the homepage's .rb-tilt. */
.jw-tilt {
  --tilt-x: 0deg; --tilt-y: 0deg;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .35s var(--jw-ease-out-soft);
}

@media (prefers-reduced-motion: reduce) {
  .jw-entrance, .jw-entrance-d1, .jw-entrance-d2, .jw-entrance-d3 { animation: none; opacity: 1; transform: none; }
  .jw-tilt { transition: none; transform: none !important; }
}

/* ── Shell / workspace grid ─────────────────────────────────────────────── */

.jw-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.4vw, 48px);
}

.jw-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px; /* RTL: form right, panel left */
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.jw-panel-col { position: sticky; top: 86px; } /* clears the sticky 64px PublicHeader */

/* ── Hero (compact aurora) ──────────────────────────────────────────────── */

.jw-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--jw-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--jw-accent) 7%, var(--jw-surface)) 0%, var(--jw-bg) 100%);
  transition: background .5s ease;
}
.jw-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: .5;
  transition: background .5s ease;
  animation: jw-orb-drift 16s ease-in-out infinite;
}
.jw-hero-orb--a {
  width: 420px; height: 420px; top: -260px; right: -80px;
  background: radial-gradient(circle, color-mix(in srgb, var(--jw-accent) 55%, transparent), transparent 70%);
}
.jw-hero-orb--b {
  width: 340px; height: 340px; bottom: -240px; left: 6%;
  background: radial-gradient(circle, color-mix(in srgb, #FF6B9D 38%, transparent), transparent 70%);
  animation-delay: -8s;
}
/* Top utility row — keeps the back button in normal flow so it can never
   collide with the badges column (the old absolute positioning overlapped
   .jw-hero-badges at mid-desktop widths). */
.jw-hero-top {
  display: flex;
  justify-content: flex-end; /* RTL: inline-end = left */
  margin-bottom: 12px;
  min-height: 0;
}
.jw-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.jw-hero-logo {
  width: 62px; height: 62px; object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(36, 26, 56, .18));
  flex-shrink: 0;
}
.jw-hero-title {
  font-family: var(--jw-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}
.jw-hero-sub {
  margin: 3px 0 0;
  color: var(--jw-sub);
  font-size: 14px;
}
.jw-hero-badges {
  margin-inline-start: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.jw-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--jw-accent) 10%, var(--jw-surface));
  border: 1px solid color-mix(in srgb, var(--jw-accent) 28%, transparent);
  color: color-mix(in srgb, var(--jw-accent) 78%, var(--jw-ink));
  transition: background .4s ease, border-color .4s ease, color .4s ease;
}
.jw-badge--soft {
  background: var(--jw-surface);
  border-color: var(--jw-border-2);
  color: var(--jw-sub);
  font-weight: 600;
}
.jw-hero-back {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--jw-sub);
  background: var(--jw-surface);
  border: 1px solid var(--jw-border-2);
  border-radius: 10px;
  padding: 7px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s, box-shadow .2s;
}
.jw-hero-back:hover { color: var(--jw-accent); border-color: var(--jw-accent); box-shadow: var(--jw-shadow-sm); }

/* ── Plan selector ──────────────────────────────────────────────────────── */

.jw-plan-section { padding: 26px 0 4px; }
.jw-plan-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--jw-muted);
  margin: 0 0 12px;
}
.jw-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.jw-plan-card {
  --pc: #845EC2; /* per-card plan color, set inline */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px 14px;
  border-radius: var(--jw-radius);
  border: 1.5px solid var(--jw-border);
  background: var(--jw-surface);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  color: var(--jw-ink);
  box-shadow: var(--jw-shadow-sm);
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease, background .25s ease;
}
.jw-plan-card:hover {
  border-color: color-mix(in srgb, var(--pc) 45%, var(--jw-border));
  transform: translateY(-2px);
  box-shadow: var(--jw-shadow-md);
}
.jw-plan-card:focus-visible {
  outline: none;
  border-color: var(--pc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 30%, transparent);
}
.jw-plan-card.is-selected {
  border-color: var(--pc);
  background: color-mix(in srgb, var(--pc) 5%, var(--jw-surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 18%, transparent),
              0 10px 30px color-mix(in srgb, var(--pc) 20%, transparent);
}
.jw-plan-emoji { font-size: 24px; line-height: 1; margin-bottom: 2px; }
.jw-plan-name  { font-size: 14.5px; font-weight: 800; }
.jw-plan-card.is-selected .jw-plan-name { color: var(--pc-text, var(--pc)); } /* AA text variant (Final Therapist QA 2026-10-23) */
.jw-plan-price { font-size: 13px; font-weight: 700; color: var(--jw-sub); font-family: var(--jw-display); }
.jw-plan-price b { font-size: 16px; color: var(--jw-ink); font-weight: 400; }
.jw-plan-card.is-selected .jw-plan-price b { color: var(--pc-text, var(--pc)); }
.jw-plan-period { font-size: 11px; color: var(--jw-muted); }
.jw-plan-tag {
  position: absolute;
  top: -9px;
  inset-inline-start: 14px;
  background: #F59E0B;
  /* Final Therapist QA (2026-10-23): white was 2.1:1 on this amber; dark amber ink keeps the brand fill (6.8:1) */
  color: #422006;
  font-size: 10px;
  font-weight: 900;
  border-radius: 8px;
  padding: 2px 9px;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .4);
}
.jw-plan-check {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pc);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: jw-pop .3s cubic-bezier(.34, 1.56, .64, 1);
}
.jw-plan-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--jw-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.jw-plan-note a { color: #0D9488; font-weight: 700; text-decoration: none; }
.jw-plan-note a:hover { text-decoration: underline; }

/* ── Stepper ────────────────────────────────────────────────────────────── */

.jw-stepper {
  display: flex;
  align-items: flex-start;
  margin: 22px 0 18px;
}
.jw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.jw-step-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jw-display);
  font-size: 15px;
  background: var(--jw-surface);
  border: 2px solid var(--jw-border-2);
  color: var(--jw-muted);
  transition: background .35s, border-color .35s, color .35s, box-shadow .35s;
}
.jw-step.is-current .jw-step-dot {
  background: var(--jw-accent-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--jw-accent) 16%, transparent);
}
.jw-step.is-done .jw-step-dot {
  background: var(--jw-brand-grad);
  border-color: transparent;
  color: #fff;
}
.jw-step.is-done .jw-step-dot span { animation: jw-pop .3s cubic-bezier(.34, 1.56, .64, 1); }
.jw-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--jw-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 90px;
  transition: color .3s;
}
.jw-step.is-current .jw-step-label { color: var(--jw-ink); font-weight: 800; }
.jw-step.is-done    .jw-step-label { color: var(--jw-sub); }
.jw-step-line {
  flex: 1 1 auto;
  height: 3px;
  border-radius: 4px;
  background: var(--jw-border);
  margin: 19px 10px 0;
  position: relative;
  overflow: hidden;
  min-width: 32px;
}
.jw-step-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--jw-brand-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s ease;
}
.jw-step-line.is-done::after { transform: scaleX(1); }
.jw-stepper-compact {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}
.jw-stepper-compact .txt { font-size: 12.5px; font-weight: 800; color: var(--jw-sub); white-space: nowrap; }
.jw-stepper-compact .bar {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--jw-border);
  overflow: hidden;
}
.jw-stepper-compact .bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--jw-brand-grad);
  transition: width .45s ease;
}

/* ── Cards / sections ───────────────────────────────────────────────────── */

.jw-card {
  background: var(--jw-surface);
  border: 1px solid var(--jw-border);
  border-radius: var(--jw-radius);
  box-shadow: var(--jw-shadow-md);
}
.jw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--jw-border);
}
.jw-card-title {
  font-family: var(--jw-display);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.jw-card-hint { font-size: 12px; color: var(--jw-muted); }
.jw-card-body { padding: 24px 26px 8px; }
.jw-step-pane { animation: jw-fade-up .3s ease; }

.jw-card-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 22px;
}

/* ── Fields ─────────────────────────────────────────────────────────────── */

.jw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.jw-field { margin-bottom: 16px; min-width: 0; }
.jw-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--jw-sub);
  margin-bottom: 6px;
}
.jw-label .req { color: var(--jw-error); }
.jw-input, .jw-textarea, .jw-select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--jw-border-2);
  border-radius: var(--jw-radius-sm);
  font-size: 15px;
  color: var(--jw-ink);
  background: var(--jw-input-bg);
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.jw-input:hover, .jw-textarea:hover, .jw-select:hover { border-color: color-mix(in srgb, var(--jw-accent) 35%, var(--jw-border-2)); }
.jw-input:focus, .jw-textarea:focus, .jw-select:focus {
  border-color: var(--jw-accent);
  background: var(--jw-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jw-accent) 15%, transparent);
}
.jw-input.has-error, .jw-textarea.has-error {
  border-color: var(--jw-error-bd);
  background: var(--jw-error-bg);
}
.jw-input::placeholder, .jw-textarea::placeholder { color: #B3ADC4; }
.jw-textarea { resize: vertical; line-height: 1.65; }
.jw-select { cursor: pointer; }
.jw-field-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--jw-error);
  margin-top: 5px;
}
.jw-field-hint { font-size: 11.5px; color: var(--jw-muted); margin-top: 4px; }

/* specialty chips */
.jw-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.jw-chip {
  padding: 9px 17px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid var(--jw-border-2);
  background: var(--jw-input-bg);
  color: var(--jw-sub);
  cursor: pointer;
  font-family: inherit;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.jw-chip:hover { border-color: color-mix(in srgb, var(--jw-accent) 45%, var(--jw-border-2)); transform: translateY(-1px); }
.jw-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--jw-accent) 25%, transparent); }
.jw-chip.is-active {
  border-color: var(--jw-accent);
  background: color-mix(in srgb, var(--jw-accent) 9%, var(--jw-surface));
  color: color-mix(in srgb, var(--jw-accent) 80%, var(--jw-ink));
  font-weight: 700;
}
.jw-chip.is-dim { opacity: .45; cursor: default; transform: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.jw-btn {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 13px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .22s ease, opacity .18s, background .3s;
}
.jw-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--jw-accent) 35%, transparent); }
.jw-btn-primary {
  background: var(--jw-accent-grad);
  color: #fff;
  padding: 13px 30px;
  font-size: 15px;
  min-width: 128px;
  box-shadow: var(--jw-glow);
}
.jw-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px color-mix(in srgb, var(--jw-accent) 32%, transparent); }
.jw-btn-primary:active:not(:disabled) { transform: translateY(0); }
.jw-btn-primary:disabled { background: #E5E1EF; color: #A29BB8; box-shadow: none; cursor: not-allowed; }
.jw-btn-ghost {
  background: var(--jw-soft);
  color: var(--jw-sub);
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
}
.jw-btn-ghost:hover { background: var(--jw-border); color: var(--jw-ink); }
.jw-btn-brand {
  background: var(--jw-brand-grad);
  color: #fff;
  padding: 15px 34px;
  font-size: 15.5px;
  box-shadow: 0 10px 30px rgba(132, 94, 194, .3);
}
.jw-btn-brand:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(132, 94, 194, .4); }
.jw-btn-brand:disabled { background: #E5E1EF; color: #A29BB8; box-shadow: none; cursor: not-allowed; }

/* ── Summary panel ──────────────────────────────────────────────────────── */

.jw-panel {
  background: var(--jw-surface);
  border: 1px solid var(--jw-border);
  border-radius: var(--jw-radius);
  box-shadow: var(--jw-shadow-sm);
  overflow: hidden;
}
.jw-panel-accent {
  height: 5px;
  background: var(--jw-accent-grad);
  transition: background .45s ease;
}
.jw-panel-body { padding: 20px 22px; }
.jw-panel-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.jw-panel-emoji {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--jw-accent) 10%, var(--jw-surface));
  border: 1px solid color-mix(in srgb, var(--jw-accent) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background .4s, border-color .4s;
}
.jw-panel-plan-name { font-size: 15px; font-weight: 800; }
.jw-panel-plan-sub  { font-size: 12px; color: var(--jw-muted); }
.jw-panel-price {
  font-family: var(--jw-display);
  font-size: 30px;
  color: var(--jw-ink);
  margin: 10px 0 2px;
  transition: color .4s;
}
.jw-panel-price small { font-size: 13px; color: var(--jw-muted); font-family: 'Heebo', sans-serif; font-weight: 600; }
.jw-panel-divider { border: none; border-top: 1px solid var(--jw-border); margin: 14px 0; }
.jw-panel-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--jw-muted);
  margin: 0 0 9px;
}
.jw-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jw-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--jw-sub);
  line-height: 1.5;
}
.jw-panel-list .tick {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jw-accent) 14%, transparent);
  color: var(--jw-accent);
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background .4s, color .4s;
}
.jw-panel-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.jw-panel-steps li {
  position: relative;
  padding-inline-start: 26px;
  padding-bottom: 14px;
  font-size: 12.5px;
  color: var(--jw-sub);
  line-height: 1.5;
}
.jw-panel-steps li:last-child { padding-bottom: 0; }
.jw-panel-steps li::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--jw-accent);
  transition: background .4s;
}
.jw-panel-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-start: 9px;
  top: 16px;
  bottom: 2px;
  width: 2px;
  background: var(--jw-border);
}
.jw-panel-foot {
  background: var(--jw-soft);
  padding: 13px 22px;
  font-size: 12px;
  color: var(--jw-sub);
  line-height: 1.6;
  border-top: 1px solid var(--jw-border);
}
.jw-panel-foot a { color: var(--jw-accent); font-weight: 700; text-decoration: none; }
.jw-panel-foot a:hover { text-decoration: underline; }

/* ── Info blocks (step 3 / notices) ─────────────────────────────────────── */

.jw-note {
  border-radius: 14px;
  border: 1px solid;
  padding: 14px 17px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.jw-note-head { font-weight: 800; margin-bottom: 5px; font-size: 13px; }
.jw-note--ok    { background: var(--jw-ok-bg); border-color: var(--jw-ok-bd); color: var(--jw-ok); }
.jw-note--warn  { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }
.jw-note--info  { background: #F0F9FF; border-color: #BAE6FD; color: #0369A1; }
.jw-note--muted { background: var(--jw-soft); border-color: var(--jw-border); color: var(--jw-sub); }
.jw-note--error { background: var(--jw-error-bg); border-color: var(--jw-error-bd); color: var(--jw-error); }
.jw-note a { color: #845EC2; font-weight: 700; }

.jw-summary-rows { display: flex; flex-direction: column; gap: 8px; }
.jw-summary-row { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; }
.jw-summary-row .k { font-size: 12px; color: var(--jw-muted); flex-shrink: 0; width: 52px; }
.jw-summary-row .v { font-weight: 600; color: var(--jw-ink); overflow-wrap: anywhere; }

.jw-agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--jw-ink);
  user-select: none;
  background: var(--jw-input-bg);
  border-radius: 14px;
  padding: 13px 15px;
  border: 1.5px solid var(--jw-border-2);
  transition: border-color .2s;
  margin-bottom: 12px;
}
.jw-agree:hover { border-color: color-mix(in srgb, var(--jw-accent) 40%, var(--jw-border-2)); }
.jw-agree input {
  width: 18px; height: 18px;
  accent-color: var(--jw-accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.jw-agree a { color: #845EC2; font-weight: 700; text-underline-offset: 2px; }
.jw-agree a:hover { color: #6D28D9; }

/* ── Success ────────────────────────────────────────────────────────────── */

.jw-success-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
}
.jw-success {
  background: var(--jw-surface);
  border: 1px solid var(--jw-border);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(36, 26, 56, .13);
  max-width: 560px;
  width: 100%;
  padding: 44px 38px 36px;
  text-align: center;
  animation: jw-fade-up .45s ease;
  position: relative;
  overflow: hidden;
}
.jw-success::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--jw-brand-grad);
}
.jw-success-check {
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--jw-brand-grad);
  color: #fff;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 12px 32px rgba(132, 94, 194, .35);
  animation: jw-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}
.jw-success h2 {
  font-family: var(--jw-display);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 10px;
}
.jw-success-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--jw-accent) 10%, var(--jw-surface));
  border: 1.5px solid color-mix(in srgb, var(--jw-accent) 26%, transparent);
  border-radius: 100px;
  padding: 6px 17px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  color: color-mix(in srgb, var(--jw-accent) 80%, var(--jw-ink));
}
.jw-success p { font-size: 14.5px; color: var(--jw-sub); line-height: 1.7; margin: 0 0 8px; }
.jw-success-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: right;
  margin: 22px 0 18px;
}
.jw-success-timeline .row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 16px;
}
.jw-success-timeline .row:last-child { padding-bottom: 0; }
.jw-success-timeline .dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--jw-soft);
  border: 1.5px solid var(--jw-border-2);
  z-index: 1;
}
.jw-success-timeline .row.done .dot { background: var(--jw-ok-bg); border-color: var(--jw-ok-bd); }
.jw-success-timeline .row:not(:last-child)::before {
  content: '';
  position: absolute;
  inset-inline-start: 14px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--jw-border);
}
.jw-success-timeline .tt { font-size: 13.5px; font-weight: 800; margin-bottom: 1px; }
.jw-success-timeline .td { font-size: 12.5px; color: var(--jw-muted); line-height: 1.55; }

/* ── Marketing bands (clinic landing) ───────────────────────────────────── */

.jw-band { padding: 46px 0 0; }
.jw-band-head { text-align: center; margin-bottom: 26px; }
.jw-band-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--jw-accent);
  margin-bottom: 7px;
}
.jw-band-title {
  font-family: var(--jw-display);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.jw-band-sub {
  font-size: 14px;
  color: var(--jw-sub);
  margin: 8px auto 0;
  max-width: 58ch;
  line-height: 1.7;
}

.jw-pill-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.jw-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jw-surface);
  border: 1.5px solid var(--jw-border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--jw-ink);
  box-shadow: var(--jw-shadow-sm);
}
.jw-pill .tick {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jw-accent) 14%, transparent);
  color: var(--jw-accent);
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jw-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.jw-group {
  background: var(--jw-surface);
  border: 1px solid var(--jw-border);
  border-radius: var(--jw-radius);
  box-shadow: var(--jw-shadow-sm);
  padding: 22px 24px;
  transition: transform .2s ease, box-shadow .25s ease;
}
.jw-group:hover { transform: translateY(-2px); box-shadow: var(--jw-shadow-md); }
.jw-group-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--jw-accent) 10%, var(--jw-surface));
  border: 1px solid color-mix(in srgb, var(--jw-accent) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 12px;
}
.jw-group h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 10px; }
.jw-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.jw-group li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--jw-sub);
  line-height: 1.55;
}
.jw-group li::before {
  content: '✓';
  color: var(--jw-accent);
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
}

.jw-hiw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.jw-hiw-step {
  background: var(--jw-surface);
  border: 1px solid var(--jw-border);
  border-radius: var(--jw-radius);
  padding: 18px 16px;
  text-align: center;
  position: relative;
  box-shadow: var(--jw-shadow-sm);
}
.jw-hiw-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--jw-accent-grad);
  color: #fff;
  font-family: var(--jw-display);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 5px 16px color-mix(in srgb, var(--jw-accent) 32%, transparent);
}
.jw-hiw-step .em { font-size: 20px; margin-bottom: 6px; }
.jw-hiw-step h4 { font-size: 13px; font-weight: 800; margin: 0 0 5px; line-height: 1.4; }
.jw-hiw-step p { font-size: 11.5px; color: var(--jw-muted); line-height: 1.55; margin: 0; }

.jw-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.jw-faq {
  background: var(--jw-surface);
  border: 1px solid var(--jw-border);
  border-radius: 14px;
  box-shadow: var(--jw-shadow-sm);
  overflow: hidden;
}
.jw-faq-q {
  width: 100%;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--jw-ink);
}
.jw-faq-q:focus-visible { outline: none; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--jw-accent) 25%, transparent); }
.jw-faq-q .q { flex: 1; }
.jw-faq-q .ic {
  font-size: 17px;
  color: var(--jw-muted);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .25s ease, color .2s;
}
.jw-faq.is-open .jw-faq-q .ic { transform: rotate(45deg); color: var(--jw-accent); }
.jw-faq-a {
  padding: 0 18px 15px;
  font-size: 13px;
  color: var(--jw-sub);
  line-height: 1.7;
  border-top: 1px solid var(--jw-border);
  padding-top: 12px;
  animation: jw-fade-up .25s ease;
}

/* clinic hero price card */
.jw-price-card {
  background: var(--jw-surface);
  border: 1.5px solid color-mix(in srgb, var(--jw-accent) 30%, var(--jw-border));
  border-radius: 20px;
  box-shadow: 0 16px 44px color-mix(in srgb, var(--jw-accent) 14%, transparent);
  padding: 24px 28px;
  min-width: 280px;
}
.jw-price-amount {
  font-family: var(--jw-display);
  font-size: 40px;
  line-height: 1;
  color: var(--jw-ink);
}
.jw-price-amount small { font-size: 15px; color: var(--jw-muted); font-family: 'Heebo', sans-serif; font-weight: 600; }
.jw-price-rows { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.jw-price-rows .row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--jw-ink);
}
.jw-price-rows .tick {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jw-accent) 15%, transparent);
  color: var(--jw-accent);
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* section header inside a form card */
.jw-form-section {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--jw-accent);
  padding-bottom: 7px;
  border-bottom: 2px solid color-mix(in srgb, var(--jw-accent) 12%, transparent);
  margin: 8px 0 16px;
}
.jw-form-section:first-child { margin-top: 0; }

/* ── Sticky mobile CTA ──────────────────────────────────────────────────── */

.jw-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: color-mix(in srgb, var(--jw-surface) 96%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--jw-border);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 6px));
  /* Physical (not logical — this must hold regardless of dir) right inset:
     the Tabnav accessibility-toolbar button (app/layout.js, third-party,
     bottom-right, ~40px) floats above everything and can't be pushed aside
     from here, so this bar reserves room instead — confirmed by measuring
     both elements' real getBoundingClientRect() in a live mobile-viewport
     check: without this, the two visually and functionally overlapped by
     ~22px. */
  padding-right: 72px;
  display: none;
}
/* P0 2026-10-29: no blanket `width: 100%` here — it outranked .jw-ob-back-sq's 52px (0,2,0 vs 0,1,0) and, with flex-shrink:0, the back
   button took the whole row and pushed the primary CTA off the LEFT edge on iPhone. Widths live in the .jw-ob-sticky-* rules below. */
.jw-sticky-cta .jw-btn { padding: 15px; font-size: 16px; border-radius: 15px; }

/* ── Animations ─────────────────────────────────────────────────────────── */

@keyframes jw-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes jw-pop {
  0%   { transform: scale(.4); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes jw-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-24px, 18px); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .jw-workspace { grid-template-columns: 1fr; }
  .jw-panel-col { position: static; order: 2; }
  .jw-form-col  { order: 1; }
  .jw-group-grid { grid-template-columns: repeat(2, 1fr); }
  .jw-hiw { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .jw-plan-grid { grid-template-columns: repeat(2, 1fr); }
  .jw-faq-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .jw-hero { padding: 24px 0 20px; }
  .jw-hero-inner { gap: 13px; }
  .jw-hero-logo { width: 50px; height: 50px; }
  .jw-hero-badges { margin-inline-start: 0; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .jw-hero-top { margin-bottom: 8px; }
  .jw-stepper { display: none; }
  .jw-stepper-compact { display: flex; }
  .jw-card-body { padding: 20px 18px 6px; }
  .jw-card-head { padding: 15px 18px; }
  .jw-card-nav { padding: 12px 18px 18px; }
  .jw-row { grid-template-columns: 1fr; gap: 0; }
  .jw-group-grid { grid-template-columns: 1fr; }
  .jw-hiw { grid-template-columns: 1fr 1fr; }
  .jw-band { padding-top: 36px; }
  .jw-sticky-cta { display: block; }
  .jw-desktop-nav { display: none !important; }
  .jw-workspace { padding-bottom: 120px; }
}

@media (max-width: 480px) {
  .jw-plan-grid { gap: 10px; }
  .jw-plan-card { padding: 13px 14px 12px; }
  .jw-plan-emoji { font-size: 20px; }
  .jw-plan-name { font-size: 13px; }
  .jw-hiw { grid-template-columns: 1fr; }
  .jw-success { padding: 34px 22px 28px; }
}

/* ── Cumulative plan entitlements (summary panel + mobile accordion) ────── */

.jw-ent-tier { margin-bottom: 4px; }
.jw-ent-tier + .jw-ent-tier { margin-top: 12px; }
.jw-ent-tier-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--jw-muted);
  margin: 0 0 8px;
}
.jw-ent-tier-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--jw-border);
}
.jw-ent-tier.is-current .jw-ent-tier-head {
  color: color-mix(in srgb, var(--jw-accent) 85%, var(--jw-ink));
}
.jw-ent-tier.is-current .jw-ent-tier-head::after {
  background: color-mix(in srgb, var(--jw-accent) 30%, var(--jw-border));
}
.jw-ent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.jw-ent-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--jw-sub);
  line-height: 1.5;
}
.jw-ent-list .tick {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jw-accent) 13%, transparent);
  color: var(--jw-accent);
  font-size: 8px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background .4s, color .4s;
}
.jw-ent-tier.is-current .jw-ent-list li { color: var(--jw-ink); font-weight: 600; }
.jw-ent-list .val {
  font-size: 11px;
  font-weight: 800;
  color: color-mix(in srgb, var(--jw-accent) 80%, var(--jw-ink));
  background: color-mix(in srgb, var(--jw-accent) 9%, transparent);
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-inline-start: auto;
}

/* Mobile accordion — full entitlements right under the plan selector */
.jw-ent-details {
  display: none;
  background: var(--jw-surface);
  border: 1.5px solid var(--jw-border);
  border-radius: 14px;
  margin-top: 12px;
  overflow: hidden;
}
.jw-ent-details summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: color-mix(in srgb, var(--jw-accent) 80%, var(--jw-ink));
  display: flex;
  align-items: center;
  gap: 8px;
}
.jw-ent-details summary::-webkit-details-marker { display: none; }
.jw-ent-details summary::after {
  content: '+';
  margin-inline-start: auto;
  font-size: 17px;
  color: var(--jw-muted);
  transition: transform .25s ease;
}
.jw-ent-details[open] summary::after { transform: rotate(45deg); color: var(--jw-accent); }
.jw-ent-details .body { padding: 4px 16px 16px; border-top: 1px solid var(--jw-border); padding-top: 12px; }

/* Plan card tagline */
.jw-plan-tagline {
  font-size: 11px;
  color: var(--jw-muted);
  line-height: 1.45;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Contact page ───────────────────────────────────────────────────────── */

.jw-contact-hero-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--jw-accent) 10%, var(--jw-surface));
  border: 1px solid color-mix(in srgb, var(--jw-accent) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.jw-reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.jw-reason {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--jw-border-2);
  background: var(--jw-input-bg);
  color: var(--jw-sub);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.jw-reason .em { font-size: 17px; line-height: 1; }
.jw-reason:hover { border-color: color-mix(in srgb, var(--jw-accent) 45%, var(--jw-border-2)); }
.jw-reason:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--jw-accent) 25%, transparent); }
.jw-reason.is-active {
  border-color: var(--jw-accent);
  background: color-mix(in srgb, var(--jw-accent) 8%, var(--jw-surface));
  color: color-mix(in srgb, var(--jw-accent) 82%, var(--jw-ink));
}

@media (max-width: 1100px) {
  .jw-ent-details { display: block; }
}
@media (max-width: 640px) {
  .jw-reason-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .jw-hero-orb { animation: none; }
  .jw-step-pane, .jw-faq-a, .jw-success, .jw-plan-check,
  .jw-success-check, .jw-step.is-done .jw-step-dot span { animation: none; }
  .jw-plan-card, .jw-chip, .jw-btn, .jw-group,
  .jw-step-line::after, .jw-stepper-compact .bar i { transition: none; }
  .jw-plan-card:hover, .jw-group:hover, .jw-btn-primary:hover:not(:disabled),
  .jw-btn-brand:hover:not(:disabled), .jw-chip:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Premium onboarding (2026-10-29) — therapist application only (jw-ob-*).
   Builds on the jw-* tokens above; nothing here restyles the shared classes
   that /join/clinic, /join/event-organizer and /contact also use.
   ═══════════════════════════════════════════════════════════════════════════ */

.jw-ob-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Stepper (>= 720px) ──────────────────────────────────────────────────── */
.jw-ob-stepper {
  list-style: none;
  margin: 24px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.jw-ob-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
/* the progress line: from this step's chip towards the next one (RTL: leftwards), drawn behind the text */
.jw-ob-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  inset-inline-start: 48px;
  inset-inline-end: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--jw-border-2);
}
.jw-ob-step[data-state="done"]:not(:last-child)::after {
  background: color-mix(in srgb, var(--jw-accent) 70%, var(--jw-border-2));
}
.jw-ob-step-dot {
  position: relative;
  z-index: 1;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jw-display);
  font-size: 15px;
  background: var(--jw-surface);
  border: 1.5px solid var(--jw-border-2);
  color: var(--jw-muted);
  transition: background .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.jw-ob-step[data-state="current"] .jw-ob-step-dot {
  border: 2px solid var(--jw-accent);
  color: color-mix(in srgb, var(--jw-accent) 82%, var(--jw-ink));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--jw-accent) 13%, transparent), 0 6px 18px color-mix(in srgb, var(--jw-accent) 22%, transparent);
}
.jw-ob-step[data-state="done"] .jw-ob-step-dot {
  background: var(--jw-accent-grad);
  border-color: transparent;
  color: #fff;
}
.jw-ob-step-text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 1px 0 0 12px; /* RTL: the gap before the line continues */
  background: var(--jw-bg);
}
.jw-ob-step-label { font-size: 13.5px; font-weight: 700; color: var(--jw-sub); line-height: 1.35; }
.jw-ob-step-desc  { font-size: 12px; color: var(--jw-muted); line-height: 1.4; }
.jw-ob-step[data-state="current"] .jw-ob-step-label { color: var(--jw-ink); font-weight: 800; }

/* ── Stepper compact (< 720px): "שלב 2 מתוך 3" + the current label ───────── */
.jw-ob-stepper-compact {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--jw-surface);
  border: 1px solid var(--jw-border);
  box-shadow: var(--jw-shadow-sm);
}
.jw-ob-compact-dot {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--jw-display);
  font-size: 14px;
  border: 2px solid var(--jw-accent);
  color: color-mix(in srgb, var(--jw-accent) 82%, var(--jw-ink));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--jw-accent) 12%, transparent);
}
.jw-ob-compact-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.jw-ob-compact-count { font-size: 11.5px; font-weight: 700; color: var(--jw-muted); }
.jw-ob-compact-label { font-size: 14.5px; font-weight: 800; color: var(--jw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jw-ob-compact-segs { display: flex; gap: 4px; flex-shrink: 0; }
.jw-ob-compact-segs i { display: block; width: 18px; height: 5px; border-radius: 4px; background: var(--jw-border-2); transition: background .35s ease; }
.jw-ob-compact-segs i[data-on="true"] { background: var(--jw-accent); }

@media (max-width: 719px) {
  .jw-ob-stepper { display: none; }
  .jw-ob-stepper-compact { display: flex; }
}
@media (min-width: 720px) and (max-width: 900px) {
  .jw-ob-step-desc { display: none; }
}

/* ── Review step ─────────────────────────────────────────────────────────── */
.jw-ob-review { display: flex; flex-direction: column; gap: 14px; }
.jw-ob-summary {
  border: 1px solid var(--jw-border);
  border-radius: 16px;
  background: var(--jw-soft);
  padding: 16px 18px;
}
.jw-ob-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.jw-ob-summary-head h3 { margin: 0; font-size: 14px; font-weight: 800; color: var(--jw-ink); }
.jw-ob-link-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 800; color: #6D28D9; text-decoration: underline; text-underline-offset: 3px;
  padding: 6px 4px; border-radius: 8px;
}
.jw-ob-link-btn:focus-visible { outline: 2px solid var(--jw-accent); outline-offset: 2px; }
.jw-ob-summary-rows { margin: 0; display: flex; flex-direction: column; }
.jw-ob-summary-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--jw-border); align-items: baseline; }
.jw-ob-summary-row:first-child { border-top: none; padding-top: 2px; }
.jw-ob-summary-row dt { font-size: 12.5px; color: var(--jw-muted); font-weight: 600; }
.jw-ob-summary-row dd { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--jw-ink); overflow-wrap: anywhere; text-align: right; }
.jw-ob-plan-pill {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--pc) 9%, var(--jw-surface));
  border: 1px solid color-mix(in srgb, var(--pc) 26%, transparent);
  color: var(--pc-text, var(--pc)); font-weight: 800; font-size: 13px;
}
.jw-ob-plan-pill-price { color: var(--jw-sub); font-weight: 700; font-size: 12.5px; }
@media (max-width: 420px) {
  .jw-ob-summary { padding: 14px; }
  .jw-ob-summary-row { grid-template-columns: 1fr; gap: 2px; }
}

/* "מה קורה אחרי השליחה?" */
.jw-ob-after-title { margin: 0 0 14px; font-size: 14px; font-weight: 800; color: var(--jw-ink); }
.jw-ob-after-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jw-ob-after-list li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; }
.jw-ob-after-list li:last-child { padding-bottom: 0; }
.jw-ob-after-list li:not(:last-child)::before {
  content: ""; position: absolute; inset-inline-start: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--jw-accent) 16%, var(--jw-border));
}
.jw-ob-after-num {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--jw-accent) 10%, var(--jw-surface));
  border: 1px solid color-mix(in srgb, var(--jw-accent) 22%, transparent);
  color: color-mix(in srgb, var(--jw-accent) 85%, var(--jw-ink));
}
.jw-ob-after-tt { display: block; font-size: 13.5px; font-weight: 800; color: var(--jw-ink); line-height: 1.4; }
.jw-ob-after-td { display: block; font-size: 12.5px; color: var(--jw-sub); line-height: 1.55; margin-top: 1px; }
.jw-ob-review .jw-ob-after { border: 1px solid var(--jw-border); border-radius: 16px; padding: 16px 18px; background: var(--jw-surface); }

.jw-ob-fine { margin: -4px 0 0; font-size: 12px; color: var(--jw-muted); line-height: 1.6; }
.jw-ob-fine a { color: #6D28D9; font-weight: 700; }

.jw-ob-quiet {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 15px; border-radius: 14px;
  background: var(--jw-soft); border: 1px solid var(--jw-border);
  font-size: 12.5px; line-height: 1.65; color: var(--jw-sub);
}
.jw-ob-quiet svg { flex-shrink: 0; margin-top: 2px; color: #6D28D9; }
.jw-ob-quiet strong { color: var(--jw-ink); }
.jw-ob-quiet a { color: #6D28D9; font-weight: 700; }

/* trust / reassurance */
.jw-ob-trust {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.jw-ob-trust li {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 9px 12px; border-radius: 12px;
  background: var(--jw-surface); border: 1px solid var(--jw-border);
  font-size: 12.5px; font-weight: 700; color: var(--jw-sub); line-height: 1.35;
}
.jw-ob-trust li svg { flex-shrink: 0; color: var(--jw-ok); }
.jw-ob-agree { margin-bottom: 0; }

/* ── Bottom CTA ──────────────────────────────────────────────────────────── */
.jw-ob-nav { align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--jw-border); margin-top: 14px; }
.jw-ob-nav-main { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.jw-ob-next, .jw-ob-back, .jw-ob-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.jw-ob-submit { min-width: 230px; min-height: 52px; font-size: 16px; }
.jw-ob-submit[data-state="sending"] { cursor: progress; }
.jw-ob-submit[data-state="sending"]:disabled {
  background: var(--jw-brand-grad); color: #fff; opacity: .88; box-shadow: 0 10px 30px rgba(132, 94, 194, .22);
}
.jw-ob-spin { animation: jw-ob-spin .9s linear infinite; }
@keyframes jw-ob-spin { to { transform: rotate(360deg); } }
.jw-ob-micro {
  margin: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--jw-muted); line-height: 1.5; max-width: 340px;
}
.jw-ob-micro[data-tone="hint"] { color: #92400E; font-weight: 700; }
.jw-ob-micro svg { flex-shrink: 0; color: var(--jw-ok); }
.jw-ob-micro.is-compact { display: flex; justify-content: center; text-align: center; max-width: none; margin: 0 0 8px; font-size: 11.5px; }
/* ── Mobile CTA bar (P0 2026-10-29) ─────────────────────────────────────────
   Sticky INSIDE the page flow (the bar is the last child of .jw-page), not position:fixed: a fixed bottom bar sits under the iOS keyboard /
   jumps with it. While a field has focus the bar drops back into the flow (static), so the keyboard never covers the CTA. */
.jw-sticky-cta.jw-ob-sticky {
  position: sticky;
  bottom: 0;
  left: auto; right: auto;
  padding-top: 10px;
  padding-left: 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  max-width: 100%;
  background: var(--jw-surface); /* solid: page text never shows through behind the quieter "חזרה" */
}
/* only text entry opens the keyboard — a focused checkbox (the terms on step 3) keeps the bar sticky */
.jw-page:has(:is(input:not([type="checkbox"]):not([type="radio"]), textarea):focus) .jw-sticky-cta.jw-ob-sticky { position: static; }
.jw-page:has(.jw-ob-sticky) .jw-workspace { padding-bottom: 24px; }
.jw-ob-sticky-row { display: flex; gap: 10px; align-items: stretch; min-width: 0; }
.jw-ob-sticky .jw-btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.jw-ob-sticky .jw-ob-sticky-primary { flex: 1 1 auto; min-width: 0; width: auto; white-space: normal; text-align: center; line-height: 1.25; }
.jw-ob-back-sq { flex-shrink: 0; width: 52px; padding: 0 !important; }
.jw-sticky-cta .jw-btn.jw-ob-back-sq { width: 52px; flex: 0 0 52px; min-width: 0; }
.jw-ob-back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 519.98px) {
  /* stacked: the primary full width on top, "חזרה" a quieter, smaller text button under it */
  .jw-ob-sticky-row { flex-direction: column; gap: 4px; }
  .jw-ob-sticky .jw-ob-sticky-primary { order: -1; width: 100%; flex: 0 0 auto; }
  .jw-sticky-cta .jw-btn.jw-ob-back-sq {
    width: auto; flex: 0 0 auto; align-self: center; min-height: 40px; padding: 6px 16px !important;
    background: transparent; border: 0; box-shadow: none; font-size: 14px; font-weight: 700; color: var(--jw-sub); gap: 6px;
  }
  .jw-ob-back-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (max-width: 360px) {
  .jw-ob-sticky { padding-left: 12px; padding-right: 64px; }
  .jw-ob-sticky .jw-btn { font-size: 14.5px; padding-inline: 10px; }
}

/* ── Plan summary card ───────────────────────────────────────────────────── */
.jw-ob-eyebrow { margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--jw-muted); }
.jw-ob-plan-title { font-family: var(--jw-display); font-size: 22px; line-height: 1.2; color: var(--jw-ink); }
.jw-ob-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 2px; }
.jw-ob-price-num { font-family: var(--jw-display); font-size: 34px; line-height: 1; color: var(--jw-ink); }
.jw-ob-price-period { font-size: 13px; font-weight: 600; color: var(--jw-muted); }
.jw-ob-price-note {
  margin: 10px 0 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--jw-ok); line-height: 1.45;
  background: var(--jw-ok-bg); border: 1px solid var(--jw-ok-bd); border-radius: 12px; padding: 5px 11px;
}
.jw-ob-plan-card .jw-panel-body { padding: 22px 24px 20px; }
.jw-ob-plan-card .jw-ent-list { gap: 9px; }
.jw-ob-plan-card .jw-ent-list li { font-size: 13px; }
.jw-ob-plan-card .jw-ent-list .tick { width: 18px; height: 18px; font-size: 9px; }
.jw-ob-plan-after {
  padding: 18px 24px 20px;
  border-top: 1px solid var(--jw-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--jw-accent) 5%, var(--jw-soft)) 0%, var(--jw-soft) 100%);
}

/* ── Success ─────────────────────────────────────────────────────────────── */
.jw-ob-success-wrap { min-height: calc(100vh - 64px); padding: 48px 16px 64px; align-items: flex-start; }
.jw-ob-success {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: var(--jw-surface);
  border: 1px solid var(--jw-border);
  border-radius: 28px;
  box-shadow: var(--jw-shadow-ambient), var(--jw-inset-highlight);
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  animation: jw-fade-up .45s var(--jw-ease-out-soft);
}
/* the subtle premium accent: a soft glow behind the mark + a short gradient hairline */
.jw-ob-success::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--jw-accent) 11%, transparent), transparent 75%);
}
.jw-ob-success::after {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--jw-brand-grad); opacity: .85;
}
.jw-ob-success > * { position: relative; }
.jw-ob-success-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.jw-ob-mark {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--jw-surface);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--jw-ok) 8%, transparent), 0 14px 34px rgba(4, 120, 87, .16);
  margin-bottom: 6px;
}
.jw-ob-mark svg { width: 52px; height: 52px; }
.jw-ob-mark-ring { stroke: var(--jw-ok); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: jw-ob-draw .6s ease-out forwards; }
.jw-ob-mark-check { stroke: var(--jw-ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: jw-ob-draw .35s .45s ease-out forwards; }
@keyframes jw-ob-draw { to { stroke-dashoffset: 0; } }
.jw-ob-status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F;
  font-size: 12px; font-weight: 800;
}
.jw-ob-success-title {
  margin: 2px 0 0; outline: none;
  font-family: var(--jw-display); font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 2.05rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--jw-ink);
}
.jw-ob-success-sub { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.65; color: var(--jw-sub); }

.jw-ob-success-plan {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--jw-accent) 6%, var(--jw-surface));
  border: 1px solid color-mix(in srgb, var(--jw-accent) 20%, var(--jw-border));
}
.jw-ob-success-plan-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--jw-surface); border: 1px solid color-mix(in srgb, var(--jw-accent) 22%, transparent);
}
.jw-ob-success-plan-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.jw-ob-success-plan-k { font-size: 11.5px; font-weight: 700; color: var(--jw-muted); }
.jw-ob-success-plan-v { font-family: var(--jw-display); font-size: 19px; color: var(--jw-ink); line-height: 1.25; }
.jw-ob-success-plan-price { font-size: 13px; font-weight: 800; color: var(--jw-sub); white-space: nowrap; }

.jw-ob-trial-line, .jw-ob-returning-line {
  margin: -6px 0 0; padding: 11px 14px; border-radius: 14px; text-align: center;
  font-size: 13.5px; line-height: 1.6;
}
.jw-ob-trial-line { font-weight: 800; color: var(--jw-ok); background: var(--jw-ok-bg); border: 1px solid var(--jw-ok-bd); }
.jw-ob-returning-line { color: var(--jw-sub); background: var(--jw-soft); border: 1px solid var(--jw-border); }

.jw-ob-emails { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.jw-ob-email-row {
  display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap;
  padding: 11px 14px; border-radius: 14px; background: var(--jw-soft); border: 1px solid var(--jw-border);
}
.jw-ob-email-row dt { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--jw-muted); }
.jw-ob-email-row dd { margin: 0; font-size: 14px; font-weight: 800; color: #5B3A9E; unicode-bidi: isolate; overflow-wrap: anywhere; min-width: 0; }

.jw-ob-section-title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--jw-muted); }
.jw-ob-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jw-ob-timeline li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; }
.jw-ob-timeline li:last-child { padding-bottom: 0; }
.jw-ob-timeline li:not(:last-child)::before {
  content: ""; position: absolute; inset-inline-start: 14px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px;
  background: var(--jw-border);
}
.jw-ob-timeline li[data-state="done"]:not(:last-child)::before { background: color-mix(in srgb, var(--jw-ok) 45%, var(--jw-border)); }
.jw-ob-tl-dot {
  position: relative; z-index: 1;
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--jw-surface); border: 1.5px solid var(--jw-border-2);
}
.jw-ob-tl-dot i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--jw-border-2); }
.jw-ob-timeline li[data-state="done"] .jw-ob-tl-dot { background: var(--jw-ok); border-color: var(--jw-ok); color: #fff; }
.jw-ob-timeline li[data-state="current"] .jw-ob-tl-dot {
  border: 2px solid var(--jw-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--jw-accent) 13%, transparent);
}
.jw-ob-timeline li[data-state="current"] .jw-ob-tl-dot i { background: var(--jw-accent); animation: jw-ob-pulse 1.8s ease-in-out infinite; }
@keyframes jw-ob-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .6; } }
.jw-ob-tl-body { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; min-width: 0; }
.jw-ob-tl-title { font-size: 14px; font-weight: 800; color: var(--jw-ink); line-height: 1.35; }
.jw-ob-tl-desc { font-size: 12.5px; color: var(--jw-sub); line-height: 1.55; }
.jw-ob-timeline li[data-state="upcoming"] .jw-ob-tl-title { color: var(--jw-sub); }

.jw-ob-verified {
  padding: 18px; border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, #845EC2 7%, var(--jw-surface)) 0%, var(--jw-surface) 70%);
  border: 1px solid #E4DCF4;
}
.jw-ob-verified-head { display: flex; gap: 12px; align-items: flex-start; }
.jw-ob-verified-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--jw-brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(132, 94, 194, .25);
}
.jw-ob-verified h3 { margin: 0 0 2px; font-size: 15px; font-weight: 800; color: var(--jw-ink); letter-spacing: .01em; }
.jw-ob-verified p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--jw-sub); }
.jw-ob-verified-items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jw-ob-verified-items li {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  font-size: 12.5px; font-weight: 700; color: var(--jw-ink);
  padding: 8px 10px; border-radius: 11px; background: var(--jw-surface); border: 1px solid var(--jw-border);
}
.jw-ob-verified-items li svg { flex-shrink: 0; color: #6D28D9; }
.jw-ob-verified p.jw-ob-verified-foot { margin-top: 12px; font-size: 12.5px; }
.jw-ob-verified-foot a { color: #6D28D9; font-weight: 700; }

.jw-ob-success-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 4px; }
.jw-ob-cta-primary, .jw-ob-cta-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 52px; }
.jw-ob-cta-secondary { min-height: 48px; }
.jw-ob-portal-note {
  margin: 0; display: flex; align-items: flex-start; justify-content: center; gap: 7px; text-align: center;
  padding: 12px 14px; border-radius: 14px; background: var(--jw-soft); border: 1px dashed var(--jw-border-2);
  font-size: 13px; line-height: 1.6; color: var(--jw-sub);
}
.jw-ob-portal-note svg { flex-shrink: 0; margin-top: 3px; color: var(--jw-muted); }

@media (max-width: 480px) {
  .jw-ob-success-wrap { padding: 24px 12px 48px; }
  .jw-ob-success { padding: 34px 18px 24px; border-radius: 22px; gap: 18px; }
  .jw-ob-success-plan { flex-wrap: wrap; gap: 10px 12px; }
  .jw-ob-success-plan-price { width: 100%; padding-inline-start: 56px; }
  .jw-ob-trust, .jw-ob-verified-items { grid-template-columns: 1fr; }
  .jw-ob-plan-card .jw-panel-body, .jw-ob-plan-after { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .jw-ob-success { animation: none; }
  .jw-ob-mark-ring, .jw-ob-mark-check { animation: none; stroke-dashoffset: 0; }
  .jw-ob-timeline li[data-state="current"] .jw-ob-tl-dot i, .jw-ob-spin { animation: none; }
  .jw-ob-step-dot, .jw-ob-compact-segs i { transition: none; }
}
