/* Query me — clarity and interactive-explainer layer.
   Loaded after the Living Archive stylesheet so these small refinements stay isolated. */

/* The featured self-serve tier should read as a recommendation, not internal product jargon. */
.living-archive-site .offer--feature::before {
  content: "Recommended";
  font-size: clamp(0.76rem, 0.67rem + 0.18vw, 0.92rem);
  font-weight: 650;
  letter-spacing: 0.055em;
}

/* Home hero: the five verbs are controls for five concrete examples. */
.story-index li {
  position: relative;
  display: block;
  padding: 0;
}

.story-trigger {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.56rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--la-rule) 68%, transparent);
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: pointer;
}

.story-index li:last-child .story-trigger {
  border-bottom: 0;
}

.story-trigger:hover {
  color: var(--la-green);
}

.story-trigger:focus-visible {
  outline: 2px solid var(--la-green);
  outline-offset: 3px;
  border-radius: 2px;
}

.story-index .is-complete::after {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.memory-story-scene[hidden] {
  display: none !important;
}

.memory-story-scene {
  min-height: 100%;
}

.memory-workspace {
  height: 50rem;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: no-preference) {
  .home-living-archive .hero__copy,
  .home-living-archive .living-memory {
    animation: clarity-arrive 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .home-living-archive .living-memory { animation-delay: 90ms; }
}

.memory-story-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--la-rule);
  background: #f8f6ef;
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--la-slate);
}

.memory-story-note strong {
  color: var(--la-graphite);
}

.memory-story-scene .memory-row__state {
  min-width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .memory-story-scene:not([hidden]) {
    animation: clarity-scene-in 180ms ease-out both;
  }
}

@keyframes clarity-scene-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes clarity-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .memory-workspace { height: 50rem; }

  .story-index li {
    flex: 0 0 auto;
  }

  .story-trigger {
    grid-template-columns: auto auto;
    width: auto;
    padding: 0.32rem 0.1rem;
    border-bottom: 0;
    white-space: nowrap;
  }

  .story-index .is-complete::after {
    display: none;
  }
}
