/* textpoco.com first screen (Dan, 2026-10-30): rows of blue texts people send poco drift past in
   alternating directions; one frosted glass card on top carries the logo, headline and buttons.
   Navy lettering, the last line types itself out (chat-hero.js). The rest of the page is unchanged:
   the bottom of this screen fades into Sea, where the clouds section starts. */
.chathero {
  --paper: #EDF2F8;   /* the chat background the texts drift over */
  --blue: #1E7BF2;    /* sent-text blue */
  --navy: #1F2A55;
  --soft: rgba(31, 42, 85, .78);
  position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: 92px var(--gutter) 64px; background: var(--paper);
}
@media (min-width: 900px) { .chathero { padding-block: 88px 72px; } }

/* ---------- the drifting texts ---------- */
.chathero__texts { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.chathero__texts::after { /* fade in under the banner, and out into Sea where the clouds begin */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--paper), rgba(237, 242, 248, 0) 13%, rgba(237, 242, 248, 0) 72%, var(--sea)); }
.chat-row { position: absolute; left: 0; width: 100%; height: var(--rowh, 52px); display: flex; align-items: center; }
.chat-row:nth-child(3n+2) { opacity: .8; }
.chat-row:nth-child(3n) { opacity: .9; }
.chat-track { display: flex; gap: 14px; width: max-content; padding-right: 14px; will-change: transform;
  animation: chat-drift var(--dur, 60s) linear infinite; }
.chat-row--right .chat-track { animation-direction: reverse; } /* row 1 drifts left to right, row 2 right to left, ... */
.chathero.is-paused .chat-track { animation-play-state: paused; }
@keyframes chat-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.chat-text { position: relative; flex: none; padding: 8px 14px 9px; border-radius: 19px; background: var(--blue); color: #fff;
  font: 400 15px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.chat-text::after { /* the sent-text tail */
  content: ""; position: absolute; right: -5px; bottom: 0; width: 16px; height: 14px;
  background: radial-gradient(circle at 0 0, transparent 9px, var(--blue) 9.5px); clip-path: polygon(0 0, 100% 100%, 0 100%); }
@media (min-width: 900px) { .chat-text { font-size: 17px; padding: 9px 16px 10px; border-radius: 21px; } }
@media (prefers-reduced-motion: reduce) { .chat-track { animation: none; } }

/* ---------- the glass card ---------- */
.chathero__glass { position: relative; width: min(100%, 680px); container-type: inline-size;
  padding: clamp(26px, 7cqi, 52px) clamp(20px, 6cqi, 56px) clamp(24px, 5cqi, 44px);
  border-radius: clamp(30px, 6vw, 44px);
  background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%), rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -10px 30px -18px rgba(255, 255, 255, .6),
    0 1px 2px rgba(20, 40, 90, .08), 0 24px 60px -24px rgba(20, 40, 90, .45);
  display: grid; justify-items: center; text-align: center; }
.chathero__glass::before { /* the sheen along the top edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, .55), transparent 55%); mix-blend-mode: soft-light; }

/* the logo: "poco" with the pal as the o; the pal bobs (reduced motion: still) */
.chathero__logo { display: block; color: var(--navy); line-height: 0; margin-bottom: clamp(10px, 3cqi, 22px); }
.chathero__logo-svg { width: clamp(118px, 30cqi, 190px); height: auto; overflow: visible; }
.chathero .pal { transform-box: fill-box; transform-origin: 50% 90%; }
@media (prefers-reduced-motion: no-preference) { .chathero .pal { animation: chat-bob 2.8s ease-in-out infinite; } }
@keyframes chat-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5%) rotate(-3deg); } }

/* the headline: "text me / about your / [typed word]" */
.chathl { margin: 0; display: grid; justify-items: center; color: var(--navy); font-family: var(--display); font-weight: 900;
  letter-spacing: -.03em; line-height: 1; font-synthesis: none; }
.chathl__1 { font-size: min(19cqi, 6.6rem); }
.chathl__2 { font-family: var(--display-sm); font-size: min(7.6cqi, 2.7rem); letter-spacing: .01em; margin-block: .5em .35em; color: var(--soft); }
.chathl__3 { font-size: min(13.6cqi, 5.4rem); height: 1.32em; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.chathl__w { display: inline-block; }
.chathl__caret { display: inline-block; width: .07em; height: .9em; margin-left: .05em; background: var(--blue); border-radius: 2px; vertical-align: -.08em; }
@media (prefers-reduced-motion: no-preference) { .chathl__caret { animation: chat-blink 1s steps(1) infinite; } }
@keyframes chat-blink { 50% { opacity: 0; } }

/* buttons: the site's own (site.css), centered in the card */
.chathero .cta { justify-items: center; margin-top: clamp(20px, 5cqi, 34px); }
.chathero .button--secondary { background: rgba(255, 255, 255, .72); }
.chathero .caution { margin-top: 18px; text-shadow: none; color: var(--soft); }
/* the privacy line under the buttons (Dan, 2026-10-31): plain navy text, the lock in the same color */
.trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: clamp(16px, 4cqi, 24px) 0 0;
  color: var(--navy); font: 600 .86rem/1.3 var(--text); letter-spacing: .005em; }
.trust__lock { flex: none; }

/* desktop: the QR code under the buttons */
.chathero__desk { display: none; }
@media (min-width: 900px) {
  .chathero__desk { display: flex; align-items: center; gap: 16px; margin-top: 26px; text-align: left; color: var(--soft); font: 400 .95rem/1.4 var(--text); }
  .chathero__desk p { margin: 0; }
  .chathero__qr { width: 92px; height: 92px; padding: 7px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 40, 90, .1); flex: none; line-height: 0; }
  .chathero__qr svg { display: block; width: 100%; height: 100%; }
  .chathero .cta__number { font-weight: 700; color: var(--navy); white-space: nowrap; }
}
