/* Marketing landing page only — app pages use style.css alone. */

.lnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.lnav .brand { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); }
.lnav .brand span { color: var(--accent); }
.lnav-links { display: flex; gap: 20px; flex: 1; }
.lnav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.lnav-links a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 72px 24px 56px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hero-sub { font-size: 17px; color: var(--muted); margin: 0 0 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-ctas .btn { padding: 11px 22px; font-size: 15px; }
/* ---- Hero card stack ---- */
.card-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 520 / 372;
  /* Bottom margin clears the deepest card in the stack (52px of offset). */
  margin: 4px auto 60px;
}
.stack-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(26, 26, 46, 0.16), 0 2px 8px rgba(26, 26, 46, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
/* One rule per card in the stack — the shuffle script derives its depth
   classes from the card count, so a new card needs a new .depth-N here. */
.stack-card.depth-0 { transform: translate(0, 0) scale(1); opacity: 1; z-index: 4; }
.stack-card.depth-1 { transform: translate(0, 18px) scale(0.96); opacity: 0.85; z-index: 3; }
.stack-card.depth-2 { transform: translate(0, 36px) scale(0.92); opacity: 0.65; z-index: 2; }
.stack-card.depth-3 { transform: translate(0, 52px) scale(0.885); opacity: 0.5; z-index: 1; }
.stack-card.depth-out {
  transform: translate(0, -60px) scale(1.02);
  opacity: 0;
  z-index: 5;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease-in;
}

.stack-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.stack-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: #fca5a5; }
.dot-yellow { background: #fcd34d; }
.dot-green { background: #86efac; }
.stack-url {
  margin-left: 8px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
}
.stack-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 99px;
  color: #fff;
  background: #111827;
  white-space: nowrap;
}

.stack-body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* skeleton shimmer */
.skel {
  border-radius: 5px;
  background: linear-gradient(100deg, #e9ebee 30%, #f5f6f8 45%, #e9ebee 60%);
  background-size: 250% 100%;
  animation: shimmer 2.2s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}
/* Skeletons that sit on the dark player bar rather than a white card.
   background-image, not the background shorthand — the shorthand would reset
   the background-size that drives the shimmer. */
.skel-dark { background-image: linear-gradient(100deg, #3a3a55 30%, #4d4d6b 45%, #3a3a55 60%); }
.skel-title { width: 46%; height: 14px; }
.skel-line { height: 8px; }
.w-80 { width: 80%; }
.w-75 { width: 75%; }
.w-70 { width: 70%; }
.w-65 { width: 65%; }
.w-60 { width: 60%; }
.w-55 { width: 55%; }
.skel-btn { height: 22px; width: 70%; border-radius: 6px; margin-top: auto; }
.skel-btn.accent {
  background: linear-gradient(100deg, #c2410c 40%, #e05a1e 55%, #c2410c 70%);
  background-size: 250% 100%;
  animation: shimmer 2.2s ease-in-out infinite;
}
.skel-btn.outline { background: #ffffff; border: 1px solid var(--line); animation: none; }

/* heatmap card */
.stack-panels { display: flex; gap: 12px; flex: 1; min-height: 0; }
.stack-panel {
  position: relative;
  flex: 1;
  background: #f6f7f9;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.heat-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.heat-hot { width: 90px; height: 90px; left: 4px; bottom: -18px; background: radial-gradient(circle, rgba(220, 38, 38, 0.75) 0%, rgba(245, 158, 11, 0.45) 45%, rgba(245, 158, 11, 0) 75%); }
.heat-warm { width: 60px; height: 60px; left: 40px; bottom: -6px; background: radial-gradient(circle, rgba(250, 204, 21, 0.55), rgba(250, 204, 21, 0) 70%); }
/* Blue, not the brand orange — this is the cold end of the heat scale and has
   to stay legibly opposite the hot/warm glows in the panel beside it. */
.heat-cool { width: 64px; height: 64px; right: 10px; bottom: -14px; background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0) 70%); }

.stack-player {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border-radius: 10px;
  padding: 8px 14px;
  flex-shrink: 0;
}
.player-play { color: #fff; font-size: 11px; }
.player-track { position: relative; flex: 1; height: 5px; background: #3a3a55; border-radius: 3px; }
.player-fill { position: absolute; inset: 0; width: 58%; background: var(--accent); border-radius: 3px; }
.replay-fill { background: #f08a5d; width: 41%; }
.player-tick { position: absolute; top: -5px; width: 2px; height: 14px; background: #16a34a; border-radius: 1px; }
.player-tick.tick-warn { background: #f59e0b; }
.player-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* Empty skeleton standing in for the timestamp — sized to the "0:00" it replaced. */
.player-time { flex-shrink: 0; width: 26px; height: 8px; border-radius: 3px; }

/* replay card */
.rec-pill {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 38, 38, 0.08);
  padding: 5px 9px;
  border-radius: 99px;
}
/* Stands in for the "REC" wordmark; the pulsing dot beside it carries the meaning. */
.rec-skel { width: 22px; height: 6px; border-radius: 3px; }
.rec-dot { width: 6px; height: 6px; border-radius: 50%; background: #dc2626; animation: recpulse 1.4s ease-in-out infinite; }
@keyframes recpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.replay-stage { position: relative; flex: 1; min-height: 0; background: #f6f7f9; border-radius: 10px; padding: 14px; overflow: hidden; }
.replay-stage .skel-block { position: absolute; top: 14px; left: 14px; width: 44%; height: 16px; }
.replay-stage .skel-block.small { top: 40px; left: 14px; width: 30%; height: 10px; }
.replay-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.replay-path path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  opacity: 0.75;
  animation: dash-flow 6s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -120; } }
.replay-stop { fill: var(--accent); opacity: 0.85; }
.replay-cursor path { fill: var(--ink); stroke: #fff; stroke-width: 1; }

/* graph card */
.chart-stage { position: relative; flex: 1; min-height: 0; background: #f6f7f9; border-radius: 10px; padding: 14px; }
.chart-bars { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 60%; display: flex; align-items: flex-end; gap: 8px; }
.chart-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(100deg, #dfe2e6 30%, #eceef1 45%, #dfe2e6 60%);
  background-size: 250% 100%;
  animation: shimmer 2.2s ease-in-out infinite;
}
.chart-trend { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.chart-trend path { fill: none; stroke: #111827; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 7; opacity: 0.55; }

.stack-stats { display: flex; gap: 14px; flex-shrink: 0; padding-top: 4px; border-top: 1px solid var(--line); }
.stat { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.skel-num { width: 46px; height: 16px; }
.skel-label { width: 70%; height: 7px; }

/* sentiment card — the pill colours are the results page's own sentiment
   buckets (style.css .badge.positive/.negative) so the mock matches the app. */
.sent-rollup { display: flex; gap: 3px; height: 8px; flex-shrink: 0; }
.roll-seg { border-radius: 99px; }
.seg-negative { background: #f87171; }
.seg-neutral { background: #d5d8dd; }
.seg-positive { background: #4ade80; }
.sent-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* Both are empty skeletons now, so they carry their own dimensions. */
.sent-legend { flex-shrink: 0; width: 108px; height: 7px; }
.sent-chip {
  margin-left: auto;
  flex-shrink: 0;
  width: 76px;
  height: 14px;
  border-radius: 99px;
}
/* space-between so the three rows fill the card at any hero size, the way the
   other cards' stages stretch. */
.sent-feed { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; flex: 1; min-height: 0; }
.sent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f6f7f9;
}
.sent-lines { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sent-pill {
  flex-shrink: 0;
  width: 52px;
  height: 14px;
  border-radius: 99px;
}

@media (prefers-reduced-motion: reduce) {
  .stack-card, .stack-card.depth-out, .skel, .skel-btn.accent, .chart-bars span, .rec-dot, .replay-path path {
    animation: none !important;
    transition: none !important;
  }
}

.lsection { max-width: 1060px; margin: 0 auto; padding: 56px 24px; }
.lsection h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 28px; text-align: center; }
.lsub { text-align: center; margin: -20px 0 28px; font-size: 15px; }
.lsection-alt {
  max-width: none;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lsection-alt > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
/* Restates the auto side-margins from the rule above: `.lsection h2` is more
   specific and would otherwise zero them, leaving the heading's 1060px box
   pinned to the left edge of the full-bleed band. */
.lsection-alt h2 { margin: 0 auto 28px; }

.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Even rows for feature counts that aren't a multiple of three. Same
   specificity as .lgrid and later in the file, so it wins at desktop while the
   860px collapse below still overrides both. */
.lgrid-2 { grid-template-columns: repeat(2, 1fr); }
.lfeature { margin: 0; }
.lfeature h3 { font-size: 16px; margin: 0 0 8px; }
.lfeature .muted { font-size: 14px; }
.licon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  /* auto, not 0 — inside .lsection-alt this is what keeps the steps centered
     in the full-bleed band once it's wider than the 1060px content column. */
  margin: 0 auto;
  padding: 0 24px;
}
.steps h3 { font-size: 16px; margin: 0 0 6px; }
.steps .muted { font-size: 14px; }
.stepnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Monthly/yearly switch: a two-option segmented control above the cards. */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 26px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
}
.bt-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.bt-opt:hover { color: var(--ink); }
.bt-opt.is-on { background: var(--accent); color: var(--accent-ink); }
.bt-save {
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--ok);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.bt-opt.is-on .bt-save { background: rgba(255, 255, 255, 0.22); }

#pricing { text-align: center; }
#pricing .lgrid { text-align: left; }

.lgrid.pricing { grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; }
.price-card { position: relative; margin: 0; padding: 26px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 17px; margin: 0 0 4px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.price .muted { font-size: 14px; font-weight: 500; }
/* The "+ $10 / teammate" half of the Team price: its own line, sized down so
   the headline number still reads as the headline number. */
.price-plus { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.price-note { font-size: 13px; margin: 0 0 14px; min-height: 34px; }
.price-card li em { font-style: normal; color: var(--muted); }
.price-card ul { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.price-card li { padding: 5px 0 5px 24px; font-size: 14px; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.price-card .btn { text-align: center; }

/* ---- Demo tour ---- */
.demo-frame {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #14142e;
  box-shadow: 0 18px 48px rgba(20, 20, 46, 0.16);
  line-height: 0;
}
.demo-video { display: block; width: 100%; height: auto; cursor: pointer; }
/* Sits over the poster until the tour is running; clicking the video itself
   toggles too, so this is a visual affordance more than the only control. */
.demo-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(20, 20, 46, 0.42);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.demo-play:hover { background: rgba(20, 20, 46, 0.5); border-color: transparent; }
.demo-play.is-hidden { opacity: 0; visibility: hidden; }
.demo-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 17px;
}

/* Seek bar. Hidden until the tour has been started once — before that the
   poster and the big play button are the whole interface. After that it owns
   play/pause, so pausing no longer re-covers the frame with the overlay. */
.demo-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(20, 20, 46, 0.8), rgba(20, 20, 46, 0));
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
/* Once started the bar stays in the tab order even while faded out, so
   :focus-within below can bring it back. visibility:hidden would drop it out
   of the tab order and a keyboard user could never reveal it. Faded state
   keeps pointer-events off so clicking the bottom strip toggles the video. */
.demo-bar.is-on { visibility: visible; }
/* Show it only while the pointer is in the frame, keyboard focus is in the
   bar, or playback is paused — otherwise the chrome stays off the video. */
.demo-frame:hover .demo-bar.is-on,
.demo-bar.is-on:focus-within,
.demo-bar.is-on.is-paused {
  opacity: 1;
  pointer-events: auto;
}
.demo-bar-play {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  cursor: pointer;
}
.demo-track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}
.demo-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.demo-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 3px;
  background: var(--accent);
}
/* pointer-events off so a drag never lands on the thumb instead of the track. */
.demo-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 20, 46, 0.5);
  pointer-events: none;
}
.demo-time {
  flex: none;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* .lfooter lives in style.css — every page carries the same footer. */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .lgrid, .steps, .lgrid.pricing { grid-template-columns: 1fr; }
  .lnav-links { display: none; }
  .card-stack { max-width: 360px; margin-bottom: 72px; }
  /* The stack loses ~100px of height here, and the sentiment rows are the one
     thing in it that doesn't shrink — so compact them to one line apiece. */
  .sent-feed { gap: 6px; }
  .sent-row { padding: 6px 9px; }
  .sent-lines .skel-line + .skel-line { display: none; }
  .sent-pill { width: 40px; height: 12px; }
}

/* The card's height follows its width, so on the narrowest phones it can no
   longer hold the whole mock. Drop the rollup legend and one of the two
   negative rows — the pills and the distribution bar still tell the story. */
@media (max-width: 380px) {
  .sent-controls { display: none; }
  .sent-feed .sent-row:nth-child(2) { display: none; }
}
