:root {
  color-scheme: light;
  --ink: #18211b;
  --muted: #5f6b63;
  --line: #dbe4dc;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --green: #204d38;
  --sage: #dfeadd;
  --gold: #c48b35;
  --clay: #8d4f3a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 78vh;
  padding: 24px;
  background:
    linear-gradient(115deg, rgba(32, 77, 56, 0.9), rgba(32, 77, 56, 0.5) 52%, rgba(251, 250, 245, 0.1)),
    url("/assets/study-hero.png");
  background-position: center;
  background-size: cover;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
}

.brand,
.login-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(24, 33, 27, 0.12);
}

.brand {
  padding: 10px 28px 10px 20px;
  font-weight: 800;
}

.login-link {
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
  max-width: 1120px;
  min-height: calc(78vh - 88px);
  margin: 0 auto;
  padding: 64px 0 32px;
}

.hero-copy {
  max-width: 680px;
  color: #fffdf8;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 20px;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
}

.primary {
  border: 0;
  background: #fffdf8;
  color: var(--green);
  cursor: pointer;
}

dialog {
  width: min(92vw, 650px);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
}

dialog::backdrop { background: rgba(12, 27, 18, 0.72); }

#early-access-form { display: grid; gap: 18px; padding: 28px; }
.form-details { display: grid; gap: 18px; }
.form-details[hidden] { display: none; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { margin: 0; color: var(--green); font: 700 34px/1 Georgia, serif; }
.dialog-heading .eyebrow { margin-bottom: 8px; color: var(--clay); }
.dialog-close { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 32px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#early-access-form label, #early-access-form legend { font-size: 14px; font-weight: 700; }
#early-access-form input:not([type='radio']):not([type='checkbox']) { width: 100%; min-height: 44px; margin-top: 7px; border: 1px solid var(--line); border-radius: 5px; padding: 10px; font: inherit; }
#early-access-form fieldset { display: flex; gap: 22px; padding: 14px; border: 1px solid var(--line); }
#early-access-form fieldset legend { padding: 0 6px; }
.form-help { margin: -8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.consent { line-height: 1.5; }
.consent a { color: var(--green); text-decoration: underline; }
.form-error { margin: 0; color: #8b1e1e; }
.form-status { margin: 0; color: var(--green); font-weight: 700; line-height: 1.5; }
.received-status { font-size: 28px; line-height: 1.25; }
.submit-button { border: 0; background: var(--green); color: #fff; cursor: pointer; }
.submit-button:disabled { cursor: wait; opacity: 0.65; }

.secondary {
  border: 1px solid rgba(255, 253, 248, 0.6);
  color: #fffdf8;
}

.study-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 28px 80px rgba(12, 27, 18, 0.3);
  overflow: hidden;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.panel-top strong {
  color: var(--green);
}

.scripture-card {
  padding: 28px 24px 24px;
}

.reference {
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scripture-card h2 {
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: var(--sage);
}

.progress span {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.metric-row div {
  min-width: 0;
  padding: 18px 12px;
  text-align: center;
}

.metric-row div + div {
  border-left: 1px solid var(--line);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--green);
  font-size: 24px;
}

.metric-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: -18px auto 0;
  padding: 0 24px 64px;
}

.features article {
  min-height: 170px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.features h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.features p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.policy-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.policy-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.policy-hero {
  padding: 54px 0 34px;
}

.policy-hero h1 {
  margin-bottom: 16px;
  color: var(--green);
  font-size: clamp(42px, 7vw, 76px);
}

.policy-hero .lede {
  margin-bottom: 0;
  color: var(--muted);
}

.policy-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.policy-content h2 {
  color: var(--green);
  font-size: 22px;
}

.policy-content li,
.policy-content p {
  color: var(--muted);
  line-height: 1.7;
}

.policy-content {
  padding: 34px;
}

.policy-content h2 {
  margin-top: 36px;
  margin-bottom: 10px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .hero {
    padding: 16px;
  }

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

  .hero-grid {
    gap: 32px;
    padding-top: 56px;
  }

  .form-grid { grid-template-columns: 1fr; }

  .study-panel {
    max-width: 420px;
  }

  .features {
    margin-top: 0;
    padding: 20px 16px 48px;
  }

  .policy-nav,
  .policy-page {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 12px;
  }

  .login-link {
    padding: 10px 18px;
  }

  .brand {
    padding: 9px 22px 9px 16px;
  }

  h1 {
    font-size: 46px;
  }

  .lede {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .policy-nav {
    gap: 12px;
  }

  .policy-content {
    padding: 22px;
  }
}
