/* ============================================================
   Brivtex v4 — Compact & conversion pass
   Loaded LAST, after brivtex-v3.css.
   Goals: content-first layouts, tighter vertical rhythm on
   mobile, one primary action per screen, standardized metadata.
   ============================================================ */

/* ── Utilities ──────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Standardized metadata line: "Channel · 3 min read · Generated yesterday" */
.meta-line {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--v3-muted);
  margin: 0;
}

/* ── Sticky header: shrink + hide on scroll down ────────── */
.nav {
  transition: transform 0.32s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.nav--hidden {
  transform: translateY(-100%);
}
.nav--scrolled .nav-inner { height: 52px; }
.nav-inner { transition: height 0.25s ease; }

/* ── Search bar (shared: dashboard + subscriptions) ─────── */
/* The magnifier icon comes from .search-bar::before in brivtex.css */
.signal-page .search-bar {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
  max-width: none;
}
.signal-page .search-bar input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-radius: var(--v3-r-pill);
  border: 1px solid var(--v3-hair-2);
  background: #fff;
  padding: 0 16px 0 46px;
  font-size: 14px;
  color: var(--v3-ink);
}
.signal-page .search-bar input:focus {
  border-color: var(--v3-accent);
  box-shadow: 0 0 0 3px var(--v3-tint-16);
  outline: 0;
}

/* ── Global card compactness (−15–25% vertical padding) ── */
.signal-dashboard .video-card { padding: 13px; }
.signal-dashboard .video-card-thumb { margin: -13px -13px 10px; }
.signal-dashboard .video-card-title { font-size: 15px; margin: 0 0 4px; }
.signal-dashboard .video-card-actions .btn-primary,
.signal-dashboard .video-card-actions .btn-secondary,
.signal-dashboard .video-card-actions .btn-ghost,
.signal-dashboard .video-card-actions .btn-dark {
  min-height: 40px;
  font-size: 13.5px;
}
.signal-dashboard .video-card-actions .card-menu-btn {
  width: 40px;
  min-height: 40px;
  font-size: 16px;
}
.signal-dashboard .basket-row {
  padding: 18px 18px 20px;
  margin-bottom: 16px;
}
.summary-page .summary-section { padding: 18px 22px; }
.summary-content { gap: 12px; }

/* ── Status language: Read / Unread / In progress ───────── */
.signal-dashboard .video-card-thumb .status-unread::before {
  background: var(--v3-accent);
}
.signal-page .status-unread,
.app-signal-light .status-unread {
  color: #14509f;
  background: var(--v3-tint-12);
}
.thumb-read-time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(16, 16, 28, 0.62);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--v3-r-pill);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v3-accent);
  flex-shrink: 0;
}
.video-card-meta-line { margin: 0 0 8px; }

/* ── Dashboard: hero + toolbar ──────────────────────────── */
.signal-dashboard .dash-hero { margin-bottom: 14px; }
.signal-dashboard .dash-hero h1 { font-size: 30px; }
.dashboard-page .nav--hidden {
  transform: none;
}
.dashboard-page .signal-dashboard .basket-row {
  scroll-margin-top: 172px;
}
.dash-sticky-panel {
  position: sticky;
  top: 52px;
  z-index: 45;
  margin: 0 0 18px;
  padding: 8px 0 10px;
  background:
    linear-gradient(180deg, rgba(248, 248, 250, 0.96), rgba(248, 248, 250, 0.9)),
    var(--v3-page);
  border-bottom: 1px solid var(--v3-hair);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.dash-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.dash-toolbar .btn-secondary,
.dash-toolbar .btn-ghost {
  flex: 0 0 auto;
  min-height: 42px;
  font-size: 13.5px;
  white-space: nowrap;
}
.signal-dashboard .basket-chip-bar {
  position: static;
  top: auto;
  z-index: auto;
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 2px 0 4px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.signal-dashboard .basket-chip-bar[hidden] {
  display: none;
}
.signal-dashboard .basket-chip {
  flex: 0 0 auto;
  max-width: min(240px, 72vw);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid var(--v3-hair-2);
  border-radius: var(--v3-r-pill);
  background: #fff;
  color: #3d3d4d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-dashboard .basket-chip:hover,
.signal-dashboard .basket-chip:focus-visible {
  border-color: var(--v3-tint-25);
  background: var(--v3-tint-08);
  color: var(--v3-accent);
  text-decoration: none;
}
.signal-dashboard .basket-chip.active {
  border-color: transparent;
  background: var(--v3-tint-12);
  color: var(--v3-accent);
}
/* ── Basket header: title + plain metadata left, "View basket →" right ── */
.signal-dashboard .basket-name {
  text-decoration: none;
  color: var(--v3-ink);
}
.signal-dashboard a.basket-name:hover {
  color: var(--v3-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.signal-dashboard .basket-title-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.basket-meta { margin: 0; }
.basket-view-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--v3-accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.basket-view-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.basket-view-link-arrow { transition: transform 0.2s ease; }
.basket-view-link:hover .basket-view-link-arrow { transform: translateX(3px); }
/* Keep title left / link right on all widths; the link is small enough
   to share the top row on mobile (overrides signal-light's stacking) */
.signal-dashboard .basket-header-main {
  flex-direction: row;
  align-items: flex-start;
}
.signal-dashboard .basket-actions {
  width: auto;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  padding-top: 4px;
}
@media (max-width: 639.98px) {
  .signal-dashboard .dash-hero h1 { font-size: 26px; }
  .signal-dashboard .dash-hero-actions { width: 100%; }
  .signal-dashboard .dash-hero-actions .btn-primary { flex: 1; }
  .dash-toolbar { flex-wrap: wrap; }
  .dash-toolbar .search-bar { flex: 1 1 100%; }
  .signal-dashboard .basket-chip {
    max-width: 68vw;
    min-height: 36px;
  }
  .signal-dashboard .basket-row { padding: 14px 14px 16px; }
}

/* ── Subscriptions: compact activity cards ──────────────── */
.signal-youtube-page .channel-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.signal-youtube-page .channel-card {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 12px;
  min-height: 0;
  padding: 12px 14px;
}
.signal-youtube-page .channel-thumb-wrap,
.signal-youtube-page .channel-thumbnail {
  width: 48px;
  height: 48px;
}
.signal-youtube-page .channel-thumb-wrap { position: relative; }
.signal-youtube-page .channel-card-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.signal-youtube-page .channel-card-title { font-size: 14.5px; }
.channel-card-activity {
  margin: 0;
  font-size: 12.5px;
  color: var(--v3-body-2);
}
.channel-card-activity strong {
  color: var(--v3-accent);
  font-weight: 700;
}
.channel-card-meta:empty { display: none; }
.channel-card-chevron {
  font-size: 22px;
  line-height: 1;
  color: var(--v3-muted);
  flex-shrink: 0;
}
.signal-youtube-page .new-badge {
  top: -4px;
  right: -6px;
  font-size: 10.5px;
  padding: 3px 7px;
  box-shadow: 0 4px 10px rgba(24, 104, 219, 0.3);
}
.signal-youtube-page .channel-card.search-hidden { display: none; }
.subs-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.subs-filter-chip {
  padding: 7px 14px;
  border-radius: var(--v3-r-pill);
  background: #fff;
  border: 1px solid var(--v3-hair-2);
  font-size: 13px;
  font-weight: 600;
  color: #3d3d4d;
  cursor: pointer;
}
.subs-filter-chip.active {
  color: var(--v3-accent);
  background: var(--v3-tint-12);
  border-color: transparent;
}
.subs-sort-wrap { flex: 0 0 auto; }
select.subs-sort-btn {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, #3d3d4d 50%),
    linear-gradient(135deg, #3d3d4d 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.signal-youtube-page .back-link {
  display: inline-block;
  margin-bottom: 6px;
}
.signal-youtube-page .page-header { margin-bottom: 14px; }
@media (max-width: 639.98px) {
  .signal-youtube-page .channel-grid { grid-template-columns: 1fr; }
  .signal-youtube-page .page-toolbar { width: 100%; flex-wrap: wrap; }
}

/* ── Summary page: content-first header ─────────────────── */
.summary-head { margin: 10px 0 12px; gap: 16px; }
.summary-header-thumb { width: 150px; }
.summary-page .summary-title { font-size: 24px; }
.summary-channel { margin: 0 0 4px; }
.summary-basket-line { margin: 0; }
.summary-basket-chip {
  display: inline-block;
  padding: 2px 10px;
  margin-right: 4px;
  border-radius: var(--v3-r-pill);
  background: var(--v3-tint-08);
  border: 1px solid var(--v3-tint-25);
  color: var(--v3-accent);
  font-weight: 700;
  text-decoration: none;
}
.summary-basket-chip:hover { background: var(--v3-tint-12); }
.summary-meta-row { margin: 8px 0 14px; }

/* Actions stay left-aligned with the reading column */
.summary-page .summary-header,
.summary-action-strip {
  justify-content: flex-start;
  gap: 8px;
}
.summary-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.summary-page .summary-header .btn-primary,
.summary-page .summary-header .btn-secondary,
.summary-page .summary-header .btn-ocr {
  min-height: 40px;
  font-size: 13.5px;
  padding-left: 16px;
  padding-right: 16px;
}
.summary-more-actions {
  position: relative;
}
.summary-more-actions summary {
  list-style: none;
  cursor: pointer;
}
.summary-more-actions summary::-webkit-details-marker { display: none; }
.summary-more-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--v3-hair);
  border-radius: 14px;
  box-shadow: var(--v3-shadow-float);
}
.summary-more-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #3d3d4d;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.summary-more-item:hover { background: #f4f4f8; }
@media (max-width: 639.98px) {
  /* Keep the thumbnail small and beside the title instead of stacking */
  .summary-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .summary-header-thumb {
    width: 116px;
    max-width: 116px;
    border-radius: 10px;
  }
  .summary-page .summary-title {
    font-size: 17.5px;
    line-height: 1.3;
  }
  .summary-header-thumb-play { font-size: 16px; }
  .summary-action-strip {
    align-items: stretch;
    width: 100%;
  }
  .summary-primary-actions,
  .summary-more-actions {
    align-self: stretch;
    width: 100%;
  }
  .summary-primary-actions > *,
  .summary-more-actions > summary {
    flex: 1 1 0;
  }
  .summary-primary-actions .btn-primary,
  .summary-primary-actions .btn-secondary,
  .summary-more-actions > summary {
    width: 100%;
    justify-content: center;
  }
  .summary-more-menu {
    position: static;
    margin-top: 6px;
    width: 100%;
  }
  .summary-page .summary-tldr { padding: 18px; }
}

/* Save-to-basket dropdown */
.save-basket-wrap { position: relative; }
.save-basket-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 210px;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--v3-hair);
  border-radius: 14px;
  box-shadow: var(--v3-shadow-float);
}
.save-basket-menu[hidden] { display: none; }
.save-basket-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #3d3d4d;
  cursor: pointer;
}
.save-basket-item:hover { background: #f4f4f8; }
.save-basket-empty {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--v3-muted);
}

/* Quieter, dismissible highlight tip */
.summary-hint-chip {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--v3-muted);
}
.summary-hint-chip[hidden] { display: none; }
.summary-hint-dismiss {
  border: none;
  background: transparent;
  color: var(--v3-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.summary-hint-dismiss:hover { color: var(--v3-ink); }

/* TL;DR card */
.summary-page .summary-tldr {
  background: linear-gradient(135deg, rgba(24, 104, 219, 0.05), rgba(30, 199, 174, 0.05));
  border: 1px solid var(--v3-tint-25);
}
.summary-tldr-text {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--v3-ink);
}

/* Bottom next actions */
.summary-next-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.summary-next-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v3-muted);
}
.summary-next-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Landing: compact, product-first hero ───────────────── */
.landing-page { overflow-x: hidden; }
.landing-page { overflow-x: clip; }
.landing-page #main-content,
.landing-page .lp-hero,
.landing-page .lp-product-shell,
.landing-page .lp-marquee {
  width: 100%;
  max-width: 100%;
}
.landing-page .lp-hero,
.landing-page .lp-product-shell {
  overflow-x: clip;
  overflow-y: visible;
}
.lp-hero { padding: 44px 20px 72px; }
.lp-badge { margin-bottom: 18px; }
.lp-headline { margin-bottom: 16px; }
.lp-tagline { margin-bottom: 22px; }
.lp-hero-note { margin-top: 12px; }
.lp-mock,
.lp-product-preview {
  max-width: 100%;
}
.lp-mock-chip { max-width: min(100%, calc(100vw - 40px)); }
@media (max-width: 980px) {
  .lp-hero-inner { gap: 32px; }
}
@media (max-width: 640px) {
  .lp-hero { padding: 22px 20px 44px; }
  .lp-headline { font-size: 34px; margin-bottom: 12px; }
  .lp-tagline { font-size: 15.5px; line-height: 1.55; margin-bottom: 16px; }
  .lp-badge { margin-bottom: 12px; padding: 5px 12px; font-size: 12px; }
  .lp-hero-actions { gap: 10px; }
  .lp-hero-actions .btn-primary,
  .lp-hero-actions .btn-secondary { min-height: 44px; }
  .lp-hero-note { margin-top: 8px; }
  .lp-hero-inner { gap: 24px; }
  .lp-mock-chip { animation: none; }
}

/* Section rhythm */
.lp-section { padding: 84px 0; }
.lp-product-shell .lp-section { padding: 64px 0; }
.lp-product-shell .lp-section--stats { padding: 44px 0 20px; }
.lp-story-section { padding-top: 26px; }
.lp-product-shell .lp-section--steps { padding-bottom: 44px; }
@media (max-width: 640px) {
  .lp-product-shell .lp-section { padding: 44px 0; }
  .lp-product-shell .lp-section--stats { padding: 32px 0 8px; }
  .lp-story-section { padding-top: 22px; }
}

/* Ways-to-revisit stat card */
.lp-ways-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.lp-ways-list li {
  padding: 5px 12px;
  border-radius: var(--v3-r-pill);
  background: var(--v3-tint-08);
  border: 1px solid var(--v3-tint-25);
  color: #14509f;
  font-size: 12.5px;
  font-weight: 700;
}

/* Screenshot-led product story */
.lp-story {
  display: grid;
  gap: 8px;
  margin-top: 52px;
}
.lp-story-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding: 58px 0;
  border-bottom: 1px solid rgba(173, 186, 205, 0.42);
}
.lp-story-row:first-child { padding-top: 20px; }
.lp-story-row:last-child { border-bottom: 0; padding-bottom: 10px; }
.lp-story-row--reverse {
  grid-template-columns: minmax(0, 1.38fr) minmax(240px, 0.62fr);
}
.lp-story-row--reverse .lp-story-copy { order: 2; }
.lp-story-row--reverse .lp-story-visual { order: 1; }
.lp-story-copy { min-width: 0; }
.lp-story-eyebrow {
  margin: 0 0 13px;
  color: #1868db;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lp-story-copy h3 {
  margin: 0 0 16px;
  color: #111827;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.lp-story-copy > p:last-child {
  margin: 0;
  color: #596579;
  font-size: 16px;
  line-height: 1.72;
}
.lp-story-visual {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(24, 104, 219, 0.15);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 12%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(24, 104, 219, 0.12), rgba(255, 255, 255, 0.84));
  box-shadow: 0 28px 70px rgba(30, 57, 97, 0.14);
}
.lp-story-visual--summary {
  background:
    radial-gradient(circle at 12% 88%, rgba(34, 211, 238, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(24, 104, 219, 0.11));
}
.lp-story-picture {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(126, 145, 174, 0.32);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(24, 39, 66, 0.15);
}
.lp-story-picture img {
  display: block;
  width: 100%;
  height: auto;
}
.lp-story-row--catch-up {
  grid-template-columns: minmax(250px, 0.44fr) minmax(0, 1.56fr);
  gap: clamp(32px, 4vw, 58px);
  padding-top: 70px;
}
.lp-story-visual--catch-up {
  position: relative;
  min-height: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.23), transparent 34%),
    radial-gradient(circle at 14% 90%, rgba(24, 104, 219, 0.2), transparent 42%),
    #f5f9ff;
}
.lp-story-visual--catch-up .mk-catch-up-demo {
  margin: 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(30, 199, 174, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 56px rgba(17, 34, 61, 0.2);
}
@media (max-width: 980px) {
  .lp-story { margin-top: 36px; }
  .lp-story-row,
  .lp-story-row--reverse,
  .lp-story-row--catch-up {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }
  .lp-story-row--reverse .lp-story-copy,
  .lp-story-row--reverse .lp-story-visual { order: initial; }
  .lp-story-copy { max-width: 660px; }
}
@media (max-width: 640px) {
  .lp-story { margin-top: 22px; }
  .lp-story-row,
  .lp-story-row--reverse,
  .lp-story-row--catch-up {
    gap: 20px;
    padding: 36px 0;
  }
  .lp-story-row:first-child { padding-top: 10px; }
  .lp-story-copy h3 { font-size: 26px; }
  .lp-story-copy > p:last-child { font-size: 15px; }
  .lp-story-visual { padding: 10px; border-radius: 20px; }
  .lp-story-picture { border-radius: 12px; }
  .lp-story-visual--screenshot {
    width: min(100%, 280px);
    justify-self: center;
  }
  .lp-story-visual--screenshot .lp-story-picture {
    aspect-ratio: 4 / 5;
  }
  .lp-story-visual--screenshot .lp-story-picture img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  .lp-story-visual--catch-up {
    display: grid;
    min-height: 0;
    padding: 10px;
  }
}

/* Four-step how-it-works */
.lp-steps--four { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-steps--four .lp-step { padding: 24px 20px; }
.lp-steps--four .lp-step-num { font-size: 40px; margin-bottom: 12px; }
.lp-steps--four .lp-step-title { font-size: 17px; }
.lp-steps--four .lp-step-body { font-size: 14px; }
@media (max-width: 980px) {
  .lp-steps--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-steps--four { grid-template-columns: 1fr; margin-top: 26px; gap: 12px; }
  .lp-steps--four .lp-step { padding: 18px 18px; }
  .lp-steps--four .lp-step-num { font-size: 30px; margin-bottom: 8px; }
}

/* Differentiation grid */
.lp-section--diff { padding-top: 20px; }
.lp-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.lp-diff-card {
  border: 1px solid #d8e0ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  padding: 22px 20px;
}
.lp-diff-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(24, 104, 219, 0.13), rgba(34, 211, 238, 0.13));
  fill: none;
  stroke: #1868db;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-diff-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}
.lp-diff-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #677083;
}
@media (max-width: 980px) {
  .lp-diff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-diff-grid { grid-template-columns: 1fr; margin-top: 24px; gap: 12px; }
  .lp-diff-card { padding: 18px 18px; }
}

/* FAQ accordion */
.lp-section--faq { padding-top: 20px; }
.lp-faq {
  max-width: 780px;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}
.lp-faq-item {
  border: 1px solid #d8e0ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}
.lp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.lp-faq-question::-webkit-details-marker { display: none; }
.lp-faq-question:hover { color: #1d4ed8; }
.lp-faq-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #677083;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.lp-faq-item[open] .lp-faq-icon { transform: rotate(180deg); }
.lp-faq-answer {
  padding: 0 20px 18px;
}
.lp-faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #677083;
}
@media (prefers-reduced-motion: reduce) {
  .lp-faq-icon { transition: none; }
}
@media (max-width: 640px) {
  .lp-faq { margin-top: 24px; gap: 10px; }
  .lp-faq-question { padding: 16px 16px; font-size: 15px; }
  .lp-faq-answer { padding: 0 16px 16px; }
}

/* Compact final CTA */
.lp-cta,
.lp-product-shell .lp-cta {
  padding: 64px 24px 72px;
}
.lp-cta .lp-h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.lp-cta-sub {
  font-size: 16px;
  color: #677083;
  margin: 0 0 22px;
}
@media (max-width: 640px) {
  .lp-cta,
  .lp-product-shell .lp-cta { padding: 44px 20px 52px; }
}

/* Footer: slimmer */
.footer-inner { padding-top: 14px; padding-bottom: 14px; }
.footer-inner p { margin: 0; }
.footer-links { gap: 14px; }

/* ── Standalone marketing pages (/for/…, /about/) ────────── */
.mk-page { padding: 28px 0 0; }
.mk-page .container { max-width: 780px; }

.mk-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #677083;
}
.mk-breadcrumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: #b6bfcd;
}
.mk-breadcrumbs a { color: #1868DB; text-decoration: none; }
.mk-breadcrumbs a:hover { text-decoration: underline; }

.mk-header { margin-bottom: 44px; }
.mk-h1 {
  margin: 0 0 18px;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
}
.mk-lede {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.7;
  color: #4b4b5c;
}
.mk-header-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-note { margin: 14px 0 0; font-size: 13.5px; color: #8a8a9a; }

.mk-section { margin-bottom: 40px; }
.mk-h2 {
  margin: 0 0 14px;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
  color: #111827;
}
.mk-section p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #4b4b5c;
}
.mk-list {
  margin: 4px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.mk-list li { font-size: 16px; line-height: 1.6; color: #4b4b5c; }

/* Read-only Catch-up basket embedded in use-case articles */
.mk-catch-up-demo {
  margin: 30px 0 8px;
  overflow: hidden;
  border: 1px solid rgba(24, 104, 219, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 5%, rgba(30, 199, 174, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(24, 104, 219, 0.10), rgba(255, 255, 255, 0.92));
  box-shadow: 0 22px 54px rgba(30, 57, 97, 0.13);
}
.mk-catch-up-demo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 10px;
}
.mk-catch-up-demo .mk-catch-up-demo-kicker {
  margin: 0 0 4px;
  color: #1868db;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.mk-catch-up-demo-head h3 {
  margin: 0;
  color: #111827;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
.mk-catch-up-demo-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(24, 104, 219, 0.18);
  border-radius: var(--v3-r-pill);
  background: rgba(255, 255, 255, 0.78);
  color: #516077;
  font-size: 12px;
  font-weight: 700;
}
.mk-catch-up-demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 22px 16px;
}
.mk-catch-up-demo-tags span {
  padding: 5px 10px;
  border-radius: var(--v3-r-pill);
  background: rgba(24, 104, 219, 0.08);
  color: #14509f;
  font-size: 11.5px;
  font-weight: 700;
}
.mk-catch-up-demo-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 14px;
  padding: 7px;
  border: 1px solid rgba(145, 160, 184, 0.25);
  border-radius: 13px 13px 0 0;
  background: rgba(243, 247, 252, 0.92);
  color: #748096;
  text-align: center;
  font-size: 12.5px;
}
.mk-catch-up-demo-tabs span,
.mk-catch-up-demo-tabs strong,
.mk-catch-up-demo-tabs button {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
}
.mk-catch-up-demo-tabs button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.mk-catch-up-demo-tabs strong,
.mk-catch-up-demo-tabs button[aria-selected="true"] {
  border: 1px solid rgba(24, 104, 219, 0.3);
  background: #fff;
  color: #14509f;
  box-shadow: 0 4px 12px rgba(24, 104, 219, 0.1);
}
.mk-catch-up-demo-tabs button:focus-visible {
  outline: 3px solid rgba(24, 104, 219, 0.64);
  outline-offset: 2px;
}
.mk-catch-up-demo-tabpanel[hidden] { display: none; }
.mk-catch-up-demo-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: min(68vh, 640px);
  margin: 0 14px;
  padding: 20px;
  border: 1px solid rgba(145, 160, 184, 0.25);
  border-radius: 0 0 13px 13px;
  background: #f7f9fc;
}
.mk-catch-up-demo-notes label {
  color: #26364d;
  font-size: 13px;
  font-weight: 800;
}
.mk-catch-up-demo-notes-field {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 16px;
  resize: none;
  border: 1px solid rgba(126, 145, 174, 0.38);
  border-radius: 12px;
  background: #fff;
  color: #27364c;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: inset 0 1px 2px rgba(17, 34, 61, 0.04);
}
.mk-catch-up-demo-notes-field:focus {
  border-color: rgba(24, 104, 219, 0.7);
  outline: 3px solid rgba(24, 104, 219, 0.16);
  outline-offset: 1px;
}
.mk-catch-up-demo .mk-catch-up-demo-notes > p {
  margin: 0;
  color: #6f7b8e;
  font-size: 12px;
  line-height: 1.45;
}
.mk-catch-up-demo .mk-catch-up-demo-hint {
  margin: 0;
  padding: 10px 20px;
  border-inline: 1px solid rgba(145, 160, 184, 0.25);
  background: #fff;
  color: #6f7b8e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}
.mk-catch-up-demo-scroll-frame {
  position: relative;
  margin: 0 14px;
}
.mk-catch-up-demo-scroll-frame::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  z-index: 2;
  height: 34px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(244, 248, 253, 0.94));
  pointer-events: none;
}
.mk-catch-up-demo-viewport {
  height: min(68vh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 14px 14px 42px;
  border: 1px solid rgba(145, 160, 184, 0.25);
  border-radius: 0 0 13px 13px;
  background: #f7f9fc;
}
.mk-catch-up-demo-viewport:focus-visible {
  outline: 3px solid rgba(24, 104, 219, 0.72);
  outline-offset: -3px;
}
.mk-catch-up-demo .bd-catch-up-panel {
  margin: 0;
  box-shadow: none;
}
.mk-catch-up-demo .bd-catch-up-panel p {
  color: var(--color-ink-secondary);
  font-size: 13.5px;
  line-height: 1.62;
}
.mk-catch-up-demo .bd-catch-up-description { margin: 5px 0 0; }
.mk-catch-up-demo .bd-catch-up-tldr p { margin: 0; }
.mk-catch-up-demo .bd-catch-up-overview { margin: 0 0 16px; }
.mk-catch-up-demo .bd-catch-up-timeline p,
.mk-catch-up-demo .bd-catch-up-followups p { margin: 3px 0 0; }
.mk-catch-up-demo .bd-catch-up-takeaway { margin: 14px 0 0; }
.mk-catch-up-demo figcaption {
  padding: 14px 22px 18px;
  color: #687386;
  font-size: 12.5px;
  line-height: 1.55;
}

.mk-related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.mk-related-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid #d8e0ec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}
.mk-related-list a:hover { border-color: #1868DB; transform: translateY(-1px); }
.mk-related-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15.5px;
  color: #111827;
}
.mk-related-list span { font-size: 14px; line-height: 1.6; color: #677083; }

.mk-cta {
  margin: 8px 0 72px;
  padding: 36px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(24, 104, 219, 0.08), rgba(30, 199, 174, 0.10));
  text-align: center;
}
.mk-cta .mk-h2 { margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
  .mk-related-list a { transition: none; }
  .mk-related-list a:hover { transform: none; }
}
@media (max-width: 640px) {
  .mk-header { margin-bottom: 32px; }
  .mk-section { margin-bottom: 32px; }
  .mk-catch-up-demo { margin-top: 24px; border-radius: 18px; }
  .mk-catch-up-demo-head { gap: 12px; padding: 18px 16px 9px; }
  .mk-catch-up-demo-head h3 { font-size: 19px; }
  .mk-catch-up-demo-count { min-height: 29px; padding: 5px 9px; font-size: 11px; }
  .mk-catch-up-demo-tags { padding: 0 16px 13px; }
  .mk-catch-up-demo-tabs,
  .mk-catch-up-demo-scroll-frame { margin-inline: 8px; }
  .mk-catch-up-demo .mk-catch-up-demo-hint { padding-inline: 12px; }
  .mk-catch-up-demo-notes {
    height: 520px;
    margin-inline: 8px;
    padding: 16px;
  }
  .mk-catch-up-demo-viewport {
    height: 520px;
    padding: 8px 8px 38px;
    scrollbar-gutter: auto;
  }
  .mk-catch-up-demo .bd-catch-up-panel { padding: 15px; }
  .mk-catch-up-demo figcaption { padding: 12px 16px 16px; }
  .mk-cta { padding: 28px 20px; margin-bottom: 52px; }
}

/* Sitemap-style footer: the crawlable path to every marketing page.
   Columns are left-aligned — .footer still carries text-align:center from the
   older single-line footer, which reads wrong on a multi-column sitemap. */
.footer {
  padding: 44px 0 0;
  text-align: left;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 0 0 28px;
}
.footer-brand img { display: block; margin-bottom: 12px; }
.footer-tagline {
  margin: 0;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.footer-col li { font-size: 14px; }
.footer-legalline {
  margin: 0;
  padding: 18px 0 26px;
  border-top: 1px solid var(--signal-hairline, #ececf3);
  font-size: 12.5px;
  line-height: 1.6;
  opacity: 0.75;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer { padding-top: 32px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding: 0 0 20px;
  }
}

/* ── Dashboard responsive pass ──────────────────────────────
   Desktop (≥1024px): wide multi-column grid, light actions.
   Mobile (<768px): stacked controls, 44px tap targets.
   Global: basket sections wrap their content — no fixed or
   min heights creating empty space. */

/* Global: content-height basket sections */
.signal-dashboard .basket-cards {
  min-height: 0;
  padding: 0;
}
.signal-dashboard .basket-row { height: auto; }
.signal-dashboard .basket-empty-hint { padding: 8px 0; margin: 0; }

/* Desktop: use the width */
@media (min-width: 1024px) {
  /* Title + Add item in one row (dash-hero is already flex
     space-between); keep them vertically centered */
  .signal-dashboard .dash-hero { align-items: center; }

  /* Search + New basket + Subscriptions in one row */
  .dash-toolbar { flex-wrap: nowrap; }
  .dash-toolbar .search-bar { flex: 1 1 auto; }

  /* Responsive multi-column card grid */
  .signal-dashboard .basket-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 14px;
  }

  /* Lighter card actions on desktop (hover devices) */
  .signal-dashboard .video-card-actions .btn-primary,
  .signal-dashboard .video-card-actions .btn-secondary,
  .signal-dashboard .video-card-actions .btn-ghost,
  .signal-dashboard .video-card-actions .btn-dark {
    min-height: 34px;
    font-size: 13px;
    box-shadow: none;
  }
  .signal-dashboard .video-card-actions .card-menu-btn {
    width: 34px;
    min-height: 34px;
    font-size: 15px;
  }
}

/* Mobile: stacked, tappable */
@media (max-width: 767.98px) {
  /* Title, then Add item, then search, then secondary actions */
  .signal-dashboard .dash-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .signal-dashboard .dash-hero-actions { width: 100%; }
  .signal-dashboard .dash-hero-actions .btn-primary {
    flex: 1;
    min-height: 48px;
    font-size: 15px;
  }

  .dash-toolbar { flex-wrap: wrap; gap: 8px; }
  .dash-toolbar .search-bar { flex: 1 1 100%; }
  .signal-page .search-bar input { min-height: 44px; }
  /* The header stacks on mobile, so the desktop width basis must not
     become vertical space around the input. */
  .signal-youtube-page .page-header .search-bar { flex: 0 0 auto; }
  /* New basket + Subscriptions side by side below search */
  .dash-toolbar .btn-secondary,
  .dash-toolbar .btn-ghost {
    flex: 1 1 0;
    min-height: 44px;
  }

  /* Single-column cards (covers the 768–860px card band and any
     narrower width where the desktop grid is shown) */
  .signal-dashboard .basket-cards { grid-template-columns: 1fr; }

  /* Basket header: title + metadata on top, actions row below.
     "View basket →" sits left, ⋮ menu right — nothing cramped. */
  .signal-dashboard .basket-header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 8px;
    flex-wrap: nowrap;
  }
  .signal-dashboard .basket-title-col {
    min-width: 0;
    flex: 1 1 auto;
  }
  .signal-dashboard .basket-title-group {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .signal-dashboard .basket-actions {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    padding-top: 0;
  }
  .signal-dashboard .basket-view-link { display: none; }

  /* 44px tap targets, no hover-dependent affordances */
  .signal-dashboard .basket-menu-btn,
  .signal-dashboard .basket-collapse-btn {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .signal-dashboard .basket-collapse-btn { font-size: 22px; }
  .signal-dashboard .basket-menu-btn {
    font-size: 24px;
    margin-right: -8px;
  }
  .signal-dashboard .basket-menu { top: 48px; }
  .basket-show-all,
  .basket-view-all { min-height: 44px; }
}
