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

/* Header width matches the main landing-page content */
.landing-header-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
}

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

.landing-header-logo {
  flex: 0 0 auto;
  width: auto;
  height: 40px;
  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-login-column {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

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

.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;
  }
}

/* Header preferences action */
.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preferences-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(18, 63, 124, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #123f7c;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.preferences-header-button:hover {
  border-color: #2f9ae0;
  background: #fff;
}

.preferences-header-button:focus-visible {
  outline: 2px solid #2f9ae0;
  outline-offset: 2px;
}

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

  .preferences-header-button {
    width: 36px;
    padding: 0;
  }
}

/* ==========================================================================
   Verse of the Day Modal
   ========================================================================== */

.verse-of-day-modal {
  position: fixed;
  z-index: 7000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 22, 34, 0.58);
}

.verse-of-day-modal.is-open {
  display: flex;
}

.verse-of-day-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(112, 138, 163, 0.4);
  border-radius: 16px;
  background:
    linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)),
    url("../img/wedding-paper.jpg") center / cover;
  box-shadow: 0 24px 70px rgba(9, 25, 43, 0.28);
  color: #172033;
  text-align: center;
}

.verse-of-day-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #536477;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.verse-of-day-close:hover {
  color: #123f7c;
}

.verse-of-day-holiday {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d44b8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.verse-of-day-dialog h2 {
  color: #142239;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.verse-of-day-status {
  margin: 24px 0 0;
  color: #607184;
  font-size: 0.95rem;
}

.verse-of-day-status.is-error {
  color: #a12a2a;
}

.verse-of-day-content {
  margin-top: 24px;
}

.verse-of-day-reference {
  margin: 0;
  color: #1d44b8;
  font-family: "Libre Baskerville", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.verse-of-day-text {
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  color: #26384d;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  line-height: 1.75;
}

.verse-of-day-version {
  margin: 18px 0 0;
  color: #6c7a89;
  font-size: 0.78rem;
}

.verse-of-day-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.verse-of-day-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.verse-of-day-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.verse-of-day-button-primary {
  border: 1px solid #123f7c;
  background: linear-gradient(180deg, #123f7c 0%, #072d61 100%);
  color: #fff;
}

.verse-of-day-button-secondary {
  border: 1px solid #9db1c5;
  background: #fff;
  color: #123f7c;
}

.verse-of-day-button-plain {
  border: 1px solid transparent;
  background: transparent;
  color: #536477;
}

.verse-of-day-button:not(:disabled):hover {
  transform: translateY(-1px);
}

body.verse-of-day-is-open {
  overflow: hidden;
}

@media only screen and (max-width: 600px) {
  .verse-of-day-modal {
    align-items: flex-end;
    padding: 0;
  }

  .verse-of-day-dialog {
    width: 100%;
    max-height: 90vh;
    padding: 34px 20px 24px;
    border-radius: 16px 16px 0 0;
  }

  .verse-of-day-actions {
    flex-direction: column;
  }

  .verse-of-day-button {
    width: 100%;
  }
}

