/* Standalone stylesheet for pre-rendered content pages (Insights + trust pages).
 * Self-contained on purpose: these pages must render fully without the SPA
 * bundle, so they don't depend on index.css or any hashed asset. */

:root {
  --sp-purple: #6001d2;
  --sp-purple-dark: #4a01a3;
  --sp-bg: #f6f7f9;
  --sp-surface: #ffffff;
  --sp-border: #e0e4e9;
  --sp-text: #1d2228;
  --sp-muted: #616a73;
  --sp-accent-soft: #f3ecff;
  --sp-shadow: 0 1px 2px rgba(15, 20, 25, 0.05), 0 2px 10px rgba(15, 20, 25, 0.05);
  --sp-measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sp-purple: #b492ff;
    --sp-purple-dark: #c9b0ff;
    --sp-bg: #101216;
    --sp-surface: #181b21;
    --sp-border: #2b3038;
    --sp-text: #e8eaed;
    --sp-muted: #a2aab4;
    --sp-accent-soft: #241a3d;
    --sp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.sp {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sp-surface);
  color: var(--sp-text);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.sp-skip:focus {
  left: 0;
}

a {
  color: var(--sp-purple);
}

a:hover {
  color: var(--sp-purple-dark);
}

/* ------------------------------------------------------------------ header */

.sp-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sp-text);
  text-decoration: none;
}

.sp-brand__mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: var(--sp-purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.sp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.sp-nav a {
  color: var(--sp-muted);
  text-decoration: none;
}

.sp-nav a:hover,
.sp-nav a[aria-current="page"] {
  color: var(--sp-purple);
}

/* -------------------------------------------------------------------- main */

.sp-main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.sp-article {
  max-width: var(--sp-measure);
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  box-shadow: var(--sp-shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin: 0 auto;
}

.sp-article--index {
  max-width: 60rem;
}

.sp-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sp-purple);
}

.sp-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.sp-article h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sp-dek {
  margin: 0 0 1.1rem;
  font-size: 1.16rem;
  line-height: 1.5;
  color: var(--sp-muted);
}

.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--sp-muted);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--sp-border);
}

.sp-meta__author {
  font-weight: 700;
  color: var(--sp-text);
}

.sp-updated {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  color: var(--sp-muted);
}

.sp-section {
  margin-top: 2rem;
}

.sp-section h2 {
  margin: 0 0 0.7rem;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.sp-section h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.sp-section p {
  margin: 0 0 1rem;
}

.sp-section ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.sp-section li {
  margin-bottom: 0.55rem;
}

.sp-byline-note {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sp-border);
  font-size: 0.9rem;
  color: var(--sp-muted);
}

/* ---------------------------------------------------------------- ad slots */

.sp-ad {
  margin: 2.25rem 0;
  padding: 0.75rem;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  background: var(--sp-bg);
}

.sp-ad__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

/* ----------------------------------------------------------- index / cards */

.sp-cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.sp-card {
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.25rem;
  background: var(--sp-bg);
}

.sp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
}

.sp-card__tags span {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--sp-accent-soft);
  color: var(--sp-purple-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.sp-card h2 a {
  text-decoration: none;
  color: var(--sp-text);
}

.sp-card h2 a:hover {
  color: var(--sp-purple);
}

.sp-card__dek {
  margin: 0 0 0.7rem;
  font-size: 0.93rem;
  color: var(--sp-muted);
  line-height: 1.5;
}

.sp-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sp-muted);
}

/* -------------------------------------------------------------- related */

.sp-related {
  max-width: var(--sp-measure);
  margin: 1.75rem auto 0;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  background: var(--sp-surface);
  box-shadow: var(--sp-shadow);
}

.sp-related h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.sp-related ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sp-related li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sp-border);
}

.sp-related li:last-child {
  border-bottom: 0;
}

.sp-related__meta {
  color: var(--sp-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.sp-more {
  font-weight: 700;
  text-decoration: none;
}

/* ------------------------------------------------------------------ footer */

.sp-foot {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--sp-border);
  color: var(--sp-muted);
  font-size: 0.88rem;
}

.sp-foot__lede {
  max-width: 46rem;
  margin: 0 0 1rem;
}

.sp-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.sp-foot__nav a {
  text-decoration: none;
}

.sp-foot__copy {
  margin: 0;
  font-size: 0.83rem;
}

@media (max-width: 30rem) {
  body.sp {
    font-size: 16px;
  }

  .sp-article,
  .sp-related {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
}
