/* ==========================================================================
   Landing Page
   ========================================================================== */

.landing-page {
  min-height: 100vh;
}

.landing-header-row {
  display: flex;
  align-items: center;
  width: 100%;
  margin-right: 0 !important;
}

.landing-header-title {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.landing-header-logo {
  flex: 0 0 auto;
  width: auto;
  height: 38px;
  object-fit: contain;
}

.landing-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.landing-header-name {
  font-family: "Libre Baskerville", serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #172033;
}

.landing-header-subtitle {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  color: #617184;
}

.landing-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(48px, 8vh, 92px) 0 50px;
}

.landing-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(330px, 0.85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.landing-hero-copy {
  max-width: 680px;
}

.landing-eyebrow {
  margin: 0 0 14px;
  color: #1d44b8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  color: #142239;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
}

.landing-intro {
  max-width: 640px;
  margin: 22px 0 0;
  color: #4d5d70;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.landing-actions {
  display: grid;
  gap: 14px;
}

.landing-action-card {
  display: grid;
  grid-template-columns:
    46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 15px 18px;
  border: 1px solid rgba(112, 138, 163, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 24px rgba(31, 50, 70, 0.08);
  color: #172033;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

button.landing-action-card {
  font-family: inherit;
  cursor: pointer;
}

.landing-action-card:hover:not(:disabled),
.landing-action-card:focus-visible {
  border-color: #2f9ae0;
  box-shadow:
    0 14px 30px rgba(31, 50, 70, 0.14);
  transform: translateY(-2px);
}

.landing-action-primary {
  border-color: rgba(29, 68, 184, 0.45);
}

.landing-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eef4ff;
  color: #1d44b8;
  font-size: 1.2rem;
}

.landing-action-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.landing-action-content strong {
  font-size: 1rem;
  line-height: 1.2;
}

.landing-action-content span {
  margin-top: 5px;
  color: #647386;
  font-size: 0.82rem;
  line-height: 1.35;
}

.landing-action-arrow {
  color: #1d44b8;
  font-size: 1.8rem;
  line-height: 1;
}

.landing-action-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf1f4;
  color: #667482;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.landing-action-card:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.landing-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(56px, 9vh, 100px);
}

.landing-feature-strip article {
  padding: 20px 22px;
  border-top: 2px solid rgba(29, 68, 184, 0.3);
  background: rgba(255, 255, 255, 0.52);
}

.landing-feature-strip h2 {
  margin: 0;
  color: #1d2d44;
  font-family: "Libre Baskerville", serif;
  font-size: 1rem;
}

.landing-feature-strip p {
  margin: 10px 0 0;
  color: #5a6878;
  font-size: 0.84rem;
  line-height: 1.55;
}

/* Landing-page use of the shared passage picker */

.passage-picker--landing {
  position: static;
}

.passage-picker--landing
#passage-picker-toggle {
  cursor: pointer;
}

.landing-passage-modal {
  position: fixed;
  z-index: 6000;
  top: 50%;
  left: 50%;
  width: min(700px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
}

body.passage-picker-is-open::before {
  content: "";
  position: fixed;
  z-index: 5999;
  inset: 0;
  background: rgba(11, 22, 34, 0.52);
}

@media only screen and (max-width: 820px) {
  .landing-main {
    width: min(680px, calc(100% - 28px));
    padding-top: 40px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-actions {
    margin-top: 6px;
  }

  .landing-feature-strip {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }
}

@media only screen and (max-width: 700px) {
  .landing-header-subtitle {
    display: none;
  }

  .landing-header-title {
    padding: 0 10px;
  }

  .landing-main {
    width: calc(100% - 24px);
    padding-top: 30px;
  }

  .landing-hero h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .landing-action-card {
    min-height: 78px;
    padding: 13px 14px;
  }

  .landing-passage-modal {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88vh;
    transform: none;
  }
}
