/* The promotional pop-up.
   Built from the same tokens as the rest of the site, so it reads as part of
   Kesher rather than as a bolted-on plugin. */

.kesher-promo[hidden]{display:none}

.kesher-promo{
  position:fixed;
  inset:0;
  z-index:9000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:var(--space-4);
}

.kesher-promo__veil{
  position:absolute;
  inset:0;
  background:rgba(20,21,29,.55);
  opacity:0;
  transition:opacity 240ms ease;
}

.kesher-promo__box{
  position:relative;
  width:100%;
  max-width:460px;
  max-height:calc(100vh - 2 * var(--space-4));
  overflow-y:auto;
  background:var(--surface-card);
  border:1px solid var(--border-card-strong);
  border-radius:var(--radius-card);
  box-shadow:0 24px 60px rgba(30,31,43,.28);
  padding:var(--space-7) var(--space-6) var(--space-5);
  text-align:center;
  opacity:0;
  transform:translateY(12px) scale(.985);
  transition:opacity 240ms ease,transform 240ms ease;
}

.kesher-promo__box:focus{outline:none}

.kesher-promo.is-open .kesher-promo__veil{opacity:1}
.kesher-promo.is-open .kesher-promo__box{opacity:1;transform:none}

/* The brass hairline the rest of the site uses to mark a considered surface. */
.kesher-promo__rule{
  width:44px;
  height:1px;
  margin:0 auto var(--space-4);
  background:var(--brass);
  opacity:.75;
}

.kesher-promo__eyebrow{
  display:block;
  font-family:var(--font-label);
  font-size:var(--text-xs);
  letter-spacing:var(--tracking-caps);
  text-transform:uppercase;
  color:var(--brass-2);
  margin-bottom:var(--space-2);
}

.kesher-promo__heading{
  font-family:var(--font-display);
  font-size:var(--text-h3);
  line-height:var(--leading-display);
  color:var(--text-heading);
  margin:0 0 var(--space-2);
}

.kesher-promo__body{
  font-family:var(--font-body);
  font-size:var(--text-md);
  line-height:var(--leading-body);
  color:var(--text-body);
  margin:0 auto var(--space-4);
  max-width:34ch;
}

.kesher-promo__cta{
  display:inline-block;
  background:var(--ink);
  color:var(--text-on-dark);
  font-family:var(--font-label);
  font-size:var(--text-sm);
  letter-spacing:var(--tracking-wide);
  text-decoration:none;
  padding:13px var(--space-6);
  border-radius:var(--radius-pill);
  transition:background var(--transition),box-shadow var(--transition),transform var(--transition);
}

.kesher-promo__cta:hover,
.kesher-promo__cta:focus-visible{
  background:var(--ink-deep);
  box-shadow:var(--shadow-dark-hover);
  transform:translateY(-1px);
  color:var(--text-on-dark);
}

/* Fluent Forms ships its own layout; these rules only centre it and make the
   control match the site's inputs. Nothing here depends on the form's internal
   class names beyond the two wrappers it always outputs. */
.kesher-promo__form{margin-bottom:var(--space-3)}
.kesher-promo__form .fluentform{margin:0}
.kesher-promo__form .ff-el-group{margin-bottom:var(--space-2)}
/* The field label is redundant beside the placeholder in a box this small.
   Fluent Forms styles it from a more specific selector of its own, so this one
   has to be raised to match rather than relying on source order. */
.kesher-promo .kesher-promo__form .ff-el-group > .ff-el-input--label{display:none}
.kesher-promo .kesher-promo__form .ff_screen_reader_title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.kesher-promo__form input[type=text],
.kesher-promo__form input[type=email]{
  width:100%;
  font-family:var(--font-body);
  font-size:var(--text-md);
  padding:12px var(--space-3);
  background:var(--parchment-2);
  border:1px solid var(--border-card-strong);
  border-radius:var(--radius-input);
  color:var(--text-body);
}

.kesher-promo__form input[type=text]:focus,
.kesher-promo__form input[type=email]:focus{
  outline:none;
  border-color:var(--brass);
  box-shadow:0 0 0 3px rgba(177,138,69,.18);
}

.kesher-promo__form .ff-btn-submit{
  width:100%;
  background:var(--ink);
  color:var(--text-on-dark);
  font-family:var(--font-label);
  font-size:var(--text-sm);
  letter-spacing:var(--tracking-wide);
  border:0;
  padding:13px var(--space-5);
  border-radius:var(--radius-pill);
  cursor:pointer;
  transition:background var(--transition);
}

.kesher-promo__form .ff-btn-submit:hover{background:var(--ink-deep)}

.kesher-promo__x{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:none;
  border:0;
  border-radius:50%;
  color:var(--text-muted);
  cursor:pointer;
  transition:background var(--transition),color var(--transition);
}

.kesher-promo__x:hover,
.kesher-promo__x:focus-visible{
  background:var(--surface-wash);
  color:var(--text-heading);
}

.kesher-promo__dismiss{
  display:block;
  margin:var(--space-3) auto 0;
  background:none;
  border:0;
  padding:4px 8px;
  font-family:var(--font-body);
  font-size:var(--text-sm);
  color:var(--text-muted);
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}

.kesher-promo__dismiss:hover{color:var(--text-body)}

@media (max-width:520px){
  .kesher-promo__box{padding:var(--space-6) var(--space-4) var(--space-4)}
  .kesher-promo__heading{font-size:var(--text-h4)}
}

@media (prefers-reduced-motion:reduce){
  .kesher-promo__veil,
  .kesher-promo__box{transition:none}
  .kesher-promo__box{transform:none}
}
