/* home.css — the homepage's own parts (design B, 19 Oct 2026), on top of fn.css.
 *
 * Everything else on the homepage (header, hero frame, cards, guides, signup, footer)
 * is fn.css. This file holds what only the homepage has: the inline concierge chat
 * box and its reply extras (home.js), the real-answer example, artist follow, the
 * testimonials. (The cookie banner moved to fn.css, 22 Oct 2026.)
 */

/* ── Hero: the chat box takes the wide column, the example answer the narrow one ── */
.home .hero h1 { max-width: 14ch; }
/* Four stats stacked would be taller than the headline and push the chat box down; 2×2 keeps it close. */
@media (min-width: 901px) {
  .home .hero > .wrap { grid-template-columns: minmax(0, 1fr) 300px; }
  .home .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
}
.home .hero-actions { align-items: start; }

/* ── Chat box ───────────────────────────────────────────────────────────── */
.chat-box {
  scroll-margin-top: calc(var(--header-h) + 16px);
  background: rgba(20, 20, 18, 0.94);
  border: 1px solid var(--green-soft); border-left: 3px solid var(--green);
}
.chat-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: live-ring 2s ease infinite;
}
@keyframes live-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}
.chat-label { font: 700 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.chat-live { margin-left: auto; font: 700 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }

/* Empty until the first message; then a scrolling transcript. */
.chat-msgs {
  display: flex; flex-direction: column; gap: 0;
  max-height: 0; overflow: hidden; background: var(--bg);
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.chat-msgs.active {
  max-height: 340px; overflow-y: auto; gap: 16px; padding: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.chat-msgs::-webkit-scrollbar { width: 3px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--green-soft); }

.msg { display: flex; gap: 10px; animation: msg-in 0.2s ease; }
.msg.user { flex-direction: row-reverse; }
@keyframes msg-in { from { opacity: 0; transform: translateY(4px); } }
.msg-av {
  flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.msg.assistant .msg-av { background: var(--green-wash); color: var(--green); border: 1px solid var(--green-soft); font: 12px/1 var(--serif); }
.msg.user .msg-av { background: rgba(201, 166, 107, 0.1); color: var(--gold); border: 1px solid rgba(201, 166, 107, 0.3); font: 600 9px/1 var(--sans); }
.msg-bub { max-width: 82%; padding: 12px 16px; font-size: 14px; line-height: 1.65; }
.msg.assistant .msg-bub { background: var(--surface); border: 1px solid var(--line-soft); }
.msg.user .msg-bub { background: rgba(201, 166, 107, 0.08); border: 1px solid rgba(201, 166, 107, 0.25); }
.msg-bub p { margin-bottom: 0.5em; }
.msg-bub p:last-child { margin-bottom: 0; }
.msg-bub ul, .msg-bub ol { margin: 0.4em 0 0.6em 1.2em; }
.msg-bub li { margin-bottom: 0.25em; }
.msg-bub strong { font-weight: 600; }
.msg-bub hr { border: 0; border-top: 1px solid var(--line); margin: 0.6em 0; }
.msg-bub a { color: var(--gold); text-underline-offset: 2px; }

.typing { display: flex; gap: 5px; align-items: center; padding: 4px 0; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-in { display: flex; gap: 12px; align-items: stretch; padding: 14px 16px; }
.chat-in input {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--line); outline: none;
  font-size: 17px;
}
.chat-in input:focus { border-color: var(--green); }
.chat-in input::placeholder { color: #7A7A76; }
.chat-in .btn { padding-inline: 26px; font-size: 12px; }
.chat-lang { padding: 0 16px 14px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.chat-lang b { color: var(--text-2); font-weight: 500; }
.chat-box + .chips { margin-top: 14px; }

/* Reply extras added by home.js: rating, refine chips, email-the-answer, insurance card. */
.concierge-feedback { display: flex; gap: 4px; align-items: center; margin-top: 10px; font-size: 11px; color: var(--muted); }
.concierge-feedback button {
  padding: 3px 7px; background: none; border: 1px solid transparent; border-radius: 100px;
  font-size: 13px; line-height: 1; cursor: pointer; opacity: 0.6; filter: grayscale(1);
}
.concierge-feedback button:hover:not(:disabled) { opacity: 1; filter: none; border-color: var(--line); }
.concierge-feedback button.picked { opacity: 1; filter: none; border-color: var(--green); }
.concierge-feedback button:disabled { cursor: default; }
.refine-chips, .email-capture { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 11px; color: var(--muted); }
.refine-chips button, .email-capture button {
  padding: 6px 12px; min-height: 32px; background: none; border: 1px solid var(--green-soft);
  font-size: 11px; color: var(--green); cursor: pointer; white-space: nowrap;
}
.refine-chips button:hover, .email-capture button:hover:not(:disabled) { border-color: var(--green); background: var(--green-wash); }
.email-capture button:disabled { opacity: 0.5; cursor: default; }
.email-capture input { width: 170px; padding: 6px 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; outline: none; }
.email-capture .ec-label { flex-basis: 100%; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.email-capture .ec-fine { flex-basis: 100%; font-size: 10px; line-height: 1.4; }
.email-capture .ec-fine a { color: var(--muted); }
.wn-card { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--gold); background: rgba(201, 166, 107, 0.08); }
.wn-card svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.wn-card a { color: var(--gold); font-weight: 600; text-decoration: none; }
.wn-card a:hover { text-decoration: underline; }
.wn-disclosure { margin-top: 4px; font-size: 11px; line-height: 1.4; color: var(--muted); }

/* ── The real-answer example ────────────────────────────────────────────── */
.example { padding: 24px 26px; background: rgba(20, 20, 18, 0.85); border: 1px solid rgba(255, 255, 255, 0.08); border-top: 2px solid var(--gold); }
.example-kicker { font: 10px/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.example-q { font: italic 500 19px/1.3 var(--serif); margin-bottom: 12px; }
.example-names { font-size: 13px; line-height: 1.6; color: var(--text-2); margin-bottom: 12px; }
.example-names strong { color: var(--text); font-weight: 600; }
.example blockquote { padding-left: 14px; border-left: 2px solid var(--line); font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ── Artist follow ──────────────────────────────────────────────────────── */
.follow-artist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; }
.follow-artist .row { display: flex; }
.follow-artist input {
  flex: 1; min-width: 0; padding: 14px; background: var(--bg);
  border: 1px solid var(--line); border-right: 0; font-size: 14px; outline: none;
}
.follow-artist input:focus { border-color: var(--green); }
.follow-artist .step { display: none; flex-direction: column; margin-top: 14px; }   /* home.js shows it (display: flex) */
.follow-artist .step-label { font: 10px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.follow-tagline { font-size: 13px; color: var(--muted); margin-top: 10px; }
.follow-confirm { display: none; margin-top: 12px; font-size: 13px; color: var(--green); }
@media (max-width: 860px) { .follow-artist { grid-template-columns: 1fr; } }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.quotes figure { padding: 26px; background: var(--raised); border-top: 2px solid var(--green); }
.quotes blockquote { font: italic 400 19px/1.45 var(--serif); color: var(--text); margin-bottom: 14px; }
.quotes figcaption { font: 11px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--muted); }

/* ── For festivals (organiser call to action) ───────────────────────────── */
.organisers { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.organisers p { max-width: 60ch; color: var(--muted); }
.organisers h2 { margin-bottom: 8px; }
.more-link { margin-top: 28px; }

@media (max-width: 760px) {
  .home .hero { padding-top: 28px; }
  .home .kicker { margin-bottom: 12px; }
  .home .hero h1 { margin-bottom: 12px; }
  .home .lede { font-size: 15px; line-height: 1.6; }
  .chat-top { padding: 12px 14px; }
  .chat-in { padding: 12px; gap: 8px; }
  .chat-in input { font-size: 16px; min-height: 50px; }   /* 16px+ stops iOS zooming on focus */
  .chat-in .btn { padding-inline: 16px; }
  .chat-msgs.active { max-height: 300px; padding: 14px 12px; gap: 12px; }
  .msg-bub { max-width: 88%; }
  /* 24 Oct live render: on a phone the full intro pushed the chat box under the cookie
     banner, the overlay hid the photo, and six cards made the page ~10,400px tall.
     Phones get the intro's first sentence, a lighter overlay at the top (the headline
     keeps its text-shadow; the chat box has its own background) and three cards, with
     the "still to come" links underneath for the rest. */
  .home .lede-more { display: none; }
  .home .hero::after {
    background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.5) 30%, rgba(10,10,10,0.88) 62%, var(--bg) 100%);
  }
  .home #festivals .fcard:nth-child(n+4) { display: none; }
}
