/* Hero: full-bleed portrait with today's question as a working card.
   The visitor answers first, then the friends' answers open, like in the app. */
.hero-live {
  --hl-ink: #05301F;
  --hl-soft: #F2F4EA;
  --hl-line: color-mix(in srgb, #8FA699 30%, #fff);
  --hl-muted: color-mix(in srgb, #05301F 62%, #fff);
  position: relative;
  isolation: isolate;
  min-height: max(100svh, 720px);
  display: flex;
  align-items: stretch;
  color: #fff;
  background: #0B2A1D;
  overflow: clip;
}
.hl-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hl-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  transform: translate3d(0, var(--hl-shift, 0px), 0);
  scale: 1.04;
  animation: hl-settle 2.4s cubic-bezier(.16, 1, .3, 1) both;
}
.hl-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(0 18 12 / .55), transparent 22%),
    linear-gradient(90deg, rgb(0 18 12 / .7), rgb(0 18 12 / .28) 38%, transparent 60%),
    linear-gradient(0deg, rgb(0 18 12 / .45), transparent 30%);
}

.hl-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  align-items: end;
  gap: 48px;
  padding-top: clamp(140px, 19svh, 210px);
  padding-bottom: clamp(40px, 6svh, 64px);
}
.hl-copy { align-self: start; max-width: 540px; }
.hl-title {
  margin: 0; color: #fff;
  font: 500 clamp(44px, 4.1vw, 68px)/1.02 var(--display);
  letter-spacing: -.02em;
}
.hl-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hl-line > span { display: inline-block; animation: hl-rise 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.hl-line + .hl-line > span { animation-delay: .1s; }
.hl-sub {
  max-width: 380px; margin: 24px 0 0;
  color: rgb(255 255 255 / .92); font: 400 17px/1.6 var(--ui);
  animation: hl-fade .8s .35s cubic-bezier(.16, 1, .3, 1) both;
}
.hl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 32px; animation: hl-fade .8s .45s cubic-bezier(.16, 1, .3, 1) both; }
.hero-live .hl-join { min-height: 52px; padding: 0 24px; background: #fff; color: var(--hl-ink); font-size: 15px; }
.hero-live .hl-join:hover { background: var(--lime); }
.hl-try { display: none; color: #fff; font: 500 15px/1.2 var(--ui); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / .5); }

/* ---------- The card ---------- */
.hl-card {
  position: relative; width: 100%;
  perspective: 1200px;
  animation: hl-card-in 1.1s .5s cubic-bezier(.16, 1, .3, 1) both;
  scroll-margin-top: 96px;
}
.hl-card-in {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: 28px;
  background: #fff;
  color: var(--hl-ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 2px 4px rgb(5 48 31 / .08), 0 24px 60px -18px rgb(0 18 12 / .55);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.hl-card.is-tilting .hl-card-in { transition-duration: .12s; }
.hl-card-in::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(215 255 0 / .1), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.hl-card.is-tilting .hl-card-in::after { opacity: 1; }

.hl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hl-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--ui); color: var(--forest); }
.hl-tag svg { width: 24px; height: 17px; }
.hl-clock {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 9px; border-radius: 999px; background: var(--hl-soft);
  font: 600 12px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--forest);
}
.hl-clock svg { width: 13px; height: 13px; }
.hl-q { margin: 16px 0 16px; font: 500 25px/1.16 var(--display); color: var(--hl-ink); letter-spacing: -.01em; text-wrap: balance; }

.hl-compose { display: grid; gap: 8px; }
.hl-compose textarea {
  display: block; width: 100%; min-height: 76px; resize: none;
  padding: 14px 16px; border: 1.5px solid transparent; border-radius: 18px;
  background: var(--hl-soft); color: var(--hl-ink);
  font: 400 16px/1.4 var(--ui);
  transition: border-color .2s, background .2s;
}
.hl-compose textarea::placeholder { color: color-mix(in srgb, var(--hl-ink) 45%, #fff); }
.hl-compose textarea:focus { outline: none; border-color: var(--forest); background: #fff; }
.hl-tools { display: flex; align-items: center; gap: 10px; }
.hl-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hl-soft); }
.hl-seg button {
  min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 12.5px/1 var(--ui); color: var(--hl-muted); transition: background .25s, color .25s;
}
.hl-seg button[aria-checked="true"] { background: var(--hl-ink); color: #fff; }
.hl-count { margin-left: auto; font: 500 12px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--hl-muted); }
.hl-send {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--hl-ink); color: var(--lime);
  transition: transform .3s var(--spring), opacity .2s, background .2s;
}
.hl-send svg { width: 18px; height: 18px; rotate: -90deg; }
.hl-send:disabled { opacity: .28; cursor: default; }
.hl-send:not(:disabled):hover { transform: scale(1.08); }
.hl-idea {
  justify-self: start; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: 500 13px/1.3 var(--ui); color: var(--forest);
  text-decoration: underline dotted; text-underline-offset: 4px;
}
.hl-idea:disabled { opacity: .5; cursor: default; }
.hl-compose :focus-visible, .hl-after-cta:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.hl-mine { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--lime) 22%, #fff); animation: hl-pop .55s cubic-bezier(.16, 1, .3, 1) both; }
.hl-mine[hidden] { display: none; }
.hl-mine .av { width: 34px; height: 34px; font-size: 14px; }
.hl-mine small { display: block; margin-bottom: 3px; font: 600 12px/1.2 var(--ui); color: var(--forest); }
.hl-mine p { margin: 0; font: 400 15px/1.4 var(--ui); overflow-wrap: anywhere; }

.hl-feed { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hl-line); }
.hl-lock { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 400 13px/1.35 var(--ui); color: var(--hl-muted); }
.hl-lock b { color: var(--hl-ink); font-weight: 600; }
.hl-lock svg { width: 16px; height: 16px; flex: none; color: var(--forest); }
.hl-list { list-style: none; margin: 0; padding: 0; }
.hl-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.hl-row + .hl-row { border-top: 1px solid color-mix(in srgb, var(--hl-line) 60%, #fff); }
.hl-row .av { width: 32px; height: 32px; font-size: 13px; }
.hl-row-body { min-width: 0; flex: 1; }
.hl-row small { display: block; font: 600 12px/1.2 var(--ui); color: var(--hl-muted); }
.hl-row p {
  margin: 2px 0 0; font: 400 14.5px/1.35 var(--ui); color: var(--hl-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  filter: blur(5px); opacity: .55; user-select: none;
  transition: filter .7s cubic-bezier(.16, 1, .3, 1) var(--d, 0s), opacity .7s var(--d, 0s);
}
.hl-row-react { display: flex; flex: none; }
.hl-row-react .st.custom-reaction { --s: 24px; margin-left: -6px; opacity: 0; scale: .4; rotate: var(--tilt); transition: opacity .3s calc(var(--d, 0s) + .35s), scale .5s var(--spring) calc(var(--d, 0s) + .35s); }

.hl-card[data-state="open"] .hl-row p { filter: none; opacity: 1; user-select: auto; }
.hl-card[data-state="open"] .hl-row-react .st.custom-reaction { opacity: 1; scale: 1; }
.hl-card[data-state="open"] .hl-compose { display: none; }
.hl-card[data-state="open"] .hl-lock svg { color: #fff; background: var(--forest); border-radius: 50%; padding: 3px; }

.hl-after { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 14px 14px 16px; border-radius: 18px; background: var(--hl-ink); color: #fff; animation: hl-pop .6s .5s cubic-bezier(.16, 1, .3, 1) both; }
.hl-after[hidden] { display: none; }
.hl-after p { margin: 0; font: 400 13.5px/1.4 var(--ui); color: rgb(255 255 255 / .82); }
.hl-after b { color: #fff; font-weight: 600; }
.hl-after-cta {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--lime); color: var(--hl-ink); font: 600 13.5px/1 var(--ui); white-space: nowrap;
}
.hl-after-cta svg { width: 15px; height: 15px; transition: transform .3s var(--expo); }
.hl-after-cta:hover svg { transform: translateX(3px); }

@keyframes hl-rise { from { transform: translateY(105%); } }
@keyframes hl-fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes hl-card-in { from { opacity: 0; transform: translateY(36px); } }
@keyframes hl-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes hl-settle { from { scale: 1.1; } }

/* Short desktop windows: keep the card fully on screen. */
@media (min-width: 981px) and (max-height: 820px) {
  .hl-q { font-size: 22px; margin: 12px 0; }
  .hl-compose textarea { min-height: 60px; padding: 11px 14px; }
  .hl-row { padding: 7px 0; }
  .hl-list li:nth-child(n+3) { display: none; }
}

/* Tablet and phone: the portrait first, the card overlaps its lower edge. */
@media (max-width: 980px) {
  .hero-live { display: block; min-height: 0; background: #fff; }
  .hl-media { position: relative; height: min(82svh, 760px); min-height: 520px; z-index: 0; }
  .hl-photo { object-position: 50% 30%; }
  .hl-media::after {
    background:
      linear-gradient(180deg, rgb(0 18 12 / .5), transparent 20%),
      linear-gradient(0deg, rgb(0 18 12 / .82), rgb(0 18 12 / .3) 45%, transparent 70%);
  }
  .hl-grid { display: block; position: static; padding: 0 var(--gutter) 40px; }
  .hl-copy {
    position: absolute; left: 0; right: 0; top: 0;
    height: min(82svh, 760px); min-height: 520px;
    display: flex; flex-direction: column; justify-content: flex-end;
    max-width: none; padding: 0 var(--gutter) 110px;
  }
  .hl-copy > * { max-width: 560px; }
  .hl-title { font-size: clamp(38px, 6vw, 54px); }
  .hl-try { display: inline; }
  .hl-card { max-width: 560px; margin: -72px auto 0; z-index: 2; }
}
@media (min-width: 601px) and (max-width: 980px) {
  .hl-media, .hl-copy { height: min(94svh, 1000px); min-height: 640px; }
}
@media (max-width: 600px) {
  .hl-media, .hl-copy { height: 86svh; min-height: 560px; }
  .hl-photo { object-position: 46% 30%; }
  .hl-copy { padding-bottom: 96px; }
  .hl-title { font-size: clamp(36px, 10vw, 42px); }
  .hl-sub { margin-top: 16px; font-size: 15.5px; max-width: 330px; }
  .hl-actions { margin-top: 24px; gap: 12px 18px; }
  .hero-live .hl-join { min-height: 50px; }
  .hl-card { margin-top: -56px; }
  .hl-card-in { padding: 18px 16px 16px; border-radius: 24px; }
  .hl-q { font-size: 23px; }
  .hl-after { flex-direction: column; align-items: stretch; }
  .hl-after-cta { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hl-photo, .hl-line > span, .hl-sub, .hl-actions, .hl-card, .hl-mine, .hl-after { animation: none; }
  .hl-photo { transform: none; scale: 1; }
  .hl-card-in, .hl-row p, .hl-row-react .st.custom-reaction { transition: none; }
}

/* text-colour.css paints all text #111413; the copy over the photo and the dark strip stay light. */
.hero-live .hl-copy :is(h1, p, span, .hl-try) { color: #fff !important; }
.hero-live .hl-copy .hl-join { color: #111413 !important; }
.hero-live .hl-after p { color: rgb(255 255 255 / .8) !important; }
.hero-live .hl-after b { color: #fff !important; }
.hl-card.is-still .hl-card-in { transition: none; }
.hero-live .hl-after-cta { text-decoration: none !important; }
.hl-mine .av { background: var(--lime); color: var(--forest); }
.hl-row-react .st.custom-reaction { --s: 28px; }
/* Without JavaScript the card cannot answer, so the hero stays copy and photo. */
html:not(.js) .hl-card { display: none; }
