/* Synapse Runtime — public site */

:root {
  --bg: #ffffff;
  --ink: #0a0a0b;
  --ink-2: #56565f;
  --ink-3: #8b8b95;
  --line: #e6e6ea;
  --accent: #5b5bd6;
  --accent-soft: #eeeefb;
  --accent-line: #c9c9f2;
  --accent-bright: #a5a2f2;
  --dark: #0a0a0b;
  --dark-2: #a1a1aa;

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 78rem;
  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4rem;
}

.wordmark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--ink-3);
  font-weight: 500;
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover {
  color: var(--ink);
}

nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.5rem;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 11vh, 8rem) 0 clamp(3.5rem, 9vh, 6rem);
}

.hero .container {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .hero .container {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.75rem;
}

.hero .lede {
  margin-bottom: 2.5rem;
}

/* ---------- contact block ---------- */

.contact-block {
  padding-top: .5rem;
  max-width: var(--measure);
}

.contact-block .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.contact-block .mail {
  display: inline-block;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.contact-block .mail:hover {
  color: var(--accent);
  box-shadow: inset 0 -0.9em 0 var(--accent-soft);
}

.contact-block .hint {
  margin: 0.9rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-3);
  max-width: 40ch;
}

/* ---------- hero figure ---------- */

.figure {
  margin: 0;
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- editorial rows ---------- */

.row {
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 5rem) 0;
}

.row:last-of-type {
  border-bottom: 0;
}

.row .container {
  display: grid;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .row .container {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

.row-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.4rem;
}

.row-body {
  max-width: 44rem;
}

.row-body > :last-child {
  margin-bottom: 0;
}

.row-body--wide {
  max-width: none;
}

/* ---------- claims ---------- */

.claims-lede {
  max-width: 46rem;
  margin: 0 0 2.75rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.claims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 56rem) {
  .claims {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2.5rem;
  }
}

.claims li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 56rem) {
  .claims li {
    border-bottom: 0;
  }
}

.claims .num {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.claims p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- dark band ---------- */

.band-dark {
  background: var(--dark);
  color: #fff;
  padding: clamp(3rem, 8vh, 5.5rem) 0;
}

.band-dark .container {
  display: grid;
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .band-dark .container {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

.band-dark .row-label {
  color: var(--dark-2);
}

.band-dark p {
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 42rem;
  margin: 0;
}

.band-dark p + p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--dark-2);
}

.band-dark p a {
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(165, 162, 242, 0.75);
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.band-dark p a:hover {
  color: var(--accent-bright);
  box-shadow: inset 0 -1px 0 var(--accent-bright);
}

.band-cta {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.band-cta .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-2);
  margin-bottom: 0.6rem;
}

.band-dark .band-cta a {
  display: inline-block;
  font-size: clamp(1.125rem, 1.9vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--accent-bright);
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.band-dark .band-cta a:hover {
  color: var(--accent-bright);
}

.claims-more {
  margin: 0;
}

.claims-more a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.claims-more a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.claims-more a span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.claims-more a:hover span {
  transform: translateX(3px);
}

#demos {
  scroll-margin-top: 5rem;
}

/* ---------- next links ---------- */

.next-links {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

@media (min-width: 48rem) {
  .next-links {
    grid-template-columns: repeat(3, 1fr);
  }
  .next-links--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.next-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}

@media (min-width: 48rem) {
  .next-links a {
    padding-right: 2rem;
  }
}

.next-links a span {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
  transition: transform 0.2s ease, color 0.15s ease;
}

.next-links a:hover {
  color: var(--accent);
}

.next-links a:hover span {
  color: var(--accent);
  transform: translateX(3px);
}

/* ---------- demos list (Proof) ---------- */

.demo-list {
  display: block;
  max-width: 44rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.demo-list:first-child {
  margin-top: 0;
}

.demo-list + .claims-more {
  margin-top: 1.5rem;
}

.demo-list a {
  display: block;
  position: relative;
  width: 100%;
  padding: 1.25rem 2.75rem 1.3rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.demo-name {
  display: block;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: none;
  transition: color 0.15s ease;
}

.demo-note {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-2);
  text-transform: none;
}

.demo-go {
  position: absolute;
  top: 1.3rem;
  right: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
  transition: transform 0.2s ease, color 0.15s ease;
}

.demo-list a:hover .demo-name,
.demo-list a:focus-visible .demo-name {
  color: var(--accent);
}

.demo-list a:hover .demo-go,
.demo-list a:focus-visible .demo-go {
  color: var(--accent);
  transform: translateX(3px);
}

.demo-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- page hero ---------- */

.page-hero {
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 9vh, 5.5rem) 0 clamp(2.5rem, 6vh, 3.5rem);
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .lede {
  margin: 1.5rem 0 0;
}

/* ---------- prose ---------- */

.prose {
  max-width: 40rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: 1.375rem;
  letter-spacing: -0.022em;
  margin: 2.75rem 0 0.85rem;
}

.prose h3 {
  margin: 2rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.15em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.prose a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 0;
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.6rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.prose thead th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  border-bottom-color: var(--ink);
  padding-bottom: 0.6rem;
}

/* ---------- comparison table ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.compare th {
  text-align: left;
  vertical-align: bottom;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  padding: 0 1.5rem 0.7rem 0;
  border-bottom: 1px solid var(--ink);
}

.compare td {
  vertical-align: top;
  padding: 0.9rem 1.5rem 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.compare td:last-child,
.compare th:last-child {
  padding-right: 0;
}

.compare td:first-child {
  color: var(--ink);
  font-weight: 600;
  width: 22%;
}

.compare td:last-child {
  color: var(--ink);
  width: 40%;
}

/* ---------- question / answer blocks ---------- */

.qa {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.qa:first-of-type {
  border-top: 1px solid var(--ink);
}

.qa h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.qa p {
  margin: 0;
  color: var(--ink-2);
  max-width: 46rem;
}

.qa p + p {
  margin-top: 0.7rem;
}

/* Black is reserved for full-width .band-dark section pivots — one per page.
   An in-prose black box competes with it and halves its impact. */

.note {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.note strong {
  color: var(--ink);
}

/* ---------- proof grid ---------- */

.proof-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
  margin: 1.75rem 0 2rem;
}

@media (min-width: 48rem) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

.proof-grid > div {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.proof-grid p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  margin-top: 4rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.site-footer .stamp {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
