.welcome-shell {
  overflow: hidden auto;
  background: #f6eddc;
}

.welcome-screen {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-cream-100);
}

.native-welcome-screen {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden auto;
  background: var(--color-cream-50);
}

.native-welcome-hero {
  aspect-ratio: 703 / 821;
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0) 78%, var(--color-cream-50) 100%),
    url("../assets/page1-login-cinematic.jpg") center top / cover no-repeat;
}

.native-welcome-actions {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  background: var(--color-cream-50);
}

.native-welcome-actions .welcome-primary {
  gap: var(--space-3);
  min-height: clamp(3.65rem, 14vw, 4.2rem);
  font-size: clamp(1.08rem, 5vw, 1.36rem);
}

.native-welcome-actions .welcome-secondary {
  min-height: clamp(3.4rem, 13vw, 3.9rem);
  border: 1px solid rgba(33, 69, 53, 0.24);
  background: rgba(255, 250, 240, 0.72);
  color: var(--color-forest-900);
  font-size: clamp(1rem, 4.5vw, 1.24rem);
  font-weight: 800;
}

.native-welcome-actions .signin-note {
  margin: var(--space-1) 0 0;
}

.signin-note button {
  border: 0;
  background: transparent;
  color: var(--color-forest-700);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.reference-welcome {
  height: 100%;
  box-shadow: 0 0 4rem rgba(24, 53, 41, 0.12);
}

.welcome-hotspot {
  position: absolute;
  z-index: 3;
  left: 9%;
  width: 82%;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.welcome-hotspot:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.88);
  outline-offset: 3px;
}

.begin-hotspot {
  top: 79.7%;
  height: 5.9%;
}

.bible-hotspot {
  top: 87.3%;
  height: 5.8%;
}

.signin-hotspot {
  top: 95.1%;
  height: 3.5%;
}

.welcome-content {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: center;
  width: min(100%, var(--content-max));
  padding: clamp(5.2rem, 13svh, 7rem) var(--space-6) 0;
  text-align: center;
}

.welcome-logo {
  display: grid;
  grid-template-areas: "mark";
  justify-items: center;
  width: 6.25rem;
  height: 5.5rem;
  margin: 0 auto var(--space-2);
  color: var(--color-forest-900);
}

.welcome-logo svg {
  grid-area: mark;
}

.welcome-logo svg:nth-child(1) {
  width: 2.3rem;
  height: 3.2rem;
  align-self: start;
  margin-top: 0.6rem;
  stroke-width: 2.8;
}

.welcome-logo svg:nth-child(2) {
  width: 5.8rem;
  height: 4.25rem;
  align-self: start;
  transform: translateY(-0.15rem);
  stroke-width: 1.8;
}

.welcome-logo svg:nth-child(3) {
  width: 4.9rem;
  height: 2rem;
  align-self: end;
  stroke-width: 2;
}

.welcome-content h1,
.screen-header h1 {
  margin: var(--space-3) 0 var(--space-3);
  color: var(--color-forest-950);
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.welcome-content h1 {
  display: grid;
  gap: 0;
  margin: 0;
  color: var(--color-forest-900);
  font-size: clamp(4.2rem, 19vw, 6.8rem);
  line-height: 0.9;
  text-shadow: 0 0.08rem 0 rgba(255, 250, 240, 0.62);
}

.welcome-content h1 span:last-child {
  font-size: 0.54em;
  line-height: 1.05;
}

.welcome-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  align-items: center;
  width: min(100%, 19rem);
  margin: var(--space-4) auto var(--space-3);
  color: var(--color-forest-900);
}

.welcome-divider::before,
.welcome-divider::after {
  height: 1px;
  background: rgba(33, 69, 53, 0.32);
  content: "";
}

.welcome-divider span {
  display: grid;
  place-items: center;
}

.welcome-divider svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.2;
}

.mission {
  max-width: 24rem;
  margin: 0 auto;
  color: #0f2a21;
  font-size: clamp(1.22rem, 5.1vw, 1.75rem);
  font-weight: 800;
  line-height: 1.34;
  text-shadow: 0 0.08rem 0.8rem rgba(255, 250, 240, 0.72);
}

.welcome-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  width: min(calc(100% - 2rem), 27rem);
  margin-bottom: max(var(--space-4), env(safe-area-inset-bottom));
  padding: var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid rgba(239, 224, 189, 0.8);
  border-radius: 2rem 2rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.91));
  box-shadow: 0 -0.6rem 2.4rem rgba(24, 53, 41, 0.16);
  backdrop-filter: blur(10px);
}

.welcome-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(33, 69, 53, 0.13);
}

.welcome-benefits article {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  min-width: 0;
  padding: 0 var(--space-2);
  text-align: center;
}

.welcome-benefits article + article {
  border-left: 1px solid rgba(33, 69, 53, 0.14);
}

.welcome-benefits article > span {
  display: grid;
  place-items: center;
  width: clamp(3.1rem, 13vw, 4rem);
  height: clamp(3.1rem, 13vw, 4rem);
  border-radius: 50%;
  background: var(--color-sage-100);
  color: var(--color-forest-900);
}

.welcome-benefits article > span svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke-width: 2.2;
}

.welcome-benefits strong {
  color: #101813;
  font-size: clamp(0.78rem, 3.1vw, 1rem);
  line-height: 1.15;
}

.welcome-benefits p {
  margin: 0;
  color: #101813;
  font-size: clamp(0.73rem, 2.8vw, 0.92rem);
  line-height: 1.28;
}

.welcome-actions {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.welcome-primary {
  gap: var(--space-3);
  min-height: 4.05rem;
  font-size: clamp(1.05rem, 4.5vw, 1.35rem);
}

.welcome-primary svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2.4;
}

.welcome-secondary {
  min-height: 3.65rem;
  border: 1px solid rgba(33, 69, 53, 0.24);
  background: rgba(255, 250, 240, 0.42);
  color: var(--color-forest-900);
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  font-weight: 800;
}

.signin-note {
  margin: var(--space-5) 0 0;
  color: #101813;
  font-size: clamp(0.9rem, 3.6vw, 1.08rem);
  line-height: 1.35;
  text-align: center;
}

.signin-note span {
  color: var(--color-forest-700);
  font-weight: 850;
}

.flow-shell {
  background:
    linear-gradient(180deg, rgba(249, 220, 163, 0.35), rgba(255, 250, 240, 0) 15rem),
    var(--color-cream-100);
}

.intro-shell {
  background: var(--color-cream-100);
}

.intro-screen {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--color-cream-100);
}

.intro-hero {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(17rem, 35%, 20rem);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0) 62%, rgba(248, 239, 217, 0.62) 100%),
    url("../assets/intro-hero-only.png") center top / cover no-repeat;
}

.intro-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-4);
  margin: clamp(15rem, 32%, 18rem) var(--space-4) 0;
  padding: var(--space-6) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
  border: 1px solid rgba(239, 224, 189, 0.86);
  border-radius: 2rem 2rem 0 0;
  background: rgba(255, 250, 240, 0.97);
  box-shadow: 0 -0.8rem 2.5rem rgba(24, 53, 41, 0.12);
}

.intro-logo {
  display: grid;
  grid-template-areas: "mark";
  justify-self: center;
  place-items: center;
  width: 4.4rem;
  height: 3.6rem;
  margin-top: -3.4rem;
  color: var(--color-forest-900);
}

.intro-logo svg {
  grid-area: mark;
}

.intro-logo svg:first-child {
  width: 2rem;
  height: 2.75rem;
  transform: translateY(-0.1rem);
  stroke-width: 2.7;
}

.intro-logo svg:last-child {
  width: 3.75rem;
  height: 1.65rem;
  transform: translateY(1.25rem);
  stroke-width: 2;
}

.intro-header {
  display: grid;
  justify-items: center;
  text-align: center;
}

.intro-header h1,
.account-form h2 {
  margin: 0;
  color: var(--color-forest-900);
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 8.4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-header .welcome-divider {
  width: 76%;
  margin: var(--space-3) auto;
}

.intro-header p {
  margin: 0;
  color: #101813;
  font-size: clamp(0.98rem, 3.9vw, 1.18rem);
  line-height: 1.38;
}

.intro-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(33, 69, 53, 0.1);
  border-bottom: 1px solid rgba(33, 69, 53, 0.1);
}

.intro-benefits article {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  min-width: 0;
  padding: 0 var(--space-1);
  color: #101813;
  text-align: center;
}

.intro-benefits article + article {
  border-left: 1px solid rgba(33, 69, 53, 0.12);
}

.intro-benefits span {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: var(--color-sage-100);
  color: var(--color-forest-900);
}

.intro-benefits svg {
  width: 1.45rem;
  height: 1.45rem;
}

.intro-benefits strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.account-form {
  display: grid;
  gap: var(--space-3);
}

.account-form h2 {
  margin-bottom: var(--space-1);
  text-align: center;
}

.account-form label {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  min-height: 3.3rem;
  padding: 0 var(--space-4);
  border: 1px solid rgba(33, 69, 53, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 240, 0.76);
  color: rgba(16, 24, 19, 0.42);
}

.account-form label span {
  display: grid;
  place-items: center;
}

.account-form label svg {
  width: 1.25rem;
  height: 1.25rem;
}

.account-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101813;
  font: inherit;
  font-size: 1rem;
}

.account-form input::placeholder {
  color: rgba(16, 24, 19, 0.45);
}

.create-account-button {
  gap: var(--space-3);
  min-height: 3.55rem;
  margin-top: var(--space-2);
  font-size: 1.08rem;
}

.intro-secondary {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}

.intro-secondary > span {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  color: rgba(16, 24, 19, 0.5);
}

.intro-secondary > span::before,
.intro-secondary > span::after {
  height: 1px;
  background: rgba(33, 69, 53, 0.12);
  content: "";
}

.intro-secondary > span::after {
  content: "";
}

.intro-secondary > span {
  column-gap: var(--space-4);
}

.intro-secondary > span::before {
  content: "";
}

.intro-secondary > span {
  font-size: var(--text-sm);
}

.intro-secondary > span::after {
  display: block;
}

.intro-secondary p {
  margin: 0;
  color: #101813;
  text-align: center;
}

.intro-secondary button {
  border: 0;
  background: transparent;
  color: var(--color-forest-700);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.native-intro-screen {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: linear-gradient(180deg, var(--color-cream-50), var(--color-cream-100));
}

.native-intro-hero {
  position: relative;
  aspect-ratio: 852 / 1144;
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0) 78%, var(--color-cream-50) 100%),
    url("../assets/heroes/rooted-hero-intro-v2.png") center top / cover no-repeat;
}

/* Back arrow chip floating over the hero (top-left).
   Kept subtle — a white circle with a forest-green stroke inside
   the safe-area, matching the mockup. */
.intro-back-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 0.85rem);
  left: 0.85rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-forest-900);
  box-shadow: 0 6px 14px -8px rgba(24, 53, 41, 0.4);
  cursor: pointer;
}
.intro-back-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-back-btn:active { transform: translateY(1px); }

/* The account panel overlaps the bottom of the hero, matching the
   mockup's rounded cream sheet that starts under the illustration. */
.intro-account-panel {
  position: relative;
  z-index: 2;
  margin-top: -3.75rem;
  padding-top: 2.75rem;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  background: var(--color-cream-50);
  box-shadow: 0 -18px 32px -20px rgba(24, 53, 41, 0.18);
}

/* Rooted in Christ logo — shared img element used for the Create
   Account emblem, the Bible header brand mark, and anywhere else a
   small mark is needed. The PNG is pre-processed to a transparent
   background so it drops cleanly onto any surface (cream panel, hero
   illustration, or dark forest background). */
.rooted-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-emblem-img {
  display: block;
  width: 3.35rem;
  height: 3.35rem;
  margin: 0 auto 0.9rem;
  object-fit: contain;
}

/* Rooted emblem — small forest-green tree-in-book mark on the
   panel above the welcome headline. */
.intro-emblem {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  margin: 0 auto 0.9rem;
  color: var(--color-forest-900);
}
.intro-emblem svg {
  width: 2.55rem;
  height: 2.55rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.intro-welcome {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  margin: 0 0 0.6rem;
  color: var(--color-forest-900);
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
}
.intro-welcome-eyebrow {
  font-size: clamp(1.55rem, 6.6vw, 1.85rem);
}
.intro-welcome-brand {
  font-size: clamp(2rem, 8.4vw, 2.35rem);
  letter-spacing: 0.005em;
}

.intro-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  max-width: 18rem;
  margin: 0.35rem auto 1.1rem;
}
.intro-divider-rule {
  height: 1px;
  background: rgba(33, 69, 53, 0.22);
}
.intro-divider-sprig {
  display: inline-flex;
  color: var(--color-forest-700);
}
.intro-divider-sprig svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.intro-description {
  max-width: 22rem;
  margin: 0 auto 1.35rem;
  color: #202b23;
  font-size: clamp(0.98rem, 3.9vw, 1.06rem);
  line-height: 1.5;
  text-align: center;
}

/* Four value-prop icon tiles under the description. */
.intro-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  align-items: start;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}
.intro-value {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0;
  text-align: center;
}
.intro-value-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(197, 219, 175, 0.55);
  color: var(--color-forest-900);
}
.intro-value-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-value-label {
  color: #101813;
  font-size: clamp(0.78rem, 3.1vw, 0.85rem);
  font-weight: 700;
  line-height: 1.15;
}

.intro-form-heading {
  margin: 0.25rem 0 0.85rem;
  color: var(--color-forest-900);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5.6vw, 1.55rem);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Pill inputs with a prefix icon (person / mail / lock) and an
   optional trailing toggle (eye for password). */
.intro-pill-form {
  gap: 0.7rem;
}
.intro-field {
  position: relative;
  display: block;
  margin: 0;
}
.intro-field .intro-field-icon {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  z-index: 1;
  display: inline-flex;
  color: #6f6559;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
.intro-field .intro-field-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-field input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0 1.1rem 0 3.4rem;
  border: 1px solid rgba(33, 69, 53, 0.18);
  border-radius: var(--radius-pill);
  outline: 0;
  background: rgba(255, 250, 240, 0.92);
  color: #101813;
  font: inherit;
  font-size: 1.02rem;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.intro-field input::placeholder {
  color: #a29a8b;
}
.intro-field input:focus {
  border-color: rgba(33, 69, 53, 0.62);
  box-shadow:
    0 0 0 0.22rem rgba(197, 219, 175, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.intro-field-with-toggle input { padding-right: 3rem; }
.intro-field-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7c7365;
  transform: translateY(-50%);
  cursor: pointer;
}
.intro-field-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-primary-cta {
  margin-top: 0.55rem;
}

/* "OR" divider between the primary CTA and the sign-in link. */
.intro-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0.55rem;
}
.intro-or-rule {
  height: 1px;
  background: rgba(33, 69, 53, 0.16);
}
.intro-or-label {
  color: #6b6558;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.intro-signin-line {
  margin: 0.15rem 0 1rem;
}
.intro-signin-line button {
  padding-left: 0.35rem;
  color: var(--color-forest-800);
}

/* ---------------- Beginner Welcome ("I'm New to the Bible") ---------------- */
/* Cinematic sunrise-over-village hero — a peaceful path leading toward
   an open door at sunset. Fades into the cream panel below. */
.beginner-hero {
  aspect-ratio: 852 / 1144;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0) 78%, var(--color-cream-50) 100%),
    url("../assets/heroes/rooted-hero-beginner-v1.png") center top / cover no-repeat;
}
.beginner-panel { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }

.beginner-body {
  margin: 0 auto 1.6rem;
  max-width: 24rem;
  color: #202b23;
  font-size: clamp(0.98rem, 3.9vw, 1.06rem);
  line-height: 1.6;
  text-align: center;
}

.beginner-question {
  margin: 0 0 1.1rem;
  padding: 0;
  border: none;
}
.beginner-question-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  padding: 0;
  color: var(--color-forest-900);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.02rem, 4.2vw, 1.12rem);
  line-height: 1.3;
}
.beginner-question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--color-forest-900);
  color: var(--color-cream-50);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.beginner-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.beginner-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.beginner-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(33, 69, 53, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.94);
  color: var(--color-forest-950);
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.beginner-option:active { transform: scale(0.99); }
.beginner-option.is-active {
  border-color: var(--color-forest-800);
  background: rgba(224, 234, 214, 0.75);
}
.beginner-options-grid .beginner-option {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 0.5rem;
  min-height: 5.5rem;
  text-align: center;
}
.beginner-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(197, 219, 175, 0.6);
  color: var(--color-forest-900);
}
.beginner-option-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.beginner-option-label {
  flex: 1;
  min-width: 0;
  color: var(--color-forest-950);
  font-weight: 600;
  line-height: 1.25;
}
.beginner-options-grid .beginner-option-label { font-size: 0.9rem; }
.beginner-option-badge {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--color-forest-900);
  color: var(--color-cream-50);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.beginner-option-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--color-forest-900);
  color: var(--color-cream-50);
  margin-left: auto;
}
.beginner-options-grid .beginner-option-tick {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  margin-left: 0;
}
.beginner-option-tick svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beginner-panel .intro-primary-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.beginner-reassure {
  margin: 0.8rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.native-account-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  background: var(--color-cream-50);
}

.native-account-form {
  display: grid;
  gap: var(--space-3);
}

.native-account-form label {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  align-items: stretch;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-forest-900);
}

.native-account-form label > span {
  display: block;
  padding-left: var(--space-2);
  color: var(--color-forest-800);
  font-size: clamp(0.82rem, 3.4vw, 0.95rem);
  font-weight: 750;
  line-height: 1.2;
}

.native-account-form input {
  width: 100%;
  min-height: clamp(3.2rem, 13vw, 3.65rem);
  padding: 0 var(--space-4);
  border: 1px solid rgba(33, 69, 53, 0.18);
  border-radius: var(--radius-pill);
  outline: 0;
  background: rgba(255, 250, 240, 0.92);
  color: #101813;
  font: inherit;
  font-size: clamp(1rem, 4.2vw, 1.12rem);
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Build 2 Issue 3 — Create Account inputs use icon-prefixed fields
   (.intro-field wraps each input with an absolutely-positioned icon at
   left: 1.1rem). The generic .native-account-form input rule above set
   padding-left: 1rem which visually overlapped the icon on every field.
   This override restores the icon-column padding (3.4rem left) and the
   password-toggle right padding. Specificity: two classes on the same
   ancestor > the single-class rule above. */
.native-account-form .intro-field input {
  padding-left: 3.4rem;
  padding-right: 1.1rem;
}
.native-account-form .intro-field-with-toggle input {
  padding-right: 3rem;
}

.native-account-form input:focus {
  border-color: rgba(33, 69, 53, 0.62);
  box-shadow:
    0 0 0 0.22rem rgba(197, 219, 175, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.native-account-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(140, 52, 45, 0.55);
}

.native-account-form input:-webkit-autofill {
  -webkit-text-fill-color: #101813;
  box-shadow: 0 0 0 1000px rgba(255, 250, 240, 0.96) inset;
}

.native-account-form .create-account-button {
  gap: var(--space-3);
  min-height: clamp(3.45rem, 14vw, 3.9rem);
  margin-top: var(--space-2);
  font-size: clamp(1.04rem, 4.8vw, 1.22rem);
}

.native-account-secondary {
  margin: var(--space-1) 0 0;
  color: #101813;
  font-size: clamp(0.98rem, 4vw, 1.08rem);
  line-height: 1.4;
  text-align: center;
}

.native-account-secondary button {
  border: 0;
  background: transparent;
  color: var(--color-forest-700);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

/* Sign-In-only: a soft ghost "Forgot Password" link that sits inside
   the native form panel without competing with the primary CTA. */
.native-account-forgot {
  align-self: center;
  margin-top: 0.25rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--color-forest-700);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
}
.native-account-forgot:active { transform: translateY(1px); }

.onboarding-shell {
  background: var(--color-cream-100);
}

.onboarding-screen {
  position: relative;
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--color-cream-100);
}

.onboarding-hero {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(16rem, 31svh, 19rem);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.02), rgba(255, 250, 240, 0) 62%, rgba(248, 239, 217, 0.72) 100%),
    url("../assets/onboarding-hero-only.png") center top / cover no-repeat;
}

.onboarding-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  margin: clamp(13.5rem, 28%, 16rem) var(--space-4) 0;
  padding: var(--space-6) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
  border: 1px solid rgba(239, 224, 189, 0.86);
  border-radius: 2rem 2rem 0 0;
  background: var(--color-cream-50);
  box-shadow: 0 -0.8rem 2.5rem rgba(24, 53, 41, 0.12);
}

.flow-screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
}

.screen-header {
  padding-top: var(--space-3);
}

.onboarding-header {
  display: grid;
  justify-items: center;
  padding-top: 0;
  text-align: center;
}

.screen-header h1 {
  max-width: 20rem;
}

.onboarding-header h1 {
  max-width: 100%;
  margin-bottom: 0;
  color: var(--color-forest-900);
  font-size: clamp(2.1rem, 8.6vw, 3.3rem);
  line-height: 1.08;
}

.screen-header p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

.onboarding-header p {
  max-width: 24rem;
  color: #101813;
  font-size: clamp(1rem, 4vw, 1.35rem);
  line-height: 1.32;
}

.onboarding-header strong {
  margin-top: var(--space-3);
  color: var(--color-forest-900);
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
}

.topic-grid {
  display: grid;
  gap: var(--space-3);
}

.onboarding-panel .topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: var(--space-2);
  min-height: 10.85rem;
  padding: var(--space-3) var(--space-2);
  border: 1px solid rgba(189, 166, 122, 0.36);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.62);
  box-shadow: 0 0.45rem 1.2rem rgba(24, 53, 41, 0.035);
  color: #101813;
  cursor: pointer;
  text-align: center;
}

.topic-card.is-selected {
  border-color: rgba(33, 69, 53, 0.86);
  background: rgba(228, 234, 217, 0.92);
  box-shadow:
    0 0.65rem 1.35rem rgba(24, 53, 41, 0.1),
    inset 0 0 0 0.16rem rgba(33, 69, 53, 0.7);
  color: #101813;
}

.topic-art {
  display: grid;
  place-items: center;
  width: clamp(4.05rem, 17vw, 5rem);
  height: clamp(4.05rem, 17vw, 5rem);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.4);
}

.topic-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card strong {
  max-width: 7rem;
  font-size: clamp(0.82rem, 3.5vw, 1.1rem);
  line-height: 1.05;
}

.topic-card > span:not(.topic-art):not(.topic-check) {
  max-width: 7rem;
  font-size: clamp(0.72rem, 3vw, 0.95rem);
  line-height: 1.24;
}

.topic-check {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--color-forest-900);
  color: var(--color-cream-50);
}

.topic-check:empty {
  display: none;
}

.topic-check svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2.6;
}

.onboarding-reassurance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2);
  max-width: 26rem;
  margin: 0 auto;
  color: #101813;
  font-size: clamp(0.84rem, 3.45vw, 1rem);
  line-height: 1.28;
  text-align: center;
}

.onboarding-reassurance span {
  display: inline-grid;
  color: var(--color-forest-900);
}

.onboarding-reassurance svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.4;
}

.sticky-action {
  position: sticky;
  bottom: var(--space-4);
  margin-top: auto;
}

.onboarding-panel .sticky-action {
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
}

.onboarding-continue {
  gap: var(--space-4);
  min-height: 4.15rem;
  font-size: clamp(1.35rem, 5.2vw, 1.75rem);
}

.onboarding-continue:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.onboarding-continue > span {
  width: 0.85rem;
  height: 0.85rem;
  border-top: 0.18rem solid currentColor;
  border-right: 0.18rem solid currentColor;
  transform: rotate(45deg);
}

.app-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: var(--space-5) var(--space-4) calc(var(--tab-height) + var(--space-8));
}

@media (min-width: 42rem) {
  .welcome-content {
    padding-bottom: var(--space-12);
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screen {
    padding-inline: var(--space-8);
  }
}

/* Page 5 · Brief #001 · Journey Introduction Pattern 01 */
.journey-introduction-shell {
  overflow: hidden;
  background: #f7efe1;
}

.journey-introduction-screen {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #f7efe1;
  color: #24201a;
  font-family: "DM Sans", var(--font-sans);
}

.journey-introduction-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f7efe1;
}

.journey-introduction-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.journey-introduction-feather {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 360px;
  left: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(247, 239, 225, 0), rgba(247, 239, 225, 0.85), #f7efe1);
  pointer-events: none;
}

.journey-cream-sheet {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 360px;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 96px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  background: #f7efe1;
  box-shadow: inset 0 1px 0 rgba(36, 32, 26, 0.06), 0 -14px 30px -18px rgba(36, 32, 26, 0.3);
}

.journey-introduction-copy {
  display: grid;
  gap: 0;
}

.journey-introduction-eyebrow,
.journey-introduction-card-label {
  margin: 0;
  color: #3a7d44;
  font-family: "DM Sans", var(--font-sans);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.journey-introduction-copy h1 {
  margin: 2px 0 0;
  color: #1f3d2b;
  font-family: Fraunces, var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.journey-introduction-copy p:last-child {
  margin: 6px 0 0;
  color: #4f4a42;
  font-size: 12.5px;
  line-height: 1.5;
}

.journey-introduction-card {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(36, 32, 26, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.3));
}

.journey-introduction-card h2 {
  margin: 0;
  color: #1f3d2b;
  font-family: Fraunces, var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.journey-introduction-card blockquote {
  margin: 1px 0 0;
  color: #1f3d2b;
  font-family: Fraunces, var(--font-serif);
  font-size: 12.5px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.journey-introduction-card cite {
  margin-top: 0;
  color: #696158;
  font-family: "DM Sans", var(--font-sans);
  font-size: 10px;
  font-style: normal;
  line-height: 1.3;
}

.journey-introduction-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a7d44, #214535);
  box-shadow: 0 14px 28px rgba(24, 53, 41, 0.13);
  color: #fffaf0;
  cursor: pointer;
  font-family: "DM Sans", var(--font-sans);
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: 0;
}

.journey-introduction-cta:active {
  transform: translateY(1px);
}

/* Journey Introduction bottom nav now uses the Rooted `.home-bottom-tabs`
   + `.home-tab-button` classes for visual parity with Home / Bible /
   Prayer. The following override tightens the pill/backdrop just for
   this landing screen so the nav sits flush against the safe area. */
.journey-introduction-tabs.home-bottom-tabs {
  right: max(0px, calc((100vw - var(--app-width)) / 2));
  bottom: max(0px, env(safe-area-inset-bottom));
  left: max(0px, calc((100vw - var(--app-width)) / 2));
  z-index: 4;
  padding: 8px 0 20px;
  border: 0;
  border-top: 1px solid rgba(36, 32, 26, 0.08);
  border-radius: 0;
  background: rgba(247, 239, 225, 0.95);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.journey-cream-sheet [data-region="PrimaryAction"] {
  position: absolute;
  right: 24px;
  bottom: 82px;
  left: 24px;
}

/* Brief #001 QA fit correction: keep approved elements visible above bottom navigation. */
.journey-cream-sheet {
  gap: 8px;
}

.journey-introduction-copy h1 {
  font-size: 24px;
}

.journey-introduction-copy p:last-child {
  font-size: 11.5px;
  line-height: 1.35;
}

.journey-introduction-card {
  gap: 2px;
  padding: 9px 12px;
}

.journey-introduction-card h2 {
  font-size: 13px;
  line-height: 1.18;
}

.journey-introduction-card blockquote {
  font-size: 11.3px;
  line-height: 1.3;
}

.journey-introduction-card cite {
  font-size: 9px;
}
}

/* Build 2 Issue 6 — Forgot Password screen. Sits between Sign In and
   Home. Reuses the native intro-hero backdrop so it looks like part of
   the auth flow, adds a back arrow, and swaps between the request form
   and a success confirmation panel. */
.forgot-shell .forgot-back {
  position: absolute !important;
  top: max(1.15rem, env(safe-area-inset-top));
  left: 0.9rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.6rem !important;
  height: 2.6rem !important;
  min-width: 2.6rem !important;
  min-height: 2.6rem !important;
  max-width: 2.6rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(255, 250, 240, 0.92) !important;
  color: var(--color-forest-800) !important;
  box-shadow: 0 0.35rem 0.9rem rgba(24, 53, 41, 0.14);
  cursor: pointer;
  z-index: 5;
}
.forgot-shell .forgot-back svg { width: 1.15rem; height: 1.15rem; }
.forgot-title {
  margin: 0 0 0.35rem;
  color: var(--color-forest-900);
  font-family: var(--font-serif, "Fraunces", "Playfair Display", serif);
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  line-height: 1.1;
  text-align: center;
}
.forgot-body {
  margin: 0 0 1.15rem;
  color: rgba(24, 53, 41, 0.72);
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: center;
}
.forgot-error {
  margin: 0.1rem 0.1rem 0.25rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(140, 52, 45, 0.08);
  border: 1px solid rgba(140, 52, 45, 0.28);
  color: #7a2f28;
  font-size: 0.9rem;
  line-height: 1.4;
}
.forgot-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.forgot-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--color-forest-500), var(--color-forest-800));
  color: var(--color-cream-50);
  box-shadow: 0 0.7rem 1.6rem rgba(24, 53, 41, 0.22);
}
.forgot-success-mark svg { width: 1.6rem; height: 1.6rem; }
.forgot-success h2 {
  margin: 0;
  color: var(--color-forest-900);
  font-family: var(--font-serif, "Fraunces", "Playfair Display", serif);
  font-size: clamp(1.35rem, 5vw, 1.55rem);
}
.forgot-success p {
  margin: 0.1rem 0.25rem;
  color: rgba(24, 53, 41, 0.75);
  font-size: 0.98rem;
  line-height: 1.5;
}
.forgot-success-note {
  color: rgba(24, 53, 41, 0.55);
  font-size: 0.85rem;
}
.forgot-success .create-account-button {
  margin-top: 0.5rem;
  width: 100%;
}
