/*
 * Lectern design system — Scholarly Presence public marketing experience.
 *
 * SCOPING: every rule is namespaced under `.lectern` so this design stays
 * isolated to the marketing pages and does NOT leak into the dashboard,
 * scholar editor, auth, billing, or admin UI (those keep the app theme in
 * Main.css). The design TOKENS live as CSS custom properties on `.lectern`.
 *
 * TO GLOBALIZE LATER: move the `--sp-*` token block from `.lectern` to `:root`
 * and drop the `.lectern` prefix from the selectors — the component rules already
 * reference only tokens, so no values are hard-coded in the markup.
 */

/* Marketing fonts loaded via CSS (not a head <link>) so server-rendered and
 * client head markup stay identical — avoids a React hydration mismatch. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

.lectern {
  /* --- Color tokens --- */
  --sp-paper: #f6f6f4;
  --sp-ink: #16181a;
  --sp-panel-dark: #1f2226;
  --sp-hairline-dark: #2c3034;
  --sp-dots: #3a3f44;
  --sp-body-gray: #3a3f42;
  --sp-muted-gray: #5a5f63;
  --sp-on-dark-body: #b6bbbd;
  --sp-muted-on-dark: #9aa0a3;
  --sp-mono-on-dark: #6a7074;
  --sp-forest: #294b3f;
  --sp-forest-on-dark: #7fa593;
  --sp-accent-cell-text: #eaf0ec;
  --sp-divider: #e2e2de;
  --sp-btn-border: #c9c9c3;
  /* hover shades (dark btn lightened ~8%, forest lightened) */
  --sp-ink-hover: #26292c;
  --sp-forest-hover: #305848;

  /* --- Typography tokens --- */
  --sp-font-sans: "Archivo", system-ui, sans-serif;
  --sp-font-serif: "Spectral", Georgia, serif;
  --sp-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* --- Spacing / shape tokens --- */
  --sp-maxw: 1440px;
  --sp-pad-x: 72px;
  --sp-radius-btn: 1px;

  background: var(--sp-paper);
  color: var(--sp-ink);
  font-family: var(--sp-font-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Centered content column */
.lectern .lectern-col {
  max-width: var(--sp-maxw);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.lectern .lectern-btn {
  font-family: var(--sp-font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  padding: 15px 26px;
  border-radius: var(--sp-radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}
.lectern .lectern-btn--dark {
  background: var(--sp-ink);
  color: var(--sp-paper);
}
.lectern .lectern-btn--dark:hover {
  background: var(--sp-ink-hover);
}
.lectern .lectern-btn--outline {
  background: transparent;
  border-color: var(--sp-btn-border);
  color: var(--sp-ink);
}
.lectern .lectern-btn--outline:hover {
  border-color: var(--sp-ink);
}
.lectern .lectern-btn--forest {
  background: var(--sp-forest);
  color: var(--sp-accent-cell-text);
}
.lectern .lectern-btn--forest:hover {
  background: var(--sp-forest-hover);
}
.lectern .lectern-btn--nav {
  padding: 10px 20px;
  font-size: 13px;
}
.lectern .lectern-btn--lg {
  padding: 17px 40px;
  font-size: 15px;
}

/* ---------- Shared labels ---------- */
.lectern .lectern-section-label {
  font-family: var(--sp-font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-forest);
}
.lectern .lectern-label-ondark {
  font-family: var(--sp-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-forest-on-dark);
}

/* ---------- Masthead ---------- */
.lectern .lectern-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--sp-pad-x);
  max-width: var(--sp-maxw);
  margin: 0 auto;
}
.lectern .lectern-wordmark {
  font-family: var(--sp-font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--sp-ink);
}
.lectern .lectern-navlinks {
  display: flex;
  align-items: center;
  gap: 38px;
  font-family: var(--sp-font-sans);
  font-size: 13px;
  font-weight: 500;
}
.lectern .lectern-navlink {
  color: var(--sp-body-gray);
  transition: color 150ms ease;
}
.lectern .lectern-navlink:hover {
  color: var(--sp-ink);
}

/* ---------- Hero ---------- */
.lectern .lectern-hero {
  padding: 72px var(--sp-pad-x) 88px;
  max-width: var(--sp-maxw);
  margin: 0 auto;
}
.lectern .lectern-eyebrow {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 34px;
}
.lectern .lectern-eyebrow__rule {
  width: 26px;
  height: 1px;
  background: var(--sp-forest);
  display: inline-block;
}
.lectern .lectern-hero__title {
  font-family: var(--sp-font-sans);
  font-size: 88px;
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--sp-ink);
  margin: 0 0 40px;
  max-width: 13ch;
  text-wrap: pretty;
}
.lectern .lectern-hero__sub {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
}
.lectern .lectern-hero__lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--sp-body-gray);
  max-width: 32em;
  margin: 0;
  font-weight: 400;
}
.lectern .lectern-hero__ctas {
  display: flex;
  gap: 14px;
}

/* ---------- Full-bleed dark bands ---------- */
.lectern .lectern-band-dark {
  background: var(--sp-ink);
  color: var(--sp-paper);
}

/* ---------- 01 / The result ---------- */
.lectern .lectern-result {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--sp-maxw);
  margin: 0 auto;
  padding: 72px var(--sp-pad-x);
}
.lectern .lectern-result__h {
  font-family: var(--sp-font-sans);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 22px 0;
}
.lectern .lectern-result__p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--sp-on-dark-body);
  font-weight: 400;
  margin: 0;
  max-width: 30em;
}
.lectern .lectern-label-ondark + .lectern-result__h {
  margin-top: 0;
}

/* Browser mockup */
.lectern .lectern-mock {
  background: var(--sp-panel-dark);
  border: 1px solid var(--sp-hairline-dark);
  overflow: hidden;
}
.lectern .lectern-mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sp-hairline-dark);
}
.lectern .lectern-mock__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sp-dots);
}
.lectern .lectern-mock__url {
  margin-left: 12px;
  font-family: var(--sp-font-mono);
  font-size: 10px;
  color: var(--sp-mono-on-dark);
}
.lectern .lectern-mock__body {
  padding: 34px 36px;
}
.lectern .lectern-mock__toprow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 34px;
}
.lectern .lectern-mock__name {
  font-family: var(--sp-font-sans);
  font-weight: 700;
  font-size: 15px;
}
.lectern .lectern-mock__meta {
  font-family: var(--sp-font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-forest-on-dark);
}
.lectern .lectern-mock__title {
  font-family: var(--sp-font-sans);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.lectern .lectern-mock__subtitle {
  font-family: var(--sp-font-serif);
  font-size: 15px;
  color: var(--sp-muted-on-dark);
  font-style: italic;
  margin-bottom: 30px;
}
.lectern .lectern-mock__bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.lectern .lectern-mock__line {
  height: 9px;
  background: var(--sp-hairline-dark);
}

/* ---------- 02 / What it holds ---------- */
.lectern .lectern-cap {
  padding: 96px var(--sp-pad-x);
  max-width: var(--sp-maxw);
  margin: 0 auto;
}
.lectern .lectern-cap__label {
  margin-bottom: 18px;
}
.lectern .lectern-cap__h {
  font-family: var(--sp-font-sans);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 56px;
  max-width: 16ch;
}
.lectern .lectern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sp-divider);
  border: 1px solid var(--sp-divider);
}
.lectern .lectern-cell {
  background: var(--sp-paper);
  padding: 36px 34px;
}
.lectern .lectern-cell__label {
  font-family: var(--sp-font-mono);
  font-size: 12px;
  color: var(--sp-forest);
  margin-bottom: 60px;
}
.lectern .lectern-cell__title {
  font-family: var(--sp-font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.lectern .lectern-cell__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--sp-muted-gray);
  margin: 0;
}
.lectern .lectern-cell--accent {
  background: var(--sp-forest);
  color: var(--sp-accent-cell-text);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.lectern .lectern-cell--accent .lectern-cell__title {
  margin-bottom: 0;
  line-height: 1.1;
}

/* ---------- 03 / Process ---------- */
.lectern .lectern-process {
  padding: 0 var(--sp-pad-x) 96px;
  max-width: var(--sp-maxw);
  margin: 0 auto;
}
.lectern .lectern-process__label {
  margin-bottom: 40px;
}
.lectern .lectern-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.lectern .lectern-step {
  border-top: 2px solid var(--sp-ink);
}
.lectern .lectern-step--1 {
  padding: 40px 40px 40px 0;
}
.lectern .lectern-step--2 {
  padding: 40px;
  border-left: 1px solid var(--sp-divider);
}
.lectern .lectern-step--3 {
  padding: 40px 0 40px 40px;
  border-left: 1px solid var(--sp-divider);
}
.lectern .lectern-step__num {
  font-family: var(--sp-font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-forest);
  margin-bottom: 24px;
}
.lectern .lectern-step__title {
  font-family: var(--sp-font-sans);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.lectern .lectern-step__body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--sp-muted-gray);
  margin: 0;
}

/* ---------- Final CTA ---------- */
.lectern .lectern-cta {
  background: var(--sp-ink);
  color: var(--sp-paper);
  padding: 110px var(--sp-pad-x);
  text-align: center;
}
.lectern .lectern-cta__h {
  font-family: var(--sp-font-sans);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.lectern .lectern-cta__p {
  font-size: 19px;
  color: var(--sp-muted-on-dark);
  margin: 0 0 40px;
}

/* ---------- Footer ---------- */
.lectern .lectern-footer {
  background: var(--sp-paper);
  color: var(--sp-muted-gray);
  padding: 36px var(--sp-pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sp-font-sans);
  font-size: 13px;
  max-width: var(--sp-maxw);
  margin: 0 auto;
}
.lectern .lectern-footer__brand {
  color: var(--sp-ink);
  font-weight: 600;
}
.lectern .lectern-footer__links {
  display: flex;
  gap: 26px;
}
.lectern .lectern-footer__links a:hover {
  color: var(--sp-ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .lectern .lectern-hero__title {
    font-size: clamp(40px, 9vw, 88px);
  }
  .lectern .lectern-hero__sub {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .lectern .lectern-result {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lectern .lectern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lectern .lectern-steps {
    grid-template-columns: 1fr;
  }
  .lectern .lectern-step--1,
  .lectern .lectern-step--2,
  .lectern .lectern-step--3 {
    padding: 36px 0;
    border-left: none;
  }
  .lectern .lectern-cta__h {
    font-size: clamp(34px, 8vw, 64px);
  }
}

@media (max-width: 640px) {
  .lectern {
    --sp-pad-x: 24px;
  }
  .lectern .lectern-navlink {
    display: none;
  }
  .lectern .lectern-grid {
    grid-template-columns: 1fr;
  }
  .lectern .lectern-hero__ctas {
    flex-wrap: wrap;
  }
  .lectern .lectern-footer {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* =====================================================================
 * Scholar Assembly onboarding — the concierge bridge from the Lectern
 * marketing language into the application. Uses the Lectern tokens above,
 * but pairs them with the app's form controls (shadcn Input/Textarea) so
 * the experience eases the scholar from "discovering" to "working with".
 * ===================================================================== */

.lectern-onboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* UI controls inside onboarding use the sans UI face, not the body serif */
.lectern-onboard input,
.lectern-onboard textarea,
.lectern-onboard button,
.lectern-onboard select {
  font-family: var(--sp-font-sans);
}

/* Slim brand bar (replaces the global app nav for the concierge flow) */
.lectern-onboard__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--sp-pad-x);
  border-bottom: 1px solid var(--sp-divider);
}
.lectern-onboard__step {
  font-family: var(--sp-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-muted-gray);
}

.lectern-onboard__main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 56px var(--sp-pad-x) 72px;
}
.lectern-onboard__panel {
  width: 100%;
  max-width: 760px;
}
.lectern-onboard__title {
  font-family: var(--sp-font-sans);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--sp-ink);
  margin: 14px 0 16px;
  text-wrap: pretty;
}
.lectern-onboard__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--sp-body-gray);
  margin: 0 0 40px;
  max-width: 46ch;
}

/* Intake fields */
.lectern-field {
  margin-bottom: 22px;
}
.lectern-field__label {
  display: block;
  font-family: var(--sp-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-ink);
  margin-bottom: 8px;
}
.lectern-field__optional {
  color: var(--sp-muted-gray);
  font-weight: 400;
}
.lectern-field__hint {
  font-size: 13px;
  color: var(--sp-muted-gray);
  margin: 6px 0 0;
}
.lectern-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

/* CV upload — dashed dropzone styled in Lectern, holds an app file input */
.lectern-cv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed var(--sp-btn-border);
  background: #fff;
  padding: 18px 20px;
}
.lectern-cv__text {
  font-size: 14px;
  color: var(--sp-muted-gray);
}
.lectern-cv__name {
  font-family: var(--sp-font-sans);
  font-size: 14px;
  color: var(--sp-forest);
  font-weight: 600;
}

.lectern-divider {
  height: 1px;
  background: var(--sp-divider);
  border: 0;
  margin: 32px 0;
}

.lectern-onboard__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}
.lectern-onboard__note {
  font-size: 14px;
  color: var(--sp-muted-gray);
  margin: 0;
  max-width: 34ch;
}

/* Assembly progress */
.lectern-assembly {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 24px;
}
.lectern-progress__track {
  height: 4px;
  background: var(--sp-divider);
  border-radius: 2px;
  overflow: hidden;
  margin: 28px 0 36px;
}
.lectern-progress__fill {
  height: 100%;
  background: var(--sp-forest);
  border-radius: 2px;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lectern-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lectern-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sp-font-sans);
  font-size: 16px;
  color: var(--sp-muted-gray);
  transition: color 300ms ease;
}
.lectern-step-item--active {
  color: var(--sp-ink);
  font-weight: 600;
}
.lectern-step-item--done {
  color: var(--sp-ink);
}
.lectern-step-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--sp-btn-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  transition:
    background 300ms ease,
    border-color 300ms ease;
}
.lectern-step-item--done .lectern-step-dot {
  background: var(--sp-forest);
  border-color: var(--sp-forest);
}
.lectern-step-item--active .lectern-step-dot {
  border-color: var(--sp-forest);
}

@media (max-width: 640px) {
  /* Hide the step label so it doesn't crowd the wordmark on narrow screens. */
  .lectern-onboard__step {
    display: none;
  }
  .lectern-onboard__title {
    font-size: 34px;
  }
  .lectern-grid2 {
    grid-template-columns: 1fr;
  }
  .lectern-onboard__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* =====================================================================
 * Founding Scholar offer — pricing, terms, scope, CTA group.
 * Lives in the Lectern marketing language (paper / ink / forest gold-rule).
 * ===================================================================== */

.lectern-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sp-divider);
  border: 1px solid var(--sp-divider);
  margin-top: 12px;
}
.lectern-tier {
  background: #fff;
  padding: 32px 28px;
}
.lectern-tier--featured {
  background: var(--sp-ink);
  color: var(--sp-paper);
}
.lectern-tier__cohort {
  font-family: var(--sp-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sp-forest);
  margin-bottom: 14px;
}
.lectern-tier--featured .lectern-tier__cohort {
  color: var(--sp-forest-on-dark);
}
.lectern-tier__price {
  font-family: var(--sp-font-sans);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.lectern-tier__note {
  font-size: 15px;
  color: var(--sp-muted-gray);
  margin-top: 10px;
}
.lectern-tier--featured .lectern-tier__note {
  color: var(--sp-on-dark-body);
}
.lectern-terms {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  font-family: var(--sp-font-sans);
  font-size: 14px;
  color: var(--sp-muted-gray);
}
.lectern-terms strong {
  color: var(--sp-ink);
  font-weight: 600;
}

.lectern-scope {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}
.lectern-scope li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  color: var(--sp-muted-gray);
}
.lectern-scope li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sp-forest);
}

.lectern-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}
/* Outline buttons sit on the dark CTA band — make them light. */
.lectern-cta .lectern-btn--outline {
  color: var(--sp-paper);
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}
.lectern-cta .lectern-btn--outline:hover {
  border-color: var(--sp-paper);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .lectern-pricing {
    grid-template-columns: 1fr;
  }
  .lectern-scope {
    grid-template-columns: 1fr;
  }
}
