/* ==========================================================
   JOURNA :: THE OPENING PAGES OF A VOYAGE
   The public home page, the Welcome and the sign-in pages: no feature grid, no pricing table, no screenshots above the fold.
   ========================================================== */

body.public { background: var(--page); }
/* A public page that belongs to an activity (the Worlds, search, a journey) has its bar at the foot: room is kept for it. */
body.public.has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
.public-main { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) 3rem; }
.public-foot { text-align: center; color: var(--ink-faint); font-size: .9rem; padding: 2rem var(--gutter) 3rem; }
.public-foot a { color: var(--ink-soft); margin-left: .35em; }
.public-foot a { color: var(--ink-soft); margin-left: .35em; }

/* The hero: feel the idea before the product. */
.hero { min-height: min(78vh, 46rem); display: grid; place-items: center; text-align: center; padding: 3rem 0; position: relative; }
.hero-lines { font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.6; max-width: 36rem; margin: 0 auto 2rem; }
.hero-lines strong { display: block; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.15; margin-bottom: 1rem; font-weight: 600; }
.hero-lines .last { display: block; margin-top: 1.2rem; color: var(--ink); }
.hero .btn.primary { font-size: 1.1rem; padding: .9rem 1.8rem; }
.hero-strand { position: absolute; inset: auto 0 0; height: 120px; opacity: .55; pointer-events: none; }

.chapter { max-width: 44rem; margin: 0 auto; padding: 3.5rem 0; border-top: 1px solid var(--line); }
.chapter h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 1rem; }
.chapter p { font-size: 1.15rem; }
.chapter .verse p { margin: 0 0 .35rem; }
.chapter .pull-quote { font-style: italic; color: var(--legacy); font-size: 1.25rem; border-left: 3px solid var(--navigator); padding-left: 1rem; margin: 1.5rem 0; }

/* Grandfather ↓ Identity ↓ Self Worth ↓ Daughter */
.strand-list { list-style: none; padding: 0; margin: 2rem 0; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.strand-list li { font-size: 1.2rem; padding: .35rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); }
.strand-list li + li::before { content: ""; display: block; width: 2px; height: 1.2rem; background: var(--legacy-3); margin: -1.6rem auto .5rem; }

/* The horizon, beyond the knot */
.horizon-band { position: relative; height: 15rem; border-radius: var(--radius); background: var(--horizon-gradient-dawn); overflow: hidden; margin: 1.5rem 0; }
.horizon-band::after { content: ""; position: absolute; left: 0; right: 0; top: 64%; height: 1px; background: var(--horizon-line); opacity: .6; }
.horizon-band span { position: absolute; font-style: italic; color: #FDF8EF; text-shadow: 0 1px 8px rgba(8, 24, 36, .5); }
.horizon-band span.far { opacity: .55; filter: blur(.6px); font-size: .95rem; }
.horizon-band span.mid { opacity: .8; }
.horizon-band span.near { color: #4A3320; text-shadow: none; font-weight: 600; }
@media (prefers-color-scheme: dark) { .horizon-band { background: var(--horizon-gradient-night); } .horizon-band span.near { color: var(--horizon-night-light-beacon); } }

.win-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.win-list li { padding: .45rem 0; font-size: 1.15rem; border-bottom: 1px dashed var(--line); }

/* ----- The Welcome ----- */
.welcome { max-width: 38rem; margin: 6vh auto 0; text-align: center; }
.welcome .lines p { font-size: 1.25rem; margin: 0 0 .6rem; }
.welcome .lines p.lead-line { font-size: clamp(1.6rem, 4.6vw, 2.2rem); margin-bottom: 1.4rem; }
.paths { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 900px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path-card {
  display: flex; flex-direction: column; gap: .8rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  color: var(--ink); text-decoration: none;
}
.path-card:hover, .path-card:focus-visible { box-shadow: var(--horizon-card-shadow-focus); border-color: var(--horizon-card-focus-border); }
.path-card h2 { font-size: 1.3rem; margin: 0; }
.path-card .lines { color: var(--ink-soft); font-size: 1rem; white-space: pre-line; flex: 1; }
.path-card .go { font-weight: 600; color: var(--navigator-ink); }

.conversation { max-width: 40rem; margin: 2rem auto; }
.journa-says { font-size: 1.25rem; white-space: pre-line; margin: 0 0 1.2rem; }
.journa-says::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--navigator); margin-right: .6rem; vertical-align: .15rem; }
.said { color: var(--ink-soft); border-left: 3px solid var(--line-strong); padding-left: .9rem; margin: 0 0 1.4rem; white-space: pre-line; }
.suggest-names { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 1.2rem; padding: 0; list-style: none; }
.suggest-names button { font: 1rem var(--serif); padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.suggest-names button[aria-pressed="true"] { background: var(--horizon-card-focus-bg); border-color: var(--horizon-card-focus-border); }
.suggest-names .why { display: block; font-size: .8rem; color: var(--ink-faint); }

.tiny-knot { display: block; margin: 2rem auto; width: 220px; height: 220px; }
.auth { max-width: 26rem; margin: 6vh auto; }
.auth h1 { font-size: 1.8rem; }
.or { text-align: center; color: var(--ink-faint); margin: 1rem 0; font-family: var(--sans); font-size: .9rem; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-family: var(--sans) !important; }
.horizon-band span.far { top: 16%; left: 14%; }
.horizon-band span.mid { top: 32%; left: 62%; }
.horizon-band span.mid.two { top: 46%; left: 20%; }
.horizon-band span.near { top: 70%; left: 44%; font-size: 1.15rem; }
