/* The public front page (Oct 30 2026).
   Only somebody who is NOT signed in ever sees this: the same code that used
   to hide the "What this is" box hides all of it the moment a rebbe signs in,
   and the staff menu underneath is exactly as it was. */

@font-face {
  font-family: 'Frank Ruhl';
  src: url('../fonts/frank-ruhl-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* the sign-in area is a full-screen centred box for the staff; for a visitor
   it is a whole page, so it lets go of that layout */
#gate:not(.gate--compact) { display: block; min-height: 0; padding: 0; background: #fff; }
.whoLine:empty { display: none; }
/* somebody remembered as signed in never sees the front page flash up first */
.ssp-in #signPanel { display: none; }

.lp { --lp-max: 1160px; color: var(--ink); background: #fff; text-align: left; }
.lp-wrap { width: min(var(--lp-max), calc(100% - 2.5rem)); margin-inline: auto; }
.lp h1, .lp h2, .lp h3 { font-family: var(--display); letter-spacing: -.025em; color: var(--navy-deep); }
.lp p { margin: 0; }
.lp img { max-width: 100%; height: auto; display: block; }
.lp-skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 50; }
.lp-skip:focus { left: .5rem; top: .5rem; }

/* ---------------------------------------------------------------- buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 1rem/1.2 var(--body); text-decoration: none; border-radius: 12px;
  padding: .9rem 1.5rem; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; white-space: nowrap; }
.lp-btn svg { width: 1.15em; height: 1.15em; flex: none; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn--primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(0,56,119,.25); }
.lp-btn--primary:hover { background: var(--navy-deep); }
.lp-btn--gold { background: var(--gold); color: #1d1500; box-shadow: 0 6px 18px rgba(169,118,26,.25); }
.lp-btn--gold:hover { background: #f4c24f; }
.lp-btn--ghost { background: #fff; color: var(--navy); border-color: #c7d5e6; }
.lp-btn--ghost:hover { border-color: var(--navy); }
.lp-btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); }
.lp-btn--light:hover { background: rgba(255,255,255,.18); }
.lp-btn--sm { padding: .55rem 1.05rem; font-size: .93rem; border-radius: 10px; }

/* ---------------------------------------------------------------- top bar */
.lp-top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.5) blur(10px); -webkit-backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid #e6edf5; }
.lp-top__in { display: flex; align-items: center; gap: 1.2rem; min-height: 4.2rem; }
.lp-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.lp-brand img { width: 47px; height: 30px; }
.lp-brand span { font-family: var(--display); font-weight: 750; font-size: 1.14rem; color: var(--navy-deep);
  letter-spacing: -.02em; line-height: 1.1; }
.lp-nav { display: flex; gap: 1.4rem; }
.lp-nav a { color: #33475c; text-decoration: none; font-weight: 600; font-size: .95rem; }
.lp-nav a:hover { color: var(--navy); }
.lp-bsd { font-family: 'Frank Ruhl', serif; font-size: .8rem; color: #6b7a89; margin-left: .2rem; }

/* ---------------------------------------------------------------- hero */
.lp-hero { position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 88% 8%, rgba(27,145,158,.16), transparent 70%),
    radial-gradient(800px 420px at 0% 100%, rgba(239,182,53,.13), transparent 70%),
    linear-gradient(180deg, #f2f7fc 0%, #fff 100%); }
.lp-hero__in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 3.2rem; align-items: center;
  padding: 4.2rem 0 4.6rem; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep);
  background: #e2f2f3; border-radius: 999px; padding: .38rem .85rem; margin-bottom: 1.2rem; }
.lp-hero h1 { font-size: clamp(2.15rem, 4.4vw, 3.45rem); line-height: 1.06; margin: 0 0 1.15rem; font-weight: 780; }
.lp-hero h1 em { font-style: normal; color: var(--teal-deep); }
.lp-lede { font-size: 1.15rem; line-height: 1.65; color: #3d5064; max-width: 34rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.lp-made { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; color: #4a5d70; font-size: .93rem; }
.lp-made svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; }

.lp-visual { position: relative; }
.lp-frame { background: #fff; border-radius: 16px; border: 1px solid #dbe5ef; overflow: hidden;
  box-shadow: 0 2px 6px rgba(13,27,42,.05), 0 30px 60px -12px rgba(0,36,80,.25); }
.lp-frame__bar { display: flex; gap: 6px; padding: 10px 12px; background: #f3f6fa; border-bottom: 1px solid #e3eaf2; }
.lp-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3dce6; }
.lp-float { position: absolute; left: -2.2rem; bottom: -2.4rem; width: 46%; background: #fff; border-radius: 12px;
  border: 1px solid #dbe5ef; box-shadow: 0 24px 48px -10px rgba(0,36,80,.32); overflow: hidden; transform: rotate(-2deg); }
.lp-demo-tag { position: absolute; right: .7rem; top: .42rem; background: rgba(0,36,80,.82); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }

/* ---------------------------------------------------------------- strip */
.lp-strip { border-block: 1px solid #e8eef5; background: #fff; }
.lp-strip ul { list-style: none; margin: 0 auto; padding: 1.25rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.lp-strip li { display: flex; align-items: center; gap: .7rem; font-weight: 650; color: #24384d; font-size: .97rem; }
.lp-strip svg { width: 26px; height: 26px; color: var(--teal); flex: none; }

/* ---------------------------------------------------------------- sections */
.lp-sec { padding: 5rem 0; }
.lp-sec--tint { background: #f5f8fb; }
.lp-head { max-width: 44rem; margin: 0 auto 2.8rem; text-align: center; }
.lp-kicker { font-weight: 700; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: .6rem !important; }
.lp-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); line-height: 1.12; margin: 0 0 .8rem; }
.lp-head p { color: #4a5d70; font-size: 1.07rem; line-height: 1.65; }

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.lp-feat { background: #fff; border: 1px solid #e3eaf2; border-radius: 16px; padding: 1.4rem 1.35rem 1.35rem;
  box-shadow: 0 1px 2px rgba(13,27,42,.04); }
.lp-feat__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .95rem;
  background: var(--c-wash, #e6eefa); color: var(--c, #003877); }
.lp-feat__ic svg { width: 24px; height: 24px; }
.lp-feat h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.lp-feat p { color: #4f6275; font-size: .94rem; line-height: 1.6; }
.lp-units { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.lp-units span { font-size: .75rem; font-weight: 600; color: #2a4560; background: #eef3f9; border-radius: 999px; padding: .2rem .55rem; }
.lp-feat--wide { grid-column: span 2; }

/* ---------------------------------------------------------------- showcase */
.lp-show { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.4rem; align-items: center; }
.lp-show + .lp-show { margin-top: 5rem; }
.lp-show--flip { grid-template-columns: 1.25fr 1fr; }
.lp-show--flip .lp-show__txt { order: 2; }
.lp-show__txt h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 0 0 .8rem; }
.lp-show__txt p { color: #4a5d70; font-size: 1.04rem; line-height: 1.7; }
.lp-ticks { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .55rem; }
.lp-ticks li { position: relative; padding-left: 1.8rem; color: #2a3d51; font-size: .98rem; line-height: 1.5; }
.lp-ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #e2f2f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2312707c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.lp-fig { margin: 0; }
.lp-fig figcaption { font-size: .8rem; color: #66788a; margin-top: .6rem; text-align: center; }
.lp-pair { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ---------------------------------------------------------------- steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: s; }
.lp-step { background: #fff; border: 1px solid #e3eaf2; border-radius: 18px; padding: 1.7rem 1.5rem; position: relative; }
.lp-step__n { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display);
  font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--navy); margin-bottom: 1rem; }
.lp-step:nth-child(2) .lp-step__n { background: var(--teal-deep); }
.lp-step:nth-child(3) .lp-step__n { background: var(--gold-deep); }
.lp-step h3 { font-size: 1.18rem; margin: 0 0 .45rem; }
.lp-step p { color: #4f6275; font-size: .96rem; line-height: 1.65; }

/* ---------------------------------------------------------------- yeshivos band */
.lp-band { background: linear-gradient(135deg, #002450 0%, #003877 60%, #0d4f86 100%); color: #e8f0f9; position: relative; overflow: hidden; }
.lp-band::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,182,53,.22), transparent 65%); }
.lp-band__in { display: grid; grid-template-columns: auto 1fr; gap: 2.4rem; align-items: center; padding: 3.4rem 0; position: relative; z-index: 1; }
.lp-band .lp-band__yi { font-family: 'Frank Ruhl', 'Times New Roman', serif; font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--gold); line-height: 1.2; direction: rtl; white-space: nowrap; }
.lp-band h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 0 0 .5rem; }
.lp-band p { color: #d3e1f0; font-size: 1.03rem; line-height: 1.7; max-width: 46rem; }

/* ---------------------------------------------------------------- demo */
.lp-demo { background: #fff; border: 1px solid #dfe8f1; border-radius: 24px; padding: 3rem 2.6rem; text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0,36,80,.25);
  background-image: radial-gradient(600px 240px at 50% 0%, rgba(27,145,158,.10), transparent 70%); }
.lp-demo h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 .7rem; }
.lp-demo > p { color: #4a5d70; font-size: 1.08rem; line-height: 1.65; max-width: 36rem; margin: 0 auto; }
.lp-demo__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.lp-demo__note { margin-top: 1.2rem !important; font-size: .88rem !important; color: #66788a !important; }

.lp-signin { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding: 1.15rem 1.4rem; border-radius: 16px; background: #f2f6fa; border: 1px solid #e1e9f1; }
.lp-signin p { color: #33475c; font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.lp-foot { border-top: 1px solid #e6edf5; padding: 2rem 0 2.4rem; background: #fff; }
.lp-foot__in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; color: #5a6b7d; font-size: .88rem; }
.lp-foot nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.lp-foot a { color: #33475c; text-decoration: none; font-weight: 600; }
.lp-foot a:hover { color: var(--navy); text-decoration: underline; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 980px) {
  .lp-hero__in { grid-template-columns: 1fr; gap: 2.6rem; padding: 3rem 0 3.6rem; }
  .lp-visual { max-width: 640px; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-show, .lp-show--flip { grid-template-columns: 1fr; gap: 1.8rem; }
  .lp-show--flip .lp-show__txt { order: 0; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-strip ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .lp-nav { display: none; }
  .lp-feat--wide { grid-column: auto; }
}
@media (max-width: 620px) {
  .lp-wrap { width: calc(100% - 2.2rem); }
  .lp-top__in { min-height: 3.7rem; gap: .7rem; }
  .lp-brand img { width: 39px; height: 25px; }
  .lp-brand span { font-size: 1rem; }
  .lp-bsd { display: none; }
  .lp-hero__in { padding: 2.2rem 0 2.6rem; }
  .lp-lede { font-size: 1.05rem; }
  .lp-cta .lp-btn { flex: 1 1 100%; }
  .lp-float { display: none; }
  .lp-features { grid-template-columns: 1fr; gap: .8rem; }
  .lp-feat { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; padding: 1.1rem 1.05rem; }
  .lp-feat__ic { grid-row: span 3; width: 42px; height: 42px; margin: 0; }
  .lp-feat h3 { font-size: 1.04rem; margin-top: .45rem; }
  .lp-feat p { font-size: .92rem; }
  .lp-sec { padding: 3.4rem 0; }
  .lp-show + .lp-show { margin-top: 3.4rem; }
  .lp-strip ul { gap: .8rem; }
  .lp-strip li { font-size: .88rem; }
  .lp-band__in { grid-template-columns: 1fr; gap: .8rem; padding: 2.6rem 0; }
  .lp-band .lp-band__yi { text-align: right; }
  .lp-demo { padding: 2.2rem 1.3rem; border-radius: 20px; }
  .lp-demo__btns .lp-btn { flex: 1 1 100%; }
  .lp-signin { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .lp-btn { transition: none; } .lp-btn:hover { transform: none; } }

/* Nov 2 2026: "See the demo", pricing with the full program, "New" tags */
.lp-demo-note { margin-top: .8rem !important; font-size: .9rem; color: #5a6c7e; }
.lp-new { display: inline-block; vertical-align: 2px; margin-left: .35rem; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #c0392b; border-radius: 99px; padding: .16rem .5rem; }
.lp-yi { font-family: 'Frank Ruhl', serif; font-weight: 700; color: #8a5a1a; margin-left: .3rem; }
.lp-plans { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2rem; align-items: stretch; max-width: 60rem; margin: 0 auto; }
.lp-plan { background: #fff; border: 1px solid #dfe8f1; border-radius: 20px; padding: 1.7rem 1.6rem; display: flex; flex-direction: column; }
.lp-plan--full { border: 2px solid var(--gold); box-shadow: 0 14px 40px rgba(169,118,26,.14); }
.lp-plan__tag { font-size: .78rem !important; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #8a6410; }
.lp-plan h3 { font-size: 1.45rem; margin: .3rem 0 .4rem; }
.lp-plan__price { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--navy-deep); line-height: 1.15; }
.lp-plan__price span { font-size: 1rem; font-weight: 600; color: #5a6c7e; }
.lp-plan__sub { color: #5a6c7e; margin-top: .25rem !important; }
.lp-plan ul { list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.lp-plan li { display: flex; gap: .55rem; align-items: flex-start; color: #34485c; line-height: 1.5; font-size: .96rem; }
.lp-plan li svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: #1d6b42; }
.lp-plan__btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 760px) {
  .lp-plans { grid-template-columns: 1fr; }
  .lp-plan { padding: 1.4rem 1.2rem; }
  .lp-plan__btns .lp-btn { flex: 1 1 100%; }
}

/* Full-program price tiers (Nov 2 2026) */
.lp-tiers { margin: 1rem 0 .2rem; border: 1px solid #ecdcb8; border-radius: 14px; background: #fffaf0; overflow: hidden; }
.lp-tier { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 1rem; }
.lp-tier + .lp-tier { border-top: 1px solid #f0e4c8; }
.lp-tier span { font-weight: 700; color: var(--navy-deep); line-height: 1.25; }
.lp-tier span small { display: block; font-weight: 500; font-size: .85rem; color: #5a6c7e; }
.lp-tier b { font-family: var(--display); font-size: 1.35rem; color: var(--navy-deep); white-space: nowrap; }
.lp-tier b small { font-family: var(--body, inherit); font-size: .8rem; font-weight: 600; color: #5a6c7e; }
