/* Neurolog — site styles */

:root {
  --bg: #f3f2f2;
  --surface: #ffffff;
  --ink: #201e1d;
  --ink-2: #3c3937;
  --ink-3: #4a4745;
  --ink-4: #5c5957;
  --ink-5: #8b8886;
  --accent: #5b21b6;
  --accent-dark: #4c1d95;
  --accent-soft: #f4efff;
  --accent-pale: #c9b6ef;
  --accent-tint: #e6dcfa;
  --green: #087653;
  --green-bright: #0d9e6e;
  --rule: #201e1d;
  --hair: #d8d6d4;
  --hair-2: #e4e2e0;
  --field-border: #c8c6c4;
  --field-bg: #f8f8f7;
  --font-head: "Inter Tight", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --header-h: 74px;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

img {
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  color: var(--green-bright);
}

input,
textarea,
button,
select {
  font: inherit;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(91, 33, 182, .16);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Layout primitives ------------------------------------------------------- */

.wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.section {
  padding: clamp(48px, 6vw, 88px) var(--gutter);
}

.section--flush {
  padding: 0;
}

.section--rule {
  border-top: 2px solid var(--rule);
}

.section--hero {
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(48px, 6vw, 72px);
}

.section--page-head {
  padding: clamp(48px, 6vw, 84px) var(--gutter);
}

.section--invert {
  background: var(--accent);
  color: #fff;
}

/* Type -------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--green {
  color: var(--green);
}

.eyebrow--pale {
  color: var(--accent-pale);
}

.display {
  font-family: var(--font-head);
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 600;
  max-width: 19ch;
  text-wrap: pretty;
}

.display--page {
  font-size: clamp(34px, 4.4vw, 58px);
  max-width: 21ch;
}

.h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 600;
  text-wrap: pretty;
}

.h2--sm {
  font-size: clamp(24px, 2.6vw, 32px);
}

.h2--md {
  font-size: clamp(26px, 2.8vw, 36px);
}

.h2--lg {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.07;
  letter-spacing: -.035em;
  max-width: 22ch;
}

.h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.lead {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-3);
  text-wrap: pretty;
}

.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
}

.body + .body,
.h3 + .body {
  margin-top: 10px;
}

.measure {
  max-width: 44ch;
}

.step-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--green);
}

.link-arrow {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--sm {
  height: 42px;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: .01em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 2px solid var(--rule);
}

.site-header__bar {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand span {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
  min-width: 0;
}

.nav__link {
  border: 0;
  background: transparent;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  color: var(--ink-2);
  cursor: pointer;
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link[aria-current="page"],
.nav__link.is-active {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

.nav__group {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 236px;
  background: var(--bg);
  border: 2px solid var(--rule);
  border-top: 0;
  z-index: 60;
}

.nav__menu[hidden] {
  display: none;
}

.nav__menu a {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--hair);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
}

.nav__menu a:last-child {
  border-bottom: 0;
}

.nav__menu a:hover {
  color: var(--accent);
  background: var(--surface);
}

.nav__menu a[aria-current="page"] {
  color: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.header__contact {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.header__contact:hover {
  background: var(--ink);
  color: #fff;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn:hover {
  background: var(--ink);
  color: #fff;
}

.mobile-nav {
  border-top: 1px solid var(--hair);
  background: var(--bg);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: block;
  width: 100%;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--hair-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.mobile-nav a:first-child {
  border-top: 0;
}

.mobile-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Home ------------------------------------------------------------------- */

.audience-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(32px, 4vw, 52px) var(--gutter);
  border-right: 1px solid var(--hair);
  color: var(--ink);
}

.audience-card:last-child {
  border-right: 0;
}

.audience-card:hover {
  background: var(--surface);
  color: var(--ink);
}

.audience-card .h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
}

.split--end {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
}

.pull {
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--ink);
}

.feature-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid > div {
  padding: 32px var(--gutter);
  border-right: 1px solid var(--hair);
}

.feature-grid > div:last-child {
  border-right: 0;
}

.feature-grid .step-num + .h3 {
  margin-top: 8px;
}

.invert-copy {
  font-size: 16px;
  line-height: 1.62;
  color: var(--accent-tint);
  max-width: 46ch;
}

/* Marquee ----------------------------------------------------------------- */

.marquee {
  width: min(1240px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.marquee--home {
  padding-bottom: clamp(48px, 6vw, 88px);
}

.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: nl-marquee 64s linear infinite;
}

.marquee--short .marquee__track {
  animation-duration: 44s;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track img {
  flex: 0 0 auto;
  height: min(62vh, 480px);
  width: auto;
}

@keyframes nl-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 10px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee {
    overflow-x: auto;
  }

  .marquee__track {
    animation: none;
  }
}

/* Figures, team, partners ------------------------------------------------- */

.figure img {
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-4);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.team-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  padding: 28px 0 18px;
  border-top: 1px solid var(--hair);
}

.team-strip > div {
  flex: 0 0 200px;
  text-align: center;
}

.team-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
}

.team-strip .h3 {
  margin: 14px 0 4px;
  font-size: 17px;
  letter-spacing: -.01em;
}

.role {
  font-size: 13px;
  color: var(--ink-4);
}

.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
  justify-items: center;
}

.founders .founder {
  max-width: 480px;
}

.founder {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.founder img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  filter: grayscale(1);
}

.founder .role {
  margin-top: 4px;
  font-weight: 600;
  color: var(--accent-dark);
}

.advisors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}

.advisor {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.advisor img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: grayscale(1);
}

.advisor .h3 {
  font-size: 16px;
  letter-spacing: -.01em;
}

.partners {
  display: flex;
  align-items: center;
  min-height: 132px;
  padding: 28px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.partners img {
  width: min(170px, 100%);
  height: auto;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 2px solid var(--rule);
}

.pillars > div {
  padding: 24px 28px 28px;
  border-right: 1px solid var(--hair);
}

.pillars > div:first-child {
  padding-left: 0;
}

.pillars > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.pillars .h3 {
  margin: 10px 0;
  font-size: 20px;
  line-height: 1.2;
}

/* Waitlist ---------------------------------------------------------------- */

#waitlist {
  scroll-margin-top: var(--header-h);
}

.waitlist {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.waitlist .h2 {
  max-width: 18ch;
}

.waitlist__note {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  color: var(--ink-3);
}

.form {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 2px solid var(--rule);
  padding: clamp(22px, 3vw, 32px);
}

.form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.form textarea {
  min-height: 88px;
  resize: vertical;
}

.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 9px;
}

.form legend {
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.form .check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--field-border);
  background: var(--surface);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.form .check:hover {
  border-color: var(--accent);
}

.form .check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.form .check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.form .check span {
  font-size: 14px;
  font-weight: 600;
}

.form button[type="submit"] {
  justify-content: flex-start;
}

.form__fine {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-4);
}

.form__ok {
  padding: 12px 14px;
  background: #e7f6f0;
  border-left: 3px solid var(--green-bright);
  font-size: 14px;
  color: #075c41;
}

.form__ok[hidden] {
  display: none;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  border-top: 2px solid var(--rule);
  padding: clamp(32px, 4vw, 48px) var(--gutter);
}

.site-footer__grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: start;
}

.site-footer .brand img {
  width: 24px;
  height: 24px;
}

.site-footer .brand span {
  font-size: 16px;
}

.site-footer__blurb {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-4);
}

.site-footer nav,
.site-footer__meta {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.site-footer nav a,
.site-footer__meta a {
  font-size: 13px;
  color: var(--ink-2);
}

.site-footer nav a:hover {
  color: var(--accent);
}

.site-footer__meta span {
  font-size: 13px;
  color: var(--ink-4);
}

.site-footer__legal {
  max-width: 38ch;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-4);
}

.site-footer__base {
  width: min(1240px, 100%);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 12px;
  color: var(--ink-5);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1019px) {
  .nav,
  .header__contact {
    display: none;
  }

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

  .site-header__bar {
    gap: 16px;
  }
}

@media (min-width: 1020px) {
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 1019px) {
  .audience-grid,
  .feature-grid,
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .audience-card,
  .feature-grid > div,
  .pillars > div {
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }

  .audience-card:last-child,
  .feature-grid > div:last-child,
  .pillars > div:last-child {
    border-bottom: 0;
  }

  .pillars > div {
    padding: 24px 0 28px;
  }
}

@media (max-width: 860px) {
  .split,
  .split--end,
  .waitlist {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .founder img {
    width: 88px;
    height: 88px;
  }
}
