/* Landing page sections added in the 2026 rework. Loaded after public-shell.css.
   The hero scene is pure CSS. Photos are optional extras from Pexels, stored locally
   under /assets/landing/ and listed in ASSET-LICENSES.md. Each photo stays hidden until
   it has loaded, so a missing file falls back to the CSS scene instead of a broken image. */

.tqs-public {
  --pride-gradient: linear-gradient(90deg, #e8505b, #f5a04b, #f2d15c, #46c48a, #3fa4e8, #8a5cf5);
  --trans-gradient: linear-gradient(90deg, #5bcefa, #f5a9b8, #ffffff, #f5a9b8, #5bcefa);
}

/* ---------- Hero scene ---------- */
.hero-scene {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  aspect-ratio: 5 / 4;
  isolation: isolate;
}
.hero-scene::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4% 8%;
  border-radius: 40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 80, 91, .35), transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(63, 164, 232, .32), transparent 45%),
    radial-gradient(circle at 60% 85%, rgba(138, 92, 245, .40), transparent 50%);
  filter: blur(36px);
  z-index: -1;
}
.scene-window {
  position: absolute;
  inset: 6% 6% 10% 0;
  display: grid;
  grid-template-columns: 30% 1fr;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.scene-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--pride-gradient);
}
.scene-sidebar {
  padding: 26px 14px;
  border-right: 1px solid var(--border);
  display: grid;
  align-content: start;
  gap: 12px;
}
.scene-channel {
  height: 10px;
  border-radius: 6px;
  background: var(--bg-tertiary);
}
.scene-channel.is-active { background: color-mix(in srgb, var(--primary) 55%, var(--bg-tertiary)); }
.scene-channel:nth-child(2n) { width: 78%; }
.scene-channel:nth-child(3n) { width: 64%; }
.scene-chat {
  padding: 26px 22px;
  display: grid;
  align-content: end;
  gap: 16px;
}
.scene-message { display: flex; gap: 12px; align-items: flex-start; }
.scene-message.is-own { flex-direction: row-reverse; }
.scene-avatar {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  padding: 3px;
  background: var(--pride-gradient);
}
.scene-avatar::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-tertiary);
}
.scene-avatar.trans { background: var(--trans-gradient); }
.scene-avatar.bi { background: linear-gradient(135deg, #d60270, #9b4f96, #0038a8); }
.scene-bubble {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 6px;
  background: var(--bg-tertiary);
  min-width: 46%;
}
.scene-message.is-own .scene-bubble {
  border-radius: 16px 16px 6px 16px;
  background: color-mix(in srgb, var(--primary) 32%, var(--bg-tertiary));
}
.scene-line { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text-tertiary) 35%, transparent); }
.scene-line.short { width: 58%; }
.scene-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-secondary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.scene-badge.one { right: 0; top: 2%; }
.scene-badge.two { left: 6%; bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .scene-badge { animation: scene-float 7s ease-in-out infinite; }
  .scene-badge.two { animation-delay: -3.5s; }
}
@keyframes scene-float { 50% { transform: translateY(-8px); } }

/* ---------- About card stack (replaces the photo) ---------- */
.values-stack { display: grid; gap: 14px; width: min(100%, 440px); margin-inline: auto; }
.value-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--qs-card-radius);
  background: var(--surface-soft);
}
.value-card:nth-child(2) { margin-inline-start: 28px; }
.value-card:nth-child(3) { margin-inline-start: 56px; }
.value-card strong { display: block; margin-bottom: 2px; }
.value-card p { margin: 0; color: var(--text-secondary); font-size: .92rem; }
.value-icon {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-tertiary);
  font-size: 1.15rem;
}
@media (max-width: 600px) {
  .value-card:nth-child(n) { margin-inline-start: 0; }
}

/* ---------- Shared grids for the new sections ---------- */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--qs-section-gap);
}
.lp-card {
  padding: var(--qs-card-padding);
  border: 1px solid var(--border);
  border-radius: var(--qs-card-radius);
  background: var(--surface-soft);
}
.lp-card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.lp-card p { margin: 0; color: var(--text-secondary); font-size: .93rem; }
.lp-card a { color: var(--primary-light); font-weight: 700; }
.lp-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--primary-light);
  font-size: 1.1rem;
}

@media (min-width: 900px) { .functions-grid { grid-template-columns: repeat(3, 1fr); } }

/* Together: three steps with a soft pride rule above */
.together-steps { counter-reset: step; }
.together-steps .lp-card { position: relative; overflow: hidden; }
.together-steps .lp-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 18px;
  top: 12px;
  font: 800 2.4rem/1 'Sora', system-ui, sans-serif;
  color: color-mix(in srgb, var(--text-tertiary) 22%, transparent);
}
.together-steps .lp-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--pride-gradient);
  opacity: .75;
}

/* Trust: two columns, list of commitments plus quick links */
.trust-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--qs-section-gap);
  align-items: start;
}
.trust-list { display: grid; gap: 18px; margin: 0; list-style: none; }
.trust-list.lp-card { padding: var(--qs-card-padding); }
.trust-list li { display: flex; gap: 14px; }
.trust-list strong { display: block; }
.trust-list p { margin: 2px 0 0; color: var(--text-secondary); font-size: .93rem; }
.trust-links { display: grid; gap: 10px; }
.trust-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}
.trust-link span { color: var(--text-tertiary); font-weight: 500; font-size: .85rem; }
.trust-link:hover { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); }
@media (max-width: 900px) { .trust-layout { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary-light); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item > div { padding: 0 20px 18px; color: var(--text-secondary); }
.faq-item a { color: var(--primary-light); }

/* Live stats only appear once real numbers arrived */
.hero-live-stats[hidden], .live-stat[hidden] { display: none !important; }

/* Focus and motion */
.tqs-public :is(a, button, summary, input, [tabindex]):focus-visible {
  outline: 3px solid var(--accent, #33c4ea);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .tqs-public *, .tqs-public *::before, .tqs-public *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
.trust-list .lp-icon { flex: 0 0 44px; }

/* ---------- Optional photos (see ASSET-LICENSES.md) ---------- */
/* Images stay invisible but laid out until loaded (display:none would stop lazy loading).
   A failed load removes the slot via the onerror handler in landing.html. */
[data-photo] > img { opacity: 0; transition: opacity .4s ease; }
[data-photo].has-photo > img { opacity: 1; }
.lp-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(232, 80, 91, .18), rgba(63, 164, 232, .16), rgba(138, 92, 245, .2));
}
.lp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero-scene .scene-photo {
  position: absolute;
  inset: 4% 6% 6% 4%;
  width: 90%;
  height: 90%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero-scene .scene-window { transition: opacity .4s ease; }
.hero-scene.has-photo .scene-window { opacity: 0; visibility: hidden; }
.hero-scene .scene-photo { z-index: 1; }
.hero-scene .scene-badge { z-index: 2; }

.together-photo { aspect-ratio: 2 / 1; margin-bottom: var(--qs-section-gap, 32px); }
.trust-photo { aspect-ratio: 16 / 9; margin-bottom: 4px; }
@media (max-width: 600px) { .together-photo { aspect-ratio: 3 / 2; } }
