/* =========================================================================
   Landing hero, the composer, the conversation, and verse cards.
   ========================================================================= */

/* ---- Hero --------------------------------------------------------------- */
.hero {
  max-width: var(--maxw); margin: clamp(2rem, 7vw, 5rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem); text-align: center;
}
.hero .eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 3.7rem); line-height: 1.05; margin-bottom: 1.1rem;
  letter-spacing: -0.025em;
}
.hero h1 .soft { color: var(--ink-soft); }
.hero .sub {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-soft);
  max-width: 32rem; margin: 0 auto 2rem; line-height: 1.55;
}

/* ---- Composer ----------------------------------------------------------- */
.composer {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .6rem .6rem .6rem 1.1rem; display: flex; align-items: flex-end; gap: .6rem;
  transition: box-shadow .25s, border-color .25s;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.composer textarea {
  flex: 1; border: 0; background: transparent; resize: none; color: var(--ink);
  font: inherit; font-size: 1.05rem; line-height: 1.5; padding: .55rem 0; max-height: 12rem;
}
.composer textarea::placeholder { color: var(--ink-faint); }
.composer textarea:focus { outline: none; }
.composer .send {
  flex-shrink: 0; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer;
  display: grid; place-items: center; transition: transform .12s, box-shadow .2s, opacity .2s;
}
.composer .send:hover { box-shadow: 0 6px 16px var(--ring); }
.composer .send:disabled { opacity: .4; cursor: default; }
.composer .send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.composer-hint {
  text-align: center; color: var(--ink-faint); font-size: .82rem; margin-top: .9rem;
}

/* ---- Example prompts ---------------------------------------------------- */
.prompt-chips {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin-top: 1.8rem;
}
.prompt-chips button {
  font: inherit; font-size: .88rem; cursor: pointer; text-align: left;
  color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--border-soft);
  padding: .5rem .9rem; border-radius: 999px; transition: transform .12s, color .2s, border-color .2s;
}
.prompt-chips button:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center;
  margin: 3.4rem auto 0; max-width: 40rem; color: var(--ink-faint); font-size: .86rem;
}
.trust-row div { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---- Conversation ------------------------------------------------------- */
.thread { max-width: var(--maxw); margin: 2rem auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.thread-head { margin-bottom: 1.6rem; }
.thread-head a { color: var(--ink-faint); text-decoration: none; font-size: .88rem; }
.thread-head a:hover { color: var(--accent); }
.mode-tag {
  display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px;
  padding: .2rem .6rem; margin-top: .6rem;
}

.turn { margin-bottom: 1.7rem; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.turn-user .bubble {
  background: var(--accent); color: var(--accent-ink);
  padding: .85rem 1.15rem; border-radius: var(--radius) var(--radius) 4px var(--radius);
  display: inline-block; max-width: 85%; margin-left: auto; box-shadow: var(--shadow);
}
.turn-user { text-align: right; }

.turn-assistant .reflection {
  font-family: var(--serif); font-size: 1.14rem; line-height: 1.62; color: var(--ink);
}
.turn-assistant .reflection p { margin-bottom: .85rem; }

/* ---- Verse cards -------------------------------------------------------- */
.verses { margin-top: 1.2rem; display: grid; gap: .8rem; }
.verse-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--verse-bar);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; box-shadow: var(--shadow);
}
.verse-card .ref {
  font-family: var(--display-font); font-weight: 640; color: var(--ink);
  font-size: .98rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.verse-card .translation { font-size: .72rem; color: var(--ink-faint); font-weight: 500; letter-spacing: .05em; }
.verse-card blockquote {
  font-family: var(--serif); font-size: 1.06rem; line-height: 1.55; color: var(--ink-soft);
  margin: .5rem 0 0; font-style: italic;
}
.verse-card .why {
  margin-top: .7rem; font-size: .8rem; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: .4rem;
}
.verse-card .why::before { content: "why this"; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; color: var(--accent); font-size: .68rem; }

.ungrounded-note {
  margin-top: 1rem; font-size: .86rem; color: var(--ink-faint);
  border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .7rem .9rem;
}

/* ---- Crisis card -------------------------------------------------------- */
.crisis {
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow); margin-top: .6rem;
}
.crisis h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--ink); }
.crisis ul { list-style: none; display: grid; gap: .6rem; margin-top: .8rem; }
.crisis li { display: grid; }
.crisis .res-label { font-weight: 640; color: var(--ink); }
.crisis .res-detail { color: var(--ink-soft); font-size: .92rem; }

/* ---- Community finder --------------------------------------------------- */
.community { margin-top: 1.1rem; display: grid; gap: .9rem; }
.community-links { display: grid; gap: .6rem; }
.community-link {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--verse-bar);
  border-radius: var(--radius-sm); padding: .85rem 1.05rem; box-shadow: var(--shadow);
  transition: transform .12s, border-color .2s;
}
.community-link:hover { transform: translateY(-1px); border-color: var(--accent); }
.cl-name { display: block; font-weight: 640; color: var(--ink); }
.cl-note { display: block; margin-top: .2rem; font-size: .88rem; color: var(--ink-soft); }

.community-guide {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: .3rem .95rem;
}
.community-guide summary {
  cursor: pointer; font-weight: 600; color: var(--ink); padding: .55rem 0;
  font-size: .95rem; list-style-position: inside;
}
.community-guide[open] summary { margin-bottom: .3rem; }
.community-guide ul { margin: 0 0 .7rem 1.1rem; display: grid; gap: .4rem; }
.community-guide li { color: var(--ink-soft); font-size: .93rem; line-height: 1.45; }
.community-guide.flags summary { color: var(--accent); }
.flag-foot { color: var(--ink-faint); font-size: .86rem; font-style: italic; margin: 0 0 .6rem; }

/* ---- Follow-up composer at the foot of a thread ------------------------- */
.thread .composer { margin-top: 2rem; }
