/* ThreadRecall Insights - static editorial surface */

:root {
  --insights-bg: #0d0e0d;
  --insights-panel: #151715;
  --insights-panel-soft: #1c1f1d;
  --insights-ink: #f4f2ea;
  --insights-muted: rgba(244, 242, 234, 0.66);
  --insights-faint: rgba(244, 242, 234, 0.42);
  --insights-line: rgba(244, 242, 234, 0.12);
  --insights-line-strong: rgba(244, 242, 234, 0.22);
  --insights-accent: #5fc8cd;
  --insights-accent-deep: #46aeb4;
}

html {
  scroll-behavior: smooth;
}

body.insights-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 24% 6%, rgba(95, 200, 205, 0.16), transparent 30%),
    linear-gradient(180deg, #101210 0%, var(--insights-bg) 38%, #090a09 100%);
  color: var(--insights-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.insights-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(244, 242, 234, 0.16) 0.55px, transparent 0.7px);
  background-size: 4px 4px;
}

.insights-page {
  position: relative;
  z-index: 1;
}

.insights-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: rgba(13, 14, 13, 0.78);
  border-bottom: 1px solid var(--insights-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.insights-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--insights-ink);
  font-size: 17px;
  font-weight: var(--w-bold);
  letter-spacing: -1px;
  text-decoration: none;
  white-space: nowrap;
}

.insights-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--insights-accent);
  box-shadow: 0 0 0 5px rgba(95, 200, 205, 0.16);
  animation: insights-dot-life 10s var(--ease-in-out) infinite;
}

@keyframes insights-dot-life {
  0%, 40% {
    background: var(--insights-accent);
    box-shadow: 0 0 0 5px rgba(95, 200, 205, 0.16);
  }
  50% {
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
  }
  70% {
    background: #ffffff;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
  }
  90% {
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
  }
  100% {
    background: var(--insights-accent);
    box-shadow: 0 0 0 5px rgba(95, 200, 205, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .insights-dot {
    animation: none;
  }
}

.insights-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.insights-nav a,
.insights-meta a,
.insights-footer a {
  color: var(--insights-muted);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.insights-nav a {
  font-size: 13px;
}

.insights-nav .sep {
  color: rgba(244, 242, 234, 0.36);
  font-weight: 300;
  margin: 0 14px;
  user-select: none;
}

.insights-nav a:hover,
.insights-nav a.active,
.insights-meta a:hover,
.insights-footer a:hover {
  color: var(--insights-ink);
}

.insights-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.insights-button,
.article-cta a,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(244, 242, 234, 0.18);
  background: var(--insights-ink);
  color: #0e0f0e;
  box-shadow: var(--shadow-inset-dark);
  font-size: 13px;
  font-weight: var(--w-semibold);
  line-height: 1;
  min-height: 40px;
  padding: 0 18px;
  text-decoration: none;
}

.insights-button:hover,
.article-cta a:hover {
  color: var(--insights-accent-deep);
  background: #ffffff;
}

.insights-menu {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--insights-ink);
}

.insights-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.insights-container {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.insights-hero {
  padding: 88px 0 42px;
}

.eyebrow {
  color: var(--insights-faint);
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.teal {
  color: var(--insights-accent);
}

.insights-hero h1 {
  max-width: 1080px;
  margin: 22px 0 0;
  color: var(--insights-ink);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: var(--w-bold);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.insights-hero p {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--insights-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.insights-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.insights-pill {
  border: 1px solid var(--insights-line);
  border-radius: 999px;
  color: var(--insights-muted);
  font-size: 13px;
  padding: 8px 15px;
  text-decoration: none;
}

.insights-pill:hover,
.insights-pill.active {
  background: var(--insights-ink);
  border-color: transparent;
  color: #0e0f0e;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 20px;
  margin-top: 24px;
}

.article-card {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--insights-line);
  border-radius: 8px;
  background: var(--insights-panel);
  color: var(--insights-ink);
  isolation: isolate;
  text-decoration: none;
}

.article-card.compact {
  min-height: 360px;
}

.article-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 420ms var(--ease-out), filter 420ms var(--ease-out);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 8, 7, 0.14) 0%, rgba(7, 8, 7, 0.38) 40%, rgba(7, 8, 7, 0.88) 100%),
    radial-gradient(circle at 30% 20%, rgba(95, 200, 205, 0.16), transparent 40%);
}

.article-card:hover img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.card-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 242, 234, 0.76);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid rgba(244, 242, 234, 0.16);
  border-radius: 999px;
  background: rgba(14, 15, 14, 0.52);
  color: rgba(244, 242, 234, 0.84);
  font-size: 11px;
  font-weight: var(--w-semibold);
  letter-spacing: 0.06em;
  padding: 7px 10px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-copy {
  max-width: 680px;
}

.article-card h2,
.article-card h3 {
  margin: 0;
  color: var(--insights-ink);
  font-weight: var(--w-bold);
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
}

.article-card h2 {
  font-size: clamp(34px, 5vw, 64px);
}

.article-card h3 {
  font-size: clamp(26px, 3.2vw, 40px);
}

.article-card p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--insights-muted);
  font-size: 15px;
  line-height: 1.55;
}

.section-block {
  padding-top: 104px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 52px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 16px 0 0;
  color: var(--insights-ink);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: var(--w-bold);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p {
  margin: 0 0 4px;
  color: var(--insights-muted);
  font-size: 16px;
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 20px;
}

.card-grid.one-up {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.insights-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: center;
  margin-top: 128px;
  padding: 52px;
  border: 1px solid var(--insights-line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(244, 242, 234, 0.08), rgba(95, 200, 205, 0.08));
}

.insights-cta h2 {
  margin: 16px 0 0;
  color: var(--insights-ink);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: var(--w-bold);
  line-height: 1.05;
  letter-spacing: 0;
}

.insights-cta p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--insights-muted);
  font-size: 17px;
  line-height: 1.55;
}

.insights-cta img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--insights-line);
  border-radius: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 64px;
  justify-content: center;
  padding: 56px 0 0;
}

.article-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  padding-top: 150px;
}

.article-toc a {
  color: var(--insights-muted);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--insights-ink);
}

.article-toc nav {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.article-toc nav a {
  border-left: 2px solid transparent;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.article-toc nav a:hover {
  border-left-color: var(--insights-accent);
}

.article-header {
  padding-top: 24px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--insights-faint);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--insights-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--insights-ink);
}

.article-header h1 {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--insights-ink);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: var(--w-bold);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-dek {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--insights-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--insights-line);
  color: var(--insights-faint);
  font-size: 13px;
}

.article-hero-image {
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid var(--insights-line);
  border-radius: 8px;
  background: var(--insights-panel);
}

.article-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.article-prose {
  max-width: 680px;
  margin-top: 54px;
  color: rgba(244, 242, 234, 0.84);
  font-size: 17px;
  line-height: 1.78;
}

.article-prose h2 {
  margin: 58px 0 16px;
  color: var(--insights-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: var(--w-bold);
  letter-spacing: 0;
  line-height: 1.08;
}

.article-prose h3 {
  margin: 34px 0 10px;
  color: var(--insights-ink);
  font-size: 22px;
  font-weight: var(--w-bold);
  line-height: 1.2;
}

.article-prose p,
.article-prose ul,
.article-prose ol {
  margin: 0 0 22px;
  color: rgba(244, 242, 234, 0.84);
  font-size: 17px;
  line-height: 1.78;
}

.article-prose li {
  margin: 8px 0;
  color: rgba(244, 242, 234, 0.84);
}

.article-prose td {
  color: rgba(244, 242, 234, 0.76);
}

.article-prose a {
  color: var(--insights-accent);
  text-decoration-color: rgba(95, 200, 205, 0.42);
  text-underline-offset: 3px;
}

.article-prose .article-cta a {
  color: #0e0f0e;
  text-decoration: none;
}

.article-prose .article-cta a:hover {
  color: var(--insights-accent-deep);
}

.article-prose strong {
  color: var(--insights-ink);
}

.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--insights-line);
  border-radius: 8px;
}

.article-prose table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(244, 242, 234, 0.035);
  font-size: 14px;
  line-height: 1.45;
}

.article-prose th,
.article-prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--insights-line);
  text-align: left;
  vertical-align: top;
}

.article-prose th {
  color: var(--insights-ink);
  font-weight: var(--w-bold);
}

.article-prose tr:last-child td {
  border-bottom: 0;
}

.article-callout,
.article-cta {
  margin: 34px 0;
  padding: 22px;
  border: 1px solid rgba(95, 200, 205, 0.24);
  border-radius: 8px;
  background: rgba(95, 200, 205, 0.08);
  color: rgba(244, 242, 234, 0.86);
}

.article-callout strong,
.article-cta strong {
  color: var(--insights-ink);
}

.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.article-cta p {
  margin: 6px 0 0;
  color: var(--insights-muted);
}

.related-section {
  margin-top: 90px;
  padding-top: 54px;
  border-top: 1px solid var(--insights-line);
}

.related-section h2 {
  margin: 14px 0 28px;
  color: var(--insights-ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: var(--w-bold);
  line-height: 1.05;
  letter-spacing: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: grid;
  grid-template-rows: 160px 1fr;
  overflow: hidden;
  border: 1px solid var(--insights-line);
  border-radius: 8px;
  background: var(--insights-panel);
  color: var(--insights-ink);
  text-decoration: none;
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card div {
  padding: 16px;
}

.related-card span {
  color: var(--insights-faint);
  font-size: 11px;
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 10px 0 0;
  color: var(--insights-ink);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.insights-product-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  width: min(1180px, calc(100vw - 48px));
  margin: 130px auto 0;
  padding: 72px 0 54px;
  border-top: 1px solid var(--insights-line);
  color: var(--insights-muted);
  font-size: 14px;
}

.insights-product-footer .colophon {
  max-width: 36ch;
  color: var(--insights-faint);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
}

.insights-product-footer .wm {
  display: block;
  margin-bottom: 12px;
  color: var(--insights-ink);
  font-size: 16px;
  font-weight: var(--w-bold);
  letter-spacing: -0.8px;
}

.insights-product-footer h5 {
  margin: 4px 0 14px;
  color: var(--insights-faint);
  font-size: 11px;
  font-weight: var(--w-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.insights-product-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insights-product-footer a {
  color: var(--insights-muted);
  text-decoration: none;
}

.insights-product-footer a:hover {
  color: var(--insights-ink);
}

.insights-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 54px;
  border-top: 1px solid var(--insights-line);
  color: var(--insights-faint);
  font-size: 13px;
}

.insights-footer .left,
.insights-footer .right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insights-footer .right {
  align-items: flex-end;
  text-align: right;
}

.insights-footer strong {
  color: var(--insights-muted);
  font-weight: var(--w-semibold);
}

@media (max-width: 920px) {
  .insights-topbar {
    align-items: flex-start;
    padding: 18px 22px;
  }

  .insights-menu {
    display: inline-flex;
  }

  .insights-nav,
  .insights-meta {
    display: none;
  }

  .insights-topbar.menu-open {
    flex-wrap: wrap;
  }

  .insights-topbar.menu-open .insights-nav,
  .insights-topbar.menu-open .insights-meta {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 12px;
  }

  .insights-topbar.menu-open .insights-nav .sep {
    display: none;
  }

  .insights-container {
    width: min(100% - 40px, 720px);
  }

  .insights-hero {
    padding-top: 72px;
  }

  .featured-grid,
  .card-grid,
  .section-head,
  .insights-cta,
  .article-layout,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-card,
  .article-card.compact {
    min-height: 390px;
  }

  .article-toc {
    display: none;
  }

  .article-layout {
    padding-top: 36px;
  }

  .insights-cta {
    padding: 30px;
  }

  .insights-cta img {
    display: none;
  }

  .article-cta {
    grid-template-columns: 1fr;
  }

  .insights-product-footer {
    width: min(100% - 40px, 720px);
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .insights-footer {
    width: min(100% - 40px, 720px);
    flex-direction: column;
    gap: 18px;
  }

  .insights-footer .right {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .insights-topbar {
    padding: 16px 18px;
  }

  .insights-container {
    width: min(100% - 32px, 720px);
  }

  .insights-hero h1 {
    font-size: 43px;
  }

  .card-shell {
    padding: 18px;
  }

  .badge-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-card h2 {
    font-size: 35px;
  }

  .article-card h3 {
    font-size: 28px;
  }

  .section-block {
    padding-top: 78px;
  }

  .article-prose {
    font-size: 16px;
  }

  .related-card {
    grid-template-rows: 180px 1fr;
  }
}
