/* ==========================================================================
   The Frum Educators' Community — landing page
   Palette: coral #EF8E8A · sky #7FC3E6 · slate #2A3A4A · soft white #FCFDFE
   Structural weight is carried by slate; coral draws the eye to the CTA.
   ========================================================================== */

:root {
  --coral:        #EF8E8A;
  --coral-deep:   #E27671;   /* button hover */
  --coral-text:   #A8453F;   /* 5.75:1 on soft white — safe for small text */
  --coral-wash:   #FDF3F2;
  --coral-line:   #F6D9D7;

  --sky:          #7FC3E6;
  --sky-wash:     #F1F8FC;
  --sky-line:     #D3E9F5;

  --slate:        #2A3A4A;   /* 11.4:1 on soft white */
  --slate-soft:   #54646F;   /* 6.0:1  on soft white */
  --slate-line:   #E3E8EC;

  --white:        #FCFDFE;
  --surface:      #FFFFFF;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(42, 58, 74, .05), 0 4px 14px rgba(42, 58, 74, .05);
  --shadow-md: 0 2px 6px rgba(42, 58, 74, .06), 0 18px 40px rgba(42, 58, 74, .08);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--slate);
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
p { margin: 0 0 1.05em; }
a { color: var(--coral-text); }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 720px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--slate); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

.kicker {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--coral-text);
  margin: 0 0 .85em;
}
.lede { font-size: 1.12rem; color: var(--slate-soft); }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 4px 0 0;
  background: var(--surface);
  border: 1px solid var(--coral-line);
  border-radius: 999px;
  padding: 9px 18px 9px 15px;
  font-size: .92rem; font-weight: 500; color: var(--slate);
  box-shadow: var(--shadow-sm);
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--coral);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  background: var(--btn-bg);
  color: var(--slate);            /* slate on coral = 4.9:1 */
  font: 600 1rem/1 var(--sans);
  letter-spacing: -.005em;
  padding: 16px 26px;
  border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(42,58,74,.08), 0 8px 22px rgba(239,142,138,.34);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { --btn-bg: var(--coral-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn--sm { padding: 11px 19px; font-size: .93rem; box-shadow: 0 1px 2px rgba(42,58,74,.08), 0 6px 16px rgba(239,142,138,.3); }
.btn--block { width: 100%; padding: 18px 26px; font-size: 1.05rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 253, 254, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--slate); }
.brand__mark { border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__the { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-soft); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(58px, 8vw, 96px);
  background:
    radial-gradient(76% 108% at 8% -14%, rgba(239,142,138,.20), transparent 62%),
    radial-gradient(62% 92% at 96% 4%, rgba(127,195,230,.20), transparent 60%),
    var(--white);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--slate-line);
}
.hero__inner { position: relative; z-index: 1; }
.hero__title, .hero__tagline, .hero__sub, .quickform, .quickform__note { max-width: 760px; }

/* the doorway motif, echoed large and quiet behind the right-hand space */
.hero__motif {
  position: absolute; z-index: 0;
  right: max(0px, calc(50% - var(--wrap) / 2));
  top: 50%; transform: translateY(-46%);
  width: min(38vw, 420px); height: auto;
  color: var(--coral);
  opacity: .22;
  pointer-events: none;
}
@media (max-width: 1080px) { .hero__motif { display: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--coral-line);
  color: var(--coral-text);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  margin: 0 0 26px;
  box-shadow: var(--shadow-sm);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }

.hero__title {
  font-size: clamp(2.5rem, 7.2vw, 4.35rem);
  letter-spacing: -.028em;
  margin: 0 0 .22em;
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.6vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  color: var(--coral-text);
  margin: 0 0 .8em;
  letter-spacing: -.01em;
}
.hero__sub {
  font-size: clamp(1.03rem, 1.6vw, 1.16rem);
  color: var(--slate-soft);
  max-width: 60ch;
  margin-bottom: 2em;
}

/* hero quick form */
.quickform { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.quickform .input { flex: 1 1 240px; }
.quickform__note { font-size: .88rem; color: var(--slate-soft); margin: 14px 0 0; }

/* ---------- inputs ---------- */
.input {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--slate);
  background: var(--surface);
  border: 1.5px solid var(--slate-line);
  border-radius: var(--radius);
  padding: 15px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #93A0AA; }
.input:hover { border-color: #CFD7DD; }
.input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(127,195,230,.24); outline: none; }
.input[aria-invalid="true"] { border-color: var(--coral-text); box-shadow: 0 0 0 4px rgba(168,69,63,.12); }
select.input { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2354646F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
textarea.input { resize: vertical; min-height: 96px; }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 9vw, 108px) 0; }
.section h2 { font-size: clamp(1.75rem, 3.9vw, 2.6rem); }
.section__head { margin-bottom: clamp(34px, 5vw, 54px); }
.section--problem { background: var(--white); }
.section--inside  { background: var(--coral-wash); border-block: 1px solid var(--coral-line); }
.section--founder { background: var(--white); }

/* problem */
.pains { margin-top: 44px; display: grid; gap: 4px; }
.pains li {
  padding: 22px 0 22px 26px;
  border-left: 3px solid var(--coral);
  background: linear-gradient(90deg, rgba(239,142,138,.08), transparent 96%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pains h3 { font-size: 1.13rem; margin-bottom: .25em; letter-spacing: -.01em; }
.pains p  { margin: 0; color: var(--slate-soft); font-size: .99rem; }

/* cards */
.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--coral-line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 12px;
  background: var(--coral-wash);
  border: 1px solid var(--coral-line);
  color: var(--coral-text);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin-bottom: .4em; }
.card p { margin: 0; color: var(--slate-soft); font-size: .98rem; }
.card__badge {
  position: absolute; top: 20px; right: 20px;
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); background: var(--sky-wash);
  border: 1px solid var(--sky-line);
  padding: 4px 10px; border-radius: 999px;
}

/* founder */
.founder { display: grid; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(220px, 300px) 1fr; } }
.founder__media { position: relative; }
.founder__media::before {
  content: ""; position: absolute; inset: 20px auto -20px 20px;
  width: min(100%, 300px);
  border-radius: var(--radius-lg); background: var(--coral-wash); border: 1px solid var(--coral-line);
  z-index: 0;
}
.founder__photo,
.founder__placeholder {
  position: relative; z-index: 1;
  display: block;
  width: 100%; max-width: 300px; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--coral-line);
  box-shadow: var(--shadow-md);
}
@media (max-width: 899px) { .founder__media { display: flex; justify-content: center; } }
.founder__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 30px; text-align: center;
  background: linear-gradient(158deg, var(--coral-wash), #FFF 70%);
}
.founder__placeholder img { border-radius: 18px; }
.founder__placeholder p {
  font-family: var(--serif); font-size: 1.02rem; color: var(--slate);
  margin: 0; max-width: 15ch; line-height: 1.35;
}
.creds { margin-top: 26px; display: grid; gap: 11px; }
.creds li {
  position: relative; padding-left: 30px;
  color: var(--slate); font-size: .98rem;
}
.creds li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 15px; height: 9px;
  border-left: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral);
  transform: rotate(-45deg); border-radius: 1px;
}

/* founding cohort — dark band */
.section--founding {
  background: var(--slate);
  color: #D9DEE3;
  background-image:
    radial-gradient(60% 100% at 88% 0%, rgba(239,142,138,.16), transparent 60%),
    radial-gradient(50% 90% at 4% 100%, rgba(127,195,230,.14), transparent 60%);
}
.section--founding h2, .section--founding h3 { color: var(--white); }
.section--founding .kicker { color: var(--coral); }
.section--founding .lede { color: #C3CBD2; }
.perks {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .perks { grid-template-columns: 1fr 1fr; } }
.perks li {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.perks__num {
  display: block;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--coral); margin-bottom: 10px; letter-spacing: .01em;
}
.perks h3 { font-size: 1.14rem; margin-bottom: .35em; }
.perks p { margin: 0; color: #C3CBD2; font-size: .97rem; }

/* waitlist */
.section--waitlist { background: var(--white); }
.section--waitlist .narrow { margin-inline: auto; }
.section--waitlist .section__head { text-align: center; margin-bottom: 36px; }
.form {
  background: var(--surface);
  border: 1px solid var(--slate-line);
  border-top: 4px solid var(--coral);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-md);
  display: grid; gap: 20px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: .93rem; font-weight: 600; color: var(--slate); }
.field-row { display: grid; gap: 20px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.opt { font-weight: 400; color: var(--slate-soft); font-size: .84rem; }
.req { color: var(--coral-text); }
.help { margin: 0; font-size: .84rem; color: var(--slate-soft); }
.hp { position: absolute !important; left: -9999px; opacity: 0; }
.form__fineprint { margin: -6px 0 0; text-align: center; font-size: .85rem; color: var(--slate-soft); }
.form__status { margin: 0; font-size: .93rem; color: var(--coral-text); font-weight: 500; }
.form__status:empty { display: none; }

.success {
  background: var(--surface);
  border: 1px solid var(--coral-line);
  border-top: 4px solid var(--coral);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 46px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.success__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--coral); color: var(--slate);
}
.success__icon svg { width: 27px; height: 27px; }
.success h3 { font-size: 1.5rem; }
.success p { margin: 0; color: var(--slate-soft); }

/* footer */
.footer { background: var(--coral-wash); border-top: 1px solid var(--coral-line); padding: 44px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { border-radius: 9px; }
.footer__name { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; }
.footer__tag { margin: 0; font-size: .9rem; color: var(--slate-soft); }
.footer__meta { text-align: right; }
.footer__meta p { margin: 0 0 4px; font-size: .92rem; }
.footer__copy { color: var(--slate-soft); font-size: .84rem; }
@media (max-width: 640px) { .footer__meta { text-align: left; } }

/* ---------- small screens ---------- */
@media (max-width: 620px) {
  .brand__the { display: none; }
  .brand__name { font-size: .82rem; line-height: 1.22; }
  .btn--sm { padding: 10px 15px; font-size: .86rem; }
  .nav__inner { min-height: 64px; }
  .wrap { padding-inline: 20px; }
}
